public function index()
 {
     $page = $_GET['page'];
     $table = array('id' => '主键', 'username' => '教师姓名', 'email' => '邮箱', 'status' => '状态', 'c_time' => '创建时间', 'u_time' => '最后修改时间');
     $count = M('Order')->count();
     $page_list = ceil($count / 10);
     $info = M('Order')->where(array('status' => 1))->page($page, 10)->select();
     $make_table = makeTable($table);
     $jankzmaker = new \JankzMaker\Controller\Admin\MakerTable();
     $jankzmaker->setMetaTitle('管理员列表')->setThead($make_table['thead'])->setTbodyList($make_table['list'])->setTbodyData($info)->addTopBtn('default')->addRightBtn('edit')->addRightBtn('resume')->addRightBtn('forbid')->addRightBtn('delete')->setPage($page_list)->display();
 }
 public function index()
 {
     $page = $_GET['page'];
     $table = array('id' => '主键', 'title' => '用户组中文名称', 'rules' => '用户组拥有权限id用,隔开', 'status' => '状态');
     $count = M('AuthRule')->count();
     $page_list = ceil($count / 10);
     $info = M('AuthGroup')->where(array('status' => 1))->page($page, 10)->select();
     $make_table = makeTable($table);
     $jankzmaker = new \JankzMaker\Controller\Admin\MakerTable();
     $jankzmaker->setMetaTitle('用户组管理')->setThead($make_table['thead'])->setTbodyList($make_table['list'])->setTbodyData($info)->addTopBtn('default')->setPage($page_list)->display();
 }
 public function index()
 {
     $page = $_GET['page'];
     $table = array('id' => '主键', 'name' => '规则唯一标识', 'title' => '中文名称', 'type' => '类型', 'status' => '状态', 'condition' => '规则表达式');
     $count = M('AuthRule')->count();
     $page_list = ceil($count / 10);
     $info = M('AuthRule')->where(array('status' => 1))->page($page, 10)->select();
     $make_table = makeTable($table);
     $jankzmaker = new \JankzMaker\Controller\Admin\MakerTable();
     $jankzmaker->setMetaTitle('权限规则列表')->setThead($make_table['thead'])->setTbodyList($make_table['list'])->setTbodyData($info)->addTopBtn('default')->setPage($page_list)->display();
 }
 public function index()
 {
     $page = $_GET['page'];
     $user = M('User');
     $count = $user->count();
     $page_list = ceil($count / 10);
     $info = $user->where(array('status' => 1))->page($page, 10)->select();
     $table = array('id' => '用户id', 'username' => '用户名', 'phone' => '用户手机', 'status' => '用户状态', 'c_time' => '用户创建时间', 'u_time' => '用户更新时间');
     $make_table = makeTable($table);
     $jankzmaker = new \JankzMaker\Controller\Admin\MakerTable();
     $jankzmaker->setMetaTitle('用户列表')->setThead($make_table['thead'])->setTbodyList($make_table['list'])->setTbodyData($info)->addTopBtn('default')->addRightBtn('edit')->addRightBtn('resume')->addRightBtn('forbid')->addRightBtn('delete')->display();
 }
 public function menulist()
 {
     //生成页面之前建构数据模型
     $table = array('id' => 'id', 'pid' => '父ID', 'title' => '名称', 'sort' => '排序值', 'url' => '链接地址', 'icon' => '图表', 'status' => '状态', 'c_time' => '创建时间', 'u_time' => '修改时间');
     $page = $_GET['page'];
     $system = M('System');
     $count = $system->count();
     $page_list = ceil($count / 10);
     $info = $system->where(array('status' => '1'))->page($page, 10)->select();
     //调用表格制作函数 返回make_table 用来拆分$tbale 的key 和 value
     $make_table = makeTable($table);
     //调用jankzmaker 生成页面
     $jankzmaker = new \JankzMaker\Controller\Admin\MakerTable();
     $jankzmaker->setMetaTitle('测试')->setTbodyData($info)->setTbodyList($make_table['list'])->setThead($make_table['thead'])->addRightBtn('edit')->addRightBtn('resume')->addRightBtn('forbid')->addRightBtn('delete')->addTopBtn('add,forbid')->addTopBtn('delete')->setPage($page_list)->display();
 }