Source for file LC_Page_Admin_Mail_History.php
Documentation is available at LC_Page_Admin_Mail_History.php
* This file is part of EC-CUBE
* Copyright(c) 2000-2011 LOCKON CO.,LTD. All Rights Reserved.
* http://www.lockon.co.jp/
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once CLASS_EX_REALDIR . 'page_extends/admin/LC_Page_Admin_Ex.php';
* @author LOCKON CO.,LTD.
* @version $Id: LC_Page_Admin_Mail_History.php 20911 2011-05-04 19:29:41Z Seasoft $
$this->tpl_mainpage = 'mail/history.tpl';
$this->tpl_mainno = 'mail';
$this->tpl_subno = 'history';
$this->tpl_maintitle = 'メルマガ管理';
$this->tpl_subtitle = '配信履歴';
$this->tpl_pager = 'pager.tpl';
switch ($this->getMode()) {
if (SC_Utils_Ex::sfIsInt($_GET['send_id'])) {
$this->objDisplay->reload(null, true);
list ($this->tpl_linemax, $this->arrDataList, $this->arrPagenavi) = $this->lfDoSearch($_POST['search_pageno']);
* @param integer $search_pageno 表示したいページ番号
* @return array( integer 全体件数, mixed メール配信データ一覧配列, mixed SC_PageNaviオブジェクト)
if(SC_Utils_Ex::sfIsInt($search_pageno)=== false) $search_pageno = 1;
$objSelect = & SC_Query_Ex::getSingletonInstance(); // 一覧データ取得用
$objQuery = & SC_Query_Ex::getSingletonInstance(); // 件数取得用
$linemax = $objQuery->count("dtb_send_history","del_flg = 0");
$objSelect->setOrder("start_date DESC, send_id DESC");
$col .= ",(SELECT COUNT(*) FROM dtb_send_customer WHERE dtb_send_customer.send_id = dtb_send_history.send_id) AS count_all";
$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";
$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";
$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";
$offset = SEARCH_PMAX * ($search_pageno - 1);
$objSelect->setLimitOffset(SEARCH_PMAX, $offset);
$arrResult = $objSelect->select($col, "dtb_send_history", " del_flg = 0");
$objNavi = new SC_PageNavi_Ex($search_pageno,
return array($linemax, $arrResult, $objNavi->arrPagenavi);
* @param integer $send_id 削除したい送信履歴のID
$objQuery = & SC_Query_Ex::getSingletonInstance();
$objQuery->update("dtb_send_history",
Documentation generated on Fri, 24 Feb 2012 14:01:22 +0900 by Seasoft
|