From 95c087c1fe6292e3b011994c4134313e3d571759 Mon Sep 17 00:00:00 2001 From: cxdbz Date: Wed, 27 Mar 2019 19:19:56 +0800 Subject: [PATCH] 0 --- application/system/controller/SystemBase.php | 57 ------ application/system/view/system_base/edit.html | 122 ------------ .../system/view/system_base/edit1.html | 71 ------- .../system/view/system_base/index.html | 15 +- .../system/view/system_base/index1.html | 175 ------------------ 5 files changed, 6 insertions(+), 434 deletions(-) delete mode 100644 application/system/view/system_base/edit.html delete mode 100644 application/system/view/system_base/edit1.html delete mode 100644 application/system/view/system_base/index1.html diff --git a/application/system/controller/SystemBase.php b/application/system/controller/SystemBase.php index 51eeae8f..b0b50df7 100644 --- a/application/system/controller/SystemBase.php +++ b/application/system/controller/SystemBase.php @@ -29,68 +29,11 @@ class SystemBase extends Base // 模板赋值 $this->assign('list',$list); - halt($list); - // 渲染模板 return $this->fetch(); } - - // 系统设置列表 - public function ajaxData() - { - // 获取DT的传值 - $getdt = request()->param(); - - //得到排序的方式 - $order = $getdt['order'][0]['dir']; - //得到排序字段的下标 - $order_column = $getdt['order'][0]['column']; - //根据排序字段的下标得到排序字段 - $order_field = $getdt['columns'][$order_column]['data']; - //得到limit参数 - $limit_start = $getdt['start']; - $limit_length = $getdt['length']; - //得到搜索的关键词 - $search = $getdt['search']['value']; - - - // 获取记录集总数 - $cnt = 1; - //查询数据 - $data = sysbasemod::field('id,title,keywords,description,thinks,danwei') - ->order([$order_field=>$order]) - // ->limit(1,1) - ->select(); - - $datacnt = 1; - - $data = [ - 'draw'=> $getdt["draw"] , // ajax请求次数,作为标识符 - 'recordsTotal'=>$datacnt, // 获取到的结果数(每页显示数量) - 'recordsFiltered'=>$cnt, // 符合条件的总数据量 - 'data'=>$data, //获取到的数据结果 - ]; - - return json($data); - } - - - - // 编辑系统设置 - public function edit($id) - { - // 获取用户信息 - $list = sysbasemod::field('id,webtitle,keywords,description,thinks,danwei') - ->get($id); - - - $this->assign('list',$list); - - return $this->fetch(); - } - // 更新资源 public function update($id) { diff --git a/application/system/view/system_base/edit.html b/application/system/view/system_base/edit.html deleted file mode 100644 index ac163647..00000000 --- a/application/system/view/system_base/edit.html +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - 欢迎页面-X-admin2.1 - - - - {load href="__STATIC__/xadmin/css/font.css" /} - {load href="__STATIC__/xadmin/css/xadmin.css" /} - {load href="__STATIC__/xadmin/js/jquery.min.js" /} - {load href="__STATIC__/xadmin/lib/layui/layui.js" /} - {load href="__STATIC__/xadmin/js/xadmin.js" /} - {load href="__STATIC__/xadmin/js/cookie.js" /} - - - - - -
-
-
- -
- -
-
- *将会成为您唯一的登入名 -
-
-
- -
- -
-
-
- -
- -
-
- 6到16个字符 -
-
-
- -
- -
-
-
- - -
-
-
- - - - - \ No newline at end of file diff --git a/application/system/view/system_base/edit1.html b/application/system/view/system_base/edit1.html deleted file mode 100644 index d2146d1f..00000000 --- a/application/system/view/system_base/edit1.html +++ /dev/null @@ -1,71 +0,0 @@ -{extend name="common@create" /} -{block name="formaa"} -
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
-
- -
-
-
-{/block} -{block name="yanzheng"} - -{/block} \ No newline at end of file diff --git a/application/system/view/system_base/index.html b/application/system/view/system_base/index.html index a6800a10..25cd4801 100644 --- a/application/system/view/system_base/index.html +++ b/application/system/view/system_base/index.html @@ -3,7 +3,7 @@ - 欢迎页面-X-admin2.1 + {$list.webtitle} @@ -19,9 +19,6 @@ - {php} - dump($list); - {/php}
@@ -29,9 +26,9 @@ -
+
+ autocomplete="off" class="layui-input " value="{$list.webtitle}">
*将会成为您唯一的登入名 @@ -51,7 +48,7 @@ *描述
-
@@ -63,7 +60,7 @@ *感谢
-
@@ -72,7 +69,7 @@ *使用单位
-
diff --git a/application/system/view/system_base/index1.html b/application/system/view/system_base/index1.html deleted file mode 100644 index 0b881d04..00000000 --- a/application/system/view/system_base/index1.html +++ /dev/null @@ -1,175 +0,0 @@ - - - - 欢迎页面-X-admin2.1 - - - - {load href="__STATIC__/xadmin/css/font.css" /} - {load href="__STATIC__/xadmin/css/xadmin.css" /} - {load href="__STATIC__/xadmin/js/jquery.min.js" /} - {load href="__STATIC__/xadmin/lib/layui/layui.js" /} - {load href="__STATIC__/xadmin/js/xadmin.js" /} - {load href="__STATIC__/xadmin/js/cookie.js" /} - - - - - - -
-
- - - - - - -
- - - - 共有数据:88 条 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
ID用户名性别手机邮箱地址加入时间状态操作
-
-
1小明男13000000000admin@mail.com北京市 海淀区2017-01-01 11:11:42 - 已启用 - - - - - - - - - - - - -
-
-
- - 1 - 2 - 3 - 489 - -
-
- -
- - - - - \ No newline at end of file