-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
81 lines (78 loc) · 2.28 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
//Configuracion de la zona horaria
date_default_timezone_set("America/El_Salvador");
session_start();
if($_SESSION['user'] != ""){
}
else{
header('Location:login.php');
}
//Seleccion del modulo
switch( @$_GET["mod"] ){
//Redirecciona al modulo de medicos
case 'me':
if($_SESSION['tipousuario'] == "A"){
$Modulo = 'presentacion/medicos/index.php';
}
else{
header('Location:index.php');
}
break;
//Redirecciona al modulo de pacientes
case 'pa':
$Modulo = 'presentacion/pacientes/index.php';
break;
//Redirecciona al modulo de consultas
case 'con':
$Modulo = 'presentacion/consultas/index.php';
break;
//Modulo por defecto, menu principal
default:
$Modulo = 'presentacion/menu.php';
break;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<script src="js/jquery.min.js"></script>
<script src="js/jquery.slim.min.js"></script>
<script src="js/prototype.js"></script>
<title>Consultorio medico</title>
</head>
<body>
<style>
body{
background-color: #CEECF5;
}
.container{
width: 60%;
margin: 50px auto;
height: auto;
font-family: Arial, sans-serif;
background-color: ;
}
.card{
border: 0px;
}
.card, .table{
background-color: #FAFAFA;
box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2);
}
.form-control:focus{
box-shadow: none;
}
</style>
<div id="DivMainIndex" style='position: relative; margin: 0 auto 0 auto;'>
<?php
require_once $Modulo;
?>
</div>
</body>
</html>