Subversion Repositories SmartDukaan

Rev

Rev 26766 | Rev 29878 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed


<section class="wrapper">
        <div class="row">
                <div class="col-lg-12">
                        <h3 class="page-header"><i class="icon_document_alt"></i>Approve REFFERALs</h3>
                        <ol class="breadcrumb">
                                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
                                <li><i class="icon_document_alt"></i>Approve Refferals</li>                                                     
                        </ol>
                </div>
        </div>
        
#if(!$oldApproved.isEmpty())
 <h4 class="modelHeaderCustom" style="font-size:22px;padding:10px;">$oldMonth Refferals</h4>
  #foreach($oApproved in $oldApproved.keySet())
 <div class="row">
         
        <div class="col-lg-2 form-group">
                                <input placeholder="month" id="oldMonth" name="oldMonth" type="text" value="$oldMonth" class="form-control input-sm" readonly>
                </div>
                
                  <div class="col-lg-2 form-group">
                                        <input placeholder="refereeEmail" id="refereeEmail" name="refereeEmail" type="text" value="$oApproved" class="form-control input-sm" readonly>
                </div>  
       <div class="col-lg-2 form-group">
                                <input placeholder="Count" id="oldMonthCount" name="oldMonthCount" type="text" value="$oldApproved.get($oApproved)" class="form-control input-sm" readonly>
                </div>
                #if($oldApproved.get($oApproved) <= 4)
                #set($mul =$oldApproved.get($oApproved) * 5000)
            <div class="col-lg-2 form-group">
                                        <input placeholder="Amount" id="oldMonthrefferalAmount" name="oldMonthrefferalAmount" type="text" value="$mul" class="form-control input-sm" readonly>
                    </div>
                #elseif($oldApproved.get($oApproved) <= 9)'
                        #set($mul = $oldApproved.get($oApproved)* 10000)
                <div class="col-lg-2 form-group">
                                        <input placeholder="Amount" id="oldMonthrefferalAmount" name="oldMonthrefferalAmount" type="text" value="$mul" class="form-control input-sm" readonly>
                </div>
                #elseif($oldApproved.get($oApproved) >=10)
                <div class="col-lg-2 form-group">
                                        <input placeholder="Amount" id="oldMonthrefferalAmount" name="oldMonthrefferalAmount" type="text" value="200000" class="form-control input-sm" readonly>
                </div>
                #end                    
        <div class="col-lg-2 form-group">
                        <button class="btn btn-primary" onclick="oldRefferalAmountSubmit(`$oApproved`,$oldApproved.get($oApproved),`$oldMonth`)" type="button">Add Money to Wallet</button>
        </div>
                                        
</div>  
#end
<div id="refferal-table">
                <div class="row">
                <div class="col-lg-12">
                        <table class="table table-striped table-advance table-hover">
                                <tbody>
                                        <tr>
                                                <th>Referee Id</th>
                                                <th>Referee Name</th>
                                                <th>Referee Email</th>
                                                <th>Referee Mobile</th>
                                                <th>Referal Name</th>
                                                <th>Mobile</th>
                                                <th>city</th>
                                                <th>state</th>
                                                <th>Created On</th>
                                                <th>Updated On</th>
                                                <th>Approved Timestamp</th>
                                                
                                        </tr>
                                                #if(!$oldPreMonthapproved.isEmpty())
                                                #foreach( $request in $oldPreMonthapproved )
                                                        <tr class="refferal-table" data="$request.getId()">
                                                                <td>$request.getId()</td>
                                                                <td>$request.getRefereeName()</td>
                                                                <td>$request.getRefereeEmail()</td>
                                                                <td>$request.getRefereeMobile()</td>
                                                                <td>$request.getFirstName() $request.getLastName()</td>
                                                                <td>$request.getMobile()</td>
                                                                <td>$request.getCity()</td>
                                                                <td>$request.getState()</td>
                                                                <td>$request.getCreatedTimestamp().format($dateTimeFormatter)</td>
                                                                <td>$request.getUpdatedTimestamp().format($dateTimeFormatter)</td>
                                                                #if($request.getApprovedTimestamp())
                                                                <td>$request.getApprovedTimestamp().format($dateTimeFormatter)</td>
                                                                #else
                                                                <td> </td>
                                                                #end
                                        
                                                        </tr>   
                                   #end
                                        #else
                                                <tr>
                                                        <td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
                                                </tr>
                                        #end
                                </tbody>
                        </table>
                </div>
            </div>
    </div>

#end

#if(!$preApproved.isEmpty())
<h4 class="modelHeaderCustom" style="font-size:22px;padding:10px;">$previousMonth Refferals</h4>
#foreach($pApproved in $preApproved.keySet())
<div class="row">
 
 <div class="col-lg-2 form-group">
                                <input placeholder="month" id="previousMonth" name="previousMonth" type="text" value="$previousMonth" class="form-control input-sm" readonly>
                </div>
                
                  <div class="col-lg-2 form-group">
                                        <input placeholder="refereeEmail" id="refereeEmail" name="refereeEmail" type="text" value="$pApproved" class="form-control input-sm" readonly>
                </div>  
                
       <div class="col-lg-2 form-group">
                                <input placeholder="Count" id="count" name="count" type="text" value="$preApproved.get($pApproved)" class="form-control input-sm" readonly>
                </div>
        #if($preApproved.get($pApproved) <= 4)
                #set($mul =$preApproved.get($pApproved) * 5000)
             <div class="col-lg-2 form-group">
                                        <input placeholder="Amount" id="refferalAmount" name="refferalAmount" type="text" value="$mul" class="form-control input-sm" readonly>
                </div>  
                #elseif($preApproved.get($pApproved) <= 9)'
                        #set($mul =$preApproved.get($pApproved)* 10000)
                    <div class="col-lg-2 form-group">
                                        <input placeholder="Amount" id="refferalAmount" name="refferalAmount" type="text" value="$mul" class="form-control input-sm" readonly>
                </div>  
                #elseif($preApproved.get($pApproved) >=10)
                    <div class="col-lg-2 form-group">
                                        <input placeholder="Amount" id="refferalAmount" name="refferalAmount" type="text" value="200000" class="form-control input-sm" readonly>
                </div>  
                #end
                
        <div class="col-lg-2 form-group">
                        <button class="btn btn-primary" type="button" onclick="refferalAmountSubmit(`$pApproved`,$preApproved.get($pApproved),`$previousMonth`)"> Add Money to wallet</button>
        </div>                  
        
</div>  
#end    
<div id="refferal-table">
                <div class="row">
                <div class="col-lg-12">
                        <table class="table table-striped table-advance table-hover">
                                <tbody>
                                        <tr>
                                                <th>Referee Id</th>
                                                <th>Referee Name</th>
                                                <th>Referee Email</th>
                                                <th>Referee Mobile</th>
                                                <th>Referal Name</th>
                                                <th>Mobile</th>
                                                <th>city</th>
                                                <th>state</th>
                                                <th>Created On</th>
                                                <th>Updated On</th>
                                                <th>Approved Timestamp</th>
                                                
                                        </tr>
                                                #if(!$preCurrMonthapproved.isEmpty())
                                                #foreach( $request in $preCurrMonthapproved )
                                                        <tr class="refferal-table" data="$request.getId()">
                                                                <td>$request.getId()</td>
                                                                <td>$request.getRefereeName()</td>
                                                                <td>$request.getRefereeEmail()</td>
                                                                <td>$request.getRefereeMobile()</td>
                                                                <td>$request.getFirstName() $request.getLastName()</td>
                                                                <td>$request.getMobile()</td>
                                                                <td>$request.getCity()</td>
                                                                <td>$request.getState()</td>
                                                                <td>$request.getCreatedTimestamp().format($dateTimeFormatter)</td>
                                                                <td>$request.getUpdatedTimestamp().format($dateTimeFormatter)</td>
                                                                #if($request.getApprovedTimestamp())
                                                                <td>$request.getApprovedTimestamp().format($dateTimeFormatter)</td>
                                                                #else
                                                                <td> </td>
                                                                #end
                                        
                                                        </tr>   
                                   #end
                                        #else
                                                <tr>
                                                        <td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
                                                </tr>
                                        #end
                                </tbody>
                        </table>
                </div>
            </div>
    </div>
#end            


#if($pastApproved)
<h4 class="modelHeaderCustom" style="font-size:22px;padding:10px;"> Refferals</h4>
#foreach($pstApproved in $pastApproved.keySet())
<div class="row">
 
                  <div class="col-lg-2 form-group">
                                        <input placeholder="refereeEmail" id="refereeEmail" name="refereeEmail" type="text" value="$pstApproved" class="form-control input-sm" readonly>
                </div>  
                
       <div class="col-lg-2 form-group">
                                <input placeholder="Count" id="count" name="count" type="text" value="$pastApproved.get($pstApproved)" class="form-control input-sm" readonly>
                </div>
        #if($pastApproved.get($pstApproved) <= 4)
                #set($mul =$pastApproved.get($pstApproved) * 5000)
             <div class="col-lg-2 form-group">
                                        <input placeholder="Amount" id="refferalAmount" name="refferalAmount" type="text" value="$mul" class="form-control input-sm" readonly>
                </div>  
                #elseif($pastApproved.get($pstApproved) <= 9)'
                        #set($mul =$pastApproved.get($pstApproved)* 10000)
                    <div class="col-lg-2 form-group">
                                        <input placeholder="Amount" id="refferalAmount" name="refferalAmount" type="text" value="$mul" class="form-control input-sm" readonly>
                </div>  
                #elseif($pastApproved.get($pstApproved) >=10)
                    <div class="col-lg-2 form-group">
                                        <input placeholder="Amount" id="refferalAmount" name="refferalAmount" type="text" value="200000" class="form-control input-sm" readonly>
                </div>  
                #end
                
        <div class="col-lg-2 form-group">
                        <button class="btn btn-primary" type="button" onclick="refferalAmountSubmit(`$pstApproved`,$pastApproved.get($pstApproved),`$previousMonth`)"> Add Money to wallet</button>
        </div>                  
        
</div>  
#end    
<div id="refferal-table">
                <div class="row">
                <div class="col-lg-12">
                        <table class="table table-striped table-advance table-hover">
                                <tbody>
                                        <tr>
                                                <th>Referee Id</th>
                                                <th>Referee Name</th>
                                                <th>Referee Email</th>
                                                <th>Referee Mobile</th>
                                                <th>Referal Name</th>
                                                <th>Mobile</th>
                                                <th>city</th>
                                                <th>state</th>
                                                <th>Created On</th>
                                                <th>Updated On</th>
                                                <th>Approved Timestamp</th>
                                                
                                        </tr>
                                                #if(!$pastrefferal.isEmpty())
                                                #foreach( $request in $pastrefferal )
                                                        <tr class="refferal-table" data="$request.getId()">
                                                                <td>$request.getId()</td>
                                                                <td>$request.getRefereeName()</td>
                                                                <td>$request.getRefereeEmail()</td>
                                                                <td>$request.getRefereeMobile()</td>
                                                                <td>$request.getFirstName() $request.getLastName()</td>
                                                                <td>$request.getMobile()</td>
                                                                <td>$request.getCity()</td>
                                                                <td>$request.getState()</td>
                                                                <td>$request.getCreatedTimestamp().format($dateTimeFormatter)</td>
                                                                <td>$request.getUpdatedTimestamp().format($dateTimeFormatter)</td>
                                                                #if($request.getApprovedTimestamp())
                                                                <td>$request.getApprovedTimestamp().format($dateTimeFormatter)</td>
                                                                #else
                                                                <td> </td>
                                                                #end
                                        
                                                        </tr>   
                                   #end
                                        #else
                                                <tr>
                                                        <td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
                                                </tr>
                                        #end
                                </tbody>
                        </table>
                </div>
            </div>
    </div>

#end    



        

        </section>