Changeset 22114
- Timestamp:
- 2012/12/01 17:15:33 (11 years ago)
- Location:
- branches/version-2_12-dev/data
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/Smarty/templates/admin/order/status.tpl
r21867 r22114 102 102 <!--{/section}--> 103 103 </table> 104 <input type="hidden" name="move[]" value="" />105 104 106 105 <p><!--{$tpl_strnavi}--></p> … … 120 119 <!-- 121 120 function fnSelectCheckSubmit(){ 122 123 121 var selectflag = 0; 124 122 var fm = document.form1; 125 123 126 if (fm.change_status.options[document.form1.change_status.selectedIndex].value == ""){127 selectflag = 1;124 if (fm.change_status.options[document.form1.change_status.selectedIndex].value == "") { 125 selectflag = 1; 128 126 } 129 127 130 if (selectflag == 1){128 if (selectflag == 1) { 131 129 alert('セレクトボックスが選択されていません'); 132 130 return false; … … 136 134 var max = fm["move[]"].length; 137 135 138 if (max) {136 if (max) { 139 137 for (i=0;i<max;i++){ 140 if(fm["move[]"][i].checked == true) {138 if(fm["move[]"][i].checked == true) { 141 139 checkflag = 1; 142 140 } 143 141 } 144 142 } else { 145 if (fm["move[]"].checked == true) {143 if (fm["move[]"].checked == true) { 146 144 checkflag = 1; 147 145 } 148 146 } 149 147 150 if (checkflag == 0){148 if (checkflag == 0){ 151 149 alert('チェックボックスが選択されていません'); 152 150 return false; 153 151 } 154 152 155 if (selectflag == 0 && checkflag == 1){156 document.form1.mode.value = 'update';157 document.form1.submit();153 if (selectflag == 0 && checkflag == 1) { 154 document.form1.mode.value = 'update'; 155 document.form1.submit(); 158 156 } 159 157 } -
branches/version-2_12-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Status.php
r21867 r22114 83 83 84 84 $this->arrForm = $objFormParam->getHashArray(); 85 // $this->arrForm = $_POST;86 85 87 86 //支払方法の取得 … … 91 90 case 'update': 92 91 switch ($objFormParam->getValue('change_status')) { 93 case '': 94 break; 95 // 削除 92 // 削除 96 93 case 'delete': 97 94 $this->lfDelete($objFormParam->getValue('move')); 98 95 break; 99 96 // 更新 100 97 default: 101 98 $this->lfStatusMove($objFormParam->getValue('change_status'), $objFormParam->getValue('move')); 102 99 break; 103 100 } 104 105 // 対応状況106 $status = !is_null($objFormParam->getValue('status')) ? $objFormParam->getValue('status') : '';107 101 break; 108 102 109 103 case 'search': 110 // 対応状況 111 $status = !is_null($_POST['status']) ? $objFormParam->getValue('status') : ''; 104 default: 112 105 break; 113 114 default: 115 // 対応状況 106 } 107 108 // 対応状況 109 $status = $objFormParam->getValue('status'); 110 if (strlen($status) === 0) { 116 111 //デフォルトで新規受付一覧表示 117 112 $status = ORDER_NEW; 118 break; 119 } 120 121 // 対応状況 113 } 122 114 $this->SelectedStatus = $status; 123 115 //検索結果の表示 … … 133 125 $objFormParam->addParam('注文番号', 'order_id', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); 134 126 $objFormParam->addParam('変更前対応状況', 'status', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); 135 $objFormParam->addParam('変更後対応状況', 'change_status', STEXT_LEN, 'KVa', array('MAX_LENGTH_CHECK', 'NUM_CHECK'));136 127 $objFormParam->addParam('ページ番号', 'search_pageno', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); 137 $objFormParam->addParam('移動注文番号', 'move', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); 128 if ($this->getMode() == 'update') { 129 $objFormParam->addParam('変更後対応状況', 'change_status', STEXT_LEN, 'KVa', array('EXIST_CHECK', 'MAX_LENGTH_CHECK', 'NUM_CHECK')); 130 $objFormParam->addParam('移動注文番号', 'move', INT_LEN, 'n', array('EXIST_CHECK', 'MAX_LENGTH_CHECK', 'NUM_CHECK')); 131 } 138 132 } 139 133 … … 149 143 $objFormParam->setValue('search_pageno', 1); 150 144 } 151 152 if ($this->getMode() == 'change') {153 if (is_null($objFormParam->getValue('change_status'))) {154 $objFormParam->setValue('change_status','');155 }156 }157 158 145 } 159 146
Note: See TracChangeset
for help on using the changeset viewer.