-
Notifications
You must be signed in to change notification settings - Fork 0
/
dashboard.html
591 lines (513 loc) · 24.3 KB
/
dashboard.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
<!DOCTYPE html>
<html lang="en"><head>
<meta charset="utf-8">
<title>CMA Roadie</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
<link href="css/style.css" rel="stylesheet">
<link href="css/bootstrap.css" rel="stylesheet">
<link rel="stylesheet" href="css/jquery-ui-1.8.16.custom.css" media="screen" />
<link rel="stylesheet" href="css/fullcalendar.css" media="screen" />
<link rel="stylesheet" href="css/chosen.css" media="screen" />
<link rel="stylesheet" href="css/glisse.css?1.css">
<link rel="stylesheet" href="css/jquery.jgrowl.css">
<link rel="stylesheet" href="css/demo_table.css" >
<link rel="stylesheet" href="css/jquery.fancybox.css?v=2.1.4" media="screen" />
<link rel="stylesheet" href="css/icon/font-awesome.css">
<link rel="stylesheet" href="css/bootstrap-responsive.css">
<link rel="alternate stylesheet" type="text/css" media="screen" title="green-theme" href="css/color/green.css" />
<link rel="alternate stylesheet" type="text/css" media="screen" title="red-theme" href="css/color/red.css" />
<link rel="alternate stylesheet" type="text/css" media="screen" title="blue-theme" href="css/color/blue.css" />
<link rel="alternate stylesheet" type="text/css" media="screen" title="orange-theme" href="css/color/orange.css" />
<link rel="alternate stylesheet" type="text/css" media="screen" title="purple-theme" href="css/color/purple.css" />
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script language="JavaScript">
Firefox = navigator.userAgent.indexOf("Firefox") >= 0;
if(Firefox) document.write("<link rel='stylesheet' href='css/moz.css' type='text/css'>");
function retreiveDashboard(){
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
var text = xhr.responseText;
console.log(typeof text);
text = JSON.parse(text);
$("#roadCnt").text(text[0].total);
$("#lightCnt").text(text[1].total);
$("#sewageCnt").text(text[2].total);
}
xhr.open('GET', 'http://107.22.214.135:3001/count', true);
xhr.send(null);
}
</script>
<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="favicon.ico">
</head>
<body onLoad="retreiveDashboard()">
<!--BEGIN HEADER-->
<div id="header" role="banner">
<a id="menu-link" class="head-button-link menu-hide" href="#menu"><span>Menu</span></a>
<!--Logo--><a href="dashboard.html" class="logo"><h1>CMA Roadie</h1></a><!--Logo END-->
<!--Search-->
<form class="search" action="#">
<input type="text" name="q" placeholder="Search...">
</form>
<!--Search END-->
<div class="right">
<!--message box-->
<div class="dropdown left">
<a class="dropdown-toggle head-button-link" data-toggle="dropdown" href="#"><span class="notice-new">3</span></a>
<div class="dropdown-menu pull-right messages-list">
<div class="triangle"></div>
<div class="notice-title">You Have 3 Massages</div>
<!--message #1-->
<div class="notice-message">
<a href="#" class="box">
<div class="avatar"><img src="images/avatar-2.png" alt=""></div>
<div class="info">
<div class="author">Karthikeyan Sukumaran</div>
<div class="date">Jan 9, 2013</div>
<div class="clearfix"></div>
<div class="text">Street light in Kandanchavadi has been fixed</div>
</div>
<div class="clearfix"></div>
</a>
</div>
<!--message #2-->
<div class="notice-message">
<a href="#" class="box">
<div class="avatar"><img src="images/avatar-3.png" alt=""></div>
<div class="info">
<div class="author">Yokesh</div>
<div class="date">Jan 15, 2013</div>
<div class="clearfix"></div>
<div class="text">The sewage problem in my area is still not fixed</div>
</div>
<div class="clearfix"></div>
</a>
</div>
<!--message #3-->
<div class="notice-message">
<a href="#" class="box">
<div class="avatar"><img src="images/avatar-4.png" alt=""></div>
<div class="info">
<div class="author">Venkateshwaran Loganathan</div>
<div class="date">Nov 4, 2012</div>
<div class="clearfix"></div>
<div class="text">Reported a damaged road in Selaiyur</div>
</div>
<div class="clearfix"></div>
</a>
</div>
<a href="#" class="notice-more">View All Messages</a>
</div>
</div>
<!--message box end-->
<!--notification box-->
<div class="dropdown left">
<a class="dropdown-toggle head-button-link notification" data-toggle="dropdown" href="#"><span class="notice-new">2</span></a>
<div class="dropdown-menu pull-right messages-list">
<div class="triangle"></div>
<div class="notice-title">You Have 2 Notifications</div>
<!--message #1-->
<div class="notice-message">
<a href="#" class="box">
<div class="avatar"><img src="images/avatar-5.png" alt=""></div>
<div class="info">
<div class="author">Jonas Anderson</div>
<div class="date">3 hours ago</div>
<div class="clearfix"></div>
<div class="text">Followed <span class="follow-link">Dennis Salvatier</span></div>
</div>
<div class="clearfix"></div>
</a>
</div>
<!--message #2-->
<div class="notice-message">
<a href="#" class="box">
<div class="avatar"><img src="images/avatar-6.png" alt=""></div>
<div class="info">
<div class="author">Ilias Sounas</div>
<div class="date">19 hours ago</div>
<div class="clearfix"></div>
<div class="text">Commented on <span class="comment-link">Angry Cloud</span></div>
</div>
<div class="clearfix"></div>
</a>
</div>
<!--message #3-->
<div class="notice-message">
<a href="#" class="box">
<div class="avatar"><img src="images/avatar-7.png" alt=""></div>
<div class="info">
<div class="author">Erin Hunting</div>
<div class="date">19 hours ago</div>
<div class="clearfix"></div>
<div class="text">Liked <span class="like-link">Overnight work</span></div>
</div>
<div class="clearfix"></div>
</a>
</div>
<a href="#" class="notice-more">View All Notification</a>
</div>
</div>
<!--notification box end-->
<!--config box-->
<div class="dropdown left">
<a class="dropdown-toggle head-button-link config" data-toggle="dropdown" href="#"></a>
<div class="dropdown-menu pull-right settings-box">
<div class="triangle-2"></div>
<a href="javascript:chooseStyle('none', 30)" class="settings-link"></a>
<a href="javascript:chooseStyle('blue-theme', 30)" class="settings-link blue"></a>
<a href="javascript:chooseStyle('green-theme', 30)" class="settings-link green"></a>
<a href="javascript:chooseStyle('purple-theme', 30)" class="settings-link purple"></a>
<a href="javascript:chooseStyle('orange-theme', 30)" class="settings-link yellow"></a>
<a href="javascript:chooseStyle('red-theme', 30)" class="settings-link red"></a>
<div class="clearfix"></div>
</div>
</div>
<!--config box end-->
<!--profile box-->
<div class="dropdown left profile">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
<span class="double-spacer"></span>
<div class="profile-avatar"><img src="images/avatar.png" alt=""></div>
<div class="profile-username"><span>Welcome,</span> Admin!</div>
<div class="profile-caret"> <span class="caret"></span></div>
<span class="double-spacer"></span>
</a>
<div class="dropdown-menu pull-right profile-box">
<div class="triangle-3"></div>
<ul class="profile-navigation">
<li><a href="#"><i class="icon-user"></i> My Profile</a></li>
<li><a href="#"><i class="icon-cog"></i> Settings</a></li>
<li><a href="#"><i class="icon-info-sign"></i> Help</a></li>
<li><a href="index.html"><i class="icon-off"></i> Logout</a></li>
</ul>
</div>
</div>
<div class="clearfix"></div>
<!--profile box end-->
</div>
</div>
<!--END HEADER-->
<script>
/*function retreiveRoadList(){
$.ajax({url:"http://107.22.214.135:3001/list/road",success:function(result){
for(index in result){
$("#road-table-row").append("<tr><td>"+result[index].emailid+"<tr><td>");
}
}});
}*/
</script>
<div id="wrap">
<!--BEGIN SIDEBAR-->
<div id="menu" role="navigation">
<ul class="main-menu">
<li class="active"><a href="dashboard.html"><i class="general"></i> General</a></li>
<li><a href="road-tables.html"><i class="components"></i> Roads</a></li>
<li><a href="light-tables.html"><i class="forms"></i> Light</a></li>
<li><a href="sewage-tables.html"><i class="statistics"></i> Sewage</a></li>
<!--<li><a href="typo.html"><i class="pages"></i> Pages</a></li>
<li><a href="tables.html"><i class="tables"></i> Tables</a></li>
<li><a href="contacts.html"><i class="bonus"></i> Bonus</a></li>-->
</ul>
<ul class="">
<!--<li class="active"><a href="dashboard.html"><i class="icon-home"></i> Dashboard</a></li>
<li><a href="gallery.html"><i class="icon-picture"></i> Image gallery</a></li>
<li><a href="icons.html"><i class="icon-star"></i> Icons</a></li>
<li><a href="calendar.html"><i class="icon-calendar"></i> Calendar</a></li>-->
</ul>
</div>
<!--SIDEBAR END-->
<!--BEGIN MAIN CONTENT-->
<div id="main" role="main">
<div class="block">
<div class="clearfix"></div>
<!--page title-->
<div class="pagetitle">
<h1>Dashboard.</h1>
<div class="btn-group">
<button class="btn">Day</button>
<button class="btn">Week</button>
<button class="btn">Month</button>
</div>
<div class="clearfix"></div>
</div>
<!--page title end-->
<!-- info-box -->
<div class="info-box">
<div class="row-fluid stats-box">
<div class="span4">
<div class="stats-box-title">Road complaints</div>
<div class="stats-box-all-info"><img src="images/icon/icon_vizitors_stats.png" alt=""> <span id="roadCnt"></span></div>
<div class="wrap-chart"><div id="visitor-stat" class="chart"></div></div>
</div>
<div class="span4">
<div class="stats-box-title">Light complaints</div>
<div class="stats-box-all-info"><img src="images/icon/icon_like_stats.png" alt=""> <span id="lightCnt"></span></div>
<div class="wrap-chart"><div id="order-stat" class="chart"></div></div>
</div>
<div class="span4">
<div class="stats-box-title">Sewage complaints</div>
<div class="stats-box-all-info"><img src="images/icon/icon_orders_stats.png" alt=""> <span id="sewageCnt"></span></div>
<div class="wrap-chart"><div id="user-stat" class="chart"></div></div>
</div>
</div>
<!-- <div class="information-data">
<div class="data">
<p class="date-figures">935</p>
<p class="date-title">Tikets</p>
</div>
<div class="data">
<p class="date-figures">2316$</p>
<p class="date-title">Earnings</p>
</div>
<div class="data">
<p class="date-figures">165</p>
<p class="date-title">Comments</p>
</div>
<div class="data data-last">
<p class="date-figures">95%</p>
<p class="date-title">Updates</p>
</div>
</div>-->
</div>
<!-- info-box end -->
<!--quick stats box-->
<div class="grid-transparent row-fluid quick-stats-box">
<div class="span3">
<span>21</span> twetts
</div>
<div class="span3 red">
<span>11</span> COMMENTS
</div>
<div class="span3 orange">
<span>28</span> photos
</div>
<div class="span3 green">
<span>51</span> followerss
</div>
</div>
<div class="clearfix"></div>
<!--quick stats box END-->
<!--active users-->
<div class="grid">
<div class="grid-title">
<div class="pull-left">
<div class="icon-title"><i class="icon-bar-chart"></i></div>
<span>Active Users</span>
<div class="clearfix"></div>
</div>
<div class="pull-right">
<div class="icon-title"><a href="#"><i class="icon-refresh"></i></a></div>
<div class="icon-title"><a href="#"><i class="icon-user"></i></a></div>
<div class="icon-title"><a href="#"><i class="icon-cog"></i></a></div>
</div>
<div class="clearfix"></div>
</div>
<div class="grid-content overflow">
<div id="activeUsers" class="chart-active"></div>
<div class="clear"></div>
</div>
<div class="information-data-2">
<div class="data">
<p class="date-figures">345</p>
<p class="date-title">User Download</p>
</div>
<div class="data">
<p class="date-figures">54.5C</p>
<p class="date-title">User Download</p>
</div>
<div class="data">
<p class="date-figures">120R</p>
<p class="date-title">User Download</p>
</div>
</div>
<div class="grid-content">
<div class="clear"></div>
<div class="dates-active">
<div class="input-append date">
<input class="input-date" size="16" type="text" value="12-02-2013">
<span class="add-on"><i class="icon-calendar"></i></span>
</div>
<div class="def">-</div>
<div class="input-append date">
<input class="input-date" size="16" type="text" value="12-02-2014">
<span class="add-on"><i class="icon-calendar"></i></span>
</div>
</div>
<div class="select-active">
<select class="chzn-select chosen_select" >
<option value=""></option>
<option value="United States">United States</option>
<option value="United Kingdom">United Kingdom</option>
</select>
</div>
<div class="clearfix"></div>
</div>
</div>
<!--active users END-->
<div class="row-fluid">
<!--visitor statistics-->
<div class="grid span6">
<div class="grid-title">
<div class="pull-left">
<div class="icon-title"><i class="icon-file"></i></div>
<span>Visitor Statistics</span>
<div class="clearfix"></div>
</div>
<div class="pull-right">
<div class="icon-title"><a href="#"><i class="icon-refresh"></i></a></div>
<div class="icon-title"><a href="#"><i class="icon-cog"></i></a></div>
</div>
<div class="clearfix"></div>
</div>
<div class="grid-content overflow">
<ul class="list-visitor">
<li><span class="linecustom">0,12,0,11,18,13,22,19</span>
Visits:
<span class="number">356</span>
</li>
<li><span class="linecustom">0,12,0,11,18,13,22,19</span>
Unique Visitors:
<span class="number">24</span>
</li>
<li><span class="linecustom">0,12,0,11,18,13,22,19</span>
Pageviews:
<span class="number">2104</span>
</li>
<li><span class="linecustom">0,12,0,11,18,13,22,19</span>
Bounce Rate: <span class="number">35%</span>
</li>
<li><span class="linecustom">0,12,0,11,18,13,22,19</span>
New Visits:
<span class="number">53.5%</span>
</li>
</ul>
</div>
</div>
<!--visitor statistics END-->
<!--Twitter Widget-->
<div class="grid span6">
<div class="grid-title">
<div class="pull-left">
<div class="icon-title"><i class="icon-comments"></i></div>
<span>Twitter Widget</span>
<div class="clearfix"></div>
</div>
<div class="pull-right">
<div class="icon-title"><a href="#"><i class="icon-refresh"></i></a></div>
<div class="icon-title"><a href="#"><i class="icon-cog"></i></a></div>
</div>
<div class="clearfix"></div>
</div>
<div class="grid-content overflow">
<div class="friends">
<div class="friend">
<img src="images/avatar-14.png" alt="" class="f-avatar">
<div class="f-info">
<div class="f-name">Maykel Loomans</div>
<div class="f-text">Cras sit amet nibh libero, in gravida nulla.</div>
</div>
<div class="t-foot">
<div class="t-date">23 hour ago.</div>
<div class="t-retweet"><a href="#"><i class="icon-share-alt"></i></a></div>
</div>
<div class="clearfix"></div>
</div>
<div class="friend">
<img src="images/avatar-13.png" alt="" class="f-avatar">
<div class="f-info">
<div class="f-name">Bobby Giangeruso</div>
<div class="f-text">Cras sit amet nibh libero, in gravida nulla.</div>
</div>
<div class="t-foot">
<div class="t-date">23 hour ago.</div>
<div class="t-retweet"><a href="#"><i class="icon-share-alt"></i></a></div>
</div>
<div class="clearfix"></div>
</div>
<div class="friend">
<img src="images/avatar-12.png" alt="" class="f-avatar">
<div class="f-info">
<div class="f-name">Simon Gustavsson</div>
<div class="f-text">Cras sit amet nibh libero, in gravida nulla.</div>
</div>
<div class="t-foot">
<div class="t-date">23 hour ago.</div>
<div class="t-retweet"><a href="#"><i class="icon-share-alt"></i></a></div>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
</div>
<!--Twitter Widget END-->
<div class="clearfix"></div>
<!--BEGIN FOOTER-->
<div class="footer">
<div class="left">Copyright © 2013</div>
<div class="right"><a href="http://www.thoughtworks.com/events/cma-hackathon-code-governance" target="_blank">Hackathon - CMA Roadie</a></div>
<div class="clearfix"></div>
</div>
<!--BEGIN FOOTER END-->
<div class="clearfix"></div>
</div><!--end .block-->
</div>
<!--MAIN CONTENT END-->
</div>
<!--/#wrapper-->
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="js/jquery.min.js"></script>
<script src="js/jquery-ui.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/google-code-prettify/prettify.js"></script>
<script src="js/jquery.flot.js"></script>
<script src="js/jquery.flot.pie.js"></script>
<script src="js/jquery.flot.orderBars.js"></script>
<script src="js/jquery.flot.resize.js"></script>
<script src="js/jquery.flot.categories.js"></script>
<script src="js/graphtable.js"></script>
<script src="js/fullcalendar.min.js"></script>
<script src="js/chosen.jquery.min.js"></script>
<script src="js/autoresize.jquery.min.js"></script>
<script src="js/jquery.autotab.js"></script>
<script src="js/jquery.jgrowl_minimized.js"></script>
<script src="js/jquery.dataTables.min.js"></script>
<script src="js/jquery.stepy.min.js"></script>
<script src="js/jquery.validate.min.js"></script>
<script src="js/raphael.2.1.0.min.js"></script>
<script src="js/justgage.1.0.1.min.js"></script>
<script src="js/glisse.js"></script>
<script src="js/styleswitcher.js"></script>
<script src="js/moderniz.js"></script>
<script src="js/jquery.sparkline.min.js"></script>
<script src="js/slidernav-min.js"></script>
<script type="text/javascript" src="js/jquery.fancybox.js?v=2.1.4"></script>
<script>
Modernizr.load([
{
load: [
'js/main.js'
],
complete: function()
{
$.fn.ready(function()
{
window.App.init();
});
}
}
]);
</script>
<script src="js/application.js"></script>
<!--settings infobox charts-->
<script src="js/float.settings.infobox.js"></script>
</body>
</html>