Subversion Repositories SmartDukaan

Rev

Rev 12171 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<span class="timestamp"  style="display:none;">$action.getLastProcessedTimestamp()</span>
<script type="text/javascript">
$(document).ready( function() {
  $('#table-comp').dataTable( {
    "bAutoWidth": false,
    "iDisplayLength": 15,
                "aoColumns": [
      null,
      null,
      null,
      null,
      null,
          null,
      null,
          null
    ],
    "aLengthMenu": [[15, 25 ,50, 100, -1], [15 ,25, 50, 100, "All"]]
  } );
} );
</script>
<table id="table-comp" style="width: 100%">
        <thead>
            <tr>
                <th>Item Id</th>
                                <th>Product Name</th>
                                <th>Deal Price</th>
                                <th>Saholic Price</th>
                                <th>Snapdeal Price</th>
                                <th>Flipkart Price</th>
                <th>Amazon Price</th>
                                <th>Price Difference</th>
            </tr>
        </thead>
        <tbody>
        #set($items = $action.getPdData())
    #foreach ( $item in $items )
            <tr style="border: 1px">
                <td style="text-align:center;">$item.getItem_id()</td>
                                <td style="text-align:center;">$item.getProductName()</td>
                                <td style="color:red;text-align:center;">$item.getDealPrice()</td>
                                <td style="text-align:center;">$item.getSaholicPrice()</td>
                                <td style="text-align:center;">$item.getSdPrice()</td>
                                <td style="text-align:center;">$item.getFkPrice()</td>
                                <td style="text-align:center;">$item.getAmazonPrice()</td>
                                <td style="text-align:center;">$item.getDiff()</td>
            </tr>
    #end
        </tbody>
    </table>