https://t.me/RX1948
Server : Apache/2.4.18 (Ubuntu)
System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64
User : oppastar ( 1041)
PHP Version : 7.0.33-0ubuntu0.16.04.15
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
Directory :  /var/www/kanvakanva.com/public_html/application/views/admin/orders/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/kanvakanva.com/public_html/application/views/admin/orders/view.php
<div class="modal-header">
    <h4></h4>
    <p style="float: right;"><a  href="<?php echo base_url('admin/orders/index'); ?>"><< Back to Orders Index</a></p>
</div>
<div class="card">
  <h6 class="card-header">
    <div class="row">
      <div class="col-sm-3">
        Order no &nbsp;: <?php echo $order->id_orders; ?>
      </div>
      <div class="col-sm-3">
        Customer &nbsp;: <?php echo $customer->name; ?>
      </div>
      <div class="col-sm-3">
        Order date &nbsp;: <?php echo date('j F Y', strtotime($order->order_date)); ?>
      </div>
      <div class="col-sm-3">
        Status &nbsp;:
        <?php switch ($order->payment_status) {
          case 1:
            echo '<span style="color:green; font-weight:bold;">Paid</span>';
            break;
          case 0:
            echo '<span style="color:brown; font-weight:bold;">Not Paid</span>';
            break;
          case 2:
            echo '<span style="color:brown; font-weight:bold;">Cancel</span>';
            break;
          case 3:
            echo '<span style="color:green; font-weight:bold;">Sent</span>';
            break;
          case 4:
            echo '<span style="color:green; font-weight:bold;">Packed</span>';
            break;
        } ?>
      </div>
    </div>
  </h6>
  <div class="card-body">
    <table class='table'>
        <thead>
            <tr>
                <th>Product</th>
                <th></th>
                <th style="width:30%">Address</th>
                <th>Disc<br>(Redeem Poin)</th>
                <th>Courier</th>
                <th>Total Price</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>
                  <table class="table">
                    <?php foreach ($order_details as $detail) : ?>
                      <tr>
                        <td>
                        <?php
                          //get image
                          $image = $this->db->select('image1')->from('products')->where('id_products', $detail->item_id)->get()->row()->image1;
                        ?>
                        <img src="<?= base_url() . 'uploads/product/thumbnail/' . $image; ?>" alr="product" />
                        </td>
                        <td>
                          <strong><?= $detail->item_name; ?></strong>
                          <br>
                          <?php
                          //get id product size
                          $id_product_size = $this->db->select('id_product_size')->from('product_size')->where('product_size', $detail->size)->get()->row()->id_product_size;

                          //get weight
                          $weight = $this->db->select('weight')->from('stocks')->where('product_id', $detail->item_id)->where('size_id', $id_product_size)->get()->row()->weight;
                          ?>
                          <?= $detail->quantity;?> item (<?=  $weight * $detail->quantity / 1000;?> Kg) @ Rp. <?= number_format($detail->item_price);?>
                        </td>
                      </tr>
                    <?php endforeach; ?>
                    <tr>
                       <td colspan='2'>
                        <hr>
                        <strong>Customer Note:</strong>
                        <br>
                        <?php if(!empty($order->customer_note)) : ?>
                          <?= $order->customer_note; ?>
                        <?php else : ?>
                          None
                        <?php endif; ?>
                       </td>
                    </tr>
                  </table>
                </td>
                <td></td>
                <td>
                  <?= ucwords($order->recipient_name); ?><br>
                  <?= $order->address; ?><br>
                  <?php if(!empty($order->subdistrict)) : ?>
                    <?= $order->subdistrict . ' '; ?>
                  <?php endif; ?>
                  <?= $order->district . ' '; ?>. <?= $order->province; ?>
                  <br>
                  Postcode: <?= $order->postcode; ?>
                  <br>
                  Hp: <?= $order->phone; ?>
                </td>
                <td>
                  Rp <?= number_format($order->discount_redeem); ?>
                </td>
                <td>
                  <?= $order->shipping_type; ?><br>
                  Rp <?= number_format($order->shipping_fee); ?>
                </td>
                <td><strong>Rp <?= number_format($order->total_amount); ?></strong></td>
            </tr>
        </tbody>
    </table>
  </div>
</div>

<?= $this->session->flashdata('success')
//to display success message
?>
<?= $this->session->flashdata('result')
//to display result message
?>

<div class="modal-body" style="max-height:5000px;">

    <table class="table">
    <tr>
    <?= form_open() ?>
        <td>Change Order Status</td>
        <td>
	        <?php
         $options = [
           0 => 'Not Paid',
           1 => 'Paid',
           2 => 'Cancel',
           4 => 'Packed',
           3 => 'Product Sent',
         ];

         echo form_dropdown(
           'payment_status',
           $options,
           $order->payment_status,
           'class="form-control"'
         );
         ?>

            <?php if (
              $order->payment_status == 0 ||
              $order->payment_status == 1
            ): ?>
                <br>Paid Date:<br>
                <?php if ($order->payment_date == null) {
                  echo form_input(
                    'payment_date',
                    '',
                    'class="datepicker form-control"'
                  );
                } else {
                  $payment_date = date(
                    'd-m-Y',
                    strtotime($order->payment_date)
                  );
                  echo form_input(
                    'payment_date',
                    set_value('payment_date', $payment_date),
                    'class="datepicker form-control"'
                  );
                } ?>
            <?php endif; ?>

            <?php 
            $no_resi = 1;
            $r_resi = explode(';',$order->no_resi);
            if (
              $order->payment_status == 3 || $order->payment_status == 4
            ): ?>

                <?php 
                  $split_brand = explode(';',$order->list_brand);
                  if($order->list_brand != '' && count($split_brand) > 1) : 
                  
                  $cresi = 0;
                  foreach ($split_brand as $res) :
                    if(count($r_resi) == 1){
                      $val_resi = '';
                    }else{
                      $val_resi = $r_resi[$cresi];
                    }
                ?>  
                  <br>No Resi Untuk <?=$res?> (<?= ucfirst($order->shipping_type) ?>)<br>
                    <?php echo form_input('no_resi_'.$no_resi, $val_resi); ?>
                <?php 
                  $no_resi++;
                  $cresi++;
                  endforeach; 
                  $no_resi = $no_resi - 1;
                ?>

                <?php else: ?>
                  <br>No Resi untuk <?= ucfirst($order->shipping_type) ?><br>
                  <?php echo form_input('no_resi', $order->no_resi); ?>
                <?php endif; ?>
                <br>

                <?php
                    $data = array( 
                    'name'        => 'jml_resi',
                    'id'          => 'jml_resi',
                    'value'       => $no_resi,
                    'type'   => 'hidden',
                    );

                    echo form_input($data);

                    $data = array( 
                      'name'        => 'list_brand',
                      'id'          => 'list_brand',
                      'value'       => $order->list_brand,
                      'type'   => 'hidden',
                      );
  
                      echo form_input($data);
                ?>

            <?php endif; ?>
            
             <br>
             <?= form_submit(
               'update',
               'UPDATE ORDER STATUS',
               'class="btn btn-primary btn-success"'
             ) ?>

        </td>
      <?= form_close() ?>

     </tr>

    <?php if ($order->payment_type == 'bank transfer'): ?>
    	<tr>
            <td>Payment Type</td>
            <td>Bank Transfer (BCA)</td>
    	</tr>
    <?php endif; ?>
    <tr>
        <td>Order ID (For Bank Payment Confirmation)</td>
        <td><?= $order->payment_confirmation_string ?></td>
    </tr>

    <tr>
    <td>Shipping Type</td>
    <td><?= ucfirst($order->shipping_type) ?></td>
    </tr>

    <?php if ($order->payment_type == 'paypal'): ?>
    <tr>
	<td>Payment Type</td>
	<td>Paypal</td>
	</tr>

     <?php endif; ?>

    <tr>
            <td>CUSTOMER CONTACT</td>
            <td>
                <p>
                Name: <?php echo ucwords($customer->name); ?><br>
                Email: <?php echo $customer->email; ?><br>
                </p>
            </td>
     </tr>

      <tr>
            <td>CUSTOMER NOTE</td>
            <td>
                <?php if (empty($order->customer_note)): ?>
                    -
                <?php else: ?>
                    <?= $order->customer_note ?>
                <?php endif; ?>
            </td>
     </tr>

     <tr>
            <td>SHIPPING DETAILS</td>
            <td>
            	<p>
            	Recipient: <?php echo ucwords($order->recipient_name); ?><br>
            	<?php echo ucwords($order->address); ?><br>
            	<?php echo ucwords($order->district); ?><br>
                <?php echo ucwords($order->province) .
                  ' ' .
                  $order->postcode; ?><br>

            	<?php echo 'Country: ' .
               $order->country .
               ' '; ?> <a style="text-decoration: underline;" href="http://en.wikipedia.org/wiki/ISO_3166-1_alpha-3" target="_blank">Check ISO country code</a><br>
            	<?php echo 'Phone: ' . $order->phone; ?><br>
            	</p>
            </td>
     </tr>

    <tr>
            <td colspan="2">
            <p>ORDER DETAILS</p>

         	<table class="table" style="border: 1px solid black">
	         	<tr>
		         	<th style="border: 1px solid black">Item Name</th>
		         	<th style="border: 1px solid black">Price</th>
		         	<th style="border: 1px solid black">Quantity</th>
		         	<th style="border: 1px solid black">Sub Total</th>
	         	</tr>

                <?php $total_products = 0; ?>
         		<?php foreach ($order_details as $item): ?>
         		<tr>
         			<td style="border: 1px solid black">
                  <?php echo ucwords($item->item_name); ?>

                    <?php if ($item->voucher_email != null): ?>
                      <br><br>
                      <p>Gift Card Email: <?= $item->voucher_email ?><br>
                      <p>Gift Card Message: <?= $item->voucher_message ?></p>

                      <?php if (
                        $order->payment_status == 1 ||
                        $order->payment_status == 3
                      ): ?>
                          <?php if ($item->voucher_sent == 'no'): ?>
                            <?= form_open(
                              'admin/orders/send_giftcard/' .
                                $item->id_orders_detail
                            ) ?>
                            <p>Gift Card Code : <input required type="text" name="giftcode" value="<?= $item->voucher_code ?>" placeholder="Enter Voucher Code"></p>
                            <p><input type="submit" class="btn btn-primary" value="SEND GIFTCARD" name="sendgiftcard"></p>
                            <?= form_close() ?>
                          <?php else: ?>
                            <p>Gift Card code <?= $item->voucher_code ?> already sent.</p>
                          <?php endif; ?>
                      <?php endif; ?>
                    <?php endif; ?>

                    </td>
         			<td style="border: 1px solid black">IDR
                    <?php echo number_format($item->item_price); ?></td>
         			<td style="border: 1px solid black"><?= $item->quantity ?></td>
         			<td style="border: 1px solid black">
                    <?php echo number_format($item->subtotal); ?></td>
         		</tr>
                 <?php $total_products = $total_products + $item->subtotal; ?>
         		<?php endforeach; ?>
         	</table>

           </td>

     </tr>

    <tr>
        <td>PRODUCT TOTAL</td>
        <td>IDR <?= number_format($total_products) ?></td>
    </tr>
    <tr>
        <td>DISC (REDEEM POIN)</td>
        <td>IDR <?= number_format($order->discount_redeem) ?></td>
    </tr>
    <tr>
        <td>SHIPPING : <?= ucfirst($order->shipping_type) ?></td>
        <td>IDR <?= number_format($order->shipping_fee) ?></td>
    </tr>
    <?php if (!is_null($order->redeemed_voucher_code)): ?>
        <tr>
            <?php
            //get voucher detail
            $this->db
              ->select('*')
              ->from('vouchers')
              ->where('voucher_code', $order->redeemed_voucher_code);
            $voucher_detail = $this->db->get()->row();
            ?>


            <td>
                VOUCHER CODE: <?= strtoupper($order->redeemed_voucher_code) ?>
            </td>
            <td>
                <?php if ($voucher_detail->discount_type == 'percentage'): ?>
                    <?= number_format($voucher_detail->discount_value) ?> %.
                <?php endif; ?>
                IDR <?= number_format(
                  $order->total_amount - $total_products - $order->shipping_fee
                ) ?>
            </td>
        </tr>
    <?php endif; ?>
    <tr>
     	<td style="font-weight: bold;">GRAND TOTAL</td>
 		<td style="font-weight: bold;">IDR <?php echo number_format(
     $order->total_amount
   ); ?>
 		</td>
	</tr>
    <?php if ($order->payment_confirm_details): ?>
        <tr>
            <td><br>PAYMENT CONFIRMATION</td>
            <td><br><?= $order->payment_confirm_details ?>
        </tr>
    <?php endif; ?>

    </table>

</div>

https://t.me/RX1948 - 2025