domain-pricing.tpl 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <div id="order-standard_cart" class="p-0 modern">
  2. <section class="products domains-section bg-primary m-0 position-relative">
  3. <div class="cros-bg-shapes-right"></div>
  4. <div class="cros-bg-shapes-left"></div>
  5. <div class="container">
  6. <div class="domain-hero">
  7. <div class="h1 text-center">{lang key="secureYourDomainShort"}</div>
  8. <form class="form-search mw-768-strictly" action="{$WEB_ROOT}/domainchecker.php" method="post">
  9. <div class="serach-form input-group">
  10. <i class="input-group-icon fad fa-search"></i>
  11. <input type="text" name="domain" placeholder="{$LANG.findyourdomain}" value="" id="inputDomain" class="form-control search-query" autocapitalize="none" />
  12. <span class="input-group-btn">
  13. <input type="submit" class="btn btn-default search" value="{$LANG.search}" />
  14. </span>
  15. </div>
  16. </form>
  17. </div>
  18. </div>
  19. </section>
  20. <section class="cros-domain-page">
  21. <div class="main-container-nosidebar domain-pricing">
  22. <div class="container">
  23. {if $featuredTlds}
  24. <div class="featured-tlds-container">
  25. <div class="row">
  26. {foreach $featuredTlds as $num => $tldinfo}
  27. <div class="{if $featuredTlds|@count == 3}col-md-4{else if $featuredTlds|@count >= 4}col-md-3{/if} col-sm-6">
  28. <div class="featured-tld">
  29. <div class="img-container">
  30. <img src="{$BASE_PATH_IMG}/tld_logos/{$tldinfo.tldNoDots}.png">
  31. </div>
  32. <div class="price {$tldinfo.tldNoDots}">
  33. {if is_object($tldinfo.register)}
  34. <span class="bigger-130"><strong class="fw-500">{$tldinfo.register->toPrefixed()}</strong>{if $tldinfo.period > 1}{lang key="orderForm.shortPerYears" years={$tldinfo.period}}{else}{lang key="orderForm.shortPerYear" years=''}{/if}</span>
  35. {else}
  36. {lang key="domainregnotavailable"}
  37. {/if}
  38. </div>
  39. </div>
  40. </div>
  41. {/foreach}
  42. </div>
  43. </div>
  44. {/if}
  45. {include file="$template/includes/tablelist.tpl" tableName="DomainPricing" filterColumn="1" noOrdering=true}
  46. <script>
  47. jQuery(document).ready(function() {
  48. var table = jQuery('#tableDomainPricing').show().DataTable();
  49. {if $orderby == 'tld'}
  50. table.order(0, '{$sort}');
  51. {elseif $orderby == 'category'}
  52. table.order(1, '{$sort}');
  53. {/if}
  54. table.draw();
  55. jQuery('#tableLoading').hide();
  56. });
  57. </script>
  58. <div class="table-container position-relative">
  59. <div class="table-header">
  60. <div class="d-flex align-items-center mb-2 mb-md-0">
  61. <label>{lang key='view'}</label>
  62. <div class="dropdown view-filter-btns">
  63. <button type="button" class="btn btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  64. <span>{lang key='domainRenewal.showAll'}</span>
  65. </button>
  66. <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenuButton">
  67. <li><a href="#" class="dropdown-item"><span data-value="all">{lang key='domainRenewal.showAll'}</span></a></li>
  68. <div class="dropdown-divider">--</div>
  69. {foreach $tldCategories as $category => $count}
  70. <li><a href="#" class="dropdown-item"><span data-value="{$category}">{lang key="domainTldCategory.$category" defaultValue=$category}</span>&nbsp;({$count})</a></li>
  71. {/foreach}
  72. </ul>
  73. </div>
  74. </div>
  75. <div class="search-group">
  76. <input type="text" id="table-search" class="form-control" placeholder="{$LANG.tableentersearchterm}">
  77. </div>
  78. </div>
  79. <table class="datatable table table-tlds w-hidden" id="tableDomainPricing">
  80. <thead>
  81. <tr>
  82. <th class="text-muted">{lang key='domaintld'}</th>
  83. <th class="text-muted">{lang key='category'}</th>
  84. <th class="text-muted">{lang key='pricing.register'}</th>
  85. <th class="text-muted">{lang key='pricing.transfer'}</th>
  86. <th class="text-muted">{lang key='pricing.renewal'}</th>
  87. <th class="text-muted">{lang key='gracePeriod'}</th>
  88. <th class="text-muted">{lang key='redemptionPeriod'}</th>
  89. </tr>
  90. </thead>
  91. <tbody>
  92. {foreach $pricing as $extension => $data}
  93. <tr>
  94. <td>
  95. <strong class="tld-name fw-500"><span class="text-primary">.</span>{$extension}</strong>
  96. {if $data.group}
  97. <span class="tld-sale-group tld-sale-group-{$data.group}">
  98. {$data.group}!
  99. </span>
  100. {/if}
  101. </td>
  102. <td>
  103. <span class="tld-label text-muted">{lang key='category'}</span>
  104. <span class="categories">{$data.categories[0]}</span>
  105. <span class="categories w-hidden">
  106. {foreach $data.categories as $category}
  107. {$category}
  108. {/foreach}
  109. </span>
  110. </td>
  111. {foreach $data.register as $years => $price}
  112. <td>
  113. <span class="tld-label text-muted">{lang key='pricing.register'}</span>
  114. {if $price >= 0}
  115. {$price}<br>
  116. <small class="text-muted">{$years} {if $years > 1}{lang key="orderForm.years"}{else}{lang key="orderForm.year"}{/if}</small>
  117. {else}
  118. <small class="text-muted">{lang key="domainregnotavailable"}</small>
  119. {/if}
  120. </td>
  121. {break}
  122. {foreachelse}
  123. <td>-</td>
  124. {/foreach}
  125. {foreach $data.transfer as $years => $price}
  126. <td>
  127. <span class="tld-label text-muted">{lang key='pricing.transfer'}</span>
  128. {if $price >= 0}
  129. {$price}<br>
  130. <small class="text-muted">{$years} {if $years > 1}{lang key="orderForm.years"}{else}{lang key="orderForm.year"}{/if}</small>
  131. {else}
  132. <small class="text-muted">{lang key="domainregnotavailable"}</small>
  133. {/if}
  134. </td>
  135. {break}
  136. {foreachelse}
  137. <td>-</td>
  138. {/foreach}
  139. {foreach $data.renew as $years => $price}
  140. <td>
  141. <span class="tld-label text-muted">{lang key='pricing.renewal'}</span>
  142. {if $price >= 0}
  143. {$price}<br>
  144. <small class="text-muted">{$years} {if $years > 1}{lang key="orderForm.years"}{else}{lang key="orderForm.year"}{/if}</small>
  145. {else}
  146. <small class="text-muted">{lang key="domainregnotavailable"}</small>
  147. {/if}
  148. </td>
  149. {break}
  150. {foreachelse}
  151. <td>-</td>
  152. {/foreach}
  153. <td>
  154. <span class="tld-label text-muted">{lang key='gracePeriod'}</span>
  155. {if is_null($data.grace_period)}
  156. -
  157. {else}
  158. {$data.grace_period.days} {lang key='domainrenewalsdays'}<br>
  159. <small class="text-muted">({$data.grace_period.price})</small>
  160. {/if}
  161. </td>
  162. <td>
  163. <span class="tld-label text-muted">{lang key='redemptionPeriod'}</span>
  164. {if is_null($data.redemption_period)}
  165. -
  166. {else}
  167. {$data.redemption_period.days} {lang key='domainrenewalsdays'}<br>
  168. <small class="text-muted">({$data.redemption_period.price})</small>
  169. {/if}
  170. </td>
  171. </tr>
  172. {foreachelse}
  173. <tr>
  174. <td colspan="7">{lang key="pricing.noExtensionsDefined"}</td>
  175. </tr>
  176. {/foreach}
  177. </tbody>
  178. </table>
  179. <div class="text-center" id="tableLoading">
  180. <p><i class="fas fa-spinner fa-spin"></i> {$LANG.loading}</p>
  181. </div>
  182. </div>
  183. </div>
  184. </div>
  185. </section>
  186. <div>