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

/themes/ling/order-follow.tpl

http://marocmall.googlecode.com/
Smarty Template | 54 lines | 54 code | 0 blank | 0 comment | 9 complexity | e8d46946473d33b5b6424273706504dc MD5 | raw file
Possible License(s): LGPL-2.1
  1. <script type="text/javascript">
  2. //<![CDATA[
  3. var baseDir = '{$base_dir_ssl}';
  4. //]]>
  5. </script>
  6. {capture name=path}<a href="{$link->getPageLink('my-account.php', true)}">{l s='My account'}</a><span class="navigation-pipe">{$navigationPipe}</span>{l s='Return Merchandise Authorization (RMA)'}{/capture}
  7. {include file="$tpl_dir./breadcrumb.tpl"}
  8. <h1>{l s='Return Merchandise Authorization (RMA)'}</h1>
  9. {if isset($errorQuantity) && $errorQuantity}<p class="error">{l s='You do not have enough products to request another merchandise return.'}</p>{/if}
  10. {if isset($errorMsg) && $errorMsg}<p class="error">{l s='Please provide an explanation for your RMA.'}</p>{/if}
  11. {if isset($errorDetail1) && $errorDetail1}<p class="error">{l s='Please check at least one product you would like to return.'}</p>{/if}
  12. {if isset($errorDetail2) && $errorDetail2}<p class="error">{l s='Please provide a quantity for the product you checked.'}</p>{/if}
  13. {if isset($errorNotReturnable) && $errorNotReturnable}<p class="error">{l s='This order cannot be returned.'}</p>{/if}
  14. <p>{l s='Here are the merchandise returns you have made'}.</p>
  15. <div class="block-center" id="block-history">
  16. {if $ordersReturn && count($ordersReturn)}
  17. <table id="order-list" class="std">
  18. <thead>
  19. <tr>
  20. <th class="first_item">{l s='Return'}</th>
  21. <th class="item">{l s='Order'}</th>
  22. <th class="item">{l s='Package status'}</th>
  23. <th class="item">{l s='Date issued'}</th>
  24. <th class="last_item">{l s='Return slip'}</th>
  25. </tr>
  26. </thead>
  27. <tbody>
  28. {foreach from=$ordersReturn item=return name=myLoop}
  29. <tr class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if} {if $smarty.foreach.myLoop.index % 2}alternate_item{/if}">
  30. <td class="bold"><a class="color-myaccount" href="javascript:showOrder(0, {$return.id_order_return|intval}, '{$link->getPageLink('order-return.php')}');">{l s='#'}{$return.id_order_return|string_format:"%06d"}</a></td>
  31. <td class="history_method"><a class="color-myaccount" href="javascript:showOrder(1, {$return.id_order|intval}, '{$link->getPageLink('order-detail.php')}');">{l s='#'}{$return.id_order|string_format:"%06d"}</a></td>
  32. <td class="history_method"><span class="bold">{$return.state_name|escape:'htmlall':'UTF-8'}</span></td>
  33. <td class="bold">{dateFormat date=$return.date_add full=0}</td>
  34. <td class="history_invoice">
  35. {if $return.state == 2}
  36. <a href="{$link->getPageLink('pdf-order-return.php', true)}?id_order_return={$return.id_order_return|intval}" title="{l s='Order return'} {l s='#'}{$return.id_order_return|string_format:"%06d"}"><img src="{$img_dir}icon/pdf.png" alt="{l s='Order return'} {l s='#'}{$return.id_order_return|string_format:"%06d"}" class="icon" /></a>
  37. <a href="{$link->getPageLink('pdf-order-return.php', true)}?id_order_return={$return.id_order_return|intval}" title="{l s='Order return'} {l s='#'}{$return.id_order_return|string_format:"%06d"}">{l s='Print out'}</a>
  38. {else}
  39. &mdash;
  40. {/if}
  41. </td>
  42. </tr>
  43. {/foreach}
  44. </tbody>
  45. </table>
  46. <div id="block-order-detail" class="hidden">&nbsp;</div>
  47. {else}
  48. <p class="warning">{l s='You have no return merchandise authorizations.'}</p>
  49. {/if}
  50. </div>
  51. <ul class="footer_links">
  52. <li><a href="{$link->getPageLink('my-account.php', true)}"><img src="{$img_dir}icon/my-account.png" alt="" class="icon" /></a><a href="{$link->getPageLink('my-account.php', true)}">{l s='Back to Your Account'}</a></li>
  53. <li><a href="{$base_dir}"><img src="{$img_dir}icon/home.png" alt="" class="icon" /></a><a href="{$base_dir}">{l s='Home'}</a></li>
  54. </ul>