amazonus_subscription.tpl
5.8 KB
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
<?php echo $header; ?><?php echo $column_left; ?>
<div id="content">
<div class="page-header">
<div class="container-fluid">
<div class="pull-right"> <a href="<?php echo $link_overview; ?>" data-toggle="tooltip" title="<?php echo $button_back; ?>" class="btn btn-default"><i class="fa fa-reply"></i></a> </div>
<h1><?php echo $heading_title; ?></h1>
<ul class="breadcrumb">
<?php foreach ($breadcrumbs as $breadcrumb) { ?>
<li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
<?php } ?>
</ul>
</div>
</div>
<div class="container-fluid">
<?php if (!$user_plan) { ?>
<div class="row">
<p><?php echo $text_register_invite ?></p>
<p><a href="<?php echo $link_register; ?>" class="btn btn-primary" target="_blank"><?php echo $button_register ?></a></p>
</div>
<?php } else { ?>
<div class="row">
<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-heading">
<h1 class="panel-title"><i class="fa fa-user"></i> <?php echo $text_current_plan; ?></h1>
</div>
<div class="panel-body">
<table class="table table-bordered table-hover">
<tbody>
<tr>
<td class="text-right"><b><?php echo $text_merchantid;?>:</b></td>
<td class="text-left"><?php echo $user_plan['merchant_id'] ?> [ <a href="<?php echo $link_change_seller; ?>" target="_blank"><?php echo $text_change_merchantid; ?></a> ]</td>
</tr>
<tr>
<td class="text-right"><b><?php echo $text_account_status;?>:</b></td>
<td class="text-left"><?php echo $user_plan['user_status'] ?></td>
</tr>
<tr>
<td class="text-right"><b><?php echo $text_name ?>:</b></td>
<td class="text-left"><?php echo $user_plan['title'] ?></td>
</tr>
<tr>
<td class="text-right"><b><?php echo $text_description ?>:</b></td>
<td class="text-left"><?php echo $user_plan['description'] ?></td>
</tr>
<tr>
<td class="text-right"><b><?php echo $text_order_frequency ?>:</b></td>
<td class="text-left"><?php echo $user_plan['order_frequency'] ?></td>
</tr>
<tr>
<td class="text-right"><b><?php echo $text_product_listings ?>:</b></td>
<td class="text-left"><?php echo $user_plan['product_listings'] ?></td>
</tr>
<tr>
<td class="text-right"><b><?php echo $text_listings_remaining ?>:</b></td>
<td class="text-left"><?php echo $user_plan['listings_remain'] ?></td>
</tr>
<tr>
<td class="text-right"><b><?php echo $text_listings_reserved ?>:</b></td>
<td class="text-left"><?php echo $user_plan['listings_reserved'] ?></td>
</tr>
<tr>
<td class="text-right"><b><?php echo $text_bulk_listing ?>:</b></td>
<td class="text-left"><?php if ($user_plan['bulk_listing']) { ?>
<?php echo $text_allowed ?>
<?php } else { ?>
<?php echo $text_not_allowed ?>
<?php } ?></td>
</tr>
<tr>
<td class="text-right"><b><?php echo $text_price; ?>:</b></td>
<td class="text-left">£<?php echo $user_plan['price']; ?></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="col-md-8">
<div class="panel panel-default">
<div class="panel-heading">
<h1 class="panel-title"><i class="fa fa-list"></i> <?php echo $text_available_plans; ?></h1>
</div>
<div class="panel-body">
<table class="table table-bordered table-hover">
<thead>
<tr>
<td class="text-right"><?php echo $column_name; ?></td>
<td class="text-left"><?php echo $column_description; ?></td>
<td class="text-left"><?php echo $column_order_frequency; ?></td>
<td class="text-left"><?php echo $column_product_listings; ?></td>
<td class="text-left"><?php echo $column_bulk_listing; ?></td>
<td class="text-left"><?php echo $column_price; ?></td>
</tr>
</thead>
<tbody>
<?php foreach ($plans as $plan) { ?>
<tr>
<td class="text-right"><?php echo $plan['title']; ?></td>
<td class="text-left"><?php echo $plan['description']; ?></td>
<td class="text-left"><?php echo $plan['order_frequency']; ?></td>
<td class="text-left"><?php echo $plan['product_listings']; ?></td>
<td class="text-left"><?php if ($plan['bulk_listing']) { ?>
<?php echo $text_allowed; ?>
<?php } else { ?>
<?php echo $text_not_allowed; ?>
<?php } ?></td>
<td class="text-left">£<?php echo $plan['price'] ?></td>
</tr>
<?php } ?>
</tbody>
</table>
<?php if ($link_change_plan) { ?>
<div class="pull-right"> <a href="<?php echo $link_change_plan; ?>" class="btn btn-primary" target="_blank"><i class="fa fa-arrow-right fa-lg"></i> <?php echo $button_change_plan; ?></a> </div>
<?php } ?>
</div>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<?php echo $footer; ?>