public function __construct() { parent::control(); $this->assign("form_list", $this->model('form')->form_all()); $this->assign("field_list", $this->model('form')->field_all()); $this->assign("format_list", $this->model('form')->format_all()); }
public function __construct() { parent::control(); $list = array("arclist" => P_Lang('文章列表'), "arc" => P_Lang('文章内容'), "cate" => P_Lang('分类信息'), "catelist" => P_Lang('分类树'), "project" => P_Lang('项目信息'), "sublist" => P_Lang('子项目信息'), "parent" => P_Lang('上级项目'), "fields" => P_Lang('字段及表单')); $this->phpok_type_list = $list; $this->assign("phpok_type_list", $list); }
public function __construct() { parent::control(); $this->mlist = get_class_methods($this); $this->model('project')->site_id($this->site['id']); $this->lib('form')->appid('www'); }
function __construct() { parent::control(); $this->form_list = $this->model("form")->form_list(); $this->field_list = $this->model("form")->field_list(); $this->format_list = $this->model("form")->format_list(); }
function __construct() { parent::control(); $this->popedom = appfile_popedom("usergroup"); $this->assign("popedom", $this->popedom); $this->lib('form')->cssjs(); }
public function __construct() { parent::control(); $this->popedom = appfile_popedom("tag"); $this->assign("popedom", $this->popedom); $this->model('tag')->site_id($_SESSION['admin_site_id']); }
function __construct() { parent::control(); $this->model("user"); $this->model("usergroup"); $this->popedom = appfile_popedom("user"); $this->assign("popedom", $this->popedom); }
function __construct() { parent::control(); $this->model("sysmenu"); $this->popedom = appfile_popedom("system"); $this->assign("popedom", $this->popedom); $this->model("popedom"); }
public function __construct() { parent::control(); $this->obj = $this->_object(); if (file_exists($this->dir_phpok . 'www/global.func.php')) { include_once $this->dir_phpok . 'www/global.func.php'; } }
function __construct() { parent::control(); $this->model("res"); $this->model("gd"); $this->lib("file"); $this->lib("json"); $this->lib("trans"); }
function __construct() { parent::control(); //判断是否有读权限 $groupid = $this->model('usergroup')->group_id($_SESSION['user_id']); if (!$groupid) { error(P_Lang('无法获取前端用户组信息'), '', 'error'); } $this->user_groupid = $groupid; }
public function __construct() { parent::control(); $this->model('popedom')->siteid($this->site['id']); $groupid = $this->model('usergroup')->group_id($_SESSION['user_id']); if (!$groupid) { $this->json(P_Lang('无法获取前端用户组信息')); } $this->user_groupid = $groupid; }
public function __construct() { parent::control(); if (!$_SESSION["user_id"]) { error(P_Lang('未登录会员不能执行此操作'), $this->url, "error"); } $this->group_rs = $this->model('usergroup')->group_rs($_SESSION['user_id']); if (!$this->group_rs) { error(P_Lang('您的账号有异常:无法获取相应的会员组信息,请联系管理员'), '', "error"); } }
function __construct() { parent::control(); $this->form_list = $this->model('form')->form_all(); $this->field_list = $this->model('form')->field_all(); $this->format_list = $this->model('form')->format_all(); $this->assign('form_list', $this->form_list); $this->assign("field_list", $this->field_list); $this->assign("format_list", $this->format_list); $this->popedom = appfile_popedom("module"); $this->assign("popedom", $this->popedom); }
function __construct() { parent::control(); $token = $this->get('token'); if ($token) { $this->lib('token')->keyid($this->site['api_code']); $info = $this->lib('token')->decode($token); if (!$info || !$info['user_id'] || !$info['user_name']) { $this->json(P_Lang('您还没有登录,请先登录或注册')); } $this->u_id = $info['user_id']; $this->u_name = $info['user_name']; $this->is_client = true; } else { if ($_SESSION['user_id']) { $this->u_id = $_SESSION['user_id']; $this->u_name = $_SESSION['user_name']; } } }
function __construct() { parent::control(); }
public function __construct() { parent::control(); $this->cart_id = $this->model('cart')->cart_id(session_id(), $_SESSION['user_id']); }
public function __construct() { parent::control(); $this->popedom = appfile_popedom("admin"); $this->assign("popedom", $this->popedom); }
function __construct() { parent::control(); $this->model("admin"); $this->model("site"); }
public function __construct() { parent::control(); $keytype_list = array('id' => "ID", 'title' => P_Lang('名称'), 'name' => P_Lang('文件名'), 'ext' => P_Lang('附件扩展名'), 'start_date' => P_Lang('开始时间'), 'stop_date' => P_Lang('结束时间')); $this->assign('keytype_list', $keytype_list); }
function __construct() { parent::control(); $this->popedom = appfile_popedom("project"); $this->assign("popedom", $this->popedom); }
function __construct() { parent::control(); $this->lib("json"); }
function __construct() { parent::control(); $this->model("res"); }
public function __construct() { parent::control(); header("Content-type: application/x-javascript; charset=UTF-8"); }
public function __construct() { parent::control(); $this->lib('form')->cssjs(); }
public function __construct() { parent::control(); ini_set('upload_tmp_dir', $this->dir_root . 'data/cache'); }
function __construct() { parent::control(); //取得当前的购物车ID $this->cart_id = $this->model('cart')->cart_id($this->session->sessid(), $_SESSION['user_id']); }