whoami7 - Manager
:
/
proc
/
self
/
root
/
home
/
papecmvm
/
public_html
/
application
/
views
/
webapp
/
Upload File:
files >> //proc/self/root/home/papecmvm/public_html/application/views/webapp/office_07072023.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> <?php if(!empty($customer)){echo $customer;}else{echo 'Office';} ?> </h1> <ol class="breadcrumb"> <li><a href="<?php echo site_url('webapp/welcome')?>"><i class="fa fa-dashboard"></i> Dashboard</a></li> <li class="active"><?php if(!empty($customer)){echo $customer;}else{echo 'Office';} ?></li> </ol> </section> <!-- Main content --> <section class="content"> <?php $attributes = array('id' => 'formid'); echo form_open("",$attributes); ?> <!-- /.row --> <div class="row"> <div class="col-xs-12"> <div class="box box-primary"> <div class="box-header"> <div class="text-left"> <!---<button class="btn btn-danger" id='deletedata' type="button"><i class="fa fa-trash"></i> Trash </button>--> <?php if(empty($customer)){ ?> <a href="<?php echo base_url(); ?>webapp/people/add_user" class="btn btn-primary"> Add User </a> <?php } ?> </div> </div><!-- /.box-header --> <div class="box-body"> <?php if($this->session->flashdata('msg')){ echo $this->session->flashdata('msg'); } ?> <label class="pull-right"> <?php if(!empty($customer)){ ?> <input id="search_c" type="search" class="form-control input-sm" placeholder="Search"> <?php }else{ ?> <input id="search" type="search" class="form-control input-sm" placeholder="Search"> <?php } ?> </label> <table id="" class="table table-bordered table-striped"> <thead> <tr> <th>Name</th> <th>Email</th> <th>Mobile</th> <th>Email Status</th> <?php if($type == 'customer'){ ?><th>Payment Status</th> <?php } ?> <th>Action</th> </tr> </thead> <tbody class="my_search"> <?php foreach($data as $key) { $encrypted_id = $this->model->encryptdata($key['rid']); ?> <tr> <td class="text-capitalize"><a href="<?php echo base_url().'webapp/people/view/'.$encrypted_id; ?>"><?php echo $key['name']; ?></a><br> <span class="text-danger"> <?php if($key['type'] == 'team_leader'){ echo "Team Leader"; }elseif($key['type'] == 'office_user'){ echo "Office User"; }elseif($key['type'] == 'admin'){ echo "Admin"; } ?> </span> </td> <td><?php echo $key['email']; ?></td> <td><?php echo $key['mobile']; ?></td> <td> <?php if($key['status'] == '1'){echo'<span class="badge bg-green">Verified</span>';}else{ echo '<span class="badge bg-red">Pending</span>';} ?> </td> <?php if($type == 'customer'){ ?> <td> <?php if($key['payment_status'] == '1'){echo'<span class="badge bg-green">Done</span>';}else{ echo '<span class="badge bg-red">Pending</span>';} ?> </td> <?php } ?> <td> <a href="<?php echo base_url().'webapp/people/updateUser/'.$encrypted_id ?>" class="btn btn-primary"><i class="fa fa-pencil-square-o"></i></a> <?php if($key['type'] != 'admin'){ if($key['payment_status'] == '1'){ ?> <a href="<?php echo base_url().'webapp/people/deactive/'.$encrypted_id; ?>" class="btn btn-danger" data-toggle="tooltip" data-placement="top" title="Click here to deactive" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i></a> <?php }else{ ?> <a href="<?php echo base_url().'webapp/people/active/'.$encrypted_id; ?>" class="btn btn-success" data-toggle="tooltip" data-placement="top" title="click here to active" aria-hidden="true"><i class="fa fa-check" aria-hidden="true"></i></a> <?php } ?> <?php } ?> </td> </tr> <?php } ?> </tbody> </table> <span class="page"> <?php echo $this->pagination->create_links(); ?> </span> </div><!-- /.box-body --> </div><!-- /.box --> </div> </div> <!-- /.row --> <?php echo form_close(); ?> </section><!-- /.content --> </div><!-- /.content-wrapper --> <div id="loadingDiv" style="display:none"> <div> <h7>Please wait...</h7> </div> </div> <script type="text/javascript"> $(document).on('keyup', '#search', function(e) { $(".page").hide(); var search = $(this).val(); var controller = 'webapp/people'; var base_url = '<?php echo site_url(); ?>'; $('#loadingDiv').show(); $.ajax({ 'url' : base_url + controller + '/search', 'type' : 'POST', 'data' : {'src':search}, 'success' : function(data){ if(search==''){ $('.my_search').html(''); default_office(); $(".page").show(); $('#loadingDiv').hide(); }else{ console.log(data); $('.my_search').html(data); $('#loadingDiv').hide(); } } }); }); function default_office(){ var controller = 'webapp/people'; var base_url = '<?php echo site_url(); ?>'; $('#loadingDiv').show(); $.ajax({ 'url' : base_url + controller + '/json_office_rec', 'type' : 'POST', 'success' : function(data){ $('.my_search').html(data); } }); } </script> <script type="text/javascript"> $(document).on('keyup', '#search_c', function(e) { $(".page").hide(); var search = $(this).val(); var controller = 'webapp/people'; var base_url = '<?php echo site_url(); ?>'; $('#loadingDiv').show(); $.ajax({ 'url' : base_url + controller + '/search_cust', 'type' : 'POST', 'data' : {'src':search}, 'success' : function(data){ if(search==''){ $('.my_search').html(''); default_cust(); $(".page").show(); $('#loadingDiv').hide(); }else{ console.log(data); $('.my_search').html(data); $('#loadingDiv').hide(); } } }); }); function default_cust(){ var controller = 'webapp/people'; var base_url = '<?php echo site_url(); ?>'; $('#loadingDiv').show(); $.ajax({ 'url' : base_url + controller + '/json_cust_rec', 'type' : 'POST', 'success' : function(data){ $('.my_search').html(data); } }); } </script> <?php require_once(APPPATH.'views/webapp/footer.php');?>
Copyright ©2021 || Defacer Indonesia