-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
139 lines (123 loc) · 4.6 KB
/
index.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
<!DOCTYPE html>
<html lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Malta WEB</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- styles -->
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/datepicker.css" rel="stylesheet">
<link href="datatables/css/datatables_bootstrap.css" rel="stylesheet">
<style>
body {
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
}
.number_range_filter {
width: 25px
}
</style>
<!-- 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]-->
<!-- Fav and touch icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="ico/apple-touch-icon-57-precomposed.png">
<link rel="shortcut icon" href="ico/favicon.png">
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="#">Malta</a>
<div class="nav-collapse collapse">
<ul class="nav" id="menu">
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Globales<b class="caret"></b></a>
<ul class="dropdown-menu">
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Diarias<b class="caret"></b></a>
<ul class="dropdown-menu">
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Semanales<b class="caret"></b></a>
<ul class="dropdown-menu">
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Mensuales<b class="caret"></b></a>
<ul class="dropdown-menu">
</ul>
</li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<div class="container">
<div class="well">
<h3 id="frecuencia">Estadísticas Globales</h3>
<div class="row-fluid">
<div class="span4"><h4 id="reporte">Reporte</h4></div>
<div class="span8">
<div class="input-append date" id="date-input" data-date="view.getYesterdayDate();" data-date-format="yyyy/mm/dd">
<input class="span4" size="16" type="text" id="date-text" />
<span class="add-on"><i class="icon-calendar"></i></span>
</div>
</div>
</div>
</div>
<div class="alert alert-block alert-error fade in hide" id="alert">
<button type="button" class="close">×</button>
<strong>No se encontraron datos para la fecha seleccionada</strong>
</div>
<div id="table-row">
<table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="data-table">
</table>
</div>
</div> <!-- /container -->
<!-- Javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="js/jquery.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/bootstrap-datepicker.js"></script>
<script src="datatables/js/jquery.dataTables.js"></script>
<script src="datatables/js/DT_bootstrap_paging.js"></script>
<script src="datatables/extras/jquery.dataTables.columnFilter.js"></script>
<script src="app/controller.js"></script>
<script src="app/reports.js"></script>
<script src="app/view.js"></script>
<script>
var view = new View();
$(function(){
$.extend( $.fn.dataTableExt.oStdClasses, {
"sWrapper": "dataTables_wrapper form-inline"
} );
var reports = view.loadReportsList();
$('.dropdown-menu').each(function() {
$(this).append(reports);
});
$('#date-input').datepicker()
.on('changeDate', function(ev){
view.loadValues($('#date-input').data('date'));
});
view.selectReport('Globales', 'Globales');
/* Hide alert */
$('.close').click(function(){
$(this).parent().hide();
});
});
</script>
</body>
</html>