Source for file LC_Page_Admin_System_Delete.php
Documentation is available at LC_Page_Admin_System_Delete.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.
* @version $Id: LC_Page_Admin_System_Delete.php 18734 2010-06-22 08:45:33Z nanasess $
SC_Utils_Ex::sfIsSuccess($objSess);
if ($this->objForm->checkError()
|| !SC_Utils_ex::sfIsInt($id = $this->objForm->getValue('id'))) {
GC_Utils_Ex::gfPrintLog("error id=$id");
SC_Utils_Ex::sfDispError(INVALID_MOVE_ERRORR);
$id = $this->objForm->getValue('id');
. '?pageno=' . $this->objForm->getValue('pageno');
$objForm->addParam('pageno', 'pageno', INT_LEN, '', array('NUM_CHECK', 'MAX_LENGTH_CHECK', 'EXIST_CHECK'));
$objForm->addParam('id', 'id', INT_LEN, '', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));
$objForm->setParam($_GET);
$this->objForm = $objForm;
$where = "member_id = ?";
$rank = $objQuery->get("dtb_member", "rank", $where, array($id));
// 削除したレコードより上のランキングを下げてRANKの空きを埋める。
rank > ? AND del_flg <> 1
return $objQuery->query($sqlup, array($rank));
return $objQuery->query($sqlup, array($id));
Documentation generated on Fri, 24 Feb 2012 13:59:10 +0900 by Seasoft
|