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

14
admin/login.php

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

2
functions/version.txt

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

8
static/clipBoard.min.js vendored

@ -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(){
var user = $("#user").val(); var user = $("#user").val();
var password = $("#password").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){ $.post("../functions/Controller.php?type=login",{user:user,password:password},function(data,status){
layer.msg(data,{time:2000}); 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 @@
.login{ .login{
margin-top:100px; margin-top:100px;
} }
.login button{
width:100%;
}
#upimg{ #upimg{
margin-left:auto; margin-left:auto;
@ -205,3 +208,22 @@
.urltext{ .urltext{
margin-top:2em; 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 @@
</div> </div>
<!-- 底部END --> <!-- 底部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/layui/layui.js"></script>
<script src="../static/embed.js?v=1.22"></script> <script src="../static/embed.js?v=1.31"></script>
<script> <script>
layui.use('laydate', function(){ layui.use('laydate', function(){
var laydate = layui.laydate; var laydate = layui.laydate;

4
tpl/admin/header.php

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

4
tpl/user/footer.php

@ -16,8 +16,8 @@
</div> </div>
</div> </div>
<!-- 底部END --> <!-- 底部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/layui/layui.js"></script>
<script src="./static/embed.js?v=1.3"></script> <script src="./static/embed.js?v=1.31"></script>
</body> </body>
</html> </html>

4
tpl/user/header.php

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

Loading…
Cancel
Save