Ignore:
Timestamp:
2012/02/15 19:56:17 (12 years ago)
Author:
Seasoft
Message:

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

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  
    107107 
    108108        // 該当全体件数の取得 
    109         $linemax = $objQuery->count('dtb_send_history',"del_flg = 0"); 
     109        $linemax = $objQuery->count('dtb_send_history','del_flg = 0'); 
    110110 
    111111        // 一覧データの取得 
    112         $objSelect->setOrder("start_date DESC, send_id DESC"); 
     112        $objSelect->setOrder('start_date DESC, send_id DESC'); 
    113113 
    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'; 
    119119 
    120120        // ページ送りの取得 
    121121        $offset = SEARCH_PMAX * ($search_pageno - 1); 
    122122        $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'); 
    124124 
    125125        $objNavi = new SC_PageNavi_Ex($search_pageno, 
     
    139139            $objQuery->update('dtb_send_history', 
    140140                              array('del_flg' =>1), 
    141                               "send_id = ?", 
     141                              'send_id = ?', 
    142142                              array($send_id)); 
    143143    } 
Note: See TracChangeset for help on using the changeset viewer.