Changeset 17412
- Timestamp:
- 2008/07/09 18:42:20 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/Smarty/templates/default/list.tpl
r17263 r17412 23 23 // セレクトボックスに項目を割り当てる。 24 24 function lnSetSelect(name1, name2, id, val) { 25 sele1 = document.form1[name1]; 26 sele2 = document.form1[name2]; 27 lists = eval('lists' + id); 28 vals = eval('vals' + id); 29 30 if(sele1 && sele2) { 31 index = sele1.selectedIndex; 32 33 // セレクトボックスのクリア 34 count = sele2.options.length; 35 for(i = count; i >= 0; i--) { 36 sele2.options[i] = null; 37 } 38 39 // セレクトボックスに値を割り当てる 40 len = lists[index].length; 41 for(i = 0; i < len; i++) { 42 sele2.options[i] = new Option(lists[index][i], vals[index][i]); 43 if(val != "" && vals[index][i] == val) { 44 sele2.options[i].selected = true; 45 } 46 } 25 sele1 = document.form1[name1]; 26 sele2 = document.form1[name2]; 27 lists = eval('lists' + id); 28 vals = eval('vals' + id); 29 30 if(sele1 && sele2) { 31 index = sele1.selectedIndex; 32 33 // セレクトボックスのクリア 34 count = sele2.options.length; 35 for(i = count; i >= 0; i--) { 36 sele2.options[i] = null; 47 37 } 38 39 // セレクトボックスに値を割り当てる 40 len = lists[index].length; 41 for(i = 0; i < len; i++) { 42 sele2.options[i] = new Option(lists[index][i], vals[index][i]); 43 if(val != "" && vals[index][i] == val) { 44 sele2.options[i].selected = true; 45 } 46 } 47 } 48 48 } 49 49 //]]> … … 52 52 <!--▼CONTENTS--> 53 53 <div id="undercolumn"> 54 <form name="form1" id="form1" method="post" action="<!--{$smarty.server.REQUEST_URI|escape}-->"> 55 <input type="hidden" name="pageno" value="<!--{$tpl_pageno}-->" /> 56 <input type="hidden" name="mode" value="" /> 57 <input type="hidden" name="orderby" value="<!--{$orderby}-->" /> 58 <input type="hidden" name="product_id" value="" /> 59 <div id="listtitle"><h2><!--★タイトル★--><!--{$tpl_subtitle}--></h2></div> 60 <!--検索条件ここから--> 61 <!--{if $tpl_subtitle == "検索結果"}--> 62 <ul class="pagecondarea"> 63 <li><strong>商品カテゴリ:</strong><!--{$arrSearch.category|escape}--></li> 64 <!--{if $arrSearch.maker}--><li><strong>メーカー:</strong><!--{$arrSearch.maker|escape}--></li><!--{/if}--> 65 <li><strong>商品名:</strong><!--{$arrSearch.name|escape}--></li> 66 </ul> 67 <!--{/if}--> 68 <!--検索条件ここまで--> 69 70 <!--件数ここから--> 71 <!--{if $tpl_linemax > 0}--> 72 <ul class="pagenumberarea"> 73 <li class="left"><span class="pagenumber"><!--{$tpl_linemax}--></span>件の商品がございます。</li> 74 <li class="center"><!--{$tpl_strnavi}--></li> 75 <li class="right"><!--{if $orderby != 'price'}--> 76 <a href="javascript:fnModeSubmit('', 'orderby', 'price')">価格順</a> 77 <!--{else}--> 78 <strong>価格順</strong> 79 <!--{/if}--> 80 <!--{if $orderby != "date"}--> 81 <a href="javascript:fnModeSubmit('', 'orderby', 'date')">新着順</a> 82 <!--{else}--> 83 <strong>新着順</strong> 84 <!--{/if}--> 85 </li> 86 </ul><!--件数ここまで--> 87 <!--{else}--> 88 <!--{include file="frontparts/search_zero.tpl"}--> 89 <!--{/if}--> 90 91 <!--{section name=cnt loop=$arrProducts}--> 92 <!--{assign var=id value=$arrProducts[cnt].product_id}--> 93 <!--▼商品ここから--> 94 <div class="listarea"> 95 <div class="listphoto"> 96 <!--★画像★--> 97 <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrProducts[cnt].product_id}-->" class="over"><!--商品写真--><img src="<!--{$smarty.const.IMAGE_SAVE_URL|sfTrimURL}-->/<!--{$arrProducts[cnt].main_list_image}-->" alt="<!--{$arrProducts[cnt].name|escape}-->" class="picture" /></a> 98 </div> 99 <div class="listrightblock"> 100 <!--アイコン--> 101 <!--商品ステータス--> 102 <!--{if count($arrProducts[cnt].product_flag) > 0}--> 103 <ul> 104 <!--{section name=flg loop=$arrProducts[cnt].product_flag|count_characters}--> 105 <!--{if $arrProducts[cnt].product_flag[flg] == "1"}--> 106 <!--{assign var=key value="`$smarty.section.flg.iteration`"}--> 107 <li><img src="<!--{$TPL_DIR}--><!--{$arrSTATUS_IMAGE[$key]}-->" width="65" height="17" alt="<!--{$arrSTATUS[$key]}-->"/></li> 108 <!--{assign var=sts_cnt value=$sts_cnt+1}--> 109 <!--{/if}--> 110 <!--{/section}--> 111 </ul> 112 <!--{/if}--> 113 <!--商品ステータス--> 114 <!--アイコン--> 115 <!--★商品名★--> 116 <h3> 117 <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrProducts[cnt].product_id}-->"><!--{$arrProducts[cnt].name|escape}--></a> 118 </h3> 119 <p class="listcomment"><!--★コメント★--><!--{$arrProducts[cnt].main_list_comment|escape|nl2br}--></p> 120 <p> 121 <span class="pricebox">価格<span class="mini">(税込)</span>: 122 <span class="price"> 123 <!--{if $arrProducts[cnt].price02_min == $arrProducts[cnt].price02_max}--> 124 <!--{$arrProducts[cnt].price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}--> 125 <!--{else}--> 126 <!--{$arrProducts[cnt].price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->〜<!--{$arrProducts[cnt].price02_max|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}--> 127 <!--{/if}-->円</span></span> 128 <span class="btnbox"><!--★詳細ボタン★--> 129 <!--{assign var=name value="detail`$smarty.section.cnt.iteration`"}--> 130 <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrProducts[cnt].product_id}-->" onmouseover="chgImg('<!--{$TPL_DIR}-->img/products/b_detail_on.gif','<!--{$name}-->');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/products/b_detail.gif','<!--{$name}-->');"> 131 <img src="<!--{$TPL_DIR}-->img/products/b_detail.gif" width="115" height="25" alt="詳しくはこちら" name="<!--{$name}-->" id="<!--{$name}-->" /> 132 </a> 133 </span> 134 </p> 135 136 <!--{if $arrProducts[cnt].stock_max == 0 && $arrProducts[cnt].stock_unlimited_max != 1}--> 137 <p class="soldout"><em>申し訳ございませんが、只今品切れ中です。</em></p> 138 <!--{else}--> 139 <!--▼買い物かご--> 140 <div class="in_cart"> 141 <dl> 142 143 <!--{assign var=class1 value=classcategory_id`$id`_1}--> 144 <!--{assign var=class2 value=classcategory_id`$id`_2}--> 145 <!--{if $tpl_classcat_find1[$id]}--> 146 <dt><!--{$tpl_class_name1[$id]|escape}-->:</dt> 147 <dd> 148 <select name="<!--{$class1}-->" style="<!--{$arrErr[$class1]|sfGetErrorColor}-->" onchange="lnSetSelect('<!--{$class1}-->', '<!--{$class2}-->', '<!--{$id}-->','');"> 149 <option value="">選択してください</option> 150 <!--{html_options options=$arrClassCat1[$id] selected=$arrForm[$class1]}--> 151 </select> 152 <!--{if $arrErr[$class1] != ""}--> 153 <br /><span class="attention">※ <!--{$tpl_class_name1[$id]}-->を入力して下さい。</span> 154 <!--{/if}--> 155 </dd> 156 <!--{/if}--> 157 <!--{if $tpl_classcat_find2[$id]}--> 158 <dt><!--{$tpl_class_name2[$id]|escape}-->:</dt> 159 <dd> 160 <select name="<!--{$class2}-->" style="<!--{$arrErr[$class2]|sfGetErrorColor}-->"> 161 <option value="">選択してください</option> 162 </select> 163 <!--{if $arrErr[$class2] != ""}--> 164 <br /><span class="attention">※ <!--{$tpl_class_name2[$id]}-->を入力して下さい。</span> 165 <!--{/if}--> 166 </dd> 167 <!--{/if}--> 168 169 <!--{assign var=quantity value=quantity`$id`}--> 170 <dt>個数:</dt> 171 <dd><input type="text" name="<!--{$quantity}-->" size="3" class="box54" value="<!--{$arrForm[$quantity]|default:1}-->" maxlength="<!--{$smarty.const.INT_LEN}-->" style="<!--{$arrErr[$quantity]|sfGetErrorColor}-->" /> 172 <!--{if $arrErr[$quantity] != ""}--> 173 <br /><span class="attention"><!--{$arrErr[$quantity]}--></span> 174 <!--{/if}--> 175 </dd> 176 </dl> 177 <div class="cartbtn"> 178 <a href="<!--{$smarty.server.REQUEST_URI|escape}-->#product<!--{$id}-->" onclick="fnChangeAction('<!--{$smarty.server.REQUEST_URI|escape}-->#product<!--{$id}-->'); fnModeSubmit('cart','product_id','<!--{$id}-->'); return false;" onmouseover="chgImg('<!--{$TPL_DIR}-->img/products/b_cartin_on.gif','cart<!--{$id}-->');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/products/b_cartin.gif','cart<!--{$id}-->');"> 179 <img src="<!--{$TPL_DIR}-->img/products/b_cartin.gif" width="115" height="25" alt="カゴに入れる" name="cart<!--{$id}-->" id="cart<!--{$id}-->" /> 180 </a> 181 </div> 182 </div> 183 <!--▲買い物かご--> 184 <!--{/if}--> 185 </div> 186 </div> 187 <!--{/section}--> 188 189 <!--件数ここから--> 190 <!--{if $tpl_linemax > 0}--> 191 <ul class="pagenumberarea"> 192 <li class="left"><span class="pagenumber"><!--{$tpl_linemax}--></span>件の商品がございます。</li> 193 <li class="center"><!--{$tpl_strnavi}--></li> 194 <li class="right"><!--{if $orderby != 'price'}--> 195 <a href="javascript:fnModeSubmit('', 'orderby', 'price')">価格順</a> 196 <!--{else}--> 197 <strong>価格順</strong> 198 <!--{/if}--> 199 <!--{if $orderby != "date"}--> 200 <a href="javascript:fnModeSubmit('', 'orderby', 'date')">新着順</a> 201 <!--{else}--> 202 <strong>新着順</strong> 203 <!--{/if}--> 204 </li> 205 </ul><!--件数ここまで--> 206 <!--{/if}--> 207 </form> 54 <form name="form1" id="form1" method="post" action="<!--{$smarty.server.REQUEST_URI|escape}-->"> 55 <input type="hidden" name="pageno" value="<!--{$tpl_pageno}-->" /> 56 <input type="hidden" name="mode" value="" /> 57 <input type="hidden" name="orderby" value="<!--{$orderby}-->" /> 58 <input type="hidden" name="product_id" value="" /> 59 60 <!--★タイトル★--> 61 <div id="listtitle"><h2><!--{$tpl_subtitle}--></h2></div> 62 63 <!--▼検索条件--> 64 <!--{if $tpl_subtitle == "検索結果"}--> 65 <ul class="pagecondarea"> 66 <li><strong>商品カテゴリ:</strong><!--{$arrSearch.category|escape}--></li> 67 <!--{if $arrSearch.maker}--><li><strong>メーカー:</strong><!--{$arrSearch.maker|escape}--></li><!--{/if}--> 68 <li><strong>商品名:</strong><!--{$arrSearch.name|escape}--></li> 69 </ul> 70 <!--{/if}--> 71 <!--▲検索条件--> 72 73 <!--▼件数--> 74 <!--{if $tpl_linemax > 0}--> 75 <ul class="pagenumberarea"> 76 <li class="left"><span class="pagenumber"><!--{$tpl_linemax}--></span>件の商品がございます。</li> 77 <li class="center"><!--{$tpl_strnavi}--></li> 78 <li class="right"><!--{if $orderby != 'price'}--> 79 <a href="javascript:fnModeSubmit('', 'orderby', 'price')">価格順</a> 80 <!--{else}--> 81 <strong>価格順</strong> 82 <!--{/if}--> 83 <!--{if $orderby != "date"}--> 84 <a href="javascript:fnModeSubmit('', 'orderby', 'date')">新着順</a> 85 <!--{else}--> 86 <strong>新着順</strong> 87 <!--{/if}--> 88 </li> 89 </ul> 90 <!--{else}--> 91 <!--{include file="frontparts/search_zero.tpl"}--> 92 <!--{/if}--> 93 <!--▲件数--> 94 95 <!--{section name=cnt loop=$arrProducts}--> 96 <!--{assign var=id value=$arrProducts[cnt].product_id}--> 97 <!--▼商品--> 98 <div class="listarea"> 99 <div class="listphoto"> 100 <!--★画像★--> 101 <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrProducts[cnt].product_id}-->" class="over"><!--商品写真--><img src="<!--{$smarty.const.IMAGE_SAVE_URL|sfTrimURL}-->/<!--{$arrProducts[cnt].main_list_image}-->" alt="<!--{$arrProducts[cnt].name|escape}-->" class="picture" /></a> 102 </div> 103 104 <div class="listrightblock"> 105 <!--アイコン--> 106 <!--商品ステータス--> 107 <!--{if count($arrProducts[cnt].product_flag) > 0}--> 108 <ul> 109 <!--{section name=flg loop=$arrProducts[cnt].product_flag|count_characters}--> 110 <!--{if $arrProducts[cnt].product_flag[flg] == "1"}--> 111 <!--{assign var=key value="`$smarty.section.flg.iteration`"}--> 112 <li><img src="<!--{$TPL_DIR}--><!--{$arrSTATUS_IMAGE[$key]}-->" width="65" height="17" alt="<!--{$arrSTATUS[$key]}-->"/></li> 113 <!--{assign var=sts_cnt value=$sts_cnt+1}--> 114 <!--{/if}--> 115 <!--{/section}--> 116 </ul> 117 <!--{/if}--> 118 <!--商品ステータス--> 119 <!--アイコン--> 120 121 <!--★商品名★--> 122 <h3> 123 <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrProducts[cnt].product_id}-->"><!--{$arrProducts[cnt].name|escape}--></a> 124 </h3> 125 126 <!--★コメント★--> 127 <p class="listcomment"><!--{$arrProducts[cnt].main_list_comment|escape|nl2br}--></p> 128 129 <p> 130 <span class="pricebox"> 131 価格<span class="mini">(税込)</span>: 132 <span class="price"> 133 <!--{if $arrProducts[cnt].price02_min == $arrProducts[cnt].price02_max}--> 134 <!--{$arrProducts[cnt].price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}--> 135 <!--{else}--> 136 <!--{$arrProducts[cnt].price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}--><!--{$arrProducts[cnt].price02_max|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}--> 137 <!--{/if}-->円</span> 138 </span> 139 140 <!--★詳細ボタン★--> 141 <span class="btnbox"> 142 <!--{assign var=name value="detail`$smarty.section.cnt.iteration`"}--> 143 <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrProducts[cnt].product_id}-->" onmouseover="chgImg('<!--{$TPL_DIR}-->img/products/b_detail_on.gif','<!--{$name}-->');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/products/b_detail.gif','<!--{$name}-->');"> 144 <img src="<!--{$TPL_DIR}-->img/products/b_detail.gif" width="115" height="25" alt="詳しくはこちら" name="<!--{$name}-->" id="<!--{$name}-->" /> 145 </a> 146 </span> 147 </p> 148 149 <!--{if $arrProducts[cnt].stock_max == 0 && $arrProducts[cnt].stock_unlimited_max != 1}--> 150 <p class="soldout"><em>申し訳ございませんが、只今品切れ中です。</em></p> 151 <!--{else}--> 152 <!--▼買い物かご--> 153 <div class="in_cart"> 154 <!--{assign var=class1 value=classcategory_id`$id`_1}--> 155 <!--{assign var=class2 value=classcategory_id`$id`_2}--> 156 <dl> 157 <!--{if $tpl_classcat_find1[$id]}--> 158 <dt><!--{$tpl_class_name1[$id]|escape}-->:</dt> 159 <dd> 160 <select name="<!--{$class1}-->" style="<!--{$arrErr[$class1]|sfGetErrorColor}-->" onchange="lnSetSelect('<!--{$class1}-->', '<!--{$class2}-->', '<!--{$id}-->','');"> 161 <option value="">選択してください</option> 162 <!--{html_options options=$arrClassCat1[$id] selected=$arrForm[$class1]}--> 163 </select> 164 <!--{if $arrErr[$class1] != ""}--> 165 <br /><span class="attention">※ <!--{$tpl_class_name1[$id]}-->を入力して下さい。</span> 166 <!--{/if}--> 167 </dd> 168 <!--{/if}--> 169 <!--{if $tpl_classcat_find2[$id]}--> 170 <dt><!--{$tpl_class_name2[$id]|escape}-->:</dt> 171 <dd> 172 <select name="<!--{$class2}-->" style="<!--{$arrErr[$class2]|sfGetErrorColor}-->"> 173 <option value="">選択してください</option> 174 </select> 175 <!--{if $arrErr[$class2] != ""}--> 176 <br /><span class="attention">※ <!--{$tpl_class_name2[$id]}-->を入力して下さい。</span> 177 <!--{/if}--> 178 </dd> 179 <!--{/if}--> 180 181 <!--{assign var=quantity value=quantity`$id`}--> 182 <dt>個数:</dt> 183 <dd> 184 <input type="text" name="<!--{$quantity}-->" size="3" class="box54" value="<!--{$arrForm[$quantity]|default:1}-->" maxlength="<!--{$smarty.const.INT_LEN}-->" style="<!--{$arrErr[$quantity]|sfGetErrorColor}-->" /> 185 <!--{if $arrErr[$quantity] != ""}--> 186 <br /><span class="attention"><!--{$arrErr[$quantity]}--></span> 187 <!--{/if}--> 188 </dd> 189 </dl> 190 <div class="cartbtn"> 191 <a href="<!--{$smarty.server.REQUEST_URI|escape}-->#product<!--{$id}-->" onclick="fnChangeAction('<!--{$smarty.server.REQUEST_URI|escape}-->#product<!--{$id}-->'); fnModeSubmit('cart','product_id','<!--{$id}-->'); return false;" onmouseover="chgImg('<!--{$TPL_DIR}-->img/products/b_cartin_on.gif','cart<!--{$id}-->');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/products/b_cartin.gif','cart<!--{$id}-->');"> 192 <img src="<!--{$TPL_DIR}-->img/products/b_cartin.gif" width="115" height="25" alt="カゴに入れる" name="cart<!--{$id}-->" id="cart<!--{$id}-->" /> 193 </a> 194 </div> 195 </div> 196 <!--▲買い物かご--> 197 <!--{/if}--> 198 199 </div> 200 </div> 201 <!--▲商品--> 202 <!--{/section}--> 203 204 <!--▼件数--> 205 <!--{if $tpl_linemax > 0}--> 206 <ul class="pagenumberarea"> 207 <li class="left"><span class="pagenumber"><!--{$tpl_linemax}--></span>件の商品がございます。</li> 208 <li class="center"><!--{$tpl_strnavi}--></li> 209 <li class="right"> 210 <!--{if $orderby != 'price'}--> 211 <a href="javascript:fnModeSubmit('', 'orderby', 'price')">価格順</a> 212 <!--{else}--> 213 <strong>価格順</strong> 214 <!--{/if}--> 215 <!--{if $orderby != "date"}--> 216 <a href="javascript:fnModeSubmit('', 'orderby', 'date')">新着順</a> 217 <!--{else}--> 218 <strong>新着順</strong> 219 <!--{/if}--> 220 </li> 221 </ul> 222 <!--{/if}--> 223 <!--▲件数--> 224 </form> 208 225 </div> 209 226 <!--▲CONTENTS-->
Note: See TracChangeset
for help on using the changeset viewer.