Changeset 23124 for branches/version-2_13-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Mail.php
- Timestamp:
- 2013/08/24 23:33:52 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Mail.php
r22926 r23124 38 38 * @return void 39 39 */ 40 function init()40 public function init() 41 41 { 42 42 parent::init(); … … 57 57 * @return void 58 58 */ 59 function process()59 public function process() 60 60 { 61 61 $this->action(); … … 68 68 * @return void 69 69 */ 70 function action()70 public function action() 71 71 { 72 72 $post = $_POST; 73 73 //一括送信用の処理 74 if (array_key_exists('mail_order_id',$post) and $post['mode'] == 'mail_select') {74 if (array_key_exists('mail_order_id',$post) and $post['mode'] == 'mail_select') { 75 75 $post['order_id_array'] = implode(',',$post['mail_order_id']); 76 } else if(!array_key_exists('order_id_array',$post)){76 } elseif (!array_key_exists('order_id_array',$post)) { 77 77 $post['order_id_array'] = $post['order_id']; 78 78 } 79 79 80 80 //一括送信処理変数チェック(ここですべきかは課題) 81 if (preg_match("/^[0-9|\,]*$/",$post['order_id_array'])) {81 if (preg_match("/^[0-9|\,]*$/",$post['order_id_array'])) { 82 82 $this->order_id_array = $post['order_id_array']; 83 83 } else { … … 88 88 89 89 //メール本文の確認例は初めの1受注とする 90 if (!SC_Utils_Ex::isBlank($this->order_id_array)) {90 if (!SC_Utils_Ex::isBlank($this->order_id_array)) { 91 91 $order_id_array = split(',',$this->order_id_array); 92 92 $post['order_id'] = intval($order_id_array[0]); … … 152 152 * @var int order_id 153 153 */ 154 function getMailHistory($order_id)154 public function getMailHistory($order_id) 155 155 { 156 156 $objQuery =& SC_Query_Ex::getSingletonInstance(); … … 167 167 * @param SC_FormParam $objFormParam 168 168 */ 169 function doSend(&$objFormParam)169 public function doSend(&$objFormParam) 170 170 { 171 171 $arrErr = $objFormParam->checkerror(); … … 175 175 // 注文受付メール(複数受注ID対応) 176 176 $order_id_array = explode(',',$this->order_id_array); 177 foreach ($order_id_array as $order_id) {177 foreach ($order_id_array as $order_id) { 178 178 $objMail = new SC_Helper_Mail_Ex(); 179 179 $objSendMail = $objMail->sfSendOrderMail($order_id, … … 194 194 * @param SC_FormParam $objFormParam 195 195 */ 196 function confirm(&$objFormParam)196 public function confirm(&$objFormParam) 197 197 { 198 198 $arrErr = $objFormParam->checkerror(); … … 212 212 $this->tpl_to = $objSendMail->tpl_to; 213 213 $this->tpl_mainpage = 'order/mail_confirm.tpl'; 214 214 215 return true; 215 216 } … … 223 224 * @param SC_FormParam $objFormParam 224 225 */ 225 function changeData(&$objFormParam)226 public function changeData(&$objFormParam) 226 227 { 227 228 $template_id = $objFormParam->getValue('template_id'); … … 256 257 * @param SC_FormParam $objFormParam 257 258 */ 258 function lfInitParam(&$objFormParam)259 public function lfInitParam(&$objFormParam) 259 260 { 260 261 // 検索条件のパラメーターを初期化
Note: See TracChangeset
for help on using the changeset viewer.