├── Action └── dbPdoManage.php ├── README.md ├── admin ├── audit.php ├── checklogin.php ├── css │ ├── bootstrap-theme.min.css │ ├── bootstrap.css │ ├── bootstrap.min.css │ ├── common.css │ ├── commonCopy.css │ ├── flat-ui.min.css │ ├── jquery-ui.css │ ├── jquery.nouislider.css │ ├── jquery.nouislider.min.css │ ├── slide.css │ └── style.css ├── del.php ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.svg │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ ├── glyphicons-halflings-regular.woff2 │ └── lato │ │ ├── lato-black.eot │ │ ├── lato-black.svg │ │ ├── lato-black.ttf │ │ ├── lato-black.woff │ │ ├── lato-bold.eot │ │ ├── lato-bold.svg │ │ ├── lato-bold.ttf │ │ ├── lato-bold.woff │ │ ├── lato-bolditalic.eot │ │ ├── lato-bolditalic.svg │ │ ├── lato-bolditalic.ttf │ │ ├── lato-bolditalic.woff │ │ ├── lato-italic.eot │ │ ├── lato-italic.svg │ │ ├── lato-italic.ttf │ │ ├── lato-italic.woff │ │ ├── lato-light.eot │ │ ├── lato-light.svg │ │ ├── lato-light.ttf │ │ ├── lato-light.woff │ │ ├── lato-regular.eot │ │ ├── lato-regular.svg │ │ ├── lato-regular.ttf │ │ └── lato-regular.woff ├── images │ ├── bgimg.jpg │ ├── icon_source.png │ ├── icon_source_grey.png │ └── logo.png ├── js │ ├── bootstrap.min.js │ ├── html5.js │ ├── jquery-ui.js │ ├── jquery.min.js │ ├── jquery.nouislider.js │ ├── jquery.nouislider.min.js │ └── respond.min.js ├── login.php ├── main.php ├── replay.php └── un.php ├── css ├── bootstrap.css ├── bootstrap.min.css ├── main.css ├── main.scss ├── sassConfig.css ├── sassConfig.scss └── swiper.min.css ├── exit.php ├── hearder.php ├── images ├── bgimg.jpg ├── img1.jpg ├── img2.jpg ├── img3.jpg └── img4.png ├── index.php ├── js ├── bootstrap.js ├── jquery.min.js └── swiper.min.js ├── modify.php ├── registered.php ├── save.php ├── userdel.php ├── userlogin.php └── 数据库表设计 ├── 1.png ├── 2.png ├── 3.png └── 说明.txt /Action/dbPdoManage.php: -------------------------------------------------------------------------------- 1 | conn = new PDO("mysql:host=$host;dbname=$dbname",$user,$pwd); 17 | $this->conn->exec("set names ".$charset); 18 | $this->mess .= $this->setFormat('连接数据库服务器及选择数据库成功', true); 19 | } 20 | // catch (PDOException $e) { 21 | // echo '数据库连接失败: ' . $e->getMessage(); 22 | // } 23 | catch(PDOException $error){ 24 | echo "错误"; 25 | $this->mess .= $this->setFormat('连接数据库服务器及选择数据库失败', false); 26 | } 27 | } 28 | public function execsql1($sql){ 29 | $result = $this->conn->exec($sql); 30 | if($result !== false){ 31 | 32 | $this->mess .= $this->setFormat('执行sql成功', true); 33 | 34 | return true; 35 | } 36 | else{ 37 | $this->mess .= $this->setFormat('执行sql失败', false); 38 | return false; 39 | } 40 | } 41 | public function execSql($sql){ 42 | $sql = trim(strtolower($sql)); 43 | $pre = '/^insert|update|delete|ALTER/'; 44 | $r = preg_match($pre,$sql); 45 | if($r == 0){ 46 | $this->mess .= $this->setFormat('传入的sql语句不合法', false); 47 | return false; 48 | } 49 | $this->mess .= $this->setFormat('传入的sql语句合法', true); 50 | $result = $this->conn->exec($sql); 51 | if($result !== false){ 52 | 53 | $this->mess .= $this->setFormat('执行sql成功', true); 54 | 55 | return true; 56 | } 57 | else{ 58 | $this->mess .= $this->setFormat('执行sql失败', false); 59 | return false; 60 | } 61 | } 62 | 63 | public function getOneData($sql){ 64 | $sql = trim(strtolower($sql)); 65 | $pre = '/^select/'; 66 | $r = preg_match($pre,$sql); 67 | if($r == 0){ 68 | $this->mess .= $this->setFormat('传入的sql语句不合法', false); 69 | return false; 70 | } 71 | $this->mess .= $this->setFormat('传入的sql语句合法', true); 72 | $result = $this->conn->query($sql); 73 | $result->setFetchMode(PDO::FETCH_ASSOC); 74 | $rs = $result->fetch(); 75 | $result = NULL; 76 | if(is_array($rs) && !empty($rs)){ 77 | $this->mess .= $this->setFormat('查询数据成功', true); 78 | return $rs; 79 | } 80 | else{ 81 | $this->mess .= $this->setFormat('查询数据失败', false); 82 | return array('没有查询到数据'); 83 | } 84 | } 85 | public function getMoreData($sql){ 86 | $sql = trim(strtolower($sql)); 87 | $pre = '/^select/'; 88 | $r = preg_match($pre,$sql); 89 | if($r == 0){ 90 | $this->mess .= $this->setFormat('传入的sql语句不合法', false); 91 | return false; 92 | } 93 | $this->mess .= $this->setFormat('传入的sql语句合法', true); 94 | $result = $this->conn->query($sql); 95 | $result->setFetchMode(PDO::FETCH_ASSOC); 96 | $rs = $result->fetchAll(); 97 | $result = NULL; 98 | if(is_array($rs) && !empty($rs)){ 99 | $this->mess .= $this->setFormat('查询数据成功', true); 100 | return $rs; 101 | } 102 | else{ 103 | $this->mess .= $this->setFormat('查询数据失败', false); 104 | return $rs; 105 | // return 1; 106 | } 107 | } 108 | public function closeConn(){ 109 | $this->conn = NULL; 110 | } 111 | //调试样式 112 | private function setFormat($content,$flag){ 113 | if($flag == true){ 114 | return "
  • ".$content."

  • "; 115 | } 116 | if($flag == false){ 117 | return "
  • ".$content."

  • "; 118 | } 119 | } 120 | 121 | public function getMess($sql){ 122 | return '
    调试信息如下:
      '.$this->mess.'
    '; 123 | } 124 | 125 | #对话框 126 | public function showMessage($m,$u){ 127 | echo ""; 130 | } 131 | 132 | } 133 | 134 | $db = new dbPdoManage(); 135 | 136 | ?> -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # PHP-留言板 2 | PHP+HTML+CSS+Javascript+MySQL的网页留言板,用户层面分为普通用户和管理员,并设权限(即后台留言管理系统普通用户不能访问,别人的留言自己不可以修改删除,未登录不能使用留言功能),功能包括用户登录注册、留言,修改、删除留言,管理员审核(审核通过首页才可查看)、回复、删除留言。其他包含分页功能,登录缓存等 3 | -------------------------------------------------------------------------------- /admin/audit.php: -------------------------------------------------------------------------------- 1 | execSql($sql); 13 | if($r == true){ 14 | $db->showMessage('审核通过','main.php'); 15 | } 16 | else{ 17 | $db->showMessage('审核失败','main.php'); 18 | } 19 | } 20 | else{ 21 | $db->showMessage('参数错误,请联系管理员','main.php'); 22 | } 23 | $db->closeConn(); 24 | ?> -------------------------------------------------------------------------------- /admin/checklogin.php: -------------------------------------------------------------------------------- 1 | getOneData($sql); 16 | if($result['c'] == '1'){ 17 | $sql1 = "select nickName from user where userName='".$user."'"; 18 | // print_r($sql1); 19 | $result1 = $db->getOneData($sql1); 20 | // var_dump($result1); 21 | // print_r($result1); 22 | // echo $result1 ; 23 | $name = array_values($result1)[0]; 24 | $_SESSION['name'] = $name; 25 | // echo $namevalue[0]; 26 | // if($result1 == true){ 27 | $db->showMessage('登陆成功','main.php'); 28 | // } 29 | } 30 | else{ 31 | $db->showMessage('登陆失败,可能的原因:1.账号或密码错误!2.您不是管理员!','login.php'); 32 | } 33 | } 34 | else{ 35 | $db->showMessage('请填写账户或密码!','login.php'); 36 | } 37 | ?> -------------------------------------------------------------------------------- /admin/css/bootstrap-theme.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v3.3.4 (http://getbootstrap.com) 3 | * Copyright 2011-2015 Twitter, Inc. 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 | */.btn-danger,.btn-default,.btn-info,.btn-primary,.btn-success,.btn-warning{text-shadow:0 -1px 0 rgba(0,0,0,.2);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075)}.btn-danger.active,.btn-danger:active,.btn-default.active,.btn-default:active,.btn-info.active,.btn-info:active,.btn-primary.active,.btn-primary:active,.btn-success.active,.btn-success:active,.btn-warning.active,.btn-warning:active{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-danger .badge,.btn-default .badge,.btn-info .badge,.btn-primary .badge,.btn-success .badge,.btn-warning .badge{text-shadow:none}.btn.active,.btn:active{background-image:none}.btn-default{text-shadow:0 1px 0 #fff;background-image:-webkit-linear-gradient(top,#fff 0,#e0e0e0 100%);background-image:-o-linear-gradient(top,#fff 0,#e0e0e0 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#e0e0e0));background-image:linear-gradient(to bottom,#fff 0,#e0e0e0 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#dbdbdb;border-color:#ccc}.btn-default:focus,.btn-default:hover{background-color:#e0e0e0;background-position:0 -15px}.btn-default.active,.btn-default:active{background-color:#e0e0e0;border-color:#dbdbdb}.btn-default.disabled,.btn-default:disabled,.btn-default[disabled]{background-color:#e0e0e0;background-image:none}.btn-primary{background-image:-webkit-linear-gradient(top,#337ab7 0,#265a88 100%);background-image:-o-linear-gradient(top,#337ab7 0,#265a88 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#265a88));background-image:linear-gradient(to bottom,#337ab7 0,#265a88 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff265a88', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#245580}.btn-primary:focus,.btn-primary:hover{background-color:#265a88;background-position:0 -15px}.btn-primary.active,.btn-primary:active{background-color:#265a88;border-color:#245580}.btn-primary.disabled,.btn-primary:disabled,.btn-primary[disabled]{background-color:#265a88;background-image:none}.btn-success{background-image:-webkit-linear-gradient(top,#5cb85c 0,#419641 100%);background-image:-o-linear-gradient(top,#5cb85c 0,#419641 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5cb85c),to(#419641));background-image:linear-gradient(to bottom,#5cb85c 0,#419641 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff419641', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#3e8f3e}.btn-success:focus,.btn-success:hover{background-color:#419641;background-position:0 -15px}.btn-success.active,.btn-success:active{background-color:#419641;border-color:#3e8f3e}.btn-success.disabled,.btn-success:disabled,.btn-success[disabled]{background-color:#419641;background-image:none}.btn-info{background-image:-webkit-linear-gradient(top,#5bc0de 0,#2aabd2 100%);background-image:-o-linear-gradient(top,#5bc0de 0,#2aabd2 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5bc0de),to(#2aabd2));background-image:linear-gradient(to bottom,#5bc0de 0,#2aabd2 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2aabd2', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#28a4c9}.btn-info:focus,.btn-info:hover{background-color:#2aabd2;background-position:0 -15px}.btn-info.active,.btn-info:active{background-color:#2aabd2;border-color:#28a4c9}.btn-info.disabled,.btn-info:disabled,.btn-info[disabled]{background-color:#2aabd2;background-image:none}.btn-warning{background-image:-webkit-linear-gradient(top,#f0ad4e 0,#eb9316 100%);background-image:-o-linear-gradient(top,#f0ad4e 0,#eb9316 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f0ad4e),to(#eb9316));background-image:linear-gradient(to bottom,#f0ad4e 0,#eb9316 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffeb9316', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#e38d13}.btn-warning:focus,.btn-warning:hover{background-color:#eb9316;background-position:0 -15px}.btn-warning.active,.btn-warning:active{background-color:#eb9316;border-color:#e38d13}.btn-warning.disabled,.btn-warning:disabled,.btn-warning[disabled]{background-color:#eb9316;background-image:none}.btn-danger{background-image:-webkit-linear-gradient(top,#d9534f 0,#c12e2a 100%);background-image:-o-linear-gradient(top,#d9534f 0,#c12e2a 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9534f),to(#c12e2a));background-image:linear-gradient(to bottom,#d9534f 0,#c12e2a 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc12e2a', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#b92c28}.btn-danger:focus,.btn-danger:hover{background-color:#c12e2a;background-position:0 -15px}.btn-danger.active,.btn-danger:active{background-color:#c12e2a;border-color:#b92c28}.btn-danger.disabled,.btn-danger:disabled,.btn-danger[disabled]{background-color:#c12e2a;background-image:none}.img-thumbnail,.thumbnail{-webkit-box-shadow:0 1px 2px rgba(0,0,0,.075);box-shadow:0 1px 2px rgba(0,0,0,.075)}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{background-color:#e8e8e8;background-image:-webkit-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-o-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#e8e8e8));background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);background-repeat:repeat-x}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{background-color:#2e6da4;background-image:-webkit-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-o-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2e6da4));background-image:linear-gradient(to bottom,#337ab7 0,#2e6da4 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);background-repeat:repeat-x}.navbar-default{background-image:-webkit-linear-gradient(top,#fff 0,#f8f8f8 100%);background-image:-o-linear-gradient(top,#fff 0,#f8f8f8 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#f8f8f8));background-image:linear-gradient(to bottom,#fff 0,#f8f8f8 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-radius:4px;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 5px rgba(0,0,0,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 5px rgba(0,0,0,.075)}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.open>a{background-image:-webkit-linear-gradient(top,#dbdbdb 0,#e2e2e2 100%);background-image:-o-linear-gradient(top,#dbdbdb 0,#e2e2e2 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#dbdbdb),to(#e2e2e2));background-image:linear-gradient(to bottom,#dbdbdb 0,#e2e2e2 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdbdbdb', endColorstr='#ffe2e2e2', GradientType=0);background-repeat:repeat-x;-webkit-box-shadow:inset 0 3px 9px rgba(0,0,0,.075);box-shadow:inset 0 3px 9px rgba(0,0,0,.075)}.navbar-brand,.navbar-nav>li>a{text-shadow:0 1px 0 rgba(255,255,255,.25)}.navbar-inverse{background-image:-webkit-linear-gradient(top,#3c3c3c 0,#222 100%);background-image:-o-linear-gradient(top,#3c3c3c 0,#222 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#3c3c3c),to(#222));background-image:linear-gradient(to bottom,#3c3c3c 0,#222 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.open>a{background-image:-webkit-linear-gradient(top,#080808 0,#0f0f0f 100%);background-image:-o-linear-gradient(top,#080808 0,#0f0f0f 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#080808),to(#0f0f0f));background-image:linear-gradient(to bottom,#080808 0,#0f0f0f 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff080808', endColorstr='#ff0f0f0f', GradientType=0);background-repeat:repeat-x;-webkit-box-shadow:inset 0 3px 9px rgba(0,0,0,.25);box-shadow:inset 0 3px 9px rgba(0,0,0,.25)}.navbar-inverse .navbar-brand,.navbar-inverse .navbar-nav>li>a{text-shadow:0 -1px 0 rgba(0,0,0,.25)}.navbar-fixed-bottom,.navbar-fixed-top,.navbar-static-top{border-radius:0}@media (max-width:767px){.navbar .navbar-nav .open .dropdown-menu>.active>a,.navbar .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-image:-webkit-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-o-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2e6da4));background-image:linear-gradient(to bottom,#337ab7 0,#2e6da4 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);background-repeat:repeat-x}}.alert{text-shadow:0 1px 0 rgba(255,255,255,.2);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 2px rgba(0,0,0,.05)}.alert-success{background-image:-webkit-linear-gradient(top,#dff0d8 0,#c8e5bc 100%);background-image:-o-linear-gradient(top,#dff0d8 0,#c8e5bc 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#dff0d8),to(#c8e5bc));background-image:linear-gradient(to bottom,#dff0d8 0,#c8e5bc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0);background-repeat:repeat-x;border-color:#b2dba1}.alert-info{background-image:-webkit-linear-gradient(top,#d9edf7 0,#b9def0 100%);background-image:-o-linear-gradient(top,#d9edf7 0,#b9def0 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9edf7),to(#b9def0));background-image:linear-gradient(to bottom,#d9edf7 0,#b9def0 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0);background-repeat:repeat-x;border-color:#9acfea}.alert-warning{background-image:-webkit-linear-gradient(top,#fcf8e3 0,#f8efc0 100%);background-image:-o-linear-gradient(top,#fcf8e3 0,#f8efc0 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fcf8e3),to(#f8efc0));background-image:linear-gradient(to bottom,#fcf8e3 0,#f8efc0 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0);background-repeat:repeat-x;border-color:#f5e79e}.alert-danger{background-image:-webkit-linear-gradient(top,#f2dede 0,#e7c3c3 100%);background-image:-o-linear-gradient(top,#f2dede 0,#e7c3c3 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f2dede),to(#e7c3c3));background-image:linear-gradient(to bottom,#f2dede 0,#e7c3c3 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0);background-repeat:repeat-x;border-color:#dca7a7}.progress{background-image:-webkit-linear-gradient(top,#ebebeb 0,#f5f5f5 100%);background-image:-o-linear-gradient(top,#ebebeb 0,#f5f5f5 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#ebebeb),to(#f5f5f5));background-image:linear-gradient(to bottom,#ebebeb 0,#f5f5f5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0);background-repeat:repeat-x}.progress-bar{background-image:-webkit-linear-gradient(top,#337ab7 0,#286090 100%);background-image:-o-linear-gradient(top,#337ab7 0,#286090 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#286090));background-image:linear-gradient(to bottom,#337ab7 0,#286090 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff286090', GradientType=0);background-repeat:repeat-x}.progress-bar-success{background-image:-webkit-linear-gradient(top,#5cb85c 0,#449d44 100%);background-image:-o-linear-gradient(top,#5cb85c 0,#449d44 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5cb85c),to(#449d44));background-image:linear-gradient(to bottom,#5cb85c 0,#449d44 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0);background-repeat:repeat-x}.progress-bar-info{background-image:-webkit-linear-gradient(top,#5bc0de 0,#31b0d5 100%);background-image:-o-linear-gradient(top,#5bc0de 0,#31b0d5 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5bc0de),to(#31b0d5));background-image:linear-gradient(to bottom,#5bc0de 0,#31b0d5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0);background-repeat:repeat-x}.progress-bar-warning{background-image:-webkit-linear-gradient(top,#f0ad4e 0,#ec971f 100%);background-image:-o-linear-gradient(top,#f0ad4e 0,#ec971f 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f0ad4e),to(#ec971f));background-image:linear-gradient(to bottom,#f0ad4e 0,#ec971f 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0);background-repeat:repeat-x}.progress-bar-danger{background-image:-webkit-linear-gradient(top,#d9534f 0,#c9302c 100%);background-image:-o-linear-gradient(top,#d9534f 0,#c9302c 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9534f),to(#c9302c));background-image:linear-gradient(to bottom,#d9534f 0,#c9302c 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0);background-repeat:repeat-x}.progress-bar-striped{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.list-group{border-radius:4px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.075);box-shadow:0 1px 2px rgba(0,0,0,.075)}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{text-shadow:0 -1px 0 #286090;background-image:-webkit-linear-gradient(top,#337ab7 0,#2b669a 100%);background-image:-o-linear-gradient(top,#337ab7 0,#2b669a 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2b669a));background-image:linear-gradient(to bottom,#337ab7 0,#2b669a 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2b669a', GradientType=0);background-repeat:repeat-x;border-color:#2b669a}.list-group-item.active .badge,.list-group-item.active:focus .badge,.list-group-item.active:hover .badge{text-shadow:none}.panel{-webkit-box-shadow:0 1px 2px rgba(0,0,0,.05);box-shadow:0 1px 2px rgba(0,0,0,.05)}.panel-default>.panel-heading{background-image:-webkit-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-o-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#e8e8e8));background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);background-repeat:repeat-x}.panel-primary>.panel-heading{background-image:-webkit-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-o-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2e6da4));background-image:linear-gradient(to bottom,#337ab7 0,#2e6da4 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);background-repeat:repeat-x}.panel-success>.panel-heading{background-image:-webkit-linear-gradient(top,#dff0d8 0,#d0e9c6 100%);background-image:-o-linear-gradient(top,#dff0d8 0,#d0e9c6 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#dff0d8),to(#d0e9c6));background-image:linear-gradient(to bottom,#dff0d8 0,#d0e9c6 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0);background-repeat:repeat-x}.panel-info>.panel-heading{background-image:-webkit-linear-gradient(top,#d9edf7 0,#c4e3f3 100%);background-image:-o-linear-gradient(top,#d9edf7 0,#c4e3f3 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9edf7),to(#c4e3f3));background-image:linear-gradient(to bottom,#d9edf7 0,#c4e3f3 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0);background-repeat:repeat-x}.panel-warning>.panel-heading{background-image:-webkit-linear-gradient(top,#fcf8e3 0,#faf2cc 100%);background-image:-o-linear-gradient(top,#fcf8e3 0,#faf2cc 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fcf8e3),to(#faf2cc));background-image:linear-gradient(to bottom,#fcf8e3 0,#faf2cc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0);background-repeat:repeat-x}.panel-danger>.panel-heading{background-image:-webkit-linear-gradient(top,#f2dede 0,#ebcccc 100%);background-image:-o-linear-gradient(top,#f2dede 0,#ebcccc 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f2dede),to(#ebcccc));background-image:linear-gradient(to bottom,#f2dede 0,#ebcccc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0);background-repeat:repeat-x}.well{background-image:-webkit-linear-gradient(top,#e8e8e8 0,#f5f5f5 100%);background-image:-o-linear-gradient(top,#e8e8e8 0,#f5f5f5 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#e8e8e8),to(#f5f5f5));background-image:linear-gradient(to bottom,#e8e8e8 0,#f5f5f5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0);background-repeat:repeat-x;border-color:#dcdcdc;-webkit-box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 rgba(255,255,255,.1)} -------------------------------------------------------------------------------- /admin/css/common.css: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* CSS Document */ 3 | /*外层框架样式*/ 4 | 5 | body { 6 | min-width: 100%; 7 | height: auto; 8 | } 9 | .container-fluid { 10 | padding-left: 0!important; 11 | } 12 | #wrap { 13 | min-width: 100%; 14 | position: absolute; 15 | background: #eff3f6 bottom; 16 | min-height: 100%; 17 | overflow: hidden; 18 | } 19 | /*@media (min-width: 660px) #wrap { 20 | min-width: 650px; 21 | } 22 | @media (min-width: 768px) #wrap { 23 | width: 100%; 24 | min-width: 750px; 25 | } 26 | @media (min-width: 992px) #wrap { 27 | width: 100%; 28 | min-width: 970px; 29 | } 30 | @media (min-width: 1200px) #wrap { 31 | width: 100%; 32 | min-width: 1170px; 33 | }*/ 34 | 35 | .leftMeun { 36 | position: absolute; 37 | box-sizing: border-box; 38 | width: 200px; 39 | height: 100%; 40 | background: #4d5e70 bottom; 41 | } 42 | .leftMeun >div { 43 | padding-left: 20px; 44 | } 45 | #rightContent { 46 | /*position: absolute;*/ 47 | box-sizing: border-box; 48 | float: left; 49 | box-sizing: border-box; 50 | padding-left: 200px; 51 | overflow-y: overlay; 52 | overflow-x: hidden; 53 | /*background-color: #eff3f6;*/ 54 | clear: both; 55 | color: #717592; 56 | min-width: 100%; 57 | min-height: 500px; 58 | } 59 | /*左侧菜单栏*/ 60 | 61 | #logoDiv { 62 | padding-top: 20px; 63 | padding-bottom: 20px; 64 | height: 70px; 65 | background-color: #354457; 66 | font-size: 17px; 67 | color: #fff; 68 | vertical-align: bottom; 69 | } 70 | #logo { 71 | height: 30px; 72 | padding-right: 5px; 73 | } 74 | #logoDiv span { 75 | vertical-align: bottom; 76 | } 77 | #personInfor { 78 | padding: 10px 5px 10px; 79 | margin: 0 5px; 80 | color: #b3bcc5; 81 | border-bottom: 1px solid #354457; 82 | overflow-x: hidden; 83 | padding-left: 20px; 84 | } 85 | #personInfor p { 86 | font-size: 12px; 87 | margin-left: -5px; 88 | } 89 | #personInfor a { 90 | color: #B3BCC5; 91 | text-decoration: underline; 92 | } 93 | #userName { 94 | font-size: 15px!important; 95 | padding: 0; 96 | margin: 0; 97 | } 98 | .line-div { 99 | color: #F00; 100 | height: 5px; 101 | } 102 | .meun dl { 103 | padding: 0 10px; 104 | } 105 | .meun-title { 106 | color: #828e9a; 107 | padding-top: 10px; 108 | padding-bottom: 10px; 109 | font-size: 14px; 110 | font-weight: bold; 111 | } 112 | .meun-item { 113 | line-height: 40px; 114 | height: 40px; 115 | color: #aab1b7; 116 | cursor: pointer; 117 | } 118 | .meun-item a { 119 | color: #aab1b7; 120 | display: block; 121 | } 122 | .meun-item-active a { 123 | color: #c4c7cc; 124 | display: block; 125 | } 126 | .meun-item img { 127 | padding-right: 8px; 128 | height: 20px; 129 | } 130 | .meun-item-active { 131 | background-color: #3d4e60; 132 | border-right: 4px solid #647f9d; 133 | color: #fff; 134 | } 135 | /*右侧具体内容栏目*/ 136 | 137 | .check-div { 138 | height: 70px; 139 | line-height: 70px; 140 | *line-height: 60px; 141 | background-color: #fff; 142 | padding-left: 30px; 143 | min-width: 824px !important; 144 | box-sizing: border-box; 145 | } 146 | .check-div button { 147 | font-size: 12px; 148 | font-weight: bold; 149 | } 150 | .check-div select { 151 | height: 26px; 152 | width: 120px!important; 153 | display: inline; 154 | color: #ccc; 155 | } 156 | .check-div input { 157 | width: 200px !important; 158 | display: inline; 159 | } 160 | .tab-pane { 161 | color: #9095ab; 162 | } 163 | .tableHeader { 164 | height: 35px; 165 | line-height: 35px; 166 | font-size: 12px; 167 | font-weight: bold; 168 | color: #646987; 169 | background-color: #e3e8ee; 170 | padding: 0 30px; 171 | text-align: left; 172 | } 173 | .codeTop { 174 | text-align: right; 175 | } 176 | .tablebody { 177 | margin: 20px 30px; 178 | text-align: left; 179 | } 180 | .tablebody .row { 181 | margin-top: 10px; 182 | background-color: #fff; 183 | height: 70px; 184 | line-height: 70px; 185 | } 186 | .footer { 187 | /* float: right; */ 188 | margin-right: 20px 189 | } 190 | .modal-header { 191 | /*background-color: #e3e8ee;*/ 192 | } 193 | .modal-title { 194 | font-weight: bold; 195 | } 196 | .expand-col { 197 | padding: 0; 198 | margin-top: 30px; 199 | } 200 | .levl2 { 201 | padding-left: 30px; 202 | } 203 | .levl3 { 204 | padding-left: 40px; 205 | } 206 | .sitTable { 207 | background-color: #fff; 208 | padding-right: 30px; 209 | } 210 | .sitTable table { 211 | border-top: none; 212 | background-color: #FFF; 213 | } 214 | /*表格上部边框线*/ 215 | 216 | .sitTable .table>tbody>tr:first-child>td { 217 | border-top: none; 218 | } 219 | .table>tbody>tr>td, 220 | .table>tbody>tr>th, 221 | .table>tfoot>tr>td, 222 | .table>tfoot>tr>th, 223 | .table>thead>tr>td, 224 | .table>thead>tr>th { 225 | vertical-align: middle !important; 226 | padding: 8px 15px!important; 227 | } 228 | .btn { 229 | border: none; 230 | } 231 | .toggle-btn { 232 | display: none; 233 | width: 52px; 234 | height: 50px; 235 | font-size: 20px; 236 | padding: 15px; 237 | cursor: pointer; 238 | float: left; 239 | color: #212121; 240 | -moz-transition: all 0.2s ease-out 0s; 241 | -webkit-transition: all 0.2s ease-out 0s; 242 | transition: all 0.2s ease-out 0s; 243 | } 244 | .pd0px { 245 | padding-left: 200px!important; 246 | } 247 | select { 248 | padding: 0 auto!important; 249 | } 250 | /*进度条样式*/ 251 | 252 | @media (max-width: 1123px) { 253 | #rightContent { 254 | padding-left: 0; 255 | } 256 | .tab-pane { 257 | min-width: 973px; 258 | } 259 | .leftMeun { 260 | display: none; 261 | } 262 | .toggle-btn { 263 | display: block; 264 | } 265 | } 266 | .input-xs { 267 | height: 25px; 268 | line-height: 25px; 269 | } 270 | .btn-white { 271 | background: #fff; 272 | border: 1px solid #ccc!important; 273 | font-weight: normal!important; 274 | margin-right: 10px; 275 | } 276 | .btn-green { 277 | border: 1px solid #ccc!important; 278 | font-weight: normal!important; 279 | margin-right: 10px; 280 | color: #fff; 281 | background: #529373; 282 | } 283 | .btn-yellow { 284 | background: #fff; 285 | border: 1px solid #ccc!important; 286 | font-weight: normal!important; 287 | margin-right: 10px; 288 | color: #eab67c!important; 289 | border: 1px solid #eab67c!important; 290 | } 291 | /*颜色*/ 292 | 293 | .gray { 294 | color: #b7b7b7; 295 | font-weight: normal; 296 | padding: 0 10px; 297 | } 298 | .footer .glyphicon { 299 | font-size: 12px; 300 | color: #00BDEF; 301 | padding: 4px; 302 | background-color: #fff; 303 | margin-right: 10px; 304 | } 305 | .zhi { 306 | margin-top: 33px; 307 | border-radius: 0!important; 308 | width: 50px!important; 309 | height: 21px!important; 310 | line-height: 20px; 311 | border: none; 312 | box-shadow: none!important; 313 | } 314 | .duiqi { 315 | margin-left: -26px!important; 316 | margin-top: 7px; 317 | width: 200px!important; 318 | } 319 | .form-horizontal .form-group { 320 | margin-right: -100px!important; 321 | } 322 | .select-duiqi { 323 | height: 25px!important; 324 | color: #ccc!important; 325 | margin-left: -25px; 326 | margin-top: 6px; 327 | width: 200px!important; 328 | } 329 | .linkCcc { 330 | color: #9095ab!important; 331 | text-decoration: underline; 332 | padding-right: 10px; 333 | } 334 | .linkCcc:hover { 335 | color: #000!important; 336 | text-decoration: underline; 337 | } 338 | .modal { 339 | color: #4b4b4b; 340 | } 341 | .top100 { 342 | margin-top: -25px!important; 343 | height: 40px!important; 344 | line-height: 67px!important; 345 | } 346 | .left { 347 | float: left; 348 | } 349 | .right { 350 | float: right; 351 | } -------------------------------------------------------------------------------- /admin/css/commonCopy.css: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* CSS Document */ 3 | /*外层框架样式*/ 4 | 5 | html,body { 6 | width:100%; height:100%; 7 | } 8 | #wrap { 9 | background-color: #eff3f6; 10 | position:relative; height:auto; min-height:100%; 11 | } 12 | @media (min-width: 660px) #wrap { 13 | min-width: 650px; 14 | } 15 | @media (min-width: 768px) #wrap { 16 | width: 100%; 17 | min-width: 750px; 18 | } 19 | @media (min-width: 992px) #wrap { 20 | width: 100%; 21 | min-width: 970px; 22 | } 23 | @media (min-width: 1200px) #wrap { 24 | width: 100%; 25 | min-width: 1170px; 26 | } 27 | .leftMeun { 28 | position:absolute; top:0; bottom:0; left:0; z-index:99; width:180px; 29 | background-color: #4d5e70; 30 | } 31 | .leftMeun >div { 32 | padding-left: 20px; 33 | } 34 | #rightContent { 35 | /*position: absolute;*/ 36 | 37 | height:100%; min-height:100%; padding-left:180px; 38 | background-color: #eff3f6; 39 | } 40 | /*左侧菜单栏*/ 41 | 42 | #logoDiv { 43 | padding-top: 20px; 44 | padding-bottom: 20px; 45 | height: 70px; 46 | background-color: #354457; 47 | font-size: 17px; 48 | color: #fff; 49 | vertical-align: bottom; 50 | } 51 | #logo { 52 | height: 30px; 53 | padding-right: 5px; 54 | } 55 | #logoDiv span { 56 | vertical-align: bottom; 57 | } 58 | #personInfor { 59 | padding: 10px 5px 10px; 60 | margin: 0 5px; 61 | color: #b3bcc5; 62 | border-bottom: 1px solid #354457; 63 | overflow-x: hidden; 64 | padding-left: 20px; 65 | } 66 | #personInfor p { 67 | font-size: 12px; 68 | margin-left: -5px; 69 | } 70 | #personInfor a { 71 | color: #B3BCC5; 72 | text-decoration: underline; 73 | } 74 | #userName { 75 | font-size: 15px!important; 76 | padding: 0; 77 | margin: 0; 78 | } 79 | .line-div { 80 | color: #F00; 81 | height: 5px; 82 | } 83 | .meun dl { 84 | padding: 0 10px; 85 | } 86 | .meun-title { 87 | color: #828e9a; 88 | padding-top: 10px; 89 | padding-bottom: 10px; 90 | font-size: 14px; 91 | font-weight: bold; 92 | } 93 | .meun-item { 94 | line-height: 40px; 95 | height: 40px; 96 | color: #aab1b7; 97 | cursor: pointer; 98 | } 99 | .meun-item a { 100 | color: #aab1b7; 101 | display: block; 102 | } 103 | .meun-item-active a { 104 | color: #c4c7cc; 105 | display: block; 106 | } 107 | .meun-item img { 108 | padding-right: 8px; 109 | height: 20px; 110 | } 111 | .meun-item-active { 112 | background-color: #3d4e60; 113 | border-right: 4px solid #647f9d; 114 | color: #fff; 115 | } 116 | /*右侧具体内容栏目*/ 117 | 118 | .check-div { 119 | height: 70px; 120 | line-height: 70px; 121 | *line-height: 60px; 122 | background-color: #fff; 123 | padding-left: 30px; 124 | min-width: 824px !important; 125 | box-sizing: border-box; 126 | } 127 | .check-div button { 128 | font-size: 12px; 129 | font-weight: bold; 130 | } 131 | .check-div select { 132 | height: 30px; 133 | width: 100px; 134 | display: inline; 135 | } 136 | .check-div input { 137 | width: 200px !important; 138 | display: inline; 139 | } 140 | .tableHeader { 141 | height: 35px; 142 | line-height: 35px; 143 | font-size: 12px; 144 | font-weight: bold; 145 | color: #646987; 146 | background-color: #e3e8ee; 147 | padding: 0 30px; 148 | text-align: center; 149 | } 150 | .codeTop { 151 | text-align: right; 152 | } 153 | .tablebody { 154 | margin: 20px 30px; 155 | text-align: center; 156 | } 157 | .tablebody .row { 158 | margin-top: 10px; 159 | background-color: #fff; 160 | height: 70px; 161 | line-height: 70px; 162 | } 163 | .footer { 164 | float: right; 165 | margin-right: 20px 166 | } 167 | .modal-header { 168 | /*background-color: #e3e8ee;*/ 169 | } 170 | .modal-title { 171 | font-weight: bold; 172 | } 173 | .expand-col { 174 | padding: 0; 175 | } 176 | .levl2 { 177 | padding-left: 30px; 178 | } 179 | .levl3 { 180 | padding-left: 40px; 181 | } 182 | .sitTable {} .sitTable table { 183 | border-top: none; 184 | background-color: #FFF; 185 | } 186 | /*表格上部边框线*/ 187 | 188 | .sitTable .table>tbody>tr:first-child>td { 189 | border-top: none; 190 | } 191 | .table>tbody>tr>td, 192 | .table>tbody>tr>th, 193 | .table>tfoot>tr>td, 194 | .table>tfoot>tr>th, 195 | .table>thead>tr>td, 196 | .table>thead>tr>th { 197 | vertical-align: middle !important; 198 | } 199 | .btn { 200 | border: none; 201 | } 202 | .btn-danger {} .toggle-btn { 203 | display: none; 204 | width: 52px; 205 | height: 50px; 206 | font-size: 20px; 207 | padding: 15px; 208 | cursor: pointer; 209 | float: left; 210 | color: #212121; 211 | -moz-transition: all 0.2s ease-out 0s; 212 | -webkit-transition: all 0.2s ease-out 0s; 213 | transition: all 0.2s ease-out 0s; 214 | } 215 | .pd0px { 216 | padding-left: 200px!important; 217 | } 218 | 219 | select { 220 | padding: 0 auto!important; 221 | } 222 | /*进度条样式*/ 223 | @media (max-width: 767px) { 224 | #rightContent { 225 | padding-left: 0; 226 | } 227 | .leftMeun { 228 | display: none; 229 | } 230 | .toggle-btn { 231 | display: block; 232 | } 233 | } 234 | 235 | .input-xs { 236 | height: 25px; 237 | line-height: 25px; 238 | } 239 | .btn-white { 240 | background: #fff; 241 | border: 1px solid #ccc!important; 242 | font-weight: normal!important; 243 | margin-right: 10px; 244 | } 245 | /*颜色*/ 246 | 247 | .gray { 248 | color: #b7b7b7; 249 | font-weight: normal; 250 | padding: 0 10px; 251 | } 252 | .footer .glyphicon { 253 | font-size: 12px; 254 | color: #00BDEF; 255 | padding: 4px; 256 | background-color: #fff; 257 | margin-right: 10px; 258 | } 259 | .zhi { 260 | margin-top: 33px; 261 | border-radius: 0!important; 262 | width: 50px!important; 263 | height: 21px!important; 264 | line-height: 20px; 265 | border: none; 266 | box-shadow: none!important; 267 | } -------------------------------------------------------------------------------- /admin/css/jquery-ui.css: -------------------------------------------------------------------------------- 1 | /*! jQuery UI - v1.11.4 - 2015-08-18 2 | * http://jqueryui.com 3 | * Includes: core.css, slider.css, theme.css 4 | * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Trebuchet%20MS%2CTahoma%2CVerdana%2CArial%2Csans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=f6a828&bgTextureHeader=gloss_wave&bgImgOpacityHeader=35&borderColorHeader=e78f08&fcHeader=ffffff&iconColorHeader=ffffff&bgColorContent=eeeeee&bgTextureContent=highlight_soft&bgImgOpacityContent=100&borderColorContent=dddddd&fcContent=333333&iconColorContent=222222&bgColorDefault=f6f6f6&bgTextureDefault=glass&bgImgOpacityDefault=100&borderColorDefault=cccccc&fcDefault=1c94c4&iconColorDefault=ef8c08&bgColorHover=fdf5ce&bgTextureHover=glass&bgImgOpacityHover=100&borderColorHover=fbcb09&fcHover=c77405&iconColorHover=ef8c08&bgColorActive=ffffff&bgTextureActive=glass&bgImgOpacityActive=65&borderColorActive=fbd850&fcActive=eb8f00&iconColorActive=ef8c08&bgColorHighlight=ffe45c&bgTextureHighlight=highlight_soft&bgImgOpacityHighlight=75&borderColorHighlight=fed22f&fcHighlight=363636&iconColorHighlight=228ef1&bgColorError=b81900&bgTextureError=diagonals_thick&bgImgOpacityError=18&borderColorError=cd0a0a&fcError=ffffff&iconColorError=ffd27a&bgColorOverlay=666666&bgTextureOverlay=diagonals_thick&bgImgOpacityOverlay=20&opacityOverlay=50&bgColorShadow=000000&bgTextureShadow=flat&bgImgOpacityShadow=10&opacityShadow=20&thicknessShadow=5px&offsetTopShadow=-5px&offsetLeftShadow=-5px&cornerRadiusShadow=5px 5 | * Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */ 6 | 7 | /* Layout helpers 8 | ----------------------------------*/ 9 | .ui-helper-hidden { 10 | display: none; 11 | } 12 | .ui-helper-hidden-accessible { 13 | border: 0; 14 | clip: rect(0 0 0 0); 15 | height: 1px; 16 | margin: -1px; 17 | overflow: hidden; 18 | padding: 0; 19 | position: absolute; 20 | width: 1px; 21 | } 22 | .ui-helper-reset { 23 | margin: 0; 24 | padding: 0; 25 | border: 0; 26 | outline: 0; 27 | line-height: 1.3; 28 | text-decoration: none; 29 | font-size: 100%; 30 | list-style: none; 31 | } 32 | .ui-helper-clearfix:before, 33 | .ui-helper-clearfix:after { 34 | content: ""; 35 | display: table; 36 | border-collapse: collapse; 37 | } 38 | .ui-helper-clearfix:after { 39 | clear: both; 40 | } 41 | .ui-helper-clearfix { 42 | min-height: 0; /* support: IE7 */ 43 | } 44 | .ui-helper-zfix { 45 | width: 100%; 46 | height: 100%; 47 | top: 0; 48 | left: 0; 49 | position: absolute; 50 | opacity: 0; 51 | filter:Alpha(Opacity=0); /* support: IE8 */ 52 | } 53 | 54 | .ui-front { 55 | z-index: 100; 56 | } 57 | 58 | 59 | /* Interaction Cues 60 | ----------------------------------*/ 61 | .ui-state-disabled { 62 | cursor: default !important; 63 | } 64 | 65 | 66 | /* Icons 67 | ----------------------------------*/ 68 | 69 | /* states and images */ 70 | .ui-icon { 71 | display: block; 72 | text-indent: -99999px; 73 | overflow: hidden; 74 | background-repeat: no-repeat; 75 | } 76 | 77 | 78 | /* Misc visuals 79 | ----------------------------------*/ 80 | 81 | /* Overlays */ 82 | .ui-widget-overlay { 83 | position: fixed; 84 | top: 0; 85 | left: 0; 86 | width: 100%; 87 | height: 100%; 88 | } 89 | .ui-slider { 90 | position: relative; 91 | text-align: left; 92 | } 93 | .ui-slider .ui-slider-handle { 94 | position: absolute; 95 | z-index: 2; 96 | width: 1.2em; 97 | height: 1.2em; 98 | cursor: default; 99 | -ms-touch-action: none; 100 | touch-action: none; 101 | } 102 | .ui-slider .ui-slider-range { 103 | position: absolute; 104 | z-index: 1; 105 | font-size: .7em; 106 | display: block; 107 | border: 0; 108 | background-position: 0 0; 109 | } 110 | 111 | /* support: IE8 - See #6727 */ 112 | .ui-slider.ui-state-disabled .ui-slider-handle, 113 | .ui-slider.ui-state-disabled .ui-slider-range { 114 | filter: inherit; 115 | } 116 | 117 | .ui-slider-horizontal { 118 | height: .8em; 119 | } 120 | .ui-slider-horizontal .ui-slider-handle { 121 | top: -.3em; 122 | margin-left: -.6em; 123 | } 124 | .ui-slider-horizontal .ui-slider-range { 125 | top: 0; 126 | height: 100%; 127 | } 128 | .ui-slider-horizontal .ui-slider-range-min { 129 | left: 0; 130 | } 131 | .ui-slider-horizontal .ui-slider-range-max { 132 | right: 0; 133 | } 134 | 135 | .ui-slider-vertical { 136 | width: .8em; 137 | height: 100px; 138 | } 139 | .ui-slider-vertical .ui-slider-handle { 140 | left: -.3em; 141 | margin-left: 0; 142 | margin-bottom: -.6em; 143 | } 144 | .ui-slider-vertical .ui-slider-range { 145 | left: 0; 146 | width: 100%; 147 | } 148 | .ui-slider-vertical .ui-slider-range-min { 149 | bottom: 0; 150 | } 151 | .ui-slider-vertical .ui-slider-range-max { 152 | top: 0; 153 | } 154 | 155 | /* Component containers 156 | ----------------------------------*/ 157 | .ui-widget { 158 | font-family: Trebuchet MS,Tahoma,Verdana,Arial,sans-serif; 159 | font-size: 1.1em; 160 | } 161 | .ui-widget .ui-widget { 162 | font-size: 1em; 163 | } 164 | .ui-widget input, 165 | .ui-widget select, 166 | .ui-widget textarea, 167 | .ui-widget button { 168 | font-family: Trebuchet MS,Tahoma,Verdana,Arial,sans-serif; 169 | font-size: 1em; 170 | } 171 | .ui-widget-content { 172 | border: 1px solid #dddddd; 173 | background: #eeeeee url("images/ui-bg_highlight-soft_100_eeeeee_1x100.png") 50% top repeat-x; 174 | color: #333333; 175 | } 176 | .ui-widget-content a { 177 | color: #333333; 178 | } 179 | .ui-widget-header { 180 | border: 1px solid #e78f08; 181 | background: #f6a828 url("images/ui-bg_gloss-wave_35_f6a828_500x100.png") 50% 50% repeat-x; 182 | color: #ffffff; 183 | font-weight: bold; 184 | } 185 | .ui-widget-header a { 186 | color: #ffffff; 187 | } 188 | 189 | /* Interaction states 190 | ----------------------------------*/ 191 | .ui-state-default, 192 | .ui-widget-content .ui-state-default, 193 | .ui-widget-header .ui-state-default { 194 | border: 1px solid #cccccc; 195 | background: #f6f6f6 url("images/ui-bg_glass_100_f6f6f6_1x400.png") 50% 50% repeat-x; 196 | font-weight: bold; 197 | color: #1c94c4; 198 | } 199 | .ui-state-default a, 200 | .ui-state-default a:link, 201 | .ui-state-default a:visited { 202 | color: #1c94c4; 203 | text-decoration: none; 204 | } 205 | .ui-state-hover, 206 | .ui-widget-content .ui-state-hover, 207 | .ui-widget-header .ui-state-hover, 208 | .ui-state-focus, 209 | .ui-widget-content .ui-state-focus, 210 | .ui-widget-header .ui-state-focus { 211 | border: 1px solid #fbcb09; 212 | background: #fdf5ce url("images/ui-bg_glass_100_fdf5ce_1x400.png") 50% 50% repeat-x; 213 | font-weight: bold; 214 | color: #c77405; 215 | } 216 | .ui-state-hover a, 217 | .ui-state-hover a:hover, 218 | .ui-state-hover a:link, 219 | .ui-state-hover a:visited, 220 | .ui-state-focus a, 221 | .ui-state-focus a:hover, 222 | .ui-state-focus a:link, 223 | .ui-state-focus a:visited { 224 | color: #c77405; 225 | text-decoration: none; 226 | } 227 | .ui-state-active, 228 | .ui-widget-content .ui-state-active, 229 | .ui-widget-header .ui-state-active { 230 | border: 1px solid #fbd850; 231 | background: #ffffff url("images/ui-bg_glass_65_ffffff_1x400.png") 50% 50% repeat-x; 232 | font-weight: bold; 233 | color: #eb8f00; 234 | } 235 | .ui-state-active a, 236 | .ui-state-active a:link, 237 | .ui-state-active a:visited { 238 | color: #eb8f00; 239 | text-decoration: none; 240 | } 241 | 242 | /* Interaction Cues 243 | ----------------------------------*/ 244 | .ui-state-highlight, 245 | .ui-widget-content .ui-state-highlight, 246 | .ui-widget-header .ui-state-highlight { 247 | border: 1px solid #fed22f; 248 | background: #ffe45c url("images/ui-bg_highlight-soft_75_ffe45c_1x100.png") 50% top repeat-x; 249 | color: #363636; 250 | } 251 | .ui-state-highlight a, 252 | .ui-widget-content .ui-state-highlight a, 253 | .ui-widget-header .ui-state-highlight a { 254 | color: #363636; 255 | } 256 | .ui-state-error, 257 | .ui-widget-content .ui-state-error, 258 | .ui-widget-header .ui-state-error { 259 | border: 1px solid #cd0a0a; 260 | background: #b81900 url("images/ui-bg_diagonals-thick_18_b81900_40x40.png") 50% 50% repeat; 261 | color: #ffffff; 262 | } 263 | .ui-state-error a, 264 | .ui-widget-content .ui-state-error a, 265 | .ui-widget-header .ui-state-error a { 266 | color: #ffffff; 267 | } 268 | .ui-state-error-text, 269 | .ui-widget-content .ui-state-error-text, 270 | .ui-widget-header .ui-state-error-text { 271 | color: #ffffff; 272 | } 273 | .ui-priority-primary, 274 | .ui-widget-content .ui-priority-primary, 275 | .ui-widget-header .ui-priority-primary { 276 | font-weight: bold; 277 | } 278 | .ui-priority-secondary, 279 | .ui-widget-content .ui-priority-secondary, 280 | .ui-widget-header .ui-priority-secondary { 281 | opacity: .7; 282 | filter:Alpha(Opacity=70); /* support: IE8 */ 283 | font-weight: normal; 284 | } 285 | .ui-state-disabled, 286 | .ui-widget-content .ui-state-disabled, 287 | .ui-widget-header .ui-state-disabled { 288 | opacity: .35; 289 | filter:Alpha(Opacity=35); /* support: IE8 */ 290 | background-image: none; 291 | } 292 | .ui-state-disabled .ui-icon { 293 | filter:Alpha(Opacity=35); /* support: IE8 - See #6059 */ 294 | } 295 | 296 | /* Icons 297 | ----------------------------------*/ 298 | 299 | /* states and images */ 300 | .ui-icon { 301 | width: 16px; 302 | height: 16px; 303 | } 304 | .ui-icon, 305 | .ui-widget-content .ui-icon { 306 | background-image: url("images/ui-icons_222222_256x240.png"); 307 | } 308 | .ui-widget-header .ui-icon { 309 | background-image: url("images/ui-icons_ffffff_256x240.png"); 310 | } 311 | .ui-state-default .ui-icon { 312 | background-image: url("images/ui-icons_ef8c08_256x240.png"); 313 | } 314 | .ui-state-hover .ui-icon, 315 | .ui-state-focus .ui-icon { 316 | background-image: url("images/ui-icons_ef8c08_256x240.png"); 317 | } 318 | .ui-state-active .ui-icon { 319 | background-image: url("images/ui-icons_ef8c08_256x240.png"); 320 | } 321 | .ui-state-highlight .ui-icon { 322 | background-image: url("images/ui-icons_228ef1_256x240.png"); 323 | } 324 | .ui-state-error .ui-icon, 325 | .ui-state-error-text .ui-icon { 326 | background-image: url("images/ui-icons_ffd27a_256x240.png"); 327 | } 328 | 329 | /* positioning */ 330 | .ui-icon-blank { background-position: 16px 16px; } 331 | .ui-icon-carat-1-n { background-position: 0 0; } 332 | .ui-icon-carat-1-ne { background-position: -16px 0; } 333 | .ui-icon-carat-1-e { background-position: -32px 0; } 334 | .ui-icon-carat-1-se { background-position: -48px 0; } 335 | .ui-icon-carat-1-s { background-position: -64px 0; } 336 | .ui-icon-carat-1-sw { background-position: -80px 0; } 337 | .ui-icon-carat-1-w { background-position: -96px 0; } 338 | .ui-icon-carat-1-nw { background-position: -112px 0; } 339 | .ui-icon-carat-2-n-s { background-position: -128px 0; } 340 | .ui-icon-carat-2-e-w { background-position: -144px 0; } 341 | .ui-icon-triangle-1-n { background-position: 0 -16px; } 342 | .ui-icon-triangle-1-ne { background-position: -16px -16px; } 343 | .ui-icon-triangle-1-e { background-position: -32px -16px; } 344 | .ui-icon-triangle-1-se { background-position: -48px -16px; } 345 | .ui-icon-triangle-1-s { background-position: -64px -16px; } 346 | .ui-icon-triangle-1-sw { background-position: -80px -16px; } 347 | .ui-icon-triangle-1-w { background-position: -96px -16px; } 348 | .ui-icon-triangle-1-nw { background-position: -112px -16px; } 349 | .ui-icon-triangle-2-n-s { background-position: -128px -16px; } 350 | .ui-icon-triangle-2-e-w { background-position: -144px -16px; } 351 | .ui-icon-arrow-1-n { background-position: 0 -32px; } 352 | .ui-icon-arrow-1-ne { background-position: -16px -32px; } 353 | .ui-icon-arrow-1-e { background-position: -32px -32px; } 354 | .ui-icon-arrow-1-se { background-position: -48px -32px; } 355 | .ui-icon-arrow-1-s { background-position: -64px -32px; } 356 | .ui-icon-arrow-1-sw { background-position: -80px -32px; } 357 | .ui-icon-arrow-1-w { background-position: -96px -32px; } 358 | .ui-icon-arrow-1-nw { background-position: -112px -32px; } 359 | .ui-icon-arrow-2-n-s { background-position: -128px -32px; } 360 | .ui-icon-arrow-2-ne-sw { background-position: -144px -32px; } 361 | .ui-icon-arrow-2-e-w { background-position: -160px -32px; } 362 | .ui-icon-arrow-2-se-nw { background-position: -176px -32px; } 363 | .ui-icon-arrowstop-1-n { background-position: -192px -32px; } 364 | .ui-icon-arrowstop-1-e { background-position: -208px -32px; } 365 | .ui-icon-arrowstop-1-s { background-position: -224px -32px; } 366 | .ui-icon-arrowstop-1-w { background-position: -240px -32px; } 367 | .ui-icon-arrowthick-1-n { background-position: 0 -48px; } 368 | .ui-icon-arrowthick-1-ne { background-position: -16px -48px; } 369 | .ui-icon-arrowthick-1-e { background-position: -32px -48px; } 370 | .ui-icon-arrowthick-1-se { background-position: -48px -48px; } 371 | .ui-icon-arrowthick-1-s { background-position: -64px -48px; } 372 | .ui-icon-arrowthick-1-sw { background-position: -80px -48px; } 373 | .ui-icon-arrowthick-1-w { background-position: -96px -48px; } 374 | .ui-icon-arrowthick-1-nw { background-position: -112px -48px; } 375 | .ui-icon-arrowthick-2-n-s { background-position: -128px -48px; } 376 | .ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; } 377 | .ui-icon-arrowthick-2-e-w { background-position: -160px -48px; } 378 | .ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; } 379 | .ui-icon-arrowthickstop-1-n { background-position: -192px -48px; } 380 | .ui-icon-arrowthickstop-1-e { background-position: -208px -48px; } 381 | .ui-icon-arrowthickstop-1-s { background-position: -224px -48px; } 382 | .ui-icon-arrowthickstop-1-w { background-position: -240px -48px; } 383 | .ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; } 384 | .ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; } 385 | .ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; } 386 | .ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; } 387 | .ui-icon-arrowreturn-1-w { background-position: -64px -64px; } 388 | .ui-icon-arrowreturn-1-n { background-position: -80px -64px; } 389 | .ui-icon-arrowreturn-1-e { background-position: -96px -64px; } 390 | .ui-icon-arrowreturn-1-s { background-position: -112px -64px; } 391 | .ui-icon-arrowrefresh-1-w { background-position: -128px -64px; } 392 | .ui-icon-arrowrefresh-1-n { background-position: -144px -64px; } 393 | .ui-icon-arrowrefresh-1-e { background-position: -160px -64px; } 394 | .ui-icon-arrowrefresh-1-s { background-position: -176px -64px; } 395 | .ui-icon-arrow-4 { background-position: 0 -80px; } 396 | .ui-icon-arrow-4-diag { background-position: -16px -80px; } 397 | .ui-icon-extlink { background-position: -32px -80px; } 398 | .ui-icon-newwin { background-position: -48px -80px; } 399 | .ui-icon-refresh { background-position: -64px -80px; } 400 | .ui-icon-shuffle { background-position: -80px -80px; } 401 | .ui-icon-transfer-e-w { background-position: -96px -80px; } 402 | .ui-icon-transferthick-e-w { background-position: -112px -80px; } 403 | .ui-icon-folder-collapsed { background-position: 0 -96px; } 404 | .ui-icon-folder-open { background-position: -16px -96px; } 405 | .ui-icon-document { background-position: -32px -96px; } 406 | .ui-icon-document-b { background-position: -48px -96px; } 407 | .ui-icon-note { background-position: -64px -96px; } 408 | .ui-icon-mail-closed { background-position: -80px -96px; } 409 | .ui-icon-mail-open { background-position: -96px -96px; } 410 | .ui-icon-suitcase { background-position: -112px -96px; } 411 | .ui-icon-comment { background-position: -128px -96px; } 412 | .ui-icon-person { background-position: -144px -96px; } 413 | .ui-icon-print { background-position: -160px -96px; } 414 | .ui-icon-trash { background-position: -176px -96px; } 415 | .ui-icon-locked { background-position: -192px -96px; } 416 | .ui-icon-unlocked { background-position: -208px -96px; } 417 | .ui-icon-bookmark { background-position: -224px -96px; } 418 | .ui-icon-tag { background-position: -240px -96px; } 419 | .ui-icon-home { background-position: 0 -112px; } 420 | .ui-icon-flag { background-position: -16px -112px; } 421 | .ui-icon-calendar { background-position: -32px -112px; } 422 | .ui-icon-cart { background-position: -48px -112px; } 423 | .ui-icon-pencil { background-position: -64px -112px; } 424 | .ui-icon-clock { background-position: -80px -112px; } 425 | .ui-icon-disk { background-position: -96px -112px; } 426 | .ui-icon-calculator { background-position: -112px -112px; } 427 | .ui-icon-zoomin { background-position: -128px -112px; } 428 | .ui-icon-zoomout { background-position: -144px -112px; } 429 | .ui-icon-search { background-position: -160px -112px; } 430 | .ui-icon-wrench { background-position: -176px -112px; } 431 | .ui-icon-gear { background-position: -192px -112px; } 432 | .ui-icon-heart { background-position: -208px -112px; } 433 | .ui-icon-star { background-position: -224px -112px; } 434 | .ui-icon-link { background-position: -240px -112px; } 435 | .ui-icon-cancel { background-position: 0 -128px; } 436 | .ui-icon-plus { background-position: -16px -128px; } 437 | .ui-icon-plusthick { background-position: -32px -128px; } 438 | .ui-icon-minus { background-position: -48px -128px; } 439 | .ui-icon-minusthick { background-position: -64px -128px; } 440 | .ui-icon-close { background-position: -80px -128px; } 441 | .ui-icon-closethick { background-position: -96px -128px; } 442 | .ui-icon-key { background-position: -112px -128px; } 443 | .ui-icon-lightbulb { background-position: -128px -128px; } 444 | .ui-icon-scissors { background-position: -144px -128px; } 445 | .ui-icon-clipboard { background-position: -160px -128px; } 446 | .ui-icon-copy { background-position: -176px -128px; } 447 | .ui-icon-contact { background-position: -192px -128px; } 448 | .ui-icon-image { background-position: -208px -128px; } 449 | .ui-icon-video { background-position: -224px -128px; } 450 | .ui-icon-script { background-position: -240px -128px; } 451 | .ui-icon-alert { background-position: 0 -144px; } 452 | .ui-icon-info { background-position: -16px -144px; } 453 | .ui-icon-notice { background-position: -32px -144px; } 454 | .ui-icon-help { background-position: -48px -144px; } 455 | .ui-icon-check { background-position: -64px -144px; } 456 | .ui-icon-bullet { background-position: -80px -144px; } 457 | .ui-icon-radio-on { background-position: -96px -144px; } 458 | .ui-icon-radio-off { background-position: -112px -144px; } 459 | .ui-icon-pin-w { background-position: -128px -144px; } 460 | .ui-icon-pin-s { background-position: -144px -144px; } 461 | .ui-icon-play { background-position: 0 -160px; } 462 | .ui-icon-pause { background-position: -16px -160px; } 463 | .ui-icon-seek-next { background-position: -32px -160px; } 464 | .ui-icon-seek-prev { background-position: -48px -160px; } 465 | .ui-icon-seek-end { background-position: -64px -160px; } 466 | .ui-icon-seek-start { background-position: -80px -160px; } 467 | /* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */ 468 | .ui-icon-seek-first { background-position: -80px -160px; } 469 | .ui-icon-stop { background-position: -96px -160px; } 470 | .ui-icon-eject { background-position: -112px -160px; } 471 | .ui-icon-volume-off { background-position: -128px -160px; } 472 | .ui-icon-volume-on { background-position: -144px -160px; } 473 | .ui-icon-power { background-position: 0 -176px; } 474 | .ui-icon-signal-diag { background-position: -16px -176px; } 475 | .ui-icon-signal { background-position: -32px -176px; } 476 | .ui-icon-battery-0 { background-position: -48px -176px; } 477 | .ui-icon-battery-1 { background-position: -64px -176px; } 478 | .ui-icon-battery-2 { background-position: -80px -176px; } 479 | .ui-icon-battery-3 { background-position: -96px -176px; } 480 | .ui-icon-circle-plus { background-position: 0 -192px; } 481 | .ui-icon-circle-minus { background-position: -16px -192px; } 482 | .ui-icon-circle-close { background-position: -32px -192px; } 483 | .ui-icon-circle-triangle-e { background-position: -48px -192px; } 484 | .ui-icon-circle-triangle-s { background-position: -64px -192px; } 485 | .ui-icon-circle-triangle-w { background-position: -80px -192px; } 486 | .ui-icon-circle-triangle-n { background-position: -96px -192px; } 487 | .ui-icon-circle-arrow-e { background-position: -112px -192px; } 488 | .ui-icon-circle-arrow-s { background-position: -128px -192px; } 489 | .ui-icon-circle-arrow-w { background-position: -144px -192px; } 490 | .ui-icon-circle-arrow-n { background-position: -160px -192px; } 491 | .ui-icon-circle-zoomin { background-position: -176px -192px; } 492 | .ui-icon-circle-zoomout { background-position: -192px -192px; } 493 | .ui-icon-circle-check { background-position: -208px -192px; } 494 | .ui-icon-circlesmall-plus { background-position: 0 -208px; } 495 | .ui-icon-circlesmall-minus { background-position: -16px -208px; } 496 | .ui-icon-circlesmall-close { background-position: -32px -208px; } 497 | .ui-icon-squaresmall-plus { background-position: -48px -208px; } 498 | .ui-icon-squaresmall-minus { background-position: -64px -208px; } 499 | .ui-icon-squaresmall-close { background-position: -80px -208px; } 500 | .ui-icon-grip-dotted-vertical { background-position: 0 -224px; } 501 | .ui-icon-grip-dotted-horizontal { background-position: -16px -224px; } 502 | .ui-icon-grip-solid-vertical { background-position: -32px -224px; } 503 | .ui-icon-grip-solid-horizontal { background-position: -48px -224px; } 504 | .ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; } 505 | .ui-icon-grip-diagonal-se { background-position: -80px -224px; } 506 | 507 | 508 | /* Misc visuals 509 | ----------------------------------*/ 510 | 511 | /* Corner radius */ 512 | .ui-corner-all, 513 | .ui-corner-top, 514 | .ui-corner-left, 515 | .ui-corner-tl { 516 | border-top-left-radius: 4px; 517 | } 518 | .ui-corner-all, 519 | .ui-corner-top, 520 | .ui-corner-right, 521 | .ui-corner-tr { 522 | border-top-right-radius: 4px; 523 | } 524 | .ui-corner-all, 525 | .ui-corner-bottom, 526 | .ui-corner-left, 527 | .ui-corner-bl { 528 | border-bottom-left-radius: 4px; 529 | } 530 | .ui-corner-all, 531 | .ui-corner-bottom, 532 | .ui-corner-right, 533 | .ui-corner-br { 534 | border-bottom-right-radius: 4px; 535 | } 536 | 537 | /* Overlays */ 538 | .ui-widget-overlay { 539 | background: #666666 url("images/ui-bg_diagonals-thick_20_666666_40x40.png") 50% 50% repeat; 540 | opacity: .5; 541 | filter: Alpha(Opacity=50); /* support: IE8 */ 542 | } 543 | .ui-widget-shadow { 544 | margin: -5px 0 0 -5px; 545 | padding: 5px; 546 | background: #000000 url("images/ui-bg_flat_10_000000_40x100.png") 50% 50% repeat-x; 547 | opacity: .2; 548 | filter: Alpha(Opacity=20); /* support: IE8 */ 549 | border-radius: 5px; 550 | } 551 | -------------------------------------------------------------------------------- /admin/css/jquery.nouislider.css: -------------------------------------------------------------------------------- 1 | /* General CSS resets; 2 | * The target itself is not affected, allowing 3 | * the remainder of the document to use an 4 | * alternate box-sizing model; 5 | * Support for box-sizing is wide spread: 6 | * http://caniuse.com/#search=box-sizing 7 | */ 8 | 9 | .noUi-target * { 10 | -webkit-box-sizing: border-box; 11 | -moz-box-sizing: border-box; 12 | box-sizing: border-box; 13 | -webkit-touch-callout: none; 14 | -ms-touch-action: none; 15 | -webkit-user-select: none; 16 | -moz-user-select: none; 17 | -ms-user-select: none; 18 | cursor: default; 19 | } 20 | .slider-label { 21 | padding-top: 8px; 22 | display: block; 23 | } 24 | /* Main slider bar; 25 | * Standard styles no longer incorrectly force a 26 | * width or height on the slider. 27 | */ 28 | 29 | .noUi-base { 30 | width: 100%; 31 | height: 8px; 32 | position: relative; 33 | max-width: 100%; 34 | max-height: 100%; 35 | /* border: 1px solid #DDDDDD; */ 36 | 37 | z-index: 1; 38 | } 39 | /* Handles + active state; 40 | * The :after pseudo-element wont inherit 41 | * box-sizing, so it needs to applied manually. 42 | */ 43 | 44 | .noUi-handle { 45 | height: 32px; 46 | margin: -13px 0 0 -9px; 47 | width: 80px; 48 | cursor: pointer; 49 | background: url("../images/circle.png") no-repeat; 50 | outline: none; 51 | padding-top: 7px; 52 | } 53 | } 54 | .noUi-active { 55 | background: #E9E9E9; 56 | outline: none; 57 | } 58 | .noUi-active:after { 59 | -webkit-box-sizing: border-box; 60 | -moz-box-sizing: border-box; 61 | box-sizing: border-box; 62 | content: ""; 63 | /*display: block;*/ 64 | height: 100%; 65 | /*border: 1px solid #DDD;*/ 66 | } 67 | /* Styling-only classes; 68 | * Structured to prevent double declarations 69 | * for various states of the slider. 70 | */ 71 | 72 | .noUi-connect { 73 | background: #EFF3F6; 74 | } 75 | .noUi-background { 76 | background: #f79e90; 77 | } 78 | .slider-danger .noUi-connect { 79 | background: #fe635f; 80 | } 81 | .slider-success .noUi-connect { 82 | background: #8dc859; 83 | } 84 | .slider-warning .noUi-connect { 85 | background: #f1c40f; 86 | } 87 | .slider-info .noUi-connect { 88 | background: #8F44AD; 89 | } 90 | /* Functional styles for handle positioning; 91 | * Note that the origins have z-index 0, the base has 92 | * z-index 1; This fixes a bug where borders become invisible. 93 | */ 94 | 95 | .noUi-origin { 96 | position: absolute; 97 | right: 0; 98 | top: 0; 99 | bottom: 0; 100 | z-index: 0; 101 | border-radius: inherit; 102 | } 103 | .noUi-origin-upper { 104 | background: inherit !important; 105 | } 106 | .noUi-z-index { 107 | z-index: 10; 108 | } 109 | /* Adaptations for the vertical slider; 110 | * Some standard styles have been extended to keep 111 | * exceptions for the vertical slider as minimal as possible. 112 | */ 113 | 114 | .noUi-vertical { 115 | width: 8px; 116 | height: 100%; 117 | } 118 | .noUi-vertical .noUi-origin { 119 | bottom: 0; 120 | left: 0; 121 | } 122 | .noUi-vertical .noUi-handle { 123 | margin: -9px 0 0 -4px; 124 | } 125 | /* Various alternate slider states; 126 | * Support for transition is widely available, 127 | * Only IE7, IE8 and IE9 will ignore these rules. 128 | * Since this is merely a progressive enhancement, 129 | * this is no problem at all. 130 | * http://caniuse.com/#search=transition 131 | */ 132 | 133 | .noUi-target[disabled] .noUi-base { 134 | background: #999; 135 | } 136 | .noUi-target[disabled] .noUi-connect { 137 | background: #BBB; 138 | } 139 | .noUi-state-tap .noUi-origin { 140 | -webkit-transition: left 0.3s, top 0.3s; 141 | transition: left 0.3s, top 0.3s; 142 | } -------------------------------------------------------------------------------- /admin/css/jquery.nouislider.min.css: -------------------------------------------------------------------------------- 1 | .noUi-target *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-touch-callout:none;-ms-touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;cursor:default}.noUi-base{width:100%;height:40px;position:relative;max-width:100%;max-height:100%;border:1px solid #bfbfbf;z-index:1}.noUi-handle{background:#EEE;height:44px;width:44px;border:1px solid #BFBFBF;margin:-3px 0 0 -23px}.noUi-active{background:#E9E9E9}.noUi-active:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;content:"";display:block;height:100%;border:1px solid #DDD}.noUi-connect{background:Teal}.noUi-background{background:#DDD}.noUi-origin{position:absolute;right:0;top:0;bottom:0;z-index:0;border-radius:inherit}.noUi-origin-upper{background:inherit!important}.noUi-z-index{z-index:10}.noUi-vertical{width:40px;height:100%}.noUi-vertical .noUi-origin{bottom:0;left:0}.noUi-vertical .noUi-handle{margin:-23px 0 0 -3px}.noUi-target[disabled] .noUi-base{background:#999}.noUi-target[disabled] .noUi-connect{background:#BBB}.noUi-state-tap .noUi-origin{-webkit-transition:left .3s,top .3s;transition:left .3s,top .3s} 2 | -------------------------------------------------------------------------------- /admin/css/slide.css: -------------------------------------------------------------------------------- 1 | @charset "utf-8";/* CSS Document */ 2 | a,a:hover{text-decoration:none;cursor: pointer;outline:none;} 3 | ul{list-style:none;} 4 | /*设置滑块*/ 5 | .grade_warp{/*width:840px;margin:10px auto 15px auto;*/} 6 | .User_grade{width:520px;overflow:hidden; margin:0 auto;/*float:left;*/} 7 | .User_ratings .ratings_title{width:815px;height:78px;font-family:"微软雅黑","宋体";font-size:24px;color:#aaaaaa;} 8 | .User_ratings .ratings_title01{width:407px;height:auto;font-family:"微软雅黑","宋体";font-size:14px;color:#aaaaaa;} 9 | .User_ratings .ratings_title p{float:left;} 10 | .User_ratings .ratings_title p span{font-size:48px;} 11 | .User_ratings .ratings_title p i{color:#7dc234;font-style:normal;} 12 | .User_ratings .ratings_title01 p span{font-size:18px;} 13 | .User_ratings .ratings_title01 p i{color:#7dc234;font-style:normal;} 14 | .User_ratings .ratings_title01 input{width:120px;height:48px;border:0;margin:15px auto auto 45px;float:left;background:url(../images/batton_01.png) -202px -2441px no-repeat;} 15 | .User_ratings .ratings_title01 input:hover{background:url(../images/batton_01.png) -202px -2489px no-repeat;} 16 | .User_ratings .ratings_title01 input01{background:url(../images/batton_01.png) -202px -2537px no-repeat;} 17 | .User_ratings .ratings_title input{width:120px;height:48px;border:0;margin:15px auto auto 45px;float:left;background:url(../images/batton_01.png) -202px -2441px no-repeat;} 18 | .User_ratings .ratings_title input:hover{background:url(../images/batton_01.png) -202px -2489px no-repeat;} 19 | .User_ratings .ratings_title input01{background:url(../images/batton_01.png) -202px -2537px no-repeat;} 20 | .User_ratings .ratings_bars{width:520px;height:60px;margin-top:20px;float:left;} 21 | .User_ratings .ratings_bars .bars_10{font-size:16px;line-height:25px;float:left;color:#a0a0a0;} 22 | .User_ratings .ratings_bars .scale{width:400px;height:13px;float:left;margin:7px 10px auto 10px;position:relative;background:url(../images/progress02.png) 0 0 no-repeat;} 23 | .User_ratings .ratings_bars .scale div{width:0px;position:absolute;width:0;left:0;height:13px;bottom:0;background:url(../images/progress02.png) 0 -14px no-repeat;} 24 | .User_ratings .ratings_bars .scale>span{width:50px;height:32px;position:absolute;left:-2px;top:-9px;cursor:pointer;background: url(../images/circle.png) no-repeat;line-height: 80px;} 25 | 26 | -------------------------------------------------------------------------------- /admin/css/style.css: -------------------------------------------------------------------------------- 1 | @media (min-width: 768px){ 2 | .modal-dialog{ 3 | width: 1000px; 4 | } 5 | .control-label{ 6 | width: 8%; 7 | } 8 | #chatrecontent{ 9 | width:850px; 10 | height:150px; 11 | resize:none; 12 | font-size: 16px; 13 | } 14 | } 15 | @media (min-width: 400px){ 16 | .control-label{ 17 | width: 10%; 18 | padding: 4px 4px 4px 15px; 19 | } 20 | #chatrecontent{ 21 | width:120%; 22 | height:150px; 23 | resize:none; 24 | font-size: 16px; 25 | } 26 | } 27 | .topimgbox{ 28 | background-image: url("../images/bgimg.jpg"); 29 | background-position: top; 30 | background-repeat: repeat; 31 | background-size: auto; 32 | } 33 | .leftMeun{ 34 | background-color: #735587; 35 | } 36 | .meun-item-active{ 37 | background-color: #ba617d!important; 38 | } 39 | #logoDiv{ 40 | background-color: #735587; 41 | } 42 | .height-none{ 43 | display: flex; 44 | align-items: center; 45 | height: 100%!important;; 46 | } 47 | .mes{ 48 | line-height: 22px!important; 49 | } 50 | .page-view{ 51 | color: gray!important; 52 | } 53 | .aclear{ 54 | color: #fff; 55 | } 56 | .aclear :hover{ 57 | color: #fff!important; 58 | } -------------------------------------------------------------------------------- /admin/del.php: -------------------------------------------------------------------------------- 1 | execSql($sql); 10 | if($r){ 11 | $sql = "ALTER table chat AUTO_INCREMENT=1"; 12 | $rse = $db->execSql1($sql); 13 | if($rse){ 14 | $db->showMessage('删除成功','main.php'); 15 | } 16 | } 17 | else{ 18 | $db->showMessage('删除失败','main.php'); 19 | } 20 | } 21 | else{ 22 | $db->showMessage('删除失败,参数错误,请联系管理员','main.php'); 23 | } 24 | $db->closeConn(); 25 | ?> -------------------------------------------------------------------------------- /admin/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/admin/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /admin/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/admin/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /admin/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/admin/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /admin/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/admin/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /admin/fonts/lato/lato-black.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/admin/fonts/lato/lato-black.eot -------------------------------------------------------------------------------- /admin/fonts/lato/lato-black.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/admin/fonts/lato/lato-black.ttf -------------------------------------------------------------------------------- /admin/fonts/lato/lato-black.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/admin/fonts/lato/lato-black.woff -------------------------------------------------------------------------------- /admin/fonts/lato/lato-bold.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/admin/fonts/lato/lato-bold.eot -------------------------------------------------------------------------------- /admin/fonts/lato/lato-bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/admin/fonts/lato/lato-bold.ttf -------------------------------------------------------------------------------- /admin/fonts/lato/lato-bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/admin/fonts/lato/lato-bold.woff -------------------------------------------------------------------------------- /admin/fonts/lato/lato-bolditalic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/admin/fonts/lato/lato-bolditalic.eot -------------------------------------------------------------------------------- /admin/fonts/lato/lato-bolditalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/admin/fonts/lato/lato-bolditalic.ttf -------------------------------------------------------------------------------- /admin/fonts/lato/lato-bolditalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/admin/fonts/lato/lato-bolditalic.woff -------------------------------------------------------------------------------- /admin/fonts/lato/lato-italic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/admin/fonts/lato/lato-italic.eot -------------------------------------------------------------------------------- /admin/fonts/lato/lato-italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/admin/fonts/lato/lato-italic.ttf -------------------------------------------------------------------------------- /admin/fonts/lato/lato-italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/admin/fonts/lato/lato-italic.woff -------------------------------------------------------------------------------- /admin/fonts/lato/lato-light.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/admin/fonts/lato/lato-light.eot -------------------------------------------------------------------------------- /admin/fonts/lato/lato-light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/admin/fonts/lato/lato-light.ttf -------------------------------------------------------------------------------- /admin/fonts/lato/lato-light.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/admin/fonts/lato/lato-light.woff -------------------------------------------------------------------------------- /admin/fonts/lato/lato-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/admin/fonts/lato/lato-regular.eot -------------------------------------------------------------------------------- /admin/fonts/lato/lato-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/admin/fonts/lato/lato-regular.ttf -------------------------------------------------------------------------------- /admin/fonts/lato/lato-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/admin/fonts/lato/lato-regular.woff -------------------------------------------------------------------------------- /admin/images/bgimg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/admin/images/bgimg.jpg -------------------------------------------------------------------------------- /admin/images/icon_source.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/admin/images/icon_source.png -------------------------------------------------------------------------------- /admin/images/icon_source_grey.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/admin/images/icon_source_grey.png -------------------------------------------------------------------------------- /admin/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/admin/images/logo.png -------------------------------------------------------------------------------- /admin/js/bootstrap.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v3.3.4 (http://getbootstrap.com) 3 | * Copyright 2011-2015 Twitter, Inc. 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 | */ 6 | if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.4",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a(f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.4",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")&&(c.prop("checked")&&this.$element.hasClass("active")?a=!1:b.find(".active").removeClass("active")),a&&c.prop("checked",!this.$element.hasClass("active")).trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active"));a&&this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target);d.hasClass("btn")||(d=d.closest(".btn")),b.call(d,"toggle"),c.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.4",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));return a>this.$items.length-1||0>a?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.4",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){b&&3===b.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=c(d),f={relatedTarget:this};e.hasClass("open")&&(e.trigger(b=a.Event("hide.bs.dropdown",f)),b.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger("hidden.bs.dropdown",f)))}))}function c(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.4",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=c(e),g=f.hasClass("open");if(b(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a('',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(this.options.viewport.selector||this.options.viewport),this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c&&c.$tip&&c.$tip.is(":visible")?void(c.hoverState="in"):(c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide()},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.options.container?a(this.options.container):this.$element.parent(),p=this.getPosition(o);h="bottom"==h&&k.bottom+m>p.bottom?"top":"top"==h&&k.top-mp.width?"left":"left"==h&&k.left-lg.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;jg.width&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){return this.$tip=this.$tip||a(this.options.template)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type)})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;(e||!/destroy|hide/.test(b))&&(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.4",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.4",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b=e[a]&&(void 0===e[a+1]||b .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.4",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return c>e?"top":!1;if("bottom"==this.affixed)return null!=c?e+this.unpin<=f.top?!1:"bottom":a-d>=e+g?!1:"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&c>=e?"top":null!=d&&i+j>=a-d?"bottom":!1},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=a(document.body).height();"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery); -------------------------------------------------------------------------------- /admin/js/html5.js: -------------------------------------------------------------------------------- 1 | /* 2 | HTML5 Shiv v3.6.2pre | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed 3 | Uncompressed source: https://github.com/aFarkas/html5shiv 4 | */ 5 | (function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(a);return b.canHaveChildren&&!s.test(a)?c.frag.appendChild(b):b}function t(a,b){if(!b.cache)b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag(); 6 | a.createElement=function(c){return!e.shivMethods?b.createElem(c):p(c,a,b)};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/\w+/g,function(a){b.createElem(a);b.frag.createElement(a);return'c("'+a+'")'})+");return n}")(e,b.frag)}function q(a){a||(a=f);var b=i(a);if(e.shivCSS&&!j&&!b.hasCSS){var c,d=a;c=d.createElement("p");d=d.getElementsByTagName("head")[0]||d.documentElement;c.innerHTML="x"; 7 | c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c}g||t(a,b);return a}var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a");var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode|| 8 | "undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement}g=b}catch(d){g=j=!0}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup main mark meter nav output progress section summary time video",version:"3.6.2pre",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a,b){a||(a=f);if(g)return a.createDocumentFragment(); 9 | for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;db?0:100d?d:b),b===a[0].gPct(c)))return!1;0===a.data("nui").number&&95').appendTo(a).change(A);if(!1===b.to[d])return{val:function(a){if(a===n)return this.handleElement.data("nui-val");this.handleElement.data("nui-val",a)},hasClass:function(){return!1},handleElement:a}}function E(a){if(a=v(a,!0)){var b=a.pass.base,d=b.data("style"),e=a.x-a.pass.startEvent.x,f="left"===d?b.width():b.height();"top"===d&&(e=a.y-a.pass.startEvent.y);e=a.pass.position+100*e/f;t(a.pass.handle,e);m(b.data("options").slide,b.data("target"))}}function x(a){if(!u(a)){var b= 10 | a.data.base;a=a.data.handle;a.children().removeClass(e[4]);r.off(q.move);r.off(q.end);f("body").off(l);b.data("target").change();m(a.data("nui").options.set,b.data("target"))}}function F(a){if(!u(a)&&(a=v(a,!0))){var b=a.pass.handle,d=b[0].gPct(b.data("nui").style);b.children().addClass(e[4]);r.on(q.move,{startEvent:a,position:d,base:a.pass.base,handle:b},E);r.on(q.end,{base:a.pass.base,handle:b},x);f("body").on("selectstart"+l,function(){return!1})}}function G(a){x({data:{base:a.data.base,handle:a.data.handle}}); 11 | a.stopPropagation()}function H(a){if(!u(a)&&!a.data.base.find("."+e[4]).length&&(a=v(a))){var b,d,f=a.pass.base;d=a.pass.handles;var h=f.data("style");a=a["left"===h?"x":"y"];var c="left"===h?f.width():f.height(),k=[],g={left:f.offset().left,top:f.offset().top};for(b=0;ba[0]?b+Math.abs(a[0]):b-a[0];return 100*b/this.len(a)},from:function(a,b){return 100*b/this.len(a)},is:function(a,b){return b*this.len(a)/100+a[0]},len:function(a){return a[0]>a[1]?a[0]-a[1]:a[1]-a[0]}};window.navigator.msPointerEnabled&&(q={start:"MSPointerDown"+l,move:"MSPointerMove"+l,end:"MSPointerUp"+l});f.fn.val=function(){return this.hasClass(e[6])?I.apply(this,arguments):J.apply(this,arguments)};return function(){return this.each(function(a, 15 | b){b=f(b);b.addClass(e[6]);var d,l,h,c,k=f("
    ").appendTo(b),m=[];d=K;var n=[y.concat([e[1]+e[7]]),y.concat([e[1]+e[8]])],r=[z.concat([e[2]+e[7]]),z.concat([e[2]+e[8]])];g=f.extend({handles:2,margin:0,orientation:"horizontal"},g)||{};g.serialization||(g.serialization={to:[!1,!1],resolution:0.01,mark:"."});C(g,b);g.S=g.serialization;g.connect?"lower"===g.connect?(d.push(e[9],e[9]+e[7]),n[0].push(e[13])):(d.push(e[9]+e[8],e[13]),n[0].push(e[9])):d.push(e[13]);l="vertical"===g.orientation?"top": 16 | "left";h=g.S.resolution.toString().split(".");h="1"===h[0]?0:h[1].length;"vertical"===g.orientation?d.push(e[10]):d.push(e[11]);k.addClass(d.join(" ")).data("target",b);b.data({base:k,mark:g.S.mark,decimals:h});for(d=0;d
    ").appendTo(k),c.addClass(n[d].join(" ")),c.children().addClass(r[d].join(" ")),c.children().on(q.start,{base:k,handle:c},F).on(q.end,{base:k,handle:c},G),c.data("nui",{target:b,decimals:h,options:g,base:k,style:l,number:d}).data("store",D(c,g.S)), 17 | c[0].gPct=B,m.push(c),t(c,s.to(g.range,g.start[d]));k.data({options:g,handles:m,style:l});b.data({handles:m});k.on(q.end,{base:k,handles:m},H)})}.apply(this,arguments)}})(jQuery); 18 | -------------------------------------------------------------------------------- /admin/js/respond.min.js: -------------------------------------------------------------------------------- 1 | /*! Respond.js v1.4.2: min/max-width media query polyfill * Copyright 2013 Scott Jehl 2 | * Licensed under https://github.com/scottjehl/Respond/blob/master/LICENSE-MIT 3 | * */ 4 | 5 | !function(a){"use strict";a.matchMedia=a.matchMedia||function(a){var b,c=a.documentElement,d=c.firstElementChild||c.firstChild,e=a.createElement("body"),f=a.createElement("div");return f.id="mq-test-1",f.style.cssText="position:absolute;top:-100em",e.style.background="none",e.appendChild(f),function(a){return f.innerHTML='­',c.insertBefore(e,d),b=42===f.offsetWidth,c.removeChild(e),{matches:b,media:a}}}(a.document)}(this),function(a){"use strict";function b(){u(!0)}var c={};a.respond=c,c.update=function(){};var d=[],e=function(){var b=!1;try{b=new a.XMLHttpRequest}catch(c){b=new a.ActiveXObject("Microsoft.XMLHTTP")}return function(){return b}}(),f=function(a,b){var c=e();c&&(c.open("GET",a,!0),c.onreadystatechange=function(){4!==c.readyState||200!==c.status&&304!==c.status||b(c.responseText)},4!==c.readyState&&c.send(null))};if(c.ajax=f,c.queue=d,c.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/,maxw:/\([\s]*max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/},c.mediaQueriesSupported=a.matchMedia&&null!==a.matchMedia("only all")&&a.matchMedia("only all").matches,!c.mediaQueriesSupported){var g,h,i,j=a.document,k=j.documentElement,l=[],m=[],n=[],o={},p=30,q=j.getElementsByTagName("head")[0]||k,r=j.getElementsByTagName("base")[0],s=q.getElementsByTagName("link"),t=function(){var a,b=j.createElement("div"),c=j.body,d=k.style.fontSize,e=c&&c.style.fontSize,f=!1;return b.style.cssText="position:absolute;font-size:1em;width:1em",c||(c=f=j.createElement("body"),c.style.background="none"),k.style.fontSize="100%",c.style.fontSize="100%",c.appendChild(b),f&&k.insertBefore(c,k.firstChild),a=b.offsetWidth,f?k.removeChild(c):c.removeChild(b),k.style.fontSize=d,e&&(c.style.fontSize=e),a=i=parseFloat(a)},u=function(b){var c="clientWidth",d=k[c],e="CSS1Compat"===j.compatMode&&d||j.body[c]||d,f={},o=s[s.length-1],r=(new Date).getTime();if(b&&g&&p>r-g)return a.clearTimeout(h),h=a.setTimeout(u,p),void 0;g=r;for(var v in l)if(l.hasOwnProperty(v)){var w=l[v],x=w.minw,y=w.maxw,z=null===x,A=null===y,B="em";x&&(x=parseFloat(x)*(x.indexOf(B)>-1?i||t():1)),y&&(y=parseFloat(y)*(y.indexOf(B)>-1?i||t():1)),w.hasquery&&(z&&A||!(z||e>=x)||!(A||y>=e))||(f[w.media]||(f[w.media]=[]),f[w.media].push(m[w.rules]))}for(var C in n)n.hasOwnProperty(C)&&n[C]&&n[C].parentNode===q&&q.removeChild(n[C]);n.length=0;for(var D in f)if(f.hasOwnProperty(D)){var E=j.createElement("style"),F=f[D].join("\n");E.type="text/css",E.media=D,q.insertBefore(E,o.nextSibling),E.styleSheet?E.styleSheet.cssText=F:E.appendChild(j.createTextNode(F)),n.push(E)}},v=function(a,b,d){var e=a.replace(c.regex.keyframes,"").match(c.regex.media),f=e&&e.length||0;b=b.substring(0,b.lastIndexOf("/"));var g=function(a){return a.replace(c.regex.urls,"$1"+b+"$2$3")},h=!f&&d;b.length&&(b+="/"),h&&(f=1);for(var i=0;f>i;i++){var j,k,n,o;h?(j=d,m.push(g(a))):(j=e[i].match(c.regex.findStyles)&&RegExp.$1,m.push(RegExp.$2&&g(RegExp.$2))),n=j.split(","),o=n.length;for(var p=0;o>p;p++)k=n[p],l.push({media:k.split("(")[0].match(c.regex.only)&&RegExp.$2||"all",rules:m.length-1,hasquery:k.indexOf("(")>-1,minw:k.match(c.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:k.match(c.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}u()},w=function(){if(d.length){var b=d.shift();f(b.href,function(c){v(c,b.href,b.media),o[b.href]=!0,a.setTimeout(function(){w()},0)})}},x=function(){for(var b=0;bgetOneData("select idenTity from user where nickName='".$_SESSION['name']."'"); 8 | // print_r($res); 9 | // echo $res['identity']; 10 | } 11 | ?> 12 | 13 | 14 | 15 | 16 | 17 | 管理员登录 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
    26 | 44 |
    45 | 46 | 47 |
    48 | 55 |
    56 | 57 | 58 |
    59 | 66 |
    67 | 68 | 69 | 70 | 71 | 72 | 77 | -------------------------------------------------------------------------------- /admin/main.php: -------------------------------------------------------------------------------- 1 | getOneData("select idenTity from user where nickName='".$_SESSION['name']."'"); 10 | // print_r($res); 11 | if($res['identity'] == 1){ 12 | die('您无权访问!'); 13 | } 14 | } 15 | if(empty($_SESSION)){ 16 | die('您无权访问!'); 17 | } 18 | // 翻页代码开始 19 | $page = isset($_GET['page']) ? $_GET['page'] : 1; 20 | // 定义显示的记录数 21 | $pagesize = 10; 22 | // 获取总记录数 23 | $recount = $db->getOneData("select count(chatId) as 'c' from chat"); 24 | // 计算有多少页 25 | $pagecount = ceil($recount['c'] / $pagesize); 26 | // 判断搜索框页码范围 27 | // echo $page; 28 | if($page <= 1) $page = 1; 29 | if($page >$pagecount) $page = $pagesize; 30 | if($pagecount == 0 || $pagecount==1) $page = 1; 31 | if($pagecount == 0) $pagecount = 1; 32 | // 计算索引号 33 | 34 | $index = ($page-1)*$pagesize; 35 | #获取留言数据 36 | 37 | $rs = $db->getMoreData("select * from chat order by chatId desc limit ".$index.",".$pagesize.""); 38 | // print_r($rs); 39 | // $user = $db->getMoreData("select * from admin order by adminId"); 40 | // print_r($user); 41 | // 获取管理员姓名 42 | // $adminname = isset($_GET['username']) ? $_GET['username'] : ''; 43 | 44 | // $_SESSION['adminname'] = $adminname; 45 | // var_dump($_SESSION); 46 | #审核状态 47 | function showPostState($x){ 48 | switch($x){ 49 | case 0 : return '未审核(不通过)'; break; 50 | case 1 : return '已审核(通过)'; break; 51 | default: '未审核(不通过)'; 52 | } 53 | } 54 | // echo $_SESSION['adminname'] 55 | ?> 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 欢迎您,管理员 67 | 68 | 69 | 103 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 |
    119 | 120 |
    121 |
    122 |

    微留言

    123 |
    124 |
    125 |

    126 |

    127 | 退出登录 128 |

    129 |
    130 |
    留言管理
    131 | 132 |
    133 | 134 |
    135 | 136 | 137 | 138 | 139 |
    140 | 141 |
    142 |
    143 | 144 |
    145 |
    146 |
    147 |
    148 | ID 149 |
    150 |
    151 | 用户 152 |
    153 |
    154 | 留言 155 |
    156 |
    157 | 回复的消息 158 |
    159 |
    160 | 时间 161 |
    162 |
    163 | 审核状态 164 |
    165 |
    166 | 操作 167 |
    168 |
    169 |
    170 | 171 |
    172 |
    173 | 174 |
    175 |
    176 | 177 |
    178 |
    179 | 180 |
    181 |
    182 | 183 |
    184 |
    185 | 186 |
    187 |
    188 | 189 |
    190 |
    191 | 192 | 193 | 194 |
    195 |
    196 | 197 | 223 | 224 | 225 | 226 | 246 | 247 | 248 | 267 | 268 | 269 |
    270 |
    271 | 当前第页/共页 272 |
    273 |
    274 |
      275 |
    • 首页
    • 276 | 277 |
    • 上一页
    • 278 | 279 | $pagecount){ 282 | $maxpage = $pagecount; 283 | } 284 | ?> 285 | 286 |
    • 287 | 288 | 289 |
    • 下一页
    • 290 | 291 |
    • 尾页
    • 292 |
    293 |
    294 |
    295 | 296 |
    297 |
    298 |
    299 |
    300 | 301 | 329 | 330 | closeConn(); 332 | ?> -------------------------------------------------------------------------------- /admin/replay.php: -------------------------------------------------------------------------------- 1 | execSql($sql); 12 | if($res == true){ 13 | $db->showMessage('回复成功','main.php'); 14 | } 15 | else{ 16 | $db->showMessage('回复失败','main.php'); 17 | } 18 | } 19 | else{ 20 | $db->showMessage('内容不能为空','main.php'); 21 | } 22 | $db->closeConn(); 23 | ?> -------------------------------------------------------------------------------- /admin/un.php: -------------------------------------------------------------------------------- 1 | "; 4 | echo md5("1377511265"); 5 | ?> -------------------------------------------------------------------------------- /css/main.css: -------------------------------------------------------------------------------- 1 | body { 2 | background-image: url("../images/bgimg.jpg"); 3 | background-position: top; 4 | background-repeat: repeat; 5 | background-size: auto; } 6 | 7 | .nav { 8 | background-color: #1a6785; } 9 | .nav .nav-center { 10 | position: relative; 11 | overflow: hidden; } 12 | .nav .nav-center .nav-btn { 13 | display: inline-block; 14 | text-align: center; 15 | padding: 20px 50px; 16 | font-size: 14px; 17 | text-decoration: none; 18 | color: #fff; } 19 | .nav .nav-center .nav-btn:hover { 20 | background-color: #7c5488; 21 | text-decoration: none; 22 | color: #fff; } 23 | .nav .nav-center .tip { 24 | position: absolute; 25 | display: inline-block; 26 | top: 22px; 27 | left: 248px; 28 | transform: translateY(-50%); 29 | background-color: #dd4850; 30 | width: 30px; 31 | height: 30px; 32 | border-radius: 50%; 33 | text-align: center; 34 | color: #fff; } 35 | .nav .nav-center .tip .text { 36 | margin-top: 5px; } 37 | .nav .nav-center .btn-right { 38 | position: absolute; 39 | top: 50%; 40 | right: 50px; 41 | margin-top: -25px; 42 | display: inline-block; } 43 | .nav .nav-center .btn-right .wt-top { 44 | margin-top: 8px; } 45 | .nav .nav-center .btn-right .wt-left { 46 | margin-left: 8px; } 47 | 48 | .message { 49 | background-color: rgba(255, 255, 255, 0.7); 50 | margin-top: 20px; 51 | padding: 20px 40px; 52 | border-radius: 10px; } 53 | .message .content { 54 | border: 1px solid gray; 55 | overflow: hidden; 56 | padding: 15px; } 57 | .message .content .input-box { 58 | overflow: hidden; 59 | border-bottom: 1px solid #b3b3b3; } 60 | .message .content .input-box .submit { 61 | display: inline-block; 62 | padding: 10px 50px; 63 | margin: 15px 0; 64 | background-color: #1a6785; 65 | border-radius: 5px; 66 | text-decoration: none; 67 | color: #fff; 68 | float: right; 69 | border: 1px solid #1a6785; 70 | -web-kit-appearance: none; 71 | -moz-appearance: none; 72 | outline: 0; } 73 | .message .content .comments-box .comments { 74 | padding-bottom: 20px; 75 | border-bottom: 1px solid #b3b3b3; 76 | overflow: hidden; } 77 | .message .content .comments-box .comments h5 { 78 | text-align: right; } 79 | .message .content .comments-box .comments #del-btn { 80 | float: right; 81 | margin-left: 10px; } 82 | .message .content .comments-box .comments #del-btn a { 83 | color: #fff !important; } 84 | .message .content .comments-box .comments #modify-btn { 85 | float: right; } 86 | .message .content .comments-box .comments #modify-btn a { 87 | color: #fff !important; } 88 | .message .content .comments-box .comments .user-reviews { 89 | font-size: 16px; 90 | margin: 10px 0; } 91 | .message .content .comments-box .comments .admin-reviews { 92 | font-size: 16px; } 93 | .message .content .comments-box .comments .admin-reviews span { 94 | display: inline-block; 95 | padding: 3px 5px; 96 | background-color: #fd7d70; 97 | color: #fff; 98 | border-radius: 5px; } 99 | 100 | .page-view { 101 | text-align: center; 102 | font-size: 16px; 103 | color: #fff; 104 | margin-top: 20px; } 105 | 106 | .page-count ul { 107 | text-align: center; 108 | padding: 0; 109 | margin: 20px 0; } 110 | .page-count ul li { 111 | display: inline-block; 112 | padding: 5px 12px; 113 | background-color: #fff; 114 | margin: 0 5px; } 115 | 116 | .login-box { 117 | display: flex; 118 | justify-content: center; 119 | align-items: center; 120 | height: 80vh; } 121 | .login-box .login .logo h2 { 122 | color: #ffffff; 123 | font-size: 40px; 124 | font-weight: 900; 125 | text-align: center; 126 | margin-bottom: 50px; } 127 | .login-box .login .login-from { 128 | display: flex; 129 | justify-content: space-around; } 130 | .login-box .login .login-from .text_value { 131 | width: 280px; 132 | height: 48px; 133 | padding: 0 20px; 134 | border-radius: 5px; 135 | border: none; 136 | outline: 0; 137 | font-weight: bold; 138 | color: #1b6685; } 139 | .login-box .login .go-login { 140 | text-align: center; } 141 | .login-box .login .go-login input { 142 | margin-top: 20px; 143 | box-sizing: border-box; 144 | text-align: center; 145 | font-size: 1.4em; 146 | height: 2.5em; 147 | border-radius: 4px; 148 | border: 1px solid #7f5587; 149 | color: #fff; 150 | -web-kit-appearance: none; 151 | -moz-appearance: none; 152 | display: block; 153 | outline: 0; 154 | padding: 0 1em; 155 | text-decoration: none; 156 | width: 100%; 157 | background-color: #7f5587; } 158 | 159 | #chatContent { 160 | border-radius: 6px; } 161 | 162 | .container-fluid .marginvalue { 163 | margin-top: 30px; } 164 | 165 | .modal-dialog { 166 | position: relative; } 167 | 168 | #regs { 169 | position: absolute; 170 | bottom: 15px; 171 | left: 30px; } 172 | -------------------------------------------------------------------------------- /css/main.scss: -------------------------------------------------------------------------------- 1 | body{ 2 | background-image: url("../images/bgimg.jpg"); 3 | background-position: top; 4 | background-repeat: repeat; 5 | background-size: auto; 6 | } 7 | .nav{ 8 | background-color: #1a6785; 9 | // opacity: .5; 10 | .nav-center{ 11 | // display: flex; 12 | // align-items: center; 13 | position: relative; 14 | overflow: hidden; 15 | .nav-btn{ 16 | display: inline-block; 17 | // border-radius: 5px; 18 | text-align: center; 19 | padding: 20px 50px; 20 | font-size: 14px; 21 | text-decoration: none; 22 | color: #fff; 23 | // background-color: #dfa212; 24 | &:hover{ 25 | background-color: #7c5488; 26 | text-decoration: none; 27 | color: #fff; 28 | } 29 | } 30 | .tip{ 31 | position: absolute; 32 | display: inline-block; 33 | top:22px; 34 | left: 248px; 35 | transform: translateY(-50%); 36 | background-color: rgb(221, 72, 80); 37 | width: 30px; 38 | height: 30px; 39 | border-radius: 50%; 40 | text-align: center; 41 | color: #fff; 42 | .text{ 43 | margin-top:5px; 44 | } 45 | } 46 | .btn-right{ 47 | position: absolute; 48 | top: 50%; 49 | right: 50px; 50 | margin-top: -25px; 51 | // float: right; 52 | display: inline-block; 53 | .wt-top{ 54 | margin-top:8px; 55 | } 56 | .wt-left{ 57 | margin-left: 8px; 58 | } 59 | } 60 | } 61 | } 62 | .message{ 63 | background-color:rgba($color: #fff, $alpha: .7); 64 | margin-top: 20px; 65 | padding: 20px 40px; 66 | // border: 1px solid gray; 67 | border-radius: 10px; 68 | .content{ 69 | border: 1px solid gray; 70 | overflow: hidden; 71 | padding: 15px; 72 | .input-box{ 73 | overflow: hidden; 74 | border-bottom: 1px solid rgb(179, 179, 179); 75 | .submit{ 76 | display: inline-block; 77 | padding: 10px 50px; 78 | margin: 15px 0; 79 | background-color: #1a6785; 80 | border-radius: 5px; 81 | text-decoration: none; 82 | color: #fff; 83 | float: right; 84 | border: 1px solid #1a6785; 85 | -web-kit-appearance:none; 86 | -moz-appearance: none; 87 | outline: 0; 88 | } 89 | } 90 | .comments-box{ 91 | .comments{ 92 | padding-bottom: 20px; 93 | border-bottom: 1px solid rgb(179, 179, 179); 94 | overflow: hidden; 95 | h5{ 96 | text-align: right; 97 | } 98 | #del-btn{ 99 | float: right; 100 | margin-left: 10px; 101 | a{ 102 | color: #fff!important; 103 | } 104 | } 105 | #modify-btn{ 106 | float: right; 107 | a{ 108 | color: #fff!important; 109 | } 110 | } 111 | .user-reviews{ 112 | font-size: 16px; 113 | margin: 10px 0; 114 | } 115 | .admin-reviews{ 116 | font-size: 16px; 117 | span{ 118 | display: inline-block; 119 | padding: 3px 5px; 120 | background-color: #fd7d70; 121 | color: #fff; 122 | border-radius: 5px; 123 | } 124 | } 125 | } 126 | } 127 | } 128 | } 129 | .page-view{ 130 | text-align: center; 131 | font-size: 16px; 132 | color: #fff; 133 | margin-top: 20px; 134 | } 135 | .page-count{ 136 | ul{ 137 | text-align: center; 138 | padding: 0; 139 | margin: 20px 0; 140 | li{ 141 | display: inline-block; 142 | padding: 5px 12px; 143 | background-color: #fff; 144 | margin: 0 5px; 145 | } 146 | } 147 | } 148 | 149 | .login-box{ 150 | display: flex; 151 | justify-content: center; 152 | align-items: center; 153 | height: 80vh; 154 | .login{ 155 | .logo{ 156 | h2{ 157 | color: #ffffff; 158 | font-size: 40px; 159 | font-weight: 900; 160 | text-align: center; 161 | margin-bottom: 50px; 162 | } 163 | } 164 | .login-from{ 165 | display: flex; 166 | justify-content: space-around; 167 | .text_value{ 168 | width: 280px; 169 | height: 48px; 170 | padding: 0 20px; 171 | border-radius: 5px; 172 | border: none; 173 | outline: 0; 174 | font-weight: bold; 175 | color: #1b6685; 176 | } 177 | } 178 | .go-login{ 179 | text-align: center; 180 | input{ 181 | margin-top: 20px; 182 | box-sizing: border-box; 183 | text-align:center; 184 | font-size:1.4em; 185 | height:2.5em; 186 | border-radius:4px; 187 | border:1px solid #7f5587; 188 | color:#fff; 189 | -web-kit-appearance:none; 190 | -moz-appearance: none; 191 | display:block; 192 | outline:0; 193 | padding:0 1em; 194 | text-decoration:none; 195 | width:100%; 196 | background-color: #7f5587; 197 | } 198 | } 199 | } 200 | } 201 | #chatContent{ 202 | border-radius: 6px; 203 | } 204 | .container-fluid{ 205 | .marginvalue{ 206 | margin-top: 30px; 207 | } 208 | } 209 | .modal-dialog{ 210 | position: relative; 211 | } 212 | #regs{ 213 | position: absolute; 214 | bottom: 15px; 215 | left: 30px; 216 | } -------------------------------------------------------------------------------- /css/sassConfig.css: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | /*主色*/ 3 | /*文字主色*/ 4 | /*主题宽度*/ 5 | /*定义浏览器内核属性*/ 6 | -------------------------------------------------------------------------------- /css/sassConfig.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | /*主色*/ 3 | $color-mian: #4b4b4b; 4 | 5 | /*文字主色*/ 6 | $text-gray: #a9a9a9; 7 | 8 | 9 | 10 | 11 | /*主题宽度*/ 12 | $container: 1200px; 13 | 14 | /*定义浏览器内核属性*/ 15 | @mixin webkit($type,$value){ 16 | -webkit-#{$type}: $value; 17 | -moz-#{$type}: $value; 18 | -ms-#{$type}: $value; 19 | -o-#{$type}: $value; 20 | #{$type}: $value; 21 | } 22 | 23 | 24 | @mixin ell($number){ 25 | display: -webkit-box; 26 | -webkit-line-clamp:$number; 27 | -webkit-box-orient:vertical; 28 | overflow: hidden; 29 | 30 | 31 | display: -moz-box; 32 | -moz-line-clamp:$number; 33 | -moz-box-orient:vertical; 34 | 35 | display: -ms-box; 36 | -ms-line-clamp:$number; 37 | -ms-box-orient:vertical; 38 | 39 | display: -o-box; 40 | -o-line-clamp:$number; 41 | -o-box-orient:vertical; 42 | 43 | display: box; 44 | line-clamp:$number; 45 | box-orient:vertical; 46 | } -------------------------------------------------------------------------------- /css/swiper.min.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Swiper 5.3.1 3 | * Most modern mobile touch slider and framework with hardware accelerated transitions 4 | * http://swiperjs.com 5 | * 6 | * Copyright 2014-2020 Vladimir Kharlampidi 7 | * 8 | * Released under the MIT License 9 | * 10 | * Released on: February 8, 2020 11 | */ 12 | 13 | @font-face{font-family:swiper-icons;src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff}.swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1}.swiper-container-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;box-sizing:content-box}.swiper-container-android .swiper-slide,.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-container-multirow>.swiper-wrapper{flex-wrap:wrap}.swiper-container-multirow-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-container-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform}.swiper-slide-invisible-blank{visibility:hidden}.swiper-container-autoheight,.swiper-container-autoheight .swiper-slide{height:auto}.swiper-container-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-container-3d{perspective:1200px}.swiper-container-3d .swiper-cube-shadow,.swiper-container-3d .swiper-slide,.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top,.swiper-container-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-container-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-container-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-container-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-container-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-container-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-container-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-container-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-container-horizontal.swiper-container-css-mode>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-container-vertical.swiper-container-css-mode>.swiper-wrapper{scroll-snap-type:y mandatory}:root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:50%;width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(-1 * var(--swiper-navigation-size)/ 2);z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next:after,.swiper-button-prev:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none!important;letter-spacing:0;text-transform:none;font-variant:initial}.swiper-button-prev,.swiper-container-rtl .swiper-button-next{left:10px;right:auto}.swiper-button-prev:after,.swiper-container-rtl .swiper-button-next:after{content:'prev'}.swiper-button-next,.swiper-container-rtl .swiper-button-prev{right:10px;left:auto}.swiper-button-next:after,.swiper-container-rtl .swiper-button-prev:after{content:'next'}.swiper-button-next.swiper-button-white,.swiper-button-prev.swiper-button-white{--swiper-navigation-color:#ffffff}.swiper-button-next.swiper-button-black,.swiper-button-prev.swiper-button-black{--swiper-navigation-color:#000000}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-container-horizontal>.swiper-pagination-bullets,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:10px;left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:8px;height:8px;display:inline-block;border-radius:100%;background:#000;opacity:.2}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet-active{opacity:1;background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-container-vertical>.swiper-pagination-bullets{right:10px;top:50%;transform:translate3d(0px,-50%,0)}.swiper-container-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:6px 0;display:block}.swiper-container-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-container-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 4px}.swiper-container-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-container-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-container-horizontal.swiper-container-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-progressbar{background:rgba(0,0,0,.25);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-container-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-container-horizontal>.swiper-pagination-progressbar,.swiper-container-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:4px;left:0;top:0}.swiper-container-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-container-vertical>.swiper-pagination-progressbar{width:4px;height:100%;left:0;top:0}.swiper-pagination-white{--swiper-pagination-color:#ffffff}.swiper-pagination-black{--swiper-pagination-color:#000000}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:10px;position:relative;-ms-touch-action:none;background:rgba(0,0,0,.1)}.swiper-container-horizontal>.swiper-scrollbar{position:absolute;left:1%;bottom:3px;z-index:50;height:5px;width:98%}.swiper-container-vertical>.swiper-scrollbar{position:absolute;right:3px;top:1%;z-index:50;width:5px;height:98%}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:rgba(0,0,0,.5);border-radius:10px;left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}.swiper-zoom-container>canvas,.swiper-zoom-container>img,.swiper-zoom-container>svg{max-width:100%;max-height:100%;object-fit:contain}.swiper-slide-zoomed{cursor:move}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;animation:swiper-preloader-spin 1s infinite linear;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{100%{transform:rotate(360deg)}}.swiper-container .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-container-fade.swiper-container-free-mode .swiper-slide{transition-timing-function:ease-out}.swiper-container-fade .swiper-slide{pointer-events:none;transition-property:opacity}.swiper-container-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-fade .swiper-slide-active,.swiper-container-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-cube{overflow:visible}.swiper-container-cube .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-container-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-cube.swiper-container-rtl .swiper-slide{transform-origin:100% 0}.swiper-container-cube .swiper-slide-active,.swiper-container-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-cube .swiper-slide-active,.swiper-container-cube .swiper-slide-next,.swiper-container-cube .swiper-slide-next+.swiper-slide,.swiper-container-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.swiper-container-cube .swiper-slide-shadow-bottom,.swiper-container-cube .swiper-slide-shadow-left,.swiper-container-cube .swiper-slide-shadow-right,.swiper-container-cube .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-container-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;background:#000;opacity:.6;-webkit-filter:blur(50px);filter:blur(50px);z-index:0}.swiper-container-flip{overflow:visible}.swiper-container-flip .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-container-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-flip .swiper-slide-active,.swiper-container-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-flip .swiper-slide-shadow-bottom,.swiper-container-flip .swiper-slide-shadow-left,.swiper-container-flip .swiper-slide-shadow-right,.swiper-container-flip .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden} -------------------------------------------------------------------------------- /exit.php: -------------------------------------------------------------------------------- 1 | showMessage('已退出微留言','index.php'); 10 | } 11 | ?> -------------------------------------------------------------------------------- /hearder.php: -------------------------------------------------------------------------------- 1 | getOneData("select count(chatId) as 'c' from chat where chatIsPost=0"); 4 | // print_r($count); 5 | // var_dump( $_SESSION['nickname']); 6 | // print_r( $_SESSION['name']); 7 | ?> 8 | -------------------------------------------------------------------------------- /images/bgimg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/images/bgimg.jpg -------------------------------------------------------------------------------- /images/img1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/images/img1.jpg -------------------------------------------------------------------------------- /images/img2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/images/img2.jpg -------------------------------------------------------------------------------- /images/img3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/images/img3.jpg -------------------------------------------------------------------------------- /images/img4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/images/img4.png -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | getOneData("select count(chatId) as 'c' from chat where chatIsPost= 1"); 12 | // 计算有多少页 13 | $pagecount = ceil($recount['c'] / $pagesize); 14 | // 判断搜索框页码范围 15 | if($page <= 1) $page = 1; 16 | if($page >$pagecount) $page = $pagesize; 17 | if($pagecount == 0 || $pagecount==1) $page = 1; 18 | if($pagecount == 0) $pagecount = 1; 19 | // 计算索引号 20 | $index = ($page-1)*$pagesize; 21 | #获取留言数据 22 | $rs = $db->getMoreData("select * from chat where chatIsPost= 1 order by chatId desc limit ".$index.",".$pagesize.""); 23 | // foreach($rs as $k=>$v){ 24 | 25 | // echo "$k --- $v
    "; 26 | 27 | // } 28 | // echo $arrayresult; 29 | // $num = count($rs); 30 | // echo count($rs); 31 | // echo $num;); 32 | // print_r( $_SESSION); 33 | // var_dump($_SESSION); 34 | if($_SESSION != '' && !empty($_SESSION)){ 35 | $res = $db->getOneData("select idenTity from user where nickName='".$_SESSION['name']."'"); 36 | // print_r($res); 37 | } 38 | ?> 39 | 40 | 41 | 42 | 43 | 44 | 你好,微留言 45 | 46 | 47 | 48 | 74 | 75 | 76 | 77 |
    78 |
    79 |
    80 |
    81 | 82 |
    83 |
    84 |
    ...
    85 |
    ...
    86 |
    ...
    87 |
    ...
    88 |
    ...
    89 |
    90 | 91 |
    92 | 93 |
    94 |
    95 |
    96 |
    > 97 |
    98 | 99 | 100 | > 101 |
    102 |
    103 |
    104 | 110 | 111 |
    112 |
    ID号:
    113 | 114 | getOneData($sql)?> 115 | 116 | 117 | 118 | 119 |
    120 |
    管理员回复
    121 |
    122 | 123 | 148 | 149 |
    150 |
    151 |
    152 |
    153 |
    154 | 当前第页/共页 155 |
    156 |
    157 |
      158 |
    • 首页
    • 159 | 160 |
    • 上一页
    • 161 | 162 | $pagecount){ 165 | $maxpage = $pagecount; 166 | } 167 | ?> 168 | 169 |
    • 170 | 171 | 172 |
    • 下一页
    • 173 | 174 |
    • 尾页
    • 175 |
    176 |
    177 | 178 | 208 | 209 | 248 | 249 | 269 |
    270 | 271 | 272 | 273 | 274 | 275 | 366 | 367 | closeConn(); 369 | ?> -------------------------------------------------------------------------------- /modify.php: -------------------------------------------------------------------------------- 1 | execSql($sql); 14 | if($r == true){ 15 | $db->showMessage('修改成功','index.php'); 16 | } 17 | else{ 18 | $db->showMessage('抱歉!修改失败','index.php'); 19 | } 20 | } 21 | else{ 22 | $db->showMessage('数据不完整,或其他错误导致失败','index.php'); 23 | } 24 | // } 25 | $db->closeConn(); 26 | ?> -------------------------------------------------------------------------------- /registered.php: -------------------------------------------------------------------------------- 1 | getMoreData($sql1); 21 | $result2 = $db->getMoreData($sql2); 22 | // print_r($result1); 23 | // print_r($result2); 24 | // exit(); 25 | #判断数据合法性 26 | if( $user != '' && $pwd != ''){ 27 | if(empty($result1)){ 28 | if(empty($result2)){ 29 | $sql = "insert into user(userName,passWord,nickName,idenTity) values('".$user."','".$pwd."','".$nick."','".$identity."')"; 30 | $result = $db->execSql($sql); 31 | if($result == true){ 32 | $db->showMessage('注册成功,请前往首页登录哦','index.php'); 33 | // } 34 | } 35 | else{ 36 | $db->showMessage('注册失败','index.php'); 37 | } 38 | }else{ 39 | $db->showMessage('用户名已存在,请更改用户名','index.php'); 40 | } 41 | 42 | }else{ 43 | $db->showMessage('手机号已注册,请更改手机号','index.php'); 44 | } 45 | } 46 | else{ 47 | $db->showMessage('手机号或密码不能为空','index.php'); 48 | } 49 | ?> -------------------------------------------------------------------------------- /save.php: -------------------------------------------------------------------------------- 1 | getOneData($sql); 18 | $sql = "insert into chat(userName,nickName,chatContent,chatReContent,chatIsPost,chatDateTime) values('".$result['username']."','".$_SESSION['name']."','".$chatcontent."','".$chatrecontent."','".$chatispost."','".$chatdatatime."')"; 19 | $result = $db->execSql($sql); 20 | if($result == true){ 21 | $db->showMessage('感谢您的留言,我们将尽快审核,审核通过后,您能在留言板看到您的留言','index.php'); 22 | } 23 | else{ 24 | $db->showMessage('抱歉!留言失败','index.php'); 25 | } 26 | } 27 | else{ 28 | $db->showMessage('您还没有留言!','index.php'); 29 | } 30 | } 31 | $db->closeConn(); 32 | ?> 33 | -------------------------------------------------------------------------------- /userdel.php: -------------------------------------------------------------------------------- 1 | execSql($sql); 10 | if($r){ 11 | $sql = "ALTER table chat AUTO_INCREMENT=1"; 12 | $rse = $db->execSql1($sql); 13 | if($rse){ 14 | $db->showMessage('删除成功','index.php'); 15 | } 16 | } 17 | else{ 18 | $db->showMessage('删除失败','index.php'); 19 | } 20 | } 21 | else{ 22 | $db->showMessage('删除失败,参数错误,请联系管理员','index.php'); 23 | } 24 | $db->closeConn(); 25 | ?> -------------------------------------------------------------------------------- /userlogin.php: -------------------------------------------------------------------------------- 1 | getOneData($sql); 18 | // print_r($result); 19 | // echo $result['c']; 20 | if($result['c'] == '1'){ 21 | $sql1 = "select nickName from user where userName='".$user."'"; 22 | // print_r($sql1); 23 | $result1 = $db->getOneData($sql1); 24 | // var_dump($result1); 25 | // print_r($result1); 26 | // echo $result1 ; 27 | $name = array_values($result1)[0]; 28 | $_SESSION['name'] = $name; 29 | // var_dump($_SESSION); 30 | // echo $namevalue[0]; 31 | // if($result1 == true){ 32 | $db->showMessage('登陆成功','index.php'); 33 | // } 34 | } 35 | else{ 36 | $db->showMessage('登陆失败,请检查账号和密码是否正确!,或其他原因导致登录失败','index.php'); 37 | } 38 | } 39 | else{ 40 | $db->showMessage('请填写账户或密码!','index.php'); 41 | } 42 | ?> -------------------------------------------------------------------------------- /数据库表设计/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/数据库表设计/1.png -------------------------------------------------------------------------------- /数据库表设计/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/数据库表设计/2.png -------------------------------------------------------------------------------- /数据库表设计/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lunaticable/PHP-Messageboard/0590b125023d3e1754227197e5a5e403a6505285/数据库表设计/3.png -------------------------------------------------------------------------------- /数据库表设计/说明.txt: -------------------------------------------------------------------------------- 1 | admin表好像没有用到。其他按照图中表结构创建即可,注意代码中的表的链接部分中数据库名,端口啥的就好。 2 | 因为数据库信息有点多,也涉及手机号等隐私信息,所以没有上传,望见谅! 3 | 如果对你有帮助,请fork一下,谢谢了! --------------------------------------------------------------------------------