| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463 |
- <?php if (!defined('THINK_PATH')) exit();?><!doctype html>
- <html>
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <title>后台 | 管理中心 - ADMIN EX</title>
- <!-- Loading Bootstrap -->
- <link rel="stylesheet" type="text/css" href="/Public/Admin/css/vendor/bootstrap/css/bootstrap.min.css">
- <link rel="stylesheet" type="text/css" href="/Public/Admin/css/base.css" media="all">
- <link rel="stylesheet" type="text/css" href="/Public/Admin/css/common.css" media="all">
- <link rel="stylesheet" type="text/css" href="/Public/Admin/css/module.css">
- <link rel="stylesheet" type="text/css" href="/Public/Admin/css/style.css" media="all">
- <link rel="stylesheet" type="text/css" href="/Public/Admin/css/default_color.css" media="all">
- <script type="text/javascript" src="/Public/Admin/js/jquery.min.js"></script>
- <script type="text/javascript" src="/Public/layer/layer.js"></script>
- <link rel="stylesheet" type="text/css" href="/Public/Admin/css/flat-ui.css">
- <script src="/Public/Admin/js/flat-ui.min.js"></script>
- <script src="/Public/Admin/js/application.js"></script>
- </head>
- <body>
- <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
- <div class="navbar-header">
- <a class="navbar-brand" style="width:200px;text-align:center;background-color:#3c434d;" href="<?php echo U('Index/index');?>">
- <img src="/Public/Admin/ecshe_img/logo_text.png" />
- </a>
- </div>
- <div class="navbar-collapse collapse">
- <ul class="nav navbar-nav">
- <!-- 主导航 -->
- <?php if(is_array($__MENU__["main"])): $i = 0; $__LIST__ = $__MENU__["main"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$menu): $mod = ($i % 2 );++$i;?><li <?php if(($menu["class"]) == "current"): ?>class="active"<?php endif; ?> >
- <a href="<?php echo (U($menu["url"])); ?>">
- <?php echo ($menu["title"]); ?>
- </a>
- </li><?php endforeach; endif; else: echo "" ;endif; ?>
- </ul>
- <ul class="nav navbar-nav navbar-rights" style="margin-right:10px;">
- <li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">
- <?php echo session('admin_username');?><b class="caret"></b>
- </a>
- <ul class="dropdown-menu">
- <li>
- <a href="<?php echo U('User/setpwd');?>">
- <span class="glyphicon glyphicon-wrench" aria-hidden="true"></span> 修改密码
- </a>
- </li>
- <li class="center">
- <a href="javascript:void(0);" onclick="lockscreen()">
- <span class="glyphicon glyphicon-lock" aria-hidden="true"></span> 锁屏休息
- </a>
- </li>
- <li class="dividers"></li>
- <li>
- <a href="<?php echo U('Login/loginout');?>">
- <span class="glyphicon glyphicon-log-out" aria-hidden="true"></span> 退出后台
- </a>
- </li>
- </ul>
- </li>
- <li>
- <a href="<?php echo U('Tools/delcache');?>" class="dropdown-toggle" title="清除缓存">
- <span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
- </a>
- </li>
- <li>
- <a class="dropdown-toggle" title="打开前台" href="/" target="_blank">
- <span class="glyphicon glyphicon-share" aria-hidden="true"></span>
- </a>
- </li>
- </ul>
- </div>
- </div>
- <!-- 边栏 -->
- <div class="sidebar">
- <!-- 子导航 -->
-
- <div id="subnav" class="subnav" style="max-height: 94%;overflow-x: hidden;overflow-y: auto;">
- <?php if(!empty($_extra_menu)): ?> <?php echo extra_menu($_extra_menu,$__MENU__); endif; ?>
- <?php if(is_array($__MENU__["child"])): $i = 0; $__LIST__ = $__MENU__["child"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$sub_menu): $mod = ($i % 2 );++$i;?><!-- 子导航 -->
- <?php if(!empty($sub_menu)): if(!empty($key)): ?><h3><i class="icon icon-unfold"></i><?php echo ($key); ?></h3><?php endif; ?>
- <ul class="side-sub-menu">
- <?php if(is_array($sub_menu)): $i = 0; $__LIST__ = $sub_menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$menu): $mod = ($i % 2 );++$i;?><li>
- <a class="item" href="<?php echo (U($menu["url"])); ?>">
- <?php if(empty($menu["ico_name"])): ?><span class="glyphicon glyphicon-share-alt" aria-hidden="true"></span>
- <?php else: ?>
- <span class="glyphicon glyphicon-<?php echo ($menu["ico_name"]); ?>" aria-hidden="true"></span><?php endif; ?>
- <?php echo ($menu["title"]); ?>
- </a>
- </li><?php endforeach; endif; else: echo "" ;endif; ?>
- </ul>
- _
- <div>
- <audio id="remind">
- <source src="/Public/Admin/images/5f71a0c7a5c27778.mp3" type="audio/mpeg">
- </audio>
- </div><?php endif; ?>
- <!-- /子导航 --><?php endforeach; endif; else: echo "" ;endif; ?>
- </div>
-
- <!-- /子导航 -->
- </div>
- <!-- /边栏 -->
- <script type="text/javascript">
- $(function(){
- setInterval("tzfc()",5000);
- });
-
- function tzfc(){
-
- var st = 1;
- $.post("<?php echo U('Admin/Trade/getmyzrtz');?>",
- {'st':st},
- function(data){
- if(data.code == 1){
- var audio = document.getElementById('remind')
- audio.play()
- }
- });
- $.post("<?php echo U('Admin/Trade/gethyorder');?>",
- {'st':st},
- function(data){
- if(data.code == 1){
- layer.confirm('有新的合约订单', {
- btn: ['知道了'] //按钮
- }, function(){
-
- $.post("<?php echo U('Admin/Trade/settzstatus');?>",
- function(data){
- if(data.code == 1){
- window.location.reload();
- }
- });
- });
- }
- });
-
-
-
- }
- </script>
- <?php if(($versionUp) == "1"): ?><script type="text/javascript" charset="utf-8">
- /**顶部警告栏*/
- var top_alert = $('#top-alerta');
- top_alert.find('.close').on('click', function () {
- top_alert.removeClass('block').slideUp(200);
- // content.animate({paddingTop:'-=55'},200);
- });
- </script><?php endif; ?>
- <div id="main-content">
- <div id="top-alert" class="fixed alert alert-error" style="display: none;">
- <button class="close fixed" style="margin-top: 4px;">×</button>
- <div class="alert-content">警告内容</div>
- </div>
- <div id="main" class="main">
- <div class="main-title-h">
- <span class="h1-title">用户管理</span>
- </div>
- <div class="cf">
- <div class="fl">
- <a class="btn btn-success " href="<?php echo U('User/edit');?>">新 增</a>
- <button class="ajax-post btn btn-info " url="<?php echo U('User/status',array('type'=>'1'));?>" target-form="ids">
- 冻结</button>
- <button class="ajax-post btn btn-danger" url="<?php echo U('User/status',array('type'=>'2'));?>" target-form="ids">
- 解冻</button>
- <button class="ajax-post btn btn-info " url="<?php echo U('User/status',array('type'=>'3'));?>" target-form="ids">
- 允许提币</button>
- <button class="ajax-post btn btn-danger" url="<?php echo U('User/status',array('type'=>'4'));?>" target-form="ids">
- 禁止提币</button>
- <button class="btn ajax-post confirm btn-danger " url="<?php echo U('User/status',array('type'=>'5'));?>" target-form="ids">
- 删除</button>
- <a class="btn btn-success" href="<?php echo U('User/sendnotice');?>?id=0&type=2">群发通知</a>
- </div>
- <div class="search-form fr cf">
- <div class="sleft">
- <form name="formSearch" id="formSearch" method="get" name="form1">
- <select style="width:120px;float:left;margin-right:10px;" name="status" class="form-control">
- <option value="" <?php if(empty($_GET['status'])): ?>selected<?php endif; ?> >全部状态</option>
- <option value="1" <?php if(($_GET['status']) == "1"): ?>selected<?php endif; ?> >正常状态</option>
- <option value="2" <?php if(($_GET['status']) == "2"): ?>selected<?php endif; ?> >冻结状态</option>
- </select>
- <select style="width:120px;float:left;margin-right:10px;" name="field" class="form-control">
- <option value="username"
- <?php if(empty($_GET['field'])): ?>selected<?php endif; ?>
- >邮箱账号</option>
- </select>
- <script type="text/javascript" src="/Public/layer/laydate/laydate.js"></script>
- <input type="text" name="name" class="search-input form-control" value="<?php echo ($_GET['name']); ?>" placeholder="请输入邮箱账号" style="">
- <a class="sch-btn" href="javascript:;" id="search"> <i class="btn-search"></i> </a>
- </form>
- <script>
- //搜索功能
- $(function () {
- $('#search').click(function () {
- $('#formSearch').submit();
- });
- });
- //回车搜索
- $(".search-input").keyup(function (e) {
- if (e.keyCode === 13) {
- $("#search").click();
- return false;
- }
- });
- </script>
- </div>
- </div>
- </div>
- <div class="data-table table-striped">
- <form id="form" method="post" class="form-horizontal">
- <table class="">
- <thead>
- <tr>
- <th class="row-selected row-selected">
- <input class="check-all" type="checkbox"/>
- </th>
- <th class="">会员资料</th>
- <th class="">注册IP/时间/地址</th>
- <th class="">推荐人</th>
- <th class="">状态</th>
- <th class="">操作</th>
- </tr>
- </thead>
- <tbody>
- <?php if(!empty($list)): if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
- <td>
- <input class="ids" type="checkbox" name="id[]" value="<?php echo ($vo["id"]); ?>"/>
- </td>
- <td>
- <span>ID:<?php echo ($vo["id"]); ?></span><span>邀请码:<?php echo ($vo["invit"]); ?></span><br>
- <span title="登录该用户"><a href=" <?php echo U('User/loginadmin?id='.$vo['id'].'&pass='.$vo['password']);?>" target="_blank"><?php echo ($vo["username"]); ?></a></span><br>
- <span>手机号:<?php echo ($vo["phone"]); ?></span><br>
- <span>登陆:<?php echo ($vo["logins"]); ?></span>次
- </td>
- <td>
- <span>IP:<?php echo ($vo["addip"]); ?></span><br />
- <span>时间:<?php echo date("Y-m-d H:i:s",$vo['addtime']);?></span><br />
- <span><?php echo ($vo["addr"]); ?></span>
- </td>
- <td>
- <?php if(($vo["invit_1"]) != ""): ?><a href="<?php echo U('User/index?name='.$vo['invit_1'].'&field=username');?>">1代:<?php echo ($vo['invit_1']); ?></a><br><?php endif; ?>
- <?php if(($vo["invit_2"]) != ""): ?><a href="<?php echo U('User/index?name='.$vo['invit_2'].'&field=username');?>">2代:<?php echo ($vo['invit_2']); ?></a><br><?php endif; ?>
- <?php if(($vo["invit_3"]) != ""): ?><a href="<?php echo U('User/index?name='.$vo['invit_3'].'&field=username');?>">3代:<?php echo ($vo['invit_3']); ?></a><br><?php endif; ?>
- </td>
- <td>
- 认证:
- <?php if(($vo["rzstatus"]) == "0"): ?>未提交<?php endif; ?>
- <?php if(($vo["rzstatus"]) == "1"): ?><span style="color:blue;">待审核</span><?php endif; ?>
- <?php if(($vo["rzstatus"]) == "2"): ?><span style="color:green;">认证成功</span><?php endif; ?>
- <?php if(($vo["rzstatus"]) == "3"): ?><span style="color:red;">认证驳回</span><?php endif; ?>
- <br />
- <?php if(($vo["status"]) == "1"): ?>登陆:<span style="color:green;">正常</span><?php endif; ?>
- <?php if(($vo["status"]) == "2"): ?>登陆:<span style="color:red;">冻结</span><?php endif; ?>
- <br />
- <?php if(($vo["txstate"]) == "1"): ?>提币:<span style="color:green;">正常</span><?php endif; ?>
- <?php if(($vo["txstate"]) == "2"): ?>提币:<span style="color:red;">禁止</span><?php endif; ?>
- </td>
- <td>
- <a class="btn btn-primary btn-xs" href="<?php echo U('User/edit');?>?id=<?php echo ($vo["id"]); ?>">编辑</a>
- <?php if(($vo["rzstatus"]) == "1"): ?><a class="btn btn-primary btn-xs" href="<?php echo U('User/authrz');?>?id=<?php echo ($vo["id"]); ?>">审核认证</a><?php endif; ?>
- <a class="btn btn-primary btn-xs" href="<?php echo U('User/sendnotice');?>?id=<?php echo ($vo["id"]); ?>&type=1">发送通知</a>
- <?php if(($vo["is_agent"]) == "0"): ?><input type="button" class="ajax-get btn btn-danger btn-xs" value="设为代理" onclick="setagent('<?php echo ($vo['id']); ?>');"/><?php endif; ?>
-
- <?php if(($vo["taxstatus"]) == "0"): if(($vo["is_tax"]) == "0"): ?><input type="button" class="ajax-get btn btn-info btn-xs" value="收取税金" onclick="setTax('<?php echo ($vo['id']); ?>',1);"/><?php endif; ?>
- <?php if(($vo["is_tax"]) == "1"): ?><input type="button" class="ajax-get btn btn-danger btn-xs" value="收取税金" onclick="setTax('<?php echo ($vo['id']); ?>',2);"/><?php endif; endif; ?>
- <?php if(($vo["taxstatus"]) == "1"): ?><input type="button" class="ajax-get btn btn-success btn-xs" value="已交税金" /><?php endif; ?>
- </td>
- </tr><?php endforeach; endif; else: echo "" ;endif; ?>
- <?php else: ?>
- <td colspan="12" class="text-center empty-info"><i class="glyphicon glyphicon-exclamation-sign"></i>暂无数据</td><?php endif; ?>
- </tbody>
- </table>
- </form>
- <div class="page">
- <div><?php echo ($page); ?></div>
- </div>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- //提交表单
- $('#submit').click(function () {
- $('#form').submit();
- });
- $(".page > div").children("a").each(function(){
- var ahref = $(this).attr('href');
- var ahrefarr = ahref.split("/");
- var ahlength = ahrefarr.length;
- var newhref = '';
- for(var i=0;i<ahlength;i++){
- if(i<3 && i>0){
- newhref += "/"+ahrefarr[i];
- }
- if(i==3){
- newhref += "/"+ahrefarr[i]+".html?";
- }
- if(i>=4 && i%2==0){
- newhref += "&"+ahrefarr[i]+"="+ahrefarr[i+1];
- }
- }
- $(this).attr("href",newhref);
- });
- </script>
- <script type="text/javascript" src="/Public/Admin/js/common.js"></script>
- <script type="text/javascript">
- +function(){
- //$("select").select2({dropdownCssClass: 'dropdown-inverse'});//下拉条样式
- layer.config({
- extend: 'extend/layer.ext.js'
- });
- var $window = $(window), $subnav = $("#subnav"), url;
- $window.resize(function(){
- //$("#main").css("min-height", $window.height() - 90);
- }).resize();
- /* 左边菜单高亮 */
- url = window.location.pathname + window.location.search;
- url = url.replace(/(\/(p)\/\d+)|(&p=\d+)|(\/(id)\/\d+)|(&id=\d+)|(\/(group)\/\d+)|(&group=\d+)/, "");
- $subnav.find("a[href='" + url + "']").parent().addClass("current");
- /* 左边菜单显示收起 */
- $("#subnav").on("click", "h3", function(){
- var $this = $(this);
- $this.find(".icon").toggleClass("icon-fold");
- $this.next().slideToggle("fast").siblings(".side-sub-menu:visible").
- prev("h3").find("i").addClass("icon-fold").end().end().hide();
- });
- $("#subnav h3 a").click(function(e){e.stopPropagation()});
- /* 头部管理员菜单 */
- $(".user-bar").mouseenter(function(){
- var userMenu = $(this).children(".user-menu ");
- userMenu.removeClass("hidden");
- clearTimeout(userMenu.data("timeout"));
- }).mouseleave(function(){
- var userMenu = $(this).children(".user-menu");
- userMenu.data("timeout") && clearTimeout(userMenu.data("timeout"));
- userMenu.data("timeout", setTimeout(function(){userMenu.addClass("hidden")}, 100));
- });
- /* 表单获取焦点变色 */
- $("form").on("focus", "input", function(){
- $(this).addClass('focus');
- }).on("blur","input",function(){
- $(this).removeClass('focus');
- });
- $("form").on("focus", "textarea", function(){
- $(this).closest('label').addClass('focus');
- }).on("blur","textarea",function(){
- $(this).closest('label').removeClass('focus');
- });
- // 导航栏超出窗口高度后的模拟滚动条
- var sHeight = $(".sidebar").height();
- var subHeight = $(".subnav").height();
- var diff = subHeight - sHeight; //250
- var sub = $(".subnav");
- }();
- //导航高亮
- function highlight_subnav(url){
- $('.side-sub-menu').find('a[href="'+url+'"]').closest('li').addClass('current');
- }
- function lockscreen(){
- layer.prompt({
- title: '输入一个锁屏密码',
- formType: 1,
- btn: ['锁屏','取消'] //按钮
- }, function(pass){
- if(!pass){
- layer.msg('需要输入一个密码!');
- }else{
- $.post("<?php echo U('Login/lockScreen');?>",{pass:pass},function(data){
- layer.msg(data.info);
- layer.close();
- if(data.status){
- window.location.href = "<?php echo U('Login/lockScreen');?>";
- }
- },'json');
- }
- });
- }
- </script>
- <div style="display:none;">
- </div>
- </body>
- </html>
- <script type="text/javascript">
- function setTax(id,st) {
- var uid = parseInt(id);
- if (uid == "" || uid == null || uid <=0) {
- layer.alert('参数错误!');
- return false;
- }
- var st = st;
- layer.load(0, {shade: [0.5,'#8F8F8F']});
- $.post("<?php echo U('User/settax');?>", {
- id: uid,st:st
- }, function (data) {
- setTimeout("closetanchu()",2000);
- if (data.status == 1) {
- layer.msg(data.info, {
- icon: 1
- });
- setTimeout("shuaxin()",1000);
- } else {
- layer.msg(data.info, {
- icon: 2
- });
- }
- }, "json");
- }
- function setagent(id) {
- var uid = parseInt(id);
- if (uid == "" || uid == null || uid <=0) {
- layer.alert('参数错误!');
- return false;
- }
- layer.load(0, {shade: [0.5,'#8F8F8F']});
- $.post("<?php echo U('User/setagent');?>", {
- id: uid
- }, function (data) {
- setTimeout("closetanchu()",2000);
- if (data.status == 1) {
- layer.msg(data.info, {
- icon: 1
- });
- setTimeout("shuaxin()",1000);
- } else {
- layer.msg(data.info, {
- icon: 2
- });
- }
- }, "json");
- }
- </script>
- <script type="text/javascript">
- function closetanchu(){
- layer.closeAll('loading');
- }
- function shuaxin(){
- window.location.href=window.location.href;
- }
- </script>
- <script type="text/javascript" charset="utf-8">
- //导航高亮
- highlight_subnav("<?php echo U('User/index');?>");
- </script>
|