Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
22860 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;
22860 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>
23914 govind 27
<script type="text/javascript">
28
 
29
	$('input[name="extendDatetime"]').daterangepicker(getSingleDatePicker(), dateRangeCallback);
26498 amit.gupta 30
 
27618 tejbeer 31
	getItemAheadOptions($("#scheme-item-search-text"),false,function(selectedItem){
26498 amit.gupta 32
		currentItem = selectedItem;
33
	});
26912 tejbeer 34
 
35
	$(document).ready(function() {
36
	console.log('$partnerType')
37
	 $('#partner-category').val('$partnerType');
38
	 });
26498 amit.gupta 39
</script>
22860 ashik.ali 40
 
23343 ashik.ali 41
<section class="wrapper">
22860 ashik.ali 42
	<div class="row">
43
		<div class="col-lg-12">
27659 tejbeer 44
			<h3 class="page-header"><i class="icon_document_alt"></i>MARGINS</h3>
22860 ashik.ali 45
			<ol class="breadcrumb">
46
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
27659 tejbeer 47
				<li><i class="icon_document_alt"></i>MARGINS</li>						  	
22860 ashik.ali 48
			</ol>
49
		</div>
50
	</div>
23914 govind 51
	<table style="Width:100%">
27407 amit.gupta 52
		<tr>
53
			<td align="left" style="Width:20%">
54
				#if($roleType == "true")
55
			 	<div class="scheme-extendAll">
56
		    		<div class="row">
57
		    		<div class="col-lg-12">
58
						<div class="input-group">
59
								<input  placeholder = "Extend Date Time" id="extendDatetime" name="extendDatetime" type="text" value="" class="form-control">
60
								 <span class="input-group-btn"> <button class="btn btn-primary submit" id="extendDatetime-button" type="button">Extend All</button></span>
61
								  </div>
62
						</div>	
63
		        </div>
64
		        #end
65
		        #if($roleType == "true")
66
		        <div class="row" style ="margin-top:12px">
67
		    		<div class="col-lg-6  form-group ">
68
						<select  class="form-control input-sm" id = "partner-category" name = "partner-category" placeholder="Category">
69
							<option value="" disabled selected>Category</option>
70
							<option value="NEW">NEW</option>
71
							<option value="BRONZE">BRONZE</option>
72
							<option value="SILVER">SILVER</option>
73
							<option value="GOLD">GOLD</option>
74
							<option value="DIAMOND">DIAMOND</option>
75
						    <option value="PLATINUM">PLATINUM</option>
76
						</select>
77
			     	</div>
78
			     	<div class="col-lg-6">
79
			    		<button class="btn btn-primary categoryWiseSchemeHistory" type="button" style="width:100%; border-radius:0px;">Submit</button>
80
			      	</div>
81
			     </div>
82
			     #end
83
	        </td>
84
	        <td style="float:right">
27627 tejbeer 85
	        	#if(!$searchItem.equals("") && !$schemes.isEmpty())
27407 amit.gupta 86
	        	<div style="padding:12px">
87
	        		<span> DP - $dp</span><br>
88
	        		<span> MOP - $mop</span>
89
	        	</div>
27627 tejbeer 90
	        	#elseif(!$searchItem.equals("") && $schemes.isEmpty() )
91
	        	<div style="padding:12px">
92
	        		<span> DP - 0</span><br>
93
	        		<span> MOP - 0</span>
94
	        	</div>
95
 
27407 amit.gupta 96
	        	#end
27627 tejbeer 97
 
98
 
27407 amit.gupta 99
	        </td>
100
	        <td style="Width:30%">
101
				<div id="scheme-item-search">
102
	    			<div class="row">
103
	                	<div class="col-lg-12 form-group pull-right top_search">
104
		                  <div class="input-group">
27424 tejbeer 105
		                    <input type="text" class="form-control" id="scheme-item-search-text"  autocomplete="off" placeholder="Search for Item" value="$searchItem"  />
27407 amit.gupta 106
		                    <span class="input-group-btn">
107
		                      <button class="btn btn-primary submit" id="scheme-item-search-button" type="button">Go!</button>
108
		                    </span>
109
		                  </div>
110
		                </div>
111
	    	          </div>
112
					</div>
113
		        </div>
114
				<div id="scheme-search">
115
					<div class="row">
116
			            <div class="col-lg-12 form-group pull-right top_search">
117
			              <div class="input-group">
27424 tejbeer 118
			                <input type="text" class="form-control" id="scheme-search-text"  placeholder="Search for schemeID..." value="$searchTerm" />
27407 amit.gupta 119
			                <span class="input-group-btn">
120
			                  <button class="btn btn-primary submit" id="scheme-search-button" type="button">Go!</button>
121
			                </span>
122
				          </div>
123
						</div>
124
					</div>
125
				</div>
126
			</td>
127
		</tr>
128
    </table>
22860 ashik.ali 129
  	<div id="schemes-table">
130
		<div class="row">
131
	    	<div class="col-lg-12">
132
	    		<table class="table table-striped table-advance table-hover">
133
	    			<tbody>
134
	    				<tr>
23752 govind 135
	    					<th>ID</th>
22860 ashik.ali 136
	    					<th>Name</th>
137
	    					<th>Description</th>
138
	    					<th>Type</th>
139
	    					<th>Amount</th>
23914 govind 140
	    					<th>Start Date</th>
141
	    					<th>End Date</th>
22860 ashik.ali 142
	    					<th>Created On</th>
143
	    					<th>Active</th>
144
	    					<th>Expire</th>
145
	    				</tr>
27627 tejbeer 146
	    				#if($schemes && !$schemes.isEmpty())
22860 ashik.ali 147
			    			#foreach( $scheme in $schemes )
148
			    				<tr class="scheme-details" data="$scheme.getId()">
23752 govind 149
			    					<td>$scheme.getId()</td>
22860 ashik.ali 150
			    					<td>$scheme.getName()</td>
151
			    					<td>$scheme.getDescription()</td>
152
			    					<td>$scheme.getType()</td>
27395 amit.gupta 153
			    					<td>$scheme.getAmountModel()</td>
23026 ashik.ali 154
			    					<td>$scheme.getFormattedStartDateTime()</td>
25211 amit.gupta 155
			    					<td>$dateTimeFormatter.format($scheme.getEndDateTime())</td>
22860 ashik.ali 156
			    					<td>$scheme.getFormattedCreateTimestamp()</td>
157
			    					#if(($scheme.getActiveTimestamp()) && (!$scheme.getExpireTimestamp()))
158
			    						<td><i class="fa fa-check" aria-hidden="true"></i></td>
159
			    					#else
160
			    						<td><i class="fa fa-times" aria-hidden="true"></i></td>
161
			    					#end
162
			    					#if($scheme.getExpireTimestamp())
163
			    						<td><i class="fa fa-check" aria-hidden="true"></i></td>
164
			    					#else
165
			    						<td><i class="fa fa-times" aria-hidden="true"></i></td>
166
			    					#end
167
			    				</tr>
168
			    			#end
169
		    			#else
170
		    				<tr>
171
		    					<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
172
		    				</tr>
173
		    			#end
174
	    			</tbody>
175
	    		</table>
176
	    	</div>
177
	    </div>
178
    </div>
27627 tejbeer 179
    #if($schemes && !$schemes.isEmpty())
22860 ashik.ali 180
    	<div class="row" id="schemes-paginated">
181
    		<div class="col-lg-9">
182
    			<p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
183
    		</div>
184
    		<div class="col-lg-3" style="text-align:right;">
185
				<div class="btn-group" style="width:40%">
186
					<button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
187
				</div>
188
				<div class="btn-group" style="width:40%">
189
					#if($end >= $size)
190
						<button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
191
					#else
192
						<button class="btn btn-primary next" style="width:100%">Next</button>
193
					#end
194
				</div>
195
	    	</div>
196
	    </div>
27627 tejbeer 197
	    #end
27407 amit.gupta 198
	    #if(!$searchItem.equals(""))
199
		    <div class="col-lg-12"> 
200
		    <h5>Note</h5> 
27760 amit.gupta 201
				<b>Hygiene Payout</b> - This is basis the customer details entered in the system, pls refer to hygiene meter in your Dashboard.
27407 amit.gupta 202
				<br><b>Tertiary Payout</b> - This is basis the activation of the handset.
27760 amit.gupta 203
				<br><b>Investment Payout</b> - Investments in stocks should be above 90% for minimum 12 days in a month to earn 2%, between 8-11 days will earn 1%, less then 8 days there will be no payout. 
27407 amit.gupta 204
			</div>
205
	    #end
27627 tejbeer 206
 
22860 ashik.ali 207
</section>
208
<div id="scheme-details-container" style="background:white;background-color:white;">
209
</div>