diff --git a/application/kaoshi/controller/Error.php b/application/kaoshi/controller/Error.php new file mode 100644 index 00000000..faceef77 --- /dev/null +++ b/application/kaoshi/controller/Error.php @@ -0,0 +1,11 @@ +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/keti/model/Keti.php b/application/keti/model/Keti.php new file mode 100644 index 00000000..8886e171 --- /dev/null +++ b/application/keti/model/Keti.php @@ -0,0 +1,11 @@ + ['规则1','规则2'...] + * + * @var array + */ + protected $rule = []; + + /** + * 定义错误信息 + * 格式:'字段名.规则名' => '错误信息' + * + * @var array + */ + protected $message = []; +} diff --git a/application/keti/view/index/create.html b/application/keti/view/index/create.html new file mode 100644 index 00000000..5ffbe321 --- /dev/null +++ b/application/keti/view/index/create.html @@ -0,0 +1,77 @@ +{extend name="common@create" /} +{block name="mycss"} +{/block} +{block name="formaa"} +
+{/block} +{block name="yanzheng"} + +{/block} \ No newline at end of file diff --git a/application/rongyu/view/js_rongyu/createall.html b/application/keti/view/index/createall.html similarity index 100% rename from application/rongyu/view/js_rongyu/createall.html rename to application/keti/view/index/createall.html diff --git a/application/keti/view/index/edit.html b/application/keti/view/index/edit.html new file mode 100644 index 00000000..ee86b726 --- /dev/null +++ b/application/keti/view/index/edit.html @@ -0,0 +1,77 @@ +{extend name="common@create" /} +{block name="mycss"} +{/block} +{block name="formaa"} + +{/block} +{block name="yanzheng"} + +{/block} \ No newline at end of file diff --git a/application/keti/view/index/index.html b/application/keti/view/index/index.html new file mode 100644 index 00000000..cf316dce --- /dev/null +++ b/application/keti/view/index/index.html @@ -0,0 +1,198 @@ +{extend name="common@list" /} +{block name="topnav"} + +{/block} +{block name="bouttons"} +| + | 荣誉册名称 | +颁奖单位 | +荣誉类别 | +荣誉数量 | +颁奖时间 | +状态 | +操作 | +
|---|