/
home
/
efamember
/
domains
/
efa-member.com
/
public_html
/
main
/
ajax
/
profile
/
up file
home
<?php session_start(); include('../../../config/main_function.php'); $secure = "cAh3DrJACzw4RbU"; $connection = connectDB($secure); if ($connection) { // 0 = ผู้เยี่ยมชม ,g9k1s = ทั่วไป , kki22 = วิสามัญ , x9fkq = สามัญ $sql_viewer = "SELECT COUNT(*) AS total_viewer FROM tbl_member WHERE register_level = '0' "; $res_viewer = mysqli_query($connection, $sql_viewer) or die($connection->error); $viewer = mysqli_fetch_assoc($res_viewer); $sql_normal = "SELECT COUNT(*) AS total_normal FROM tbl_member WHERE register_level = 'g9k1s' "; $res_normal = mysqli_query($connection, $sql_normal) or die($connection->error); $normal = mysqli_fetch_assoc($res_normal); $sql_extra = "SELECT COUNT(*) AS total_extra FROM tbl_member WHERE register_level = 'kki22' "; $res_extra = mysqli_query($connection, $sql_extra) or die($connection->error); $extra = mysqli_fetch_assoc($res_extra); $sql_ordinary = "SELECT COUNT(*) AS total_ordinary FROM tbl_member WHERE register_level = 'x9fkq' "; $res_ordinary = mysqli_query($connection, $sql_ordinary) or die($connection->error); $ordinary = mysqli_fetch_assoc($res_ordinary); } else { $arr['result'] = 9; } mysqli_close($connection); ?> <div class="row"> <div class="col-lg-3"> <div class="ibox "> <div class="ibox-title"> <!-- <span class="label label-success float-right">ผู้เยี่มชม</span> --> <h5>ผู้เยี่มชม</h5> </div> <div class="ibox-content"> <h1 class="no-margins"><?php echo $viewer['total_viewer'] ?></h1> <!-- <div class="stat-percent font-bold text-success">98% <i class="fa fa-bolt"></i></div> <small>Total income</small> --> </div> </div> </div> <div class="col-lg-3"> <div class="ibox "> <div class="ibox-title"> <!-- <span class="label label-info float-right">Annual</span> --> <h5>สมาชิกทั่วไป</h5> </div> <div class="ibox-content"> <h1 class="no-margins"><?php echo $normal['total_normal'] ?></h1> <!-- <div class="stat-percent font-bold text-info">20% <i class="fa fa-level-up"></i></div> <small>New orders</small> --> </div> </div> </div> <div class="col-lg-3"> <div class="ibox "> <div class="ibox-title"> <!-- <span class="label label-primary float-right">Today</span> --> <h5>สมาชิกวิสามัญ</h5> </div> <div class="ibox-content"> <h1 class="no-margins"><?php echo $extra['total_extra'] ?></h1> <!-- <div class="stat-percent font-bold text-navy">44% <i class="fa fa-level-up"></i></div> <small>New visits</small> --> </div> </div> </div> <div class="col-lg-3"> <div class="ibox "> <div class="ibox-title"> <!-- <span class="label label-danger float-right">สมาชิกสามัญ</span> --> <h5>สมาชิกสามัญ</h5> </div> <div class="ibox-content"> <h1 class="no-margins"><?php echo $ordinary['total_ordinary'] ?></h1> <!-- <div class="stat-percent font-bold text-danger">38% <i class="fa fa-level-down"></i></div> <small>In first month</small> --> </div> </div> </div> </div>