diff --git a/application/member/common.php b/application/admin/common.php similarity index 100% rename from application/member/common.php rename to application/admin/common.php diff --git a/application/member/controller/Error.php b/application/admin/controller/Error.php similarity index 100% rename from application/member/controller/Error.php rename to application/admin/controller/Error.php diff --git a/application/admin/controller/Index.php b/application/admin/controller/Index.php new file mode 100644 index 00000000..58a2a0f0 --- /dev/null +++ b/application/admin/controller/Index.php @@ -0,0 +1,96 @@ +where('id','>',1) + ->all(); + + // 模板赋值 + $this->assign('list',$list); + + // 渲染模板 + return $this->fetch(); + + } + + /** + * 显示创建资源表单页. + * + * @return \think\Response + */ + public function create() + { + // + } + + /** + * 保存新建的资源 + * + * @param \think\Request $request + * @return \think\Response + */ + public function save(Request $request) + { + // + } + + /** + * 显示指定的资源 + * + * @param int $id + * @return \think\Response + */ + public function read($id) + { + // + } + + /** + * 显示编辑资源表单页. + * + * @param int $id + * @return \think\Response + */ + public function edit($id) + { + // + } + + /** + * 保存更新的资源 + * + * @param \think\Request $request + * @param int $id + * @return \think\Response + */ + public function update(Request $request, $id) + { + // + } + + /** + * 删除指定资源 + * + * @param int $id + * @return \think\Response + */ + public function delete($id) + { + // + } +} diff --git a/application/member/model/Member.php b/application/admin/model/Admin.php similarity index 89% rename from application/member/model/Member.php rename to application/admin/model/Admin.php index b08a5373..bb833534 100644 --- a/application/member/model/Member.php +++ b/application/admin/model/Admin.php @@ -1,10 +1,10 @@ 首页 > 管理员管理 > 管理员列表 +{/block} +{block name="bouttons"} +
+{/block} +{block name="tables"} +| + | ID | +用户名 | +性别 | +手机 | +邮箱 | +地址 | +加入时间 | +状态 | +操作 | +
|---|---|---|---|---|---|---|---|---|---|
| + | 1 | +张三 | +男 | +13000000000 | +admin@mail.com | +北京市 海淀区 | +2014-6-11 11:11:42 | +已启用 | + | +