xiaoz 6 years ago
parent
commit
c5810c421b
  1. 60
      admin/index.php
  2. 14
      admin/login.php
  3. 2
      functions/version.txt
  4. 8
      static/clipBoard.min.js
  5. 5
      static/embed.js
  6. 4
      static/jquery.min.js
  7. 22
      static/style.css
  8. 4
      tpl/admin/footer.php
  9. 4
      tpl/admin/header.php
  10. 4
      tpl/user/footer.php
  11. 4
      tpl/user/header.php

60
admin/index.php

@ -15,33 +15,39 @@ @@ -15,33 +15,39 @@
</div>
<!-- 后台内容部分 -->
<div class="layui-col-lg9">
<div>
<h2>数据统计</h2>
<table class="layui-table">
<colgroup>
<col width="25%">
<col width="25%">
<col width="25%">
<col>
</colgroup>
<thead>
<tr>
<th>累积上传</th>
<th>本月上传数量</th>
<th>今日上传</th>
<th>可疑图片</th>
</tr>
</thead>
<tbody>
<tr>
<td><?php echo $data['all']; ?></td>
<td><?php echo $data['month']; ?></td>
<td><?php echo $data['day']; ?></td>
<td><?php echo $data['level']; ?></td>
</tr>
</tbody>
</table>
</div>
<h1 style = "margin-bottom:0.8em;color:#515151">数据统计:</h1>
<!-- 后台数据统计 -->
<div id="tongji" class="layui-row layui-col-space18">
<div class="layui-col-lg4">
<div class="item">
<p></p><h2>累计上传</h2><p></p>
<p><?php echo $data['all']; ?></p>
</div>
</div>
<div class="layui-col-lg4">
<div class="item">
<p></p><h2><i class="fa fa-street-view fa-fw"></i> 本月上传</h2><p></p>
<p><?php echo $data['month']; ?></p>
</div>
</div>
<div class="layui-col-lg4">
<div class="item">
<p></p><h2><i class="fa fa-exclamation-triangle fa-fw"></i> 当日上传</h2><p></p>
<p><?php echo $data['day']; ?></p>
</div>
</div>
<div class="layui-col-lg4">
<div class="item">
<a href="./senioradmin.php?type=dubious&page=1">
<p></p><h2><i class="fa fa-exclamation-triangle fa-fw"></i> 可疑图片</h2><p></p>
<p><?php echo $data['level']; ?></p>
</a>
</div>
</div>
</div>
<!-- 后台数据统计END -->
</div>
<!-- 后台内容部分END -->
</div>

14
admin/login.php

@ -13,25 +13,17 @@ @@ -13,25 +13,17 @@
<div id="container">
<div class="layui-container">
<div class="layui-row">
<div class="layui-col-lg6 layui-col-md-offset3">
<div class="layui-col-lg4 layui-col-md-offset4">
<!-- 登录表单 -->
<div class="login">
<div class="layui-form-item">
<label class="layui-form-label">用户名</label>
<div class="layui-input-block">
<input id = "user" type="text" name="title" required lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">
</div>
<input id = "user" type="text" name="title" required lay-verify="required" placeholder="用户名" autocomplete="off" class="layui-input">
</div>
<div class="layui-form-item">
<label class="layui-form-label">密码</label>
<div class="layui-input-block">
<input id = "password" type="password" name="password" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
</div>
<input id = "password" type="password" name="password" required lay-verify="required" placeholder="密码" autocomplete="off" class="layui-input">
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<button class="layui-btn" lay-submit lay-filter="formDemo" onclick = "login()">登录</button>
</div>
</div>
</div>
<!-- 登录表单END -->

2
functions/version.txt

@ -1 +1 @@ @@ -1 +1 @@
v1.3(20180911)
v1.31(20180924)

8
static/clipBoard.min.js vendored

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
/**
* clipboard.js
* width clipboard.js, you can copy cut and paste clipboard data
* the main methods ard execCommand for modern browser and clipboardData for ie
* @author ganzw@gmail.com
* @url https://github.com/baixuexiyang/clipBoard.js
*/
!function(t,e){"undefined"!=typeof module&&module.exports?module.exports=e():"function"==typeof define&&define.amd?define(e):this[t]=e()}("clipBoard",function(){"use strict";function t(t,e){this.options=e||{},this.tar=t[0]||t,this.options.copy&&this.copyd(),this.options.cut&&this.cut(),this.options.paste&&this.paste()}return t.prototype.copyd=function(t){if(this.options.beforeCopy&&this.options.beforeCopy(),t=t||this.tar.value||this.tar.innerText,this.options.copy&&(t=this.options.copy()),document.execCommand){var e=document.createElement("SPAN");if(e.textContent=t,document.body.appendChild(e),document.selection){var o=document.body.createTextRange();o.moveToElementText(e),o.select()}else if(window.getSelection){var o=document.createRange();o.selectNode(e),window.getSelection().removeAllRanges(),window.getSelection().addRange(o)}document.execCommand("copy"),e.remove?e.remove():e.removeNode(!0)}window.clipboardData&&window.clipboardData.setData("text",t),this.options.afterCopy&&this.options.afterCopy()},t.prototype.cut=function(){if("text"===this.tar.type||"textarea"===this.tar.type){if(this.options.beforeCut&&this.options.beforeCut(),document.execCommand){var t=this.tar;if(document.selection){var e=document.body.createTextRange();e.moveToElementText(t),e.select()}else window.getSelection&&t.select();document.execCommand("cut")}window.clipboardData&&(window.clipboardData.setData("text",this.tar.value),this.tar.value=""),this.options.afterCut&&this.options.afterCut()}},t.prototype.paste=function(){if("text"===this.tar.type||"textarea"===this.tar.type){if(this.options.beforePaste&&this.options.beforePaste(),document.execCommand){var t=this.tar;if(t.setSelectionRange)t.focus(),t.setSelectionRange(t.value.length,t.value.length);else if(t.createTextRange){var e=t.createTextRange();e.collapse(!0),e.moveEnd("character",t.value.length),e.moveStart("character",t.value.length),e.select()}document.execCommand("paste")}!document.execCommand&&window.clipboardData&&(this.tar.value+=window.clipboardData.getData("text")),this.options.afterPaste&&this.options.afterPaste()}},t});

5
static/embed.js

@ -175,6 +175,11 @@ function login(){ @@ -175,6 +175,11 @@ function login(){
var user = $("#user").val();
var password = $("#password").val();
if((user == '') || (password == '')){
layer.msg('用户名或密码不能为空!');
return false;
}
$.post("../functions/Controller.php?type=login",{user:user,password:password},function(data,status){
layer.msg(data,{time:2000});
});

4
static/jquery.min.js vendored

File diff suppressed because one or more lines are too long

22
static/style.css

@ -30,6 +30,9 @@ @@ -30,6 +30,9 @@
.login{
margin-top:100px;
}
.login button{
width:100%;
}
#upimg{
margin-left:auto;
@ -204,4 +207,23 @@ @@ -204,4 +207,23 @@
}
.urltext{
margin-top:2em;
}
#tongji .item{
/*height:8em;*/
background-color: #F0F0F0;
/*border:1px solid #e2e2e2;*/
border-radius: 2px;
background-color: #99CCCC;
color:#FFFFFF;
text-align:center;
margin-bottom:1em;
line-height:3em;
}
#tongji .item:hover{
-webkit-box-shadow: 2px 2px 8px 1px rgba(20, 20, 20, 0.15); -moz-box-shadow: 2px 2px 8px 1px rgba(20, 20, 20, 0.15);box-shadow: 2px 2px 8px 1px rgba(20, 20, 20, 0.15);
cursor:pointer;
}
#tongji a{
color:#FFFFFF;
}

4
tpl/admin/footer.php

@ -11,9 +11,9 @@ @@ -11,9 +11,9 @@
</div>
<!-- 底部END -->
<script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
<script src="../static/jquery.min.js"></script>
<script src="../static/layui/layui.js"></script>
<script src="../static/embed.js?v=1.22"></script>
<script src="../static/embed.js?v=1.31"></script>
<script>
layui.use('laydate', function(){
var laydate = layui.laydate;

4
tpl/admin/header.php

@ -11,8 +11,8 @@ @@ -11,8 +11,8 @@
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<link rel="Bookmark" href="../favicon.ico" />
<link rel="stylesheet" href="../static/layui/css/layui.css">
<link rel="stylesheet" href="../static/style.css?v=1.2">
<script src = "https://libs.xiaoz.top/clipBoard.js/clipBoard.min.js"></script>
<link rel="stylesheet" href="../static/style.css?v=1.31">
<script src = "../static/clipBoard.min.js"></script>
</head>
<body>
<!-- 顶部导航栏 -->

4
tpl/user/footer.php

@ -16,8 +16,8 @@ @@ -16,8 +16,8 @@
</div>
</div>
<!-- 底部END -->
<script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
<script src="./static/jquery.min.js"></script>
<script src="./static/layui/layui.js"></script>
<script src="./static/embed.js?v=1.3"></script>
<script src="./static/embed.js?v=1.31"></script>
</body>
</html>

4
tpl/user/header.php

@ -12,8 +12,8 @@ @@ -12,8 +12,8 @@
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link rel="Bookmark" href="favicon.ico" />
<link rel="stylesheet" href="./static/layui/css/layui.css">
<link rel="stylesheet" href="./static/style.css?v=1.3">
<script src = "https://libs.xiaoz.top/clipBoard.js/clipBoard.min.js"></script>
<link rel="stylesheet" href="./static/style.css?v=1.31">
<script src = "./static/clipBoard.min.js"></script>
<script src = "./static/ctrv-upload.js"></script>
</head>
<body>

Loading…
Cancel
Save