Subversion Repositories SmartDukaan

Rev

Rev 34238 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
25496 tejbeer 1
<section class="wrapper">
34238 tejus.loha 2
    <div class="row">
3
        <div class="col-lg-12">
4
            <h3 class="page-header"><i class="icon_document_alt"></i>Approvals Payment Pending</h3>
5
            <ol class="breadcrumb">
6
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
7
                <li><i class="icon_document_alt"></i>Payment Pending</li>
8
            </ol>
9
        </div>
26792 tejbeer 10
    </div>
11
 
34238 tejus.loha 12
    #if(!$oldApproved.isEmpty())
13
        <h4 class="modelHeaderCustom" style="font-size:22px;padding:10px;">$oldMonth Refferals</h4>
14
        #foreach($oApproved in $oldApproved.keySet())
15
            <div class="row">
25496 tejbeer 16
 
34238 tejus.loha 17
                <div class="col-lg-2 form-group">
18
                    <input placeholder="month" id="oldMonth" name="oldMonth" type="text" value="$oldMonth"
19
                           class="form-control input-sm" readonly>
20
                </div>
34201 ranu 21
 
34238 tejus.loha 22
                <div class="col-lg-2 form-group">
23
                    <input placeholder="refereeEmail" id="refereeEmail" name="refereeEmail" type="text"
24
                           value="$oApproved" class="form-control input-sm" readonly>
25
                </div>
26
                <div class="col-lg-2 form-group">
27
                    <input placeholder="Count" id="oldMonthCount" name="oldMonthCount" type="text"
28
                           value="$oldApproved.get($oApproved)" class="form-control input-sm" readonly>
29
                </div>
30
                #set($mul=0)
36325 aman 31
                #if($oldApproved.get($oApproved)==1)
32
                    #set($mul =3000)
33
                #elseif($oldApproved.get($oApproved)==2)
34238 tejus.loha 34
                    #set($mul =$oldApproved.get($oApproved) * 4000)
36325 aman 35
                #elseif($oldApproved.get($oApproved)>=3)
36
                    #set($mul =$oldApproved.get($oApproved) * 5000)
34238 tejus.loha 37
                #end
38
                <div class="col-lg-2 form-group">
39
                    <input placeholder="Amount" id="oldMonthrefferalAmount" name="oldMonthrefferalAmount" type="text"
36325 aman 40
                           value="$mul" class="form-control input-sm" readonly>
34238 tejus.loha 41
                </div>
25587 tejbeer 42
 
34238 tejus.loha 43
                <div class="col-lg-2 form-group">
44
                    <button class="btn btn-primary"
45
                            onclick="oldRefferalAmountSubmit(`$oApproved`,$oldApproved.get($oApproved),`$oldMonth`)"
46
                            type="button">Add Money to Wallet
47
                    </button>
48
                </div>
26766 tejbeer 49
 
34238 tejus.loha 50
            </div>
51
        #end
52
        <div id="refferal-table">
53
            <div class="row">
54
                <div class="col-lg-12">
55
                    <table class="table table-striped table-advance table-hover">
56
                        <tbody>
57
                        <tr>
58
                            <th>Referee Id</th>
59
                            <th>Referee Name</th>
60
                            <th>Referee Email</th>
61
                            <th>Business Name</th>
62
                            <th>Referee Mobile</th>
63
                            <th>Referal Name</th>
64
                            <th>Mobile</th>
65
                            <th>city</th>
66
                            <th>state</th>
67
                            <th>Created On</th>
68
                            <th>Updated On</th>
69
                            <th>Approved Timestamp</th>
27595 tejbeer 70
 
34238 tejus.loha 71
                        </tr>
72
                            #if(!$oldPreMonthapproved.isEmpty())
73
                                #foreach( $oldPreMonthapprovedModel in $oldPreMonthapproved )
74
                                <tr class="refferal-table" data="$oldPreMonthapprovedModel.getId()">
75
                                    <td>$oldPreMonthapprovedModel.getId()</td>
76
                                    <td>$oldPreMonthapprovedModel.getRefereeName()</td>
77
                                    <td>$oldPreMonthapprovedModel.getRefereeEmail()</td>
78
                                    #if($customerRetailerMap.get($oldPreMonthapprovedModel.getRefereeEmail()).getBusinessName())
79
                                        <td>$customerRetailerMap.get($oldPreMonthapprovedModel.getRefereeEmail()).getBusinessName()</td>
80
                                    #else
81
                                        <td></td>
82
                                    #end
83
                                    <td>$oldPreMonthapprovedModel.getRefereeMobile()</td>
84
                                    <td>$oldPreMonthapprovedModel.getFirstName() $oldPreMonthapprovedModel.getLastName()</td>
85
                                    <td>$oldPreMonthapprovedModel.getMobile()</td>
86
                                    <td>$oldPreMonthapprovedModel.getCity()</td>
87
                                    <td>$oldPreMonthapprovedModel.getState()</td>
88
                                    <td>$oldPreMonthapprovedModel.getCreatedTimestamp().format($dateTimeFormatter)</td>
89
                                    <td>$oldPreMonthapprovedModel.getUpdatedTimestamp().format($dateTimeFormatter)</td>
90
                                    #if($oldPreMonthapprovedModel.getApprovedTimestamp())
91
                                        <td>$oldPreMonthapprovedModel.getApprovedTimestamp().format($dateTimeFormatter)</td>
92
                                    #else
93
                                        <td></td>
94
                                    #end
26792 tejbeer 95
 
34238 tejus.loha 96
                                </tr>
97
                                #end
98
                            #else
99
                            <tr>
100
                                <td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
101
                            </tr>
102
                            #end
103
                        </tbody>
104
                    </table>
105
                </div>
106
            </div>
107
        </div>
25587 tejbeer 108
 
34238 tejus.loha 109
    #end
26792 tejbeer 110
 
34238 tejus.loha 111
    #if(!$preApproved.isEmpty())
112
        <h4 class="modelHeaderCustom" style="font-size:22px;padding:10px;">$previousMonth Refferals</h4>
113
        #foreach($pApproved in $preApproved.keySet())
114
            <div class="row">
26792 tejbeer 115
 
34238 tejus.loha 116
                <div class="col-lg-2 form-group">
117
                    <input placeholder="month" id="previousMonth" name="previousMonth" type="text"
118
                           value="$previousMonth" class="form-control input-sm" readonly>
119
                </div>
26766 tejbeer 120
 
34238 tejus.loha 121
                <div class="col-lg-2 form-group">
122
                    <input placeholder="refereeEmail" id="refereeEmail" name="refereeEmail" type="text"
123
                           value="$pApproved" class="form-control input-sm" readonly>
124
                </div>
125
 
126
                <div class="col-lg-2 form-group">
127
                    <input placeholder="Count" id="count" name="count" type="text" value="$preApproved.get($pApproved)"
128
                           class="form-control input-sm" readonly>
129
                </div>
130
                #set($mul=0)
36325 aman 131
                #if($preApproved.get($pApproved)==1)
132
                    #set($mul =3000)
133
                #elseif($preApproved.get($pApproved)==2)
34238 tejus.loha 134
                    #set($mul =$preApproved.get($pApproved) * 4000)
36325 aman 135
                #elseif($preApproved.get($pApproved)>=3)
136
                    #set($mul =$preApproved.get($pApproved) * 5000)
34238 tejus.loha 137
                #end
138
                <div class="col-lg-2 form-group">
139
                    <input placeholder="Amount" id="refferalAmount" name="refferalAmount" type="text" value="$mul"
36325 aman 140
                           class="form-control input-sm" readonly>
34238 tejus.loha 141
                </div>
142
 
143
 
144
                <div class="col-lg-2 form-group">
145
                    <button class="btn btn-primary" type="button"
146
                            onclick="refferalAmountSubmit(`$pApproved`,$preApproved.get($pApproved),`$previousMonth`)">
147
                        Add Money to wallet
148
                    </button>
149
                </div>
150
 
151
            </div>
152
        #end
153
        <div id="refferal-table">
154
            <div class="row">
155
                <div class="col-lg-12">
156
                    <table class="table table-striped table-advance table-hover">
157
                        <tbody>
158
                        <tr>
159
                            <th>Referee Id</th>
160
                            <th>Referee Name</th>
161
                            <th>Referee Email</th>
162
                            <th>Business Name</th>
163
                            <th>Referee Mobile</th>
164
                            <th>Referal Name</th>
165
                            <th>Mobile</th>
166
                            <th>city</th>
167
                            <th>state</th>
168
                            <th>Created On</th>
169
                            <th>Updated On</th>
170
                            <th>Approved Timestamp</th>
171
 
172
                        </tr>
173
                            #if(!$preCurrMonthapproved.isEmpty())
174
                                #foreach( $preCurrMonthapprovedModel in $preCurrMonthapproved )
175
                                <tr class="refferal-table" data="$preCurrMonthapprovedModel.getId()">
176
                                    <td>$preCurrMonthapprovedModel.getId()</td>
177
                                    <td>$preCurrMonthapprovedModel.getRefereeName()</td>
178
                                    <td>$preCurrMonthapprovedModel.getRefereeEmail()</td>
179
                                    #if($customerRetailerMap.get($preCurrMonthapprovedModel.getRefereeEmail()).getBusinessName())
180
                                        <td>$customerRetailerMap.get($preCurrMonthapprovedModel.getRefereeEmail()).getBusinessName()</td>
181
                                    #else
182
                                        <td></td>
183
                                    #end
184
                                    <td>$preCurrMonthapprovedModel.getRefereeMobile()</td>
185
                                    <td>$preCurrMonthapprovedModel.getFirstName() $preCurrMonthapprovedModel.getLastName()</td>
186
                                    <td>$preCurrMonthapprovedModel.getMobile()</td>
187
                                    <td>$preCurrMonthapprovedModel.getCity()</td>
188
                                    <td>$preCurrMonthapprovedModel.getState()</td>
189
                                    <td>$preCurrMonthapprovedModel.getCreatedTimestamp().format($dateTimeFormatter)</td>
190
                                    <td>$preCurrMonthapprovedModel.getUpdatedTimestamp().format($dateTimeFormatter)</td>
191
                                    #if($preCurrMonthapprovedModel.getApprovedTimestamp())
192
                                        <td>$preCurrMonthapprovedModel.getApprovedTimestamp().format($dateTimeFormatter)</td>
193
                                    #else
194
                                        <td></td>
195
                                    #end
196
 
197
                                </tr>
198
                                #end
199
                            #else
200
                            <tr>
201
                                <td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
202
                            </tr>
203
                            #end
204
                        </tbody>
205
                    </table>
206
                </div>
207
            </div>
208
        </div>
209
    #end
210
 
211
 
212
    #if($pastApproved)
213
        <h4 class="modelHeaderCustom" style="font-size:22px;padding:10px;"> Refferals</h4>
214
        #foreach($pstApproved in $pastApproved.keySet())
215
            <div class="row">
216
 
217
                <div class="col-lg-2 form-group">
218
                    <input placeholder="refereeEmail" id="refereeEmail" name="refereeEmail" type="text"
219
                           value="$pstApproved" class="form-control input-sm" readonly>
220
                </div>
221
 
222
                <div class="col-lg-2 form-group">
223
                    <input placeholder="Count" id="count" name="count" type="text"
224
                           value="$pastApproved.get($pstApproved)" class="form-control input-sm" readonly>
225
                </div>
226
 
227
                #set($mul=0)
36325 aman 228
                #if($pastApproved.get($pstApproved)==1)
229
                    #set($mul =3000)
230
                #elseif($pastApproved.get($pstApproved)==2)
34238 tejus.loha 231
                    #set($mul =$pastApproved.get($pstApproved) * 4000)
36325 aman 232
                #elseif($pastApproved.get($pstApproved)>=3)
233
                    #set($mul =$pastApproved.get($pstApproved) * 5000)
34238 tejus.loha 234
                #end
235
                <div class="col-lg-2 form-group">
236
                    <input placeholder="Amount" id="refferalAmount" name="refferalAmount" type="text" value="$mul"
237
                           class="form-control input-sm" readonly>
238
                </div>
239
 
240
 
241
                <div class="col-lg-2 form-group">
242
                    <button class="btn btn-primary" type="button"
243
                            onclick="refferalAmountSubmit(`$pstApproved`,$pastApproved.get($pstApproved),`$previousMonth`)">
244
                        Add Money to wallet
245
                    </button>
246
                </div>
247
 
248
            </div>
249
        #end
250
        <div id="refferal-table">
251
            <div class="row">
252
                <div class="col-lg-12">
253
                    <table class="table table-striped table-advance table-hover">
254
                        <tbody>
255
                        <tr>
256
                            <th>Referee Id</th>
257
                            <th>Referee Name</th>
258
                            <th>Referee Email</th>
259
                            <th>Business Name</th>
260
                            <th>Referee Mobile</th>
261
                            <th>Referal Name</th>
262
                            <th>Mobile</th>
263
                            <th>city</th>
264
                            <th>state</th>
265
                            <th>Created On</th>
266
                            <th>Updated On</th>
267
                            <th>Approved Timestamp</th>
268
 
269
                        </tr>
270
                            #if(!$pastrefferal.isEmpty())
271
                                #foreach( $pastrefferalModel in $pastrefferal )
272
                                <tr class="refferal-table" data="$pastrefferalModel.getId()">
273
                                    <td>$pastrefferalModel.getId()</td>
274
                                    <td>$pastrefferalModel.getRefereeName()</td>
275
                                    <td>$pastrefferalModel.getRefereeEmail()</td>
276
                                    #if($customerRetailerMap.get($pastrefferalModel.getRefereeEmail()).getBusinessName())
277
                                        <td>$customerRetailerMap.get($pastrefferalModel.getRefereeEmail()).getBusinessName()</td>
278
                                    #else
279
                                        <td></td>
280
                                    #end
281
                                    <td>$pastrefferalModel.getRefereeMobile()</td>
282
                                    <td>$pastrefferalModel.getFirstName() $pastrefferalModel.getLastName()</td>
283
                                    <td>$pastrefferalModel.getMobile()</td>
284
                                    <td>$pastrefferalModel.getCity()</td>
285
                                    <td>$pastrefferalModel.getState()</td>
286
                                    <td>$pastrefferalModel.getCreatedTimestamp().format($dateTimeFormatter)</td>
287
                                    <td>$pastrefferalModel.getUpdatedTimestamp().format($dateTimeFormatter)</td>
288
                                    #if($pastrefferalModel.getApprovedTimestamp())
289
                                        <td>$pastrefferalModel.getApprovedTimestamp().format($dateTimeFormatter)</td>
290
                                    #else
291
                                        <td></td>
292
                                    #end
293
 
294
                                </tr>
295
                                #end
296
                            #else
297
                            <tr>
298
                                <td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
299
                            </tr>
300
                            #end
301
                        </tbody>
302
                    </table>
303
                </div>
304
            </div>
305
        </div>
306
 
307
    #end
308
 
309
 
310
</section>