Subversion Repositories SmartDukaan

Rev

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

<style>
        .table-striped > tbody > tr:nth-child(odd) > td{
                background: white;
                background-color: white;
        }
        .table-striped > tbody > tr:nth-child(even) > td{
                background: white;
                background-color:white;
        }
        .table-striped > tbody > tr:hover > td,
        .table-striped > tbody > tr:hover {
                background-color: #e98c8f;
                color:white;
        }
        .btn:hover{
                color: grey;
                text-decoration: none;
        }
        .btn-primary:hover{
                color: grey;
                text-decoration: none;
        }
        .sale-details{
                cursor:pointer;
        }
</style>
<script type="text/javascript">
  
        $('input[name="extendDatetime"]').daterangepicker(getSingleDatePicker(), dateRangeCallback);
        
        getItemAheadOptions($("#scheme-item-search-text"),function(selectedItem){
                currentItem = selectedItem;
        });
        
        $(document).ready(function() {
        console.log('$partnerType')
         $('#partner-category').val('$partnerType');
         });
</script>

<section class="wrapper">
        <div class="row">
                <div class="col-lg-12">
                        <h3 class="page-header"><i class="icon_document_alt"></i>SCHEME</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>SCHEMES</li>                                                       
                        </ol>
                </div>
        </div>
        <table style="Width:100%">
                <tr>
                        <td align="left" style="Width:20%">
                                #if($roleType == "true")
                                <div class="scheme-extendAll">
                                <div class="row">
                                <div class="col-lg-12">
                                                <div class="input-group">
                                                                <input  placeholder = "Extend Date Time" id="extendDatetime" name="extendDatetime" type="text" value="" class="form-control">
                                                                 <span class="input-group-btn"> <button class="btn btn-primary submit" id="extendDatetime-button" type="button">Extend All</button></span>
                                                                  </div>
                                                </div>  
                        </div>
                        #end
                        #if($roleType == "true")
                        <div class="row" style ="margin-top:12px">
                                <div class="col-lg-6  form-group ">
                                                <select  class="form-control input-sm" id = "partner-category" name = "partner-category" placeholder="Category">
                                                        <option value="" disabled selected>Category</option>
                                                        <option value="NEW">NEW</option>
                                                        <option value="BRONZE">BRONZE</option>
                                                        <option value="SILVER">SILVER</option>
                                                        <option value="GOLD">GOLD</option>
                                                        <option value="DIAMOND">DIAMOND</option>
                                                    <option value="PLATINUM">PLATINUM</option>
                                                </select>
                                </div>
                                <div class="col-lg-6">
                                        <button class="btn btn-primary categoryWiseSchemeHistory" type="button" style="width:100%; border-radius:0px;">Submit</button>
                                </div>
                             </div>
                             #end
                </td>
                <td style="float:right">
                        #if(!$searchItem.equals(""))
                        <div style="padding:12px">
                                <span> DP - $dp</span><br>
                                <span> MOP - $mop</span>
                        </div>
                        #end
                </td>
                <td style="Width:30%">
                                <div id="scheme-item-search">
                                <div class="row">
                                <div class="col-lg-12 form-group pull-right top_search">
                                  <div class="input-group">
                                    <input type="text" class="form-control" id="scheme-item-search-text"  autocomplete="off" placeholder="Search for Item" value="$searchItem"  />
                                    <span class="input-group-btn">
                                      <button class="btn btn-primary submit" id="scheme-item-search-button" type="button">Go!</button>
                                    </span>
                                  </div>
                                </div>
                          </div>
                                        </div>
                        </div>
                                <div id="scheme-search">
                                        <div class="row">
                                    <div class="col-lg-12 form-group pull-right top_search">
                                      <div class="input-group">
                                        <input type="text" class="form-control" id="scheme-search-text"  placeholder="Search for schemeID..." value="$searchTerm" />
                                        <span class="input-group-btn">
                                          <button class="btn btn-primary submit" id="scheme-search-button" type="button">Go!</button>
                                        </span>
                                          </div>
                                                </div>
                                        </div>
                                </div>
                        </td>
                </tr>
    </table>
        <div id="schemes-table">
                <div class="row">
                <div class="col-lg-12">
                        <table class="table table-striped table-advance table-hover">
                                <tbody>
                                        <tr>
                                                <th>ID</th>
                                                <th>Name</th>
                                                <th>Description</th>
                                                <th>Type</th>
                                                <th>Amount</th>
                                                <th>Start Date</th>
                                                <th>End Date</th>
                                                <th>Created On</th>
                                                <th>Active</th>
                                                <th>Expire</th>
                                        </tr>
                                        #if(!$schemes.isEmpty())
                                                #foreach( $scheme in $schemes )
                                                        <tr class="scheme-details" data="$scheme.getId()">
                                                                <td>$scheme.getId()</td>
                                                                <td>$scheme.getName()</td>
                                                                <td>$scheme.getDescription()</td>
                                                                <td>$scheme.getType()</td>
                                                                <td>$scheme.getAmountModel()</td>
                                                                <td>$scheme.getFormattedStartDateTime()</td>
                                                                <td>$dateTimeFormatter.format($scheme.getEndDateTime())</td>
                                                                <td>$scheme.getFormattedCreateTimestamp()</td>
                                                                #if(($scheme.getActiveTimestamp()) && (!$scheme.getExpireTimestamp()))
                                                                        <td><i class="fa fa-check" aria-hidden="true"></i></td>
                                                                #else
                                                                        <td><i class="fa fa-times" aria-hidden="true"></i></td>
                                                                #end
                                                                #if($scheme.getExpireTimestamp())
                                                                        <td><i class="fa fa-check" aria-hidden="true"></i></td>
                                                                #else
                                                                        <td><i class="fa fa-times" aria-hidden="true"></i></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>
    #if(!$schemes.isEmpty())
        <div class="row" id="schemes-paginated">
                <div class="col-lg-9">
                        <p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
                </div>
                <div class="col-lg-3" style="text-align:right;">
                                <div class="btn-group" style="width:40%">
                                        <button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
                                </div>
                                <div class="btn-group" style="width:40%">
                                        #if($end >= $size)
                                                <button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
                                        #else
                                                <button class="btn btn-primary next" style="width:100%">Next</button>
                                        #end
                                </div>
                </div>
            </div>
            #if(!$searchItem.equals(""))
                    <div class="col-lg-12"> 
                    <h5>Note</h5> 
                                <b>Hygiene Payout</b> - This is basis the customer details entered in the system , pls refer to hygiene meter in your Dashboard.
                                <br><b>Tertiary Payout</b> - This is basis the activation of the handset.
                                <br><b>Investment Payout</b> - Investments in stocks should be above 90 for minimum 12 days in a month to earn 2% , between 8 d - 11 d will earn 1% , less then 8 days there will be no payout. 
                        </div>
            #end
    #end
</section>
<div id="scheme-details-container" style="background:white;background-color:white;">
</div>