forked from osiloke/template-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
upgrade.tpl
136 lines (121 loc) · 4.73 KB
/
upgrade.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
<div class="page-header">
<h1>{$LANG.upgradedowngradepackage}</h1>
</div>
<div class="alert alert-info">
<span class="lead">{$LANG.orderproduct}: <strong>{if $groupname}{$groupname} - {/if}{$productname}</strong>{if $domain} ({$domain}){/if}</span>
</div>
{if $overdueinvoice}
<div class="alert alert-error">
{$LANG.upgradeerroroverdueinvoice}
</div>
<div class="text-center marginbottom">
<a href="clientarea.php?action=productdetails&id={$id}" class="btn btn-large">{$LANG.clientareabacklink}</a>
</div>
{else}
{if $type eq "package"}
<p>{$LANG.upgradechoosepackage}</p>
<table class="table table-bordered table-striped">
{foreach key=num item=upgradepackage from=$upgradepackages}
<tr>
<td>
<form method="post" action="upgrade.php" class="form-inline nomarginbottom">
<input type="hidden" name="step" value="2">
<input type="hidden" name="type" value="{$type}">
<input type="hidden" name="id" value="{$id}">
<input type="hidden" name="pid" value="{$upgradepackage.pid}">
<div class="row-fluid">
<div class="span6">
<h4>{if $upgradepackage.groupname}{$upgradepackage.groupname} - {/if}{$upgradepackage.name}</h4>
</div>
<div class="span3">
{if $upgradepackage.pricing.type eq "free"}
{$LANG.orderfree}
<input type="hidden" name="billingcycle" value="free">
{elseif $upgradepackage.pricing.type eq "onetime"}
{$upgradepackage.pricing.onetime} {$LANG.orderpaymenttermonetime}
<input type="hidden" name="billingcycle" value="onetime">
{elseif $upgradepackage.pricing.type eq "recurring"}
<select name="billingcycle">
{if $upgradepackage.pricing.monthly}<option value="monthly">{$upgradepackage.pricing.monthly}</option>{/if}
{if $upgradepackage.pricing.quarterly}<option value="quarterly">{$upgradepackage.pricing.quarterly}</option>{/if}
{if $upgradepackage.pricing.semiannually}<option value="semiannually">{$upgradepackage.pricing.semiannually}</option>{/if}
{if $upgradepackage.pricing.annually}<option value="annually">{$upgradepackage.pricing.annually}</option>{/if}
{if $upgradepackage.pricing.biennially}<option value="biennially">{$upgradepackage.pricing.biennially}</option>{/if}
{if $upgradepackage.pricing.triennially}<option value="triennially">{$upgradepackage.pricing.triennially}</option>{/if}
</select>
{/if}
</div>
<div class="span3 text-right">
<input type="submit" value="{$LANG.upgradedowngradechooseproduct}" class="btn">
</div>
</div>
</form>
</td>
</tr>
{/foreach}
</table>
{elseif $type eq "configoptions"}
{if $errormessage}
<div class="alert alert-error">
<h4 class="alert-heading">{$LANG.clientareaerrors}</h4>
<ul>
{$errormessage}
</ul>
</div>
{/if}
<p>{$LANG.upgradechooseconfigoptions}</p>
<form method="post" action="upgrade.php" class="form-inline">
<input type="hidden" name="step" value="2">
<input type="hidden" name="type" value="{$type}">
<input type="hidden" name="id" value="{$id}">
<table class="table table-striped table-bordered">
<thead>
<tr>
<th></th>
<th>{$LANG.upgradecurrentconfig}</th>
<th>{$LANG.upgradenewconfig}</th>
</tr>
</thead>
<tbody>
{foreach key=num item=configoption from=$configoptions}
<tr>
<td>{$configoption.optionname}</td>
<td>
{if $configoption.optiontype eq 1 || $configoption.optiontype eq 2}
{$configoption.selectedname}
{elseif $configoption.optiontype eq 3}
{if $configoption.selectedqty}{$LANG.yes}{else}{$LANG.no}{/if}
{elseif $configoption.optiontype eq 4}
{$configoption.selectedqty} × {$configoption.options.0.name}
{/if}
</td>
<td>
{if $configoption.optiontype eq 1 || $configoption.optiontype eq 2}
<select name="configoption[{$configoption.id}]" class="span3">
{foreach key=num item=option from=$configoption.options}
{if $option.selected}
<option value="{$option.id}" selected="checked">{$LANG.upgradenochange}</option>
{else}
<option value="{$option.id}">{$option.nameonly} {$option.price}</option>
{/if}
{/foreach}
</select>
{elseif $configoption.optiontype eq 3}
<label class="checkbox">
<input type="checkbox" name="configoption[{$configoption.id}]" value="1"{if $configoption.selectedqty} checked="checked"{/if}>
{$configoption.options.0.name}
</label>
{elseif $configoption.optiontype eq 4}
<input type="text" name="configoption[{$configoption.id}]" value="{$configoption.selectedqty}" class="span3" > × {$configoption.options.0.name}
{/if}
</td>
</tr>
{/foreach}
</tbody>
</table>
<div class="text-center">
<input type="submit" value="{$LANG.ordercontinuebutton}" class="btn btn-primary btn-large">
</div>
</form>
{/if}
{/if}