Subversion Repositories SmartDukaan

Rev

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

<style>
        
        .btn:hover{
                color: grey;
                text-decoration: none;
        }
        .btn-info:hover{
                color: grey;
                text-decoration: none;
        }
}
</style>
<section class="wrapper">     
        <div class="row">
                <div class="col-lg-12">
                        <h3 class="page-header"><i class="icon_document_alt"></i>PriceDrop</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>PriceDrop</li>
                        </ol>
                </div>
        </div>
        
    <div class="price-drop-table">
          <div class="row">
                        <div class="col-lg-12" id="priceDrop" >
                                <table class="table table-striped table-condensed table-bordered">
                                <thead>
                                    <tr>
                                        <th>ItemId</th>
                                                        <th>ItemDescription</th>
                                                        <th>PriceDrop<br/>Amount</th>
                                                        <th>AffetcedOn</th>
                                                        <th>Cashback<br/>Amount</th>
                                                        <th>Process</th>
                                                        <th>Download<br/>IMEI<br/>For<br/>Partners</th>
                                                        <th>Download<br/>All<br/>IMEI</th>
                                                        
                                    </tr>
                                </thead>
                                        <tbody>
                                                #foreach($priceDrop in $priceDrops )
                                                <tr>
                                                        <td>$priceDrop.getItemId()</td>
                                                        <td>$itemIdDescriptions.get($priceDrop.getItemId())</td>
                                                        <td>$priceDrop.getAmount()</td>
                                                        <td>$priceDrop.getAffectedon()</td>
                                                        #if($priceDrop.getProcessTimestamp())
                                                        <td>$priceDrop.getCashbackAmount()</td>
                                                        <td>$priceDrop.getDate($priceDrop.getProcessTimestamp())</td>   
                                                        #else
                                                        <td><div><input type="number"  id="$priceDrop.getId()" name="processedamount" placeholder = "$priceDrop.getAmount()"   class="form-control phone input-sm"/>
                                                        <input class="btn btn-info btn-sm" data-cashback="$priceDrop.getId()" style="width:35%;border-radius:0px;" type="submit" value="Cashback" id="cashTopartner"/>
                                                        </div></td>
                                                        <td>Not Processed</td>
                                                                
                                                        #end
                                                <td><input class="btn btn-info btn-sm" data-download="$priceDrop.getId()" style="width:100%;border-radius:0px;" type="submit" value="Download" id="download"/></td>
                                                        <td><input class="btn btn-info btn-sm" data-pricedropidfortotalimei="$priceDrop.getId()" style="width:100%;border-radius:0px;"  value="Download" type="submit" id="downloadtotalIMEI"/></td>
                                                        </tr>
                                                #end
                                        </tbody>
                                </table>
                                </div>
                                </div>
                                </div>
                                </section>
                                
                                <script type="text/javascript">
$(document).ready(function() {
  priceDropTable = $('#priceDrop').find('table').DataTable({
  "pageLength": 10,
  order:[[ 5, 'desc' ]]
  });
  });
</script>