Subversion Repositories SmartDukaan

Rev

Rev 23884 | Rev 23889 | 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();
32
    	$('#saleDuration').daterangepicker(getRangedDatePicker(true), datePickerCallback);
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)
55
						#if($searchType == "CUSTOMER_NAME")
56
							<option value="$searchType">Customer Name</option>
57
						#elseif($searchType == "CUSTOMER_MOBILE_NUMBER")
58
							<option value="$searchType">Customer Mobile Number</option>
59
						#elseif($searchType == "ITEM_NAME")
60
							<option value="$searchType">Item Name</option>
61
						#else
62
							<option value="$searchType">$searchType</option>
63
						#end
64
					#end
23203 ashik.ali 65
             	</select>
66
        	</div>
67
        	<div class="col-lg-3">
68
            	<input type="text" class="form-control" id="sale-history-search-text"" placeholder="Search by" value="" />
69
        	</div>
23886 amit.gupta 70
        	<div class="col-lg-3">
23203 ashik.ali 71
				<div class="input-group">
23886 amit.gupta 72
					<input class="form-control" placeholder="Sale Period" id="saleDuration" type="text" value="">
23203 ashik.ali 73
				</div>
74
			</div>
23886 amit.gupta 75
			<div class="col-lg-1">
23203 ashik.ali 76
              	<button class="btn btn-primary submit" id="sale-history-search-button" type="button">Search</button>
77
			</div>
78
 
22245 ashik.ali 79
       	</div>
80
   	</div>
81
  	<div id="sale-history-table">
82
		<div class="row">
83
	    	<div class="col-lg-12">
84
	    		<table class="table table-striped table-advance table-hover">
85
	    			<tbody>
86
	    				<tr>
87
	    					<th>Invoice Number</th>
88
	    					<th>Total Amount</th>
89
	    					<th>Created On</th>
90
	    				</tr>
91
	    				#if(!$saleHistories.isEmpty())
92
			    			#foreach( $saleHistory in $saleHistories )
93
			    				<tr class="sale-details" data="$saleHistory.getId()">
94
			    					<td>$saleHistory.getInvoiceNumber()</td>
95
			    					<td>$saleHistory.getTotalAmount()</td>
96
			    					<td>$saleHistory.getFormattedDate()</td>
97
			    				</tr>
98
			    			#end
99
		    			#else
100
		    				<tr>
101
		    					<td colspan="6" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
102
		    				</tr>
103
		    			#end
104
	    			</tbody>
105
	    		</table>
106
	    	</div>
107
	    </div>
108
    </div>
109
    #if(!$saleHistories.isEmpty())
110
    	<div class="row" id="sale-history-paginated">
111
    		<div class="col-lg-9">
112
    			<p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
113
    		</div>
114
    		<div class="col-lg-3" style="text-align:right;">
115
				<div class="btn-group" style="width:40%">
116
					<button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
117
				</div>
118
				<div class="btn-group" style="width:40%">
119
					#if($end >= $size)
120
						<button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
121
					#else
122
						<button class="btn btn-primary next" style="width:100%">Next</button>
123
					#end
124
				</div>
125
	    	</div>
126
	    </div>
127
    #end
128
</section>
129
<div id="sale-details-container" style="background:white;background-color:white;">
130
</div>