Skip to content

Commit

Permalink
修改数据库结构及修复js报错
Browse files Browse the repository at this point in the history
  • Loading branch information
livisky committed Jan 5, 2017
1 parent 8d66374 commit b3160d7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 29 deletions.
20 changes: 2 additions & 18 deletions liblog.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,11 @@ Target Server Type : MYSQL
Target Server Version : 50540
File Encoding : 65001

Date: 2017-01-05 14:26:16
Date: 2017-01-05 15:23:31
*/

SET FOREIGN_KEY_CHECKS=0;

-- ----------------------------
-- Table structure for li_account
-- ----------------------------
DROP TABLE IF EXISTS `li_account`;
CREATE TABLE `li_account` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(255) CHARACTER SET latin1 DEFAULT NULL,
`password` varchar(255) CHARACTER SET latin1 DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of li_account
-- ----------------------------
INSERT INTO `li_account` VALUES ('1', 'admin', 'c7434c0ee2ef62392ba704d4db9c3488');

-- ----------------------------
-- Table structure for li_article
-- ----------------------------
Expand Down Expand Up @@ -608,7 +592,7 @@ CREATE TABLE `li_user` (
-- ----------------------------
-- Records of li_user
-- ----------------------------
INSERT INTO `li_user` VALUES ('56', 'admin', 'admin', 'fcea920f7412b5da7be0cf42b8c93759', '[email protected]', '1', null, 'common/images/pic/avatar_7.jpg', 'site', '15', null, '2016-08-22 14:44:32', '1', '0', '0');
INSERT INTO `li_user` VALUES ('56', 'admin', 'admin', 'c7434c0ee2ef62392ba704d4db9c3488', '[email protected]', '1', null, 'common/images/pic/avatar_7.jpg', 'site', '15', null, '2016-08-22 14:44:32', '1', '0', '0');
INSERT INTO `li_user` VALUES ('85', 'livi', 'livi', null, '[email protected]', '4', null, '', 'site', '10', null, null, '1', '0', '0');

-- ----------------------------
Expand Down
25 changes: 14 additions & 11 deletions www/static/theme/liblog/res/src/js/business/pagecommon/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,20 @@ $("#userInfo").on('mouseout', function() {
})
// 右侧tab切换
window.onload = function() {
var oLi = document.getElementById("tb").getElementsByTagName("li");
var oUl = document.getElementById("tb-main").getElementsByTagName("div");
for (var i = 0; i < oLi.length; i++) {
oLi[i].index = i;
oLi[i].onmouseover = function() {
for (var n = 0; n < oLi.length; n++)
oLi[n].className = "";
this.className = "cur";
for (var n = 0; n < oUl.length; n++)
oUl[n].style.display = "none";
oUl[this.index].style.display = "block";
var otb = document.getElementById("tb");
if (otb) {
var oLi = document.getElementById("tb").getElementsByTagName("li");
var oUl = document.getElementById("tb-main").getElementsByTagName("div");
for (var i = 0; i < oLi.length; i++) {
oLi[i].index = i;
oLi[i].onmouseover = function() {
for (var n = 0; n < oLi.length; n++)
oLi[n].className = "";
this.className = "cur";
for (var n = 0; n < oUl.length; n++)
oUl[n].style.display = "none";
oUl[this.index].style.display = "block";
}
}
}
}

0 comments on commit b3160d7

Please sign in to comment.