diff --git a/app/common.php b/app/common.php index 708c5dc8..186fe7e9 100644 --- a/app/common.php +++ b/app/common.php @@ -8,8 +8,8 @@ // +---------------------------------------------------------------------- // SentCMS常量定义 -define('SENTCMS_VERSION', '3.6.201803'); -define('SENT_ADDON_PATH', __DIR__ . '/../addons' . DS); +define('sent_version', '4.0.0'); +define('sent_path_addons', __DIR__ . '/../addons' . DS); //字符串解密加密 function authcode($string, $operation = 'DECODE', $key = '', $expiry = 0) { diff --git a/app/controller/admin/Channel.php b/app/controller/admin/Channel.php index 9adf4e03..bfbdd73c 100644 --- a/app/controller/admin/Channel.php +++ b/app/controller/admin/Channel.php @@ -16,6 +16,9 @@ class Channel extends Admin{ * @title 系统首页 */ public function index(){ - + $this->data['data'] = array( + 'tree' => array() + ); + return $this->data; } } \ No newline at end of file diff --git a/app/controller/admin/Config.php b/app/controller/admin/Config.php index e9d1857f..ca3413af 100644 --- a/app/controller/admin/Config.php +++ b/app/controller/admin/Config.php @@ -10,35 +10,221 @@ namespace app\controller\admin; use app\controller\Admin; use app\model\Config as ConfigModel; +use think\facade\Cache; + +class Config extends Admin { -class Config extends Admin{ - /** * @title 系统首页 */ - public function index(){ + public function index(ConfigModel $config) { + $group = input('group', 0, 'trim'); + $name = input('name', '', 'trim'); + $system_config = Cache::get('system_config'); + /* 查询条件初始化 */ + $map = array('status' => 1); + if ($group) { + $map['group'] = $group; + } + + if ($name) { + $map['name'] = array('like', '%' . $name . '%'); + } + + $list = $config->where($map)->order('id desc')->paginate(25, false, array( + 'query' => $this->request->param(), + )); + // 记录当前列表页的cookie + Cookie('__forward__', $_SERVER['REQUEST_URI']); + + $data = array( + 'page' => $list->render(), + 'group_id' => $group, + 'list' => $list, + ); + $this->data['data'] = $data; + return $this->data; } - + /** * @title 系统首页 */ - public function group(ConfigModel $config){ + public function group(ConfigModel $config) { if ($this->request->isAjax()) { $this->data['code'] = 1; return $this->data; - }else{ - $this->data['id'] = $this->request->param('id', 1); - $res = $config->where(array('status' => 1, 'group' => $this->data['id']))->field('id,name,title,extra,value,remark,type')->order('sort')->select(); + } else { + $id = $this->request->param('id', 1); + $res = $config->where(array('status' => 1, 'group' => $id))->field('id,name,title,extra,value,remark,type')->order('sort')->select(); - $this->data['list'] = $res->toArray(); + $list = $res->toArray(); + $this->data['data'] = array('list' => $list, 'id' => $id); return $this->data; } } /** - * @title 主题设置 + * @title 新增配置 + * @author 麦当苗儿 */ - public function themes(){ + public function add(ConfigModel $config) { + if ($this->request->isPost()) { + $config = model('Config'); + $data = $this->request->post(); + if ($data) { + $id = $config->validate(true)->save($data); + if ($id) { + cache('db_config_data', null); + //记录行为 + action_log('update_config', 'config', $id, session('user_auth.uid')); + return $this->success('新增成功', url('index')); + } else { + return $this->error('新增失败'); + } + } else { + return $this->error($config->getError()); + } + } else { + $this->data['data'] = array('info' => array()); + $this->data['template'] = "edit"; + return $this->data; + } + } + + /** + * @title 编辑配置 + * @author 麦当苗儿 + */ + public function edit(ConfigModel $config) { + if ($this->request->isPost()) { + $config = model('Config'); + $data = $this->request->post(); + if ($data) { + $result = $config->validate('Config.edit')->save($data, array('id' => $data['id'])); + if (false !== $result) { + cache('db_config_data', null); + //记录行为 + action_log('update_config', 'config', $data['id'], session('user_auth.uid')); + return $this->success('更新成功', Cookie('__forward__')); + } else { + return $this->error($config->getError(), ''); + } + } else { + return $this->error($config->getError()); + } + } else { + $id = $this->request->param('id', 0); + if (!$id) { + $this->data['msg'] = "非法操作!"; + return $this->data; + } + $info = array(); + /* 获取数据 */ + $info = $config->field(true)->find($id); + + if (false === $info) { + return $this->error('获取配置信息错误'); + } + $this->data['data'] = array( + 'info' => $info, + ); + return $this->data; + } + } + /** + * @title 批量保存配置 + * @author 麦当苗儿 + */ + public function save($config) { + if ($config && is_array($config)) { + $Config = db('Config'); + foreach ($config as $name => $value) { + $map = array('name' => $name); + $Config->where($map)->setField('value', $value); + } + } + cache('db_config_data', null); + return $this->success('保存成功!'); + } + + /** + * @title 删除配置 + * @author 麦当苗儿 + */ + public function del() { + $id = array_unique((array) input('id', 0)); + + if (empty($id)) { + return $this->error('请选择要操作的数据!'); + } + + $map = array('id' => array('in', $id)); + if (db('Config')->where($map)->delete()) { + cache('DB_CONFIG_DATA', null); + //记录行为 + action_log('update_config', 'config', $id, session('user_auth.uid')); + return $this->success('删除成功'); + } else { + return $this->error('删除失败!'); + } + } + + /** + * @title 配置排序 + * @author huajie + */ + public function sort() { + if ($this->request->isGet()) { + $ids = input('ids'); + //获取排序的数据 + $map = array('status' => array('gt', -1)); + if (!empty($ids)) { + $map['id'] = array('in', $ids); + } elseif (input('group')) { + $map['group'] = input('group'); + } + $list = db('Config')->where($map)->field('id,title')->order('sort asc,id asc')->select(); + + $this->assign('list', $list); + $this->setMeta('配置排序'); + return $this->fetch(); + } elseif ($this->request->isPost()) { + $ids = input('post.ids'); + $ids = explode(',', $ids); + foreach ($ids as $key => $value) { + $res = db('Config')->where(array('id' => $value))->setField('sort', $key + 1); + } + if ($res !== false) { + return $this->success('排序成功!', Cookie('__forward__')); + } else { + return $this->error('排序失败!'); + } + } else { + return $this->error('非法请求!'); + } + } + + /** + * @title 主题选择 + */ + public function themes(ConfigModel $config) { + if ($this->request->isPost()) { + $result = $config->where('name', $name . '_themes')->setField('value', $id); + if (false !== $result) { + \think\Cache::clear(); + return $this->success('设置成功!'); + }else{ + return $this->error('设置失败!'); + } + }else{ + $list = $config->getThemesList(); + $this->data['data'] = array( + 'pc' => $this->data['config']['pc_themes'], + 'mobile' => $this->data['config']['mobile_themes'], + 'list' => $list, + ); + return $this->data; + } } } \ No newline at end of file diff --git a/app/middleware/Admin.php b/app/middleware/Admin.php index 36f2972e..6347c5a7 100644 --- a/app/middleware/Admin.php +++ b/app/middleware/Admin.php @@ -42,14 +42,19 @@ class Admin { // 使用内置PHP模板引擎渲染模板输出 $config = array( 'tpl_replace_string' => array( - '__static__' => '/static', - '__img__' => '/static/admin/images', - '__css__' => '/static/admin/css', - '__js__' => '/static/admin/js', - '__public__' => '/static/admin', + '__static__' => '/static', + '__img__' => '/static/admin/images', + '__css__' => '/static/admin/css', + '__js__' => '/static/admin/js', + '__public__' => '/static/admin', ), ); - - return View::config($config)->assign($this->data)->fetch($template); + + $template = (isset($this->data['template']) && $this->data['template']) ? $this->data['template'] : $template; + return View::config($config) + ->assign('sent_version', sent_version) + ->assign('config', (isset($this->data['config']) ? $this->data['config'] : [])) + ->assign((isset($this->data['data']) ? $this->data['data'] : [])) + ->fetch($template); } } \ No newline at end of file diff --git a/app/middleware/AdminAuth.php b/app/middleware/AdminAuth.php index 951a4395..8c9c1993 100644 --- a/app/middleware/AdminAuth.php +++ b/app/middleware/AdminAuth.php @@ -39,6 +39,7 @@ class AdminAuth { * @title 显示菜单 */ protected function getMenu($request) { + $list = []; $current_controller = '/' . str_replace('.', '/', strtolower($request->controller())); $current_url = $current_controller . '/' . strtolower($request->action()); $menu = Cache::get('menu'); diff --git a/app/model/Config.php b/app/model/Config.php index 8d98ad40..601dbb02 100644 --- a/app/model/Config.php +++ b/app/model/Config.php @@ -10,6 +10,7 @@ namespace app\model; use think\Model; +use think\facade\Cache; /** * 设置模型 @@ -28,7 +29,8 @@ class Config extends Model{ } protected function getTypeTextAttr($value, $data){ - $type = config('config_type_list'); + $config = Cache::get('system_config'); + $type = $config['config_type_list']; $type_text = explode(',', $type[$data['type']]); return $type_text[0]; } diff --git a/app/view/admin/action/detail.html b/app/view/admin/action/detail.html new file mode 100644 index 00000000..b0c0601a --- /dev/null +++ b/app/view/admin/action/detail.html @@ -0,0 +1,32 @@ +{extend name="admin/base"/} +{block name="body"} +
+
+ +
+

{$meta_title|default='新功能'}

+
+
+
+
+ +
+ + + + + + + + + {volist name="info" id="item"} + + + + + {/volist} + +
名称信息
{$key}:{$item}
+
+
+{/block} \ No newline at end of file diff --git a/app/view/admin/action/index.html b/app/view/admin/action/index.html index bdfbdaa3..41caaba0 100644 --- a/app/view/admin/action/index.html +++ b/app/view/admin/action/index.html @@ -1 +1,67 @@ -{extend name="admin/base"/} \ No newline at end of file +{extend name="admin/base"/} +{block name="body"} +
+
+ +
+

{$meta_title|default='新功能'}

+
+
+ 新 增 + + + +
+
+
+ + + + + + + + + + + + + + + + {volist name="list" id="vo"} + + + + + + + + + + + {/volist} + +
+ + 编号标识名称类型规则状态操作
+ + {$vo.id}{$vo.name} + {$vo.title} + + {:get_action_type($vo['type'])} + {$vo.remark}{$vo.status_text} + 编辑 + {if $vo['status']} + 禁用 + {else/} + 启用 + {/if} + 删除 +
+ + {$page|raw} + +
+
+{/block} \ No newline at end of file diff --git a/app/view/admin/action/log.html b/app/view/admin/action/log.html new file mode 100644 index 00000000..19454ee4 --- /dev/null +++ b/app/view/admin/action/log.html @@ -0,0 +1,49 @@ +{extend name="admin/base"/} + +{block name="body"} +
+
+ +
+

{$meta_title|default='新功能'}

+
+
+ 清 空 + +
+
+ +
+ + + + + + + + + + + + + + {volist name="list" id="vo"} + + + + + + + + + {/volist} + +
编号行为名称执行者执行时间操作
{$vo['id']} {:get_action($vo['action_id'],'title')}{:get_nickname($vo['user_id'])}{$vo.create_time|time_format}详细 + 删除 +
+ + {$page|raw} + +
+
+{/block} \ No newline at end of file diff --git a/app/view/admin/ad/index.html b/app/view/admin/ad/index.html index bdfbdaa3..183f5b86 100644 --- a/app/view/admin/ad/index.html +++ b/app/view/admin/ad/index.html @@ -1 +1,80 @@ -{extend name="admin/base"/} \ No newline at end of file +{extend name="admin/base"/} +{block name="style"} + +{/block} +{block name="body"} +
+
+
+

{$meta_title|default='新功能'}

+
+
+ 新 增 + +
+
+
+
+ + + + + + + + + + + + + + {volist name="list" id="item"} + + + + + + + + + + {/volist} + +
ID名称标识创建时间更新时间操作
{$item['id']}{$item['title']}{$item['name']}{$item['create_time']|date='Y-m-d H:i',###}{$item['update_time']|date='Y-m-d H:i',###} + 广告列表 + 编辑 + 删除 +
+ {$page|raw} +
+
+
+{/block} +{block name="script"} + + +{/block} \ No newline at end of file diff --git a/app/view/admin/ad/lists.html b/app/view/admin/ad/lists.html new file mode 100644 index 00000000..b78f0d7e --- /dev/null +++ b/app/view/admin/ad/lists.html @@ -0,0 +1,50 @@ +{extend name="admin/base"/} +{block name="style"} + +{/block} +{block name="body"} +
+
+
+

{$meta_title|default='新功能'}

+
+ +
+
+ +
+ + + + + + + + + + + + + {volist name="list" id="item"} + + + + + + + + + {/volist} + +
ID标题创建时间更新时间操作
{$item['id']}{$item['title']}{$item['create_time']|date='Y-m-d H:i',###}{$item['update_time']|date='Y-m-d H:i',###} + 编辑 + 删除 +
+
+ +
+
+{/block} \ No newline at end of file diff --git a/app/view/admin/addons/add.html b/app/view/admin/addons/add.html new file mode 100644 index 00000000..cf70bece --- /dev/null +++ b/app/view/admin/addons/add.html @@ -0,0 +1,78 @@ +{extend name="admin/base"/} +{block name="style"} + +{/block} +{block name="body"} +
+
+
+

{$meta_title|default='新功能'}

+
+
+
+
+
+
+
+ +
+ {:widget('common/Form/show',array(array('name'=>'title','title'=>'插件名','type'=>'text'),''))} +
请输入插件名
+
+
+
+ +
+ {:widget('common/Form/show',array(array('name'=>'name','title'=>'插件标识名','type'=>'text'),''))} +
请输入插件标识
+
+
+
+ +
+ {:widget('common/Form/show',array(array('name'=>'version','title'=>'插件版本','type'=>'text'),''))} +
请输入插件版本
+
+
+
+ +
+ {:widget('common/Form/show',array(array('name'=>'author','title'=>'插件作者','type'=>'text'),''))} +
请输入插件作者
+
+
+
+ +
+ {:widget('common/Form/show',array(array('name'=>'description','title'=>'插件描述','type'=>'textarea'),''))} +
请输入插件描述
+
+
+
+ +
+ {:widget('common/Form/show',array(array('name'=>'is_open','title'=>'是否启用','type'=>'radio','option'=>array('1'=>'启用','0'=>'禁用')),''))} +
请输入插件描述
+
+
+
+ +
+ {:widget('common/Form/show',array(array('name'=>'has_config','title'=>'是否需要配置','type'=>'radio','option'=>array('1'=>'启用','0'=>'禁用')),''))} +
请输入插件描述
+
+
+
+
+ + + + +
+
+
+
+
+{/block} +{block name="script"} +{/block} \ No newline at end of file diff --git a/app/view/admin/addons/addons.tpl b/app/view/admin/addons/addons.tpl new file mode 100644 index 00000000..51c6b618 --- /dev/null +++ b/app/view/admin/addons/addons.tpl @@ -0,0 +1,38 @@ + +// +---------------------------------------------------------------------- + +namespace addons\[name]; +use common\controller\Addon; + +/** +* [title]插件 +* @author [author] +*/ +class [name] extends Addon{ + + public $info = array( + 'name'=>'[name]', + 'title'=>'[title]', + 'description'=>'[description]', + 'status'=>[status], + 'author'=>'[author]', + 'version'=>'[version]' + ); + + //插件安装 + public function install(){ + return true; + } + + public function uninstall(){ + return true; + } + + [hook] +} \ No newline at end of file diff --git a/app/view/admin/addons/hooks.html b/app/view/admin/addons/hooks.html index bdfbdaa3..ab57bfab 100644 --- a/app/view/admin/addons/hooks.html +++ b/app/view/admin/addons/hooks.html @@ -1 +1,77 @@ -{extend name="admin/base"/} \ No newline at end of file +{extend name="admin/base"/} +{block name="style"} + +{/block} +{block name="body"} +
+
+
+

{$meta_title|default='新功能'}

+
+
+ 新 增 + +
+
+
+
+ + + + + + + + + + + + + {volist name="list" id="item"} + + + + + + + + + {/volist} + +
ID名称描述类型操作
{$item['id']|default=0}{$item['name']}{$item['description']}{$item['type_text']} + 编辑 + 删除 +
+ {$page|raw} +
+
+
+{/block} +{block name="script"} + + +{/block} \ No newline at end of file diff --git a/app/view/admin/addons/index.html b/app/view/admin/addons/index.html index bdfbdaa3..fcd69b38 100644 --- a/app/view/admin/addons/index.html +++ b/app/view/admin/addons/index.html @@ -1 +1,93 @@ -{extend name="admin/base"/} \ No newline at end of file +{extend name="admin/base"/} +{block name="style"} + +{/block} +{block name="body"} +
+
+
+

{$meta_title|default='新功能'}

+
+
+ 更 新 + 新 增 + +
+
+
+
+ + + + + + + + + + + + + + + + {volist name="list" id="item"} + + + + + + + + + + + + {/volist} + +
ID名称标识描述状态作者版本操作
{$item['id']|default=0}{$item['title']}{$item['name']}{$item['description']}{$item['status_text']}{$item['author']}{$item['version']} + {if !$item['isinstall']} + 安装 + {else/} + 卸载 + {if $item['status']} + 禁用 + {else/} + 启用 + {/if} + 设置 + {/if} +
+ {$page|raw} +
+
+
+{/block} +{block name="script"} + + +{/block} \ No newline at end of file diff --git a/app/view/admin/attribute/index.html b/app/view/admin/attribute/index.html new file mode 100644 index 00000000..bb8bbbf6 --- /dev/null +++ b/app/view/admin/attribute/index.html @@ -0,0 +1,64 @@ +{extend name="admin/base"/} +{block name="body"} +
+
+
+

{$meta_title|default='新功能'}

+
+ +
+
+
+ + + + + + + + + + + + + + {volist name="list" id="item"} + + + + + + + + + + {/volist} + +
表单标题字段名字段类型字段长度默认值操作
{$item['title']}{$item['name']}{$item['type_text']}{$item['length']}{$item['value']} + 编辑 + 删除 +
+ {$page|raw} +
+
+
+{/block} +{block name="script"} + + +{/block} \ No newline at end of file diff --git a/app/view/admin/base.html b/app/view/admin/base.html index 01aaa37a..6c7cdc83 100644 --- a/app/view/admin/base.html +++ b/app/view/admin/base.html @@ -116,7 +116,7 @@
  • - + 操作指南 diff --git a/app/view/admin/category/edit.html b/app/view/admin/category/edit.html new file mode 100644 index 00000000..ce607cae --- /dev/null +++ b/app/view/admin/category/edit.html @@ -0,0 +1,192 @@ +{extend name="admin/base"/} +{block name="body"} +
    +
    +
    +

    {:isset($info['id'])?'编辑':'新增'}分类

    +
    +
    +
    +
    +
    + +
    +
    +
    + +
    + + + +
    +
    +
    + +
    + + (名称不能为空) +
    +
    +
    + +
    + + (英文字母) +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + + + + (是否允许发布内容) +
    +
    +
    + +
    + + + (在该分类下发布的内容是否需要审核) +
    +
    +
    + +
    + {:widget('common/Form/show',array(array('name'=>'icon','type'=>'image'),$info))} +
    +
    + +
    +
    + +
    + +
    + + (是否对用户可见,针对前台) +
    +
    +
    + +
    + + (仅对当前层级分类有效) +
    +
    +
    + +
    + +
    +
    + +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +{/block} + +{block name="script"} + + + + +{/block} \ No newline at end of file diff --git a/app/view/admin/category/edit_channel.html b/app/view/admin/category/edit_channel.html new file mode 100644 index 00000000..171d8e13 --- /dev/null +++ b/app/view/admin/category/edit_channel.html @@ -0,0 +1,114 @@ +{extend name="admin/base"/} +{block name="body"} + +
    +
    +
    +

    + 生成到导航 +

    +
    +
    +
    +
    +
    + +
    + + (用于显示的文字) +
    +
    +
    + +
    + + (当前标识) +
    +
    +
    + +
    + + (用于调转的URL,支持带http://的URL或U函数参数格式) +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + + (是否新窗口打开链接) +
    +
    +
    + +
    + + 输入图标英文 +
    +
    +
    + +
    + + (导航显示顺序) +
    +
    +
    + +
    + + (右上角的标志点颜色,支持各类css表示方式) +
    +
    +
    + +
    + + (右上角的标志点颜色,支持各类css表示方式) +
    +
    +
    + +
    + + (右上角的标志点文字,不要太长,没有自动隐藏) +
    +
    + +
    +
    + + + +
    +
    +
    +
    +
    +{/block} \ No newline at end of file diff --git a/app/view/admin/category/index.html b/app/view/admin/category/index.html index bdfbdaa3..8c957e07 100644 --- a/app/view/admin/category/index.html +++ b/app/view/admin/category/index.html @@ -1 +1,103 @@ -{extend name="admin/base"/} \ No newline at end of file +{extend name="admin/base"/} +{block name="style"} + +{/block} +{block name="body"} +
    +
    +
    +

    {$meta_title|default='新功能'}

    +
    + +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + {volist name="tree" id="list"} + + + + + + + + + + + {/volist} + +
    ID名称排序发布状态生成导航操作
    {$list['id']} + {$list['level_show']} + {$list['title']} + + + + {$list['sort']}{$list['allow_publish']?'是':'否'} + {if $list['status']} + 启用 + {else/} + 禁用 + {/if} + + {if $list['ismenu']} + 已生成 + {else/} + 未生成 + {/if} + + 编辑 + {if $list['status']} + 禁用 + {else/} + 启用 + {/if} + 删除 + 移动 + 合并 +
    +
    +
    +
    +
    + +
    +
    +{/block} +{block name="script"} + + +{/block} \ No newline at end of file diff --git a/app/view/admin/category/operate.html b/app/view/admin/category/operate.html new file mode 100644 index 00000000..2ba776d4 --- /dev/null +++ b/app/view/admin/category/operate.html @@ -0,0 +1,37 @@ +{extend name="admin/base"/} + +{block name="body"} +
    +
    +
    +

    {$operate}分类

    +
    +
    +
    +
    +
    +
    + +
    + + (将{$operate}至的分类) +
    +
    +
    + +
    +
    + + + +
    +
    +
    +
    +
    +{/block} + diff --git a/app/view/admin/channel/edit.html b/app/view/admin/channel/edit.html new file mode 100644 index 00000000..250fd873 --- /dev/null +++ b/app/view/admin/channel/edit.html @@ -0,0 +1,114 @@ +{extend name="admin/base"/} +{block name="body"} +
    +
    +
    +

    + {$info['id']?'编辑':'新增'}导航 +

    +
    +
    +
    +
    +
    + +
    + + (用于显示的文字) +
    +
    +
    + +
    + + (当前标识) +
    +
    +
    + +
    + + (用于调转的URL,支持带http://的URL或U函数参数格式) +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + + (是否新窗口打开链接) +
    +
    +
    + +
    + + 输入图标英文 +
    +
    +
    + +
    + + (导航显示顺序) +
    +
    +
    + +
    + + (右上角的标志点颜色,支持各类css表示方式) +
    +
    +
    + +
    + + (右上角的标志点颜色,支持各类css表示方式) +
    +
    +
    + +
    + + (右上角的标志点文字,不要太长,没有自动隐藏) +
    +
    + +
    +
    + + + +
    +
    +
    +
    +
    +{/block} \ No newline at end of file diff --git a/app/view/admin/channel/index.html b/app/view/admin/channel/index.html index bdfbdaa3..1972a252 100644 --- a/app/view/admin/channel/index.html +++ b/app/view/admin/channel/index.html @@ -1 +1,106 @@ -{extend name="admin/base"/} \ No newline at end of file +{extend name="admin/base"/} +{block name="style"} + +{/block} +{block name="body"} +
    +
    +
    +

    {$meta_title|default='新功能'}

    +
    +
    + 新 增 + + +
    +
    +
    +
    + +
    + +
    + + + + + + + + + + + + + + {volist name="tree" id="list"} + + + + + + + + + + {/volist} + +
    ID名称URL排序状态操作
    {$list['id']} + {$list['level_show']} + {$list['title']} + + + + {$list['url']}{$list['sort']} + {if $list['status']} + {$list.status|get_status_title} + {else/} + {$list.status|get_status_title} + {/if} + + 编辑 + {$list.status|show_status_op} + 删除 +
    +
    +
    +
    +
    +
    +{/block} + +{block name="script"} + + +{/block} \ No newline at end of file diff --git a/app/view/admin/channel/sort.html b/app/view/admin/channel/sort.html new file mode 100644 index 00000000..5143fd38 --- /dev/null +++ b/app/view/admin/channel/sort.html @@ -0,0 +1,112 @@ +{extend name="admin/base"/} + +{block name="body"} +
    +
    +
    +

    菜单排序 [ 返回列表 ]

    +
    +
    +
    +
    +
    +
    + +
    +
    + + + + +
    +
    +
    +
    + +   + +
    +
    +
    +
    +
    +{/block} + +{block name="script"} + +{/block} \ No newline at end of file diff --git a/app/view/admin/client/add.html b/app/view/admin/client/add.html new file mode 100644 index 00000000..20f9cd42 --- /dev/null +++ b/app/view/admin/client/add.html @@ -0,0 +1,44 @@ +{extend name="admin/base"/} +{block name="body"} +
    +
    +
    +

    {$meta_title|default='新功能'}

    +
    +
    +
    +
    +
    +
    +
    + +
    + + +
    +
    +
    + +
    + + +
    +
    +
    + +
    + + +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +{/block} \ No newline at end of file diff --git a/app/view/admin/client/index.html b/app/view/admin/client/index.html index 2d2978f6..7b621e16 100644 --- a/app/view/admin/client/index.html +++ b/app/view/admin/client/index.html @@ -1,37 +1,48 @@ {extend name="admin/base"/} {block name="body"} - -
    - - - - - - - - - - - - - - {volist name="data" id="item"} - - - - - - - - - - {/volist} - -
    ID名称APPIDAPPSECRET创建时间更新时间操作
    {$item['id']}{$item['title']}{$item['appid']}{$item['appsecret']}{$item['create_time']}{$item['update_time']} - 编辑 - 删除 -
    - {$page} +
    +
    +
    +

    {$meta_title|default='新功能'}

    +
    +
    + 新 增 + +
    +
    +
    +
    + + + + + + + + + + + + + + {volist name="list" id="item"} + + + + + + + + + + {/volist} + +
    ID名称APPIDAPPSECRET创建时间更新时间操作
    {$item['id']}{$item['title']}{$item['appid']}{$item['appsecret']}{$item['create_time']}{$item['update_time']} + 编辑 + 删除 +
    + {$page|raw} +
    - +
    {/block} \ No newline at end of file diff --git a/app/view/admin/config/edit.html b/app/view/admin/config/edit.html new file mode 100644 index 00000000..f538754a --- /dev/null +++ b/app/view/admin/config/edit.html @@ -0,0 +1,88 @@ +{extend name="admin/base"/} +{block name="body"} + +
    +
    +
    +

    配置管理

    +
    +
    +
    +
    +
    + +
    + + (用于config函数调用,只能使用英文且不能重复) +
    +
    +
    + +
    + + (用于后台显示的配置标题) +
    +
    +
    + +
    + + (用于分组显示的顺序) +
    +
    +
    + +
    + + (系统会根据不同类型解析配置值) +
    +
    +
    + +
    + + (配置分组 用于批量设置 不分组则不会显示在系统设置中) +
    +
    +
    + +
    + + (配置值) +
    +
    +
    + +
    + + (如果是枚举型 需要配置该项) +
    +
    +
    + +
    + + (配置详细说明) +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    + +{/block} \ No newline at end of file diff --git a/app/view/admin/config/group.html b/app/view/admin/config/group.html index 1a893c5d..d472dc94 100644 --- a/app/view/admin/config/group.html +++ b/app/view/admin/config/group.html @@ -4,14 +4,14 @@
    -

    {$meta|default='新功能'}

    +

    配置管理

    - + 配置列表 - + 添加配置 @@ -21,8 +21,8 @@
    @@ -82,9 +82,5 @@
    -{/block} -{block name="script"} - + {/block} \ No newline at end of file diff --git a/app/view/admin/config/index.html b/app/view/admin/config/index.html new file mode 100644 index 00000000..aab38a5d --- /dev/null +++ b/app/view/admin/config/index.html @@ -0,0 +1,118 @@ +{extend name="admin/base"/} +{block name="body"} +
    +
    +
    +

    网站设置

    +
    + +
    +
    +
    + +
    +
    +
    + + + + + + + + + + + + + + {notempty name="list"} + {volist name="list" id="item"} + + + + + + + + + + {/volist} + {else/} + + {/notempty} + +
    + + ID名称标题分组类型操作
    {$item.id}{$item.name}{$item.title}{$config['config_group_list'][$item['group']]|default=''}{$item['type_text']} + 编辑 + 删除 +
    aOh! 暂时还没有内容!
    +
    + {$page|raw} +
    +
    +
    +
    +
    + +{/block} +{block name="script"} + +{/block} \ No newline at end of file diff --git a/app/view/admin/config/themes.html b/app/view/admin/config/themes.html index bdfbdaa3..bc4f21a3 100644 --- a/app/view/admin/config/themes.html +++ b/app/view/admin/config/themes.html @@ -1 +1,67 @@ -{extend name="admin/base"/} \ No newline at end of file +{extend name="admin/base"/} +{block name="body"} +
    +
    +
    +

    {$meta_title|default='新功能'}

    +
    +
    +
    +
    +
    +
    +
    + +
    +
    +
    + {volist name="list['pc']" id="item"} +
    +
    + {$item['name']} +
    +

    {$item['name']}

    +

    + {if $pc == $item['id']} + + {else/} + 启用 + {/if} +

    +
    +
    +
    + {/volist} +
    +
    +
    +
    + {volist name="list['mobile']" id="item"} +
    +
    + {$item['name']} +
    +

    {$item['name']}

    +

    + {if $mobile == $item['id']} + + {else/} + 启用 + {/if} +

    +
    +
    +
    + {/volist} +
    +
    +
    +
    +
    +
    +
    + +{/block} \ No newline at end of file diff --git a/app/view/admin/content/index.html b/app/view/admin/content/index.html index e69de29b..9614493a 100644 --- a/app/view/admin/content/index.html +++ b/app/view/admin/content/index.html @@ -0,0 +1,94 @@ +{extend name="admin/base"/} +{block name="body"} +
    +
    +
    +

    {$meta_title|default='新功能'}

    +
    +
    + 新 增 + +
    +
    +
    +
    +
    +
    + +
    + {if isset($cate_list)} +
    + +
    + {/if} +
    + +
    +
    +
    +
    + +
    + + + + + {volist name="grid['grids']" id="item"} + + {/volist} + + + + + {if condition="empty($list)"} + {php} + $cow = count($grid['grids'])+2; + {/php} + + + + {else/} + {volist name="list" id="item"} + + + {volist name="grid['grids']" id="vo"} + {if isset($vo['format'])} + + {else/} + + {/if} + {/volist} + + + {/volist} + {/if} + +
    {$item['title']}操作
    暂无数据!
    {$item[$vo['field'][0]]|$vo['format']}{$item[$vo['field'][0]]} + {if isset($item['is_top'])} + {if $item['is_top']} + 取消置顶 + {else/} + 置顶 + {/if} + {/if} + {if isset($item['status'])} + {if $item['status']} + 取消审核 + {else/} + 审核 + {/if} + {/if} + 编辑 + 删除 +
    +
    + {$page|raw} +
    +
    +
    +{/block} \ No newline at end of file diff --git a/app/view/admin/database/export.html b/app/view/admin/database/export.html index bdfbdaa3..f406670d 100644 --- a/app/view/admin/database/export.html +++ b/app/view/admin/database/export.html @@ -1 +1,136 @@ -{extend name="admin/base"/} \ No newline at end of file +{extend name="admin/base"/} +{block name="body"} +
    +
    + +
    +

    数据备份

    +
    + +
    +
    +
    +
    + + + + + + + + + + + + + + {volist name="list" id="table"} + + + + + + + + + + {/volist} + +
    + 表名数据量数据大小创建时间备份状态操作
    + {$table.name}{$table.rows}{$table.data_length|format_bytes}{$table.create_time}未备份 + 优化表 +   + 修复表 +
    +
    +
    +
    +
    +{/block} + +{block name="script"} + +{/block} \ No newline at end of file diff --git a/app/view/admin/database/import.html b/app/view/admin/database/import.html index bdfbdaa3..9ff5bf1e 100644 --- a/app/view/admin/database/import.html +++ b/app/view/admin/database/import.html @@ -1 +1,87 @@ -{extend name="admin/base"/} \ No newline at end of file +{extend name="admin/base"/} + +{block name="body"} +
    +
    + +
    +

    数据恢复

    +
    +
    +
    +
    +
    + +
    + + + + + + + + + + + + + + + {volist name="list" id="data"} + + + + + + + + + + {/volist} + +
    备份名称卷数压缩数据大小备份时间状态操作
    {$data.time|date='Ymd-His',###}{$data.part}{$data.compress}{$data.size|format_bytes}{$key}- + 还原 +   + 删除 +
    +
    +
    + +
    +{/block} + +{block name="script"} + +{/block} \ No newline at end of file diff --git a/app/view/admin/form/attr.html b/app/view/admin/form/attr.html new file mode 100644 index 00000000..be73d2c2 --- /dev/null +++ b/app/view/admin/form/attr.html @@ -0,0 +1,64 @@ +{extend name="admin/base"/} +{block name="body"} +
    +
    +
    +

    {$meta_title|default='新功能'}

    +
    + +
    +
    +
    + + + + + + + + + + + + + + {volist name="list" id="item"} + + + + + + + + + + {/volist} + +
    表单标题字段名字段类型字段长度默认值操作
    {$item['title']}{$item['name']}{$item['type_text']}{$item['length']}{$item['value']} + 编辑 + 删除 +
    + {$page|raw} +
    +
    +
    +{/block} +{block name="script"} + + +{/block} \ No newline at end of file diff --git a/app/view/admin/form/detail_alumn.html b/app/view/admin/form/detail_alumn.html new file mode 100644 index 00000000..37d5ef42 --- /dev/null +++ b/app/view/admin/form/detail_alumn.html @@ -0,0 +1,62 @@ +{extend name="admin/base"/} +{block name="body"} +
    +
    +
    +

    {$meta_title|default='新功能'}

    +
    +
    +
    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    姓名{$info['name']}性别{if $info['sex'] == 0}保密{elseif $info['sex'] == 1}男{elseif $info['sex'] == 2}女{/if}出生年月{$info['birthday']|date='Y-m-d',###}
    从事行业{$info['industry']}所在单位{$info['company']}
    单位职务{$info['duties']}入学年份{$info['en_year']}所学专业{$info['major']}
    联系电话{$info['mobile']}QQ{$info['qq']}微信{$info['wechat']}
    个人简历 + {$info['profile']} +
    + 说明:个人简历中,您可以添加任何您愿意提供的信息,例如您可以为校友提供何种帮助,有何特长,获得的主要荣誉,是否参加其他社团组织等等。 +
    +
    +
    +
    +{/block} +{block name="script"} + +{/block} \ No newline at end of file diff --git a/app/view/admin/form/index.html b/app/view/admin/form/index.html index bdfbdaa3..2a1cc7ab 100644 --- a/app/view/admin/form/index.html +++ b/app/view/admin/form/index.html @@ -1 +1,69 @@ -{extend name="admin/base"/} \ No newline at end of file +{extend name="admin/base"/} +{block name="style"} + +{/block} +{block name="body"} +
    +
    +
    +

    {$meta_title|default='新功能'}

    +
    +
    + 新 增 + +
    +
    +
    +
    + + + + + + + + + + + + + {notempty name="list"} + {volist name="list" id="item"} + + + + + + + + + + {/volist} + {else/} + + {/notempty} + +
    ID名称排序时间操作
    + + {$item['id']}{$item['name']} + {$item['title']} + + {$item.create_time|time_format} + + {if $item['status']} + {$item['status_text']} + {else/} + {$item['status_text']} + {/if} + + 字段 + {$item['status']|show_status_op} + 编辑 + 删除 + 数据 +
    aOh! 暂时还没有创建模型!
    + {$page|raw} +
    +
    +
    +{/block} \ No newline at end of file diff --git a/app/view/admin/form/list_alumn.html b/app/view/admin/form/list_alumn.html new file mode 100644 index 00000000..1f4b9b9d --- /dev/null +++ b/app/view/admin/form/list_alumn.html @@ -0,0 +1,62 @@ +{extend name="admin/base"/} +{block name="body"} +
    +
    +
    +

    {$meta_title|default='新功能'}

    +
    +
    + 导出 +
    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + {volist name="list" id="item"} + + + + + + + + + + + + + + + + {/volist} + +
    姓名性别生日从事行业所在单位职务入学年份所学专业电话QQ微信操作
    {$item['name']}{if $item['sex'] == 0}保密{elseif $item['sex'] == 1}男{elseif $item['sex'] == 2}女{/if}{$item['birthday']|date='Y-m-d',###}{$item['industry']}{$item['company']}{$item['duties']}{$item['en_year']}{$item['major']}{$item['mobile']}{$item['qq']}{$item['wechat']} + 详情 + 删除 +
    + {$page|raw} +
    +
    +
    +{/block} +{block name="script"} + +{/block} \ No newline at end of file diff --git a/app/view/admin/group/access.html b/app/view/admin/group/access.html new file mode 100644 index 00000000..630e8634 --- /dev/null +++ b/app/view/admin/group/access.html @@ -0,0 +1,77 @@ +{extend name="admin/base"/} +{block name="body"} +
    +
    +
    +

    {$meta_title|default='新功能'}

    +
    + +
    +
    +
    + +
    +
    + {if condition="empty($list)"} +

    暂无数据!

    + {else/} +
    + + + + + + + + + + + + + + {volist name="list" id="item"} + + + + + + + + + + {/volist} + +
    ID组名标识分组状态操作
    {$item['id']}{$item['title']}{$item['name']}{$item['group']} + {if condition="$item['status'] eq '0'"} + 禁用 + {elseif condition="$item['status'] eq '1'"/} + 启用 + {/if} + + 编辑 + 删除 +
    + {$page|raw} +
    + {/if} +
    +
    +
    +
    +
    +{/block} \ No newline at end of file diff --git a/app/view/admin/group/auth.html b/app/view/admin/group/auth.html new file mode 100644 index 00000000..9b6e606e --- /dev/null +++ b/app/view/admin/group/auth.html @@ -0,0 +1,63 @@ +{extend name="admin/base"/} +{block name="body"} +
    +
    +
    +

    {$meta_title|default='新功能'}

    +
    + +
    +
    +
    +
    + + + + + + + + + {volist name="list" id="node"} + + + + + {/volist} + + + + + +
    分组权限
    {$key} + {volist name="node" id="item"} +
    + + +
    + {/volist} +
    模块 + {volist name="model" id="item"} +
    + + +
    + {/volist} +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +{/block} \ No newline at end of file diff --git a/app/view/admin/group/index.html b/app/view/admin/group/index.html index bdfbdaa3..fd607d5a 100644 --- a/app/view/admin/group/index.html +++ b/app/view/admin/group/index.html @@ -1 +1,83 @@ -{extend name="admin/base"/} \ No newline at end of file +{extend name="admin/base"/} +{block name="style"} + +{/block} +{block name="body"} +
    +
    +
    +

    {$meta_title|default='新功能'}

    +
    + +
    +
    +
    + +
    +
    + {if condition="empty($list)"} +

    暂无数据!

    + {else/} +
    + + + + + + + + + + + + + {volist name="list" id="item"} + + + + + + + + + {/volist} + +
    ID组名描述状态操作
    {$item['id']}{$item['title']}{$item['description']} + {if condition="$item['status'] eq '0'"} + 禁用 + {elseif condition="$item['status'] eq '1'"/} + 启用 + {/if} + + 编辑 + 授权 + 删除 +
    + {$page|raw} +
    + {/if} +
    +
    +
    +
    +
    +{/block} +{block name="script"} + + +{/block} \ No newline at end of file diff --git a/app/view/admin/link/index.html b/app/view/admin/link/index.html index bdfbdaa3..d9cde484 100644 --- a/app/view/admin/link/index.html +++ b/app/view/admin/link/index.html @@ -1 +1,49 @@ -{extend name="admin/base"/} \ No newline at end of file +{extend name="admin/base"/} +{block name="style"} + +{/block} +{block name="body"} +
    +
    +
    +

    {$meta_title|default='新功能'}

    +
    +
    + 新 增 + +
    +
    +
    +
    + + + + + + + + + + + + + {volist name="list" id="item"} + + + + + + + + + {/volist} + +
    ID名称排序时间操作
    {$item['id']}{$item['title']}{$item['sort']}{$item['update_time']|date='Y-m-d',###} + 编辑 + 删除 +
    + {$page|raw} +
    +
    +
    +{/block} \ No newline at end of file diff --git a/app/view/admin/menu/edit.html b/app/view/admin/menu/edit.html new file mode 100644 index 00000000..7e5b6074 --- /dev/null +++ b/app/view/admin/menu/edit.html @@ -0,0 +1,96 @@ +{extend name="admin/base"/} +{block name="body"} +
    +
    +
    +

    {:isset($info['id'])?'编辑':'新增'}后台菜单

    +
    +
    +
    +
    +
    +
    + +
    + + (用于后台显示的配置标题) +
    +
    +
    + +
    + + (用于显示在菜单左侧,不填则不显示) +
    +
    +
    + +
    + + (用于分组显示的顺序) +
    +
    +
    + +
    + + (U函数解析的URL或者外链) +
    +
    +
    + +
    + + (所属的上级菜单) +
    +
    +
    + +
    + + (用于左侧分组二级菜单) +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + + (菜单详细说明) +
    +
    + +
    +
    + + + +
    +
    +
    +
    +
    +{/block} \ No newline at end of file diff --git a/app/view/admin/menu/import.html b/app/view/admin/menu/import.html new file mode 100644 index 00000000..9de556b6 --- /dev/null +++ b/app/view/admin/menu/import.html @@ -0,0 +1,29 @@ +{extend name="admin/base"/} +{block name="body"} +
    +
    +
    +

    批量导入 [{$data['title']|default='顶级菜单'}]

    +
    +
    +
    +
    + +
    + +
    + + 导入格式:
    首页|Index/index|0|分组名称
    更新缓存|Index/clear|0|分组名称
    (请按照导入格式输入)
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +{/block} \ No newline at end of file diff --git a/app/view/admin/menu/index.html b/app/view/admin/menu/index.html index bdfbdaa3..255c9ea6 100644 --- a/app/view/admin/menu/index.html +++ b/app/view/admin/menu/index.html @@ -1 +1,120 @@ -{extend name="admin/base"/} \ No newline at end of file +{extend name="admin/base"/} +{block name="style"} + +{/block} +{block name="body"} +
    +
    +
    +

    {present name="data"}[ {$data['title']} ] 子{/present}菜单管理

    +
    +
    + + 新 增 + + 导 入 +
    +
    +
    +
    +
    + + + + + + + + + + + + + + + + + + {notempty name="list"} + {volist name="list" id="menu"} + + + + + + + + + + + + + {/volist} + {else/} + + {/notempty} + +
    + + ID名称上级菜单分组URL排序仅开发者模式显示隐藏操作
    {$menu.id} + {$menu['level_show']} + {$menu['title']} + + + + {$menu.up_title|default='无'}{$menu.group}{$menu.url}{$menu['sort']} + + {$menu.is_dev_text} + + + + {$menu.hide_text} + + + 编辑 + 删除 +
    aOh! 暂时还没有内容!
    +
    +
    +
    +
    +{/block} +{block name="script"} + + +{/block} \ No newline at end of file diff --git a/app/view/admin/menu/sort.html b/app/view/admin/menu/sort.html new file mode 100644 index 00000000..a7f14cf1 --- /dev/null +++ b/app/view/admin/menu/sort.html @@ -0,0 +1,111 @@ +{extend name="admin/base"/} +{block name="body"} +
    +
    +
    +

    菜单排序 [ 返回列表 ]

    +
    +
    +
    +
    +
    +
    + +
    +
    + + + + +
    +
    +
    +
    + +   + +
    +
    +
    +
    +
    +{/block} + +{block name="script"} + +{/block} \ No newline at end of file diff --git a/app/view/admin/model/add.html b/app/view/admin/model/add.html new file mode 100644 index 00000000..5495dc7b --- /dev/null +++ b/app/view/admin/model/add.html @@ -0,0 +1,62 @@ +{extend name="admin/base"/} + +{block name="body"} +
    +
    +
    +

    新增模型

    +
    +
    +
    +
    +
    + + +
    + +
    +
    + +
    + + (请输入文档模型标识) +
    +
    +
    + +
    + + (请输入模型的名称) +
    +
    +
    + +
    + + (文档模型默认导入部分必要字段) +
    +
    +
    + +
    + + (模型图标) +
    +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    + +{/block} \ No newline at end of file diff --git a/app/view/admin/model/edit.html b/app/view/admin/model/edit.html new file mode 100644 index 00000000..92b53a33 --- /dev/null +++ b/app/view/admin/model/edit.html @@ -0,0 +1,156 @@ +{extend name="admin/base"/} +{block name="style"} + +{/block} +{block name="body"} +
    +
    +
    +

    编辑模型

    +
    +
    +
    +
    +
    +
    +
    + +
    +
    + +
    + +
    + + (请输入文档模型标识) +
    +
    +
    + +
    + + (请输入模型的名称) +
    +
    +
    + +
    + + (模型图标) +
    +
    +
    +
    +
    + +
    + + (用于表单显示的分组,以及设置该模型表单排序的显示) +
    +
    +
    + +
    + {volist name="fields" id="field"} +
    +
    {$field_group[$key]}
    +
    +
    + {foreach name="field" item="item" key="k"} +
    + {$item['title']} [{$item['name']}] + +
    + {/foreach} +
    +
    +
    + {/volist} + (直接拖动进行排序) +
    + +
    + +
    + +
    + + (默认列表模板的展示规则) +
    +
    + +
    + +
    + + (默认列表模板的默认搜索项) +
    +
    +
    + +
    + + (默认列表模板的高级搜索项) +
    +
    +
    + +
    + + (自定义的列表模板,放在application\admin\view\content下,不写则使用默认模板) +
    +
    +
    + +
    + + (自定义的新增模板,放在application\admin\view\content下,不写则使用默认模板) +
    +
    +
    + +
    + + (自定义的编辑模板,放在application\admin\view\content下,不写则使用默认模板) +
    +
    +
    + +
    + + (默认列表模板的分页属性) +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    +{/block} +{block name="script"} + + + +{/block} + diff --git a/app/view/admin/model/index.html b/app/view/admin/model/index.html index bdfbdaa3..584fd9d4 100644 --- a/app/view/admin/model/index.html +++ b/app/view/admin/model/index.html @@ -1 +1,89 @@ -{extend name="admin/base"/} \ No newline at end of file +{extend name="admin/base"/} + +{block name="body"} +
    +
    +
    +

    {$meta_title|default='新功能'}

    +
    +
    + 新 增 + +
    +
    +
    +
    + + + + + + + + + + + + + + {notempty name="list"} + {volist name="list" id="item"} + + + + + + + + + + {/volist} + {else/} + + {/notempty} + +
    + + 编号标识名称创建时间状态操作
    + + {$item['id']} {$item['name']} + {$item.title} + + {$item.create_time|time_format} + + {if $item['status']} + {$item['status_text']} + {else/} + {$item['status_text']} + {/if} + + 字段 + {$item['status']|show_status_op} + 编辑 + 删除 + 数据 +
    aOh! 暂时还没有创建模型!
    + +
    + {$page|raw} +
    +
    +{/block} +{block name="script"} + +{/block} diff --git a/app/view/admin/seo/index.html b/app/view/admin/seo/index.html index bdfbdaa3..c667b49d 100644 --- a/app/view/admin/seo/index.html +++ b/app/view/admin/seo/index.html @@ -1 +1,80 @@ -{extend name="admin/base"/} \ No newline at end of file +{extend name="admin/base"/} +{block name="style"} + +{/block} +{block name="body"} +
    +
    +
    +

    {$meta_title|default='新功能'}

    +
    +
    + 新 增 + +
    +
    +
    +
    + + + + + + + + + + + + + + {volist name="list" id="item"} + + + + + + + + + + {/volist} + +
    ID名称规则排序SEO标题操作
    {$item['id']}{$item['title']}{$item['rule_name']}{$item['sort']}{$item['seo_title']} + 编辑 + 删除 +
    + {$page|raw} +
    +
    +
    +{/block} + +{block name="script"} + + +{/block} \ No newline at end of file diff --git a/app/view/admin/seo/rewrite.html b/app/view/admin/seo/rewrite.html index bdfbdaa3..0f077680 100644 --- a/app/view/admin/seo/rewrite.html +++ b/app/view/admin/seo/rewrite.html @@ -1 +1,49 @@ -{extend name="admin/base"/} \ No newline at end of file +{extend name="admin/base"/} +{block name="style"} + +{/block} +{block name="body"} +
    +
    +
    +

    {$meta_title|default='新功能'}

    +
    +
    + 新 增 + +
    +
    +
    +
    + + + + + + + + + + + + {volist name="list" id="item"} + + + + + + + + {/volist} + +
    ID规则地址操作
    {$item['id']}{$item['rule']}{$item['url']} + 编辑 + 删除 +
    +
    +
    +
    +{/block} + +{block name="script"} +{/block} \ No newline at end of file diff --git a/app/view/admin/user/auth.html b/app/view/admin/user/auth.html new file mode 100644 index 00000000..38a03640 --- /dev/null +++ b/app/view/admin/user/auth.html @@ -0,0 +1,47 @@ +{extend name="admin/base"/} +{block name="body"} +
    +
    +
    +

    {$meta_title|default='新功能'}

    +
    +
    + +
    +
    +
    +
    + + + + + + + + + {volist name="list" id="group"} + + + + + {/volist} + +
    模块分组
    {:config('USER_GROUP_TYPE')[$key]} + {volist name="group" id="item"} +
    + + +
    + {/volist} +
    +
    +
    + + + +
    +
    +
    +
    +
    +{/block} \ No newline at end of file diff --git a/app/view/admin/user/editpwd.html b/app/view/admin/user/editpwd.html new file mode 100644 index 00000000..2b8a2991 --- /dev/null +++ b/app/view/admin/user/editpwd.html @@ -0,0 +1,44 @@ +{extend name="admin/base"/} +{block name="body"} +
    + + +
    +
    +

    修改昵称

    +
    +
    +
    +
    + +
    + +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    +{/block} \ No newline at end of file diff --git a/app/view/admin/user/index.html b/app/view/admin/user/index.html index bdfbdaa3..48aa3b99 100644 --- a/app/view/admin/user/index.html +++ b/app/view/admin/user/index.html @@ -1 +1,101 @@ -{extend name="admin/base"/} \ No newline at end of file +{extend name="admin/base"/} +{block name="body"} +
    +
    +
    +

    {$meta_title|default='新功能'}

    +
    + +
    +
    + +
    + + + + + + + + + + + + + + {volist name="list" id="item"} + + + + + + + + + + {/volist} + +
    + 用户 + + Email + + 手机号码 + + 授权分组 + + 创建时间 + + 状态 + 操作
    + {if isset($item['avatar_url']) && $item['avatar_url']} + {$item['nickname']} + {else/} + {$item['nickname']} + {/if} + {$item['nickname']} + {$item['username']} + + {$item['email']} + + {$item['mobile']} + {$item['group_list']|implode=',',###}{$item['reg_time']|date='Y-m-d',###} + {if condition="$item['status']"} + 启用 + {else/} + 禁用 + {/if} + + + 编辑 + + + 授权 + + + 删除 + +
    + {$page|raw} +
    +
    +
    +{/block} \ No newline at end of file diff --git a/public/static/admin/js/main.js b/public/static/admin/js/main.js index d50444b5..7212f7fd 100644 --- a/public/static/admin/js/main.js +++ b/public/static/admin/js/main.js @@ -128,29 +128,27 @@ require.config({ charset: 'utf-8' // 文件编码 }); -require(['jquery', 'nanoscroller', 'bootstrap'], function($){ +require(['jquery', 'nanoscroller', 'bootstrap', 'sent'], function($, undefined, undefined, Sent){ $(function($) { - require(['sent'], function(Sent){ - require(['backend', 'backend-init', 'addons'], function (Backend, undefined, Addons) { - // 避免目录冲突 - require.config({baseUrl: '/static/admin/js/module/'}); + require(['backend', 'backend-init', 'addons'], function (Backend, undefined, Addons) { + // 避免目录冲突 + require.config({baseUrl: '/static/admin/js/module/'}); - var current_url = (window.location.pathname).split('/'); - if (typeof(isLoadModule) != "undefined" && isLoadModule) { - require([current_url[2]], function(Controller){ - var action = current_url[3].split('.'); - if (Controller.hasOwnProperty(action[0])) { - Controller[action[0]](); - } else { - if (Controller.hasOwnProperty("_empty")) { - Controller._empty(); - } + var current_url = (window.location.pathname).split('/'); + if (typeof(isLoadModule) != "undefined" && isLoadModule) { + require([current_url[2]], function(Controller){ + var action = current_url[3].split('.'); + if (Controller.hasOwnProperty(action[0])) { + Controller[action[0]](); + } else { + if (Controller.hasOwnProperty("_empty")) { + Controller._empty(); } - }, function (e) { - console.error(e); // 这里可捕获模块加载的错误 - }) - } - }) + } + }, function (e) { + console.error(e); // 这里可捕获模块加载的错误 + }) + } }) $.fn.removeClassPrefix = function(prefix) { diff --git a/public/static/js/addons.js b/public/static/js/addons.js new file mode 100644 index 00000000..d2c1d20a --- /dev/null +++ b/public/static/js/addons.js @@ -0,0 +1,3 @@ +define([], function () { + +}); \ No newline at end of file diff --git a/public/static/js/backend-init.js b/public/static/js/backend-init.js new file mode 100644 index 00000000..d017888b --- /dev/null +++ b/public/static/js/backend-init.js @@ -0,0 +1,3 @@ +define(['backend'], function (Backend) { + +}); \ No newline at end of file