mobile login
This commit is contained in:
@@ -67,6 +67,7 @@ class Bko_Controller extends WRB_Controller {
|
||||
return $data;
|
||||
}
|
||||
protected function bkoDashData() {
|
||||
|
||||
$this->load->model('backend_model');
|
||||
$is_live = $this->backend_model->cfgReadChar("system.live");
|
||||
$data = array();
|
||||
@@ -197,6 +198,10 @@ class Bko_Controller extends WRB_Controller {
|
||||
$data['total_members'] = $row['total_members'];
|
||||
|
||||
|
||||
$mysql = "SELECT count(id) AS mobile_login FROM mobile_login WHERE added::date = now()::date";
|
||||
$query = $this->db->query($mysql);
|
||||
$row = $query->row_array();
|
||||
$data['mobile_login'] = $row['mobile_login'];
|
||||
|
||||
$mysql = "SELECT sum(amount) AS total_balance FROM members_wallet WHERE currency = 'NAIRA'";
|
||||
$query = $this->db->query($mysql);
|
||||
|
||||
@@ -171,6 +171,11 @@ class Bkomember_Controller extends Bko_Controller {
|
||||
$row = $query->row_array();
|
||||
$data['total_members'] = $row['total_members'];
|
||||
|
||||
$mysql = "SELECT count(id) AS mobile_login FROM mobile_login WHERE added::date = now()::date";
|
||||
$query = $this->db->query($mysql);
|
||||
$row = $query->row_array();
|
||||
$data['mobile_login'] = $row['mobile_login'];
|
||||
|
||||
$mysql = "SELECT sum(balance)AS total_balance FROM members WHERE status =1";
|
||||
$query = $this->db->query($mysql);
|
||||
$row = $query->row_array();
|
||||
|
||||
@@ -11,44 +11,30 @@
|
||||
<!-- Quick stats boxes -->
|
||||
<div class="row">
|
||||
<div class="col-lg-4">
|
||||
|
||||
<!-- Members online -->
|
||||
<div class="panel bg-teal-400">
|
||||
<div class="panel-body">
|
||||
<a href='/bkoreport/signup'> <h5 class="no-margin" style="color:white;">MEMBERS : <?php echo $total_members; ?></h5></a>
|
||||
<h5 class="no-margin">APP : 0</h5>
|
||||
<a href='/bkoreport/signup'> <h5 class="no-margin" style="color:brown;">MEMBERS : <?php echo $total_members; ?></h5></a>
|
||||
<h5 class="no-margin" style="color:green;">APP LOGIN : <? echo $mobile_login; ?></h5>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /members online -->
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4">
|
||||
|
||||
<!-- Members online -->
|
||||
<div class="panel bg-pink-400">
|
||||
<div class="panel-body">
|
||||
<h5 class="no-margin">NAIRA:<?php echo $total_balance * 0.01; ?> </h5>
|
||||
<h5 class="no-margin">USD:<?php echo $total_balance_usd * 0.01; ?> </h5>
|
||||
<div class="panel-body" style="text-align: right;">
|
||||
<h5 class="no-margin">NAIRA: <?php echo $total_balance * 0.01; ?> </h5>
|
||||
<h5 class="no-margin">USD: <?php echo $total_balance_usd * 0.01; ?> </h5>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /members online -->
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4">
|
||||
|
||||
<!-- Members online -->
|
||||
<div class="panel bg-blue-400">
|
||||
<div class="panel-body">
|
||||
|
||||
<div class="panel-body">
|
||||
<h3 class="no-margin"><?php echo $total_active_jobs; ?></h3>
|
||||
<a href='/bkotransaction/activecontract'> Active Jobs </a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- /members online -->
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user