clientareaemails.tpl 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {*
  2. **********************************************************
  3. * Developed by: Team Theme Metro
  4. * Website: http://www.thememetro.com
  5. **********************************************************
  6. *}
  7. {include file="$template/includes/tablelist.tpl" tableName="EmailsList" noSortColumns="-1" filterColumn="1"}
  8. <script>
  9. jQuery(document).ready( function () {
  10. var table = jQuery('#tableEmailsList').show().DataTable();
  11. {if $orderby == 'date'}
  12. table.order(0, '{$sort}');
  13. {elseif $orderby == 'subject'}
  14. table.order(1, '{$sort}');
  15. {/if}
  16. table.draw();
  17. jQuery('#tableLoading').hide();
  18. });
  19. </script>
  20. <div class="table-container clearfix">
  21. <table id="tableEmailsList" class="datatable table table-hover w-hidden">
  22. <thead>
  23. <tr>
  24. <th data-class="expand">{$LANG.clientareaemailssubject}</th>
  25. <th data-hide="phone,tablet">{$LANG.clientareaemailsdate}</th>
  26. <th>&nbsp;</th>
  27. </tr>
  28. </thead>
  29. <tbody>
  30. {foreach $emails as $email}
  31. <tr onclick="popupWindow('viewemail.php?id={$email.id}', 'emailWin', '800', '600')">
  32. <td>{$email.subject}{if $email.attachmentCount > 0} <i class="fal fa-paperclip"></i>{/if}</td>
  33. <td><span class="w-hidden">{$email.normalisedDate}</span>{$email.date}</td>
  34. <td class="col-small center">
  35. <div class="action-buttons">
  36. <a href="#" class="text-nowrap" data-toggle="tooltip" title="{lang key='emailviewmessage'}" onclick="popupWindow('viewemail.php?id={$email.id}', 'emailWin', '800', '600', 'scrollbars=1,')">
  37. <i class="fal fa-search-plus"></i>
  38. </a>
  39. </div>
  40. </td>
  41. </tr>
  42. {/foreach}
  43. </tbody>
  44. </table>
  45. <div class="text-center" id="tableLoading">
  46. <p><i class="fas fa-spinner fa-spin"></i> {$LANG.loading}</p>
  47. </div>
  48. </div>