當前位置: 首頁>>代碼示例>>PHP>>正文


PHP SystemControl類代碼示例

本文整理匯總了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);
 }
開發者ID:JokeLook,項目名稱:xingkang,代碼行數:32,代碼來源:healthplatform.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     Language::read('stat');
     import('function.statistics');
     import('function.datehelper');
 }
開發者ID:Maplecms,項目名稱:shopnc-yhmall,代碼行數:7,代碼來源:stat_trade.php

示例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']));
 }
開發者ID:xuxuecheng,項目名稱:shopnc,代碼行數:32,代碼來源:stat_goods.php

示例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);
 }
開發者ID:noikiy,項目名稱:ejia,代碼行數:27,代碼來源:stat_store.php

示例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]);
     }
 }
開發者ID:norain2050,項目名稱:xingkang,代碼行數:27,代碼來源:storehouse.php

示例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);
 }
開發者ID:norain2050,項目名稱:xingkang,代碼行數:31,代碼來源:healthfile.php

示例7: __construct

 public function __construct()
 {
     parent::__construct();
     Language::read('sns_sharesetting');
     $model = Model('sns_binding');
     $this->app_arr = $model->getApps();
 }
開發者ID:dotku,項目名稱:shopnc_cnnewyork,代碼行數:7,代碼來源:sns_sharesetting.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     Language::read('refund');
     $model_vr_refund = Model('vr_refund');
     $model_vr_refund->getRefundStateArray();
 }
開發者ID:dotku,項目名稱:shopnc_cnnewyork,代碼行數:7,代碼來源:vr_refund.php

示例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');
     }
 }
開發者ID:wangjiang988,項目名稱:ukshop,代碼行數:8,代碼來源:flea_index.php

示例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');
     }
 }
開發者ID:noikiy,項目名稱:shopnc-minion,代碼行數:8,代碼來源:flea_class.php

示例11: catch

 function __construct(&$session, $name, $password)
 {
     try {
         parent::login($session, $name, $password);
     } catch (exception $e) {
         throw new Exception($e->getMessage());
     }
 }
開發者ID:digoc93,項目名稱:inventarios,代碼行數:8,代碼來源:HLog.php

示例12: __construct

 public function __construct()
 {
     parent::__construct();
     // 檢查搶購功能是否開啟
     if (C('groupbuy_allow') != 1) {
         showMessage('虛擬搶購功能尚未開啟', 'index.php?act=dashboard&op=welcome', 'html', 'error');
     }
 }
開發者ID:noikiy,項目名稱:shopnc-minion,代碼行數:8,代碼來源:vr_groupbuy.php

示例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);
     }
 }
開發者ID:Maplecms,項目名稱:shopnc-yhmall,代碼行數:9,代碼來源:promotion_booth.php

示例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');
     }
 }
開發者ID:ff00x0,項目名稱:shopnc,代碼行數:9,代碼來源:flea_region.php

示例15: __construct

 public function __construct()
 {
     parent::__construct();
     if (strtoupper(CHARSET) == 'GBK') {
         $_GET = Language::getGBK($_GET);
         $_POST = Language::getGBK($_POST);
     }
     Language::read('web_config');
 }
開發者ID:norain2050,項目名稱:xingkang,代碼行數:9,代碼來源:web_api.php


注:本文中的SystemControl類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。