<?php $client_list = getAllClients(); $total_clients = totalCount($table = 'pl_user', $condition = array('role_id' => 2, 'is_active' => 1)); $total_pending_clients = totalCount($table = 'pl_user', $condition = array('role_id' => 2, 'acc_active' => 0, 'is_active' => 1)); $total_approved_clients = totalCount($table = 'pl_user', $condition = array('role_id' => 2, 'acc_active' => 1, 'is_active' => 1)); ?> <div class="container-fluid" style="margin-top:20px;"> <div class="row"> <div class="col-lg-4 col-md-4"> <section class="panel panel-box"> <div class="panel-left panel-item bg-info"> <i class="fa fa-users text-huge"></i> </div> <div class="panel-right panel-item bg-reverse"> <p class="size-h1 clients_count"><?php echo $total_clients; ?> </p> <p class="text-muted">Clients</p> </div> </section> </div> <div class="col-lg-4 col-md-4"> <section class="panel panel-box"> <div class="panel-left panel-item bg-success"> <i class="fa fa-check text-huge"></i> </div> <div class="panel-right panel-item bg-reverse"> <p class="size-h1 approved_clients_count"><?php
<?php include_once './includes/dataAccess.php'; switch ($_GET['fnc']) { case 'OpenOrders': getOpenOrders(); break; case 'findClientOders': if (isset($_GET['client']) && !empty($_GET['client'])) { getClientOrders($_GET['client']); } else { echo "missing parameter"; } break; case 'allClients': getAllClients(); break; case 'dashboard': getDashboard(); break; case 'orderHist': getOrderHistory(); break; case 'clientWoOrders': getClientsWithoutOrders(); break; case 'productVol': getProductVolume(); break; }