Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
22245 ashik.ali 1
<style>
2
	.table-striped > tbody > tr:nth-child(odd) > td{
3
  		background: white;
4
  		background-color: white;
5
	}
6
	.table-striped > tbody > tr:nth-child(even) > td{
7
  		background: white;
8
  		background-color:white;
9
	}
10
	.table-striped > tbody > tr:hover > td,
11
	.table-striped > tbody > tr:hover {
23181 ashik.ali 12
		background-color: #e98c8f;
22245 ashik.ali 13
	  	color:white;
14
	}
15
	.btn:hover{
16
  		color: grey;
17
  		text-decoration: none;
18
	}
19
	.btn-primary:hover{
20
  		color: grey;
21
  		text-decoration: none;
22
	}
23
	.sale-details{
24
		cursor:pointer;
25
	}
26
</style>
27
<script>
28
	$(function() {
29
 
23886 amit.gupta 30
    	var start = startDate || moment().subtract(29, 'days');
31
    	var end = endDate || moment();
23889 amit.gupta 32
    	$('#saleDuration').daterangepicker(getRangedDatePicker(true), dateRangeCallback);
22245 ashik.ali 33
 
34
 
35
	});
36
</script>
37
 
38
<section class="wrapper">            
39
	<div class="row">
40
		<div class="col-lg-12">
41
			<h3 class="page-header"><i class="icon_document_alt"></i>SALE HISTORY</h3>
42
			<ol class="breadcrumb">
43
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
44
				<li><i class="icon_document_alt"></i>SALE HISTORY</li>						  	
45
			</ol>
46
		</div>
47
	</div>
48
 
23203 ashik.ali 49
	<div id="sale-history-search">
22245 ashik.ali 50
    	<div class="row">
23203 ashik.ali 51
        	<div class="col-lg-2 form-group">
52
        		<select class="form-control" id = "searchType" name = "searchType" placeholder="Search Type">
53
					<option value="" disabled selected>Search Type</option>
23353 ashik.ali 54
					#foreach($searchType in $searchTypes)
23953 amit.gupta 55
						<option value="$searchType">$searchType.getValue()</option>
23353 ashik.ali 56
					#end
23203 ashik.ali 57
             	</select>
58
        	</div>
59
        	<div class="col-lg-3">
60
            	<input type="text" class="form-control" id="sale-history-search-text"" placeholder="Search by" value="" />
61
        	</div>
23886 amit.gupta 62
        	<div class="col-lg-3">
23203 ashik.ali 63
				<div class="input-group">
23886 amit.gupta 64
					<input class="form-control" placeholder="Sale Period" id="saleDuration" type="text" value="">
23203 ashik.ali 65
				</div>
66
			</div>
23886 amit.gupta 67
			<div class="col-lg-1">
23203 ashik.ali 68
              	<button class="btn btn-primary submit" id="sale-history-search-button" type="button">Search</button>
69
			</div>
70
 
22245 ashik.ali 71
       	</div>
72
   	</div>
73
  	<div id="sale-history-table">
74
		<div class="row">
75
	    	<div class="col-lg-12">
76
	    		<table class="table table-striped table-advance table-hover">
77
	    			<tbody>
78
	    				<tr>
79
	    					<th>Invoice Number</th>
80
	    					<th>Total Amount</th>
81
	    					<th>Created On</th>
82
	    				</tr>
83
	    				#if(!$saleHistories.isEmpty())
84
			    			#foreach( $saleHistory in $saleHistories )
85
			    				<tr class="sale-details" data="$saleHistory.getId()">
86
			    					<td>$saleHistory.getInvoiceNumber()</td>
87
			    					<td>$saleHistory.getTotalAmount()</td>
88
			    					<td>$saleHistory.getFormattedDate()</td>
89
			    				</tr>
90
			    			#end
91
		    			#else
92
		    				<tr>
93
		    					<td colspan="6" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
94
		    				</tr>
95
		    			#end
96
	    			</tbody>
97
	    		</table>
98
	    	</div>
99
	    </div>
100
    </div>
101
    #if(!$saleHistories.isEmpty())
102
    	<div class="row" id="sale-history-paginated">
103
    		<div class="col-lg-9">
104
    			<p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
105
    		</div>
106
    		<div class="col-lg-3" style="text-align:right;">
107
				<div class="btn-group" style="width:40%">
108
					<button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
109
				</div>
110
				<div class="btn-group" style="width:40%">
111
					#if($end >= $size)
112
						<button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
113
					#else
114
						<button class="btn btn-primary next" style="width:100%">Next</button>
115
					#end
116
				</div>
117
	    	</div>
118
	    </div>
119
    #end
120
</section>
121
<div id="sale-details-container" style="background:white;background-color:white;">
122
</div>