$temp = $_MooClass['MooMySQL']->getOne("select count(1) as num FROM {$dbTablePre}service_leer WHERE receiveuid = '{$userid}' and receive_del=0 AND stat = '0'"); $num_li['qiubo'] = $temp['num'] ? $temp['num'] : 0; //邮件 $ret_count1 = $_MooClass['MooMySQL']->getOne("SELECT count(s_uid) as c FROM {$dbTablePre}services WHERE s_uid = '{$userid}' and flag = '1' and s_uid_del='0' and s_status = '0' ", true); $num_li['youjian'] = $ret_count1['c'] ? $ret_count1['c'] : 0; //2009-11-22日修改(得到总数) //SELECT mid,stat,other_contact_you as uid FROM {$dbTablePre}service_contact WHERE you_contact_other = '$userid' AND stat < 4 and send_del=0 and is_server=0 order by sendtime desc LIMIT $start,$pagesize //委托 $contact = $_MooClass['MooMySQL']->getOne("SELECT count(other_contact_you) as c FROM {$dbTablePre}service_contact WHERE you_contact_other = '{$userid}' AND stat = '1' and send_del=0 and is_server=0"); $num_li['weituo'] = $contact['c'] ? $contact['c'] : 0; //1分钟内浏览量 $time = time() - 61; $ret_count = $_MooClass['MooMySQL']->getOne("SELECT count(uid) as c FROM {$dbTablePre}service_visitor WHERE uid >0 and visitorid = '{$userid}' AND who_del !=2 and visitortime > '{$time}' "); $num_li['oneminite'] = $ret_count['c'] ? $ret_count['c'] : 0; echo return_data($num_li, true); //print_r($num_li); exit; } /**************************************************控制层*******************************/ $c = $_GET['c'] = empty($_GET['c']) ? '' : $_GET['c']; switch ($c) { case 'getone': getone(); break; case 'count': count_no(); break; default: getone(); break; }
<span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span> <div class="clearfix"></div> </div> </a> </div> </div> <div class="col-lg-3 col-md-6"> <div class="panel panel-primary"> <div class="panel-heading"> <div class="row"> <div class="col-xs-3"> <i class="fa fa-upload fa-5x"></i> </div> <div class="col-xs-9 text-right"> <div class="huge"><?php echo count_no("downloads"); ?> </div> <div>Total Files</div> </div> </div> </div> <a href="upload_file.php"> <div class="panel-footer"> <span class="pull-left">Upload files</span> <span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span> <div class="clearfix"></div> </div> </a> </div> </div>