Changeset 22493 for branches/version-2_12-dev/data/Smarty
- Timestamp:
- 2013/02/02 19:25:52 (13 years ago)
- Location:
- branches/version-2_12-dev/data/Smarty/templates/admin/order
- Files:
-
- 2 edited
-
edit.tpl (modified) (9 diffs)
-
product_select.tpl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/Smarty/templates/admin/order/edit.tpl
r22490 r22493 39 39 var shipping_data = $('input[name^=shipping_name01]').attr('name'); 40 40 var shipping_slt = shipping_data.split("shipping_name01"); 41 41 42 42 var shipping_key = "[0]"; 43 43 if(shipping_slt.length > 1) { … … 82 82 } 83 83 84 $(document).ready(function() { 85 if(<!--{$arrForm.shipping_quantity.value}--> > 1){ 86 $("input[name^='quantity[']").attr("disabled","disabled"); 87 } 88 }); 89 84 90 //--> 85 91 </script> … … 92 98 <input type="hidden" id="add_product_id" name="add_product_id" value="" /> 93 99 <input type="hidden" id="add_product_class_id" name="add_product_class_id" value="" /> 100 <input type="hidden" id="select_shipping_id" name="select_shipping_id" value="" /> 94 101 <input type="hidden" id="edit_product_id" name="edit_product_id" value="" /> 95 102 <input type="hidden" id="edit_product_class_id" name="edit_product_class_id" value="" /> … … 274 281 受注商品情報 275 282 <a class="btn-normal" href="javascript:;" name="recalculate" onclick="fnModeSubmit('recalculate','anchor_key','order_products');">計算結果の確認</a> 276 <a class="btn-normal" href="javascript:;" name="add_product" onclick="win03('<!--{$smarty.const.ROOT_URLPATH}--><!--{$smarty.const.ADMIN_DIR}-->order/product_select.php?order_id=<!--{$arrForm.order_id.value|h}-->', 'search', '615', '500'); return false;">商品の追加</a> 283 <!--{if $arrForm.shipping_quantity.value <= 1}--> 284 <a class="btn-normal" href="javascript:;" name="add_product" onclick="win03('<!--{$smarty.const.ROOT_URLPATH}--><!--{$smarty.const.ADMIN_DIR}-->order/product_select.php?order_id=<!--{$arrForm.order_id.value|h}-->&shipping_id=<!--{$top_shipping_id}-->', 'search', '615', '500'); return false;">商品の追加</a> 285 <!--{/if}--> 277 286 </h2> 278 287 … … 303 312 <input type="hidden" name="classcategory_name2[<!--{$product_index}-->]" value="<!--{$arrForm.classcategory_name2.value[$product_index]|h}-->" id="classcategory_name2_<!--{$product_index}-->" /> 304 313 <br /> 305 <a class="btn-normal" href="javascript:;" name="change" onclick="win03('<!--{$smarty.const.ROOT_URLPATH}--><!--{$smarty.const.ADMIN_DIR}-->order/product_select.php?no=<!--{$product_index}-->&order_id=<!--{$arrForm.order_id.value|h}-->', 'search', '615', '500'); return false;">変更</a> 306 <!--{if count($arrForm.quantity.value) > 1}--> 307 <a class="btn-normal" href="javascript:;" name="delete" onclick="fnSetFormVal('form1', 'delete_no', <!--{$product_index}-->); fnModeSubmit('delete_product','anchor_key','order_products'); return false;">削除</a> 314 <!--{if $arrForm.shipping_quantity.value <= 1}--> 315 <a class="btn-normal" href="javascript:;" name="change" onclick="win03('<!--{$smarty.const.ROOT_URLPATH}--><!--{$smarty.const.ADMIN_DIR}-->order/product_select.php?no=<!--{$product_index}-->&order_id=<!--{$arrForm.order_id.value|h}-->&shipping_id=<!--{$top_shipping_id}-->', 'search', '615', '500'); return false;">変更</a> 316 <!--{if count($arrForm.quantity.value) > 1}--> 317 <a class="btn-normal" href="javascript:;" name="delete" onclick="fnSetFormVal('form1', 'delete_no', <!--{$product_index}-->); fnSetFormVal('form1', 'select_shipping_id', '<!--{$top_shipping_id}-->'); fnModeSubmit('delete_product','anchor_key','order_products'); return false;">削除</a> 318 <!--{/if}--> 308 319 <!--{/if}--> 309 320 <input type="hidden" name="product_type_id[<!--{$product_index}-->]" value="<!--{$arrForm.product_type_id.value[$product_index]|h}-->" id="product_type_id_<!--{$product_index}-->" /> … … 429 440 <input type="hidden" name="<!--{$key}-->[<!--{$shipping_index}-->]" value="<!--{$arrShipping[$key]|default:"0"|h}-->" id="<!--{$key}-->_<!--{$shipping_index}-->" /> 430 441 <!--{if $arrForm.shipping_quantity.value > 1}--> 442 <h2>届け先商品情報 <a class="btn-normal" href="javascript:;" name="add_product" onclick="win03('<!--{$smarty.const.ROOT_URLPATH}--><!--{$smarty.const.ADMIN_DIR}-->order/product_select.php?order_id=<!--{$arrForm.order_id.value|h}-->&shipping_id=<!--{$shipping_index}-->', 'search', '615', '500'); return false;">商品の追加</a> 443 </h2> 431 444 <!--{assign var=product_quantity value="shipping_product_quantity"}--> 432 445 <input type="hidden" name="<!--{$product_quantity}-->[<!--{$shipping_index}-->]" value="<!--{$arrShipping[$product_quantity]|h}-->" /> … … 459 472 <input type="hidden" name="<!--{$key3}-->[<!--{$shipping_index}-->][<!--{$item_index}-->]" value="<!--{$arrShipping[$key3][$item_index]|h}-->" /> 460 473 <!--{$arrShipping[$key1][$item_index]|h}-->/<!--{$arrShipping[$key2][$item_index]|default:"(なし)"|h}-->/<!--{$arrShipping[$key3][$item_index]|default:"(なし)"|h}--> 474 <br /> 475 <a class="btn-normal" href="javascript:;" name="change" onclick="win03('<!--{$smarty.const.ROOT_URLPATH}--><!--{$smarty.const.ADMIN_DIR}-->order/product_select.php?no=<!--{$item_index}-->&order_id=<!--{$arrForm.order_id.value|h}-->&shipping_id=<!--{$shipping_index}-->', 'search', '615', '500'); return false;">変更</a> 476 <!--{if count($arrForm.quantity.value) > 1}--> 477 <a class="btn-normal" href="javascript:;" name="delete" onclick="fnSetFormVal('form1', 'delete_no', <!--{$item_index}-->);fnSetFormVal('form1', 'select_shipping_id', <!--{$shipping_index}-->); fnModeSubmit('delete_product','anchor_key','order_products'); return false;">削除</a> 478 <!--{/if}--> 461 479 </td> 462 480 <td class="right"> … … 467 485 <td class="right"> 468 486 <!--{assign var=key value="shipment_quantity"}--> 469 < !--{$arrShipping[$key][$item_index]|h}-->470 <input type=" hidden" name="<!--{$key}-->[<!--{$shipping_index}-->][<!--{$item_index}-->]" value="<!--{$arrShipping[$key][$item_index]|h}-->" />487 <span class="attention"><!--{$arrErr[$key][$shipping_index][$item_index]}--></span> 488 <input type="text" name="<!--{$key}-->[<!--{$shipping_index}-->][<!--{$item_index}-->]" value="<!--{$arrShipping[$key][$item_index]|h}-->" size="3" class="box3" maxlength="<!--{$arrForm[$key].length}-->" /> 471 489 </td> 472 490 </tr> … … 474 492 </table> 475 493 <!--{/if}--> 494 <!--{else}--> 495 <!-- 配送先が1つでも、shipment_itemを更新するために必要 --> 496 <!--{assign var=product_quantity value="shipping_product_quantity"}--> 497 <input type="hidden" name="<!--{$product_quantity}-->[<!--{$shipping_index}-->]" value="<!--{$arrShipping[$product_quantity]|h}-->" /> 498 <!--{section name=item loop=$arrShipping.shipment_product_class_id|@count}--> 499 <!--{assign var=item_index value="`$smarty.section.item.index`"}--> 500 <!--{assign var=key value="shipment_product_class_id"}--> 501 <input type="hidden" name="<!--{$key}-->[<!--{$shipping_index}-->][<!--{$item_index}-->]" value="<!--{$arrShipping[$key][$item_index]|h}-->" /> 502 <!--{assign var=key value="shipment_product_code"}--> 503 <input type="hidden" name="<!--{$key}-->[<!--{$shipping_index}-->][<!--{$item_index}-->]" value="<!--{$arrShipping[$key][$item_index]|h}-->" /> 504 <!--{assign var=key1 value="shipment_product_name"}--> 505 <!--{assign var=key2 value="shipment_classcategory_name1"}--> 506 <!--{assign var=key3 value="shipment_classcategory_name2"}--> 507 <input type="hidden" name="<!--{$key1}-->[<!--{$shipping_index}-->][<!--{$item_index}-->]" value="<!--{$arrShipping[$key1][$item_index]|h}-->" /> 508 <input type="hidden" name="<!--{$key2}-->[<!--{$shipping_index}-->][<!--{$item_index}-->]" value="<!--{$arrShipping[$key2][$item_index]|h}-->" /> 509 <input type="hidden" name="<!--{$key3}-->[<!--{$shipping_index}-->][<!--{$item_index}-->]" value="<!--{$arrShipping[$key3][$item_index]|h}-->" /> 510 <!--{assign var=key value="shipment_price"}--> 511 <input type="hidden" name="<!--{$key}-->[<!--{$shipping_index}-->][<!--{$item_index}-->]" value="<!--{$arrShipping[$key][$item_index]|h}-->" /> 512 <!--{assign var=key value="shipment_quantity"}--> 513 <input type="hidden" name="<!--{$key}-->[<!--{$shipping_index}-->][<!--{$item_index}-->]" value="<!--{$arrShipping[$key][$item_index]|h}-->" /> 514 <!--{/section}--> 476 515 <!--{/if}--> 477 516 -
branches/version-2_12-dev/data/Smarty/templates/admin/order/product_select.tpl
r22491 r22493 42 42 var opner_product_class_id = 'add_product_class_id'; 43 43 var tpl_no = '<!--{$tpl_no}-->'; 44 var shipping_id = '<!--{$shipping_id}-->'; 44 45 45 46 if (tpl_no != '') { … … 47 48 opner_product_class_id = 'edit_product_class_id'; 48 49 fm1.getElementById("no").value = escape('<!--{$tpl_no}-->'); 50 } 51 if (shipping_id != '') { 52 fm1.getElementById("select_shipping_id").value = escape('<!--{$shipping_id}-->'); 49 53 } 50 54 if (document.getElementById(class1).type == 'select-one' && class1_id == '__unselected') { … … 136 140 <input name="anchor_key" type="hidden" value="" /> 137 141 <input name="search_pageno" type="hidden" value="" /> 142 <input name="shipping_id" type="hidden" value="<!--{$shipping_id}-->" /> 138 143 <input name="no" type="hidden" value="<!--{$tpl_no|h}-->" /> 139 144 <table class="form">
Note: See TracChangeset
for help on using the changeset viewer.
