- Timestamp:
- 2010/05/05 20:11:17 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/class/pages/admin/mail/LC_Page_Admin_Mail_History.php
r18234 r18631 58 58 */ 59 59 function process() { 60 // ----ページ初期設定60 // ページ初期設定 61 61 $conn = new SC_DBConn(); 62 62 $objView = new SC_AdminView(); … … 72 72 73 73 // 削除時 74 if (SC_Utils_Ex::sfCheckNumLength($_GET['send_id']) && ($_GET['mode']=='delete') ){74 if (SC_Utils_Ex::sfCheckNumLength($_GET['send_id']) && ($_GET['mode']=='delete')) { 75 75 76 76 $sql = "UPDATE dtb_send_history SET del_flg = 1 WHERE send_id = ?"; … … 79 79 $this->reload(); 80 80 } 81 $col = "*";82 81 $from = "dtb_send_history"; 83 82 … … 102 101 $objQuery->setorder($order); 103 102 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 104 109 // 検索結果の取得 105 110 $this->arrDataList = $objQuery->select($col, $from, $where, $arrval); 106 111 107 // ----ページ表示112 // ページ表示 108 113 $objView->assignobj($this); 109 114 $objView->display(MAIN_FRAME);
Note: See TracChangeset
for help on using the changeset viewer.