whoami7 - Manager
:
/
proc
/
self
/
root
/
home
/
papecmvm
/
www
/
application
/
views
/
webapp
/
Upload File:
files >> //proc/self/root/home/papecmvm/www/application/views/webapp/dashbord.php
<?php require_once(APPPATH.'views/webapp/header.php');?> <?php require_once(APPPATH.'views/webapp/menu.php');?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Dashboard </h1> <ol class="breadcrumb"> <li><a href="<?php echo site_url('webapp/welcome')?>"><i class="fa fa-dashboard"></i> Dashboard</a></li> </ol> <?php if($this->session->flashdata('msg')){ echo $this->session->flashdata('msg'); } ?> </section> <!-- Main content --> <section class="content"> <div class="row"> <?php /* <div class="col-md-3 col-sm-6 col-xs-12"> <a href="<?php echo base_url().'webapp/office/form_grid_aprv'; ?>"> <div class="info-box"> <span class="info-box-icon bg-green"><i class="fa fa-file-text-o"></i></span> <div class="info-box-content"> <span class="info-box-text">Approved Forms</span> <span class="info-box-number"><?php echo $c_forms; ?></span> </div> <!-- /.info-box-content --> </div> </a> <!-- /.info-box --> </div> */ ?> <!-- /.col --> <?php if($_SESSION['reg_info'][0]['type'] == 'superadmin'){ ?> <div class="col-md-3 col-sm-6 col-xs-12"> <a href="<?php echo base_url().'webapp/people/office'; ?>"> <div class="info-box"> <span class="info-box-icon bg-green"><i class="fa fa-user"></i></span> <div class="info-box-content"> <span class="info-box-text">Admin</span> <span class="info-box-number"><?php echo $admin_count; ?></span> </div> <!-- /.info-box-content --> </div> </a> <!-- /.info-box --> </div> <?php } ?> <!-- /.col --> <?php if($_SESSION['reg_info'][0]['type'] == 'superadmin' || $_SESSION['reg_info'][0]['type'] == 'admin'){ ?> <div class="col-md-3 col-sm-6 col-xs-12"> <a href="<?php echo base_url().'webapp/people/office'; ?>"> <div class="info-box"> <span class="info-box-icon bg-blue"><i class="fa fa-user"></i></span> <div class="info-box-content"> <span class="info-box-text">Team Leaders</span> <span class="info-box-number"><?php echo $tl_count; ?></span> </div> <!-- /.info-box-content --> </div> </a> <!-- /.info-box --> </div> <?php } ?> <!-- /.col --> <!-- fix for small devices only --> <div class="clearfix visible-sm-block"></div> <?php if($_SESSION['reg_info'][0]['type'] == 'superadmin' || $_SESSION['reg_info'][0]['type'] == 'admin'){ ?> <div class="col-md-3 col-sm-6 col-xs-12"> <a href="<?php echo base_url().'webapp/people/office'; ?>"> <div class="info-box"> <span class="info-box-icon bg-red"><i class="fa fa-user"></i></span> <div class="info-box-content"> <span class="info-box-text">Office Users</span> <span class="info-box-number"><?php echo $of_count; ?></span> </div> <!-- /.info-box-content --> </div> </a> <!-- /.info-box --> </div> <?php } ?> <!-- /.col --> <div class="col-md-3 col-sm-6 col-xs-12"> <a href="<?php echo base_url().'webapp/people/customer'; ?>"> <div class="info-box"> <span class="info-box-icon bg-yellow"><i class="fa fa-user-o"></i></span> <div class="info-box-content"> <span class="info-box-text">Customers</span> <span class="info-box-number"><?php echo $c_count; ?></span> </div> <!-- /.info-box-content --> </div> </a> <!-- /.info-box --> </div> <!-- /.col --> </div> <div class="row"> <div class="col-sm-12"> <div class="box box-primary"> <div class="box-header"> <i class="fa fa-file" aria-hidden="true"></i> <h3 class="box-title">New Uploads</h3> </div> <!-- /.box-header --> <div class="box-body"> <table class="table"> <tr> <th>Name</th> <th>File upload path</th> <th>File upload counts</th> </tr> <?php foreach ($uploads as $uk => $uv) { $month = substr($uv['month'], strpos($uv['month'], "_")+1); $incr_obj=$uv['year']+1; $incr_obj = substr($incr_obj, -2); $path = $uv['year'].'-'.$incr_obj.'/'.$month.'/'.$uv['stage']; /*if($uv['year'] != ""){ $path = $uv['year'].'-'.$incr_obj.'/'.$month.'/'.$uv['stage']; }else{ $path = ""; }*/ ?> <tr> <td class="text-capitalize"><?php echo $uv['name']; ?></td> <td><?php echo $path; ?></td> <td><span class="badge bg-green"><?php echo $uv['file_count']; ?></span></td> </tr> <?php } ?> </table> </div> <!-- /.box-body --> </div> </div> <div class="col-sm-12"> <div class="box box-primary"> <div class="box-header"> <i class="fa fa-users"></i> <h3 class="box-title">New Customers</h3> </div> <!-- /.box-header --> <div class="box-body"> <table class="table"> <tr> <th>Name</th> <?php if($_SESSION['reg_info'][0]['type'] == 'admin' || $_SESSION['reg_info'][0]['type'] == 'superadmin'){ ?> <th>Team Leader Name</th> <?php } ?> <th>Email</th> <th>Mobile</th> <th>Active Status</th> </tr> <?php foreach ($cust as $cst) { ?> <tr> <td class="text-capitalize"><?php echo $cst['name']; ?></td> <?php if($_SESSION['reg_info'][0]['type'] == 'admin' || $_SESSION['reg_info'][0]['type'] == 'superadmin'){ ?> <td class="text-capitalize"><?php echo $cst['leadername']; ?></td> <?php } ?> <td><?php echo $cst['email']; ?></td> <td><?php echo $cst['mobile']; ?></td> <td> <?php if($cst['status'] == '1'){ echo '<span class="label label-success">Active</span>'; }else{ echo '<span class="label label-danger">Deactive</span>'; } ?> </td> </tr> <?php } ?> </table> </div> <!-- /.box-body --> </div> </div> </div> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php require_once(APPPATH.'views/webapp/footer.php');?>
Copyright ©2021 || Defacer Indonesia