📁
SKYSHELL MANAGER-
🛒
PHP v7.4.33
Create Folder
Create File
Current Path:
home
/
oshofree
/
public_html
/
chbluxuries.com
/
chb_data
/
Name
Size
Permissions
Actions
📁
..
-
0755
🗑️
🔒
📄
config.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
📄
error_log
24441.54 KB
0644
🗑️
⬇️
✏️
🔒
Editing: more_about_store.php
<?php $currency ='₦'; $count_store =$this->Action->count_all_store(); $count_store_owner =$this->Action->count_store_owners(); ?> <div class="main-body"> <div class="page-wrapper"> <div class="page-body"> <div class="row"> <!-- task, page, download counter start --> <!-- <div class="col-sm-6"> <div class="card bg-c-yellow text-white widget-visitor-card"> <div class="card-block-small text-center"> <h2><?php echo $this->cart->format_number($count_store);?></h2> <h6>Number Of Store</h6> </div> </div> </div> <div class="col-sm-6"> <div class="card bg-c-blue text-white widget-visitor-card"> <div class="card-block-small text-center"> <h2><?php echo $this->cart->format_number($count_store_owner);?></h2> <h6>Total Store Owner</h6> </div> </div> </div> --> <!-- task, page, download counter end --> <div class="col-md-12" id="slideshow"> <div class="card" id="slide_show"> <div class="card-header"> <h5>List Of Store By Store Owner ID (<?php echo $store_owner_id;?></h5> </div> <?php $get_store =$this->Action->get_store_by_admin(); $get_store_branch =$this->Action->get_store_branches_by_admin(); ?> <div class="card-block" id="dataList"> <table id="demo-foo-filtering" class="table table-striped footable footable-1 footable-paging footable-paging-center breakpoint-lg" style=""> <thead> <tr class="footable-header"> <th class="footable-sortable footable-first-visible" style="display: table-cell;"> S/N<span class="fooicon fooicon-sort"></span></th> <th data-breakpoints="xs" class="footable-sortable" style="display: table-cell;">Name of Store<span class="fooicon fooicon-sort"></span></th> <th data-breakpoints="xs" class="footable-sortable" style="display: table-cell;">Num Of Branch<span class="fooicon fooicon-sort"></span></th> <th data-breakpoints="xs" class="footable-sortable" style="display: table-cell;">Num Of Transaction<span class="fooicon fooicon-sort"></span></th> <th data-breakpoints="xs" class="footable-sortable" style="display: table-cell;">Num Of Items Sold<span class="fooicon fooicon-sort"></span></th> <!-- <th data-breakpoints="xs" class="footable-sortable" style="display: table-cell;">Date Joined</th> --> <th data-breakpoints="xs" class="footable-sortable" style="display: table-cell;">Date Store Created</th> <th data-breakpoints="xs" class="footable-sortable" style="display: table-cell;"><span class="fooicon fooicon-sort"></span></th> </tr> </thead> <tbody> <?php $get_store =$this->Action->get_store_by_admin_with_store_owner_id($store_owner_id); // $get_store =$this->Action->get_store_by_admin(); // $get_store =$this->Action->get_my_store_sales_rep_filter_by_store_id($user_id,$dis_store_id); // $get_store =$this->Action->get_my_store_sales_rep_filter_by_branch_id($store_owner_id,$dis_branch_id); $i=1; if(is_array($get_store)){ foreach($get_store as $row){ $id =$row['id']; $store_logo =$row['store_img']; $store_name =$row['store_name']; $store_name_2 =$row['store_name_2']; $date =$row['date_created']; $time =$row['time']; $store_owner_id =$row['store_owner_id']; $store_status =$row['store_status']; $count_store_branch =$this->Action->count_store_branch_by_admin($id); $count_store_transaction =$this->Action->count_total_transaction_by_admin($id); $count_store_item_sold =$this->Action->count_total_item_sold_by_admin($id); ?> <tr> <td><?php echo $i++;?></td> <td style="display: table-cell;"><img style="width:50px; height:50px;" src="<?php echo base_url();?>store_img/<?php echo $store_name_2;?>/images/<?php echo $store_logo;?>" alt=""><br> <?php echo $store_name;?> </td> <td><?php echo $count_store_branch;?></td> <td><?php echo $count_store_transaction;?></td> <td><?php if(!empty($count_store_item_sold)){ echo $count_store_item_sold;} else{echo '0';}?></td> <td><?php echo $date;?></td> <td> <a href="<?php echo base_url();?>Dashboard/view_store_detail/<?php echo $id;?>" class="label label-success"><i class="fa fa-door-open"></i> More</a> <?php if($store_status =='normal'){?> <a href="javascript:;" id="delete_branch_<?php echo $id;?>" data-id="<?php echo $id;?>" class="label label-danger"><i class="fa fa-lock"></i> Suspend</a> <?php }elseif($store_status =='suspend'){?> <a href="javascript:;" id="undelete_branch_<?php echo $id;?>" data-id="<?php echo $id;?>" class="label label-info"><i class="fa fa-lock-open"></i> Remove Suspension</a> <?php }?> </td> </tr> <script type="text/javascript" src="<?php echo base_url();?>files/bower_components/jquery/dist/jquery.min.js"> </script> <script> $(document).ready(function () { $('#delete_branch_<?php echo $id;?>').click(function (e) { e.preventDefault(); var id = $(this).data('id'); swal({ title: "Are you sure you want to Suspend this STORE?", icon: "warning", buttons: true, dangerMode: true, }) .then((willDelete) => { if (willDelete) { $.ajax({ type: 'POST', url: '<?php echo base_url();?>Dashboard/suspend_store/' + id, success: function (resp) { if (resp == 'ok') { $('#dataList').load('<?php echo base_url();?>Dashboard/more_about_store_owner_2/<?php echo $store_owner_id;?>'); swal({ title: "Success", text: "Store has been place on Suspension", icon: "success", closeOnClickOutside: false, }); } else if (resp == 'err') { swal({ title: "Oops!", text: "Database Could not connect to server!", icon: "info", closeOnClickOutside: false, }); } } }); } }); }); }); </script> <script> $(document).ready(function () { $('#undelete_branch_<?php echo $id;?>').click(function (e) { e.preventDefault(); var id = $(this).data('id'); swal({ title: "Are you sure you want to Remove Suspension from this STORE?", icon: "warning", buttons: true, dangerMode: true, }) .then((willDelete) => { if (willDelete) { $.ajax({ type: 'POST', url: '<?php echo base_url();?>Dashboard/unsuspend_store/' + id, success: function (resp) { if (resp == 'ok') { $('#dataList').load('<?php echo base_url();?>Dashboard/more_about_store_owner_2/<?php echo $store_owner_id;?>'); swal({ title: "Success", text: "Suspension Removed", icon: "success", closeOnClickOutside: false, }); } else if (resp == 'err') { swal({ title: "Oops!", text: "Database Could not connect to server!", icon: "info", closeOnClickOutside: false, }); } } }); } }); }); }); </script> <?php } }else{?> <div class="alert alert-warning" style="margin-top:4%;">No Information to Display yet!</div> <?php } ?> </tbody> </table> </div> </div> </div> </div> </div> </div> <div id="styleSelector"> </div> </div>
💾 Save Changes