Ignore:
Timestamp:
2013/05/02 18:11:36 (11 years ago)
Author:
h_yoshimoto
Message:

#2236 2.12.3リリース以降の2.12-devへのコミット差し戻し

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/Smarty/templates/admin/order/product_select.tpl

    r22571 r22796  
    3737        var class1_id = document.getElementById(class1).value; 
    3838        var class2_id = document.getElementById(class2).value; 
    39  
    4039        var product_class_id = document.getElementById("product_class_id" + product_id).value; 
    4140        var opner_product_id = 'add_product_id'; 
    4241        var opner_product_class_id = 'add_product_class_id'; 
    4342        var tpl_no = '<!--{$tpl_no}-->'; 
    44         var shipping_id = '<!--{$shipping_id}-->'; 
    4543 
    4644        if (tpl_no != '') { 
     
    4947            fm1.getElementById("no").value = escape('<!--{$tpl_no}-->'); 
    5048        } 
    51         if (shipping_id != '') { 
    52             fm1.getElementById("select_shipping_id").value = escape('<!--{$shipping_id}-->'); 
    53         } 
    5449        if (document.getElementById(class1).type == 'select-one' && class1_id == '__unselected') { 
    5550            err_text = class_name1 + "を選択してください。\n"; 
     
    5853            err_text = err_text + class_name2 + "を選択してください。\n"; 
    5954        } 
    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  
    6955        if (err_text != '') { 
    7056            alert(err_text); 
     
    140126<input name="anchor_key" type="hidden" value="" /> 
    141127<input name="search_pageno" type="hidden" value="" /> 
    142 <input name="shipping_id" type="hidden" value="<!--{$shipping_id}-->" /> 
    143128<input name="no" type="hidden" value="<!--{$tpl_no|h}-->" /> 
    144129<table class="form"> 
     
    191176            <!--{assign var=id value=$arrProducts[cnt].product_id}--> 
    192177            <form name="product_form<!--{$id|h}-->" action="?" onsubmit="return false;"> 
     178                <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> 
    193179                <!--▼商品<!--{$smarty.section.cnt.iteration}-->--> 
    194180                <!--{assign var=status value="`$arrProducts[cnt].status`"}--> 
     
    198184                    </td> 
    199185                    <td> 
    200                         <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> 
    201186                        <!--{assign var=codemin value=`$arrProducts[cnt].product_code_min`}--> 
    202187                        <!--{assign var=codemax value=`$arrProducts[cnt].product_code_max`}--> 
     
    209194                    </td> 
    210195                    <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]}-->" /> 
    249232                    </td> 
    250233                    <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.