clientarea.tpl 21 KB

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