-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdashboard.php
156 lines (146 loc) · 6.45 KB
/
dashboard.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
<?php
$page["nombrePag"] = "Dashboard";
include_once("funciones/generalF.php");
/*echo session_status();*/
session_start();
if(!isset($_SESSION["usuario"])){
header("location:index.php");
}
unset($_SESSION["tokens"]);
/*print_r($_SESSION);*/
ob_start();
?>
<h1 style="text-align: center; color: #060349"><b>Bienvenido a Tetuán Jobs</b>
</h1>
<div class="panel sinborde col-md-12">
<h2>Usuario <?php echo $_SESSION["usuario"]->nombre; ?></h2>
</div>
<div class="panel sinborde col-md-12 " data-toggle="play-animation" data-play="bounceIn" data-offset="0" >
<?php
/* Estudiante*/
if($_SESSION["usuario"]->tipo == "estudiante"){
?>
<!-- Perfil -->
<div class="panel sinborde col-md-6" id="panel-anim-zoomOut">
<a href="perfil_estudiante.php" data-toggle="play-animation" data-play="zoomOut" data-target="#panel-anim-zoomOut">
<div class="row">
<div class="col-sm-12">
<div class="panel widget">
<div class="panel-body bg-inverse text-center">
<em class="fa fa-user" style="font-size: 75px"></em>
<h3>Perfil</h3>
</div>
</div>
</div>
</div>
</a>
</div>
<!-- Fin de Perfil -->
<!-- Búsqueda -->
<div class="panel sinborde col-md-6" id="panel-anim-zoomOut1">
<a href="busqueda_ofertas.php" data-toggle="play-animation" data-play="zoomOut" data-target="#panel-anim-zoomOut1">
<div class="row">
<div class="col-sm-12">
<div class="panel widget">
<div class="panel-body bg-inverse text-center">
<em class="fa fa-archive" style="font-size: 75px"></em>
<h3>Búsqueda</h3>
</div>
</div>
</div>
</div>
</a>
</div>
<!-- Fin de Búsqueda -->
<?php
/* Administrador*/
}else if($_SESSION["usuario"]->tipo == "administrador"){
?>
<!-- Usuarios -->
<div class="panel sinborde col-md-4" id="panel-anim-zoomOut2">
<a href="gestion_estudiantes.php" data-toggle="play-animation" data-play="zoomOut" data-target="#panel-anim-zoomOut2">
<div class="row">
<div class="col-sm-12">
<div class="panel widget">
<div class="panel-body bg-inverse text-center">
<em class="fa fa-user" style="font-size: 75px"></em>
<h3>Estudiantes</h3>
</div>
</div>
</div>
</div>
</a>
</div>
<!-- Fin de Usuarios-->
<!-- Empresas -->
<div class="panel sinborde col-md-4" id="panel-anim-zoomOut3">
<a href="gestion_empresas.php" data-toggle="play-animation" data-play="zoomOut" data-target="#panel-anim-zoomOut3">
<div class="row">
<div class="col-sm-12">
<div class="panel widget">
<div class="panel-body bg-inverse text-center">
<em class="fa fa-building-o" style="font-size: 75px"></em>
<h3>Empresas</h3>
</div>
</div>
</div>
</div>
</a>
</div>
<!-- Fin de Empresas -->
<!-- Usuarios -->
<div class="panel sinborde col-md-4" id="panel-anim-zoomOut4">
<a href="etiquetas_idiomas.php" data-toggle="play-animation" data-play="zoomOut" data-target="#panel-anim-zoomOut4">
<div class="row">
<div class="col-sm-12">
<div class="panel widget">
<div class="panel-body bg-inverse text-center">
<em class="fa fa-tags" style="font-size: 75px"></em>
<h3>Etiquetas e Idiomas</h3>
</div>
</div>
</div>
</div>
</a>
</div>
<!-- Fin de Usuarios-->
<?php }else if($_SESSION["usuario"]->tipo == "empresa"){ ?>
<!-- Perfil -->
<div class="panel sinborde col-md-6" id="panel-anim-zoomOut">
<a href="perfil_empresa.php" data-toggle="play-animation" data-play="zoomOut" data-target="#panel-anim-zoomOut">
<div class="row">
<div class="col-sm-12">
<div class="panel widget">
<div class="panel-body bg-inverse text-center">
<em class="fa fa-user" style="font-size: 75px"></em>
<h3>Perfil</h3>
</div>
</div>
</div>
</div>
</a>
</div>
<!-- Fin de Perfil -->
<!-- Puestos -->
<div class="panel sinborde col-md-6" id="panel-anim-zoomOut4">
<a href="ficha_puestos.php" data-toggle="play-animation" data-play="zoomOut" data-target="#panel-anim-zoomOut4">
<div class="row">
<div class="col-sm-12">
<div class="panel widget">
<div class="panel-body bg-inverse text-center">
<em class="fa fa-newspaper-o" style="font-size: 75px"></em>
<h3>Puestos</h3>
</div>
</div>
</div>
</div>
</a>
</div>
<!-- Fin de puestos -->
<?php } ?>
</div>
<?php
$page["cuerpo"] = ob_get_clean();
/** Incluimos el fichero cuerpo **/
include_once("cuerpo.php");
?>