Subversion Repositories SmartDukaan

Rev

Rev 27574 | Rev 27592 | 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
 
27591 tejbeer 164
	function getWarehouseWiseBrandPartnerSale(brand){
27556 tejbeer 165
 
27591 tejbeer 166
		doGetAjaxRequestHandler(context + "/getWarehouseWiseBrandPartnerSale?brand="+brand,
27556 tejbeer 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>
27591 tejbeer 385
	    			    <th>Brand</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>
27591 tejbeer 393
	    				#foreach($salekey in $$brandSales)
394
	    				<tr onclick="getWarehouseWiseBrandPartnerSale(`$salekey.getBrand()`)">
395
	    				  <td>$salekey.getBrand()</td>
396
 
397
	    	 		      #if($salekey.getLms())
398
	    	 		      <td class="currency">$salekey.getLms()</td>
27574 tejbeer 399
	    	 		      #else
400
	    	 		      <td>0</td>
401
	    	 		      #end
402
 
27591 tejbeer 403
	    	 		      #if($salekey.getLmsQty())
404
	    	 		      <td class="currency">$salekey.getLmsQty()</td>
27574 tejbeer 405
	    	 		      #else
406
	    	 		      <td>0</td>
407
	    	 		      #end
27591 tejbeer 408
	    	 		      #if($salekey.getLmtd())
409
	    	 		      <td class="currency">$salekey.getLmtd()</td>
27556 tejbeer 410
	    	 		      #else
411
	    	 		      <td>0</td>
412
	    	 		      #end
413
 
27591 tejbeer 414
	    	 		      #if($salekey.getLmtdQty())
415
	    	 		      <td class="currency">$salekey.getLmtdQty()</td>
27556 tejbeer 416
	    	 		      #else
417
	    	 		      <td>0</td>
418
	    	 		      #end
27591 tejbeer 419
	    	 		       #if($salekey.getMtd())
420
	    	 		      <td class="currency">$salekey.getMtd()</td>
27556 tejbeer 421
	    	 		      #else
422
	    	 		      <td>0</td>
423
	    	 		      #end
27591 tejbeer 424
	    	 		      #if($salekey.getMtdQty())
425
	    	 		      <td class="currency">$salekey.getMtdQty()</td>
27556 tejbeer 426
	    	 		      #else
427
	    	 		      <td>0</td>
428
	    	 		      #end
429
	    	 		   </tr>
430
	    				 #end
431
 
432
	    		    </tbody>
433
	    		</table>
27558 tejbeer 434
 
27556 tejbeer 435
			</div>
436
			</div>
27557 tejbeer 437
			#end
438
 
27556 tejbeer 439
			<div class="row">
440
				<div class="col-lg-6">
441
					<div class="row col-lg-4">
26063 amit.gupta 442
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>Reports</strong></h3>
26010 amit.gupta 443
					</div>
26063 amit.gupta 444
					<div class="row col-lg-12 info-box white-bg">
26214 amit.gupta 445
						<table class="table table-striped reports-table" style="display:none">
26063 amit.gupta 446
						    <tbody>
447
					    		<div class="list-group">
448
					            #foreach($reporticoProjectEntry in $reporticoProjectMap.entrySet())
449
						            #foreach($reporticoUrlInfo in $reporticoProjectEntry.getValue())
450
										  <a href="${rc.contextPath}/reports/${reporticoProjectEntry.getKey()}${reporticoUrlInfo.getUrl()}" class="list-group-item"
451
											  #if($reporticoUrlInfo.getParamsList())
452
											  data-paramslist="$vmUtils.htmlJson($reporticoUrlInfo.getParamsList())"
453
											  #end
454
										  >
455
										    <h4 class="list-group-item-heading">$reporticoUrlInfo.getTitle()</h4>
456
										    <p class="list-group-item-text">$reporticoUrlInfo.getDescription()</p>
457
										  </a>
458
 
459
					    			#end
460
				    			#end
461
								</div>
462
						    </tbody>
463
						</table>
464
 
465
					</div>
466
				</div>
467
				<div class="col-lg-6">
468
					<div class="row col-lg-12 info-box white-bg">
469
						<div class="col-lg-4">
470
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>My Messages</strong>
471
						</h3>
26010 amit.gupta 472
						</div>
26063 amit.gupta 473
						<div class="col-lg-4">
474
							<div class="btn-group message-filter"> 
475
								<button data-messagetype="notification" type="button" class="btn btn-default" aria-label="Notifications" title="Notifications">
476
								<span class="glyphicon glyphicon-bell" aria-hidden="true"></span></button> 
477
								<button data-messagetype="announcement" type="button" class="btn btn-default" aria-label="Announcements" title="Announcements">
478
								<span class="glyphicon glyphicon-bullhorn" aria-hidden="true"></span></button> 
479
								<button data-messagetype="scheme" type="button" class="btn btn-default" aria-label="SmartDukaan Schemes" title="SmartDukaan Schemes">
480
									<span class="glyphicon glyphicon-tags" aria-hidden="true"></span>
481
								</button>
26446 tejbeer 482
								<button data-messagetype="marketing" type="button" class="btn btn-default" aria-label="SmartDukaan Schemes" title="SmartDukaan Schemes">
483
								 <span class="glyphicon glyphicon-picture" aria-hidden="true"></span>
484
							</button>
26063 amit.gupta 485
							</div>
486
						</div>
487
				    	<div class="col-lg-12 row notification-container" style="max-height: 500px;overflow-y: scroll;">
488
						</div>
26010 amit.gupta 489
					</div>
490
				</div>
491
			</div>
492
		</section>
493
    	<div class="text-center">
494
          <div class="credits">
495
          	<p>All rights reserved.&copy;2017, Smart Dukaan</p>
496
          </div>
497
		</div>
498
	</section>
499
 
500
	<script type="text/javascript">
501
		context="${rc.contextPath}";
502
		webApiScheme="$webApiScheme";
503
		webApiRoot="$webApiRoot";
504
		webApiHost="$webApiHost";
505
		webApiPort="$webApiPort";
26287 amit.gupta 506
		#if($authId)
26286 amit.gupta 507
			retailers = $retailers;
508
			warehouses = $warehouses;
26287 amit.gupta 509
	        authId = $authId;
26286 amit.gupta 510
		#end
26010 amit.gupta 511
	</script>
512
	#parse("include-scripts.vm")
513
 
514
  <script>
515
 
516
      //knob
517
      $(function() {
518
        /*$(".knob").knob({
519
          'draw' : function () { 
520
            $(this.i).val(this.cv + '%')
521
          }
522
        });*/
523
        $.fn.dataTable.moment( 'DD/MM/YYYY' );
524
        $.fn.dataTable.moment( 'DD/MM/YYYY hh:mm' );
525
        $('.currency').each(function(index, ele) {
526
			if (!isNaN(parseInt($(ele).html()))) {
527
				$(ele).html(numberToComma($(ele).html()));
528
			}
529
		});
530
      });
531
 
532
      $(function() {
533
    	 	var profile = localStorage.getItem('profile');
534
    	 	if (profile){
535
    			$("#photo").attr("src",JSON.parse(profile).image_url);
536
    			$("#fofo_name").text(JSON.parse(profile).name);
537
    	 	}
538
    	 	else{
539
    	 		$("#photo").attr("src","");
540
    			$("#fofo_name").text("Welcome, User");
541
    	 	}
542
    });
543
 
544
 
545
 
546
	$(function(){
547
		dateRangeCallback(moment(),moment());
548
		loaderDialogObj = bootbox.dialog({
549
		    message: '<div class="container text-center"><i class="fa fa-spin fa-spinner"></i>Loading...</div>',
27341 amit.gupta 550
		    show: false	
26010 amit.gupta 551
		});
552
	});
26062 tejbeer 553
 
26166 amit.gupta 554
	$(document).ready(function(){
26062 tejbeer 555
		 $('div.message-filter').on('click', 'button', function() {
556
			messageType = $(this).data("messagetype");
557
			if($(this).hasClass('btn-pressed')) {
558
				messageType="";
559
				$('div.message-filter').find('button').removeClass('btn-pressed').addClass('btn-default');
560
			} else {
561
				$('div.message-filter').find('button').removeClass('btn-pressed').addClass('btn-default');
562
				$(this).addClass('btn-pressed').removeClass('btn-default');
563
			}
564
			notifyTypeChange(messageType);
565
		});
566
		notifyTypeChange("");
26166 amit.gupta 567
	});
26062 tejbeer 568
 
26166 amit.gupta 569
	/*$(function(){
26062 tejbeer 570
		messageType = $(this).data("messagetype");
571
		if($(this).hasClass('btn-pressed')) {
572
			messageType="";
573
			$('div.message-filter').find('button').removeClass('btn-pressed').addClass('btn-default');
574
		} else {
575
			$('div.message-filter').find('button').removeClass('btn-pressed').addClass('btn-default');
576
			$(this).addClass('btn-pressed').removeClass('btn-default');
577
		}
578
		notifyTypeChange(messageType);
26166 amit.gupta 579
	});*/
26010 amit.gupta 580
</script>
26318 tejbeer 581
	<div id="report-modal" class="modal" role="dialog" data-backdrop="static" data-keyboard="false">
26063 amit.gupta 582
		<div class="modal-dialog">
583
 
584
		    <!-- Modal content-->
585
		    <div class="modal-content">
586
		      <div class="modal-header">
587
		        <button type="button" class="close" data-dismiss="modal">&times;</button>
588
		        <h4 class="modal-title"></h4>
589
		      </div>
590
		      <div class="modal-body">
591
			  </div>
592
			  <div class="modal-footer">
593
		        <button type="button" data-dismiss="modal" class="btn btn-default download-report">Download</button>
594
		      </div>
595
	    	</div>
596
		</div>
597
	</div>
26010 amit.gupta 598
 
599
  </body>
600
</html>