<?php
include("../php/common.php");
$title='后台管理';
include './head.php';
if($islogin==1){}else exit("<script language='javascript'>window.location.href='./login.php';</script>");
?>
  <nav class="navbar navbar-fixed-top navbar-default">
    <div class="container">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
          <span class="sr-only">导航按钮</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="./">后台管理</a>
      </div><!-- /.navbar-header -->
      <div id="navbar" class="collapse navbar-collapse">
        <ul class="nav navbar-nav navbar-right">
          <li class="active">
            <a href="./"><span class="glyphicon glyphicon-user"></span> 平台首页</a>
          </li>
		  <li>
            <a href="./list.php"><span class="glyphicon glyphicon-list"></span> 代点列表</a>
          </li>
		  <li>
            <a href="./bllist.php"><span class="glyphicon glyphicon-calendar"></span> 补领列表</a>
          </li>
		  <li>
            <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-cloud"></span> 卡密管理<b class="caret"></b></a>
            <ul class="dropdown-menu">
              <li><a href="./kmlist.php">卡密列表</a></li>
			  <li><a href="./search.php">搜索卡密</a><li>
            </ul>
          </li>
		  <li><a href="./set.php"><span class="glyphicon glyphicon-cog"></span> 系统设置</a></li>
          <li><a href="./login.php?logout"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
        </ul>
      </div><!-- /.navbar-collapse -->
    </div><!-- /.container -->
  </nav><!-- /.navbar -->
<?php
$count1=$DB->count("SELECT count(*) from qiu_job");
$count2=$DB->count("SELECT count(*) from qiu_job where endtime>'$date'");
$count3=$DB->count("SELECT count(*) from qiu_shop");
$count4=$DB->count("SELECT count(*) from qiu_shop where zt=4");
$mysqlversion=$DB->count("select VERSION()");
?>
  <div class="container" style="padding-top:70px;">
    <div class="col-xs-12 col-sm-10 col-lg-8 center-block" style="float: none;">
      <div class="panel panel-primary">
        <div class="panel-heading"><h3 class="panel-title">后台管理首页</h3></div>
          <ul class="list-group">
            <li class="list-group-item"><span class="glyphicon glyphicon-stats"></span> <b></b>代点任务数量/正在运行：<?php echo $count1.'/'.$count2?></li>
			<li class="list-group-item"><span class="glyphicon glyphicon-tint"></span> <b></b>补领任务数量/已完成：<?php echo $count3.'/'.$count4?></li>
            <li class="list-group-item"><span class="glyphicon glyphicon-time"></span> <b>现在时间：</b> <?=$date?></li>
			<li class="list-group-item"><span class="glyphicon glyphicon-home"></span> <a href="../" class="btn btn-xs btn-primary">返回首页</a><a href="http://bbs.5g-yun.com/" class="btn btn-xs btn-primary">程序更新</a>
			</li>
          </ul>
      </div>
<div class="panel panel-info">
	<div class="panel-heading">
		<h3 class="panel-title">使用声明（蓝色字体点击）</h3>
	</div>
	<ul class="list-group">
		<li class="list-group-item">
			<b>源码版权：</b><a href="http://bbs.5g-yun.com/">5G云源码分享网</a>
		</li>
		<li class="list-group-item">
			<b>注意:请勿倒卖/拿此源码盈利</b>
		</li>
		<li class="list-group-item">
			<b>免费主机：</b><a href="http://www.5g-yun.com/">5G云计算</a>（三大免费节点）
		</li>
		
		<li class="list-group-item">
			<b>官方群聊：</b><a href="https://jq.qq.com/?_wv=1027&k=5wpUkPb">414628263</a>（进群获取更多源码）
		</li>
		<li class="list-group-item">
			<b>获取更多源码请前往<a href="http://bbs.5g-yun.com/">5G云源码分享网</a></b>
		</li>
	</ul>
</div>
    </div>
  </div>