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-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_System.php 20911 2011-05-04 19:29:41Z Seasoft $
$this->list_data = ''; // テーブルデータ取得用
$this->tpl_disppage = ''; // 表示中のページ番号
$this->tpl_mainpage = 'system/index.tpl';
$this->tpl_mainno = 'system';
$this->tpl_subno = 'index';
$this->tpl_onload = 'fnGetRadioChecked();';
$this->tpl_maintitle = 'システム設定';
$this->tpl_subtitle = 'メンバー管理';
$masterData = new SC_DB_MasterData_Ex();
$this->arrAUTHORITY = $masterData->getMasterData('mtb_authority');
$this->arrWORK[0] = "非稼働";
$this->arrWORK[1] = "稼働";
$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);
// ページ送りの処理 $_GET['pageno']が信頼しうる値かどうかチェックする。
$pageno = $this->lfCheckPageNo($_GET['pageno']);
$objNavi = new SC_PageNavi_Ex($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);
* dtb_memberからWHERE句に該当する件数を取得する.
* @param string $where WHERE句
function getMemberCount($where) {
$objQuery = & SC_Query_Ex::getSingletonInstance();
return $objQuery->count($table, $where);
* 開始行番号, 行数を指定して管理者データを取得する.
* @param integer $startno 開始行番号
* @return array 管理者データの連想配列
function getMemberData($startno) {
$objSql = new SC_SelectSql_Ex();
$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);
$objQuery = & SC_Query_Ex::getSingletonInstance();
$arrMemberData = $objQuery->getAll($objSql->getSql());
* @param integer $pageno ページの番号($_GETから入ってきた値)
* @return integer $clean_pageno チェック後のページの番号
function lfCheckPageNo($pageno) {
if(SC_Utils_Ex::sfIsInt($pageno) && $pageno > 0) {
Documentation generated on Fri, 24 Feb 2012 14:01:46 +0900 by Seasoft
|