-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
60 lines (42 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8"/>
<title>Portada MI TIENDA</title>
<!-- Los estilos css de Bootstrap -->
<link rel="stylesheet" href="./css/bootstrap.css"/>
<!-- Mis estilos css PERSONALIZADOS -->
<link rel="stylesheet" href="./css/estilos.css"/>
<!------------------- carga de javascripts ------------------------------------------------->
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="./js/jquery-2.1.4.min.js"></script>
<!-- el que viene compilado -->
<script src="./js/bootstrap.min.js" ></script>
</head>
<body>
<!---------------- Includes ------------------->
<?php
session_start();
?>
<div class="container">
<!---------------- Menu superior ------------------->
<?php
if (isset ($_SESSION['role'])){
if ($_SESSION['role'] == "usuario"){
include("menuUser.inc.php");
}
elseif ($_SESSION['role'] == "administrador"){
include("menuAdmin.inc.php");
}
}
else{
include("menu.inc.php");
}
?>
<!---------------- Fin menu superior ------------------->
<h1>Mi tienda</h1>
</div>
<!---------------- Comienza Footer ------------------->
<?php include("footer.php"); ?>
</body>
</html>