Subversion Repositories SmartDukaan

Rev

Rev 27541 | Rev 27599 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
27538 tejbeer 1
			<div class="col-lg-12">
2
				 <table id="warehouseBrandItemStock" class="table table-striped table-advance table-hover">
3
				 <thead>
4
	    			<tr>
5
	    			    <th>W/H Name</th>
6
	    				<th>Item</th>
7
	    				<th>Unit Price</th>
8
	    				<th>Stock Qty</th>
9
	    				<th>Stock Value</th>
10
	    				<th>Pending Indent</th>
27541 tejbeer 11
	    				<th>Tertiary</th>
27538 tejbeer 12
	    				<th>&lt;10</th>
13
	    				<th>&lt;20</th>
14
	    				<th>&lt;30</th>
15
	    				<th>&gt;30</th>
16
 
17
	    			 </tr>
18
				 </thead>
19
	    			<tbody>
20
	    			    #foreach($key in $warehouseWiseItemStock)
21
	    				<tr>
22
	    				<td>$key.getWarehouseName()</td>
23
	    	 		     <td>$key.getBrand() $key.getModelName() $key.getModelNumber() $key.getColor()</td>
24
	    	 		     <td>$key.getUnitPrice()</td>
25
	    	 		     <td>$key.getStockQty()</td>
26
	    	 		     <td class="currency">$key.getStockValue()</td> 
27
	    	 		      <td>$key.getPendingIndent()</td>
27541 tejbeer 28
	    	 		      <td>$key.getTertiary()</td>
29
	    	 		       <td>$key.getDlt10()</td>
30
	    	 		        <td>$key.getD10to20()</td>
31
	    	 		         <td>$key.getD20to30()</td>
32
	    	 		         <td>$key.getDgt30()</td>
27538 tejbeer 33
	    				</tr>
34
	    				 #end
35
 
36
	    		    </tbody>
37
	    		</table>
38
			</div>
39
 
40
<script type="text/javascript">
41
$(document).ready(function() {
27550 tejbeer 42
 
43
   $('#warehouseBrandItemStock thead tr').clone(true).appendTo( '#warehouseBrandItemStock thead' );
44
    $('#warehouseBrandItemStock thead tr:eq(1) th').each( function (i) {
45
        var title = $(this).text();
46
        $(this).html( '<input type="text" style = "width:60%;" placeholder="Search '+title+'" />' );
47
 
48
        $( 'input', this ).on( 'keyup change', function () {
49
            if ( table.column(i).search() !== this.value ) {
50
                table
51
                    .column(i)
52
                    .search( this.value )
53
                    .draw();
54
            }
55
        } );
56
    } )
57
  var table = $('#warehouseBrandItemStock').DataTable( {
58
        orderCellsTop: true,
59
        fixedHeader: true
60
    } );
27538 tejbeer 61
});
62
 
63
 
64
 
65
</script>