Ignore:
Timestamp:
2010/05/05 20:11:17 (14 years ago)
Author:
Seasoft
Message:

#698(メルマガ配信に誤りがある) 改修

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/class/pages/admin/mail/LC_Page_Admin_Mail_History.php

    r18234 r18631  
    5858     */ 
    5959    function process() { 
    60         //---- ページ初期設定 
     60        // ページ初期設定 
    6161        $conn = new SC_DBConn(); 
    6262        $objView = new SC_AdminView(); 
     
    7272 
    7373        // 削除時 
    74         if (SC_Utils_Ex::sfCheckNumLength($_GET['send_id']) && ($_GET['mode']=='delete') ){ 
     74        if (SC_Utils_Ex::sfCheckNumLength($_GET['send_id']) && ($_GET['mode']=='delete')) { 
    7575 
    7676            $sql = "UPDATE dtb_send_history SET del_flg = 1 WHERE send_id = ?"; 
     
    7979            $this->reload(); 
    8080        } 
    81         $col = "*"; 
    8281        $from = "dtb_send_history"; 
    8382 
     
    102101        $objQuery->setorder($order); 
    103102 
     103        $col = "*"; 
     104        $col .= ",(SELECT COUNT(*) FROM dtb_send_customer WHERE dtb_send_customer.send_id = dtb_send_history.send_id) AS count_all"; 
     105        $col .= ",(SELECT COUNT(*) FROM dtb_send_customer WHERE dtb_send_customer.send_id = dtb_send_history.send_id AND send_flag = 1) AS count_sent"; 
     106        $col .= ",(SELECT COUNT(*) FROM dtb_send_customer WHERE dtb_send_customer.send_id = dtb_send_history.send_id AND send_flag = 2) AS count_error"; 
     107        $col .= ",(SELECT COUNT(*) FROM dtb_send_customer WHERE dtb_send_customer.send_id = dtb_send_history.send_id AND send_flag IS NULL) AS count_unsent"; 
     108 
    104109        // 検索結果の取得 
    105110        $this->arrDataList = $objQuery->select($col, $from, $where, $arrval); 
    106111 
    107         //---- ページ表示 
     112        // ページ表示 
    108113        $objView->assignobj($this); 
    109114        $objView->display(MAIN_FRAME); 
Note: See TracChangeset for help on using the changeset viewer.