本文整理汇总了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');
}