PageRenderTime 40ms CodeModel.GetById 27ms RepoModel.GetById 1ms app.codeStats 0ms

/cache/smarty/compile/91/e6/e5/91e6e514fb5c418a6385eaadd54115a3c0d065be.file.order-slip.tpl.php

https://gitlab.com/nghiep5890/prestashop
PHP | 148 lines | 138 code | 10 blank | 0 comment | 16 complexity | dfbbe543633895d2c08053885b213db7 MD5 | raw file
  1. <?php /* Smarty version Smarty-3.1.19, created on 2016-11-24 17:38:22
  2. compiled from "C:\xampp\htdocs\prestashop\themes\default-bootstrap\order-slip.tpl" */ ?>
  3. <?php /*%%SmartyHeaderCode:108945837177e218904-75804523%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_valid = $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. '91e6e514fb5c418a6385eaadd54115a3c0d065be' =>
  8. array (
  9. 0 => 'C:\\xampp\\htdocs\\prestashop\\themes\\default-bootstrap\\order-slip.tpl',
  10. 1 => 1452073828,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '108945837177e218904-75804523',
  15. 'function' =>
  16. array (
  17. ),
  18. 'variables' =>
  19. array (
  20. 'link' => 0,
  21. 'navigationPipe' => 0,
  22. 'ordersSlip' => 0,
  23. 'slip' => 0,
  24. 'force_ssl' => 0,
  25. 'base_dir_ssl' => 0,
  26. 'base_dir' => 0,
  27. ),
  28. 'has_nocache_code' => false,
  29. 'version' => 'Smarty-3.1.19',
  30. 'unifunc' => 'content_5837177e2dbe11_47129659',
  31. ),false); /*/%%SmartyHeaderCode%%*/?>
  32. <?php if ($_valid && !is_callable('content_5837177e2dbe11_47129659')) {function content_5837177e2dbe11_47129659($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_regex_replace')) include 'C:\\xampp\\htdocs\\prestashop\\tools\\smarty\\plugins\\modifier.regex_replace.php';
  33. ?>
  34. <?php $_smarty_tpl->_capture_stack[0][] = array('path', null, null); ob_start(); ?><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('my-account',true), ENT_QUOTES, 'UTF-8', true);?>
  35. "><?php echo smartyTranslate(array('s'=>'My account'),$_smarty_tpl);?>
  36. </a><span class="navigation-pipe"><?php echo $_smarty_tpl->tpl_vars['navigationPipe']->value;?>
  37. </span><span class="navigation_page"><?php echo smartyTranslate(array('s'=>'Credit slips'),$_smarty_tpl);?>
  38. </span><?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
  39. if (!empty($_capture_buffer)) {
  40. if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
  41. if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
  42. Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
  43. } else $_smarty_tpl->capture_error();?>
  44. <h1 class="page-heading bottom-indent">
  45. <?php echo smartyTranslate(array('s'=>'Credit slips'),$_smarty_tpl);?>
  46. </h1>
  47. <p class="info-title">
  48. <?php echo smartyTranslate(array('s'=>'Credit slips you have received after canceled orders'),$_smarty_tpl);?>
  49. .
  50. </p>
  51. <div class="block-center" id="block-history">
  52. <?php if ($_smarty_tpl->tpl_vars['ordersSlip']->value&&count($_smarty_tpl->tpl_vars['ordersSlip']->value)) {?>
  53. <table id="order-list" class="table table-bordered footab">
  54. <thead>
  55. <tr>
  56. <th data-sort-ignore="true" class="first_item"><?php echo smartyTranslate(array('s'=>'Credit slip'),$_smarty_tpl);?>
  57. </th>
  58. <th data-sort-ignore="true" class="item"><?php echo smartyTranslate(array('s'=>'Order'),$_smarty_tpl);?>
  59. </th>
  60. <th class="item"><?php echo smartyTranslate(array('s'=>'Date issued'),$_smarty_tpl);?>
  61. </th>
  62. <th data-sort-ignore="true" data-hide="phone" class="last_item"><?php echo smartyTranslate(array('s'=>'View credit slip'),$_smarty_tpl);?>
  63. </th>
  64. </tr>
  65. </thead>
  66. <tbody>
  67. <?php $_smarty_tpl->tpl_vars['slip'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['slip']->_loop = false;
  68. $_from = $_smarty_tpl->tpl_vars['ordersSlip']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  69. $_smarty_tpl->tpl_vars['slip']->total= $_smarty_tpl->_count($_from);
  70. $_smarty_tpl->tpl_vars['slip']->iteration=0;
  71. $_smarty_tpl->tpl_vars['slip']->index=-1;
  72. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['index']=-1;
  73. foreach ($_from as $_smarty_tpl->tpl_vars['slip']->key => $_smarty_tpl->tpl_vars['slip']->value) {
  74. $_smarty_tpl->tpl_vars['slip']->_loop = true;
  75. $_smarty_tpl->tpl_vars['slip']->iteration++;
  76. $_smarty_tpl->tpl_vars['slip']->index++;
  77. $_smarty_tpl->tpl_vars['slip']->first = $_smarty_tpl->tpl_vars['slip']->index === 0;
  78. $_smarty_tpl->tpl_vars['slip']->last = $_smarty_tpl->tpl_vars['slip']->iteration === $_smarty_tpl->tpl_vars['slip']->total;
  79. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['first'] = $_smarty_tpl->tpl_vars['slip']->first;
  80. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['index']++;
  81. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['last'] = $_smarty_tpl->tpl_vars['slip']->last;
  82. ?>
  83. <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 }?>">
  84. <td class="bold">
  85. <span class="color-myaccount">
  86. <?php echo smartyTranslate(array('s'=>'#%s','sprintf'=>sprintf("%06d",$_smarty_tpl->tpl_vars['slip']->value['id_order_slip'])),$_smarty_tpl);?>
  87. </span>
  88. </td>
  89. <td class="history_method">
  90. <a class="color-myaccount" href="javascript:showOrder(1, <?php echo intval($_smarty_tpl->tpl_vars['slip']->value['id_order']);?>
  91. , '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('order-detail'), ENT_QUOTES, 'UTF-8', true);?>
  92. ');">
  93. <?php echo smartyTranslate(array('s'=>'#%s','sprintf'=>sprintf("%06d",$_smarty_tpl->tpl_vars['slip']->value['id_order'])),$_smarty_tpl);?>
  94. </a>
  95. </td>
  96. <td class="bold" data-value="<?php echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['slip']->value['date_add'],"/[\-\:\ ]/",'');?>
  97. ">
  98. <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date'=>$_smarty_tpl->tpl_vars['slip']->value['date_add'],'full'=>0),$_smarty_tpl);?>
  99. </td>
  100. <td class="history_invoice">
  101. <a class="link-button" href="<?php ob_start();?><?php echo intval($_smarty_tpl->tpl_vars['slip']->value['id_order_slip']);?>
  102. <?php $_tmp57=ob_get_clean();?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('pdf-order-slip',true,null,"id_order_slip=".$_tmp57), ENT_QUOTES, 'UTF-8', true);?>
  103. " title="<?php echo smartyTranslate(array('s'=>'Credit slip'),$_smarty_tpl);?>
  104. <?php echo smartyTranslate(array('s'=>'#%s','sprintf'=>sprintf("%06d",$_smarty_tpl->tpl_vars['slip']->value['id_order_slip'])),$_smarty_tpl);?>
  105. ">
  106. <i class="icon-file-text large"></i><?php echo smartyTranslate(array('s'=>'PDF'),$_smarty_tpl);?>
  107. </a>
  108. </td>
  109. </tr>
  110. <?php } ?>
  111. </tbody>
  112. </table>
  113. <div id="block-order-detail" class="unvisible">&nbsp;</div>
  114. <?php } else { ?>
  115. <p class="alert alert-warning"><?php echo smartyTranslate(array('s'=>'You have not received any credit slips.'),$_smarty_tpl);?>
  116. </p>
  117. <?php }?>
  118. </div><!-- #block-history -->
  119. <ul class="footer_links clearfix">
  120. <li>
  121. <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);?>
  122. ">
  123. <span>
  124. <i class="icon-chevron-left"></i> <?php echo smartyTranslate(array('s'=>'Back to your account'),$_smarty_tpl);?>
  125. </span>
  126. </a>
  127. </li>
  128. <li>
  129. <a class="btn btn-default button button-small" href="<?php if (isset($_smarty_tpl->tpl_vars['force_ssl']->value)&&$_smarty_tpl->tpl_vars['force_ssl']->value) {?><?php echo $_smarty_tpl->tpl_vars['base_dir_ssl']->value;?>
  130. <?php } else { ?><?php echo $_smarty_tpl->tpl_vars['base_dir']->value;?>
  131. <?php }?>">
  132. <span>
  133. <i class="icon-chevron-left"></i> <?php echo smartyTranslate(array('s'=>'Home'),$_smarty_tpl);?>
  134. </span>
  135. </a>
  136. </li>
  137. </ul>
  138. <?php }} ?>