Subversion Repositories SmartDukaan

Rev

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