clientareaproducts.tpl 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. {*
  2. **********************************************************
  3. * Developed by: Team Theme Metro
  4. * Website: http://www.thememetro.com
  5. **********************************************************
  6. *}
  7. {if $services}
  8. {include file="$template/includes/tablelist.tpl" tableName="ServicesList" filterColumn="3" noSortColumns="4"}
  9. <script>
  10. jQuery(document).ready( function () {
  11. var table = jQuery('#tableServicesList').show().DataTable();
  12. {if $orderby == 'product'}
  13. table.order([0, '{$sort}'], [3, 'asc']);
  14. {elseif $orderby == 'amount' || $orderby == 'billingcycle'}
  15. table.order(1, '{$sort}');
  16. {elseif $orderby == 'nextduedate'}
  17. table.order(2, '{$sort}');
  18. {elseif $orderby == 'domainstatus'}
  19. table.order(3, '{$sort}');
  20. {/if}
  21. table.draw();
  22. jQuery('#tableLoading').hide();
  23. });
  24. </script>
  25. <div class="table-container clearfix">
  26. <div class="table-header">
  27. <label>{lang key='view'}</label>
  28. <div class="dropdown view-filter-btns">
  29. <button type="button" class="btn btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  30. <span>{lang key='domainRenewal.showAll'}</span>
  31. </button>
  32. <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenuButton">
  33. <li><a href="#" class="dropdown-item"><span data-value="all">{lang key='domainRenewal.showAll'}</span></a></li>
  34. {foreach key=statustext item=count from=$services|@array_column:'statustext'|@array_count_values}
  35. <li><a href="#" class="dropdown-item"><span data-value="{$statustext}">{$statustext}</span></a></li>
  36. {/foreach}
  37. </ul>
  38. </div>
  39. </div>
  40. <table id="tableServicesList" class="datatable table table-hover w-hidden">
  41. <thead>
  42. <tr>
  43. <th data-class="expand">{lang key='orderproduct'}</th>
  44. <th data-hide="phone,tablet">{lang key='clientareaaddonpricing'}</th>
  45. <th data-hide="phone,tablet">{lang key='clientareahostingnextduedate'}</th>
  46. <th data-hide="phone">{lang key='clientareastatus'}</th>
  47. <th class="col-small center"></th>
  48. </tr>
  49. </thead>
  50. <tbody>
  51. {foreach $services as $service}
  52. <tr onclick="clickableSafeRedirect(event, 'clientarea.php?action=productdetails&amp;id={$service.id}', false)">
  53. <td>
  54. <b>{$service.group}</b> - {$service.product}
  55. {if $service.domain}<br />
  56. <div class="ssl-info" data-element-id="{$service.id}" data-type="service"{if $service.domain} data-domain="{$service.domain}"{/if}>
  57. {if $service.sslStatus}
  58. <img src="{$service.sslStatus->getImagePath()}" data-toggle="tooltip" title="{$service.sslStatus->getTooltipContent()}" class="{$service.sslStatus->getClass()}"/>
  59. {elseif !$service.isActive}
  60. <img src="{$BASE_PATH_IMG}/ssl/ssl-inactive-domain.png" data-toggle="tooltip" title="{lang key='sslState.sslInactiveService'}">
  61. {/if}
  62. </div>
  63. <a class="text-domain" href="http://{$service.domain}" target="_blank">{$service.domain}</a>
  64. {/if}
  65. </td>
  66. <td data-order="{$service.amountnum}">{$service.amount} <small class="cycle-text">{$service.billingcycle}</small></td>
  67. <td><span class="w-hidden">{$service.normalisedNextDueDate}</span>{$service.nextduedate}</td>
  68. <td><span class="label status status-{$service.status|strtolower}">{$service.statustext}</span></td>
  69. <td class="col-small center">
  70. <a href="#" role="button" class="btn btn-link btn-sm" data-toggle="dropdown">
  71. <i class="fas fa-ellipsis-h"></i>
  72. </a>
  73. <ul class="dropdown-menu dropdown-menu-right" role="menu">
  74. <li><a class="dropdown-item" href="clientarea.php?action=productdetails&id={$service.id}">{$LANG.clientareaviewdetails}</a></li>
  75. {if $service.rawstatus == "active" && ($service.downloads || $service.addons || $service.packagesupgrade)}
  76. <li class="dropdown-divider"></li>
  77. {if $service.downloads} <li><a class="dropdown-item" href="clientarea.php?action=productdetails&id={$service.id}#tabDownloads">{$LANG.downloadstitle}</a></li>{/if}
  78. {if $service.addons} <li><a class="dropdown-item" href="clientarea.php?action=productdetails&id={$service.id}#tabAddons">{$LANG.clientareahostingaddons}</a></li>{/if}
  79. {if $service.packagesupgrade} <li><a class="dropdown-item" href="upgrade.php?type=package&id={$service.id}">{$LANG.upgradedowngradepackage}</a></li>{/if}
  80. {/if}
  81. </ul>
  82. </td>
  83. </tr>
  84. {/foreach}
  85. </tbody>
  86. </table>
  87. <div class="text-center" id="tableLoading">
  88. <p><i class="fas fa-spinner fa-spin"></i> {$LANG.loading}</p>
  89. </div>
  90. </div>
  91. {else}
  92. <div class="alert-lg no-data">
  93. <div class="icon">
  94. <i class="fas fa-exclamation-triangle"></i>
  95. </div>
  96. <div class="text">
  97. {$LANG.clientareaproductsnone}
  98. </div>
  99. <a class="btn btn-primary" href="{$WEB_ROOT}/{if $themesettings.orderform.orderopc != ""}order{else}cart{/if}.php">
  100. {$LANG.navservicesorder}
  101. </a>
  102. </div>
  103. {/if}