Skip to content

Commit

Permalink
添加主题标签管理初始化数据
Browse files Browse the repository at this point in the history
  • Loading branch information
livisky committed Jan 22, 2017
1 parent a587e77 commit 6ee3f7a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
18 changes: 11 additions & 7 deletions liblog.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
Navicat MySQL Data Transfer

Source Server : localhost_liblog_3306
Source Server Version : 50540
Source Server Version : 50619
Source Host : localhost:3306
Source Database : liblog

Target Server Type : MYSQL
Target Server Version : 50540
Target Server Version : 50619
File Encoding : 65001

Date: 2017-01-05 16:33:26
Date: 2017-01-22 16:19:01
*/

SET FOREIGN_KEY_CHECKS=0;
Expand Down Expand Up @@ -257,7 +257,7 @@ CREATE TABLE `li_manage_permission` (
`permission` text,
`tag` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=60 DEFAULT CHARSET=utf8;
) ENGINE=InnoDB AUTO_INCREMENT=64 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of li_manage_permission
Expand Down Expand Up @@ -308,7 +308,7 @@ INSERT INTO `li_manage_permission` VALUES ('46', '删除/批量删除标签接
INSERT INTO `li_manage_permission` VALUES ('47', '用户列表', 'admin/user/index', '8');
INSERT INTO `li_manage_permission` VALUES ('48', '新增/编辑用户', 'admin/user/item', '8');
INSERT INTO `li_manage_permission` VALUES ('49', '新增/编辑用户接口', 'admin/user/save', '8');
INSERT INTO `li_manage_permission` VALUES ('50', '删除/批量删除接口', 'admin/user/delsome', '8');
INSERT INTO `li_manage_permission` VALUES ('50', '删除/批量删除用户接口', 'admin/user/delsome', '8');
INSERT INTO `li_manage_permission` VALUES ('51', '常规设置', 'admin/system/index', '11');
INSERT INTO `li_manage_permission` VALUES ('52', '常规设置保存接口', 'admin/system/edit', '11');
INSERT INTO `li_manage_permission` VALUES ('53', '评论设置', 'admin/system/setcomment', '11');
Expand All @@ -318,6 +318,10 @@ INSERT INTO `li_manage_permission` VALUES ('56', '评论列表', 'admin/comment/
INSERT INTO `li_manage_permission` VALUES ('57', '举报列表', 'admin/comment/tiplist', '12');
INSERT INTO `li_manage_permission` VALUES ('58', '主题列表', 'admin/topic/index', '13');
INSERT INTO `li_manage_permission` VALUES ('59', '显示/隐藏主题', 'admin/topic/update', '13');
INSERT INTO `li_manage_permission` VALUES ('60', '主题标签管理', 'admin/topictag/index', '13');
INSERT INTO `li_manage_permission` VALUES ('61', '新增/编辑主题分类', 'admin/topictag/item', '13');
INSERT INTO `li_manage_permission` VALUES ('62', '新增/编辑主题分类接口', 'admin/topictag/save', '13');
INSERT INTO `li_manage_permission` VALUES ('63', '删除/批量删除主题标签接口', 'admin/topictag/delsome', '13');

-- ----------------------------
-- Table structure for li_manage_role
Expand All @@ -335,7 +339,7 @@ CREATE TABLE `li_manage_role` (
-- ----------------------------
-- Records of li_manage_role
-- ----------------------------
INSERT INTO `li_manage_role` VALUES ('1', 'superadmin', '超级管理员', '1,2,3,9,10,11,12,13,14,15,25,26,27,28,7,8,18,16,17,19,20,21,22,23,24,47,48,49,50,55,43,44,45,46,29,30,31,32,33,34,35,36,37,38,39,40,41,42,51,52,53,54,56,57,58,59', 0x61646D696E2F636F6E74656E742F61727469636C652C61646D696E2F636F6E74656E742F6164646D61726B646F776E2C61646D696E2F636F6E74656E742F696E6465782C61646D696E2F636F6E74656E742F64726166746C6973742C61646D696E2F636F6E74656E742F646F6164642C61646D696E2F636F6E74656E742F7570646174657374617475732C61646D696E2F636F6E74656E742F64656C736F6D652C61646D696E2F636F6E74656E742F75706C6F61642C61646D696E2F636F6E74656E742F75706C6F6164656469746F722C61646D696E2F636F6E74656E742F75706C6F616466696C652C61646D696E2F6D656E752F696E6465782C61646D696E2F6D656E752F6974656D2C61646D696E2F6D656E752F736176652C61646D696E2F6D656E752F64656C736F6D652C61646D696E2F696E6465782F696E6465782C61646D696E2F696E6465782F77656C636F6D652C61646D696E2F696E6465782F6C6F676F75742C61646D696E2F67756573742F696E6465782C61646D696E2F67756573742F64656C736F6D652C61646D696E2F6974656D2F696E6465782C61646D696E2F6974656D2F6974656D2C61646D696E2F6974656D2F736176652C61646D696E2F6974656D2F64656C736F6D652C61646D696E2F6C696E6B732F696E6465782C61646D696E2F6C696E6B732F64656C736F6D652C61646D696E2F757365722F696E6465782C61646D696E2F757365722F6974656D2C61646D696E2F757365722F736176652C61646D696E2F757365722F64656C736F6D652C61646D696E2F757365722F61646D696E6C6973742C61646D696E2F7461672F696E6465782C61646D696E2F7461672F6974656D2C61646D696E2F7461672F736176652C61646D696E2F7461672F64656C736F6D652C61646D696E2F7065726D697373696F6E2F696E6465782C61646D696E2F7065726D697373696F6E2F6974656D2C61646D696E2F7065726D697373696F6E2F736176652C61646D696E2F7065726D697373696F6E2F64656C736F6D652C61646D696E2F7065727461672F696E6465782C61646D696E2F7065727461672F6974656D2C61646D696E2F7065727461672F736176652C61646D696E2F7065727461672F64656C736F6D652C61646D696E2F726F6C652F696E6465782C61646D696E2F726F6C652F6974656D2C61646D696E2F726F6C652F736176652C61646D696E2F726F6C652F64656C736F6D652C61646D696E2F726F6C652F7065726C6973742C61646D696E2F726F6C652F726F6C65736176652C61646D696E2F73797374656D2F696E6465782C61646D696E2F73797374656D2F656469742C61646D696E2F73797374656D2F736574636F6D6D656E742C61646D696E2F73797374656D2F636F6D6D656E74656469742C61646D696E2F636F6D6D656E742F696E6465782C61646D696E2F636F6D6D656E742F7469706C6973742C61646D696E2F746F7069632F696E6465782C61646D696E2F746F7069632F757064617465);
INSERT INTO `li_manage_role` VALUES ('1', 'superadmin', '超级管理员', '1,2,3,9,10,11,12,13,14,15,25,26,27,28,7,8,18,16,17,19,20,21,22,23,24,47,48,49,50,55,43,44,45,46,29,30,31,32,33,34,35,36,37,38,39,40,41,42,51,52,53,54,56,57,58,59,60,61,62,63', 0x61646D696E2F636F6E74656E742F61727469636C652C61646D696E2F636F6E74656E742F6164646D61726B646F776E2C61646D696E2F636F6E74656E742F696E6465782C61646D696E2F636F6E74656E742F64726166746C6973742C61646D696E2F636F6E74656E742F646F6164642C61646D696E2F636F6E74656E742F7570646174657374617475732C61646D696E2F636F6E74656E742F64656C736F6D652C61646D696E2F636F6E74656E742F75706C6F61642C61646D696E2F636F6E74656E742F75706C6F6164656469746F722C61646D696E2F636F6E74656E742F75706C6F616466696C652C61646D696E2F6D656E752F696E6465782C61646D696E2F6D656E752F6974656D2C61646D696E2F6D656E752F736176652C61646D696E2F6D656E752F64656C736F6D652C61646D696E2F696E6465782F696E6465782C61646D696E2F696E6465782F77656C636F6D652C61646D696E2F696E6465782F6C6F676F75742C61646D696E2F67756573742F696E6465782C61646D696E2F67756573742F64656C736F6D652C61646D696E2F6974656D2F696E6465782C61646D696E2F6974656D2F6974656D2C61646D696E2F6974656D2F736176652C61646D696E2F6974656D2F64656C736F6D652C61646D696E2F6C696E6B732F696E6465782C61646D696E2F6C696E6B732F64656C736F6D652C61646D696E2F757365722F696E6465782C61646D696E2F757365722F6974656D2C61646D696E2F757365722F736176652C61646D696E2F757365722F64656C736F6D652C61646D696E2F757365722F61646D696E6C6973742C61646D696E2F7461672F696E6465782C61646D696E2F7461672F6974656D2C61646D696E2F7461672F736176652C61646D696E2F7461672F64656C736F6D652C61646D696E2F7065726D697373696F6E2F696E6465782C61646D696E2F7065726D697373696F6E2F6974656D2C61646D696E2F7065726D697373696F6E2F736176652C61646D696E2F7065726D697373696F6E2F64656C736F6D652C61646D696E2F7065727461672F696E6465782C61646D696E2F7065727461672F6974656D2C61646D696E2F7065727461672F736176652C61646D696E2F7065727461672F64656C736F6D652C61646D696E2F726F6C652F696E6465782C61646D696E2F726F6C652F6974656D2C61646D696E2F726F6C652F736176652C61646D696E2F726F6C652F64656C736F6D652C61646D696E2F726F6C652F7065726C6973742C61646D696E2F726F6C652F726F6C65736176652C61646D696E2F73797374656D2F696E6465782C61646D696E2F73797374656D2F656469742C61646D696E2F73797374656D2F736574636F6D6D656E742C61646D696E2F73797374656D2F636F6D6D656E74656469742C61646D696E2F636F6D6D656E742F696E6465782C61646D696E2F636F6D6D656E742F7469706C6973742C61646D696E2F746F7069632F696E6465782C61646D696E2F746F7069632F7570646174652C61646D696E2F746F7069637461672F696E6465782C61646D696E2F746F7069637461672F6974656D2C61646D696E2F746F7069637461672F736176652C61646D696E2F746F7069637461672F64656C736F6D65);
INSERT INTO `li_manage_role` VALUES ('2', 'admin', '管理员', '1,2,3,9,10,11,12,13,14,15,25,26,27,28,7,8,18,16,17,19,20,21,22,23,24,47,43,44,45,46', 0x61646D696E2F636F6E74656E742F61727469636C652C61646D696E2F636F6E74656E742F6164646D61726B646F776E2C61646D696E2F636F6E74656E742F696E6465782C61646D696E2F636F6E74656E742F64726166746C6973742C61646D696E2F636F6E74656E742F646F6164642C61646D696E2F636F6E74656E742F7570646174657374617475732C61646D696E2F636F6E74656E742F64656C736F6D652C61646D696E2F636F6E74656E742F75706C6F61642C61646D696E2F636F6E74656E742F75706C6F6164656469746F722C61646D696E2F636F6E74656E742F75706C6F616466696C652C61646D696E2F6D656E752F696E6465782C61646D696E2F6D656E752F6974656D2C61646D696E2F6D656E752F736176652C61646D696E2F6D656E752F64656C736F6D652C61646D696E2F696E6465782F696E6465782C61646D696E2F696E6465782F77656C636F6D652C61646D696E2F696E6465782F6C6F676F75742C61646D696E2F67756573742F696E6465782C61646D696E2F67756573742F64656C736F6D652C61646D696E2F6974656D2F696E6465782C61646D696E2F6974656D2F6974656D2C61646D696E2F636F6E74656E742F736176652C61646D696E2F6974656D2F64656C736F6D652C61646D696E2F6C696E6B732F696E6465782C61646D696E2F6C696E6B732F64656C736F6D652C61646D696E2F757365722F696E6465782C61646D696E2F7461672F696E6465782C61646D696E2F7461672F6974656D2C61646D696E2F7461672F736176652C61646D696E2F7461672F64656C736F6D65);
INSERT INTO `li_manage_role` VALUES ('3', 'editor', '编辑', '1,2,3,9,10,11,12,13,14,15,7,8,18', 0x61646D696E2F636F6E74656E742F61727469636C652C61646D696E2F636F6E74656E742F6164646D61726B646F776E2C61646D696E2F636F6E74656E742F696E6465782C61646D696E2F636F6E74656E742F64726166746C6973742C61646D696E2F636F6E74656E742F646F6164642C61646D696E2F636F6E74656E742F7570646174657374617475732C61646D696E2F636F6E74656E742F64656C736F6D652C61646D696E2F636F6E74656E742F75706C6F61642C61646D696E2F636F6E74656E742F75706C6F6164656469746F722C61646D696E2F636F6E74656E742F75706C6F616466696C652C61646D696E2F696E6465782F696E6465782C61646D696E2F696E6465782F77656C636F6D652C61646D696E2F696E6465782F6C6F676F7574);
INSERT INTO `li_manage_role` VALUES ('4', 'visitor', '访客', '3,9,25,7,8,18,16,19,23,47,43', 0x61646D696E2F636F6E74656E742F696E6465782C61646D696E2F636F6E74656E742F64726166746C6973742C61646D696E2F6D656E752F696E6465782C61646D696E2F696E6465782F696E6465782C61646D696E2F696E6465782F77656C636F6D652C61646D696E2F696E6465782F6C6F676F75742C61646D696E2F67756573742F696E6465782C61646D696E2F6974656D2F696E6465782C61646D696E2F6C696E6B732F696E6465782C61646D696E2F757365722F696E6465782C61646D696E2F7461672F696E646578);
Expand Down Expand Up @@ -554,7 +558,7 @@ CREATE TABLE `li_topic_item` (
`name` varchar(255) NOT NULL,
`comment` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of li_topic_item
Expand Down
2 changes: 2 additions & 0 deletions view/admin/topictag_item.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
<div class="formControls col-xs-8 col-sm-9">
<input type="text" class="input-text name" value="{{item.name}}" placeholder="" id="" name="">
</div>
</div>
<div class="row cl">
<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>备注:</label>
<div class="formControls col-xs-8 col-sm-9">
<input type="text" class="input-text comment" value="{{item.comment}}" placeholder="" id="" name="">
Expand Down

0 comments on commit 6ee3f7a

Please sign in to comment.