-
Notifications
You must be signed in to change notification settings - Fork 0
/
main original.php
253 lines (218 loc) · 8.99 KB
/
main original.php
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
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Panel de administración | I LOVE MAKEUP STUDIO</title>
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Sistema de citas I LOVE MAKEUP STUDIO">
<meta name="author" content="Sistema de Citas - Author " />
<!-- favicon -->
<link rel="shortcut icon" href="assets/img/favicon.png" />
<!-- Bootstrap 3.3.2 -->
<link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<!-- FontAwesome 4.3.0 -->
<link href="assets/plugins/font-awesome-4.6.3/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<!-- DATA TABLES -->
<link href="assets/plugins/datatables/dataTables.bootstrap.css" rel="stylesheet" type="text/css" />
<!-- Datepicker -->
<link href="assets/plugins/datepicker/datepicker.min.css" rel="stylesheet" type="text/css" />
<!-- Chosen Select -->
<link rel="stylesheet" type="text/css" href="assets/plugins/chosen/css/chosen.min.css" />
<!-- Theme style -->
<link href="assets/css/AdminLTE.min.css" rel="stylesheet" type="text/css" />
<!-- AdminLTE Skins. Choose a skin from the css/skins folder instead of downloading all of them to reduce the load. -->
<link href="assets/css/skins/skin-blue.min.css" rel="stylesheet" type="text/css" />
<!-- Date Picker -->
<link href="assets/plugins/datepicker/datepicker3.css" rel="stylesheet" type="text/css" />
<!-- Custom CSS -->
<link href="assets/css/style.css" rel="stylesheet" type="text/css" />
<script language="javascript">
function getkey(e)
{
if (window.event)
return window.event.keyCode;
else if (e)
return e.which;
else
return null;
}
function goodchars(e, goods, field)
{
var key, keychar;
key = getkey(e);
if (key == null) return true;
keychar = String.fromCharCode(key);
keychar = keychar.toLowerCase();
goods = goods.toLowerCase();
// check goodkeys
if (goods.indexOf(keychar) != -1)
return true;
// control keys
if ( key==null || key==0 || key==8 || key==9 || key==27 )
return true;
if (key == 13) {
var i;
for (i = 0; i < field.form.elements.length; i++)
if (field == field.form.elements[i])
break;
i = (i + 1) % field.form.elements.length;
field.form.elements[i].focus();
return false;
};
// else return false
return false;
}
</script>
</head>
<body class="skin-blue fixed">
<div class="wrapper">
<header class="main-header">
<!-- Logo -->
<a href="?module=beranda" class="logo">
<img style="margin-top:-15px;margin-right:5px" src="assets/img/logo.png" alt="Logo">
<span style="font-size:20px">ILOVEMAKEUP STUDIO</span>
</a>
<nav class="navbar navbar-static-top" role="navigation">
<!-- Sidebar toggle button-->
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
<span class="sr-only">Toggle navigation</span>
</a>
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
<?php include "top-menu.php" ?>
</ul>
</div>
</nav>
</header>
<aside class="main-sidebar">
<section class="sidebar">
<?php include "sidebar-menu.php" ?>
</section>
<!-- /.sidebar -->
</aside>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<?php include "content.php" ?>
<!-- Modal Logout -->
<div class="modal fade" id="logout">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title"><i class="fa fa-sign-out"> Salir</i></h4>
</div>
<div class="modal-body">
<p>¿Seguro que quieres salir? </p>
</div>
<div class="modal-footer">
<a type="button" class="btn btn-danger" href="logout.php">Si, Salir</a>
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
</div><!-- /.content-wrapper -->
<footer class="main-footer">
<strong>I LOVE MAKEUP STUDIO</a>.</strong>
</footer>
</div><!-- ./wrapper -->
<!-- jQuery 2.1.3 -->
<script src="assets/plugins/jQuery/jQuery-2.1.3.min.js"></script>
<!-- Bootstrap 3.3.2 JS -->
<script src="assets/js/bootstrap.min.js" type="text/javascript"></script>
<!-- datepicker -->
<script src="assets/plugins/datepicker/bootstrap-datepicker.js" type="text/javascript"></script>
<!-- chosen select -->
<script src="assets/plugins/chosen/js/chosen.jquery.min.js"></script>
<!-- DATA TABES SCRIPT -->
<script src="assets/plugins/datatables/jquery.dataTables.js" type="text/javascript"></script>
<script src="assets/plugins/datatables/dataTables.bootstrap.js" type="text/javascript"></script>
<!-- Datepicker -->
<script src="assets/plugins/datepicker/bootstrap-datepicker.min.js" type="text/javascript"></script>
<!-- Slimscroll -->
<script src="assets/plugins/slimScroll/jquery.slimscroll.min.js" type="text/javascript"></script>
<!-- FastClick -->
<script src='assets/plugins/fastclick/fastclick.min.js'></script>
<!-- maskMoney -->
<script src="assets/js/jquery.maskMoney.min.js"></script>
<!-- AdminLTE App -->
<script src="assets/js/app.min.js" type="text/javascript"></script>
<!-- page script -->
<script type="text/javascript">
$(function () {
// datepicker plugin
$('.date-picker').datepicker({
autoclose: true,
todayHighlight: true
});
// chosen select
$('.chosen-select').chosen({allow_single_deselect:true});
//resize the chosen on window resize
// mask money
$('#harga_beli').maskMoney({thousands:'.', decimal:',', precision:0});
$('#harga_jual').maskMoney({thousands:'.', decimal:',', precision:0});
$(window)
.off('resize.chosen')
.on('resize.chosen', function() {
$('.chosen-select').each(function() {
var $this = $(this);
$this.next().css({'width': $this.parent().width()});
})
}).trigger('resize.chosen');
//resize chosen on sidebar collapse/expand
$(document).on('settings.ace.chosen', function(e, event_name, event_val) {
if(event_name != 'sidebar_collapsed') return;
$('.chosen-select').each(function() {
var $this = $(this);
$this.next().css({'width': $this.parent().width()});
})
});
$('#chosen-multiple-style .btn').on('click', function(e){
var target = $(this).find('input[type=radio]');
var which = parseInt(target.val());
if(which == 2) $('#form-field-select-4').addClass('tag-input-style');
else $('#form-field-select-4').removeClass('tag-input-style');
});
// DataTables
$("#dataTables1").dataTable();
$('#dataTables2').dataTable({
"bPaginate": true,
"bLengthChange": false,
"bFilter": false,
"bSort": true,
"bInfo": true,
"bAutoWidth": false,
"language": idioma_español
});
});
var idioma_español= {
"sProcessing": "Procesando...",
"sLengthMenu": "Mostrar _MENU_ registros",
"sZeroRecords": "No se encontraron resultados",
"sEmptyTable": "Ningún dato disponible en esta tabla",
"sInfo": "Mostrando registros del _START_ al _END_ de un total de _TOTAL_ registros",
"sInfoEmpty": "Mostrando registros del 0 al 0 de un total de 0 registros",
"sInfoFiltered": "(filtrado de un total de _MAX_ registros)",
"sInfoPostFix": "",
"sSearch": "Buscar:",
"sUrl": "",
"sInfoThousands": ",",
"sLoadingRecords": "Cargando...",
"oPaginate": {
"sFirst": "Primero",
"sLast": "Último",
"sNext": "Siguiente",
"sPrevious": "Anterior"
},
"oAria": {
"sSortAscending": ": Activar para ordenar la columna de manera ascendente",
"sSortDescending": ": Activar para ordenar la columna de manera descendente"
}
}
</script>
</body>
</html>