Subversion Repositories SmartDukaan

Rev

Rev 27341 | Rev 27509 | 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
	}
153
	</script>
154
 
26010 amit.gupta 155
  </head>
156
 
157
  <body style="zoom:90%;background-color:#f7f7f7">
158
  <!--<div class="loading"><img src="resources/images/icons/loading.gif"></div>-->
159
  <!-- container section start -->
160
  <section id="container">
161
 
162
 
163
      <header class="header dark-bg">
164
            <div class="toggle-nav">
165
                <div class="icon-reorder tooltips" data-original-title="Toggle Navigation" data-placement="bottom"><i class="icon_menu"></i></div>
166
            </div>
167
            <div class="top-nav notification-row">
168
                <!-- notificatoin dropdown start-->
169
                <ul class="nav pull-right top-menu">
170
                    <!-- user login dropdown start-->
171
                    <li class="dropdown">
172
                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
173
                            <span class="profile-ava">
174
                                <img class="avatar-custom" id="photo" alt="" src="">
175
                            </span>
176
                            <span class="username" id="fofo_name"></span>
177
                            <b class="caret"></b>
178
                        </a>
179
                        <ul class="dropdown-menu extended logout">
180
                            <div class="log-arrow-up"></div>
181
                            <li class="eborder-top">
182
                                <a class="change-auth-user-password" href="javascript:void(0);"><i class=""></i>Change Password</a>
183
                            </li>
184
                            <li>
185
                                <a href="${rc.contextPath}/logout"><i class="icon_key_alt" id = "logout"></i> Log Out</a>
186
                            </li>
187
                        </ul>
188
                    </li>
189
                    <!-- user login dropdown end -->
190
                </ul>
191
                <!-- notificatoin dropdown end-->
192
            </div>
193
      </header>      
194
      <!--header end-->
195
 
196
      <!--sidebar start-->
197
      <aside>
198
          <div id="sidebar"  class="nav-collapse ">
199
              <!-- sidebar menu start-->
200
              <ul class="sidebar-menu">                
201
              	  <li class="active">
202
                      <a class="" href="${rc.contextPath}/dashboard">
203
                          <i class="icon_house_alt"></i>
204
                          <span>Dashboard</span>
205
                      </a>
206
                  </li>
26512 amit.gupta 207
                  <li><a class="product-compare-info" href="javascript:void(0);">Product Compare</a></li>
26740 amit.gupta 208
                  <li><a class="web-listing" href="javascript:void(0);">Web Listing</a></li>
26958 tejbeer 209
                  <li><a class="banner-listing" href="javascript:void(0);">Banner Listing</a></li>
26014 amit.gupta 210
                  #foreach($menuItem in $menu)
211
		            <li class="sub-menu">
212
		              <a href="javascript:;" class="">
213
	                       <i class="icon_document_alt"></i>
214
	                       <span>$menuItem.getDisplayText()</span>
215
	                       <span class="menu-arrow arrow_carrot-right"></span>
216
		              </a>
217
					  <ul class="sub">
218
					  #foreach($subMenu in $menuItem.getSubMenus())
219
						  <li><a class="$subMenu.getActionClass()" href="javascript:void(0);">$subMenu.getDisplayText()</a></li>
220
					  #end
221
					</ul>
222
		           	</li>
26010 amit.gupta 223
                  #end
224
              </ul>
225
              <!-- sidebar menu end-->
226
          </div>
227
      </aside>
228
      <!--sidebar end-->
229
 
230
	<!--main content start-->
231
	<section id="main-content">
232
		<section class="wrapper">
233
          	<!--overview start-->
234
			<div class="row">
235
				<div class="col-lg-12">
236
					<h3 class="page-header"><i class="fa fa-laptop"></i> Dashboard</h3>
237
					<ol class="breadcrumb">
238
						<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
239
						<li><i class="fa fa-laptop"></i>Dashboard</li>						  	
240
					</ol>
241
				</div>
242
			</div>
243
			<!-- overview end -->
26418 tejbeer 244
 
26468 amit.gupta 245
			    #if($authIdAndallValues)
26418 tejbeer 246
				<div class="row">
247
 
248
					<div class="col-lg-6">
249
				 <table class="table table-striped table-advance table-hover">
250
	    			<tbody>
251
	    				<tr>
252
	    				<th>Sale Head</th>
26472 amit.gupta 253
	    				<th>Total Partners</th>
26418 tejbeer 254
	    				<th>lmtd</th>
255
	    				<th>mtd</th>
256
	    				<th>Hygiene</th>
27333 amit.gupta 257
	    				<th>Tickets</th>
258
	    				<th>Leads</th>
259
	    				<!--<th>In Stock Investment</th>
260
	    				<th>Total Investment</th>-->
26418 tejbeer 261
	    				</tr>
26460 amit.gupta 262
	    				#foreach($name in $authIdAndallValues.keySet())
26418 tejbeer 263
	    				<tr onclick="getAuthUser($name)">
26468 amit.gupta 264
	    	 		     <td>$authIdAndAuthUserMap.get($name).getFirstName() $authIdAndAuthUserMap.get($name).getLastName()</td>
265
	    	 		     <td>$authIdAndallValues.get($name).getCount()</td>
26418 tejbeer 266
	    	 		     <td class="currency">$authIdAndallValues.get($name).getLmtd()</td>
267
	    	 		     <td class="currency">$authIdAndallValues.get($name).getMtd()</td>
26460 amit.gupta 268
	    	 		     <td>$authIdAndallValues.get($name).getHygienePercentage()</td>
27333 amit.gupta 269
	    	 		     <td>$authIdAndallValues.get($name).getTicket()</td>
270
	    	 		     <td>$authIdAndallValues.get($name).getLeads()</td>
271
	    	 		     <!--<td class="currency">$authIdAndallValues.get($name).getInvestment().getInStockAmount()</td>
272
	    	 		     <td class="currency">$authIdAndallValues.get($name).getInvestment().getTotalInvestment()</td>-->
26418 tejbeer 273
 
274
	    				</tr>
275
	    				 #end
276
 
277
	    		    </tbody>
278
	    		</table>
279
						</div>
280
 
281
						<div class="col-lg-4">
282
						 <table class="table table-striped table-advance table-hover">
283
	    			<tbody>
284
	    				<tr>
27333 amit.gupta 285
	    				<th>W/H Location</th>
286
	    				<th>Brand</th>
287
	    				<th>Total Stock</th>
288
	    				<th>Total Value</th>
26418 tejbeer 289
	    				</tr>
290
 
291
	    				#foreach($key in $authIdAndallValues.keySet())
292
	    				<tr>
27333 amit.gupta 293
	    					<td></td>
294
	    					<td></td>
295
	    					<td></td>
296
	    					<td></td>
26418 tejbeer 297
		                  </tr>
298
	    				 #end
299
 
300
 
301
	    		    </tbody>
302
	    		</table>
303
 
304
			 </div>
305
			</div>
306
 
307
			#end
308
 
26010 amit.gupta 309
			<div class="row">
26063 amit.gupta 310
				<div class="col-lg-6">
311
					<div class="row col-lg-4">
312
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>Reports</strong></h3>
26010 amit.gupta 313
					</div>
26063 amit.gupta 314
					<div class="row col-lg-12 info-box white-bg">
26214 amit.gupta 315
						<table class="table table-striped reports-table" style="display:none">
26063 amit.gupta 316
						    <tbody>
317
					    		<div class="list-group">
318
					            #foreach($reporticoProjectEntry in $reporticoProjectMap.entrySet())
319
						            #foreach($reporticoUrlInfo in $reporticoProjectEntry.getValue())
320
										  <a href="${rc.contextPath}/reports/${reporticoProjectEntry.getKey()}${reporticoUrlInfo.getUrl()}" class="list-group-item"
321
											  #if($reporticoUrlInfo.getParamsList())
322
											  data-paramslist="$vmUtils.htmlJson($reporticoUrlInfo.getParamsList())"
323
											  #end
324
										  >
325
										    <h4 class="list-group-item-heading">$reporticoUrlInfo.getTitle()</h4>
326
										    <p class="list-group-item-text">$reporticoUrlInfo.getDescription()</p>
327
										  </a>
328
 
329
					    			#end
330
				    			#end
331
								</div>
332
						    </tbody>
333
						</table>
334
 
335
					</div>
336
				</div>
337
				<div class="col-lg-6">
338
					<div class="row col-lg-12 info-box white-bg">
339
						<div class="col-lg-4">
340
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>My Messages</strong>
341
						</h3>
26010 amit.gupta 342
						</div>
26063 amit.gupta 343
						<div class="col-lg-4">
344
							<div class="btn-group message-filter"> 
345
								<button data-messagetype="notification" type="button" class="btn btn-default" aria-label="Notifications" title="Notifications">
346
								<span class="glyphicon glyphicon-bell" aria-hidden="true"></span></button> 
347
								<button data-messagetype="announcement" type="button" class="btn btn-default" aria-label="Announcements" title="Announcements">
348
								<span class="glyphicon glyphicon-bullhorn" aria-hidden="true"></span></button> 
349
								<button data-messagetype="scheme" type="button" class="btn btn-default" aria-label="SmartDukaan Schemes" title="SmartDukaan Schemes">
350
									<span class="glyphicon glyphicon-tags" aria-hidden="true"></span>
351
								</button>
26446 tejbeer 352
								<button data-messagetype="marketing" type="button" class="btn btn-default" aria-label="SmartDukaan Schemes" title="SmartDukaan Schemes">
353
								 <span class="glyphicon glyphicon-picture" aria-hidden="true"></span>
354
							</button>
26063 amit.gupta 355
							</div>
356
						</div>
357
				    	<div class="col-lg-12 row notification-container" style="max-height: 500px;overflow-y: scroll;">
358
						</div>
26010 amit.gupta 359
					</div>
360
				</div>
361
			</div>
362
		</section>
363
    	<div class="text-center">
364
          <div class="credits">
365
          	<p>All rights reserved.&copy;2017, Smart Dukaan</p>
366
          </div>
367
		</div>
368
	</section>
369
 
370
	<script type="text/javascript">
371
		context="${rc.contextPath}";
372
		webApiScheme="$webApiScheme";
373
		webApiRoot="$webApiRoot";
374
		webApiHost="$webApiHost";
375
		webApiPort="$webApiPort";
26287 amit.gupta 376
		#if($authId)
26286 amit.gupta 377
			retailers = $retailers;
378
			warehouses = $warehouses;
26287 amit.gupta 379
	        authId = $authId;
26286 amit.gupta 380
		#end
26010 amit.gupta 381
	</script>
382
	#parse("include-scripts.vm")
383
 
384
  <script>
385
 
386
      //knob
387
      $(function() {
388
        /*$(".knob").knob({
389
          'draw' : function () { 
390
            $(this.i).val(this.cv + '%')
391
          }
392
        });*/
393
        $.fn.dataTable.moment( 'DD/MM/YYYY' );
394
        $.fn.dataTable.moment( 'DD/MM/YYYY hh:mm' );
395
        $('.currency').each(function(index, ele) {
396
			if (!isNaN(parseInt($(ele).html()))) {
397
				$(ele).html(numberToComma($(ele).html()));
398
			}
399
		});
400
      });
401
 
402
      $(function() {
403
    	 	var profile = localStorage.getItem('profile');
404
    	 	if (profile){
405
    			$("#photo").attr("src",JSON.parse(profile).image_url);
406
    			$("#fofo_name").text(JSON.parse(profile).name);
407
    	 	}
408
    	 	else{
409
    	 		$("#photo").attr("src","");
410
    			$("#fofo_name").text("Welcome, User");
411
    	 	}
412
    });
413
 
414
 
415
 
416
	$(function(){
417
		dateRangeCallback(moment(),moment());
418
		loaderDialogObj = bootbox.dialog({
419
		    message: '<div class="container text-center"><i class="fa fa-spin fa-spinner"></i>Loading...</div>',
27341 amit.gupta 420
		    show: false	
26010 amit.gupta 421
		});
422
	});
26062 tejbeer 423
 
26166 amit.gupta 424
	$(document).ready(function(){
26062 tejbeer 425
		 $('div.message-filter').on('click', 'button', function() {
426
			messageType = $(this).data("messagetype");
427
			if($(this).hasClass('btn-pressed')) {
428
				messageType="";
429
				$('div.message-filter').find('button').removeClass('btn-pressed').addClass('btn-default');
430
			} else {
431
				$('div.message-filter').find('button').removeClass('btn-pressed').addClass('btn-default');
432
				$(this).addClass('btn-pressed').removeClass('btn-default');
433
			}
434
			notifyTypeChange(messageType);
435
		});
436
		notifyTypeChange("");
26166 amit.gupta 437
	});
26062 tejbeer 438
 
26166 amit.gupta 439
	/*$(function(){
26062 tejbeer 440
		messageType = $(this).data("messagetype");
441
		if($(this).hasClass('btn-pressed')) {
442
			messageType="";
443
			$('div.message-filter').find('button').removeClass('btn-pressed').addClass('btn-default');
444
		} else {
445
			$('div.message-filter').find('button').removeClass('btn-pressed').addClass('btn-default');
446
			$(this).addClass('btn-pressed').removeClass('btn-default');
447
		}
448
		notifyTypeChange(messageType);
26166 amit.gupta 449
	});*/
26010 amit.gupta 450
</script>
26318 tejbeer 451
	<div id="report-modal" class="modal" role="dialog" data-backdrop="static" data-keyboard="false">
26063 amit.gupta 452
		<div class="modal-dialog">
453
 
454
		    <!-- Modal content-->
455
		    <div class="modal-content">
456
		      <div class="modal-header">
457
		        <button type="button" class="close" data-dismiss="modal">&times;</button>
458
		        <h4 class="modal-title"></h4>
459
		      </div>
460
		      <div class="modal-body">
461
			  </div>
462
			  <div class="modal-footer">
463
		        <button type="button" data-dismiss="modal" class="btn btn-default download-report">Download</button>
464
		      </div>
465
	    	</div>
466
		</div>
467
	</div>
26010 amit.gupta 468
 
469
  </body>
470
</html>