clientarea.tpl 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  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. {if $moduleParams.configoption3 == 'on'}
  49. <img src="/templates/croster/thurdata/productgroups/3.svg" class="img-fluid" style="height:100px;">
  50. {else}
  51. <img src="/templates/croster/thurdata/productgroups/3.svg" class="img-fluid" style="height:100px;">
  52. {/if}
  53. </div>
  54. </div>
  55. <h4><small>{$groupname}</small> - {$product}</h4>
  56. <div class="status-sticker-wrapper">
  57. <div class="status-sticker product-status-{$rawstatus|strtolower}">
  58. {$status}
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. <div class="col-md-6">
  65. <div class="product-info" style="min-height: unset; height:210px;">
  66. <table width="100%" border="0">
  67. <tr>
  68. <td class="list-heading" style="font-size: 85%;">{$LANG.clientareahostingregdate}</td>
  69. <td class="list-text" style="font-size: 85%;">{$regdate}</td>
  70. </tr>
  71. {if $billingcycle != 'Gratis-Account'}
  72. <tr>
  73. <td class="list-heading" style="font-size: 85%;">{$LANG.firstpaymentamount}</td>
  74. <td class="list-text" style="font-size: 85%;">{$firstpaymentamount}</td>
  75. </tr>
  76. <tr>
  77. <td class="list-heading" style="font-size: 85%;">{$LANG.recurringamount}</td>
  78. <td class="list-text" style="font-size: 85%;">{$recurringamount}</td>
  79. </tr>
  80. <tr>
  81. <td class="list-heading" style="font-size: 85%;">{$LANG.orderbillingcycle}</td>
  82. <td class="list-text" style="font-size: 85%;">{$billingcycle}</td>
  83. </tr>
  84. <tr>
  85. <td class="list-heading" style="font-size: 85%;">{$LANG.clientareahostingnextduedate}</td>
  86. <td class="list-text" style="font-size: 85%;">{$nextduedate}</td>
  87. </tr>
  88. <tr>
  89. <td class="list-heading" style="font-size: 85%;">{$LANG.orderpaymentmethod}</td>
  90. <td class="list-text" style="font-size: 85%;">{$paymentmethod}</td>
  91. </tr>
  92. {else}
  93. <tr>
  94. <td class="list-heading" style="font-size: 85%;"><strong>Trial Account</strong></td>
  95. {if ($smarty.now - ($regdate|@strtotime)) > 950400} {* wenn Heute - RegisterDatum > 11 Tage *}
  96. <td class="list-text" style="color:yellow;font-size:85%;">Endet in {(14 - (($smarty.now - ($regdate|@strtotime)) / 86400)|round)} Tagen</td>
  97. {elseif ($smarty.now - ($regdate|@strtotime)) > 1123200} {* wenn Heute - RegisterDatum > 13 Tage *}
  98. <td class="list-text" style="color:red;font-size:85%;">Letzter Tag der Trial Periode</td>
  99. {else}
  100. <td class="list-text" style="font-size: 85%;">Endet in {(14 - (($smarty.now - ($regdate|@strtotime)) / 86400)|round)} Tagen</td>
  101. {/if}
  102. </tr>
  103. <tr>
  104. <td colspan="2"><br /><br /></td>
  105. </tr>
  106. <tr>
  107. <td></td>
  108. <td><a href="/upgrade.php?type=package&id={$id}" class="btn btn-block btn-primary">Jetzt upgraden</a></td>
  109. </tr>
  110. {/if}
  111. </table>
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. </div>
  117. {*
  118. {if $showcancelbutton || $packagesupgrade}
  119. <div class="row">
  120. {if $packagesupgrade}
  121. <div class="col-xs-{if $showcancelbutton}6{else}12{/if}">
  122. <a href="upgrade.php?type=package&amp;id={$id}" class="btn btn-block btn-primary">{$LANG.upgrade}</a>
  123. </div>
  124. {/if}
  125. {if $showcancelbutton}
  126. <div class="col-xs-{if $packagesupgrade}6{else}12{/if}">
  127. <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>
  128. </div>
  129. {/if}
  130. </div>
  131. {/if}
  132. *}
  133. {if $systemStatus == 'Active'}
  134. {foreach $hookOutput as $output}
  135. <div class="section">
  136. <div>
  137. {$output}
  138. </div>
  139. <div class=" clearfix"></div>
  140. </div>
  141. {/foreach}
  142. {if $domain || $moduleclientarea || $configurableoptions || $customfields || $lastupdate}
  143. <div class="section">
  144. <div class="card panel panel-tabs">
  145. <div class="card-header">
  146. <ul class="nav nav-pills card-header-pills flex-column flex-md-row">
  147. {if $domain}
  148. <li class="nav-item">
  149. <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>
  150. </li>
  151. {elseif $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 !$domain && !$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 !$domain && !$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 !$domain && !$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 !$domain && !$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 !$domain && !$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 !$domain && !$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 !$domain && !$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"><strong>Appimage</strong><br />
  286. Der Linux-Client liegt im Appimage Format vor<br />
  287. Das AppImage Format ist eine neue Methode Linux Applikationen zu packen.<br />
  288. AppImages sind portabel, das heisst sie müssen nicht installiert <br />
  289. werden und funktionieren mit nahezu jeder Linux Distribution.<br />
  290. Alle Abhängigkeiten befinden sich in der AppImage Datei.<br />
  291. </td>
  292. </tr>
  293. <td colspan=2 align='left'>
  294. <br />
  295. <hr>
  296. <br />
  297. </td>
  298. </tr>
  299. <tr>
  300. <td align='center'>
  301. <strong>App für Android</strong><br />
  302. Mit dem Nextcloud-Client für Android<br />
  303. können Sie Ihre Dateien über eine <br />
  304. verschlüsselte Verbindung völlig <br />
  305. sicher synchronisieren, bearbeiten und teilen.<br />
  306. <br />
  307. <a href="https://apps.apple.com/ch/app/nextcloud/id1125420102" target="_blank"><img src="modules/servers/nextcloud/apple_store.png" /><a/>
  308. </td>
  309. <td align="center">
  310. <strong>App für iPhone</strong><br />
  311. Mit dem Nextcloud-Client für iPhone<br />
  312. können Sie Ihre Dateien über eine <br />
  313. verschlüsselte Verbindung völlig <br />
  314. sicher synchronisieren, bearbeiten und teilen.<br />
  315. <br />
  316. <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/>
  317. </td>
  318. </tr>
  319. </table>
  320. </div>
  321. {/if}
  322. {if $lastupdate}
  323. <div class="tab-pane fade" role="tabpanel" id="resourceusage" align="center">
  324. <div class="col-sm-10">
  325. <div class="col-sm-6">
  326. <h4>{lang key='diskSpace'}</h4>
  327. <input type="text" value="{$diskpercent|substr:0:-1}" class="dial-usage" data-width="100" data-height="100" data-min="0" data-readOnly="true" />
  328. <p>{($diskusage / 1024)|round:1} GB / {($disklimit / 1024)|round:1} GB</p>
  329. </div>
  330. </div>
  331. <div class="clearfix">
  332. </div>
  333. <p class="text-muted">{lang key='clientarealastupdated'}: {$lastupdate}</p>
  334. <script src="{$BASE_PATH_JS}/jquery.knob.js"></script>
  335. <script>
  336. jQuery(function() {
  337. jQuery(".dial-usage").knob({
  338. 'format': function(v) {
  339. alert(v);
  340. }
  341. });
  342. });
  343. </script>
  344. <div class="col-xs-{if $showcancelbutton}6{else}12{/if}">
  345. <a href="upgrade.php?type=configoptions&amp;id={$id}" class="btn btn-block btn-primary">Weiteren Speicher hinzubuchen</a>
  346. </div>
  347. </div>
  348. {/if}
  349. </div>
  350. </div>
  351. </div>
  352. </div>
  353. {/if}
  354. {else}
  355. <div class="alert-lg no-data">
  356. <div class="icon">
  357. <i class="fas fa-exclamation-triangle"></i>
  358. </div>
  359. <div class="text">
  360. {if $suspendreason}
  361. <strong>{$suspendreason}</strong><br />
  362. {/if}
  363. {$LANG.cPanel.packageNotActive} {$status}.<br />
  364. {if $systemStatus eq "Pending"}
  365. {$LANG.cPanel.statusPendingNotice}
  366. {elseif $systemStatus eq "Suspended"}
  367. {$LANG.cPanel.statusSuspendedNotice}
  368. {/if}
  369. </div>
  370. </div>
  371. {/if}
  372. {/if}
  373. </div>
  374. <div class="tab-pane fade in" id="tabChangepw">
  375. <div class="section">
  376. <div class="section-header">
  377. <h3>{$LANG.serverchangepassword}</h3>
  378. <p class="desc">Hier können Sie Ihr Passwort für {$mailaddress} ändern</p>
  379. </div>
  380. <div class="section-body">
  381. <div class="row">
  382. <div class="col-sm-7">
  383. <form class=" using-password-strength" method="post" action="{$smarty.server.PHP_SELF}?action=productdetails&id={$id}" role="form">
  384. <input type="hidden" name="id" value="{$id}" />
  385. <input type="hidden" name="modulechangepassword" value="true" />
  386. <div class="TM-card">
  387. <div id="newPassword1" class="form-group has-feedback">
  388. <label for="inputNewPassword1" class="control-label">{$LANG.newpassword}</label>
  389. <input type="password" class="form-control" id="inputNewPassword1" name="newpw" autocomplete="off" />
  390. <span class="form-control-feedback glyphicon"></span>
  391. {include file="$template/thurdata/thurpwcheck.tpl"}
  392. </div>
  393. <div class="alert alert-info">
  394. <div id='hints'>
  395. <strong id='hint2Head'></strong>
  396. <div id='hintLength'></div>
  397. <div id='hintNumeric'></div>
  398. <div id='hintSymbols'></div>
  399. <div id='hintUpperLower'></div>
  400. </div>
  401. </div>
  402. <div id="newPassword2" class="form-group has-feedback">
  403. <label for="inputNewPassword2" class="control-label">{$LANG.confirmnewpassword}</label>
  404. <input type="password" class="form-control" id="inputNewPassword2" name="confirmpw" autocomplete="off" />
  405. <span class="form-control-feedback glyphicon"></span>
  406. <div id="inputNewPassword2Msg">
  407. </div>
  408. </div>
  409. </div>
  410. <div class="form-actions">
  411. <input class="btn btn-primary" type="submit" value="{$LANG.clientareasavechanges}" />
  412. </div>
  413. </form>
  414. </div>
  415. </div>
  416. </div>
  417. </div>
  418. </div>
  419. </div>