source: branches/version-2_4/data/Smarty/templates/default/campaign/index.tpl @ 18734

Revision 18734, 3.1 KB checked in by nanasess, 14 years ago (diff)

Copyright の更新(#601)

  • Property svn:eol-style set to LF
  • Property svn:mime-type set to text/html; charset=UTF-8
Line 
1<!--{*
2/*
3 * This file is part of EC-CUBE
4 *
5 * Copyright(c) 2000-2010 LOCKON CO.,LTD. All Rights Reserved.
6 *
7 * http://www.lockon.co.jp/
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22 */
23*}-->
24<!--{*ヘッダー読込*}-->
25<!--{include file=`$tpl_dir_name`/header.tpl}-->
26
27<script type="text/javascript" src="<!--{$TPL_DIR}-->js/site.js"></script>
28<script type="text/javascript" src="<!--{$TPL_DIR}-->js/navi.js"></script>
29<script type="text/javascript">
30<!--
31<!--{$tpl_javascript}-->
32
33// セレクトボックスに項目を割り当てる。
34function lnSetSelect(name1, name2, id, val) {
35    sele1 = document.form1[name1];
36    sele2 = document.form1[name2];
37    lists = eval('lists' + id);
38    vals = eval('vals' + id);
39
40    if(sele1 && sele2) {
41        index = sele1.selectedIndex;
42
43        // セレクトボックスのクリア
44        count = sele2.options.length;
45        for(i = count; i >= 0; i--) {
46            sele2.options[i] = null;
47        }
48
49        // セレクトボックスに値を割り当てる
50        len = lists[index].length;
51        for(i = 0; i < len; i++) {
52            sele2.options[i] = new Option(lists[index][i], vals[index][i]);
53            if(val != "" && vals[index][i] == val) {
54                sele2.options[i].selected = true;
55            }
56        }
57    }
58}
59
60// 全商品IDを取得する
61function fnGetIds() {
62    var change_tag = document.getElementsByTagName("div");
63    var ids = "";
64    var count = 0;
65
66    for (var i = 0; i < change_tag.length; i++) {
67        str = change_tag.item(i).id;
68        if (str.match('cart_tag_*')) {
69            var nama_id = change_tag.item(i).id;
70            arrIds =  nama_id.split("_");
71
72            if (count > 0) ids += '-';
73            ids += arrIds[2];
74            count ++;
75        }
76    }
77
78    return ids;
79}
80
81// 読込後に実行する(on_load)
82function init() {
83    if(<!--{$tpl_init}-->) {
84        var ids = fnGetIds();
85        location.href = './index.php?init=1&ids=' + ids;
86    } else {
87        <!--{$tpl_onload}-->
88    }
89}
90
91window.onload = init;
92
93//-->
94</script>
95<form name="form1" id="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->">
96<input type="hidden" name="mode" value="cart" />
97<input type="hidden" name="product_id" value="" />
98<input type="hidden" name="cp" value="true" />
99
100<!--{*コンテンツ読込*}-->
101<!--{include file=`$tpl_dir_name`/contents.tpl}-->
102
103</form>
104
105<!--{*フッター読込*}-->
106<!--{include file=`$tpl_dir_name`/footer.tpl}-->
Note: See TracBrowser for help on using the repository browser.