Subversion Repositories SmartDukaan

Rev

Rev 23953 | Rev 25093 | 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>
81
 
22245 ashik.ali 82
       	</div>
83
   	</div>
84
  	<div id="sale-history-table">
85
		<div class="row">
86
	    	<div class="col-lg-12">
87
	    		<table class="table table-striped table-advance table-hover">
88
	    			<tbody>
89
	    				<tr>
90
	    					<th>Invoice Number</th>
91
	    					<th>Total Amount</th>
92
	    					<th>Created On</th>
23973 govind 93
	    					<th>View Details</th>
22245 ashik.ali 94
	    				</tr>
95
	    				#if(!$saleHistories.isEmpty())
96
			    			#foreach( $saleHistory in $saleHistories )
97
			    				<tr class="sale-details" data="$saleHistory.getId()">
98
			    					<td>$saleHistory.getInvoiceNumber()</td>
99
			    					<td>$saleHistory.getTotalAmount()</td>
100
			    					<td>$saleHistory.getFormattedDate()</td>
23973 govind 101
			    					<td><button class="btn btn-primary">View</button</td>
22245 ashik.ali 102
			    				</tr>
103
			    			#end
104
		    			#else
105
		    				<tr>
106
		    					<td colspan="6" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
107
		    				</tr>
108
		    			#end
109
	    			</tbody>
110
	    		</table>
111
	    	</div>
112
	    </div>
113
    </div>
114
    #if(!$saleHistories.isEmpty())
115
    	<div class="row" id="sale-history-paginated">
116
    		<div class="col-lg-9">
117
    			<p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
118
    		</div>
119
    		<div class="col-lg-3" style="text-align:right;">
120
				<div class="btn-group" style="width:40%">
121
					<button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
122
				</div>
123
				<div class="btn-group" style="width:40%">
124
					#if($end >= $size)
125
						<button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
126
					#else
127
						<button class="btn btn-primary next" style="width:100%">Next</button>
128
					#end
129
				</div>
130
	    	</div>
131
	    </div>
132
    #end
133
</section>
134
<div id="sale-details-container" style="background:white;background-color:white;">
135
</div>