-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
39 lines (39 loc) · 1.29 KB
/
index.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
<?php
session_start(['name' => 'alquileres-admin']);
?>
<!DOCTYPE html>
<html lang="es" dir="ltr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Alquileres económicos</title>
<link rel="icon" type="image/png" href="static/img/favicon-white.png">
<link rel="stylesheet" href="static/css/bootstrap.min.css">
<link rel="stylesheet" href="static/css/jquery.dataTables.min.css">
<link rel="stylesheet" href="vendors/material-design-iconic-font/css/material-design-iconic-font.min.css">
<link rel="stylesheet" href="static/css/style.css">
</head>
<body>
<?php
if (isset($_SESSION['username'])) {
require_once 'views/main.php';
} else {
if (isset($_GET['page'])) {
require_once 'views/' . $_GET['page'] . '.php';
} else {
require_once 'views/login.php';
}
}
?>
<script src="static/js/bootstrap.bundle.min.js"></script>
<script src="static/js/jquery-3.6.0.min.js"></script>
<script src="static/js/jquery.dataTables.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script>
$(document).ready(function () {
$('#myTable').DataTable();
});
</script>
</body>
</html>