| Server IP : 162.214.74.102 / Your IP : 216.73.216.139 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/lrsys/www/lrsys_projetos/sopizzas/application/views/restaurantadmin/ |
Upload File : |
<table class="table no-margin table-hover">
<thead>
<tr class="label-info labelinfo1">
<!-- <td class="text-center"><input type="checkbox" class="minimal"></td> -->
<th class="text-center"><?php echo $this->lang->line('Sl_No');?></th>
<th class="text-center"><?php echo $this->lang->line('Order_ID');?>
<span class="shorting-action">
<!-- <i class="fa fa-sort-asc" aria-hidden="true"></i>
<i class="fa fa-sort-desc" aria-hidden="true"></i> -->
</span>
</th>
<th class="text-center"><?php echo $this->lang->line('Restaurant');?>
<span class="shorting-action">
<!-- <i class="fa fa-sort-asc" aria-hidden="true"></i>
<i class="fa fa-sort-desc" aria-hidden="true"></i> -->
</span>
</th>
<th class="text-center"><?php echo $this->lang->line('Order_Time');?>
<span class="shorting-action">
<!-- <i class="fa fa-sort-asc" aria-hidden="true"></i>
<i class="fa fa-sort-desc" aria-hidden="true"></i> -->
</span>
</th>
<!-- <th class="text-center">Date to deliver</th> -->
<th class="text-center"><?php echo $this->lang->line('Order_Type');?></th>
<th class="text-center"><?php echo $this->lang->line('Amount');?>
<span class="shorting-action">
<!-- <i class="fa fa-sort-asc" aria-hidden="true"></i>
<i class="fa fa-sort-desc" aria-hidden="true"></i> -->
</span>
</th>
<th class="text-center"><?php echo $this->lang->line('Payment_Type');?></th>
<th class="text-center"><?php echo $this->lang->line('Commission');?></th>
<th class="text-center"><?php echo $this->lang->line('Customer_Email');?></th>
<th class="text-center"><?php echo $this->lang->line('Status');?></th>
<th class="text-center" colspan="2"><?php echo $this->lang->line('Action');?></th>
<th class="text-center"><?php echo $this->lang->line('PDF');?></th
</thead>
<tbody>
<?php
//print_r($this->config->item("currency")["symbol"]);
//print_r(CURRENCY);
$export=''; if(is_array($OrderList) && sizeof($OrderList)>0){
$export = '<button onclick="do_export();" class="btn btn-sm btn-success filter-submit"><i class="fa fa-file-pdf-o"></i> '.$this->lang->line('Export_CSV').'</button>';
//$i = $this->uri->segment(3);
foreach ($OrderList as $key => $value) {
//$i++;
$status= $value['status'];
?>
<tr id="<?=$value['orderid'];?>_row">
<!-- <td class="paddtop13 text-center"><input type="checkbox" class="minimal"></td> -->
<?php
if (isset($perPageCount) && $perPageCount != '') {
?>
<td class="text-center paddingtop13"><?=$perPageCount+1?></td>
<?php
$perPageCount++;
}
else {
?>
<td class="text-center paddingtop13"><?=$key+1?></td>
<?php
}
?>
<td class="paddtop13 text-center"><a href="javascript:void(0);"><?=$value['ordergenerateid']?></a></td>
<td class="paddtop13 text-center"><?=$value['restaurant_name']?></td>
<td class="paddtop13 text-center"><?=date("M j, Y", strtotime($value['orderdate']));?> / <?=date("g:i A", strtotime($value['orderdate']));?></td>
<!-- <td class="paddtop13 text-center"><?=date("M j, Y", strtotime($value['deliverydate']));?> </td> -->
<td class="paddtop13 text-center">
<center>
<span class="label label-success btn-circle btn-xs">
<?php if($value['deliverytype']=='Delivery'){?>
<?php echo $this->lang->line('Delivery');?>
<?php }else if($value['deliverytype']=='Pickup'){?>
<?php echo $this->lang->line('Pickup');?>
<?php }else{?>
<?php echo $this->lang->line('Dine-In');?>
<?php }?>
</span>
</center>
</td>
<td class="paddtop13 text-center"><?=SITENAME_CURRENCY?><?=$value['ordertotalprice']?></td>
<td class="paddtop13 text-center"><?=$value['payment_type']?></td>
<td class="paddtop13 text-center"><?=$value['commission']?></td>
<td class="paddtop13 text-center"><?=$value['customeremail']?></td>
<!-- <td class="paddtop13 text-center"><?=$status?></td> -->
<td class="paddtop13 text-center">
<select onchange="update_order_status('<?=$value['orderid']?>',this.value)" class="select2">
<?php
if ($value['status']=='Refund Requested') {
?>
<option selected="" disabled=""><?php echo $this->lang->line('Refund_Requested');?></option>
<?php
}
else {
?>
<!-- <option <?php if($value['status']=='Pending'){ echo "selected";} ?> value="Pending">Pending</option> -->
<option <?php if($value['status']=='In Preparation'){ echo "selected";} ?> value="In Preparation"><?php echo $this->lang->line('In_Preparation');?></option>
<?php if($value['deliverytype'] == "Delivery"){?>
<option <?php if($value['status']=='Out for delivery'){ echo "selected";} ?> value="Out For Delivery"><?php echo $this->lang->line('Out_For_Delivery');?></option>
<?php }?>
<option <?php if($value['status']=='Delivered'){ echo "selected";} ?> value="Delivered"><?php echo ($value['deliverytype'] == "Delivery" ? $this->lang->line('Delivered') : $this->lang->line('Completed'));?></option>
<!-- <option <?php if($value['status']=='Cancelled'){ echo "selected";} ?> value="Cancelled">Cancelled</option> -->
<option <?php if($value['status']=='Rejected'){ echo "selected";} ?> value="Rejected"><?php echo $this->lang->line('Rejected');?></option>
<option <?php if($value['status']=='Missed'){ echo "selected";} ?> value="Missed"><?php echo $this->lang->line('Missed');?></option>
<?php
}
?>
</select>
</td>
<td class="text-center">
<!-- <span class="newsolidbtn1 btn btn-outline red btn-sm opo btn-circle"><i onclick="DeleteNow('rt_order','<?=$value['orderid']?>');" class="fa fa-trash-o" aria-hidden="true"></i></span> -->
</td>
<td class="text-center">
<a style="margin-bottom: 5px;" href="javascript:void(0);" onclick="view_order_details('<?=$value['orderid']?>',event);" class="btn btn-sm btn-default btn-circle order_view"><i class="fa fa-search"></i> <?php echo $this->lang->line('View');?> </a>
<?php
if ($value['status']=='In Preparation' || $value['status']=='Out for delivery') {
?>
<!-- <a href="javascript:void(0);" onclick="cancelOrder(<?=$value['orderid']?>, '<?=$value['status']?>');" class="btn btn-sm btn-warning btn-circle "> Cancel Order </a> -->
<?php
}
else if ($value['status']=='Refund Requested') {
?>
<a href="javascript:void(0);" onclick="refundComplete(<?=$value['orderid']?>);" class="btn btn-sm btn-warning btn-circle "> <?php echo $this->lang->line('AcceptRefund');?> </a>
<?php
}
?>
</td>
<td class="text-center paddtop13">
<i style="font-size: 20px; cursor: pointer;" onclick="do_pdf('<?=$value['orderid']?>');" class="fa fa-file-pdf-o" aria-hidden="true"></i>
</td>
</tr>
<?php } }else{?>
<tr>
<td colspan="14"><?php echo $this->lang->line('No_record_found');?></td>
</tr>
<?php } ?>
</tbody>
</table>
<div class="col-md-2 col-sm-2 col-xs-12 margintop10" style="margin-top:10px;">
<?php echo $export; ?>
</div>
<div>
<?php echo $this->ajax_pagination->create_links(); ?>
</div>
</div><!-- /.table-responsive -->
</div>
</div>
</div>
</div>
</div>
<!-- ./tab section -->
<div class="clearfix"></div>
</section><!-- /.content -->
<div class="clearfix"></div>
</div>