- Timestamp:
- 2007/10/29 12:06:29 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/data/Smarty/templates/default/campaign/index.tpl
r16496 r16582 1 <!--{* 2 /* 3 * This file is part of EC-CUBE 4 * 5 * Copyright(c) 2000-2007 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 *}--> 1 24 <!--{*ヘッダー読込*}--> 2 25 <!--{include file=`$tpl_dir_name`/header.tpl}--> … … 10 33 // セレクトボックスに項目を割り当てる。 11 34 function lnSetSelect(name1, name2, id, val) { 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 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 } 35 58 } 36 59 37 60 // 全商品IDを取得する 38 61 function fnGetIds() { 39 40 41 62 var change_tag = document.getElementsByTagName("div"); 63 var ids = ""; 64 var count = 0; 42 65 43 44 45 46 47 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("_"); 48 71 49 if (count > 0) ids += '-';50 51 52 53 54 55 72 if (count > 0) ids += '-'; 73 ids += arrIds[2]; 74 count ++; 75 } 76 } 77 78 return ids; 56 79 } 57 80 58 81 // 読込後に実行する(on_load) 59 82 function init() { 60 61 62 63 64 65 83 if(<!--{$tpl_init}-->) { 84 var ids = fnGetIds(); 85 location.href = './index.php?init=1&ids=' + ids; 86 } else { 87 <!--{$tpl_onload}--> 88 } 66 89 } 67 90
Note: See TracChangeset
for help on using the changeset viewer.