public function index() { if (IS_POST) { $post_data = I('post.'); $post_data['first'] = $post_data['rows'] * ($post_data['page'] - 1); $map = array(); $map = $this->_search(); $total = $this->Model->where($map)->count(); if ($total == 0) { $_list = ''; } else { $_list = $this->Model->where($map)->order($post_data['sort'] . ' ' . $post_data['order'])->limit($post_data['first'] . ',' . $post_data['rows'])->select(); } $option["status"] = array(0 => '禁用', 1 => '启用'); foreach ($_list as $list_key => $list_one) { foreach ($list_one as $list_one_key => $list_one_field) { if ($option[$list_one_key] != '') { $_list[$list_key][$list_one_key] = $option[$list_one_key][$list_one_field]; } } $_list[$list_key]['action_title'] = get_action($_list[$list_key]['action_id'], 'title'); $_list[$list_key]['user_nickname'] = get_nickname($_list[$list_key]['user_id']); $_list[$list_key]["create_time"] = date("Y年m月d日", $_list[$list_key]["create_time"]); $operate_menu = ''; if (Is_Auth('Admin/ActionLog/edit')) { $operate_menu = $operate_menu . "<a href='#' onclick=\"Submit_Form('ActionLog_Form','ActionLog_Data_List','" . U('edit', array('id' => $_list[$list_key]['id'])) . "','','编辑数据','');\">查看行为日志</a>"; } $_list[$list_key]['operate'] = $operate_menu; } $data = array('total' => $total, 'rows' => $_list); $this->ajaxReturn($data); } else { $this->display(); } }
public function index() { if (IS_POST) { $map = array(); $_list = $this->Model->where($map)->order('sort asc')->getField('id,pid,name,title,icon,hide,status,sort'); $option["hide"] = array(1 => '隐藏', 0 => '显示'); $option["status"] = array(1 => '启用', 0 => '禁用'); foreach ($_list as $list_key => $list_one) { foreach ($list_one as $list_one_key => $list_one_field) { if ($option[$list_one_key] != '') { $_list[$list_key][$list_one_key] = $option[$list_one_key][$list_one_field]; } } $operate_menu = ''; if (Is_Auth('Admin/AuthRule/add')) { $operate_menu = $operate_menu . "<a href='#' onclick=\"UpdateTabs('AuthRule','" . U('add', array('pid' => $_list[$list_key]['id'])) . "','','iconfont icon-add');\">新增子菜单</a>"; } if (Is_Auth('Admin/AuthRule/edit')) { $operate_menu = $operate_menu . "<a href='#' onclick=\"UpdateTabs('AuthRule','" . U('edit', array('id' => $_list[$list_key]['id'])) . "','','iconfont icon-edit');\">编辑</a>"; } if (Is_Auth('Admin/AuthRule/del')) { $operate_menu = $operate_menu . "<a href='#' onclick=\"Data_Remove('" . U('del', array('id' => $_list[$list_key]['id'])) . "','AuthRule_Data_List');\">删除</a>"; } $_list[$list_key]['operate'] = $operate_menu; } $data = list_to_tree($_list, 'id', 'pid', 'children'); $this->ajaxReturn($data); } else { $this->display(); } }
public function index() { if (IS_POST) { $map = array(); $_list = $this->Model->where($map)->order('sort asc')->getField('id,title,status,sort'); $op_status = R("Admin/Function/get_config", array("USERGROUP_STATUS_TYPE|status|title")); foreach ($op_status as $op_status_key => $op_status_one) { $option["status"][$op_status_one["status"]] = $op_status_one["title"]; } foreach ($_list as $list_key => $list_one) { foreach ($list_one as $list_one_key => $list_one_field) { if ($option[$list_one_key] != '') { $_list[$list_key][$list_one_key] = $option[$list_one_key][$list_one_field]; } } $operate_menu = ''; if (Is_Auth('Admin/AuthGroup/edit')) { $operate_menu = $operate_menu . "<a href='#' onclick=\"Submit_Form('AuthGroup_Form','AuthGroup_Data_List','" . U('edit', array('id' => $_list[$list_key]['id'])) . "','','编辑数据','');\">编辑</a>"; } if (Is_Auth('Admin/AuthGroup/del')) { $operate_menu = $operate_menu . "<a href='#' onclick=\"Data_Remove('" . U('del', array('id' => $_list[$list_key]['id'])) . "','AuthGroup_Data_List');\">删除</a>"; } $_list[$list_key]['operate'] = $operate_menu; } $data = list_to_tree($_list, 'id', 'pid', 'children'); $this->ajaxReturn($data); } else { $this->display(); } }
public function index() { if (IS_POST) { $post_data = I('post.'); $post_data['first'] = $post_data['rows'] * ($post_data['page'] - 1); $map = array(); $map = $this->_search(); $total = $this->Model->where($map)->count(); if ($total == 0) { $_list = ''; } else { $_list = $this->Model->where($map)->order($post_data['sort'] . ' ' . $post_data['order'])->limit($post_data['first'] . ',' . $post_data['rows'])->select(); } $option["is_extend"] = array(1 => '是', 0 => '否'); $op_extend = R("Admin/Function/get_extend_model"); foreach ($op_extend as $op_extend_key => $op_extend_one) { $option["extend"][$op_extend_one["id"]] = $op_extend_one["title"]; } $option["list_type"] = array(0 => '普通', 1 => '树形'); $option["status"] = array(0 => '禁用', 1 => '启用'); $option["engine_type"] = array('MyISAM' => 'MyISAM', 'InnoDB' => 'InnoDB', 'MEMORY' => 'MEMORY', 'BLACKHOLE' => 'BLACKHOLE', 'MRG_MYISAM' => 'MRG_MYISAM', 'ARCHIVE' => 'ARCHIVE'); foreach ($_list as $list_key => $list_one) { foreach ($list_one as $list_one_key => $list_one_field) { if ($option[$list_one_key] != '') { $_list[$list_key][$list_one_key] = $option[$list_one_key][$list_one_field]; } } $operate_menu = ''; if (Is_Auth('Admin/Model/build')) { $operate_menu = $operate_menu . "<a href='#' onclick=\"Submit_Form('Model_Form','Model_Data_List','" . U('Model/build?model_id=' . $_list[$list_key]['id']) . "','','你确定要生成此模型文件?一旦生成将覆盖原模型文件!','生成文件','');\">生成文件</a>"; } if (Is_Auth('Admin/ModelField/index')) { $operate_menu = $operate_menu . "<a href='#' onclick=\"UpdateTabs('ModelField','" . U('ModelField/index?model_id=' . $_list[$list_key]['id']) . "','字段管理','iconfont icon-viewlist');\">字段管理</a>"; } if (Is_Auth('Admin/Model/edit')) { $operate_menu = $operate_menu . "<a href='#' onclick=\"Submit_Form('Model_Form','Model_Data_List','" . U('Model/edit?id=' . $_list[$list_key]['id']) . "','','编辑','');\">编辑</a>"; } if (Is_Auth('Admin/Model/del')) { $operate_menu = $operate_menu . "<a href='#' onclick=\"Data_Remove('" . U('del?id=' . $_list[$list_key]['id']) . "','Model_Data_List');\">删除</a>"; } $_list[$list_key]['operate'] = $operate_menu; } $data = array('total' => $total, 'rows' => $_list); $this->ajaxReturn($data); } else { $this->display(); } }
protected function _initialize() { //继承CoreController的初始化函数 parent::_initialize(); $AUTH_KEY = session(C('AUTH_KEY')); //判断认证key如果小于1 或 Admin模块登录Key不为1,跳转到后台登录网关 if ($AUTH_KEY < 1 || session('ModelKey.Admin') != 1) { redirect(U(C('AUTH_USER_GATEWAY'))); } else { //判断当前认证key是否不在 超级管理组配置中,或者当前模块是否为非认 $Auth_Rule = MODULE_NAME . '/' . CONTROLLER_NAME . '/' . ACTION_NAME; if (!Is_Auth($Auth_Rule)) { $this->error('你没有权限进行 ' . $Auth_Rule . ' 操作!'); } } }
public function index() { if (IS_POST) { $post_data = I('post.'); $post_data['first'] = $post_data['rows'] * ($post_data['page'] - 1); $map = array(); $map = $this->_search(); $total = $this->Model->where($map)->count(); if ($total == 0) { $_list = ''; } else { $_list = $this->Model->where($map)->order($post_data['sort'] . ' ' . $post_data['order'])->limit($post_data['first'] . ',' . $post_data['rows'])->select(); } $op_status = R("Admin/Function/get_config", array("USER_STATUS_TYPE|type|title")); foreach ($op_status as $op_status_key => $op_status_one) { $option["status"][$op_status_one["type"]] = $op_status_one["title"]; } foreach ($_list as $list_key => $list_one) { foreach ($list_one as $list_one_key => $list_one_field) { if ($option[$list_one_key] != '') { $_list[$list_key][$list_one_key] = $option[$list_one_key][$list_one_field]; } } $_list[$list_key]["last_login_time"] = date("Y年m月d日", $_list[$list_key]["last_login_time"]); $_list[$list_key]["create_time"] = date("Y年m月d日", $_list[$list_key]["create_time"]); $_list[$list_key]["update_time"] = date("Y年m月d日", $_list[$list_key]["update_time"]); $operate_menu = ''; if (Is_Auth('Admin/User/group')) { $operate_menu = $operate_menu . "<a href='#' onclick=\"Submit_Form('User_Form','User_Data_List','" . U('group', array('id' => $_list[$list_key]['id'])) . "','','用户授权','你确定要修改此用户的 用户组 ?');\">用户授权</a>"; } if (Is_Auth('Admin/User/edit')) { $operate_menu = $operate_menu . "<a href='#' onclick=\"Submit_Form('User_Form','User_Data_List','" . U('edit', array('id' => $_list[$list_key]['id'])) . "','','编辑数据','');\">编辑</a>"; } if (Is_Auth('Admin/User/del')) { $operate_menu = $operate_menu . "<a href='#' onclick=\"Data_Remove('" . U('del', array('id' => $_list[$list_key]['id'])) . "','User_Data_List');\">删除</a>"; } $_list[$list_key]['operate'] = $operate_menu; } $data = array('total' => $total, 'rows' => $_list); $this->ajaxReturn($data); } else { $this->display(); } }
public function index() { if (IS_POST) { $post_data = I('post.'); $post_data['first'] = $post_data['rows'] * ($post_data['page'] - 1); $map = array(); $map = $this->_search(); $total = $this->Model->where($map)->count(); if ($total == 0) { $_list = ''; } else { $_list = $this->Model->where($map)->order($post_data['sort'] . ' ' . $post_data['order'])->limit($post_data['first'] . ',' . $post_data['rows'])->select(); } $op_type = R("Admin/Function/get_config", array("CONFIG_TYPE_LIST|type|title")); foreach ($op_type as $op_type_key => $op_type_one) { $option["type"][$op_type_one["type"]] = $op_type_one["title"]; } $op_group = R("Admin/Function/get_config", array("CONFIG_GROUP_LIST|group|title")); foreach ($op_group as $op_group_key => $op_group_one) { $option["group"][$op_group_one["group"]] = $op_group_one["title"]; } $option["status"] = array(1 => '启用', 0 => '禁用'); foreach ($_list as $list_key => $list_one) { foreach ($list_one as $list_one_key => $list_one_field) { if ($option[$list_one_key] != '') { $_list[$list_key][$list_one_key] = $option[$list_one_key][$list_one_field]; } } $operate_menu = ''; if (Is_Auth('Admin/Config/edit')) { $operate_menu = $operate_menu . "<a href='#' onclick=\"Submit_Form('Config_Form','Config_Data_List','" . U('edit', array('id' => $_list[$list_key]['id'])) . "','','编辑数据','');\">编辑</a>"; } if (Is_Auth('Admin/Config/del')) { $operate_menu = $operate_menu . "<a href='#' onclick=\"Data_Remove('" . U('del', array('id' => $_list[$list_key]['id'])) . "','Config_Data_List');\">删除</a>"; } $_list[$list_key]['operate'] = $operate_menu; } $data = array('total' => $total, 'rows' => $_list); $this->ajaxReturn($data); } else { $this->display(); } }
public function index() { $app_id = I('get.app_id'); if (IS_POST) { $post_data = I('post.'); $post_data['first'] = $post_data['rows'] * ($post_data['page'] - 1); $map = array(); $map = $this->_search(); $map['model_id'] = I('get.model_id'); $total = $this->Model->where($map)->count(); if ($total == 0) { $_list = ''; } else { $_list = $this->Model->where($map)->order($post_data['sort'] . ' ' . $post_data['order'])->limit($post_data['first'] . ',' . $post_data['rows'])->select(); } $field_extar["type"] = array('num' => '数字', 'string' => '文本框', 'textarea' => '文本区域', 'datetime' => '日期时间', 'select' => '下拉框', 'checkbox' => '选择', 'editor' => '编辑器', 'pictures' => '图片', 'files' => '附件'); $field_extar["status"] = array(0 => '禁用', 1 => '启用'); $field_extar["validate_time"] = array(1 => '新增', 2 => '修改', 3 => '全部'); $field_extar["auto_time"] = array(1 => '新增', 2 => '修改', 3 => '全部'); foreach ($_list as $list_key => $list_one) { foreach ($list_one as $list_one_key => $list_one_field) { if ($field_extar[$list_one_key] != '') { $_list[$list_key][$list_one_key] = $field_extar[$list_one_key][$list_one_field]; } } $operate_menu = ''; if (Is_Auth('Admin/ModelField/edit')) { $operate_menu = $operate_menu . "<a href='#' onclick=\"Submit_Form('ModelField_Form','ModelField_Data_List','" . U('edit', array('id' => $_list[$list_key]['id'], 'model_id' => I('get.model_id'))) . "','','编辑','');\">编辑</a>"; } if (Is_Auth('Admin/ModelField/del')) { $operate_menu = $operate_menu . "<a href='#' onclick=\"Data_Remove('" . U('del', array('id' => $_list[$list_key]['id'], 'model_id' => I('get.model_id'))) . "','ModelField_Data_List');\">删除</a>"; } $_list[$list_key]['operate'] = $operate_menu; } $data = array('total' => $total, 'rows' => $_list); $this->ajaxReturn($data); } else { $this->assign('operate', $operate); $this->assign('app_id', $app_id); $this->display(); } }
<?php if (!defined('THINK_PATH')) { exit; } ?> <div id="Config_Bar" class="Bar_tools"> <a class='easyui-linkbutton' href='JavaScript:void(0);' data-options="iconCls:'iconfont icon-viewlist',plain:true" onclick="Data_Reload('Config_Data_List');"><span>列表or刷新</span></a> <a class='easyui-linkbutton' href='JavaScript:void(0);' data-options="iconCls:'iconfont icon-search',plain:true" onclick="Data_Search('Config_Search_From','Config_Data_List');"><span>搜索</span></a> <?php if (Is_Auth('Admin/Config/add')) { ?> <a class='easyui-linkbutton' href='JavaScript:void(0);' data-options="iconCls:'iconfont icon-add',plain:true" onclick="Submit_Form('Config_Form','Config_Data_List','<?php echo U('add'); ?> ','','新增数据','');"><span>新增</span></a><?php } ?> </div> <div style="display: none"> <form id="Config_Form" class="update_from" style="width:600px; height:320px;"></form> </form> <form id="Config_Search_From" class="search_from"> <table border="0" cellpadding="0" cellspacing="0" style="width:100%"> <tr> <th>配置名称 : </th> <td><input name="s_name" type="text" class="easyui-textbox" style="height:30px;"></td> </tr><tr> <th>配置类型 : </th> <td><select name="s_type" class="easyui-combobox" style="height:30px;" data-options="value:'',url:'<?php echo U("Admin/Function/get_config");
if (!defined('THINK_PATH')) { exit; } ?> <div id="Model_Bar" class="Bar_tools"> <a class='easyui-linkbutton' href='JavaScript:void(0);' data-options="iconCls:'iconfont icon-viewlist',plain:true" onclick="Data_Reload('Model_Data_List');"><span>列表or刷新</span></a> <a class='easyui-linkbutton' href='JavaScript:void(0);' data-options="iconCls:'iconfont icon-search',plain:true" onclick="Data_Search('Model_Search_From','Model_Data_List');"><span>搜索</span></a> <?php if (Is_Auth('Admin/Model/add')) { ?> <a class='easyui-linkbutton' href='JavaScript:void(0);' data-options="iconCls:'iconfont icon-add',plain:true" onclick="Submit_Form('Model_Form','Model_Data_List','<?php echo U('add'); ?> ','','新增','');"><span>新增</span></a><?php } if (Is_Auth('Admin/Model/generate')) { ?> <a class='easyui-linkbutton' href='JavaScript:void(0);' data-options="iconCls:'iconfont icon-viewgallery',plain:true" onclick="Submit_Form('Model_Form','Model_Data_List','<?php echo U('generate'); ?> ','','系统化数据模型','');"><span>系统化数据模型</span></a><?php } ?> </div> <div style="display: none"> <form id="Model_Form" class="update_from" style="width:600px; height:350px;"></form> <form id="Model_Search_From" class="search_from"> <table> <tr> <th>标识 : </th> <td><input name="s_name" type="text" class="easyui-textbox"></td>
<?php if (!defined('THINK_PATH')) { exit; } ?> <div id="AuthRule_Bar" class="Bar_tools"> <a class='easyui-linkbutton' href='JavaScript:void(0);' data-options="iconCls:'iconfont icon-viewlist',plain:true" onclick="Data_Reload('AuthRule_Data_List');"><span>列表or刷新</span></a> <?php if (Is_Auth('Admin/AuthRule/add')) { ?> <a class='easyui-linkbutton' href='JavaScript:void(0);' data-options="iconCls:'iconfont icon-add',plain:true" onclick="UpdateTabs('AuthRule','<?php echo U('add'); ?> ','','iconfont icon-add');"><span>新增</span></a><?php } ?> </div> <table id="AuthRule_Data_List"> </table> <style> #AuthRule_Data_List .tree-file { display: none } </style> <script type="text/javascript"> $(function() { $("#AuthRule_Data_List").treegrid({ url : "<?php echo U('AuthRule/index'); ?>
<?php if (!defined('THINK_PATH')) { exit; } ?> <div id="Link_Bar" class="Bar_tools"> <a class='easyui-linkbutton' href='JavaScript:void(0);' data-options="iconCls:'iconfont icon-viewlist',plain:true" onclick="Data_Reload('Link_Data_List');"><span>列表or刷新</span></a> <a class='easyui-linkbutton' href='JavaScript:void(0);' data-options="iconCls:'iconfont icon-search',plain:true" onclick="Data_Search('Link_Search_From','Link_Data_List');"><span>搜索</span></a> <?php if (Is_Auth('Admin/Link/add')) { ?> <a class='easyui-linkbutton' href='JavaScript:void(0);' data-options="iconCls:'iconfont icon-add',plain:true" onclick="Submit_Form('Link_Form','Link_Data_List','<?php echo U('add'); ?> ','','新增数据','');"><span>新增</span></a><?php } ?> </div> <div style="display: none"> <form id="Link_Form" class="update_from" style="width:600px; height:320px;"></form> </form> <form id="Link_Search_From" class="search_from"> <table border="0" cellpadding="0" cellspacing="0" style="width:100%"> <tr> <th>友情图片 : </th> <td><input name="s_image" type="text" class="easyui-textbox" style="height:30px;"></td> </tr> </table> </form> </div>
<?php if (!defined('THINK_PATH')) { exit; } ?> <div id="ModelField_Bar" class="Bar_tools"> <a class='easyui-linkbutton' href='JavaScript:void(0);' data-options="iconCls:'iconfont icon-viewlist',plain:true" onclick="Data_Reload('ModelField_Data_List');"><span>列表or刷新</span></a> <a class='easyui-linkbutton' href='JavaScript:void(0);' data-options="iconCls:'iconfont icon-search',plain:true" onclick="Data_Search('ModelField_Search_From','ModelField_Data_List');"><span>搜索</span></a> <?php if (Is_Auth('Admin/User/add')) { ?> <a class='easyui-linkbutton' href='JavaScript:void(0);' data-options="iconCls:'iconfont icon-add',plain:true" onclick="Submit_Form('ModelField_Form','ModelField_Data_List','<?php echo U('add', array('model_id' => I('get.model_id'))); ?> ','','新增数据','');"><span>新增</span></a><?php } ?> </div> <div style="display: none"> <form id="ModelField_Form" class="update_from" style="width:750px; height:500px;"></form> <form id="ModelField_Search_From" class="search_from"> <table> <tr> <th>字段名:</th> <td><input type="text" name="s_name" class="easyui-textbox" style="height:30px;"></td> </tr> <tr> <th>字段标题:</th> <td><input type="text" name="s_title" class="easyui-textbox" style="height:30px;"></td> </tr>
<?php if (!defined('THINK_PATH')) { exit; } ?> <div id="ActionLog_Bar" class="Bar_tools"> <a class='easyui-linkbutton' href='JavaScript:void(0);' data-options="iconCls:'iconfont icon-viewlist',plain:true" onclick="Data_Reload('ActionLog_Data_List');"><span>列表or刷新</span></a> <a class='easyui-linkbutton' href='JavaScript:void(0);' data-options="iconCls:'iconfont icon-search',plain:true" onclick="Data_Search('ActionLog_Search_From','ActionLog_Data_List');"><span>搜索</span></a> <?php if (Is_Auth('Admin/ActionLog/del')) { ?> <a class='easyui-linkbutton' href='JavaScript:void(0);' data-options="iconCls:'iconfont icon-delete',plain:true" onclick="Data_Remove('<?php echo U('del'); ?> ','ActionLog_Data_List');"><span>清空日志</span></a><?php } ?> </div> <div style="display: none"> <form id="ActionLog_Form" class="update_from" style="width:600px; height:320px;"></form> <form id="ActionLog_Search_From" class="search_from"> <table border="0" cellpadding="0" cellspacing="0" style="width:100%"> <tr> <th>行为id : </th> <td><input name="s_action_id" type="text" class="easyui-textbox" style="height:30px;"></td> </tr> <tr> <th>执行用户id : </th> <td><input name="s_user_id" type="text" class="easyui-textbox" style="height:30px;"></td> </tr> <tr> <th>执行行为者ip : </th>
<?php if (!defined('THINK_PATH')) { exit; } ?> <div id="Action_Bar" class="Bar_tools"> <a class='easyui-linkbutton' href='JavaScript:void(0);' data-options="iconCls:'iconfont icon-viewlist',plain:true" onclick="Data_Reload('Action_Data_List');"><span>列表or刷新</span></a> <a class='easyui-linkbutton' href='JavaScript:void(0);' data-options="iconCls:'iconfont icon-search',plain:true" onclick="Data_Search('Action_Search_From','Action_Data_List');"><span>搜索</span></a> <?php if (Is_Auth('Admin/Action/add')) { ?> <a class='easyui-linkbutton' href='JavaScript:void(0);' data-options="iconCls:'iconfont icon-add',plain:true" onclick="Submit_Form('Action_Form','Action_Data_List','<?php echo U('add'); ?> ','','新增数据','');"><span>新增</span></a><?php } ?> </div> <div style="display: none"> <form id="Action_Form" class="update_from" style="width:600px; height:320px;"></form> </form> <form id="Action_Search_From" class="search_from"> <table border="0" cellpadding="0" cellspacing="0" style="width:100%"> <tr> <th>标识 : </th> <td><input name="s_name" type="text" class="easyui-textbox" style="height:30px;"></td> </tr><tr> <th>标题 : </th> <td><input name="s_title" type="text" class="easyui-textbox" style="height:30px;"></td> </tr><tr>
<?php if (!defined('THINK_PATH')) { exit; } ?> <div id="AuthGroup_Bar" class="Bar_tools"> <a class='easyui-linkbutton' href='JavaScript:void(0);' data-options="iconCls:'iconfont icon-viewlist',plain:true" onclick="Data_Reload('AuthGroup_Data_List');"><span>列表or刷新</span></a> <?php if (Is_Auth('Admin/AuthGroup/add')) { ?> <a class='easyui-linkbutton' href='JavaScript:void(0);' data-options="iconCls:'iconfont icon-add',plain:true" onclick="Submit_Form('AuthGroup_Form','AuthGroup_Data_List','<?php echo U('add'); ?> ','','新增数据','');"><span>新增</span></a><?php } ?> </div> <div style="display: none"> <form id="AuthGroup_Form" class="update_from" style="width:600px; height:320px;"></form> </div> <table id="AuthGroup_Data_List"></table> <script type="text/javascript"> $(function() { $("#AuthGroup_Data_List").treegrid({ url : "<?php echo U('AuthGroup/index'); ?> ", fit : true, striped : true,
<?php if (!defined('THINK_PATH')) { exit; } ?> <div id="AuthRule_Bar" class="Bar_tools"> <?php if (Is_Auth('Admin/AuthRule/index')) { ?> <a class='easyui-linkbutton' href='JavaScript:void(0);' data-options="iconCls:'iconfont icon-viewlist',plain:true" onclick="UpdateTabs('AuthRule','<?php echo U('index'); ?> ','','iconfont icon-viewlist');"><span>列表</span></a><?php } ?> <a class='easyui-linkbutton' href='JavaScript:void(0);' data-options="iconCls:'iconfont icon-add',plain:true"><span>新增</span></a> </div> <form id="AuthRule_Submit_From" class="update_from" action="<?php echo U('add'); ?> " data-options="fit:true,border:false"> <table border="0" cellpadding="0" cellspacing="0" style="width:100%"> <tr> <th>上级菜单 : </th> <td><select name="pid" class="easyui-combotree" style="width:220px;height: 30px;" data-options="value:'<?php echo I('get.pid', 0); ?> ',url:'<?php echo U('Admin/Function/get_auth_rule'); ?> &pid=-1&r_type=json',multiple:false,required:false,editable:false">