PageRenderTime 51ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/prestashop/_/cache/smarty/compile/f4/1b/ab/f41babb4f2c3a39eeca91d858dad5a0a24e472b1.file.history.tpl.php

https://gitlab.com/A.Julien/sendstockbymail-module-prestashop
PHP | 208 lines | 199 code | 9 blank | 0 comment | 25 complexity | 62f3d6698d348e3370251400b36fd9c8 MD5 | raw file
  1. <?php /* Smarty version Smarty-3.1.19, created on 2016-08-29 22:06:34
  2. compiled from "C:\xampp\htdocs\prestashop\prestashop\_\themes\default-bootstrap\history.tpl" */ ?>
  3. <?php /*%%SmartyHeaderCode:900757c495caead7a2-39325060%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_valid = $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. 'f41babb4f2c3a39eeca91d858dad5a0a24e472b1' =>
  8. array (
  9. 0 => 'C:\\xampp\\htdocs\\prestashop\\prestashop\\_\\themes\\default-bootstrap\\history.tpl',
  10. 1 => 1472500915,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '900757c495caead7a2-39325060',
  15. 'function' =>
  16. array (
  17. ),
  18. 'variables' =>
  19. array (
  20. 'link' => 0,
  21. 'navigationPipe' => 0,
  22. 'slowValidation' => 0,
  23. 'orders' => 0,
  24. 'order' => 0,
  25. 'img_dir' => 0,
  26. 'invoiceAllowed' => 0,
  27. 'opc' => 0,
  28. 'reorderingAllowed' => 0,
  29. 'base_dir' => 0,
  30. ),
  31. 'has_nocache_code' => false,
  32. 'version' => 'Smarty-3.1.19',
  33. 'unifunc' => 'content_57c495cb3f2e57_05256894',
  34. ),false); /*/%%SmartyHeaderCode%%*/?>
  35. <?php if ($_valid && !is_callable('content_57c495cb3f2e57_05256894')) {function content_57c495cb3f2e57_05256894($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_regex_replace')) include 'C:\\xampp\\htdocs\\prestashop\\prestashop\\_\\tools\\smarty\\plugins\\modifier.regex_replace.php';
  36. ?>
  37. <?php $_smarty_tpl->_capture_stack[0][] = array('path', null, null); ob_start(); ?>
  38. <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('my-account',true), ENT_QUOTES, 'UTF-8', true);?>
  39. ">
  40. <?php echo smartyTranslate(array('s'=>'My account'),$_smarty_tpl);?>
  41. </a>
  42. <span class="navigation-pipe"><?php echo $_smarty_tpl->tpl_vars['navigationPipe']->value;?>
  43. </span>
  44. <span class="navigation_page"><?php echo smartyTranslate(array('s'=>'Order history'),$_smarty_tpl);?>
  45. </span>
  46. <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
  47. if (!empty($_capture_buffer)) {
  48. if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
  49. if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
  50. Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
  51. } else $_smarty_tpl->capture_error();?>
  52. <?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['tpl_dir']->value)."./errors.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
  53. <h1 class="page-heading bottom-indent"><?php echo smartyTranslate(array('s'=>'Order history'),$_smarty_tpl);?>
  54. </h1>
  55. <p class="info-title"><?php echo smartyTranslate(array('s'=>'Here are the orders you\'ve placed since your account was created.'),$_smarty_tpl);?>
  56. </p>
  57. <?php if ($_smarty_tpl->tpl_vars['slowValidation']->value) {?>
  58. <p class="alert alert-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 this page if your order is missing.'),$_smarty_tpl);?>
  59. </p>
  60. <?php }?>
  61. <div class="block-center" id="block-history">
  62. <?php if ($_smarty_tpl->tpl_vars['orders']->value&&count($_smarty_tpl->tpl_vars['orders']->value)) {?>
  63. <table id="order-list" class="table table-bordered footab">
  64. <thead>
  65. <tr>
  66. <th class="first_item" data-sort-ignore="true"><?php echo smartyTranslate(array('s'=>'Order reference'),$_smarty_tpl);?>
  67. </th>
  68. <th class="item"><?php echo smartyTranslate(array('s'=>'Date'),$_smarty_tpl);?>
  69. </th>
  70. <th data-hide="phone" class="item"><?php echo smartyTranslate(array('s'=>'Total price'),$_smarty_tpl);?>
  71. </th>
  72. <th data-sort-ignore="true" data-hide="phone,tablet" class="item"><?php echo smartyTranslate(array('s'=>'Payment'),$_smarty_tpl);?>
  73. </th>
  74. <th class="item"><?php echo smartyTranslate(array('s'=>'Status'),$_smarty_tpl);?>
  75. </th>
  76. <th data-sort-ignore="true" data-hide="phone,tablet" class="item"><?php echo smartyTranslate(array('s'=>'Invoice'),$_smarty_tpl);?>
  77. </th>
  78. <th data-sort-ignore="true" data-hide="phone,tablet" class="last_item">&nbsp;</th>
  79. </tr>
  80. </thead>
  81. <tbody>
  82. <?php $_smarty_tpl->tpl_vars['order'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['order']->_loop = false;
  83. $_from = $_smarty_tpl->tpl_vars['orders']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  84. $_smarty_tpl->tpl_vars['order']->total= $_smarty_tpl->_count($_from);
  85. $_smarty_tpl->tpl_vars['order']->iteration=0;
  86. $_smarty_tpl->tpl_vars['order']->index=-1;
  87. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['index']=-1;
  88. foreach ($_from as $_smarty_tpl->tpl_vars['order']->key => $_smarty_tpl->tpl_vars['order']->value) {
  89. $_smarty_tpl->tpl_vars['order']->_loop = true;
  90. $_smarty_tpl->tpl_vars['order']->iteration++;
  91. $_smarty_tpl->tpl_vars['order']->index++;
  92. $_smarty_tpl->tpl_vars['order']->first = $_smarty_tpl->tpl_vars['order']->index === 0;
  93. $_smarty_tpl->tpl_vars['order']->last = $_smarty_tpl->tpl_vars['order']->iteration === $_smarty_tpl->tpl_vars['order']->total;
  94. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['first'] = $_smarty_tpl->tpl_vars['order']->first;
  95. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['index']++;
  96. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['last'] = $_smarty_tpl->tpl_vars['order']->last;
  97. ?>
  98. <tr class="<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['first']) {?>first_item<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['last']) {?>last_item<?php } else { ?>item<?php }?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['index']%2) {?>alternate_item<?php }?>">
  99. <td class="history_link bold">
  100. <?php if (isset($_smarty_tpl->tpl_vars['order']->value['invoice'])&&$_smarty_tpl->tpl_vars['order']->value['invoice']&&isset($_smarty_tpl->tpl_vars['order']->value['virtual'])&&$_smarty_tpl->tpl_vars['order']->value['virtual']) {?>
  101. <img class="icon" src="<?php echo $_smarty_tpl->tpl_vars['img_dir']->value;?>
  102. icon/download_product.gif" alt="<?php echo smartyTranslate(array('s'=>'Products to download'),$_smarty_tpl);?>
  103. " title="<?php echo smartyTranslate(array('s'=>'Products to download'),$_smarty_tpl);?>
  104. " />
  105. <?php }?>
  106. <a class="color-myaccount" href="javascript:showOrder(1, <?php echo intval($_smarty_tpl->tpl_vars['order']->value['id_order']);?>
  107. , '<?php ob_start();?><?php echo intval($_smarty_tpl->tpl_vars['order']->value['id_order']);?>
  108. <?php $_tmp5=ob_get_clean();?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('order-detail',true,null,"id_order=".$_tmp5), ENT_QUOTES, 'UTF-8', true);?>
  109. ');">
  110. <?php echo Order::getUniqReferenceOf($_smarty_tpl->tpl_vars['order']->value['id_order']);?>
  111. </a>
  112. </td>
  113. <td data-value="<?php echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['order']->value['date_add'],"/[\-\:\ ]/",'');?>
  114. " class="history_date bold">
  115. <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date'=>$_smarty_tpl->tpl_vars['order']->value['date_add'],'full'=>0),$_smarty_tpl);?>
  116. </td>
  117. <td class="history_price" data-value="<?php echo $_smarty_tpl->tpl_vars['order']->value['total_paid'];?>
  118. ">
  119. <span class="price">
  120. <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price'=>$_smarty_tpl->tpl_vars['order']->value['total_paid'],'currency'=>$_smarty_tpl->tpl_vars['order']->value['id_currency'],'no_utf8'=>false,'convert'=>false),$_smarty_tpl);?>
  121. </span>
  122. </td>
  123. <td class="history_method"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order']->value['payment'], ENT_QUOTES, 'UTF-8', true);?>
  124. </td>
  125. <td<?php if (isset($_smarty_tpl->tpl_vars['order']->value['order_state'])) {?> data-value="<?php echo $_smarty_tpl->tpl_vars['order']->value['id_order_state'];?>
  126. "<?php }?> class="history_state">
  127. <?php if (isset($_smarty_tpl->tpl_vars['order']->value['order_state'])) {?>
  128. <span class="label<?php if (isset($_smarty_tpl->tpl_vars['order']->value['order_state_color'])&&Tools::getBrightness($_smarty_tpl->tpl_vars['order']->value['order_state_color'])>128) {?> dark<?php }?>"<?php if (isset($_smarty_tpl->tpl_vars['order']->value['order_state_color'])&&$_smarty_tpl->tpl_vars['order']->value['order_state_color']) {?> style="background-color:<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order']->value['order_state_color'], ENT_QUOTES, 'UTF-8', true);?>
  129. ; border-color:<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order']->value['order_state_color'], ENT_QUOTES, 'UTF-8', true);?>
  130. ;"<?php }?>>
  131. <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order']->value['order_state'], ENT_QUOTES, 'UTF-8', true);?>
  132. </span>
  133. <?php }?>
  134. </td>
  135. <td class="history_invoice">
  136. <?php if ((isset($_smarty_tpl->tpl_vars['order']->value['invoice'])&&$_smarty_tpl->tpl_vars['order']->value['invoice']&&isset($_smarty_tpl->tpl_vars['order']->value['invoice_number'])&&$_smarty_tpl->tpl_vars['order']->value['invoice_number'])&&isset($_smarty_tpl->tpl_vars['invoiceAllowed']->value)&&$_smarty_tpl->tpl_vars['invoiceAllowed']->value==true) {?>
  137. <a class="link-button" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('pdf-invoice',true,null,"id_order=".((string)$_smarty_tpl->tpl_vars['order']->value['id_order'])), ENT_QUOTES, 'UTF-8', true);?>
  138. " title="<?php echo smartyTranslate(array('s'=>'Invoice'),$_smarty_tpl);?>
  139. " target="_blank">
  140. <i class="icon-file-text large"></i><?php echo smartyTranslate(array('s'=>'PDF'),$_smarty_tpl);?>
  141. </a>
  142. <?php } else { ?>
  143. -
  144. <?php }?>
  145. </td>
  146. <td class="history_detail">
  147. <a class="btn btn-default button button-small" href="javascript:showOrder(1, <?php echo intval($_smarty_tpl->tpl_vars['order']->value['id_order']);?>
  148. , '<?php ob_start();?><?php echo intval($_smarty_tpl->tpl_vars['order']->value['id_order']);?>
  149. <?php $_tmp6=ob_get_clean();?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('order-detail',true,null,"id_order=".$_tmp6), ENT_QUOTES, 'UTF-8', true);?>
  150. ');">
  151. <span>
  152. <?php echo smartyTranslate(array('s'=>'Details'),$_smarty_tpl);?>
  153. <i class="icon-chevron-right right"></i>
  154. </span>
  155. </a>
  156. <?php if (isset($_smarty_tpl->tpl_vars['opc']->value)&&$_smarty_tpl->tpl_vars['opc']->value) {?>
  157. <a class="link-button" href="<?php ob_start();?><?php echo intval($_smarty_tpl->tpl_vars['order']->value['id_order']);?>
  158. <?php $_tmp7=ob_get_clean();?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('order-opc',true,null,"submitReorder&id_order=".$_tmp7), ENT_QUOTES, 'UTF-8', true);?>
  159. " title="<?php echo smartyTranslate(array('s'=>'Reorder'),$_smarty_tpl);?>
  160. ">
  161. <?php } else { ?>
  162. <a class="link-button" href="<?php ob_start();?><?php echo intval($_smarty_tpl->tpl_vars['order']->value['id_order']);?>
  163. <?php $_tmp8=ob_get_clean();?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('order',true,null,"submitReorder&id_order=".$_tmp8), ENT_QUOTES, 'UTF-8', true);?>
  164. " title="<?php echo smartyTranslate(array('s'=>'Reorder'),$_smarty_tpl);?>
  165. ">
  166. <?php }?>
  167. <?php if (isset($_smarty_tpl->tpl_vars['reorderingAllowed']->value)&&$_smarty_tpl->tpl_vars['reorderingAllowed']->value) {?>
  168. <i class="icon-refresh"></i><?php echo smartyTranslate(array('s'=>'Reorder'),$_smarty_tpl);?>
  169. <?php }?>
  170. </a>
  171. </td>
  172. </tr>
  173. <?php } ?>
  174. </tbody>
  175. </table>
  176. <div id="block-order-detail" class="unvisible">&nbsp;</div>
  177. <?php } else { ?>
  178. <p class="alert alert-warning"><?php echo smartyTranslate(array('s'=>'You have not placed any orders.'),$_smarty_tpl);?>
  179. </p>
  180. <?php }?>
  181. </div>
  182. <ul class="footer_links clearfix">
  183. <li>
  184. <a class="btn btn-default button button-small" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('my-account',true), ENT_QUOTES, 'UTF-8', true);?>
  185. ">
  186. <span>
  187. <i class="icon-chevron-left"></i> <?php echo smartyTranslate(array('s'=>'Back to Your Account'),$_smarty_tpl);?>
  188. </span>
  189. </a>
  190. </li>
  191. <li>
  192. <a class="btn btn-default button button-small" href="<?php echo $_smarty_tpl->tpl_vars['base_dir']->value;?>
  193. ">
  194. <span><i class="icon-chevron-left"></i> <?php echo smartyTranslate(array('s'=>'Home'),$_smarty_tpl);?>
  195. </span>
  196. </a>
  197. </li>
  198. </ul>
  199. <?php }} ?>