Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
26010 amit.gupta 1
<!DOCTYPE html>
2
<html lang="en">
3
  <head>
4
    <meta charset="utf-8">
5
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
6
    <meta name="description" content="Smart Dukaan FOCO Dashboard">
7
    <meta name="author" content="smartdukaan">
8
    <!--<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">--> 
9
	<link rel="shortcut icon" href="assets/images/icons/favicon.png">
10
 
11
    <title>Smart Dukaan - FOCO Dashboard</title>
12
 
13
    <!-- Bootstrap CSS -->    
14
    <!-- bootstrap theme -->
15
    <!--external css-->
16
    <!-- font icon -->
17
    <link href="resources/css/elegant-icons-style.css" rel="stylesheet" />
18
    <link href="resources/css/font-awesome.min.css" rel="stylesheet" />    
19
    <!-- full calendar css-->
20
    <!-- owl carousel -->
21
    <link rel="stylesheet" href="resources/css/owl.carousel.css" type="text/css">
22
	<link href="resources/css/jquery-jvectormap-1.2.2.css" rel="stylesheet">
23
    <!-- Custom styles -->
24
	<link href="resources/css/widgets.css" rel="stylesheet">
25
    <link href="resources/css/style.css?v=${cssVersion}" rel="stylesheet">
26
    <link href="resources/css/card.css?v=${cssVersion}" rel="stylesheet">
27
    <link href="resources/css/style-responsive.css" rel="stylesheet" />
28
	<link href="resources/css/jquery-ui-1.10.4.min.css" rel="stylesheet">
29
    <link type="text/css" href="resources/css/bootstrap.css" rel="stylesheet">
30
	<!--<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/bootstrap/3/css/bootstrap.css" />-->
31
    <link href="resources/css/bootstrap-theme.min.css" rel="stylesheet">
32
	<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.css" />
33
 
34
	<link rel="stylesheet" type="text/css" href="resources/css/bootstrap-multiselect.css" />
27333 amit.gupta 35
	<link rel="stylesheet" type="text/css" href="resources/css/multi.min.css"/>
36
	<link rel="stylesheet" type="text/css" href="resources/css/slimselect.min.css"/>
37
	<link rel="stylesheet" type="text/css" href="resources/js/chosen.min.css"/>
26010 amit.gupta 38
	<link rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.10.16/css/dataTables.bootstrap.min.css"/>
39
	<link rel='stylesheet' href='https://use.fontawesome.com/releases/v5.7.0/css/all.css' integrity='sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ' crossorigin='anonymous'>
27412 amit.gupta 40
	<link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/css/select2.min.css" rel="stylesheet" />
41
 
26010 amit.gupta 42
	<style type="text/css">
43
		.loading {
44
  			display: none;
45
		}
46
		.breadcrumb {
47
    		padding: 0 15px;
48
    	}
49
 
50
    	.stars-outer {
51
		  display: inline-block;
52
		  position: relative;
53
		  font-family: FontAwesome;
54
		}
55
 
56
		.stars-outer::before {
57
		  content: "\f006 \f006 \f006 \f006 \f006";
58
		}
59
 
60
		.stars-inner {
61
		  position: absolute;
62
		  top: 0;
63
		  left: 0;
64
		  white-space: nowrap;
65
		  overflow: hidden;
66
		  width: 0;
67
		}
68
 
69
		.stars-inner::before {
70
		  content: "\f005 \f005 \f005 \f005 \f005";
71
		  color: #f8ce0b;
72
		}
73
 
74
 
75
	.table-striped > tbody > tr:nth-child(odd) > td{
76
  		background: white;
77
  		background-color: #dae5f4;
78
	}
79
	.table-striped > tbody > tr:nth-child(even) > td{
80
  		background:  #f2f2f2;
81
  		background-color: #b8d1f3;
82
	}
83
 
84
	.btn:hover{
85
  		color: grey;
86
  		text-decoration: none;
87
	}
88
	.btn-primary:hover{
89
  		color: grey;
90
  		text-decoration: none;
91
	}
92
	.sale-details{
93
		cursor:pointer;
94
	}
95
 
96
	.popover {
97
		min-width:18%;
98
	}
99
	.fa-2x {
100
		font-size:1.4em;
101
	}
102
	.cover {
103
	  object-fit: cover;
104
	  width: 100%;
105
	  height: 90px;
106
	  padding: 8px;
107
	}
108
	.info-box .notifications i {
109
    display: inline-block;
110
    margin-top:0px;
111
    height: 25px;
112
    font-size: 16px;
113
    line-height: 25px;
114
    width: 25px;
115
    float: none;
116
    text-align: center;
117
    padding-right: 0px;
118
    color:#768399;
119
  }
120
 
121
	#preview {
122
	  position: relative;
123
	  color: #fff;
124
	  float: left;
125
	  width: 100%;
126
	  -webkit-border-radius: 10px;
127
	  -moz-border-radius: 10px;
128
	  border-radius: 10px;
129
	  clear: both;
130
	}
131
	#canvas-preview{
132
	  width: 100%;
133
	  position: relative;
134
	  top:-15px;
135
	}
136
	#preview-textfield{
137
	  position: absolute; top: -10px; left: 0; right: 0;
138
	  text-align: center; font-size: 2em; font-weight: bold;
139
	  color: white; font-family: 'Amaranth', sans-serif;
140
	}
141
 
142
 
143
	</style>
26418 tejbeer 144
	<script type="text/javascript">
145
	function getAuthUser(authId){
146
 
26473 amit.gupta 147
		doGetAjaxRequestHandler(context + "/getAuthUserPartners?authId="+authId,
26418 tejbeer 148
			function(response) {
149
				$('#' + "main-content").html(response);
150
				console.log(response)
151
			});
152
	}
27509 tejbeer 153
 
154
		function getWarehouseBrandStock(warehouseId){
155
 
156
		doGetAjaxRequestHandler(context + "/getWarehouseWiseBrandStock?warehouseId="+warehouseId,
157
			function(response) {
158
				$('#' + "main-content").html(response);
159
				console.log(response)
160
			});
161
	}
26418 tejbeer 162
	</script>
163
 
26010 amit.gupta 164
  </head>
165
 
166
  <body style="zoom:90%;background-color:#f7f7f7">
167
  <!--<div class="loading"><img src="resources/images/icons/loading.gif"></div>-->
168
  <!-- container section start -->
169
  <section id="container">
170
 
171
 
172
      <header class="header dark-bg">
173
            <div class="toggle-nav">
174
                <div class="icon-reorder tooltips" data-original-title="Toggle Navigation" data-placement="bottom"><i class="icon_menu"></i></div>
175
            </div>
176
            <div class="top-nav notification-row">
177
                <!-- notificatoin dropdown start-->
178
                <ul class="nav pull-right top-menu">
179
                    <!-- user login dropdown start-->
180
                    <li class="dropdown">
181
                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
182
                            <span class="profile-ava">
183
                                <img class="avatar-custom" id="photo" alt="" src="">
184
                            </span>
185
                            <span class="username" id="fofo_name"></span>
186
                            <b class="caret"></b>
187
                        </a>
188
                        <ul class="dropdown-menu extended logout">
189
                            <div class="log-arrow-up"></div>
190
                            <li class="eborder-top">
191
                                <a class="change-auth-user-password" href="javascript:void(0);"><i class=""></i>Change Password</a>
192
                            </li>
193
                            <li>
194
                                <a href="${rc.contextPath}/logout"><i class="icon_key_alt" id = "logout"></i> Log Out</a>
195
                            </li>
196
                        </ul>
197
                    </li>
198
                    <!-- user login dropdown end -->
199
                </ul>
200
                <!-- notificatoin dropdown end-->
201
            </div>
202
      </header>      
203
      <!--header end-->
204
 
205
      <!--sidebar start-->
206
      <aside>
207
          <div id="sidebar"  class="nav-collapse ">
208
              <!-- sidebar menu start-->
209
              <ul class="sidebar-menu">                
210
              	  <li class="active">
211
                      <a class="" href="${rc.contextPath}/dashboard">
212
                          <i class="icon_house_alt"></i>
213
                          <span>Dashboard</span>
214
                      </a>
215
                  </li>
26512 amit.gupta 216
                  <li><a class="product-compare-info" href="javascript:void(0);">Product Compare</a></li>
26740 amit.gupta 217
                  <li><a class="web-listing" href="javascript:void(0);">Web Listing</a></li>
26958 tejbeer 218
                  <li><a class="banner-listing" href="javascript:void(0);">Banner Listing</a></li>
27520 amit.gupta 219
                  <li><a class="published-schemes" href="javascript:void(0);">Published Offers</a></li>
220
                  <li><a class="view-invoices" href="javascript:void(0);">View Invoices</a></li>
26014 amit.gupta 221
                  #foreach($menuItem in $menu)
222
		            <li class="sub-menu">
223
		              <a href="javascript:;" class="">
224
	                       <i class="icon_document_alt"></i>
225
	                       <span>$menuItem.getDisplayText()</span>
226
	                       <span class="menu-arrow arrow_carrot-right"></span>
227
		              </a>
228
					  <ul class="sub">
229
					  #foreach($subMenu in $menuItem.getSubMenus())
230
						  <li><a class="$subMenu.getActionClass()" href="javascript:void(0);">$subMenu.getDisplayText()</a></li>
231
					  #end
232
					</ul>
233
		           	</li>
26010 amit.gupta 234
                  #end
235
              </ul>
236
              <!-- sidebar menu end-->
237
          </div>
238
      </aside>
239
      <!--sidebar end-->
240
 
241
	<!--main content start-->
242
	<section id="main-content">
243
		<section class="wrapper">
244
          	<!--overview start-->
245
			<div class="row">
246
				<div class="col-lg-12">
247
					<h3 class="page-header"><i class="fa fa-laptop"></i> Dashboard</h3>
248
					<ol class="breadcrumb">
249
						<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
250
						<li><i class="fa fa-laptop"></i>Dashboard</li>						  	
251
					</ol>
252
				</div>
253
			</div>
254
			<!-- overview end -->
26418 tejbeer 255
 
26468 amit.gupta 256
			    #if($authIdAndallValues)
26418 tejbeer 257
				<div class="row">
258
 
259
					<div class="col-lg-6">
260
				 <table class="table table-striped table-advance table-hover">
261
	    			<tbody>
262
	    				<tr>
263
	    				<th>Sale Head</th>
26472 amit.gupta 264
	    				<th>Total Partners</th>
26418 tejbeer 265
	    				<th>lmtd</th>
266
	    				<th>mtd</th>
267
	    				<th>Hygiene</th>
27333 amit.gupta 268
	    				<th>Tickets</th>
269
	    				<th>Leads</th>
270
	    				<!--<th>In Stock Investment</th>
271
	    				<th>Total Investment</th>-->
26418 tejbeer 272
	    				</tr>
26460 amit.gupta 273
	    				#foreach($name in $authIdAndallValues.keySet())
26418 tejbeer 274
	    				<tr onclick="getAuthUser($name)">
26468 amit.gupta 275
	    	 		     <td>$authIdAndAuthUserMap.get($name).getFirstName() $authIdAndAuthUserMap.get($name).getLastName()</td>
276
	    	 		     <td>$authIdAndallValues.get($name).getCount()</td>
26418 tejbeer 277
	    	 		     <td class="currency">$authIdAndallValues.get($name).getLmtd()</td>
278
	    	 		     <td class="currency">$authIdAndallValues.get($name).getMtd()</td>
26460 amit.gupta 279
	    	 		     <td>$authIdAndallValues.get($name).getHygienePercentage()</td>
27333 amit.gupta 280
	    	 		     <td>$authIdAndallValues.get($name).getTicket()</td>
281
	    	 		     <td>$authIdAndallValues.get($name).getLeads()</td>
282
	    	 		     <!--<td class="currency">$authIdAndallValues.get($name).getInvestment().getInStockAmount()</td>
283
	    	 		     <td class="currency">$authIdAndallValues.get($name).getInvestment().getTotalInvestment()</td>-->
26418 tejbeer 284
 
285
	    				</tr>
286
	    				 #end
287
 
288
	    		    </tbody>
289
	    		</table>
290
						</div>
291
 
292
						<div class="col-lg-4">
293
						 <table class="table table-striped table-advance table-hover">
294
	    			<tbody>
295
	    				<tr>
27333 amit.gupta 296
	    				<th>W/H Location</th>
297
	    				<th>Total Stock</th>
298
	    				<th>Total Value</th>
26418 tejbeer 299
	    				</tr>
27509 tejbeer 300
	    				#foreach($key in $warehouseMap.keySet())
301
 
302
	    				<tr onclick="getWarehouseBrandStock($warehouseStockMap.get($key).getWarehouseId())">
303
	    					<td>$warehouseMap.get($key)</td>
304
	    					#if($warehouseStockMap.get($key).getStockQty())
305
	    					<td>$warehouseStockMap.get($key).getStockQty()</td>
306
	    					<td class="currency">$warehouseStockMap.get($key).getStockValue()</td>
307
	    					#else
308
	    					<td>0</td>
309
	    					<td>0</td>
310
	    					#end
311
 
312
 
313
 
26418 tejbeer 314
		                  </tr>
27509 tejbeer 315
 
26418 tejbeer 316
	    				 #end
317
 
318
 
319
	    		    </tbody>
320
	    		</table>
321
 
322
			 </div>
323
			</div>
324
 
325
			#end
326
 
26010 amit.gupta 327
			<div class="row">
26063 amit.gupta 328
				<div class="col-lg-6">
329
					<div class="row col-lg-4">
330
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>Reports</strong></h3>
26010 amit.gupta 331
					</div>
26063 amit.gupta 332
					<div class="row col-lg-12 info-box white-bg">
26214 amit.gupta 333
						<table class="table table-striped reports-table" style="display:none">
26063 amit.gupta 334
						    <tbody>
335
					    		<div class="list-group">
336
					            #foreach($reporticoProjectEntry in $reporticoProjectMap.entrySet())
337
						            #foreach($reporticoUrlInfo in $reporticoProjectEntry.getValue())
338
										  <a href="${rc.contextPath}/reports/${reporticoProjectEntry.getKey()}${reporticoUrlInfo.getUrl()}" class="list-group-item"
339
											  #if($reporticoUrlInfo.getParamsList())
340
											  data-paramslist="$vmUtils.htmlJson($reporticoUrlInfo.getParamsList())"
341
											  #end
342
										  >
343
										    <h4 class="list-group-item-heading">$reporticoUrlInfo.getTitle()</h4>
344
										    <p class="list-group-item-text">$reporticoUrlInfo.getDescription()</p>
345
										  </a>
346
 
347
					    			#end
348
				    			#end
349
								</div>
350
						    </tbody>
351
						</table>
352
 
353
					</div>
354
				</div>
355
				<div class="col-lg-6">
356
					<div class="row col-lg-12 info-box white-bg">
357
						<div class="col-lg-4">
358
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>My Messages</strong>
359
						</h3>
26010 amit.gupta 360
						</div>
26063 amit.gupta 361
						<div class="col-lg-4">
362
							<div class="btn-group message-filter"> 
363
								<button data-messagetype="notification" type="button" class="btn btn-default" aria-label="Notifications" title="Notifications">
364
								<span class="glyphicon glyphicon-bell" aria-hidden="true"></span></button> 
365
								<button data-messagetype="announcement" type="button" class="btn btn-default" aria-label="Announcements" title="Announcements">
366
								<span class="glyphicon glyphicon-bullhorn" aria-hidden="true"></span></button> 
367
								<button data-messagetype="scheme" type="button" class="btn btn-default" aria-label="SmartDukaan Schemes" title="SmartDukaan Schemes">
368
									<span class="glyphicon glyphicon-tags" aria-hidden="true"></span>
369
								</button>
26446 tejbeer 370
								<button data-messagetype="marketing" type="button" class="btn btn-default" aria-label="SmartDukaan Schemes" title="SmartDukaan Schemes">
371
								 <span class="glyphicon glyphicon-picture" aria-hidden="true"></span>
372
							</button>
26063 amit.gupta 373
							</div>
374
						</div>
375
				    	<div class="col-lg-12 row notification-container" style="max-height: 500px;overflow-y: scroll;">
376
						</div>
26010 amit.gupta 377
					</div>
378
				</div>
379
			</div>
380
		</section>
381
    	<div class="text-center">
382
          <div class="credits">
383
          	<p>All rights reserved.&copy;2017, Smart Dukaan</p>
384
          </div>
385
		</div>
386
	</section>
387
 
388
	<script type="text/javascript">
389
		context="${rc.contextPath}";
390
		webApiScheme="$webApiScheme";
391
		webApiRoot="$webApiRoot";
392
		webApiHost="$webApiHost";
393
		webApiPort="$webApiPort";
26287 amit.gupta 394
		#if($authId)
26286 amit.gupta 395
			retailers = $retailers;
396
			warehouses = $warehouses;
26287 amit.gupta 397
	        authId = $authId;
26286 amit.gupta 398
		#end
26010 amit.gupta 399
	</script>
400
	#parse("include-scripts.vm")
401
 
402
  <script>
403
 
404
      //knob
405
      $(function() {
406
        /*$(".knob").knob({
407
          'draw' : function () { 
408
            $(this.i).val(this.cv + '%')
409
          }
410
        });*/
411
        $.fn.dataTable.moment( 'DD/MM/YYYY' );
412
        $.fn.dataTable.moment( 'DD/MM/YYYY hh:mm' );
413
        $('.currency').each(function(index, ele) {
414
			if (!isNaN(parseInt($(ele).html()))) {
415
				$(ele).html(numberToComma($(ele).html()));
416
			}
417
		});
418
      });
419
 
420
      $(function() {
421
    	 	var profile = localStorage.getItem('profile');
422
    	 	if (profile){
423
    			$("#photo").attr("src",JSON.parse(profile).image_url);
424
    			$("#fofo_name").text(JSON.parse(profile).name);
425
    	 	}
426
    	 	else{
427
    	 		$("#photo").attr("src","");
428
    			$("#fofo_name").text("Welcome, User");
429
    	 	}
430
    });
431
 
432
 
433
 
434
	$(function(){
435
		dateRangeCallback(moment(),moment());
436
		loaderDialogObj = bootbox.dialog({
437
		    message: '<div class="container text-center"><i class="fa fa-spin fa-spinner"></i>Loading...</div>',
27341 amit.gupta 438
		    show: false	
26010 amit.gupta 439
		});
440
	});
26062 tejbeer 441
 
26166 amit.gupta 442
	$(document).ready(function(){
26062 tejbeer 443
		 $('div.message-filter').on('click', 'button', function() {
444
			messageType = $(this).data("messagetype");
445
			if($(this).hasClass('btn-pressed')) {
446
				messageType="";
447
				$('div.message-filter').find('button').removeClass('btn-pressed').addClass('btn-default');
448
			} else {
449
				$('div.message-filter').find('button').removeClass('btn-pressed').addClass('btn-default');
450
				$(this).addClass('btn-pressed').removeClass('btn-default');
451
			}
452
			notifyTypeChange(messageType);
453
		});
454
		notifyTypeChange("");
26166 amit.gupta 455
	});
26062 tejbeer 456
 
26166 amit.gupta 457
	/*$(function(){
26062 tejbeer 458
		messageType = $(this).data("messagetype");
459
		if($(this).hasClass('btn-pressed')) {
460
			messageType="";
461
			$('div.message-filter').find('button').removeClass('btn-pressed').addClass('btn-default');
462
		} else {
463
			$('div.message-filter').find('button').removeClass('btn-pressed').addClass('btn-default');
464
			$(this).addClass('btn-pressed').removeClass('btn-default');
465
		}
466
		notifyTypeChange(messageType);
26166 amit.gupta 467
	});*/
26010 amit.gupta 468
</script>
26318 tejbeer 469
	<div id="report-modal" class="modal" role="dialog" data-backdrop="static" data-keyboard="false">
26063 amit.gupta 470
		<div class="modal-dialog">
471
 
472
		    <!-- Modal content-->
473
		    <div class="modal-content">
474
		      <div class="modal-header">
475
		        <button type="button" class="close" data-dismiss="modal">&times;</button>
476
		        <h4 class="modal-title"></h4>
477
		      </div>
478
		      <div class="modal-body">
479
			  </div>
480
			  <div class="modal-footer">
481
		        <button type="button" data-dismiss="modal" class="btn btn-default download-report">Download</button>
482
		      </div>
483
	    	</div>
484
		</div>
485
	</div>
26010 amit.gupta 486
 
487
  </body>
488
</html>