- Timestamp:
- 2013/05/02 18:11:36 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/Smarty/templates/admin/order/product_select.tpl
r22571 r22796 37 37 var class1_id = document.getElementById(class1).value; 38 38 var class2_id = document.getElementById(class2).value; 39 40 39 var product_class_id = document.getElementById("product_class_id" + product_id).value; 41 40 var opner_product_id = 'add_product_id'; 42 41 var opner_product_class_id = 'add_product_class_id'; 43 42 var tpl_no = '<!--{$tpl_no}-->'; 44 var shipping_id = '<!--{$shipping_id}-->';45 43 46 44 if (tpl_no != '') { … … 49 47 fm1.getElementById("no").value = escape('<!--{$tpl_no}-->'); 50 48 } 51 if (shipping_id != '') {52 fm1.getElementById("select_shipping_id").value = escape('<!--{$shipping_id}-->');53 }54 49 if (document.getElementById(class1).type == 'select-one' && class1_id == '__unselected') { 55 50 err_text = class_name1 + "を選択してください。\n"; … … 58 53 err_text = err_text + class_name2 + "を選択してください。\n"; 59 54 } 60 61 if(!class1_id){62 err_text = productsClassCategories[product_id]['__unselected2']['#0']['stock_find'] ? '' : '只今品切れ中です';63 }else if(class1_id && !class2_id){64 err_text = productsClassCategories[product_id][class1_id]['#0']['stock_find'] ? '' : '只今品切れ中です';65 }else{66 err_text = productsClassCategories[product_id][class1_id]['#' + class2_id]['stock_find'] ? '' : '只今品切れ中です';67 }68 69 55 if (err_text != '') { 70 56 alert(err_text); … … 140 126 <input name="anchor_key" type="hidden" value="" /> 141 127 <input name="search_pageno" type="hidden" value="" /> 142 <input name="shipping_id" type="hidden" value="<!--{$shipping_id}-->" />143 128 <input name="no" type="hidden" value="<!--{$tpl_no|h}-->" /> 144 129 <table class="form"> … … 191 176 <!--{assign var=id value=$arrProducts[cnt].product_id}--> 192 177 <form name="product_form<!--{$id|h}-->" action="?" onsubmit="return false;"> 178 <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> 193 179 <!--▼商品<!--{$smarty.section.cnt.iteration}-->--> 194 180 <!--{assign var=status value="`$arrProducts[cnt].status`"}--> … … 198 184 </td> 199 185 <td> 200 <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />201 186 <!--{assign var=codemin value=`$arrProducts[cnt].product_code_min`}--> 202 187 <!--{assign var=codemax value=`$arrProducts[cnt].product_code_max`}--> … … 209 194 </td> 210 195 <td> 211 <!--{$arrProducts[cnt].name|h}--> 212 <!--{assign var=class1 value=classcategory_id`$id`_1}--> 213 <!--{assign var=class2 value=classcategory_id`$id`_2}--> 214 <!--{if $tpl_classcat_find1[$id]}--> 215 <dl> 216 <dt><!--{$tpl_class_name1[$id]|h}-->:</dt> 217 <dd> 218 <select name="classcategory_id1" id="<!--{$class1}-->" style="<!--{$arrErr[$class1]|sfGetErrorColor}-->" onchange="fnSetClassCategories(this.form);"> 219 <!--{html_options options=$arrClassCat1[$id] selected=$arrForm[$class1]}--> 220 </select> 221 <!--{if $arrErr[$class1] != ""}--> 222 <br /><span class="attention">※ <!--{$tpl_class_name1[$id]}-->を入力して下さい。</span> 223 <!--{/if}--> 224 </dd> 225 </dl> 226 <!--{else}--> 227 <input type="hidden" name="<!--{$class1}-->" id="<!--{$class1}-->" value="" /> 228 <!--{/if}--> 229 230 <!--{if $tpl_classcat_find2[$id]}--> 231 <dl> 232 <dt><!--{$tpl_class_name2[$id]|h}-->:</dt> 233 <dd> 234 <select name="classcategory_id2" id="<!--{$class2}-->" style="<!--{$arrErr[$class2]|sfGetErrorColor}-->" onchange="fnCheckStock(this.form);"></select> 235 <!--{if $arrErr[$class2] != ""}--> 236 <br /><span class="attention">※ <!--{$tpl_class_name2[$id]}-->を入力して下さい。</span> 237 <!--{/if}--> 238 </dd> 239 </dl> 240 <!--{else}--> 241 <input type="hidden" name="<!--{$class2}-->" id="<!--{$class2}-->" value="" /> 242 <!--{/if}--> 243 <!--{if !$tpl_stock_find[$id]}--> 244 <div class="attention">只今品切れ中です。</div> 245 <!--{/if}--> 246 <input type="hidden" name="product_id" value="<!--{$id|h}-->" /> 247 <input type="hidden" name="product_class_id<!--{$id|h}-->" id="product_class_id<!--{$id|h}-->" value="<!--{$tpl_product_class_id[$id]}-->" /> 248 <input type="hidden" name="product_type" id="product_type<!--{$id|h}-->" value="<!--{$tpl_product_type[$id]}-->" /> 196 <!--{$arrProducts[cnt].name|h}--> 197 198 <!--{assign var=class1 value=classcategory_id`$id`_1}--> 199 <!--{assign var=class2 value=classcategory_id`$id`_2}--> 200 <!--{if $tpl_classcat_find1[$id]}--> 201 <dl> 202 <dt><!--{$tpl_class_name1[$id]|h}-->:</dt> 203 <dd> 204 <select name="classcategory_id1" id="<!--{$class1}-->" style="<!--{$arrErr[$class1]|sfGetErrorColor}-->" onchange="fnSetClassCategories(this.form);"> 205 <!--{html_options options=$arrClassCat1[$id] selected=$arrForm[$class1]}--> 206 </select> 207 <!--{if $arrErr[$class1] != ""}--> 208 <br /><span class="attention">※ <!--{$tpl_class_name1[$id]}-->を入力して下さい。</span> 209 <!--{/if}--> 210 </dd> 211 </dl> 212 <!--{else}--> 213 <input type="hidden" name="<!--{$class1}-->" id="<!--{$class1}-->" value="" /> 214 <!--{/if}--> 215 216 <!--{if $tpl_classcat_find2[$id]}--> 217 <dl> 218 <dt><!--{$tpl_class_name2[$id]|h}-->:</dt> 219 <dd> 220 <select name="classcategory_id2" id="<!--{$class2}-->" style="<!--{$arrErr[$class2]|sfGetErrorColor}-->" onchange="fnCheckStock(this.form);"></select> 221 <!--{if $arrErr[$class2] != ""}--> 222 <br /><span class="attention">※ <!--{$tpl_class_name2[$id]}-->を入力して下さい。</span> 223 <!--{/if}--> 224 </dd> 225 </dl> 226 <!--{else}--> 227 <input type="hidden" name="<!--{$class2}-->" id="<!--{$class2}-->" value="" /> 228 <!--{/if}--> 229 <input type="hidden" name="product_id" value="<!--{$id|h}-->" /> 230 <input type="hidden" name="product_class_id<!--{$id|h}-->" id="product_class_id<!--{$id|h}-->" value="<!--{$tpl_product_class_id[$id]}-->" /> 231 <input type="hidden" name="product_type" id="product_type<!--{$id|h}-->" value="<!--{$tpl_product_type[$id]}-->" /> 249 232 </td> 250 233 <td class="center"><a href="javascript:;" onclick="return func_submit('<!--{$arrProducts[cnt].product_id}-->', '<!--{$tpl_class_name1[$id]}-->', '<!--{$tpl_class_name2[$id]}-->'); return false;">決定</a></td>
Note: See TracChangeset
for help on using the changeset viewer.