PageRenderTime 62ms CodeModel.GetById 34ms RepoModel.GetById 0ms app.codeStats 0ms

/cache/smarty/compile/0b/53/fc/0b53fce194feb0845b82c52065b2dbdff5dd0f92.file.order-follow.tpl.php

https://gitlab.com/nghiep5890/prestashop
PHP | 261 lines | 240 code | 21 blank | 0 comment | 27 complexity | 311a5353b7ba11b7a2727a5d526fadd3 MD5 | raw file
  1. <?php /* Smarty version Smarty-3.1.19, created on 2016-11-24 17:38:20
  2. compiled from "C:\xampp\htdocs\prestashop\themes\default-bootstrap\order-follow.tpl" */ ?>
  3. <?php /*%%SmartyHeaderCode:87855837177c6fa6c2-30411493%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_valid = $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. '0b53fce194feb0845b82c52065b2dbdff5dd0f92' =>
  8. array (
  9. 0 => 'C:\\xampp\\htdocs\\prestashop\\themes\\default-bootstrap\\order-follow.tpl',
  10. 1 => 1452073828,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '87855837177c6fa6c2-30411493',
  15. 'function' =>
  16. array (
  17. ),
  18. 'variables' =>
  19. array (
  20. 'link' => 0,
  21. 'navigationPipe' => 0,
  22. 'errorQuantity' => 0,
  23. 'errorMsg' => 0,
  24. 'ids_order_detail' => 0,
  25. 'id_order_detail' => 0,
  26. 'order_qte_input' => 0,
  27. 'key' => 0,
  28. 'value' => 0,
  29. 'id_order' => 0,
  30. 'errorDetail1' => 0,
  31. 'errorDetail2' => 0,
  32. 'errorNotReturnable' => 0,
  33. 'ordersReturn' => 0,
  34. 'return' => 0,
  35. 'force_ssl' => 0,
  36. 'base_dir_ssl' => 0,
  37. 'base_dir' => 0,
  38. ),
  39. 'has_nocache_code' => false,
  40. 'version' => 'Smarty-3.1.19',
  41. 'unifunc' => 'content_5837177c80bdd7_82633817',
  42. ),false); /*/%%SmartyHeaderCode%%*/?>
  43. <?php if ($_valid && !is_callable('content_5837177c80bdd7_82633817')) {function content_5837177c80bdd7_82633817($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_regex_replace')) include 'C:\\xampp\\htdocs\\prestashop\\tools\\smarty\\plugins\\modifier.regex_replace.php';
  44. ?>
  45. <?php $_smarty_tpl->_capture_stack[0][] = array('path', null, null); ob_start(); ?>
  46. <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('my-account',true), ENT_QUOTES, 'UTF-8', true);?>
  47. ">
  48. <?php echo smartyTranslate(array('s'=>'My account'),$_smarty_tpl);?>
  49. </a>
  50. <span class="navigation-pipe">
  51. <?php echo $_smarty_tpl->tpl_vars['navigationPipe']->value;?>
  52. </span>
  53. <span class="navigation_page">
  54. <?php echo smartyTranslate(array('s'=>'Return Merchandise Authorization (RMA)'),$_smarty_tpl);?>
  55. </span>
  56. <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
  57. if (!empty($_capture_buffer)) {
  58. if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
  59. if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
  60. Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
  61. } else $_smarty_tpl->capture_error();?>
  62. <h1 class="page-heading bottom-indent">
  63. <?php echo smartyTranslate(array('s'=>'Return Merchandise Authorization (RMA)'),$_smarty_tpl);?>
  64. </h1>
  65. <?php if (isset($_smarty_tpl->tpl_vars['errorQuantity']->value)&&$_smarty_tpl->tpl_vars['errorQuantity']->value) {?>
  66. <p class="error">
  67. <?php echo smartyTranslate(array('s'=>'You do not have enough products to request an additional merchandise return.'),$_smarty_tpl);?>
  68. </p>
  69. <?php }?>
  70. <?php if (isset($_smarty_tpl->tpl_vars['errorMsg']->value)&&$_smarty_tpl->tpl_vars['errorMsg']->value) {?>
  71. <p class="alert alert-danger">
  72. <?php echo smartyTranslate(array('s'=>'Please provide an explanation for your RMA.'),$_smarty_tpl);?>
  73. </p>
  74. <form method="POST" id="returnOrderMessage">
  75. <p class="textarea form-group">
  76. <label><?php echo smartyTranslate(array('s'=>'Please provide an explanation for your RMA:'),$_smarty_tpl);?>
  77. </label>
  78. <textarea name="returnText" class="form-control"></textarea>
  79. </p>
  80. <?php $_smarty_tpl->tpl_vars['id_order_detail'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['id_order_detail']->_loop = false;
  81. $_from = $_smarty_tpl->tpl_vars['ids_order_detail']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  82. foreach ($_from as $_smarty_tpl->tpl_vars['id_order_detail']->key => $_smarty_tpl->tpl_vars['id_order_detail']->value) {
  83. $_smarty_tpl->tpl_vars['id_order_detail']->_loop = true;
  84. ?>
  85. <input type="hidden" name="ids_order_detail[<?php echo intval($_smarty_tpl->tpl_vars['id_order_detail']->value);?>
  86. ]" value="<?php echo intval($_smarty_tpl->tpl_vars['id_order_detail']->value);?>
  87. "/>
  88. <?php } ?>
  89. <?php $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['value']->_loop = false;
  90. $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
  91. $_from = $_smarty_tpl->tpl_vars['order_qte_input']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  92. foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) {
  93. $_smarty_tpl->tpl_vars['value']->_loop = true;
  94. $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['value']->key;
  95. ?>
  96. <input type="hidden" name="order_qte_input[<?php echo intval($_smarty_tpl->tpl_vars['key']->value);?>
  97. ]" value="<?php echo intval($_smarty_tpl->tpl_vars['value']->value);?>
  98. "/>
  99. <?php } ?>
  100. <input type="hidden" name="id_order" value="<?php echo intval($_smarty_tpl->tpl_vars['id_order']->value);?>
  101. "/>
  102. <input class="unvisible" type="submit" name="submitReturnMerchandise" value="<?php echo smartyTranslate(array('s'=>'Make an RMA slip'),$_smarty_tpl);?>
  103. "/>
  104. <p>
  105. <button type="submit" name="submitReturnMerchandise" class="btn btn-default button button-small">
  106. <span>
  107. <?php echo smartyTranslate(array('s'=>'Make an RMA slip'),$_smarty_tpl);?>
  108. <i class="icon-chevron-right right"></i>
  109. </span>
  110. </button>
  111. </p>
  112. </form>
  113. <?php }?>
  114. <?php if (isset($_smarty_tpl->tpl_vars['errorDetail1']->value)&&$_smarty_tpl->tpl_vars['errorDetail1']->value) {?>
  115. <p class="alert alert-danger">
  116. <?php echo smartyTranslate(array('s'=>'Please check at least one product you would like to return.'),$_smarty_tpl);?>
  117. </p>
  118. <?php }?>
  119. <?php if (isset($_smarty_tpl->tpl_vars['errorDetail2']->value)&&$_smarty_tpl->tpl_vars['errorDetail2']->value) {?>
  120. <p class="alert alert-danger">
  121. <?php echo smartyTranslate(array('s'=>'For each product you wish to add, please specify the desired quantity.'),$_smarty_tpl);?>
  122. </p>
  123. <?php }?>
  124. <?php if (isset($_smarty_tpl->tpl_vars['errorNotReturnable']->value)&&$_smarty_tpl->tpl_vars['errorNotReturnable']->value) {?>
  125. <p class="alert alert-danger">
  126. <?php echo smartyTranslate(array('s'=>'This order cannot be returned.'),$_smarty_tpl);?>
  127. </p>
  128. <?php }?>
  129. <p class="info-title">
  130. <?php echo smartyTranslate(array('s'=>'Here is a list of pending merchandise returns'),$_smarty_tpl);?>
  131. .
  132. </p>
  133. <div class="block-center" id="block-history">
  134. <?php if ($_smarty_tpl->tpl_vars['ordersReturn']->value&&count($_smarty_tpl->tpl_vars['ordersReturn']->value)) {?>
  135. <table id="order-list" class="table table-bordered footab">
  136. <thead>
  137. <tr>
  138. <th data-sort-ignore="true" class="first_item"><?php echo smartyTranslate(array('s'=>'Return'),$_smarty_tpl);?>
  139. </th>
  140. <th data-sort-ignore="true" class="item"><?php echo smartyTranslate(array('s'=>'Order'),$_smarty_tpl);?>
  141. </th>
  142. <th data-hide="phone" class="item"><?php echo smartyTranslate(array('s'=>'Package status'),$_smarty_tpl);?>
  143. </th>
  144. <th data-hide="phone,tablet" class="item"><?php echo smartyTranslate(array('s'=>'Date issued'),$_smarty_tpl);?>
  145. </th>
  146. <th data-sort-ignore="true" data-hide="phone,tablet" class="last_item"><?php echo smartyTranslate(array('s'=>'Return slip'),$_smarty_tpl);?>
  147. </th>
  148. </tr>
  149. </thead>
  150. <tbody>
  151. <?php $_smarty_tpl->tpl_vars['return'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['return']->_loop = false;
  152. $_from = $_smarty_tpl->tpl_vars['ordersReturn']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  153. $_smarty_tpl->tpl_vars['return']->total= $_smarty_tpl->_count($_from);
  154. $_smarty_tpl->tpl_vars['return']->iteration=0;
  155. $_smarty_tpl->tpl_vars['return']->index=-1;
  156. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['index']=-1;
  157. foreach ($_from as $_smarty_tpl->tpl_vars['return']->key => $_smarty_tpl->tpl_vars['return']->value) {
  158. $_smarty_tpl->tpl_vars['return']->_loop = true;
  159. $_smarty_tpl->tpl_vars['return']->iteration++;
  160. $_smarty_tpl->tpl_vars['return']->index++;
  161. $_smarty_tpl->tpl_vars['return']->first = $_smarty_tpl->tpl_vars['return']->index === 0;
  162. $_smarty_tpl->tpl_vars['return']->last = $_smarty_tpl->tpl_vars['return']->iteration === $_smarty_tpl->tpl_vars['return']->total;
  163. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['first'] = $_smarty_tpl->tpl_vars['return']->first;
  164. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['index']++;
  165. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['last'] = $_smarty_tpl->tpl_vars['return']->last;
  166. ?>
  167. <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 }?>">
  168. <td class="bold">
  169. <a
  170. class="color-myaccount"
  171. href="javascript:showOrder(0, <?php echo intval($_smarty_tpl->tpl_vars['return']->value['id_order_return']);?>
  172. , '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('order-return',true), ENT_QUOTES, 'UTF-8', true);?>
  173. ');">
  174. <?php echo smartyTranslate(array('s'=>'#'),$_smarty_tpl);?>
  175. <?php echo sprintf("%06d",$_smarty_tpl->tpl_vars['return']->value['id_order_return']);?>
  176. </a>
  177. </td>
  178. <td class="history_method">
  179. <a
  180. class="color-myaccount"
  181. href="javascript:showOrder(1, <?php echo intval($_smarty_tpl->tpl_vars['return']->value['id_order']);?>
  182. , '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('order-detail',true), ENT_QUOTES, 'UTF-8', true);?>
  183. ');">
  184. <?php echo $_smarty_tpl->tpl_vars['return']->value['reference'];?>
  185. </a>
  186. </td>
  187. <td class="history_method" data-value="<?php echo $_smarty_tpl->tpl_vars['return']->value['state'];?>
  188. ">
  189. <span class="label label-info">
  190. <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['return']->value['state_name'], ENT_QUOTES, 'UTF-8', true);?>
  191. </span>
  192. </td>
  193. <td class="bold" data-value="<?php echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['return']->value['date_add'],"/[\-\:\ ]/",'');?>
  194. ">
  195. <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date'=>$_smarty_tpl->tpl_vars['return']->value['date_add'],'full'=>0),$_smarty_tpl);?>
  196. </td>
  197. <td class="history_invoice">
  198. <?php if ($_smarty_tpl->tpl_vars['return']->value['state']==2) {?>
  199. <a class="link-button" href="<?php ob_start();?><?php echo intval($_smarty_tpl->tpl_vars['return']->value['id_order_return']);?>
  200. <?php $_tmp54=ob_get_clean();?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('pdf-order-return',true,null,"id_order_return=".$_tmp54), ENT_QUOTES, 'UTF-8', true);?>
  201. " title="<?php echo smartyTranslate(array('s'=>'Order return'),$_smarty_tpl);?>
  202. <?php echo smartyTranslate(array('s'=>'#'),$_smarty_tpl);?>
  203. <?php echo sprintf("%06d",$_smarty_tpl->tpl_vars['return']->value['id_order_return']);?>
  204. ">
  205. <i class="icon-file-text"></i> <?php echo smartyTranslate(array('s'=>'Print out'),$_smarty_tpl);?>
  206. </a>
  207. <?php } else { ?>
  208. --
  209. <?php }?>
  210. </td>
  211. </tr>
  212. <?php } ?>
  213. </tbody>
  214. </table>
  215. <div id="block-order-detail" class="unvisible">&nbsp;</div>
  216. <?php } else { ?>
  217. <p class="alert alert-warning"><?php echo smartyTranslate(array('s'=>'You have no merchandise return authorizations.'),$_smarty_tpl);?>
  218. </p>
  219. <?php }?>
  220. </div>
  221. <ul class="footer_links clearfix">
  222. <li>
  223. <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);?>
  224. ">
  225. <span>
  226. <i class="icon-chevron-left"></i> <?php echo smartyTranslate(array('s'=>'Back to your account'),$_smarty_tpl);?>
  227. </span>
  228. </a>
  229. </li>
  230. <li>
  231. <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;?>
  232. <?php } else { ?><?php echo $_smarty_tpl->tpl_vars['base_dir']->value;?>
  233. <?php }?>">
  234. <span>
  235. <i class="icon-chevron-left"></i> <?php echo smartyTranslate(array('s'=>'Home'),$_smarty_tpl);?>
  236. </span>
  237. </a>
  238. </li>
  239. </ul>
  240. <?php }} ?>