This repository has been archived by the owner on Feb 23, 2020. It is now read-only.
forked from WHMCS/templates-six
-
Notifications
You must be signed in to change notification settings - Fork 2
/
affiliates.tpl
131 lines (115 loc) · 4.65 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
{if $inactive}
{include file="$template/includes/alert.tpl" type="danger" msg=$LANG.affiliatesdisabled textcenter=true}
{else}
<div class="row">
<div class="col-sm-4">
<div class="affiliate-stat affiliate-stat-green alert-warning">
<i class="fa fa-users"></i>
<span>{$visitors}</span>
{$LANG.affiliatesclicks}
</div>
</div>
<div class="col-sm-4">
<div class="affiliate-stat affiliate-stat-green alert-info">
<i class="fa fa-shopping-cart"></i>
<span>{$signups}</span>
{$LANG.affiliatessignups}
</div>
</div>
<div class="col-sm-4">
<div class="affiliate-stat affiliate-stat-green alert-success">
<i class="fa fa-bar-chart-o"></i>
<span>{$conversionrate}%</span>
{$LANG.affiliatesconversionrate}
</div>
</div>
</div>
<div class="affiliate-referral-link text-center">
<h3>{$LANG.affiliatesreferallink}</h3>
<span>{$referrallink}</span>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2">
<table class="table table-striped table-rounded">
<tr>
<td class="text-right">{$LANG.affiliatescommissionspending}:</td>
<td><strong>{$pendingcommissions}</strong></td>
</tr>
<tr>
<td class="text-right">{$LANG.affiliatescommissionsavailable}:</td>
<td><strong>{$balance}</strong></td>
</tr>
<tr>
<td class="text-right">{$LANG.affiliateswithdrawn}:</td>
<td><strong>{$withdrawn}</strong></td>
</tr>
</table>
</div>
</div>
{if $withdrawrequestsent}
<div class="alert alert-success">
<p>{$LANG.affiliateswithdrawalrequestsuccessful}</p>
</div>
{else}
<p class="text-center">
<a href="{$smarty.server.PHP_SELF}?action=withdrawrequest" class="btn btn-lg btn-danger"{if !$withdrawlevel} disabled="true"{/if}>
<i class="fa fa-bank"></i> {$LANG.affiliatesrequestwithdrawal}
</a>
</p>
{if !$withdrawlevel}
<p class="text-muted text-center">{lang key="affiliateWithdrawalSummary" amountForWithdrawal=$affiliatePayoutMinimum}</p>
{/if}
{/if}
{include file="$template/includes/subheader.tpl" title=$LANG.affiliatesreferals}
{include file="$template/includes/tablelist.tpl" tableName="AffiliatesList"}
<script type="text/javascript">
jQuery(document).ready( function ()
{
var table = jQuery('#tableAffiliatesList').removeClass('hidden').DataTable();
{if $orderby == 'regdate'}
table.order(0, '{$sort}');
{elseif $orderby == 'product'}
table.order(1, '{$sort}');
{elseif $orderby == 'amount'}
table.order(2, '{$sort}');
{elseif $orderby == 'status'}
table.order(4, '{$sort}');
{/if}
table.draw();
jQuery('#tableLoading').addClass('hidden');
});
</script>
<div class="table-container clearfix">
<table id="tableAffiliatesList" class="table table-list hidden">
<thead>
<tr>
<th>{$LANG.affiliatessignupdate}</th>
<th>{$LANG.orderproduct}</th>
<th>{$LANG.affiliatesamount}</th>
<th>{$LANG.affiliatescommission}</th>
<th>{$LANG.affiliatesstatus}</th>
</tr>
</thead>
<tbody>
{foreach from=$referrals item=referral}
<tr class="text-center">
<td><span class="hidden">{$referral.datets}</span>{$referral.date}</td>
<td>{$referral.service}</td>
<td>{$referral.amountdesc}</td>
<td>{$referral.commission}</td>
<td><span class='label status status-{$referral.status|strtolower}'>{$referral.status}</span></td>
</tr>
{/foreach}
</tbody>
</table>
<div class="text-center" id="tableLoading">
<p><i class="fa fa-spinner fa-spin"></i> {$LANG.loading}</p>
</div>
</div>
{if $affiliatelinkscode}
{include file="$template/includes/subheader.tpl" title=$LANG.affiliateslinktous}
<div class="margin-bottom text-center">
{$affiliatelinkscode}
</div>
{/if}
{/if}