AnonSec Shell
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/customer/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/www/lrsys_projetos/sopizzas/application/views/customer/order_list_ajax.php
<table class="table no-margin table-hover">
  <thead>
    <tr class="label-info bg_color">
      <th><?php echo $this->lang->line('Sl_No');?></th>
      <th><?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><?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><?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><?php echo $this->lang->line('Payment_Type');?></th>
      <th><?php echo $this->lang->line('Order_Type');?></th>
      <th class="text-center"><?php echo $this->lang->line('Status');?></th>
      <th class="text-center"><?php echo $this->lang->line('Action');?></th>
  </thead>
  <tbody>
    <?php $export=''; if(is_array($OrderList) && sizeof($OrderList)>0){
          //$i = $this->uri->segment(3);
                //<a href="javascript:void(0);" onclick="openReview('.$value['orderid'].', '.$value['restaurant_id'].')" class="btn btn-sm btn-default btn-circle "><i class="fa fa-smile-o"></i> '.$this->lang->line('Review').' </a>
                
                foreach ($OrderList as $key => $value) {
                  //$view = '<a href="javascript:void(0);" onclick="view_order_details('.$value['orderid'].',event);" class="btn btn-sm btn-default btn-circle "><i class="fa fa-search"></i> '.$this->lang->line('View').' </a>';
                    $view = '<a href="javascript:void(0);" onclick="view_track_order('.$value['orderid'].',event);" class="btn btn-sm btn-default btn-circle "><i class="fa fa-location-arrow" aria-hidden="true"></i>&nbsp;&nbsp;'.$this->lang->line('Track').'</a>';
                  $ratingView = '';
                  if ($value['status'] == 'Delivered') {
                    $ratingView = '';
                  }
                  if($value['status']=='In Preparation')
                  {
                    $deliveryCLS = "label-info";
                  }
                  else if($value['status']=='Out for delivery')
                  {
                    $deliveryCLS = "label-warning";
                    $view = '<a href="javascript:void(0);" onclick="view_track_order('.$value['orderid'].',event);" class="btn btn-sm btn-default btn-circle "><i class="fa fa-location-arrow" aria-hidden="true"></i>&nbsp;&nbsp;'.$this->lang->line('Track').'</a>';
                  }
                  else if($value['status']=='Delivered')
                  {
                    $deliveryCLS = "label-success";
                  }
                  else if($value['status']=='Cancelled')
                  {
                    $deliveryCLS = "label-danger";
                  }
                  else if($value['status']=='Refund Accepted')
                  {
                    $deliveryCLS = "label-success";
                  }
                  else
                  {
                    $deliveryCLS = "label-success";
                  }
                //$i++;
          ?>

    <tr>
      <?php
        if (isset($perPageCount) && $perPageCount != '') {
      ?>
      <td class="text-center pad_top_table"><?=$perPageCount+1?></td>
      <?php
          $perPageCount++;
        }
        else {
      ?>
      <td class="text-center pad_top_table"><?=$key+1?></td>
      <?php
        }
      ?>
      <td class="text-center pad_top_table"><?=$value['ordergenerateid']?></td>
      <td class="text-center pad_top_table"><?=date("M j, Y", strtotime($value['orderdate']));?> / <?=date("g:i A", strtotime($value['orderdate']));?></td>
      
      <td class="text-center pad_top_table"><?=SITENAME_CURRENCY?> <?=$value['ordertotalprice']?></td>
      <td class="text-center pad_top_table"><?=$value['payment_type']?></td>
      <td class="text-center pad_top_table">
        <?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 }?>
      </td>
      <td class="text-center pad_top_table">
        <center>
          <span class="label <?php echo $deliveryCLS; ?> btn-circle btn-xs">
          <?php 
            if ($value['status']=='Refund Requested')
            {
              echo $this->lang->line('Refund_Requested');
            }
            else if ($value['status']=='In Preparation')
            {
              echo $this->lang->line('In_Preparation');
            }
            else if ($value['status']=='Out for delivery')
            {
              echo $this->lang->line('Out_For_Delivery');
            }
            else if ($value['status']=='Delivered')
            {
                echo ($value['deliverytype'] == "Delivery" ? $this->lang->line('Delivered') : $this->lang->line('Completed'));
            }
            else if ($value['status']=='Cancelled')
            {
              echo $this->lang->line('Cancelled');
            }
            else if ($value['status']=='Rejected')
            {
              echo $this->lang->line('Rejected');
            }
            else if ($value['status']=='Missed')
            {
              echo $this->lang->line('Missed');
            }
            else if ($value['status']=='Pending')
            {
              echo $this->lang->line('Pending');
            }
          ?>
          </span>
        </center>
      </td>
      <td class="text-center">
        <?php echo $view; ?>
        <?php echo $ratingView; ?>
        <?php
          if ($value['status']=='In Preparation' || $value['status']=='Out for delivery') {
        ?>
        <!--<a href="javascript:void(0);" style="display: inline-block;" onclick="cancelOrder(<?=$value['orderid']?>, '<?=$value['status']?>');">&nbsp;&nbsp;<?php echo $this->lang->line('Cancel_Order');?> </a>-->
        <!-- <a href="javascript:void(0);" onclick="cancelOrder(<?=$value['orderid']?>, '<?=$value['status']?>');" class="btn btn-sm btn-warning btn-circle "><i class="fa fa-close"></i> Cancel Order </a> -->
        <?php
          }
        ?>
      </td>
    </tr>

    <?php }  }else{?>
          <tr>
              <td colspan="8">No record found!</td>
          </tr>

      <?php } ?>
      
    
  </tbody>
</table>

<!-- Pagination  start-->
  <div>
     <?php echo $this->ajax_pagination->create_links(); ?>
 </div>
                             <!-- Pagination  start-->
<div id="addrating" class="modal fade" role="dialog" style="margin-top: 150px;">
  <div class="modal-dialog modal-sm">
    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header btn-success">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Add Review</h4>
      </div>
      <div class="modal-body">
        <?php $validator = array('role' => 'form', 'data-toggle' => 'validator', 'id' => 'reviewForm'); echo form_open('', $validator); ?>
          <input type="hidden" name="review_orderid" id="review_orderid">
          <input type="hidden" name="review_restaurantid" id="review_restaurantid">
          <input name="review_rating" id="review_rating" value="0" type="hidden" class="rating" data-min=0 data-max=5 data-step=1 data-size="xs" title="0">
          <div class="star-ratings-sprite" style="float: left;margin-bottom: 10px;"><span style="" id="review_rating_show" class="star-ratings-sprite-rating"></span></div>
          <div class="clearfix"></div>
          <div class="form-group">
              <textarea placeholder="Write somthing...." class="form-control reviewbox" rows="5" id="review_message" name="review_message" required=""></textarea>
              <div class="help-block with-errors"></div>
          </div>
          <div class="clearfix"></div>
          <button id="reviewSubmitButton" type="submit" class="btn btn-success">Submit</button>
        </form>
      </div>
      <div class="clearfix"></div>
    </div>
  </div>
</div>
<script type="text/javascript">
  $(function() {
    $('#reviewForm').validator().on('submit', function (e) {
      if (e.isDefaultPrevented()) {
        $('#reviewForm').validator('update');
      } else {
        e.preventDefault();
        var review_orderid = $('#review_orderid').val();
        var review_rating = $('#review_rating').val();
        var review_message = $('#review_message').val();
        var review_restaurantid = $('#review_restaurantid').val();
        base_url='<?php echo base_url(); ?>';
        url= base_url+'dashboardcustomer/addReview';
        $.ajax({
          method: "POST",
          url: url,
          data: { review_orderid: review_orderid, review_rating: review_rating, review_message: review_message, review_restaurantid: review_restaurantid, csrf_token_apm: myCsrfHash },
          beforeSend: function(){
              $('#myLoader').show();
          },
          success: function(data){
            console.log(data);
            $('#addrating').modal('hide');
            $('#myLoader').hide();
            swal('', 'Thanks for review. Once it is approved by admin, it will be shown in restaurant review section.', 'success');
          }
        });
      }
    })
  })
  function openReview(orderid, restaurantid) {
    $('#review_orderid').val(orderid);
    $('#review_restaurantid').val(restaurantid);
    base_url='<?php echo base_url(); ?>';
    url= base_url+'dashboardcustomer/openReview';
    $.ajax({
      method: "POST",
      url: url,
      data: { order_id: orderid, csrf_token_apm: myCsrfHash },
      beforeSend: function(){
          $('#myLoader').show();
      },
      success: function(data){
        console.log(data);
        if (JSON.parse(data)) {
          $('#reviewSubmitButton').show();
          $('.rating-container').show();
          $('.star-ratings-sprite').hide();
          $('#review_message').val('');
          $('#review_message').removeAttr('readonly');
          $('#review_message').attr('required', true);
          var obj = JSON.parse(data);
          console.log(obj);
          if (obj['message']) {
            $('#review_message').val(obj['message']);
            $('#reviewSubmitButton').hide();
            $('.rating-container').hide();
            $('.star-ratings-sprite').show();
            $('#review_message').attr('readonly', 'readonly');
            $('#review_message').removeAttr('required');
          }
          if (obj['rating']) {
            $('#review_rating_show').css('width', obj['rating'] * 20+'%');
          }
        }
        $('#reviewForm').validator('update');
        $('#addrating').modal('show');
        $('#myLoader').hide();
      }
    });
  }
</script>
<style type="text/css">
  .label-success {
    background-color: #00960D !important;
  }
</style>

Anon7 - 2022
AnonSec Team