本文整理匯總了PHP中SystemControl類的典型用法代碼示例。如果您正苦於以下問題:PHP SystemControl類的具體用法?PHP SystemControl怎麽用?PHP SystemControl使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了SystemControl類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
public function __construct()
{
parent::__construct();
Language::read('stat');
import('function.statistics');
import('function.datehelper');
$model = Model('stat');
//存儲參數
$this->search_arr = $_REQUEST;
//處理搜索時間
if (in_array($_REQUEST['op'], array('list'))) {
$this->search_arr = $model->dealwithSearchTime($this->search_arr);
//獲得係統年份
$year_arr = getSystemYearArr();
//獲得係統月份
$month_arr = getSystemMonthArr();
//獲得本月的周時間段
$week_arr = getMonthWeekArr($this->search_arr['week']['current_year'], $this->search_arr['week']['current_month']);
Tpl::output('year_arr', $year_arr);
Tpl::output('month_arr', $month_arr);
Tpl::output('week_arr', $week_arr);
}
Tpl::output('search_arr', $this->search_arr);
$conn = (require BASE_DATA_PATH . '/../core/framework/db/mssqlpdo.php');
$treesql = 'select b.id , b.name,b.districtnumber,b.parentid pId from map_org_wechat a, Organization b where a.orgid = b.id ';
$treestmt = $conn->query($treesql);
$this->treedata_list = array();
while ($row = $treestmt->fetch(PDO::FETCH_OBJ)) {
array_push($this->treedata_list, $row);
}
Tpl::output('treelist', $this->treedata_list);
}
示例2: __construct
public function __construct()
{
parent::__construct();
Language::read('stat');
import('function.statistics');
import('function.datehelper');
}
示例3: __construct
public function __construct()
{
parent::__construct();
Language::read('stat');
import('function.statistics');
import('function.datehelper');
$model = Model('stat');
//存儲參數
$this->search_arr = $_REQUEST;
//處理搜索時間
if (in_array($this->search_arr['op'], array('pricerange', 'hotgoods', 'goods_sale'))) {
$this->search_arr = $model->dealwithSearchTime($this->search_arr);
//獲得係統年份
$year_arr = getSystemYearArr();
//獲得係統月份
$month_arr = getSystemMonthArr();
//獲得本月的周時間段
$week_arr = getMonthWeekArr($this->search_arr['week']['current_year'], $this->search_arr['week']['current_month']);
Tpl::output('year_arr', $year_arr);
Tpl::output('month_arr', $month_arr);
Tpl::output('week_arr', $week_arr);
}
Tpl::output('search_arr', $this->search_arr);
/**
* 處理商品分類
*/
$this->choose_gcid = ($t = intval($_REQUEST['choose_gcid'])) > 0 ? $t : 0;
$gccache_arr = Model('goods_class')->getGoodsclassCache($this->choose_gcid, 3);
$this->gc_arr = $gccache_arr['showclass'];
Tpl::output('gc_json', json_encode($gccache_arr['showclass']));
Tpl::output('gc_choose_json', json_encode($gccache_arr['choose_gcid']));
}
示例4: __construct
public function __construct()
{
parent::__construct();
Language::read('stat');
import('function.statistics');
import('function.datehelper');
$model = Model('stat');
//存儲參數
$this->search_arr = $_REQUEST;
//處理搜索時間
if (in_array($_REQUEST['op'], array('hotrank', 'storesales'))) {
$this->search_arr = $model->dealwithSearchTime($this->search_arr);
//獲得係統年份
$year_arr = getSystemYearArr();
//獲得係統月份
$month_arr = getSystemMonthArr();
//獲得本月的周時間段
$week_arr = getMonthWeekArr($this->search_arr['week']['current_year'], $this->search_arr['week']['current_month']);
Tpl::output('year_arr', $year_arr);
Tpl::output('month_arr', $month_arr);
Tpl::output('week_arr', $week_arr);
}
Tpl::output('search_arr', $this->search_arr);
//店鋪分類
$this->store_class = rkcache('store_class', true);
Tpl::output('store_class', $this->store_class);
}
示例5: __construct
public function __construct()
{
parent::__construct();
$conn = (require BASE_DATA_PATH . '/../core/framework/db/mssqlpdo.php');
$treesql = 'select b.id , b.name,b.districtnumber,b.parentid pId from map_org_wechat a, Organization b where a.orgid = b.id ';
$treestmt = $conn->query($treesql);
$this->treedata_list = array();
while ($row = $treestmt->fetch(PDO::FETCH_OBJ)) {
array_push($this->treedata_list, $row);
}
Tpl::output('treelist', $this->treedata_list);
$this->getTreeData();
$stmt = $conn->query(' select * from Center_codes where type=\'iBuy_Type\' order by code ');
$this->types = array();
while ($row = $stmt->fetch(PDO::FETCH_OBJ)) {
array_push($this->types, $row);
}
// $this->types = array(0 => '期初入庫', 1 => '采購入庫', 2 => '購進退回', 3 => '盤盈', 5 => '領用', 12 => '盤虧', 14 => '領用退回', 50 => '采購計劃',);
Tpl::output('types', $this->types);
$this->goodtype = array(0 => '藥品', 1 => '衛生用品', 2 => '診療項目', 3 => '特殊材料');
Tpl::output('goodtype', $this->goodtype);
$stmt = $conn->query(' select distinct orgid from map_org_wechat order by orgid ');
$this->orgidarray = array();
while ($row = $stmt->fetch(PDO::FETCH_NUM)) {
array_push($this->orgidarray, $row[0]);
}
}
示例6: __construct
public function __construct()
{
parent::__construct();
Language::read('stat');
import('function.statistics');
import('function.datehelper');
$model = Model('stat');
//存儲參數
$this->search_arr = $_REQUEST;
//處理搜索時間
if (in_array($_REQUEST['op'], array('list'))) {
$this->search_arr = $model->dealwithSearchTime($this->search_arr);
//獲得係統年份
$year_arr = getSystemYearArr();
//獲得係統月份
$month_arr = getSystemMonthArr();
//獲得本月的周時間段
$week_arr = getMonthWeekArr($this->search_arr['week']['current_year'], $this->search_arr['week']['current_month']);
Tpl::output('year_arr', $year_arr);
Tpl::output('month_arr', $month_arr);
Tpl::output('week_arr', $week_arr);
}
$conn = (require BASE_DATA_PATH . '/../core/framework/db/mssqlpdo.php');
$stmt = $conn->query(' select distinct orgid from map_org_wechat order by orgid ');
$this->orgidarray = array();
while ($row = $stmt->fetch(PDO::FETCH_NUM)) {
array_push($this->orgidarray, $row[0]);
}
$this->getTreeData();
Tpl::output('search_arr', $this->search_arr);
}
示例7: __construct
public function __construct()
{
parent::__construct();
Language::read('sns_sharesetting');
$model = Model('sns_binding');
$this->app_arr = $model->getApps();
}
示例8: __construct
public function __construct()
{
parent::__construct();
Language::read('refund');
$model_vr_refund = Model('vr_refund');
$model_vr_refund->getRefundStateArray();
}
示例9: __construct
public function __construct()
{
parent::__construct();
Uk86Language::uk86_read('setting,flea_index_setting');
if ($GLOBALS['setting_config']['flea_isuse'] != '1') {
uk86_showMessage(Uk86Language::uk86_get('flea_isuse_off_tips'), 'index.php?act=dashboard&op=welcome');
}
}
示例10: __construct
public function __construct()
{
parent::__construct();
Language::read('flea_class');
if ($GLOBALS['setting_config']['flea_isuse'] != '1') {
showMessage(Language::get('flea_isuse_off_tips'), 'index.php?act=dashboard&op=welcome');
}
}
示例11: catch
function __construct(&$session, $name, $password)
{
try {
parent::login($session, $name, $password);
} catch (exception $e) {
throw new Exception($e->getMessage());
}
}
示例12: __construct
public function __construct()
{
parent::__construct();
// 檢查搶購功能是否開啟
if (C('groupbuy_allow') != 1) {
showMessage('虛擬搶購功能尚未開啟', 'index.php?act=dashboard&op=welcome', 'html', 'error');
}
}
示例13: __construct
public function __construct()
{
parent::__construct();
//檢查審核功能是否開啟
if (intval($_GET['promotion_allow']) !== 1 && intval(C('promotion_allow')) !== 1) {
$url = array(array('url' => 'index.php?act=dashboard&op=welcome', 'msg' => L('close')), array('url' => 'index.php?act=promotion_bundling&promotion_allow=1', 'msg' => L('open')));
showMessage('商品促銷功能尚未開啟', $url, 'html', 'succ', 1, 6000);
}
}
示例14: __construct
public function __construct()
{
parent::__construct();
Language::read('region,flea_index');
if ($GLOBALS['setting_config']['flea_isuse'] != 1) {
showMessage(Language::get('flea_index_unable'), 'index.php?act=dashboard&op=welcome');
// showMessage(Language::get('admin_ztc_unavailable'),'index.php?act=dashboard&op=welcome');
}
}
示例15: __construct
public function __construct()
{
parent::__construct();
if (strtoupper(CHARSET) == 'GBK') {
$_GET = Language::getGBK($_GET);
$_POST = Language::getGBK($_POST);
}
Language::read('web_config');
}