1 | <?php /* Smarty version 2.6.13, created on 2007-01-10 00:01:41 |
---|
2 | compiled from /home/web/beta.ec-cube.net/html/../data/Smarty/templates/campaign/index.tpl */ ?> |
---|
3 | <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php'); |
---|
4 | smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', '/home/web/beta.ec-cube.net/html/../data/Smarty/templates/campaign/index.tpl', 72, false),)), $this); ?> |
---|
5 | <?php $_smarty_tpl_vars = $this->_tpl_vars; |
---|
6 | $this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir_name'])."/header.tpl", 'smarty_include_vars' => array())); |
---|
7 | $this->_tpl_vars = $_smarty_tpl_vars; |
---|
8 | unset($_smarty_tpl_vars); |
---|
9 | ?>
|
---|
10 |
|
---|
11 | <script type="text/javascript" src="<?php echo @URL_DIR; ?> |
---|
12 | js/site.js"></script>
|
---|
13 | <script type="text/javascript" src="<?php echo @URL_DIR; ?> |
---|
14 | js/navi.js"></script>
|
---|
15 | <script type="text/javascript">
|
---|
16 | <!--
|
---|
17 | <?php echo $this->_tpl_vars['tpl_javascript']; ?> |
---|
18 |
|
---|
19 |
|
---|
20 | // ¥»¥ì¥¯¥È¥Ü¥Ã¥¯¥¹¤Ë¹àÌܤò³ä¤êÅö¤Æ¤ë¡£
|
---|
21 | function lnSetSelect(name1, name2, id, val) {
|
---|
22 | sele1 = document.form1[name1];
|
---|
23 | sele2 = document.form1[name2];
|
---|
24 | lists = eval('lists' + id);
|
---|
25 | vals = eval('vals' + id);
|
---|
26 |
|
---|
27 | if(sele1 && sele2) {
|
---|
28 | index = sele1.selectedIndex;
|
---|
29 |
|
---|
30 | // ¥»¥ì¥¯¥È¥Ü¥Ã¥¯¥¹¤Î¥¯¥ê¥¢
|
---|
31 | count = sele2.options.length;
|
---|
32 | for(i = count; i >= 0; i--) {
|
---|
33 | sele2.options[i] = null;
|
---|
34 | }
|
---|
35 |
|
---|
36 | // ¥»¥ì¥¯¥È¥Ü¥Ã¥¯¥¹¤ËÃͤò³ä¤êÅö¤Æ¤ë
|
---|
37 | len = lists[index].length;
|
---|
38 | for(i = 0; i < len; i++) {
|
---|
39 | sele2.options[i] = new Option(lists[index][i], vals[index][i]);
|
---|
40 | if(val != "" && vals[index][i] == val) {
|
---|
41 | sele2.options[i].selected = true;
|
---|
42 | }
|
---|
43 | }
|
---|
44 | }
|
---|
45 | }
|
---|
46 |
|
---|
47 | // Á´¾¦ÉÊID¤ò¼èÆÀ¤¹¤ë
|
---|
48 | function fnGetIds() {
|
---|
49 | var change_tag = document.getElementsByTagName("div");
|
---|
50 | var ids = "";
|
---|
51 | var count = 0;
|
---|
52 |
|
---|
53 | for (var i = 0; i < change_tag.length; i++) {
|
---|
54 | str = change_tag.item(i).id;
|
---|
55 | if (str.match('cart_tag_*')) {
|
---|
56 | var nama_id = change_tag.item(i).id;
|
---|
57 | arrIds = nama_id.split("_");
|
---|
58 |
|
---|
59 | if (count > 0) ids += '-';
|
---|
60 | ids += arrIds[2];
|
---|
61 | count ++;
|
---|
62 | }
|
---|
63 | }
|
---|
64 |
|
---|
65 | return ids;
|
---|
66 | }
|
---|
67 |
|
---|
68 | // Æɹþ¸å¤Ë¼Â¹Ô¤¹¤ë(on_load)
|
---|
69 | function init() {
|
---|
70 | if(<?php echo $this->_tpl_vars['tpl_init']; ?> |
---|
71 | ) {
|
---|
72 | var ids = fnGetIds();
|
---|
73 | location.href = './index.php?init=1&ids=' + ids;
|
---|
74 | } else {
|
---|
75 | <?php echo $this->_tpl_vars['tpl_onload']; ?> |
---|
76 |
|
---|
77 | }
|
---|
78 | }
|
---|
79 |
|
---|
80 | window.onload = init;
|
---|
81 |
|
---|
82 | //-->
|
---|
83 | </script>
|
---|
84 | <form name="form1" id="form1" method="post" action="<?php echo ((is_array($_tmp=$_SERVER['REQUEST_URI'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?> |
---|
85 | ">
|
---|
86 | <input type="hidden" name="mode" value="cart">
|
---|
87 | <input type="hidden" name="product_id" value="">
|
---|
88 | <input type="hidden" name="cp" value="true">
|
---|
89 |
|
---|
90 | <?php $_smarty_tpl_vars = $this->_tpl_vars; |
---|
91 | $this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir_name'])."/contents.tpl", 'smarty_include_vars' => array())); |
---|
92 | $this->_tpl_vars = $_smarty_tpl_vars; |
---|
93 | unset($_smarty_tpl_vars); |
---|
94 | ?>
|
---|
95 |
|
---|
96 | </form>
|
---|
97 |
|
---|
98 | <?php $_smarty_tpl_vars = $this->_tpl_vars; |
---|
99 | $this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir_name'])."/footer.tpl", 'smarty_include_vars' => array())); |
---|
100 | $this->_tpl_vars = $_smarty_tpl_vars; |
---|
101 | unset($_smarty_tpl_vars); |
---|
102 | ?> |
---|