Source for file LC_Page_Admin_System.php
Documentation is available at LC_Page_Admin_System.php
* This file is part of EC-CUBE
* Copyright(c) 2000-2007 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.php 16582 2007-10-29 03:06:29Z nanasess $
$this->list_data =
''; // テーブルデータ取得用
$this->tpl_disppage =
''; // 表示中のページ番号
$this->tpl_subnavi =
'system/subnavi.tpl';
$this->tpl_subno =
'index';
$this->tpl_subtitle =
'メンバー管理';
$this->arrAUTHORITY =
$masterData->getMasterData('mtb_authority');
$linemax =
$this->getMemberCount("del_flg <> 1 AND member_id <> " .
ADMIN_ID);
// ADMIN_ID以外で稼動中の管理者件数を取得
=
$this->getMemberCount("work = 1 AND del_flg <> 1 AND member_id <> " .
ADMIN_ID);
$pageno = isset
($_GET['pageno']) ?
$_GET['pageno'] :
1;
$objNavi =
new SC_PageNavi($pageno, $linemax, MEMBER_PMAX, "fnMemberPage", NAVI_PMAX);
$this->tpl_strnavi =
$objNavi->strnavi;
$this->tpl_disppage =
$objNavi->now_page;
$this->tpl_pagemax =
$objNavi->max_page;
// 取得範囲を指定(開始行番号、行数のセット)して管理者データを取得
$this->list_data =
$this->getMemberData($objNavi->start_row);
$objView->assignobj($this);
$objView->display(MAIN_FRAME);
* dtb_memberからWHERE句に該当する件数を取得する.
* @param string $where WHERE句
function getMemberCount($where) {
return $objQuery->count($table, $where);
* 開始行番号, 行数を指定して管理者データを取得する.
* @param integer $startno 開始行番号
* @return array 管理者データの連想配列
function getMemberData($startno) {
$objSql->setSelect("SELECT member_id,name,department,login_id,authority,rank,work FROM dtb_member");
$objSql->setOrder("rank DESC");
$objSql->setWhere("del_flg <> 1 AND member_id <> ".
ADMIN_ID);
$objSql->setLimitOffset(MEMBER_PMAX, $startno);
$arrMemberData =
$objQuery->getAll($objSql->getSql());
Documentation generated on Tue, 28 Apr 2009 18:11:48 +0900 by phpDocumentor 1.4.2