-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathaffiliates.tpl
138 lines (124 loc) · 3.78 KB
/
affiliates.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
{if $inactive}
<div class="page-header">
<h1>{$LANG.affiliatestitle}</h1>
</div>
<div class="alert alert-warning">
{$LANG.affiliatesdisabled}
</div>
{else}
<div class="page-header">
<h1>{$LANG.affiliatestitle} <small>{$LANG.affiliatesrealtime}</small></h1>
</div>
<div class="row">
<div class="span10 offset1">
<div class="textcenter">
<h3>{$LANG.affiliatesreferallink}</h3>
<table class="table table-bordered">
<thead>
<tr>
<th class="lead textcenter">{$referrallink}</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
<div class="row textcenter">
<div class="span10 offset1">
<div class="row-fluid">
<div class="span4">
<div class="well">
<h3>{$LANG.affiliatesvisitorsreferred}</h3>
<span class="lead">{$visitors}</span>
</div>
</div>
<div class="span4">
<div class="well">
<h3>{$LANG.affiliatessignups}</h3>
<span class="lead">{$signups}</span>
</div>
</div>
<div class="span4">
<div class="well">
<h3>{$LANG.affiliatesconversionrate}</h3>
<span class="lead">{$conversionrate}%</span>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="span6 offset3">
<table class="table table-striped table-bordered">
<tbody>
<tr>
<td>{$LANG.affiliatescommissionspending}</td>
<td class="textcenter"><strong>{$pendingcommissions}</strong></td>
</tr>
<tr>
<td>{$LANG.affiliatescommissionsavailable}</td>
<td class="textcenter"><strong>{$balance}</strong></td>
</tr>
<tr>
<td>{$LANG.affiliateswithdrawn}:</td>
<td class="textcenter"><strong>{$withdrawn}</strong></td>
</tr>
</tbody>
</table>
</div>
</div>
{if $withdrawrequestsent}
<div class="alert alert-success fade in">
<button class="close" data-dismiss="alert">×</button>
{$LANG.affiliateswithdrawalrequestsuccessful}
</div>
{elseif $withdrawlevel}
<div class="textcenter">
<a href="{$smarty.server.PHP_SELF}?action=withdrawrequest" class="btn btn-large btn-primary" title="{$LANG.affiliatesrequestwithdrawal}">{$LANG.affiliatesrequestwithdrawal}</a>
</div>
{/if}
<div class="page-header">
<h2>{$LANG.affiliatesreferals}</h2>
</div>
<p>{$numitems} {$LANG.recordsfound}, {$LANG.page} {$pagenumber} {$LANG.pageof} {$totalpages}</p>
<table class="table table-striped table-bordered table-sorted">
<thead>
<tr>
<th{if $orderby eq "date"} class="sort-{$sort}"{/if}><a href="affiliates.php?orderby=date">{$LANG.affiliatessignupdate}</a></th>
<th{if $orderby eq "product"} class="sort-{$sort}"{/if}><a href="affiliates.php?orderby=product">{$LANG.orderproduct}</a></th>
<th{if $orderby eq "amount"} class="sort-{$sort}"{/if}><a href="affiliates.php?orderby=amount">{$LANG.affiliatesamount}</a></th>
<th>{$LANG.affiliatescommission}</th>
<th{if $orderby eq "status"} class="sort-{$sort}"{/if}><a href="affiliates.php?orderby=status">{$LANG.affiliatesstatus}</a></th>
</tr>
</thead>
<tbody>
{foreach key=num item=referral from=$referrals}
<tr>
<td>{$referral.date}</td>
<td>{$referral.service}</td>
<td>{$referral.amountdesc}</td>
<td>{$referral.commission}</td>
<td>{$referral.status}</td>
</tr>
{foreachelse}
<tr>
<td colspan="6" class="textcenter">{$LANG.norecordsfound}</td>
</tr>
{/foreach}
</tbody>
</table>
<div class="pagination">
<ul>
<li{if !$prevpage} class="disabled"{/if}><a href="{if $prevpage}affiliates.php?page={$prevpage}{else}javascript:return false;{/if}">← {$LANG.previouspage}</a></li>
<li{if !$nextpage} class="disabled"{/if}><a href="{if $nextpage}affiliates.php?page={$nextpage}{else}javascript:return false;{/if}">{$LANG.nextpage} →</a></li>
</ul>
</div>
{if $affiliatelinkscode}
<div class="page-header">
<h2>{$LANG.affiliateslinktous}</h2>
</div>
<div class="textcenter">
{$affiliatelinkscode}
</div>
{/if}
{/if}