Ignore:
Timestamp:
2012/04/11 02:58:27 (12 years ago)
Author:
Seasoft
Message:

#1613 (typo修正・ソース整形・ソースコメントの改善)

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  
    7474        $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 
    7575        $objPlugin->doAction('LC_Page_Admin_Order_Mail_action_before', array($this)); 
    76          
     76 
    7777        //一括送信用の処理 
    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)){ 
    8181            $_POST['order_id_array'] = $_POST['order_id']; 
    8282        } 
    83          
    84          
     83 
     84 
    8585        //一括送信処理変数チェック(ここですべきかは課題) 
    86         if(preg_match("/^[0-9|\,]*$/",$_POST['order_id_array'])){ 
     86        if (preg_match("/^[0-9|\,]*$/",$_POST['order_id_array'])){ 
    8787            $this->order_id_array = $_POST['order_id_array']; 
    88         }else{ 
     88        } else { 
    8989            //エラーで元に戻す 
    9090            SC_Response_Ex::sendRedirect(ADMIN_ORDER_URLPATH); 
    9191            exit; 
    9292        } 
    93          
     93 
    9494        //メール本文の確認例は初めの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); 
    9797            $_POST['order_id'] = intval($order_id_array[0]); 
    9898            $this->order_id_count = count($order_id_array); 
    9999        } 
    100          
     100 
    101101        // パラメーター管理クラス 
    102102        $objFormParam = new SC_FormParam_Ex(); 
     
    179179    function doSend(&$objFormParam) { 
    180180        $arrErr = $objFormParam->checkerror(); 
    181          
     181 
    182182        // メールの送信 
    183183        if (count($arrErr) == 0) { 
    184184            // 注文受付メール(複数受注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){ 
    187187                $objMail = new SC_Helper_Mail_Ex(); 
    188188                $objSendMail = $objMail->sfSendOrderMail($order_id, 
Note: See TracChangeset for help on using the changeset viewer.