| Line 1... |
Line 1... |
| 1 |
|
1 |
|
| 2 |
<script type="text/javascript">
|
- |
|
| 3 |
var customRetailers = ${customRetailers};
|
- |
|
| 4 |
$("#FofoId").typeahead({
|
- |
|
| 5 |
source: customRetailers,
|
- |
|
| 6 |
autoSelect: true,
|
- |
|
| 7 |
displayText:function(item){return item.businessName + "-" + item.address.city;},
|
- |
|
| 8 |
afterSelect: function(currentItem){
|
- |
|
| 9 |
currentFofoId = currentItem.partnerId;
|
- |
|
| 10 |
currentFofoEmail = currentItem.email;
|
- |
|
| 11 |
}
|
- |
|
| 12 |
});
|
- |
|
| 13 |
|
- |
|
| 14 |
</script>
|
- |
|
| 15 |
|
- |
|
| 16 |
|
- |
|
| 17 |
<section class="wrapper">
|
2 |
<section class="wrapper">
|
| 18 |
<div class="row">
|
3 |
<div class="row">
|
| 19 |
<div class="col-lg-12">
|
4 |
<div class="col-lg-12">
|
| 20 |
<h3 class="page-header"><i class="icon_document_alt"></i>Approve REFFERALs</h3>
|
5 |
<h3 class="page-header"><i class="icon_document_alt"></i>Approve REFFERALs</h3>
|
| 21 |
<ol class="breadcrumb">
|
6 |
<ol class="breadcrumb">
|
| Line 23... |
Line 8... |
| 23 |
<li><i class="icon_document_alt"></i>Approve Refferals</li>
|
8 |
<li><i class="icon_document_alt"></i>Approve Refferals</li>
|
| 24 |
</ol>
|
9 |
</ol>
|
| 25 |
</div>
|
10 |
</div>
|
| 26 |
</div>
|
11 |
</div>
|
| 27 |
|
12 |
|
| 28 |
<div style="background:white;background-color:white;">
|
13 |
#if(!$oldApproved.isEmpty())
|
| 29 |
<h4 class="modelHeaderCustom" style="font-size:22px;"></h4>
|
14 |
<h4 class="modelHeaderCustom" style="font-size:22px;padding:10px;">$oldMonth Refferals</h4>
|
| - |
|
15 |
#foreach($oApproved in $oldApproved.keySet())
|
| - |
|
16 |
<div class="row">
|
| - |
|
17 |
|
| - |
|
18 |
<div class="col-lg-2 form-group">
|
| - |
|
19 |
<input placeholder="month" id="oldMonth" name="oldMonth" type="text" value="$oldMonth" class="form-control input-sm" readonly>
|
| 30 |
<div>
|
20 |
</div>
|
| - |
|
21 |
|
| 31 |
<form id = "wallet-form" >
|
22 |
<div class="col-lg-2 form-group">
|
| - |
|
23 |
<input placeholder="refereeEmail" id="refereeEmail" name="refereeEmail" type="text" value="$oApproved" class="form-control input-sm" readonly>
|
| - |
|
24 |
</div>
|
| 32 |
<div class = "row">
|
25 |
<div class="col-lg-2 form-group">
|
| - |
|
26 |
<input placeholder="Count" id="oldMonthCount" name="oldMonthCount" type="text" value="$oldApproved.get($oApproved)" class="form-control input-sm" readonly>
|
| - |
|
27 |
</div>
|
| - |
|
28 |
#if($oldApproved.get($oApproved) <= 4)
|
| - |
|
29 |
#set($mul =$oldApproved.get($oApproved) * 5000)
|
| - |
|
30 |
<div class="col-lg-2 form-group">
|
| - |
|
31 |
<input placeholder="Amount" id="oldMonthrefferalAmount" name="oldMonthrefferalAmount" type="text" value="$mul" class="form-control input-sm" readonly>
|
| - |
|
32 |
</div>
|
| - |
|
33 |
#elseif($oldApproved.get($oApproved) <= 9)'
|
| - |
|
34 |
#set($mul = $oldApproved.get($oApproved)* 10000)
|
| 33 |
<div class="col-lg-2 form-group">
|
35 |
<div class="col-lg-2 form-group">
|
| 34 |
<input id="FofoId" type="text" class="typeahead form-control form-control-sm" placeholder="Partner Name" data-provide="typeahead"
|
36 |
<input placeholder="Amount" id="oldMonthrefferalAmount" name="oldMonthrefferalAmount" type="text" value="$mul" class="form-control input-sm" readonly>
|
| - |
|
37 |
</div>
|
| 35 |
#if(${retailerName}) value="${retailerName}" #end
|
38 |
#elseif($oldApproved.get($oApproved) >=10)
|
| 36 |
autocomplete="off"/>
|
39 |
<div class="col-lg-2 form-group">
|
| - |
|
40 |
<input placeholder="Amount" id="oldMonthrefferalAmount" name="oldMonthrefferalAmount" type="text" value="200000" class="form-control input-sm" readonly>
|
| - |
|
41 |
</div>
|
| - |
|
42 |
#end
|
| - |
|
43 |
<div class="col-lg-2 form-group">
|
| - |
|
44 |
<button class="btn btn-primary oldRefferalAmountSubmit" type="button">Add Money to Wallet</button>
|
| - |
|
45 |
</div>
|
| - |
|
46 |
|
| - |
|
47 |
</div>
|
| - |
|
48 |
#end
|
| - |
|
49 |
#end
|
| 37 |
|
50 |
|
| - |
|
51 |
#if(!$preApproved.isEmpty())
|
| - |
|
52 |
<h4 class="modelHeaderCustom" style="font-size:22px;padding:10px;">$previousMonth Refferals</h4>
|
| - |
|
53 |
#foreach($pApproved in $preApproved.keySet())
|
| 38 |
</div>
|
54 |
<div class="row">
|
| - |
|
55 |
|
| 39 |
<div class="col-lg-2 form-group">
|
56 |
<div class="col-lg-2 form-group">
|
| 40 |
<button class="btn btn-primary fetchApproveRefferals" type="button">Search Refferals</button>
|
57 |
<input placeholder="month" id="previousMonth" name="previousMonth" type="text" value="$previousMonth" class="form-control input-sm" readonly>
|
| 41 |
</div>
|
58 |
</div>
|
| 42 |
</div>
|
59 |
|
| - |
|
60 |
<div class="col-lg-2 form-group">
|
| - |
|
61 |
<input placeholder="refereeEmail" id="refereeEmail" name="refereeEmail" type="text" value="$pApproved" class="form-control input-sm" readonly>
|
| 43 |
</form>
|
62 |
</div>
|
| 44 |
|
63 |
|
| - |
|
64 |
<div class="col-lg-2 form-group">
|
| - |
|
65 |
<input placeholder="Count" id="count" name="count" type="text" value="$preApproved.get($pApproved)" class="form-control input-sm" readonly>
|
| - |
|
66 |
</div>
|
| - |
|
67 |
#if($preApproved.get($pApproved) <= 4)
|
| - |
|
68 |
#set($mul =$preApproved.get($pApproved) * 5000)
|
| - |
|
69 |
<div class="col-lg-2 form-group">
|
| - |
|
70 |
<input placeholder="Amount" id="refferalAmount" name="refferalAmount" type="text" value="$mul" class="form-control input-sm" readonly>
|
| - |
|
71 |
</div>
|
| - |
|
72 |
#elseif($preApproved.get($pApproved) <= 9)'
|
| - |
|
73 |
#set($mul =$preApproved.get($pApproved)* 10000)
|
| 45 |
<div class="refferal-approve-info-container">
|
74 |
<div class="col-lg-2 form-group">
|
| - |
|
75 |
<input placeholder="Amount" id="refferalAmount" name="refferalAmount" type="text" value="$mul" class="form-control input-sm" readonly>
|
| 46 |
</div>
|
76 |
</div>
|
| - |
|
77 |
#elseif($preApproved.get($pApproved) >=10)
|
| - |
|
78 |
<div class="col-lg-2 form-group">
|
| - |
|
79 |
<input placeholder="Amount" id="refferalAmount" name="refferalAmount" type="text" value="200000" class="form-control input-sm" readonly>
|
| - |
|
80 |
</div>
|
| - |
|
81 |
#end
|
| - |
|
82 |
|
| - |
|
83 |
<div class="col-lg-2 form-group">
|
| - |
|
84 |
<button class="btn btn-primary refferalAmountSubmit" type="button">Add Money to wallet</button>
|
| - |
|
85 |
</div>
|
| - |
|
86 |
|
| - |
|
87 |
</div>
|
| - |
|
88 |
#end
|
| - |
|
89 |
#end
|
| - |
|
90 |
|
| - |
|
91 |
|
| - |
|
92 |
|
| 47 |
</section>
|
93 |
</section>
|
| 48 |
|
94 |
|