<?php
if(!defined('IN_CRONLITE'))exit();
$title="用户中心";
include_once(TEMPLATE_ROOT."head.php");
$qqs=$DB->count("SELECT count(*) from ".DBQZ."_qq WHERE 1"); //获取QQ数量
$users=$DB->count("SELECT count(*) from ".DBQZ."_user WHERE 1"); //获取用户数量
$yxts=ceil(($now-$strtotime)/86400);//取相差值然后除于24小时(86400秒)

if(!empty($conf['gg']))
echo '<div class=" col-lg-8">
<div class="widget">
<div class="widget-content themed-background text-light-op">
<span class="break"></span>&nbsp;<strong>平台公告</strong>
</div>
<!--ggS-->'.$conf['gg'].'<!--ggE--></font>
</div>
</div>';
if($isvip==1)$vipstatus='到期时间:<font color="green">'.$row['vipdate'].'</font>';
elseif($isvip==2)$vipstatus='<font color="green">永久 VIP</font>';
else $vipstatus='<font color="red">非 VIP</font>';
echo'<div class="col-lg-4"> 
   <div class="panel panel-default"> 
    <div class="widget-content themed-background text-light-op"> 
     <div class="panel-title text-center"> 
      <img src="//q4.qlogo.cn/headimg_dl?dst_uin='.$row['qq'].'&amp;spec=100" alt="Avatar" width="80" height="80" class="img-thumbnail img-circle" /> 
      <h4 class="font-bold no-margins" style="margin-bottom:3.5px;">'.$row['user'].' [uid:'.$row['userid'].']</h4>
     </div> 
    </div> 
    <div class="slimScrollDiv" style="position: relative; overflow: hidden; width: auto; height: 220px;">
     <div data-height="220" data-scrollable="" class="list-group" style="overflow: hidden; width: auto; height: 220px;"> 
      <div class="list-group-item" style="border-width:0px;"> 
       <div class="media-box"> 
        <div class="pull-left"> 
         <span class="fa-stack"> <em class="fa fa-circle fa-stack-2x text-purple"></em> <em class="fa fa-qq fa-stack-1x fa-inverse text-white"></em> </span> 
        </div> 
        <div class="media-box-body clearfix"> 
         <span class="pull-right mt-xs">'.$row['qq'].'</span> 
         <div class="text-purple mt-xs">
          绑定的QQ
         </div> 
        </div> 
       </div> 
      </div> 
      <div class="list-group-item" style="border-width:0px;"> 
       <div class="media-box"> 
        <div class="pull-left"> 
         <span class="fa-stack"> <em class="fa fa-circle fa-stack-2x text-info"></em> <em class="fa fa-user fa-stack-1x fa-inverse text-white"></em> </span> 
        </div> 
        <div class="media-box-body clearfix"> 
         <span class="pull-right mt-xs"><span>不是代理</span></span> 
         <div class="text-info mt-xs">
          代理权限
         </div> 
        </div> 
       </div> 
      </div> 
      <div class="list-group-item" style="border-width:0px;"> 
       <div class="media-box"> 
        <div class="pull-left"> 
         <span class="fa-stack"> <em class="fa fa-circle fa-stack-2x text-danger"></em> <em class="fa fa-heart fa-stack-1x fa-inverse text-white"></em> </span> 
        </div> 
        <div class="media-box-body clearfix"> 
         <span class="pull-right mt-xs">'.usergroup().'</span> 
         <div class="text-danger mt-xs">
          用户权限
         </div> 
        </div> 
       </div> 
      </div> 
      <div class="list-group-item" style="border-width:0px;"> 
       <div class="media-box"> 
        <div class="pull-left"> 
         <span class="fa-stack"> <em class="fa fa-circle fa-stack-2x text-success"></em> <em class="fa fa-trophy fa-stack-1x fa-inverse text-white"></em> </span> 
        </div> 
        <div class="media-box-body clearfix"> 
         <span class="pull-right mt-xs">'.$vipstatus.'</span> 
         <div class="text-success mt-xs">
          会员时间
         </div> 
        </div> 
       </div> 
      </div> 
  <div class="list-group-item" style="border-width:0px;"> 
   <div class="media-box"> 
    <div class="pull-left"> 
     <span class="fa-stack"> <em class="fa fa-circle fa-stack-2x text-warning"></em> <em class="fa fa-pencil-square fa-stack-1x fa-inverse text-white"></em> </span> 
    </div> 
    <div class="media-box-body clearfix"> 
     <span class="text-muted-s pull-right ml">0 天</span> 
     <div class="media-box-heading text-warning m0">
      累计签到
     </div> 
     <div class="progress progress-xs m0"> 
      <div role="progressbar" aria-valuenow="22" aria-valuemin="0" aria-valuemax="100" style="width:0%;" class="progress-bar progress-bar-warning progress-bar-striped"> 
       <span class="sr-only">0</span> 
      </div> 
     </div> 
    </div> 
   </div> 
  </div>
    <div class="slimScrollBar" style="background: rgb(0, 0, 0); width: 7px; position: absolute; top: 280px; opacity: 0.4; display: none; border-radius: 7px; z-index: 99; right: 1px; height: 220px;"></div>
      <div class="slimScrollRail" style="width: 7px; height: 100%; position: absolute; top: 0px; display: none; border-radius: 7px; background: rgb(51, 51, 51); opacity: 0.2; z-index: 90; right: 1px;"></div>
         </div>    </div> 
    <div class="panel-footer clearfix" style="border-top-width:1px;"> 
     <div class="col-xs-3">
      <a href="index.php?mod=qqlist&addqq=1" class="btn btn-square btn-primary btn-block btn-xs">添加QQ</a>
     </div> 
     <div class="col-xs-3">
      <a href="index.php?mod=qqlist"  class="btn btn-square btn-primary btn-block btn-xs">QQ列表</a>
     </div> 
     <div class="col-xs-3">
      <a href="index.php?mod=qd"  class="btn btn-square btn-primary btn-block btn-xs">有奖签到</a>
     </div> 
     <div class="col-xs-3">
      <a href="index.php?mod=userinfo"  class="btn btn-square btn-primary btn-block btn-xs">资料修改</a>
     </div> 
    </div> 
   </div> 
  </div>
  ';
?>
<div class="col-lg-4">
<div class="widget">
       <div class="widget-content themed-background text-light-op">
          <a href="index.php?mod=wall" ui-sref="wall" class="pull-right label label-danger">QQ秒赞墙</a>
          <span class="break"></span>&nbsp;<strong>最新秒赞QQ</strong>
       </div>
       <div data-height="180" data-scrollable="" class="list-group">
          <div class="list-group-item bb">
             <div class="media-box">

<?php //获取最新QQ列表
$liukay=$DB->query("select qq,time from ".DBQZ."_qq order by id desc limit 7");
while ($lingku = $DB->fetch($liukay))
{
echo '
<div class="list-group-item bl0 br0">
             <div class="media-box">
			 <div class="pull-left">
                   <img src="//q1.qlogo.cn/g?b=qq&nk='.$lingku['qq'].'&s=100" alt="Image" class="media-box-object img-circle thumb35">
                </div>
				<div class="media-box-body clearfix">
                   <a target="_blank" href="index.php?mod=wall&do=add&qq='.$lingku['qq'].'" class="label label-info pull-right" style="margin-top:8px;">加为好友</a>
                   <strong class="media-box-heading text-primary">
                      <span class="circle circle-success circle-lg text-left"></span>'.$lingku['qq'].'</strong>
                   <p class="mb-sm">
                      <small><i class="fa fa-clock-o"></i> '.$lingku['time'].'</small>
                   </p>
                </div>
</div>
          </div>
';
}
echo '
</div>
</div>
</div>
</div>
</div>
            <div class="col-lg-4">
                                        <div class="widget">
<div class="widget-content widget-content-mini themed-background-dark-default text-light text-center">
                                        <i class="fa fa-bar-chart-o"></i> <strong>本站运行数据</strong>
                                    </div>
                                            <div class="widget-content widget-content-full">
                                                <table class="table table-striped table-borderless remove-margin">
                                                    <tbody>
                                                        <tr>
                                                            <td>加入本站的用户</td>
                                                            <td class="text-center" style="width: 80px;"><span class="text-muted">'.$users.'位</span></td>
                                                        </tr>
                                                        <tr>
                                                            <td>本站托管的QQ数量</td>
                                                            <td class="text-center" style="width: 80px;"><span class="text-muted">'.$qqs.'个</span></td>
                                                        </tr>
                                                        <tr>
                                                            <td>本站安全运行</td>
                                                            <td class="text-center" style="width: 80px;"><span class="text-muted">19'.$info['times'].'次</span></td>
                                                        </tr>
                                                        <tr>
                                                            <td>本站已经运营</td>
                                                            <td class="text-center" style="width: 80px;"><span class="text-muted">'.$yxts.'天</span></td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                                <br><br><br><br><br><br><br><br><br><br>
                                            </div>
                                        </div>
                                    </div>  
  <div class="col-lg-4"> 
<div class="widget">
       <div class="widget-content themed-background text-light-op">
     <a href="javascript:;" class="pull-right label label-danger"><small>平台秒赞群</small></a> CQY聊天室 
    </div> 
    <div class="slimScrollDiv" style="position: relative; overflow: hidden; width: auto; height: 300px;">
     <div data-height="421" class="list-group" data-scrollable="" id="chat" style="overflow: hidden; width: auto; height: 421px;">
      <a class="list-group-item bl0 br0"> 
       <div class="media-box"> 
        <div class="pull-left"> 
         <img src="//q4.qlogo.cn/headimg_dl?dst_uin='.$row['qq'].'&amp;spec=100" alt="Image" class="img-thumbnail img-circle thumb35" /> 
        </div> 
        <div class="media-box-body clearfix"> 
         <p class="mb-sm"> <span class="text-danger"><b>'.$row['qq'].'</b></span> <span class="bg-info-light" style="padding:0 3px;">管理员</span> ： <strong class="media-box-heading text-purple">聊天室暂时维护 请勿发言</strong> </p> 2019-10-23 21:03:21 
        </div> 
       </div> </a> 
     </div>
     <div class="slimScrollBar" style="background: rgb(0, 0, 0); width: 7px; position: absolute; top: 263px; opacity: 0.4; display: none; border-radius: 7px; z-index: 99; right: 1px; height: 300px;"></div>
     <div class="slimScrollRail" style="width: 7px; height: 100%; position: absolute; top: 0px; display: none; border-radius: 7px; background: rgb(51, 51, 51); opacity: 0.2; z-index: 90; right: 1px;"></div>
    </div> 
    <div class="panel-footer clearfix"> 
     <div class="input-group"> 
      <input type="text" placeholder="广告\刷屏\封号处理" id="con" maxlength="24" class="form-control" required="" /> 
      <span class="input-group-btn"> <label class="btn btn-default" onclick="ouch_chat()">发送</label> </span> 
     </div> 
    </div> 
   </div> 
  </div>
';
include TEMPLATE_ROOT."foot.php";
?>