Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
28825 tejbeer 1
<div class="col-lg-12">
2
 
3
	<table id="warehouseActivatedItem" class="table table-striped table-advance table-hover">
4
		<thead>
5
	    	<tr>
6
	    				<th>W/H Name</th>
7
	    				<th>Item</th>
8
	    			    <th>LMS</th>
9
	    			    <th>LMS Qty</th>
10
	    				<th>LMTD</th>
11
	    				<th>LMTD Qty</th>
12
	    				 <th>MTD</th>
13
	    				 <th>MTD Qty</th>
14
 
15
	    			 </tr>
16
				 </thead>
17
	    			<tbody>
18
	    			    #foreach($activatedItem in $activatedItems)
19
	    				<tr>
20
 
21
	    	 		   	<td>$warehouseMap.get($activatedItem.getWarehouseId())</td>
22
	    	 		     <td>$activatedItem.getBrand()  $activatedItem.getModelNumber() ($activatedItem.getColor())</td>
23
	                      <td class="currency">$activatedItem.getLms()</td>
24
	                       <td class="currency">$activatedItem.getLmsQty()</td>
25
 
26
	                      <td class="currency">$activatedItem.getLmtd()</td>
27
	    	 		      <td class="currency">$activatedItem.getLmtdQty()</td>
28
	    	 		      <td class="currency">$activatedItem.getMtd()</td>
29
	    	 		      <td class="currency">$activatedItem.getMtdQty()</td>	
30
 
31
	    	 		   </tr>
32
 
33
	    				 #end
34
 
35
	    		    </tbody>
36
	    		</table>
37
		    </div>
38
 
39
 
40
 
41
 
42
 
43
 
44
 
45
<script type="text/javascript">
46
  $(document).ready(function() {
47
 
48
   $('#warehouseActivatedItem thead tr').clone(true).appendTo( '#warehouseActivatedItem thead' );
49
    $('#warehouseActivatedItem thead tr:eq(1) th').each( function (i) {
50
        var title = $(this).text();
51
        $(this).html( '<input type="text" style = "width:60%;" placeholder="Search '+title+'" />' );
52
 
53
        $( 'input', this ).on( 'keyup change', function () {
54
            if ( table.column(i).search() !== this.value ) {
55
                table
56
                    .column(i)
57
                    .search( this.value )
58
                    .draw();
59
            }
60
        } );
61
    } )
62
  var table = $('#warehouseActivatedItem').DataTable( {
63
        orderCellsTop: true,
64
        fixedHeader: true
65
    } );
66
});
67
 
68
 
69
 
70
 
71
</script>