index.php 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. /**
  3. * FecShop file.
  4. *
  5. * @link http://www.fecshop.com/
  6. * @copyright Copyright (c) 2016 FecShop Software LLC
  7. * @license http://www.fecshop.com/license/
  8. */
  9. ?>
  10. <div class="account-ds">
  11. <div class="bar bar-nav account-top-m">
  12. <a external class="button button-link button-nav pull-left" href="<?= Yii::$service->url->getUrl('customer/account/index'); ?>">
  13. <span class="icon icon-left"></span>
  14. </a>
  15. <h1 class='title'><?= Yii::$service->page->translate->__('Customer Order'); ?></h1>
  16. </div>
  17. </div>
  18. <?= Yii::$service->page->widget->render('flashmessage'); ?>
  19. <div class="order_list">
  20. <?= Yii::$service->page->widget->render('flashmessage'); ?>
  21. <div class="col-main account_center">
  22. <div class="std">
  23. <div style="margin:4px 0 0">
  24. <table id="my-orders-table" class="edit_order">
  25. <thead>
  26. <tr class="first last">
  27. <th><?= Yii::$service->page->translate->__('Order #');?> </th>
  28. <th><?= Yii::$service->page->translate->__('Date');?></th>
  29. <th><?= Yii::$service->page->translate->__('Operation');?></th>
  30. </tr>
  31. </thead>
  32. <tbody>
  33. <?php if(is_array($order_list) && !empty($order_list)): ?>
  34. <?php foreach($order_list as $order):
  35. $currencyCode = $order['order_currency_code'];
  36. $symbol = Yii::$service->page->currency->getSymbol($currencyCode);
  37. ?>
  38. <tr class="first odd">
  39. <td>
  40. <b><?= $order['increment_id'] ?></b><br/>
  41. <span class="order-status <?= Yii::$service->page->translate->__($order['order_status']); ?>"><?= Yii::$service->page->translate->__($order['order_status']); ?></span>
  42. </td>
  43. <td><span class="nobr"><?= date('Y-m-d H:i:s',$order['created_at']) ?></span></td>
  44. <td class="a-center last">
  45. <span class="nobr"><a external href="<?= Yii::$service->url->getUrl('customer/order/view',['order_id' => $order['order_id']]);?>"><?= Yii::$service->page->translate->__('View Order');?></a>
  46. <span class="separator">|</span> <a external class="link-reorder" href="<?= Yii::$service->url->getUrl('customer/order/reorder',['order_id' => $order['order_id']]);?>"><?= Yii::$service->page->translate->__('Reorder');?></a>
  47. </span>
  48. </td>
  49. </tr>
  50. <?php endforeach; ?>
  51. <?php endif; ?>
  52. </tbody>
  53. </table>
  54. <?php if($pageToolBar): ?>
  55. <div class="pageToolbar customer_order">
  56. <label class=""><?= Yii::$service->page->translate->__('Page:');?></label>
  57. <?= $pageToolBar ?>
  58. <div class="clear"></div>
  59. </div>
  60. <?php endif; ?>
  61. </div>
  62. </div>
  63. </div>
  64. <div class="clear"></div>
  65. </div>