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->popedom = appfile_popedom("usergroup"); $this->assign("popedom", $this->popedom); $this->lib('form')->cssjs(); }
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(); $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); $this->popedom = appfile_popedom("call"); $this->assign("popedom", $this->popedom); }
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 all_info() { $all_popedom = appfile_popedom("all"); if (!$all_popedom || !$all_popedom['list']) { return false; } $this->assign('all_popedom', $all_popedom); $rslist = $this->model('site')->all_list($_SESSION["admin_site_id"]); $this->assign("all_rslist", $rslist); $rs = $this->model('site')->get_one($_SESSION['admin_site_id']); $this->assign("all_rs", $rs); return $this->fetch('index_block_allsetting'); }
public function __construct() { parent::control(); $this->popedom = appfile_popedom("admin"); $this->assign("popedom", $this->popedom); }
public function action_f() { $id = $this->get("id"); if (!$id) { error(P_Lang('未指定ID'), $this->url("list"), "error"); } $this->popedom_auto($id); if (!$this->popedom["list"]) { error(P_Lang('您没有权限执行此操作'), '', 'error'); } $rs = $this->model('project')->get_one($id); if (!$rs) { error(P_Lang('项目信息不存在'), $this->url("list"), "error"); } $son_list = $this->model('project')->get_all($rs["site_id"], $id, "p.status=1"); if ($son_list) { foreach ($son_list as $key => $value) { $popedom = appfile_popedom("list", $value["id"]); if (!$popedom["list"]) { unset($son_list[$key]); } } } if ($son_list) { $this->assign("project_list", $son_list); } if (!$rs['tag']) { $rs['tag'] = $this->model('tag')->get_tags('p' . $rs['id']); } $this->assign("rs", $rs); $this->assign("id", $id); $this->assign("pid", $id); $plist = array($rs); if ($rs["parent_id"]) { $this->model('project')->get_parentlist($plist, $rs["parent_id"]); krsort($plist); } $this->assign("plist", $plist); $cateid = $this->get("cateid"); if (!$cateid) { $cateid = $rs["cate"]; } if ($cateid && $rs["cate"]) { $show_parent_catelist = $cateid != $rs["cate"] ? $cateid : false; $catelist = $this->model('cate')->get_sonlist($cateid); if (!$catelist) { $cate_rs = $this->model('cate')->get_one($cateid); if ($cate_rs["parent_id"]) { $catelist = $this->model('cate')->get_sonlist($cate_rs["parent_id"]); } } $this->assign("catelist", $catelist); $opt_catelist = $this->model('cate')->get_all($rs["site_id"], 1, $rs["cate"]); $opt_catelist = $this->model('cate')->cate_option_list($opt_catelist); $this->assign("opt_catelist", $opt_catelist); if ($show_parent_catelist) { $parent_cate_rs = $this->model('cate')->get_one($show_parent_catelist); $this->assign('parent_cate_rs', $parent_cate_rs); } $this->assign("show_parent_catelist", $show_parent_catelist); } //设置内容列表 if ($rs["module"]) { $this->content_list($rs); $this->view("list_content"); } else { $show_edit = true; $extlist = $this->model('ext')->ext_all('project-' . $id); if ($extlist) { $tmp = false; foreach ($extlist as $key => $value) { if ($value["ext"]) { $ext = unserialize($value["ext"]); foreach ($ext as $k => $v) { $value[$k] = $v; } } $tmp[] = $this->lib('form')->format($value); $this->lib('form')->cssjs($value); } $this->assign('extlist', $tmp); } $this->view("list_set"); } }
function __construct() { parent::control(); $this->popedom = appfile_popedom("project"); $this->assign("popedom", $this->popedom); }
function fields_auto() { $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("user:fields"); $this->assign("popedom", $this->popedom); }
function system_popedom($string, $return_type = "") { if ($_SESSION["admin_rs"]["if_system"]) { return true; } if (!$_SESSION["admin_popedom"] || !is_array($_SESSION["admin_popedom"]) || !$string) { if ($return_type == "tips" || $return_type == "tpl" || $return_type == "tip") { error(P_Lang('您没有权限执行此操作'), "", "error"); } elseif ($return_type == "json") { $GLOBALS['app']->json(P_Lang('您没有权限执行此操作')); } elseif ($return_type == "ajax") { exit(P_Lang('您没有权限执行此操作')); } else { return false; } } $string = str_replace(array(",", "|", "/", ">"), ":", $string); $list = explode(":", $string); $type = $list[0]; $identify = $list[1]; $plist = appfile_popedom($type); if (!$identify || !$plist || !$plist[$identify]) { if ($return_type == "tips" || $return_type == "tpl" || $return_type == "tip") { error(P_Lang('您没有权限执行此操作'), "", "error"); } elseif ($return_type == "json") { $GLOBALS['app']->json(P_Lang('您没有权限执行此操作')); } elseif ($return_type == "ajax") { exit(P_Lang('您没有权限执行此操作')); } else { return false; } } return true; }