- Timestamp:
- 2012/03/27 11:12:18 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/Smarty/templates/admin/order/index.tpl
r21539 r21687 76 76 fm.action = tmpAction; 77 77 } 78 79 80 function fnSelectMailCheckSubmit(action){ 81 82 var fm = document.form1; 83 84 if (!fm["mail_order_id[]"]) { 85 return false; 86 } 87 88 var checkflag = false; 89 var max = fm["mail_order_id[]"].length; 90 91 if (max) { 92 for (var i=0; i<max; i++) { 93 if(fm["mail_order_id[]"][i].checked == true){ 94 checkflag = true; 95 } 96 } 97 } else { 98 if(fm["mail_order_id[]"].checked == true) { 99 checkflag = true; 100 } 101 } 102 103 if(!checkflag){ 104 alert('チェックボックスが選択されていません'); 105 return false; 106 } 107 108 fm.mode.value="mail_select"; 109 fm.action=action; 110 fm.submit(); 111 } 112 113 78 114 //--> 79 115 </script> … … 305 341 <a class="btn-normal" href="../contents/csv.php?tpl_subno_csv=order">CSV 出力項目設定</a> 306 342 <a class="btn-normal" href="javascript:;" onclick="fnSelectCheckSubmit('pdf.php'); return false;"><span>PDF一括出力</span></a> 343 <a class="btn-normal" href="javascript:;" onclick="fnSelectMailCheckSubmit('mail.php'); return false;"><span>メール一括通知</span></a> 307 344 </div> 308 345 <!--{if count($arrResults) > 0}--> … … 313 350 <table class="list"> 314 351 <col width="10%" /> 315 <col width=" 10%" />352 <col width="8%" /> 316 353 <col width="15%" /> 317 <col width=" 10%" />354 <col width="8%" /> 318 355 <col width="10%" /> 319 356 <col width="10%" /> … … 321 358 <col width="10%" /> 322 359 <col width="5%" /> 323 <col width=" 5%" />360 <col width="9%" /> 324 361 <col width="5%" /> 325 362 <!--{* ペイジェントモジュール連携用 *}--> … … 338 375 <th><label for="pdf_check">帳票</label> <input type="checkbox" name="pdf_check" id="pdf_check" onclick="fnAllCheck(this, 'input[name=pdf_order_id[]]')" /></th> 339 376 <th>編集</th> 340 <th>メール </th>377 <th>メール <input type="checkbox" name="mail_check" id="mail_check" onclick="fnAllCheck(this, 'input[name=mail_order_id[]]')" /></th> 341 378 <th>削除</th> 342 379 </tr> … … 360 397 <td class="center"> 361 398 <!--{if $arrResults[cnt].order_email|strlen >= 1}--> 362 <a href="?" onclick="fnChangeAction('<!--{$smarty.const.ADMIN_ORDER_MAIL_URLPATH}-->'); fnModeSubmit('pre_edit', 'order_id', '<!--{$arrResults[cnt].order_id}-->'); return false;"><span class="icon_mail">通知</span></a> 399 <input type="checkbox" name="mail_order_id[]" value="<!--{$arrResults[cnt].order_id}-->" id="mail_order_id_<!--{$arrResults[cnt].order_id}-->"/><label for="mail_order_id_<!--{$arrResults[cnt].order_id}-->">一括通知</label><br> 400 <a href="?" onclick="fnChangeAction('<!--{$smarty.const.ADMIN_ORDER_MAIL_URLPATH}-->'); fnModeSubmit('pre_edit', 'order_id', '<!--{$arrResults[cnt].order_id}-->'); return false;"><span class="icon_mail">個別通知</span></a> 363 401 <!--{/if}--> 364 402 </td>
Note: See TracChangeset
for help on using the changeset viewer.