Subversion Repositories SmartDukaan

Rev

Rev 27558 | Rev 27591 | 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">
27545 tejbeer 145
	function getWarehousePartners(warehouseId){
26418 tejbeer 146
 
27545 tejbeer 147
		doGetAjaxRequestHandler(context + "/getWarehousePartners?warehouseId="+warehouseId,
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
	}
27529 tejbeer 162
 
163
 
27556 tejbeer 164
	function getWarehouseWiseBrandPartnerSale(warehouseId){
165
 
166
		doGetAjaxRequestHandler(context + "/getWarehouseWiseBrandPartnerSale?warehouseId="+warehouseId,
167
			function(response) {
168
				$('#' + "main-content").html(response);
169
				console.log(response)
170
			});
171
	}
172
 
173
 
27529 tejbeer 174
</script>
175
 
176
 
177
<script type="text/javascript">
178
	function getWarehouseWiseData(){
179
		doGetAjaxRequestHandler(context + "/getWarehouseWiseData",
180
			function(response) {
181
				$('#' + "main-content").html(response);
182
				console.log(response)
183
				if(response == 'true'){
184
				console.log("hello 2")
185
 
186
				  window.location.href = $('.dashboardload').attr('href');
187
				 }
188
			});
189
	}
190
 
26418 tejbeer 191
 
27529 tejbeer 192
</script>
193
 
194
 
195
 
26010 amit.gupta 196
  </head>
197
 
198
  <body style="zoom:90%;background-color:#f7f7f7">
199
  <!--<div class="loading"><img src="resources/images/icons/loading.gif"></div>-->
200
  <!-- container section start -->
201
  <section id="container">
202
 
203
 
204
      <header class="header dark-bg">
205
            <div class="toggle-nav">
206
                <div class="icon-reorder tooltips" data-original-title="Toggle Navigation" data-placement="bottom"><i class="icon_menu"></i></div>
207
            </div>
208
            <div class="top-nav notification-row">
209
                <!-- notificatoin dropdown start-->
210
                <ul class="nav pull-right top-menu">
211
                    <!-- user login dropdown start-->
212
                    <li class="dropdown">
213
                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
214
                            <span class="profile-ava">
215
                                <img class="avatar-custom" id="photo" alt="" src="">
216
                            </span>
217
                            <span class="username" id="fofo_name"></span>
218
                            <b class="caret"></b>
219
                        </a>
220
                        <ul class="dropdown-menu extended logout">
221
                            <div class="log-arrow-up"></div>
222
                            <li class="eborder-top">
223
                                <a class="change-auth-user-password" href="javascript:void(0);"><i class=""></i>Change Password</a>
224
                            </li>
225
                            <li>
226
                                <a href="${rc.contextPath}/logout"><i class="icon_key_alt" id = "logout"></i> Log Out</a>
227
                            </li>
228
                        </ul>
229
                    </li>
230
                    <!-- user login dropdown end -->
231
                </ul>
232
                <!-- notificatoin dropdown end-->
233
            </div>
234
      </header>      
235
      <!--header end-->
236
 
237
      <!--sidebar start-->
238
      <aside>
239
          <div id="sidebar"  class="nav-collapse ">
240
              <!-- sidebar menu start-->
241
              <ul class="sidebar-menu">                
242
              	  <li class="active">
27529 tejbeer 243
                      <a class="dashboardload" href="${rc.contextPath}/dashboard">
26010 amit.gupta 244
                          <i class="icon_house_alt"></i>
245
                          <span>Dashboard</span>
246
                      </a>
247
                  </li>
26512 amit.gupta 248
                  <li><a class="product-compare-info" href="javascript:void(0);">Product Compare</a></li>
26740 amit.gupta 249
                  <li><a class="web-listing" href="javascript:void(0);">Web Listing</a></li>
26958 tejbeer 250
                  <li><a class="banner-listing" href="javascript:void(0);">Banner Listing</a></li>
27520 amit.gupta 251
                  <li><a class="published-schemes" href="javascript:void(0);">Published Offers</a></li>
252
                  <li><a class="view-invoices" href="javascript:void(0);">View Invoices</a></li>
26014 amit.gupta 253
                  #foreach($menuItem in $menu)
254
		            <li class="sub-menu">
255
		              <a href="javascript:;" class="">
256
	                       <i class="icon_document_alt"></i>
257
	                       <span>$menuItem.getDisplayText()</span>
258
	                       <span class="menu-arrow arrow_carrot-right"></span>
259
		              </a>
260
					  <ul class="sub">
261
					  #foreach($subMenu in $menuItem.getSubMenus())
262
						  <li><a class="$subMenu.getActionClass()" href="javascript:void(0);">$subMenu.getDisplayText()</a></li>
263
					  #end
264
					</ul>
265
		           	</li>
26010 amit.gupta 266
                  #end
267
              </ul>
268
              <!-- sidebar menu end-->
269
          </div>
270
      </aside>
271
      <!--sidebar end-->
272
 
273
	<!--main content start-->
274
	<section id="main-content">
275
		<section class="wrapper">
276
          	<!--overview start-->
277
			<div class="row">
278
				<div class="col-lg-12">
279
					<h3 class="page-header"><i class="fa fa-laptop"></i> Dashboard</h3>
280
					<ol class="breadcrumb">
281
						<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
282
						<li><i class="fa fa-laptop"></i>Dashboard</li>						  	
283
					</ol>
284
				</div>
285
			</div>
286
			<!-- overview end -->
26418 tejbeer 287
 
27548 tejbeer 288
			    #if($warehousePartnerDetailMap)
26418 tejbeer 289
				<div class="row">
290
 
27558 tejbeer 291
				<div class="col-lg-6">
292
 
293
				 <div class="row col-lg-4">
294
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>Partner Wise Report</strong></h3>
295
				 </div>
26418 tejbeer 296
				 <table class="table table-striped table-advance table-hover">
297
	    			<tbody>
298
	    				<tr>
27545 tejbeer 299
	    				<th>W/H Location</th>
300
	    				<th>Partners</th>
27556 tejbeer 301
                         <th>LMTD</th>
302
	    				 <th>MTD</th>
27549 tejbeer 303
	    				 <th>Today Tertiary</th>
27545 tejbeer 304
	    				 <th>Tickets</th>
26418 tejbeer 305
	    				</tr>
27545 tejbeer 306
	    				#foreach($name in $warehousePartnerDetailMap.keySet())
307
	    				<tr onclick="getWarehousePartners($name)">
308
	    	 		     <td>$warehouseMap.get($name)</td>
309
	    	 		     <td>$warehousePartnerDetailMap.get($name).getCount()</td>
27552 tejbeer 310
	    	 		     <td class="currency">$warehousePartnerDetailMap.get($name).getLmtd()</td>
311
	    	 		     <td class="currency">$warehousePartnerDetailMap.get($name).getMtd()</td>
312
	    	 		     <td class="currency">$warehousePartnerDetailMap.get($name).getTodayTertiary()</td>
27545 tejbeer 313
 
314
	    	 		     <td>$warehousePartnerDetailMap.get($name).getTicket()</td>
315
 
316
	    	 		   </tr>
26418 tejbeer 317
	    				 #end
318
 
319
	    		    </tbody>
320
	    		</table>
321
						</div>
322
 
27529 tejbeer 323
				<div class="col-lg-4">
27558 tejbeer 324
				   <div class="row col-lg-8">
325
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>Warehouse Wise Report</strong></h3>
326
					</div>
27529 tejbeer 327
 
328
				<div style="float:right"> <span style="margin-right:10px">Last Fetch :- $reporticoDate.getLastCreatedTimestamp().format($dateTimeFormatter)</span><button class="btn btn-primary fetchWarehouseData"  onclick="getWarehouseWiseData()" type="button">Fetch</button>
329
						     </div>
330
				<table class="table table-striped table-advance table-hover">
26418 tejbeer 331
	    			<tbody>
332
	    				<tr>
27333 amit.gupta 333
	    				<th>W/H Location</th>
334
	    				<th>Total Stock</th>
335
	    				<th>Total Value</th>
27529 tejbeer 336
	    				<th>Pending Indent</th>
27541 tejbeer 337
	    				<th>Tertiary</th>
26418 tejbeer 338
	    				</tr>
27509 tejbeer 339
	    				#foreach($key in $warehouseMap.keySet())
340
 
341
	    				<tr onclick="getWarehouseBrandStock($warehouseStockMap.get($key).getWarehouseId())">
342
	    					<td>$warehouseMap.get($key)</td>
343
	    					#if($warehouseStockMap.get($key).getStockQty())
344
	    					<td>$warehouseStockMap.get($key).getStockQty()</td>
345
	    					<td class="currency">$warehouseStockMap.get($key).getStockValue()</td>
346
	    					#else
347
	    					<td>0</td>
348
	    					<td>0</td>
349
	    					#end
27529 tejbeer 350
	    					#if($warehouseStockMap.get($key).getPendingIndent())
351
	    				    <td>$warehouseStockMap.get($key).getPendingIndent()</td>
352
	    				    #else
353
	    				    <td>0</td>
354
	    					#end
27509 tejbeer 355
 
27541 tejbeer 356
	    					<td>$warehouseStockMap.get($key).getTertiary()</td>
357
 
27509 tejbeer 358
 
359
 
27541 tejbeer 360
 
26418 tejbeer 361
		                  </tr>
27509 tejbeer 362
 
26418 tejbeer 363
	    				 #end
364
 
365
 
366
	    		    </tbody>
367
	    		</table>
368
 
369
			 </div>
370
			</div>
371
 
372
			#end
27557 tejbeer 373
 
374
		    #if($brandSales)	
26418 tejbeer 375
 
26010 amit.gupta 376
			<div class="row">
26063 amit.gupta 377
				<div class="col-lg-6">
378
					<div class="row col-lg-4">
27556 tejbeer 379
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>Brand Wise Report</strong></h3>
380
					</div>
381
 
382
					 <table class="table table-striped table-advance table-hover">
383
	    			<tbody>
384
	    				<tr>
385
	    				<th>W/H Location</th>
27574 tejbeer 386
	    				<th>LMS</th>
387
	    				  <th>LMS Qty</th>
27556 tejbeer 388
	    				 <th>LMTD</th>
389
	    				  <th>LMTD Qty</th>
390
	    				   <th>MTD</th>
391
	    				    <th>MTD Qty</th>
392
	    				</tr>
393
	    				#foreach($salekey in $$warehouseMap.keySet())
394
	    				<tr onclick="getWarehouseWiseBrandPartnerSale($brandSales.get($salekey).getWarehouseId())">
395
 
396
	    	 		      <td>$warehouseMap.get($salekey)</td>
27574 tejbeer 397
 
398
	    	 		      #if($brandSales.get($salekey).getLms())
399
	    	 		      <td class="currency">$brandSales.get($salekey).getLms()</td>
400
	    	 		      #else
401
	    	 		      <td>0</td>
402
	    	 		      #end
403
 
404
	    	 		      #if($brandSales.get($salekey).getLmsQty())
405
	    	 		      <td class="currency">$brandSales.get($salekey).getLmsQty()</td>
406
	    	 		      #else
407
	    	 		      <td>0</td>
408
	    	 		      #end
27556 tejbeer 409
	    	 		      #if($brandSales.get($salekey).getLmtd())
410
	    	 		      <td class="currency">$brandSales.get($salekey).getLmtd()</td>
411
	    	 		      #else
412
	    	 		      <td>0</td>
413
	    	 		      #end
414
 
415
	    	 		      #if($brandSales.get($salekey).getLmtdQty())
416
	    	 		      <td class="currency">$brandSales.get($salekey).getLmtdQty()</td>
417
	    	 		      #else
418
	    	 		      <td>0</td>
419
	    	 		      #end
420
	    	 		       #if($brandSales.get($salekey).getMtd())
421
	    	 		      <td class="currency">$brandSales.get($salekey).getMtd()</td>
422
	    	 		      #else
423
	    	 		      <td>0</td>
424
	    	 		      #end
425
	    	 		      #if($brandSales.get($salekey).getMtdQty())
426
	    	 		      <td class="currency">$brandSales.get($salekey).getMtdQty()</td>
427
	    	 		      #else
428
	    	 		      <td>0</td>
429
	    	 		      #end
430
	    	 		   </tr>
431
	    				 #end
432
 
433
	    		    </tbody>
434
	    		</table>
27558 tejbeer 435
 
27556 tejbeer 436
			</div>
437
			</div>
27557 tejbeer 438
			#end
439
 
27556 tejbeer 440
			<div class="row">
441
				<div class="col-lg-6">
442
					<div class="row col-lg-4">
26063 amit.gupta 443
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>Reports</strong></h3>
26010 amit.gupta 444
					</div>
26063 amit.gupta 445
					<div class="row col-lg-12 info-box white-bg">
26214 amit.gupta 446
						<table class="table table-striped reports-table" style="display:none">
26063 amit.gupta 447
						    <tbody>
448
					    		<div class="list-group">
449
					            #foreach($reporticoProjectEntry in $reporticoProjectMap.entrySet())
450
						            #foreach($reporticoUrlInfo in $reporticoProjectEntry.getValue())
451
										  <a href="${rc.contextPath}/reports/${reporticoProjectEntry.getKey()}${reporticoUrlInfo.getUrl()}" class="list-group-item"
452
											  #if($reporticoUrlInfo.getParamsList())
453
											  data-paramslist="$vmUtils.htmlJson($reporticoUrlInfo.getParamsList())"
454
											  #end
455
										  >
456
										    <h4 class="list-group-item-heading">$reporticoUrlInfo.getTitle()</h4>
457
										    <p class="list-group-item-text">$reporticoUrlInfo.getDescription()</p>
458
										  </a>
459
 
460
					    			#end
461
				    			#end
462
								</div>
463
						    </tbody>
464
						</table>
465
 
466
					</div>
467
				</div>
468
				<div class="col-lg-6">
469
					<div class="row col-lg-12 info-box white-bg">
470
						<div class="col-lg-4">
471
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>My Messages</strong>
472
						</h3>
26010 amit.gupta 473
						</div>
26063 amit.gupta 474
						<div class="col-lg-4">
475
							<div class="btn-group message-filter"> 
476
								<button data-messagetype="notification" type="button" class="btn btn-default" aria-label="Notifications" title="Notifications">
477
								<span class="glyphicon glyphicon-bell" aria-hidden="true"></span></button> 
478
								<button data-messagetype="announcement" type="button" class="btn btn-default" aria-label="Announcements" title="Announcements">
479
								<span class="glyphicon glyphicon-bullhorn" aria-hidden="true"></span></button> 
480
								<button data-messagetype="scheme" type="button" class="btn btn-default" aria-label="SmartDukaan Schemes" title="SmartDukaan Schemes">
481
									<span class="glyphicon glyphicon-tags" aria-hidden="true"></span>
482
								</button>
26446 tejbeer 483
								<button data-messagetype="marketing" type="button" class="btn btn-default" aria-label="SmartDukaan Schemes" title="SmartDukaan Schemes">
484
								 <span class="glyphicon glyphicon-picture" aria-hidden="true"></span>
485
							</button>
26063 amit.gupta 486
							</div>
487
						</div>
488
				    	<div class="col-lg-12 row notification-container" style="max-height: 500px;overflow-y: scroll;">
489
						</div>
26010 amit.gupta 490
					</div>
491
				</div>
492
			</div>
493
		</section>
494
    	<div class="text-center">
495
          <div class="credits">
496
          	<p>All rights reserved.&copy;2017, Smart Dukaan</p>
497
          </div>
498
		</div>
499
	</section>
500
 
501
	<script type="text/javascript">
502
		context="${rc.contextPath}";
503
		webApiScheme="$webApiScheme";
504
		webApiRoot="$webApiRoot";
505
		webApiHost="$webApiHost";
506
		webApiPort="$webApiPort";
26287 amit.gupta 507
		#if($authId)
26286 amit.gupta 508
			retailers = $retailers;
509
			warehouses = $warehouses;
26287 amit.gupta 510
	        authId = $authId;
26286 amit.gupta 511
		#end
26010 amit.gupta 512
	</script>
513
	#parse("include-scripts.vm")
514
 
515
  <script>
516
 
517
      //knob
518
      $(function() {
519
        /*$(".knob").knob({
520
          'draw' : function () { 
521
            $(this.i).val(this.cv + '%')
522
          }
523
        });*/
524
        $.fn.dataTable.moment( 'DD/MM/YYYY' );
525
        $.fn.dataTable.moment( 'DD/MM/YYYY hh:mm' );
526
        $('.currency').each(function(index, ele) {
527
			if (!isNaN(parseInt($(ele).html()))) {
528
				$(ele).html(numberToComma($(ele).html()));
529
			}
530
		});
531
      });
532
 
533
      $(function() {
534
    	 	var profile = localStorage.getItem('profile');
535
    	 	if (profile){
536
    			$("#photo").attr("src",JSON.parse(profile).image_url);
537
    			$("#fofo_name").text(JSON.parse(profile).name);
538
    	 	}
539
    	 	else{
540
    	 		$("#photo").attr("src","");
541
    			$("#fofo_name").text("Welcome, User");
542
    	 	}
543
    });
544
 
545
 
546
 
547
	$(function(){
548
		dateRangeCallback(moment(),moment());
549
		loaderDialogObj = bootbox.dialog({
550
		    message: '<div class="container text-center"><i class="fa fa-spin fa-spinner"></i>Loading...</div>',
27341 amit.gupta 551
		    show: false	
26010 amit.gupta 552
		});
553
	});
26062 tejbeer 554
 
26166 amit.gupta 555
	$(document).ready(function(){
26062 tejbeer 556
		 $('div.message-filter').on('click', 'button', function() {
557
			messageType = $(this).data("messagetype");
558
			if($(this).hasClass('btn-pressed')) {
559
				messageType="";
560
				$('div.message-filter').find('button').removeClass('btn-pressed').addClass('btn-default');
561
			} else {
562
				$('div.message-filter').find('button').removeClass('btn-pressed').addClass('btn-default');
563
				$(this).addClass('btn-pressed').removeClass('btn-default');
564
			}
565
			notifyTypeChange(messageType);
566
		});
567
		notifyTypeChange("");
26166 amit.gupta 568
	});
26062 tejbeer 569
 
26166 amit.gupta 570
	/*$(function(){
26062 tejbeer 571
		messageType = $(this).data("messagetype");
572
		if($(this).hasClass('btn-pressed')) {
573
			messageType="";
574
			$('div.message-filter').find('button').removeClass('btn-pressed').addClass('btn-default');
575
		} else {
576
			$('div.message-filter').find('button').removeClass('btn-pressed').addClass('btn-default');
577
			$(this).addClass('btn-pressed').removeClass('btn-default');
578
		}
579
		notifyTypeChange(messageType);
26166 amit.gupta 580
	});*/
26010 amit.gupta 581
</script>
26318 tejbeer 582
	<div id="report-modal" class="modal" role="dialog" data-backdrop="static" data-keyboard="false">
26063 amit.gupta 583
		<div class="modal-dialog">
584
 
585
		    <!-- Modal content-->
586
		    <div class="modal-content">
587
		      <div class="modal-header">
588
		        <button type="button" class="close" data-dismiss="modal">&times;</button>
589
		        <h4 class="modal-title"></h4>
590
		      </div>
591
		      <div class="modal-body">
592
			  </div>
593
			  <div class="modal-footer">
594
		        <button type="button" data-dismiss="modal" class="btn btn-default download-report">Download</button>
595
		      </div>
596
	    	</div>
597
		</div>
598
	</div>
26010 amit.gupta 599
 
600
  </body>
601
</html>