Changeset 21514 for branches/version-2_12-dev/data/class/pages/admin/mail/LC_Page_Admin_Mail_History.php
- Timestamp:
- 2012/02/15 19:56:17 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/admin/mail/LC_Page_Admin_Mail_History.php
r21481 r21514 107 107 108 108 // 該当全体件数の取得 109 $linemax = $objQuery->count('dtb_send_history', "del_flg = 0");109 $linemax = $objQuery->count('dtb_send_history','del_flg = 0'); 110 110 111 111 // 一覧データの取得 112 $objSelect->setOrder( "start_date DESC, send_id DESC");112 $objSelect->setOrder('start_date DESC, send_id DESC'); 113 113 114 $col = "*";115 $col .= ",(SELECT COUNT(*) FROM dtb_send_customer WHERE dtb_send_customer.send_id = dtb_send_history.send_id) AS count_all";116 $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";117 $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";118 $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";114 $col = '*'; 115 $col .= ',(SELECT COUNT(*) FROM dtb_send_customer WHERE dtb_send_customer.send_id = dtb_send_history.send_id) AS count_all'; 116 $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'; 117 $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'; 118 $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'; 119 119 120 120 // ページ送りの取得 121 121 $offset = SEARCH_PMAX * ($search_pageno - 1); 122 122 $objSelect->setLimitOffset(SEARCH_PMAX, $offset); 123 $arrResult = $objSelect->select($col, 'dtb_send_history', " del_flg = 0");123 $arrResult = $objSelect->select($col, 'dtb_send_history', ' del_flg = 0'); 124 124 125 125 $objNavi = new SC_PageNavi_Ex($search_pageno, … … 139 139 $objQuery->update('dtb_send_history', 140 140 array('del_flg' =>1), 141 "send_id = ?",141 'send_id = ?', 142 142 array($send_id)); 143 143 }
Note: See TracChangeset
for help on using the changeset viewer.