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-2010 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_PATH . "pages/LC_Page.php");
* @author LOCKON CO.,LTD.
$this->tpl_subnavi = 'mail/subnavi.tpl';
$this->tpl_subno = "history";
$this->tpl_subtitle = '配信履歴';
SC_Utils_Ex::sfIsSuccess($objSess);
if (!isset ($_GET['send_id'])) $_GET['send_id'] = "";
if (!isset ($_GET['mode'])) $_GET['mode'] = "";
if (!isset ($_POST['search_pageno'])) $_POST['search_pageno'] = "";
if (SC_Utils_Ex::sfCheckNumLength($_GET['send_id']) && ($_GET['mode']== 'delete') ){
$sql = "UPDATE dtb_send_history SET del_flg = 1 WHERE send_id = ?";
$conn->query($sql, array($_GET['send_id']) );
$_SERVER['QUERY_STRING'] = "";
$from = "dtb_send_history";
$linemax = $objQuery->count($from, $where, $arrval);
$this->tpl_linemax = $linemax; // 何件が該当しました。表示用
$objNavi = new SC_PageNavi($_POST['search_pageno'], $linemax, SEARCH_PMAX, "fnNaviSearchPage", NAVI_PMAX);
$this->tpl_strnavi = $objNavi->strnavi; // 表示文字列
$startno = $objNavi->start_row;
$objQuery->setLimitOffset(SEARCH_PMAX, $startno);
$order = "start_date DESC, send_id DESC";
$objQuery->setOrder($order);
$this->arrDataList = $objQuery->select($col, $from, $where, $arrval);
$objView->assignobj($this);
$objView->display(MAIN_FRAME);
Documentation generated on Fri, 24 Feb 2012 13:58:48 +0900 by Seasoft
|