diff --git a/application/admin/controller/example/Tabletemplate.php b/application/admin/controller/example/Tabletemplate.php new file mode 100644 index 00000000..fcc5c35f --- /dev/null +++ b/application/admin/controller/example/Tabletemplate.php @@ -0,0 +1,60 @@ +model = model('AdminLog'); + } + + /** + * 查看 + */ + public function index() + { + if ($this->request->isAjax()) + { + list($where, $sort, $order, $offset, $limit) = $this->buildparams(NULL); + $total = $this->model + ->where($where) + ->order($sort, $order) + ->count(); + $list = $this->model + ->where($where) + ->order($sort, $order) + ->limit($offset, $limit) + ->select(); + $result = array("total" => $total, "rows" => $list); + + return json($result); + } + return $this->view->fetch(); + } + + /** + * 详情 + */ + public function detail($ids) + { + $row = $this->model->get(['id' => $ids]); + if (!$row) + $this->error(__('No Results were found')); + $this->view->assign("row", $row->toArray()); + return $this->view->fetch(); + } + +} diff --git a/application/admin/lang/zh-cn.php b/application/admin/lang/zh-cn.php index 6ca614ce..76b1335a 100644 --- a/application/admin/lang/zh-cn.php +++ b/application/admin/lang/zh-cn.php @@ -69,6 +69,7 @@ return [ 'Status' => '状态', 'Operate' => '操作', 'Append' => '追加', + 'Select' => '选择', 'Memo' => '备注', 'Parent' => '父级', 'Params' => '参数', @@ -78,6 +79,7 @@ return [ 'Begin time' => '开始时间', 'End time' => '结束时间', 'Create time' => '创建时间', + 'Update time' => '更新时间', 'Flag' => '标志', 'Redirect now' => '立即跳转', 'Operation completed' => '操作成功!', diff --git a/application/admin/lang/zh-cn/wechat/autoreply.php b/application/admin/lang/zh-cn/wechat/autoreply.php new file mode 100644 index 00000000..883aed2c --- /dev/null +++ b/application/admin/lang/zh-cn/wechat/autoreply.php @@ -0,0 +1,7 @@ + '文本', + 'Event key' => '响应标识', + 'Remark' => '备注', +]; diff --git a/application/admin/lang/zh-cn/wechat/response.php b/application/admin/lang/zh-cn/wechat/response.php new file mode 100644 index 00000000..37bb3bd7 --- /dev/null +++ b/application/admin/lang/zh-cn/wechat/response.php @@ -0,0 +1,8 @@ + '资源标题', + 'Event key' => '事件标识', + 'Text' => '文本', + 'App' => '应用', +]; diff --git a/application/admin/view/common/header.html b/application/admin/view/common/header.html index aa6eed51..962ea8ac 100644 --- a/application/admin/view/common/header.html +++ b/application/admin/view/common/header.html @@ -1,9 +1,9 @@