Administrator(6); $this->header(); } public function __destruct() { ?> footer(); } function index($map = []) { $_var_0 = db("action")->where("pid", "0")->order("sort")->select(); $_var_1 = db("action")->where("pid", "0")->count(); ?>
nav3(); ?>
目录列表
') { ?>where("pid", $_var_4["id"])->order("sort")->select(); foreach ($_var_5 as $_var_6) { eachrow($_var_6, "┃━━━"); $_var_7 = db("action")->where("pid", $_var_6["id"])->order("sort")->select(); foreach ($_var_7 as $_var_8) { eachrow($_var_8, "┃━━━━━━"); } } } } ?>
ID 名称 描述 排序 状态 编辑操作
没有目录管理
&a=" class="act"> " value="" data-value="" style="width: 30px;"/> &status=&hash="> .gif" /> " class="act">新增子目录" class="act">编辑&hash=');">删除
where("id", $_var_9)->find(); ?>
nav3(); ?>"/> " />
目录
目录名称:
" name="name" id="name">
iframe:
">
action:
">
param:
">
描述:
ShowMessage("链接来路不明,无法提交!", $_SERVER["PHP_SELF"], "infotitle3", 3000, 1); } $_var_13 = intval(SafeRequest("id", "get")); if (db("action")->where("pid", $_var_13)->count()) { $this->ShowMessage("抱歉,不允许删除非空目录!", "?c=action", "infotitle3", 3000, 1); } $_var_14 = db("action")->where("id", $_var_13)->delete(); if ($_var_14) { $this->ShowMessage("恭喜您,目录管理删除成功!", "?c=action", "infotitle2", 3000, 1); } } function save() { if (!submitcheck("hash", 1)) { $this->ShowMessage("表单来路不明,无法提交!", $_SERVER["PHP_SELF"], "infotitle3", 3000, 1); } $_var_15 = intval(SafeRequest("id", "post")); $_var_16 = SafeRequest("name", "post"); if (!$_var_16) { $this->ShowMessage("目录名称不能为空", $_SERVER["PHP_SELF"], "infotitle3", 3000, 1); } $_var_17 = SafeRequest("c", "post"); if (!$_var_17) { $this->ShowMessage("iframe不能为空", $_SERVER["PHP_SELF"], "infotitle3", 3000, 1); } $_var_18 = SafeRequest("a", "post"); $_var_18 = $_var_18 ? $_var_18 : "index"; $_var_19 = SafeRequest("p", "post"); $_var_20 = SafeRequest("pid", "post"); $_var_21 = SafeRequest("note", "post"); $_var_22 = ["name" => $_var_16, "c" => $_var_17, "a" => $_var_18, "p" => $_var_19, "pid" => $_var_20, "note" => $_var_21]; if ($_var_15) { $_var_23 = db("action")->where("id", $_var_15)->update($_var_22); } else { if (db("action")->where("name", $_var_16)->where("c", $_var_17)->where("a", $_var_18)->where("p", $_var_19)->count()) { $this->ShowMessage("已存在相同的目录", $_SERVER["PHP_SELF"], "infotitle3", 3000, 1); } $_var_23 = db("action")->insert($_var_22); } $_var_23 && $this->ShowMessage("恭喜您,目录保存成功!", "?c=action", "infotitle2", 1000, 1); $this->ShowMessage("目录保存失败!请稍后重试!", $_SERVER["HTTP_REFERER"], "infotitle3", 3000, 1); } function change_status() { if (!submitcheck("hash", -1)) { $this->ShowMessage("链接来路不明,无法提交!", $_SERVER["PHP_SELF"], "infotitle3", 3000, 1); } $_var_24 = intval(SafeRequest("id", "get")); $_var_25 = intval(SafeRequest("status", "get")); $_var_26 = db("action")->where("id", $_var_24)->update(["status" => $_var_25]); if ($_var_26) { $this->ShowMessage("恭喜您,状态切换成功!", "?c=action", "infotitle2", 1000, 1); } else { $this->ShowMessage("恭喜您,状态切换成功!", "?c=action", "infotitle2", 1000, 1); } } }