PageRenderTime 47ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/tools/smarty_v2/compile/%%3C^3C8^3C8E8BC5%%history.tpl.php

http://marocmall.googlecode.com/
PHP | 127 lines | 122 code | 5 blank | 0 comment | 23 complexity | 8863d5f58499d52da49943be19db21ef MD5 | raw file
Possible License(s): LGPL-2.1
  1. <?php /* Smarty version 2.6.20, created on 2011-12-03 00:33:28
  2. compiled from C:%5CD%5CMarocMall/themes/prestashop/history.tpl */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('function', 'l', 'C:\\D\\MarocMall/themes/prestashop/history.tpl', 27, false),array('function', 'dateFormat', 'C:\\D\\MarocMall/themes/prestashop/history.tpl', 57, false),array('function', 'displayPrice', 'C:\\D\\MarocMall/themes/prestashop/history.tpl', 58, false),array('modifier', 'intval', 'C:\\D\\MarocMall/themes/prestashop/history.tpl', 55, false),array('modifier', 'string_format', 'C:\\D\\MarocMall/themes/prestashop/history.tpl', 55, false),array('modifier', 'escape', 'C:\\D\\MarocMall/themes/prestashop/history.tpl', 59, false),)), $this); ?>
  5. <?php ob_start(); ?><a href="<?php echo $this->_tpl_vars['link']->getPageLink('my-account.php',true); ?>
  6. "><?php echo smartyTranslate(array('s' => 'My account'), $this);?>
  7. </a><span class="navigation-pipe"><?php echo $this->_tpl_vars['navigationPipe']; ?>
  8. </span><?php echo smartyTranslate(array('s' => 'Order history'), $this);?>
  9. <?php $this->_smarty_vars['capture']['path'] = ob_get_contents(); ob_end_clean(); ?>
  10. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  11. $this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./breadcrumb.tpl", 'smarty_include_vars' => array()));
  12. $this->_tpl_vars = $_smarty_tpl_vars;
  13. unset($_smarty_tpl_vars);
  14. ?>
  15. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  16. $this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./errors.tpl", 'smarty_include_vars' => array()));
  17. $this->_tpl_vars = $_smarty_tpl_vars;
  18. unset($_smarty_tpl_vars);
  19. ?>
  20. <h1><?php echo smartyTranslate(array('s' => 'Order history'), $this);?>
  21. </h1>
  22. <p><?php echo smartyTranslate(array('s' => 'Here are the orders you have placed since the creation of your account'), $this);?>
  23. .</p>
  24. <?php if ($this->_tpl_vars['slowValidation']): ?><p class="warning"><?php echo smartyTranslate(array('s' => 'If you have just placed an order, it may take a few minutes for it to be validated. Please refresh the page if your order is missing.'), $this);?>
  25. </p><?php endif; ?>
  26. <div class="block-center" id="block-history">
  27. <?php if ($this->_tpl_vars['orders'] && count ( $this->_tpl_vars['orders'] )): ?>
  28. <table id="order-list" class="std">
  29. <thead>
  30. <tr>
  31. <th class="first_item"><?php echo smartyTranslate(array('s' => 'Order'), $this);?>
  32. </th>
  33. <th class="item"><?php echo smartyTranslate(array('s' => 'Date'), $this);?>
  34. </th>
  35. <th class="item"><?php echo smartyTranslate(array('s' => 'Total price'), $this);?>
  36. </th>
  37. <th class="item"><?php echo smartyTranslate(array('s' => 'Payment'), $this);?>
  38. </th>
  39. <th class="item"><?php echo smartyTranslate(array('s' => 'Status'), $this);?>
  40. </th>
  41. <th class="item"><?php echo smartyTranslate(array('s' => 'Invoice'), $this);?>
  42. </th>
  43. <th class="last_item" style="width:65px">&nbsp;</th>
  44. </tr>
  45. </thead>
  46. <tbody>
  47. <?php $_from = $this->_tpl_vars['orders']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['myLoop'] = array('total' => count($_from), 'iteration' => 0);
  48. if ($this->_foreach['myLoop']['total'] > 0):
  49. foreach ($_from as $this->_tpl_vars['order']):
  50. $this->_foreach['myLoop']['iteration']++;
  51. ?>
  52. <tr class="<?php if (($this->_foreach['myLoop']['iteration'] <= 1)): ?>first_item<?php elseif (($this->_foreach['myLoop']['iteration'] == $this->_foreach['myLoop']['total'])): ?>last_item<?php else: ?>item<?php endif; ?> <?php if (($this->_foreach['myLoop']['iteration']-1) % 2): ?>alternate_item<?php endif; ?>">
  53. <td class="history_link bold">
  54. <?php if (isset ( $this->_tpl_vars['order']['invoice'] ) && $this->_tpl_vars['order']['invoice'] && isset ( $this->_tpl_vars['order']['virtual'] ) && $this->_tpl_vars['order']['virtual']): ?><img src="<?php echo $this->_tpl_vars['img_dir']; ?>
  55. icon/download_product.gif" class="icon" alt="<?php echo smartyTranslate(array('s' => 'Products to download'), $this);?>
  56. " title="<?php echo smartyTranslate(array('s' => 'Products to download'), $this);?>
  57. " /><?php endif; ?>
  58. <a class="color-myaccount" href="javascript:showOrder(1, <?php echo ((is_array($_tmp=$this->_tpl_vars['order']['id_order'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
  59. , 'order-detail');"><?php echo smartyTranslate(array('s' => '#'), $this);?>
  60. <?php echo ((is_array($_tmp=$this->_tpl_vars['order']['id_order'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%06d") : smarty_modifier_string_format($_tmp, "%06d")); ?>
  61. </a>
  62. </td>
  63. <td class="history_date bold"><?php echo Tools::dateFormat(array('date' => $this->_tpl_vars['order']['date_add'],'full' => 0), $this);?>
  64. </td>
  65. <td class="history_price"><span class="price"><?php echo Tools::displayPriceSmarty(array('price' => $this->_tpl_vars['order']['total_paid_real'],'currency' => $this->_tpl_vars['order']['id_currency'],'no_utf8' => false,'convert' => false), $this);?>
  66. </span></td>
  67. <td class="history_method"><?php echo ((is_array($_tmp=$this->_tpl_vars['order']['payment'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  68. </td>
  69. <td class="history_state"><?php if (isset ( $this->_tpl_vars['order']['order_state'] )): ?><?php echo ((is_array($_tmp=$this->_tpl_vars['order']['order_state'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  70. <?php endif; ?></td>
  71. <td class="history_invoice">
  72. <?php if (( isset ( $this->_tpl_vars['order']['invoice'] ) && $this->_tpl_vars['order']['invoice'] && isset ( $this->_tpl_vars['order']['invoice_number'] ) && $this->_tpl_vars['order']['invoice_number'] ) && isset ( $this->_tpl_vars['invoiceAllowed'] ) && $this->_tpl_vars['invoiceAllowed'] == true): ?>
  73. <a href="<?php echo $this->_tpl_vars['link']->getPageLink('pdf-invoice.php',true); ?>
  74. ?id_order=<?php echo ((is_array($_tmp=$this->_tpl_vars['order']['id_order'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
  75. " title="<?php echo smartyTranslate(array('s' => 'Invoice'), $this);?>
  76. "><img src="<?php echo $this->_tpl_vars['img_dir']; ?>
  77. icon/pdf.gif" alt="<?php echo smartyTranslate(array('s' => 'Invoice'), $this);?>
  78. " class="icon" /></a>
  79. <a href="<?php echo $this->_tpl_vars['link']->getPageLink('pdf-invoice.php',true); ?>
  80. ?id_order=<?php echo ((is_array($_tmp=$this->_tpl_vars['order']['id_order'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
  81. " title="<?php echo smartyTranslate(array('s' => 'Invoice'), $this);?>
  82. "><?php echo smartyTranslate(array('s' => 'PDF'), $this);?>
  83. </a>
  84. <?php else: ?>-<?php endif; ?>
  85. </td>
  86. <td class="history_detail">
  87. <a class="color-myaccount" href="javascript:showOrder(1, <?php echo ((is_array($_tmp=$this->_tpl_vars['order']['id_order'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
  88. , 'order-detail');"><?php echo smartyTranslate(array('s' => 'details'), $this);?>
  89. </a>
  90. <a href="<?php if (isset ( $this->_tpl_vars['opc'] ) && $this->_tpl_vars['opc']): ?><?php echo $this->_tpl_vars['link']->getPageLink('order-opc.php',true); ?>
  91. <?php else: ?><?php echo $this->_tpl_vars['link']->getPageLink('order.php',true); ?>
  92. <?php endif; ?>?submitReorder&id_order=<?php echo ((is_array($_tmp=$this->_tpl_vars['order']['id_order'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
  93. " title="<?php echo smartyTranslate(array('s' => 'Reorder'), $this);?>
  94. ">
  95. <img src="<?php echo $this->_tpl_vars['img_dir']; ?>
  96. arrow_rotate_anticlockwise.png" alt="<?php echo smartyTranslate(array('s' => 'Reorder'), $this);?>
  97. " title="<?php echo smartyTranslate(array('s' => 'Reorder'), $this);?>
  98. " class="icon" />
  99. </a>
  100. </td>
  101. </tr>
  102. <?php endforeach; endif; unset($_from); ?>
  103. </tbody>
  104. </table>
  105. <div id="block-order-detail" class="hidden">&nbsp;</div>
  106. <?php else: ?>
  107. <p class="warning"><?php echo smartyTranslate(array('s' => 'You have not placed any orders.'), $this);?>
  108. </p>
  109. <?php endif; ?>
  110. </div>
  111. <ul class="footer_links">
  112. <li><a href="<?php echo $this->_tpl_vars['link']->getPageLink('my-account.php',true); ?>
  113. "><img src="<?php echo $this->_tpl_vars['img_dir']; ?>
  114. icon/my-account.gif" alt="" class="icon" /></a><a href="<?php echo $this->_tpl_vars['link']->getPageLink('my-account.php',true); ?>
  115. "><?php echo smartyTranslate(array('s' => 'Back to Your Account'), $this);?>
  116. </a></li>
  117. <li><a href="<?php echo $this->_tpl_vars['base_dir']; ?>
  118. "><img src="<?php echo $this->_tpl_vars['img_dir']; ?>
  119. icon/home.gif" alt="" class="icon" /></a><a href="<?php echo $this->_tpl_vars['base_dir']; ?>
  120. "><?php echo smartyTranslate(array('s' => 'Home'), $this);?>
  121. </a></li>
  122. </ul>