Changeset 21734 for branches/version-2_12-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Mail.php
- Timestamp:
- 2012/04/11 02:58:27 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Mail.php
r21693 r21734 74 74 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 75 75 $objPlugin->doAction('LC_Page_Admin_Order_Mail_action_before', array($this)); 76 76 77 77 //一括送信用の処理 78 if (array_key_exists("mail_order_id",$_POST) and $_POST['mode'] == 'mail_select'){79 $_POST['order_id_array'] = implode( ",",$_POST['mail_order_id']);80 } else if(!array_key_exists("order_id_array",$_POST)){78 if (array_key_exists('mail_order_id',$_POST) and $_POST['mode'] == 'mail_select'){ 79 $_POST['order_id_array'] = implode(',',$_POST['mail_order_id']); 80 } else if(!array_key_exists('order_id_array',$_POST)){ 81 81 $_POST['order_id_array'] = $_POST['order_id']; 82 82 } 83 84 83 84 85 85 //一括送信処理変数チェック(ここですべきかは課題) 86 if (preg_match("/^[0-9|\,]*$/",$_POST['order_id_array'])){86 if (preg_match("/^[0-9|\,]*$/",$_POST['order_id_array'])){ 87 87 $this->order_id_array = $_POST['order_id_array']; 88 } else{88 } else { 89 89 //エラーで元に戻す 90 90 SC_Response_Ex::sendRedirect(ADMIN_ORDER_URLPATH); 91 91 exit; 92 92 } 93 93 94 94 //メール本文の確認例は初めの1受注とする 95 if ($this->order_id_array){96 $order_id_array = split( ",",$this->order_id_array);95 if ($this->order_id_array){ 96 $order_id_array = split(',',$this->order_id_array); 97 97 $_POST['order_id'] = intval($order_id_array[0]); 98 98 $this->order_id_count = count($order_id_array); 99 99 } 100 100 101 101 // パラメーター管理クラス 102 102 $objFormParam = new SC_FormParam_Ex(); … … 179 179 function doSend(&$objFormParam) { 180 180 $arrErr = $objFormParam->checkerror(); 181 181 182 182 // メールの送信 183 183 if (count($arrErr) == 0) { 184 184 // 注文受付メール(複数受注ID対応) 185 $order_id_array = explode( ",",$this->order_id_array);186 foreach ($order_id_array as $order_id){185 $order_id_array = explode(',',$this->order_id_array); 186 foreach ($order_id_array as $order_id){ 187 187 $objMail = new SC_Helper_Mail_Ex(); 188 188 $objSendMail = $objMail->sfSendOrderMail($order_id,
Note: See TracChangeset
for help on using the changeset viewer.