-
Notifications
You must be signed in to change notification settings - Fork 1
/
tablas.php
64 lines (52 loc) · 2.34 KB
/
tablas.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
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<meta charset="UTF-8">
<title>Motofitness</title>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
</head>
<body>
<div class="container">
<nav class='navbar navbar-light bg-light row'>
<?php
// put your code here
session_start();
include "daoMySQL.php";
//$_SESSION['dni'] = $_POST['user'];
if ($_SESSION['resLogin'] == "cliente" || $_SESSION['resLogin'] == "empleado") {
if ($_SESSION['resLogin'] == "cliente") {
print("<a class='navbar-brand' href='progreso.php'>Progreso</a>");
}
print("
<a class='navbar-brand' href='resumen.php'>Resumen</a>");
if ($_SESSION['resLogin'] == "cliente") {
print("<a class='navbar-brand' href='dietas.php'>Dietas</a>");
}
print(" <a class='navbar-brand' href='index.php'>Inicio</a>
");
if ($_SESSION['resLogin'] == "empleado") {
print("<a class='navbar-brand' href='admin.php'>Administracion</a>");
}
if ($_SESSION['resLogin'] == "cliente") {
print("<a class='navbar-brand' href='ampliarplan.php'>Ampliar plan</a>"
. "<a class='navbar-brand' href='logout.php'>Logout</a>");
} else {
print("<a class='navbar-brand' href='logout.php'>Logout</a>");
}
}
?>
</nav>
<?php
// put your code here
print(getTablas($_SESSION['dni']));
?>
</div>
</body>
</html>