Subversion Repositories SmartDukaan

Rev

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