clientarea.tpl 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421
  1. {*
  2. **********************************************************
  3. * Developed by: Team Theme Metro
  4. * Website: http://www.thememetro.com
  5. * Customized ny thurdata
  6. **********************************************************
  7. *}
  8. {if $modulechangepwresult}
  9. {if $modulechangepwresult == "success"}
  10. {include file="$template/includes/alert.tpl" type="success" msg=$modulechangepasswordmessage textcenter=true}
  11. {elseif $modulechangepwresult == "error"}
  12. {include file="$template/includes/alert.tpl" type="error" msg=$modulechangepasswordmessage|strip_tags textcenter=true}
  13. {/if}
  14. {/if}
  15. {if $modulecustombuttonresult}
  16. {if $modulecustombuttonresult == "success"}
  17. {include file="$template/includes/alert.tpl" type="success" msg=$LANG.moduleactionsuccess textcenter=true idname="alertModuleCustomButtonSuccess"}
  18. {else}
  19. {include file="$template/includes/alert.tpl" type="error" msg=$LANG.moduleactionfailed|cat:' ':$modulecustombuttonresult textcenter=true idname="alertModuleCustomButtonFailed"}
  20. {/if}
  21. {/if}
  22. {if $pendingcancellation}
  23. {include file="$template/includes/alert.tpl" type="error" msg=$LANG.cancellationrequestedexplanation textcenter=true idname="alertPendingCancellation"}
  24. {/if}
  25. {if $unpaidInvoice}
  26. <div class="alert alert-{if $unpaidInvoiceOverdue}danger{else}warning{/if}" id="alert{if $unpaidInvoiceOverdue}Overdue{else}Unpaid{/if}Invoice">
  27. <div class="pull-right">
  28. <a href="viewinvoice.php?id={$unpaidInvoice}" class="btn btn-xs btn-default">
  29. {lang key='payInvoice'}
  30. </a>
  31. </div>
  32. {$unpaidInvoiceMessage}
  33. </div>
  34. {/if}
  35. <div class="tab-content margin-bottom">
  36. <div class="tab-pane fade show active" id="tabOverview">
  37. {if $tplOverviewTabOutput}
  38. {$tplOverviewTabOutput}
  39. {else}
  40. <div class="section">
  41. <div class="product-details">
  42. <div class="row row-eq-height row-eq-height-sm">
  43. <div class="col-md-6">
  44. <div class="product-holder product-status-{$rawstatus|strtolower}" style="min-height: unset; height:210px">
  45. <div class="product-content">
  46. <div class="product-image">
  47. <div class="feature-icon">
  48. <img src="/templates/croster/thurdata/productgroups/{$gid}.svg" class="img-fluid" style="height:100px;">
  49. </div>
  50. </div>
  51. <h4><small>NextCloud Account:</small> {$domain}</h4>
  52. <div class="status-sticker-wrapper">
  53. <div class="status-sticker product-status-{$rawstatus|strtolower}">
  54. {$status}
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. <div class="col-md-6">
  61. <div class="product-info" style="min-height: unset; height:210px;">
  62. <table width="100%" border="0">
  63. <tr>
  64. <td class="list-heading" style="font-size: 85%;">{$LANG.clientareahostingregdate}</td>
  65. <td class="list-text" style="font-size: 85%;">{$regdate}</td>
  66. </tr>
  67. {if $billingcycle ne {lang key='orderpaymenttermfreeaccount'}}
  68. <tr>
  69. <td class="list-heading" style="font-size: 85%;">{$LANG.firstpaymentamount}</td>
  70. <td class="list-text" style="font-size: 85%;">{$firstpaymentamount}</td>
  71. </tr>
  72. <tr>
  73. <td class="list-heading" style="font-size: 85%;">{$LANG.recurringamount}</td>
  74. <td class="list-text" style="font-size: 85%;">{$recurringamount}</td>
  75. </tr>
  76. <tr>
  77. <td class="list-heading" style="font-size: 85%;">{$LANG.orderbillingcycle}</td>
  78. <td class="list-text" style="font-size: 85%;">{$billingcycle}</td>
  79. </tr>
  80. <tr>
  81. <td class="list-heading" style="font-size: 85%;">{$LANG.clientareahostingnextduedate}</td>
  82. <td class="list-text" style="font-size: 85%;">{$nextduedate}</td>
  83. </tr>
  84. <tr>
  85. <td class="list-heading" style="font-size: 85%;">{$LANG.orderpaymentmethod}</td>
  86. <td class="list-text" style="font-size: 85%;">{$paymentmethod}</td>
  87. </tr>
  88. {else}
  89. <tr>
  90. <td class="list-heading" style="font-size: 85%;"><strong>Trial Account</strong></td>
  91. {if $rawstatus eq "terminated"}
  92. <td class="list-text" style="font-size:85%;">{lang key='domainRenewal.expiredDaysAgo' days=((($smarty.now - ($regdate|@strtotime)) / 86400)|round) - 14}</td>
  93. {elseif 1123200 > ($smarty.now - ($regdate|@strtotime)) && ($smarty.now - ($regdate|@strtotime)) > 950400} {* wenn Heute - RegisterDatum < 13 Tage && > 11 Tage *}
  94. <td class="list-text" style="color:orange; font-size:85%">{lang key='domainRenewal.expiringIn' days=(14 - (($smarty.now - ($regdate|@strtotime)) / 86400)|round)}</td>
  95. {elseif ($smarty.now - ($regdate|@strtotime)) > 1123200} {* wenn Heute - RegisterDatum > 13 Tage *}
  96. <td class="list-text" style="color:red; font-size:85%;">{lang key='trialLastDay'}</td>
  97. {else}
  98. <td class="list-text" style="font-size: 85%;">{lang key='domainRenewal.expiringIn' days=(14 - (($smarty.now - ($regdate|@strtotime)) / 86400)|round)}</td>
  99. {/if}
  100. </tr>
  101. <tr>
  102. <td colspan="2"><br /><br /></td>
  103. </tr>
  104. <tr>
  105. <td></td>
  106. <td>
  107. {if $rawstatus eq "terminated"}
  108. <a href="/cart.php?gid={$gid}" class="btn btn-block btn-primary">{lang key='orderNow'}</a>
  109. {else}
  110. <a href="/upgrade.php?type=package&id={$id}" class="btn btn-block btn-primary">{lang key='upgradeNow'}</a>
  111. {/if}
  112. </td>
  113. </tr>
  114. {/if}
  115. </table>
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. </div>
  121. {*
  122. {if $showcancelbutton || $packagesupgrade}
  123. <div class="row">
  124. {if $packagesupgrade}
  125. <div class="col-xs-{if $showcancelbutton}6{else}12{/if}">
  126. <a href="upgrade.php?type=package&amp;id={$id}" class="btn btn-block btn-primary">{$LANG.upgrade}</a>
  127. </div>
  128. {/if}
  129. {if $showcancelbutton}
  130. <div class="col-xs-{if $packagesupgrade}6{else}12{/if}">
  131. <a href="clientarea.php?action=cancel&amp;id={$id}" class="btn btn-block btn-danger {if $pendingcancellation}disabled{/if}">{if $pendingcancellation}{$LANG.cancellationrequested}{else}{$LANG.clientareacancelrequestbutton}{/if}</a>
  132. </div>
  133. {/if}
  134. </div>
  135. {/if}
  136. *}
  137. {if $systemStatus == 'Active'}
  138. {foreach $hookOutput as $output}
  139. <div class="section">
  140. <div>
  141. {$output}
  142. </div>
  143. <div class=" clearfix"></div>
  144. </div>
  145. {/foreach}
  146. {if $moduleclientarea || $configurableoptions || $customfields || $lastupdate}
  147. <div class="section">
  148. <div class="card panel panel-tabs">
  149. <div class="card-header">
  150. <ul class="nav nav-pills card-header-pills flex-column flex-md-row">
  151. {if $moduleclientarea}
  152. <li class="nav-item">
  153. <a href="#manage" data-toggle="tab" class="nav-link active"><i class="fas fa-globe fa-fw"></i> {lang key='manage'}</a>
  154. </li>
  155. {/if}
  156. {if $configurableoptions}
  157. <li class="nav-item">
  158. <a href="#configoptions" data-toggle="tab" class="nav-link{if !$moduleclientarea} active{/if}"><i class="fas fa-cubes fa-fw"></i>Details</a>
  159. </li>
  160. {/if}
  161. {if $metricStats}
  162. <li class="nav-item">
  163. <a href="#metrics" data-toggle="tab" class="nav-link{if !$moduleclientarea && !$configurableoptions} active{/if}"><i class="fas fa-chart-line fa-fw"></i> {lang key='metrics.title'}</a>
  164. </li>
  165. {/if}
  166. {if $customfields}
  167. <li class="nav-item">
  168. <a href="#additionalinfo" data-toggle="tab" class="nav-link{if !$moduleclientarea && !$metricStats && !$configurableoptions} active{/if}"><i class="fas fa-info fa-fw"></i>Zugangsdaten</a>
  169. </li>
  170. {/if}
  171. {if $lastupdate}
  172. <li class="nav-item">
  173. <a href="#resourceusage" data-toggle="tab" class="nav-link{if !$moduleclientarea && !$configurableoptions && !$customfields} active{/if}"><i class="fas fa-inbox fa-fw"></i> {lang key='resourceUsage'}</a>
  174. </li>
  175. {/if}
  176. </ul>
  177. </div>
  178. <div class="card-body">
  179. <div class="tab-content">
  180. {if $configurableoptions}
  181. <div class="tab-pane fade{if !$moduleclientarea} show active{/if}" role="tabpanel" id="configoptions">
  182. <table width="100%" cellspacing="0" cellpadding="0" class="frame">
  183. <tr>
  184. <td>
  185. <table width="100%" border="0" cellpadding="10" cellspacing="0" class="table table-striped table-framed">
  186. <tr>
  187. <td align='left'>Benutzername</td>
  188. <td align="left">{$mailaddress}</td>
  189. </tr>
  190. <tr>
  191. <td align='left'>Nextcloud Speicher inklusive</td>
  192. <td align="left">{$basequota} GB</td>
  193. </tr>
  194. <tr>
  195. <td align='left'>Nextcloud Speicher zugebucht</td>
  196. <td align="left">{$addonquota} GB</td>
  197. </tr>
  198. <tr>
  199. <td align='left'>Nextcloud Speicher gesamt</td>
  200. <td align="left">{$userquota} GB</td>
  201. </tr>
  202. {if $moduleParams.configoption3 == 'on'}
  203. <tr>
  204. <td align='left'>NextCloud Speicher</td>
  205. <td align="left">{$userquota * 2} GB</a></td>
  206. </tr>
  207. {/if}
  208. </table>
  209. </td>
  210. </tr>
  211. </table>
  212. </div>
  213. {/if}
  214. {if $metricStats}
  215. <div class="tab-pane fade{if !$moduleclientarea && !$configurableoptions} show active{/if}" role="tabpanel" id="metrics">
  216. {include file="$template/clientareaproductusagebilling.tpl"}
  217. </div>
  218. {/if}
  219. {if $customfields}
  220. <div class="tab-pane fade{if !$moduleclientarea && !$configurableoptions && !$metricStats} show active{/if}" role="tabpanel" id="additionalinfo">
  221. <table width="100%" cellspacing="0" cellpadding="0" class="frame">
  222. <tr>
  223. <td align='left'>NextCloud URL</td>
  224. <td align="left"><a href="{$webmailurl}" target="_blank">{$webmailurl}</a></td>
  225. </tr>
  226. {if $moduleParams.configoption3 == 'on'}
  227. <tr>
  228. <td align='left'>NextCloud URL</td>
  229. <td align="left"><a href="{$moduleParams.configoption4}" target="_blank">{$moduleParams.configoption4}</a></td>
  230. </tr>
  231. {/if}
  232. <tr>
  233. <td colspan=2 align='left'>
  234. <br />
  235. <hr>
  236. <br />
  237. </td>
  238. <tr>
  239. <td colspan=2 align='left'>
  240. <h6 class="heading">Integrieren Sie Ihr Nextcloud auf Ihr Mobiltelefon oder Ihren PC</h6>
  241. </td>
  242. </tr>
  243. <tr>
  244. <td colspan=2 align='left'>
  245. <h6 class="heading">Als Benutzernamen verwenden Sie immer Ihre Nextcloud Account ({$mailaddress})</h6>
  246. </td>
  247. </tr>
  248. <tr>
  249. <td colspan=2 align='left'>
  250. <br />
  251. <hr>
  252. <br />
  253. </td>
  254. </tr>
  255. <tr>
  256. <td align='center'>
  257. <strong>Windows Client</strong><br />
  258. Synchronisierung Ihrer Dateien mit Nextcloud<br />
  259. Mehrere Konten auf veschiedenen Servern<br />
  260. <br />
  261. <a href="https://github.com/nextcloud/desktop/releases/download/v3.2.4/Nextcloud-3.2.4-x64.msi" target="_blank"><img src="modules/servers/nextcloud/windows.png" /><a/>
  262. </td>
  263. <td align="center">
  264. <strong>Mac Client</strong><br />
  265. Synchronisierung Ihrer Dateien mit Nextcloud<br />
  266. Mehrere Konten auf veschiedenen Servern<br />
  267. <br />
  268. <a href="https://github.com/nextcloud/desktop/releases/download/v3.2.4/Nextcloud-3.2.4.pkg" target="_blank"><img src="modules/servers/nextcloud/apple.png" /><a/>
  269. </td>
  270. </tr>
  271. <td colspan=2 align='left'>
  272. <br />
  273. <hr>
  274. <br />
  275. </td>
  276. </tr>
  277. <tr>
  278. <td align='center'>
  279. <strong>Linux Client</strong><br />
  280. Synchronisierung Ihrer Dateien mit Nextcloud<br />
  281. Mehrere Konten auf veschiedenen Servern<br />
  282. <br />
  283. <a href="https://github.com/nextcloud/desktop/releases/download/v3.2.4/Nextcloud-3.2.4-x86_64.AppImage" target="_blank"><img src="modules/servers/nextcloud/linux.png" /><a/>
  284. </td>
  285. <td align="center">
  286. <strong>Appimage</strong><br />
  287. Der Linux-Client liegt im Appimage Format vor<br />
  288. Das AppImage Format ist eine neue Methode Linux Applikationen zu packen.<br />
  289. AppImages sind portabel, das heisst sie müssen nicht installiert <br />
  290. werden und funktionieren mit nahezu jeder Linux Distribution.<br />
  291. Alle Abhängigkeiten befinden sich in der AppImage Datei.<br />
  292. </td>
  293. </tr>
  294. <td colspan=2 align='left'>
  295. <br />
  296. <hr>
  297. <br />
  298. </td>
  299. </tr>
  300. <tr>
  301. <td align='center'>
  302. <strong>App für Android</strong><br />
  303. Mit dem Nextcloud-Client für Android<br />
  304. können Sie Ihre Dateien über eine <br />
  305. verschlüsselte Verbindung völlig <br />
  306. sicher synchronisieren, bearbeiten und teilen.<br />
  307. <br />
  308. <a href="https://apps.apple.com/ch/app/nextcloud/id1125420102" target="_blank"><img src="modules/servers/nextcloud/apple_store.png" /><a/>
  309. </td>
  310. <td align="center">
  311. <strong>App für iPhone</strong><br />
  312. Mit dem Nextcloud-Client für iPhone<br />
  313. können Sie Ihre Dateien über eine <br />
  314. verschlüsselte Verbindung völlig <br />
  315. sicher synchronisieren, bearbeiten und teilen.<br />
  316. <br />
  317. <a href="https://play.google.com/store/apps/details?id=com.nextcloud.client&hl=de_CH&gl=US" target="_blank"><img src="modules/servers/nextcloud/google_play.png" /><a/>
  318. </td>
  319. </tr>
  320. </table>
  321. </div>
  322. {/if}
  323. {if $lastupdate}
  324. <div class="tab-pane fade" role="tabpanel" id="resourceusage" align="center">
  325. <div class="col-sm-10">
  326. <div class="col-sm-6">
  327. <h4>{lang key='diskSpace'}</h4>
  328. <input type="text" value="{$diskpercent|substr:0:-1}" class="dial-usage" data-width="100" data-height="100" data-min="0" data-readOnly="true" />
  329. <p>{($diskusage / 1024)|round:1} GB / {($disklimit / 1024)|round:1} GB</p>
  330. </div>
  331. </div>
  332. <div class="clearfix">
  333. </div>
  334. <p class="text-muted">{lang key='clientarealastupdated'}: {$lastupdate}</p>
  335. <script src="{$BASE_PATH_JS}/jquery.knob.js"></script>
  336. <script>
  337. jQuery(function() {
  338. jQuery(".dial-usage").knob({
  339. 'format': function(v) {
  340. alert(v);
  341. }
  342. });
  343. });
  344. </script>
  345. <div class="col-xs-{if $showcancelbutton}6{else}12{/if}">
  346. <a href="upgrade.php?type=configoptions&amp;id={$id}" class="btn btn-block btn-primary">Weiteren Speicher hinzubuchen</a>
  347. </div>
  348. </div>
  349. {/if}
  350. </div>
  351. </div>
  352. </div>
  353. </div>
  354. {/if}
  355. {else}
  356. <div class="alert-lg no-data">
  357. <div class="icon">
  358. <i class="fas fa-exclamation-triangle"></i>
  359. </div>
  360. <div class="text">
  361. {if $suspendreason}
  362. <strong>{$suspendreason}</strong><br />
  363. {/if}
  364. {$LANG.cPanel.packageNotActive} {$status}.<br />
  365. {if $systemStatus eq "Pending"}
  366. {$LANG.cPanel.statusPendingNotice}
  367. {elseif $systemStatus eq "Suspended"}
  368. {$LANG.cPanel.statusSuspendedNotice}
  369. {/if}
  370. </div>
  371. </div>
  372. {/if}
  373. {/if}
  374. </div>
  375. <div class="tab-pane fade in" id="tabChangepw">
  376. <div class="section">
  377. <div class="section-header">
  378. <h3>{$LANG.serverchangepassword}</h3>
  379. <p class="desc">Hier können Sie Ihr Passwort für {$mailaddress} ändern</p>
  380. </div>
  381. <div class="section-body">
  382. <div class="row">
  383. <div class="col-sm-7">
  384. <form class=" using-password-strength" method="post" action="{$smarty.server.PHP_SELF}?action=productdetails&id={$id}" role="form">
  385. <input type="hidden" name="id" value="{$id}" />
  386. <input type="hidden" name="modulechangepassword" value="true" />
  387. <div class="TM-card">
  388. <div id="newPassword1" class="form-group has-feedback">
  389. <label for="inputNewPassword1" class="control-label">{$LANG.newpassword}</label>
  390. <input type="password" class="form-control" id="inputNewPassword1" name="newpw" autocomplete="off" />
  391. <span class="form-control-feedback glyphicon"></span>
  392. {include file="$template/thurdata/thurpwcheck.tpl"}
  393. </div>
  394. <div class="alert alert-info">
  395. <div id='hints'>
  396. <strong id='hint2Head'></strong>
  397. <div id='hintLength'></div>
  398. <div id='hintNumeric'></div>
  399. <div id='hintSymbols'></div>
  400. <div id='hintUpperLower'></div>
  401. </div>
  402. </div>
  403. <div id="newPassword2" class="form-group has-feedback">
  404. <label for="inputNewPassword2" class="control-label">{$LANG.confirmnewpassword}</label>
  405. <input type="password" class="form-control" id="inputNewPassword2" name="confirmpw" autocomplete="off" />
  406. <span class="form-control-feedback glyphicon"></span>
  407. <div id="inputNewPassword2Msg">
  408. </div>
  409. </div>
  410. </div>
  411. <div class="form-actions">
  412. <input class="btn btn-primary" type="submit" value="{$LANG.clientareasavechanges}" />
  413. </div>
  414. </form>
  415. </div>
  416. </div>
  417. </div>
  418. </div>
  419. </div>
  420. </div>