📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv12.demodesign.com.tr
/
panel
/
inc
📝
n11-siparisler.php
← Geri Dön
<?php if ( !empty($ayar['n11AppKey']) and !empty($ayar['n11AppSecret']) and !empty($ayar['n11Teslimat']) ) { $n11Params = array( 'appKey' => $ayar["n11AppKey"], 'appSecret' => $ayar["n11AppSecret"] ); include_once '../eklentiler/n11/N11.class.php'; $n11 = new N11($n11Params); $orderList1 = array( 'status' => 'Completed', 'buyerName' => '', 'orderNumber' => '', 'recipient' => '', 'period' => array( 'startDate' => date('d/m/Y',strtotime("-15 day")), 'endDate' => date('d/m/Y') ), 'sortForUpdateDate' => false, 'pagingData' => array( 'currentPage' => 0, 'pageSize' => 200, 'totalCount' => 200 ) ); $sorguSay = $n11->DetailedOrderList($orderList1); $liste = true; } else { $sorguSay = array(); $getn11OrderList = array(); $liste = false; } $say = count($sorguSay); $top_sayfa = $say; $page = $_GET['no']; $limit = 10; $page_url = $sayfa.'/'; $baslangic = ($page * $limit) - $limit; ?> <div class="breadcrumb-header justify-content-between"> <div class="my-auto"> <div class="d-flex"> <h4 class="content-title mb-0 my-auto">N11 Siparişler</h4><span class="text-muted mt-1 tx-13 ml-2 mb-0">/ Listele</span> </div> </div> </div> <div id="ajax_msg"></div> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-body"> <div class="row"> <div class="col-md-12"> <?php if ( $liste == true ) { ?> <div class="order-table"> <div class="table-responsive"> <table id="example1" class="table table-striped table-bordered text-nowrap mb-0"> <thead> <tr class="bold border-bottom"> <th class="border-bottom-0">ID </th> <th class="border-bottom-0">Alıcı TCKN </th> <th class="border-bottom-0">Tarih </th> <th class="border-bottom-0">Kargo </th> <th class="border-bottom-0">Ürün Adı </th> <th class="border-bottom-0">Ödeme</th> </tr> </thead> <tbody> <?php $sipSayfa = $page - 1; $orderList2 = array( 'status' => 'Completed', 'buyerName' => '', 'orderNumber' => '', 'recipient' => '', 'period' => array( 'startDate' => date('d/m/Y',strtotime("-15 day")), 'endDate' => date('d/m/Y') ), 'sortForUpdateDate' => false, 'pagingData' => array( 'currentPage' => 0, 'pageSize' => 10, 'totalCount' => 200 ) ); $getn11OrderList = $n11->DetailedOrderList($orderList2); if ( count($getn11OrderList) != 0 ) { $i=1; foreach( $getn11OrderList as $row ){ print_r($row->orderItemList); echo ' <tr> <td>'.$i.'</td> <td>'.$row->citizenshipId.'</td> <td>'.$row->createDate.'</td> <td>'.$row->orderItemList->orderItem->shipmentInfo->shipmentCompany->name.'</td> <td>'.$row->orderItemList->orderItem->productName.'</td> <td>'.fiyat($row->totalAmount).' TL</td> </tr> '; $i++; } }else{ echo '<tr><td colspan="6"><center><h2>Sipariş bulunamadı.</h2></center></td></tr>'; } ?> </tbody> </table> </div> </div> <div class="pagination-wrapper" style="margin-bottom: 10px;float: right;"> <nav aria-label="Page navigation"> <ul class="pagination mb-0"> <?php Sayfala($top_sayfa,$page,$limit,$page_url); ?> </ul> </nav> </div> <?php } else { ?> Lütfen N11 API ayarlarını yapınız. <?php }?> </div> </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