📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv9.demodesign.com.tr
/
adminco
/
inc
📝
orders.php
← Geri Dön
<?php if(!defined('ADMIN_INCLUDED')) { exit; } ?> <?php switch(m_a_g('status')) { case '0': $title = LGA_ORDERS_PENDING_APPROVAL; break; case '1': $title = LG_ORDERS_PENDING_PAYMENT; break; case '2': $title = LGA_ORDERS_PREPARE; break; case '3': $title = LGA_ORDERS_SHIPPED; break; case '4': $title = LGA_ORDERS_DELIVERED; break; case '5': $title = LGA_ORDERS_REFUND; break; case '6': $title = LGA_ORDERS_CANCELED; break; default: $title = LGA_ALL_ORDERS; break; } if(m_a_g('status')=='') { $informations = $db->table('orders')->order('id','desc')->get(); } else { $informations = $db->table('orders')->where('status','=',m_a_g('status'))->order('id','desc')->get(); } ?> <div class="container-fluid"> <div class="row"> <div class="col-12"> <div class="page-title-box d-sm-flex align-items-center justify-content-between"> <a href="<?php echo ADMIN_URL; ?>/index.php?page=orders"><h4 class="mb-sm-0 font-size-18"><?php echo LGA_ORDERS; ?></h4></a> <div class="page-title-right"> <ol class="breadcrumb m-0"> <li class="breadcrumb-item"><a href="<?php echo ADMIN_URL; ?>"><?php echo LGA_HOME; ?></a></li> <li class="breadcrumb-item active"><?php echo LGA_ORDERS; ?></li> </ol> </div> </div> </div> </div> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-header"> <h4 class="card-title"><?php echo LGA_ORDER_LIST; ?> - <?php echo $title; ?></h4> </div> <div class="card-body"> <form action="https://sihirlihali.com/includes/modules/PHPExcel/excel.php" action="get"> <div class="row"> <div class="form-group col-md-2 mb-2"> <label>İlk Tarih</label> <input class="form-control" name="ilktarih" type="date"> </div> <div class="form-group col-md-2 mb-2"> <label>Son Tarih</label> <input class="form-control" name="sontarih" type="date"> </div> <div class="form-group col-md-2 mb-2"> <label>Kategori</label> <select name="kategori" class="form-select"> <option value="-1">Tüm Kategoriler</option> <?php $categories = $db->table('categories')->where('c_id','=',0)->where('status','=','1')->order('title','asc')->get(); foreach($categories['data'] as $category) { ?> <option value="<?= $category['id']?>"><?= $category['title']?></option> <?php } ?> </select> </div> <div class="form-group col-md-2 mb-2"> <label>Oluştur</label> <button type="submit" class="btn btn-success mb-4 d-block"><i class="fa fa-file-excel" style="font-size:16px;"></i> Raporları İndir</button> </div> </div> </form> <table id="datatable_export" class="table table-bordered dt-responsive nowrap w-100" data-title="<?php echo LGA_ORDER_LIST; ?> - <?php echo $title; ?>"> <thead> <tr> <th style="width: 10%;"><div class="form-group"> <div class="row"> <div class="col-md-2"> <input type="checkbox" id="tablo_sec_all"> </div> <div class="col-md-10" id="toplu_islem_col" style="display: none"> <select name="" class="form-control" id="toplu_islem" data-type="orders-toplu"> <option value="-1">Toplu İşlemler</option> <option value="1">Sil</option> </select> </div> </div> </div></th> <th>#</th> <th><?php echo LGA_CUSTOMER; ?></th> <th class="text-center"><?php echo LGA_PRODUCT_COUNT; ?></th> <th class="text-center"><?php echo LGA_TOTAL; ?></th> <th class="text-center"><?php echo LGA_PAYMENT_TYPE; ?></th> <th class="text-center"><?php echo LGA_STATUS; ?></th> <th class="text-center"><?php echo LGA_DATE; ?></th> <th class="text-end"><?php echo LGA_ACTIONS; ?></th> </tr> </thead> <tbody> <?php if($informations['total_count']>0) { foreach($informations['data'] as $info) { $order_products_count = $db->table('order_products')->where('o_id','=',$info['id'])->count(); if($info['customer']=='0') { $customer = $info['cargo_name'].' '.$info['cargo_lastname']; } else { $customer = m_user('name',$info['customer']).' '.m_user('lastname',$info['customer']); } echo ' <tr> <td><input type="checkbox" id="product_id_checkbox" value=" '.$info['id'].'"</td> <td>'.$info['id'].'</td> <td>'.$customer.'</td> <td class="text-center" data-order="'.$order_products_count.'"><span class="btn btn-light waves-effect btn-label waves-light" style="width:100px"><i class="fa fa-shopping-cart label-icon text-primary"></i> '.$order_products_count.'</span></td> <td class="text-center" data-order="'.m_remove_dot($info['total']).'">'.m_currency($info['total']).' '.currency_types(m_setting('currency_type'),'value').'</td> <td class="text-center">'.m_payment_type($info['payment_type']).'</td> <td class="text-center" data-order="'.$info['status'].'">'.m_order_status($info['status']).'</td> <td class="text-center" data-order="'.strtotime($info['date']).'">'.m_date_to_tr($info['date']).'</td> <td class="text-end"> <a href="'.ADMIN_URL.'/index.php?page=order_edit&id='.$info['id'].'"><span class="btn btn-sm btn-soft-primary"><i class="fa fa-edit"></i></span></a> <a class="delete" data-question="'.LGA_DELETE_QUESTION.'" href="'.ADMIN_URL.'/index.php?page=delete&table=orders&id='.$info['id'].'"><span class="btn btn-sm btn-soft-danger"><i class="fa fa-trash"></i></span></a> </td> </tr>'; } } ?> </tbody> </table> </div> </div> </div> </div> </div>
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula