-
Notifications
You must be signed in to change notification settings - Fork 280
/
clientareaproductdetails.tpl
528 lines (489 loc) · 28.7 KB
/
clientareaproductdetails.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
{if $modulecustombuttonresult}
{if $modulecustombuttonresult == "success"}
{include file="$template/includes/alert.tpl" type="success" msg=$LANG.moduleactionsuccess textcenter=true idname="alertModuleCustomButtonSuccess"}
{else}
{include file="$template/includes/alert.tpl" type="error" msg=$LANG.moduleactionfailed|cat:' ':$modulecustombuttonresult textcenter=true idname="alertModuleCustomButtonFailed"}
{/if}
{/if}
{if $pendingcancellation}
{include file="$template/includes/alert.tpl" type="error" msg=$LANG.cancellationrequestedexplanation textcenter=true idname="alertPendingCancellation"}
{/if}
{if $unpaidInvoice}
<div class="alert alert-{if $unpaidInvoiceOverdue}danger{else}warning{/if}" id="alert{if $unpaidInvoiceOverdue}Overdue{else}Unpaid{/if}Invoice">
<div class="pull-right">
<a href="viewinvoice.php?id={$unpaidInvoice}" class="btn btn-xs btn-default">
{lang key='payInvoice'}
</a>
</div>
{$unpaidInvoiceMessage}
</div>
{/if}
<div class="tab-content margin-bottom">
<div class="tab-pane fade in active" id="tabOverview">
{if $tplOverviewTabOutput}
{$tplOverviewTabOutput}
{else}
<div class="product-details clearfix">
<div class="row">
<div class="col-md-6">
<div class="product-status product-status-{$rawstatus|strtolower}">
<div class="product-icon text-center">
<span class="fa-stack fa-lg">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fas fa-{if $type eq "hostingaccount" || $type == "reselleraccount"}hdd{elseif $type eq "server"}database{else}archive{/if} fa-stack-1x fa-inverse"></i>
</span>
<h3>{$product}</h3>
<h4>{$groupname}</h4>
</div>
<div class="product-status-text">
{$status}
</div>
</div>
{if $showRenewServiceButton === true || $showcancelbutton === true || $packagesupgrade === true}
<div class="row product-actions-wrapper">
{if $packagesupgrade}
<div class="col-xs-12">
<a href="upgrade.php?type=package&id={$id}" class="btn btn-block btn-success">
<i class="fas fa-level-up"></i>
{lang key='upgrade'}
</a>
</div>
{/if}
{if $showRenewServiceButton === true}
<div class="col-xs-12">
<a href="{routePath('service-renewals-service', $id)}" class="btn btn-block btn-primary">
<i class="fas fa-sync"></i>
{lang key='renewService.titleSingular'}
</a>
</div>
{/if}
{if $showcancelbutton}
<div class="col-xs-12">
<a href="clientarea.php?action=cancel&id={$id}" class="btn btn-block btn-danger {if $pendingcancellation}disabled{/if}">
<i class="fas fa-ban"></i>
{if $pendingcancellation}
{lang key='cancellationrequested'}
{else}
{lang key='clientareacancelrequestbutton'}
{/if}
</a>
</div>
{/if}
</div>
{/if}
</div>
<div class="col-md-6 text-center">
<h4>{$LANG.clientareahostingregdate}</h4>
{$regdate}
{if $firstpaymentamount neq $recurringamount}
<h4>{$LANG.firstpaymentamount}</h4>
{$firstpaymentamount}
{/if}
{if $billingcycle != $LANG.orderpaymenttermonetime && $billingcycle != $LANG.orderfree}
<h4>{$LANG.recurringamount}</h4>
{$recurringamount}
{/if}
{if $quantitySupported && $quantity > 1}
<h4>{lang key='quantity'}</h4>
{$quantity}
{/if}
<h4>{$LANG.orderbillingcycle}</h4>
{$billingcycle}
<h4>{$LANG.clientareahostingnextduedate}</h4>
{$nextduedate}
<h4>{$LANG.orderpaymentmethod}</h4>
{$paymentmethod}
{if $suspendreason}
<h4>{$LANG.suspendreason}</h4>
{$suspendreason}
{/if}
</div>
</div>
</div>
{foreach $hookOutput as $output}
<div>
{$output}
</div>
{/foreach}
{if $domain || $moduleclientarea || $configurableoptions || $customfields || $lastupdate}
<div class="row clearfix">
<div class="col-xs-12">
<ul class="nav nav-tabs nav-tabs-overflow">
{if $domain}
<li class="active">
<a href="#domain" data-toggle="tab"><i class="fas fa-globe fa-fw"></i> {if $type eq "server"}{$LANG.sslserverinfo}{elseif ($type eq "hostingaccount" || $type eq "reselleraccount") && $serverdata}{$LANG.hostingInfo}{else}{$LANG.clientareahostingdomain}{/if}</a>
</li>
{elseif $moduleclientarea}
<li class="active">
<a href="#manage" data-toggle="tab"><i class="fas fa-globe fa-fw"></i> {$LANG.manage}</a>
</li>
{/if}
{if $configurableoptions}
<li{if !$domain && !$moduleclientarea} class="active"{/if}>
<a href="#configoptions" data-toggle="tab"><i class="fas fa-cubes fa-fw"></i> {$LANG.orderconfigpackage}</a>
</li>
{/if}
{if $metricStats}
<li{if !$domain && !$moduleclientarea && !$configurableoptions} class="active"{/if}>
<a href="#metrics" data-toggle="tab"><i class="fas fa-chart-line fa-fw"></i> {$LANG.metrics.title}</a>
</li>
{/if}
{if $customfields}
<li{if !$domain && !$moduleclientarea && !$metricStats && !$configurableoptions} class="active"{/if}>
<a href="#additionalinfo" data-toggle="tab"><i class="fas fa-info fa-fw"></i> {$LANG.additionalInfo}</a>
</li>
{/if}
{if $lastupdate}
<li{if !$domain && !$moduleclientarea && !$configurableoptions && !$customfields} class="active"{/if}>
<a href="#resourceusage" data-toggle="tab"><i class="fas fa-inbox fa-fw"></i> {$LANG.resourceUsage}</a>
</li>
{/if}
</ul>
</div>
</div>
<div class="tab-content product-details-tab-container">
{if $domain}
<div class="tab-pane fade in active text-center" id="domain">
{if $type eq "server"}
<div class="row">
<div class="col-sm-5 text-right">
<strong>{$LANG.serverhostname}</strong>
</div>
<div class="col-sm-7 text-left">
{$domain}
</div>
</div>
{if $dedicatedip}
<div class="row">
<div class="col-sm-5 text-right">
<strong>{$LANG.primaryIP}</strong>
</div>
<div class="col-sm-7 text-left">
{$dedicatedip}
</div>
</div>
{/if}
{if $assignedips}
<div class="row">
<div class="col-sm-5 text-right">
<strong>{$LANG.assignedIPs}</strong>
</div>
<div class="col-sm-7 text-left">
{$assignedips|nl2br}
</div>
</div>
{/if}
{if $ns1 || $ns2}
<div class="row">
<div class="col-sm-5 text-right">
<strong>{$LANG.domainnameservers}</strong>
</div>
<div class="col-sm-7 text-left">
{$ns1}<br />{$ns2}
</div>
</div>
{/if}
{else}
{if $domain}
<div class="row">
<div class="col-sm-5 text-right">
<strong>{$LANG.orderdomain}</strong>
</div>
<div class="col-sm-7 text-left">
{$domain}
</div>
</div>
{/if}
{if $username}
<div class="row">
<div class="col-sm-5 text-right">
<strong>{$LANG.serverusername}</strong>
</div>
<div class="col-sm-7 text-left">
{$username}
</div>
</div>
{/if}
{if $serverdata}
<div class="row">
<div class="col-sm-5 text-right">
<strong>{$LANG.servername}</strong>
</div>
<div class="col-sm-7 text-left">
{$serverdata.hostname}
</div>
</div>
<div class="row">
<div class="col-sm-5 text-right">
<strong>{$LANG.domainregisternsip}</strong>
</div>
<div class="col-sm-7 text-left">
{$serverdata.ipaddress}
</div>
</div>
{if $serverdata.nameserver1 || $serverdata.nameserver2 || $serverdata.nameserver3 || $serverdata.nameserver4 || $serverdata.nameserver5}
<div class="row">
<div class="col-sm-5 text-right">
<strong>{$LANG.domainnameservers}</strong>
</div>
<div class="col-sm-7 text-left">
{if $serverdata.nameserver1}{$serverdata.nameserver1} ({$serverdata.nameserver1ip})<br />{/if}
{if $serverdata.nameserver2}{$serverdata.nameserver2} ({$serverdata.nameserver2ip})<br />{/if}
{if $serverdata.nameserver3}{$serverdata.nameserver3} ({$serverdata.nameserver3ip})<br />{/if}
{if $serverdata.nameserver4}{$serverdata.nameserver4} ({$serverdata.nameserver4ip})<br />{/if}
{if $serverdata.nameserver5}{$serverdata.nameserver5} ({$serverdata.nameserver5ip})<br />{/if}
</div>
</div>
{/if}
{/if}
{if $domain && $sslStatus}
<div class="row">
<div class="col-sm-5 text-right">
<strong>{$LANG.sslState.sslStatus}</strong>
</div>
<div class="col-sm-7 text-left{if $sslStatus->isInactive()} ssl-inactive{/if}">
<img src="{$sslStatus->getImagePath()}" width="12" data-type="service" data-domain="{$domain}" data-showlabel="1" class="{$sslStatus->getClass()}"/>
<span id="statusDisplayLabel">
{if !$sslStatus->needsResync()}
{$sslStatus->getStatusDisplayLabel()}
{else}
{$LANG.loading}
{/if}
</span>
</div>
</div>
{if $sslStatus->isActive() || $sslStatus->needsResync()}
<div class="row">
<div class="col-sm-5 text-right">
<strong>{$LANG.sslState.startDate}</strong>
</div>
<div class="col-sm-7 text-left" id="ssl-startdate">
{if !$sslStatus->needsResync() || $sslStatus->startDate}
{$sslStatus->startDate->toClientDateFormat()}
{else}
{$LANG.loading}
{/if}
</div>
</div>
<div class="row">
<div class="col-sm-5 text-right">
<strong>{$LANG.sslState.expiryDate}</strong>
</div>
<div class="col-sm-7 text-left" id="ssl-expirydate">
{if !$sslStatus->needsResync() || $sslStatus->expiryDate}
{$sslStatus->expiryDate->toClientDateFormat()}
{else}
{$LANG.loading}
{/if}
</div>
</div>
<div class="row">
<div class="col-sm-5 text-right">
<strong>{$LANG.sslState.issuerName}</strong>
</div>
<div class="col-sm-7 text-left" id="ssl-issuer">
{if !$sslStatus->needsResync() || $sslStatus->issuerName}
{$sslStatus->issuerName}
{else}
{$LANG.loading}
{/if}
</div>
</div>
{/if}
{/if}
<br>
<p>
<a href="http://{$domain}" class="btn btn-default" target="_blank">{$LANG.visitwebsite}</a>
{if $domainId}
<a href="clientarea.php?action=domaindetails&id={$domainId}" class="btn btn-default" target="_blank">{$LANG.managedomain}</a>
{/if}
</p>
{/if}
{if $moduleclientarea}
<div class="text-center module-client-area">
{$moduleclientarea}
</div>
{/if}
</div>
{if $sslStatus}
<div class="tab-pane fade text-center" id="ssl-info">
{if $sslStatus->isActive()}
<div class="alert alert-success" role="alert">
{lang key='sslActive' expiry=$sslStatus->expiryDate->toClientDateFormat()}
</div>
{else}
<div class="alert alert-warning ssl-required" role="alert">
{lang key='sslState.sslInactive'}
</div>
{/if}
</div>
{/if}
{elseif $moduleclientarea}
<div class="tab-pane fade{if !$domain} in active{/if} text-center" id="manage">
{if $moduleclientarea}
<div class="text-center module-client-area">
{$moduleclientarea}
</div>
{/if}
</div>
{/if}
{if $configurableoptions}
<div class="tab-pane fade{if !$domain && !$moduleclientarea} in active{/if} text-center" id="configoptions">
{foreach from=$configurableoptions item=configoption}
<div class="row">
<div class="col-sm-5">
<strong>{$configoption.optionname}</strong>
</div>
<div class="col-sm-7 text-left">
{if $configoption.optiontype eq 3}{if $configoption.selectedqty}{$LANG.yes}{else}{$LANG.no}{/if}{elseif $configoption.optiontype eq 4}{$configoption.selectedqty} x {$configoption.selectedoption}{else}{$configoption.selectedoption}{/if}
</div>
</div>
{/foreach}
</div>
{/if}
{if $metricStats}
<div class="tab-pane fade{if !$domain && !$moduleclientarea && !$configurableoptions} in active{/if}" id="metrics">
{include file="$template/clientareaproductusagebilling.tpl"}
</div>
{/if}
{if $customfields}
<div class="tab-pane fade{if !$domain && !$moduleclientarea && !$configurableoptions && !$metricStats} in active{/if} text-center" id="additionalinfo">
{foreach from=$customfields item=field}
<div class="row">
<div class="col-sm-5">
<strong>{$field.name}</strong>
</div>
<div class="col-sm-7 text-left">
{$field.value}
</div>
</div>
{/foreach}
</div>
{/if}
{if $lastupdate}
<div class="tab-pane fade text-center" id="resourceusage">
<div class="col-sm-10 col-sm-offset-1">
<div class="col-sm-6">
<h4>{$LANG.diskSpace}</h4>
<input type="text" value="{$diskpercent|substr:0:-1}" class="dial-usage" data-width="100" data-height="100" data-min="0" data-readOnly="true" />
<p>{$diskusage}MB / {$disklimit}MB</p>
</div>
<div class="col-sm-6">
<h4>{$LANG.bandwidth}</h4>
<input type="text" value="{$bwpercent|substr:0:-1}" class="dial-usage" data-width="100" data-height="100" data-min="0" data-readOnly="true" />
<p>{$bwusage}MB / {$bwlimit}MB</p>
</div>
</div>
<div class="clearfix">
</div>
<p class="text-muted">{$LANG.clientarealastupdated}: {$lastupdate}</p>
<script src="{$BASE_PATH_JS}/jquery.knob.js"></script>
<script type="text/javascript">
jQuery(function() {ldelim}
jQuery(".dial-usage").knob({ldelim}'format':function (v) {ldelim} alert(v); {rdelim}{rdelim});
{rdelim});
</script>
</div>
{/if}
</div>
{/if}
<script src="{$BASE_PATH_JS}/bootstrap-tabdrop.js"></script>
<script type="text/javascript">
jQuery('.nav-tabs-overflow').tabdrop();
</script>
{/if}
</div>
<div class="tab-pane fade in" id="tabDownloads">
<h3>{$LANG.downloadstitle}</h3>
{include file="$template/includes/alert.tpl" type="info" msg="{lang key="clientAreaProductDownloadsAvailable"}" textcenter=true}
<div class="row">
{foreach from=$downloads item=download}
<div class="col-xs-10 col-xs-offset-1">
<h4>{$download.title}</h4>
<p>
{$download.description}
</p>
<p>
<a href="{$download.link}" class="btn btn-default"><i class="fas fa-download"></i> {$LANG.downloadname}</a>
</p>
</div>
{/foreach}
</div>
</div>
<div class="tab-pane fade in" id="tabAddons">
<h3>{$LANG.clientareahostingaddons}</h3>
{if $addonsavailable}
{include file="$template/includes/alert.tpl" type="info" msg="{lang key="clientAreaProductAddonsAvailable"}" textcenter=true}
{/if}
<div class="row">
{foreach from=$addons item=addon}
<div class="col-xs-10 col-xs-offset-1">
<div class="panel panel-default panel-accent-blue">
<div class="panel-heading">
{$addon.name}
<div class="pull-right status-{$addon.rawstatus|strtolower}">{$addon.status}</div>
</div>
<div class="row panel-body">
<div class="col-md-6">
<p>
{$addon.pricing}
</p>
<p>
{$LANG.registered}: {$addon.regdate}
</p>
<p>
{$LANG.clientareahostingnextduedate}: {$addon.nextduedate}
</p>
</div>
</div>
<div class="panel-footer">
{$addon.managementActions}
</div>
</div>
</div>
{/foreach}
</div>
</div>
<div class="tab-pane fade in" id="tabChangepw">
<h3>{$LANG.serverchangepassword}</h3>
{if $modulechangepwresult}
{if $modulechangepwresult == "success"}
{include file="$template/includes/alert.tpl" type="success" msg=$modulechangepasswordmessage textcenter=true}
{elseif $modulechangepwresult == "error"}
{include file="$template/includes/alert.tpl" type="error" msg=$modulechangepasswordmessage|strip_tags textcenter=true}
{/if}
{/if}
<form class="form-horizontal using-password-strength" method="post" action="{$smarty.server.PHP_SELF}?action=productdetails#tabChangepw" role="form">
<input type="hidden" name="id" value="{$id}" />
<input type="hidden" name="modulechangepassword" value="true" />
<div id="newPassword1" class="form-group has-feedback">
<label for="inputNewPassword1" class="col-sm-4 control-label">{$LANG.newpassword}</label>
<div class="col-sm-5">
<input type="password" class="form-control" id="inputNewPassword1" name="newpw" autocomplete="off" />
<span class="form-control-feedback glyphicon"></span>
{include file="$template/includes/pwstrength.tpl"}
</div>
<div class="col-sm-3">
<button type="button" class="btn btn-default generate-password" data-targetfields="inputNewPassword1,inputNewPassword2">
{$LANG.generatePassword.btnLabel}
</button>
</div>
</div>
<div id="newPassword2" class="form-group has-feedback">
<label for="inputNewPassword2" class="col-sm-4 control-label">{$LANG.confirmnewpassword}</label>
<div class="col-sm-5">
<input type="password" class="form-control" id="inputNewPassword2" name="confirmpw" autocomplete="off" />
<span class="form-control-feedback glyphicon"></span>
<div id="inputNewPassword2Msg">
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-6 col-sm-6">
<input class="btn btn-primary" type="submit" value="{$LANG.clientareasavechanges}" />
<input class="btn" type="reset" value="{$LANG.cancel}" />
</div>
</div>
</form>
</div>
</div>