Subversion Repositories SmartDukaan

Rev

Rev 23953 | Rev 25093 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23953 Rev 23973
Line 49... Line 49...
49
	<div id="sale-history-search">
49
	<div id="sale-history-search">
50
    	<div class="row">
50
    	<div class="row">
51
        	<div class="col-lg-2 form-group">
51
        	<div class="col-lg-2 form-group">
52
        		<select class="form-control" id = "searchType" name = "searchType" placeholder="Search Type">
52
        		<select class="form-control" id = "searchType" name = "searchType" placeholder="Search Type">
53
					<option value="" disabled selected>Search Type</option>
53
					<option value="" disabled selected>Search Type</option>
54
					#foreach($searchType in $searchTypes)
54
					#foreach($searchType1 in $searchTypes)
-
 
55
					#if($searchType.getValue()==$searchType1.getValue())
-
 
56
						<option value="$searchType1" selected>$searchType1.getValue()</option>
-
 
57
						#else
55
						<option value="$searchType">$searchType.getValue()</option>
58
						<option value="$searchType1">$searchType1.getValue()</option>
-
 
59
						#end
56
					#end
60
					#end
57
             	</select>
61
             	</select>
58
        	</div>
62
        	</div>
59
        	<div class="col-lg-3">
63
			#if($searchType.getValue()=="Date-Range")
60
            	<input type="text" class="form-control" id="sale-history-search-text"" placeholder="Search by" value="" />
-
 
61
        	</div>
-
 
62
        	<div class="col-lg-3">
64
        	<div class="col-lg-3">
63
				<div class="input-group">
65
				<div class="input-group">
64
					<input class="form-control" placeholder="Sale Period" id="saleDuration" type="text" value="">
66
					<input class="form-control" placeholder="Sale Period" id="saleDuration" type="text" value="$searchValue">
65
				</div>
67
				</div>
66
			</div>
68
			</div>
-
 
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
67
			<div class="col-lg-1">
78
			<div class="col-lg-1">
68
              	<button class="btn btn-primary submit" id="sale-history-search-button" type="button">Search</button>
79
              	<button class="btn btn-primary submit" id="sale-history-search-button" type="button">Search</button>
69
			</div>
80
			</div>
70
        			
81
        			
71
       	</div>
82
       	</div>
Line 77... Line 88...
77
	    			<tbody>
88
	    			<tbody>
78
	    				<tr>
89
	    				<tr>
79
	    					<th>Invoice Number</th>
90
	    					<th>Invoice Number</th>
80
	    					<th>Total Amount</th>
91
	    					<th>Total Amount</th>
81
	    					<th>Created On</th>
92
	    					<th>Created On</th>
-
 
93
	    					<th>View Details</th>
82
	    				</tr>
94
	    				</tr>
83
	    				#if(!$saleHistories.isEmpty())
95
	    				#if(!$saleHistories.isEmpty())
84
			    			#foreach( $saleHistory in $saleHistories )
96
			    			#foreach( $saleHistory in $saleHistories )
85
			    				<tr class="sale-details" data="$saleHistory.getId()">
97
			    				<tr class="sale-details" data="$saleHistory.getId()">
86
			    					<td>$saleHistory.getInvoiceNumber()</td>
98
			    					<td>$saleHistory.getInvoiceNumber()</td>
87
			    					<td>$saleHistory.getTotalAmount()</td>
99
			    					<td>$saleHistory.getTotalAmount()</td>
88
			    					<td>$saleHistory.getFormattedDate()</td>
100
			    					<td>$saleHistory.getFormattedDate()</td>
-
 
101
			    					<td><button class="btn btn-primary">View</button</td>
89
			    				</tr>
102
			    				</tr>
90
			    			#end
103
			    			#end
91
		    			#else
104
		    			#else
92
		    				<tr>
105
		    				<tr>
93
		    					<td colspan="6" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
106
		    					<td colspan="6" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>