Start the web server inside the src directory
This commit is contained in:
@@ -6,12 +6,11 @@
|
||||
<title>Gestión de citas</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="../static/style.css" type="text/css" media="screen" />
|
||||
<link rel="stylesheet" href="static/style.css" type="text/css" media="screen" />
|
||||
<link href='../lib/fullcalendar/core/main.css' rel='stylesheet' />
|
||||
<script src='../lib/fullcalendar/core/main.js'></script>
|
||||
<script src='../lib/fullcalendar/moment/main.min.js'></script>
|
||||
<script src="../static/jquery-3.5.1.min.js"></script>
|
||||
<script src="../static/moment.js"></script>
|
||||
<script src="static/jquery-3.5.1.min.js"></script>
|
||||
<script src="calendar.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
function connectDatabase() {
|
||||
$connection = 'unix_socket';
|
||||
$host = '.mysql/mysql.sock';
|
||||
$host = '../.mysql/mysql.sock';
|
||||
$charset = 'utf8mb4';
|
||||
$db = 'practica';
|
||||
$dsn = "mysql:$connection=$host;dbname=$db;charset=$charset";
|
||||
@@ -95,10 +95,6 @@ function deactivateUser($pdo, $data, $id) {
|
||||
return "Usuario desactivado con éxito";
|
||||
}
|
||||
|
||||
function listAppointments($pdo, string $doctor) {
|
||||
findRows($pdo, "cita", "medico", $doctor);
|
||||
}
|
||||
|
||||
function listUsers($pdo) {
|
||||
$query = "SELECT usuario.nombre, usuario.usuario, rol.nombre, usuario.correo, usuario.id, fecha_baja FROM usuario
|
||||
INNER JOIN rol ON usuario.rol = rol.codigo";
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<title>Gestión de festivos</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="../static/style.css" type="text/css" media="screen" />
|
||||
<link rel="stylesheet" href="static/style.css" type="text/css" media="screen" />
|
||||
</head>
|
||||
<body>
|
||||
<?php include 'navbar.php' ?>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<title>Gestión de usuarios</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="../static/style.css" type="text/css" media="screen" />
|
||||
<link rel="stylesheet" href="static/style.css" type="text/css" media="screen" />
|
||||
<script src="validate_date.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<title>Gestión de usuarios</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="../static/style.css" type="text/css" media="screen" />
|
||||
<link rel="stylesheet" href="static/style.css" type="text/css" media="screen" />
|
||||
</head>
|
||||
<body>
|
||||
<?php include 'navbar.php' ?>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<title>MDIS</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="../static/style.css" type="text/css" media="screen" />
|
||||
<link rel="stylesheet" href="static/style.css" type="text/css" media="screen" />
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
|
||||
@@ -6,11 +6,10 @@
|
||||
<title>Gestión de usuarios</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="../static/style.css" type="text/css" media="screen" />
|
||||
<link rel="stylesheet" href="static/style.css" type="text/css" media="screen" />
|
||||
<script src="validate_user.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<?php include 'navbar.php' ?>
|
||||
</body>
|
||||
<form name="login_form" method="post" action="user_management.php" onsubmit="return validateLogin();">
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<title>Gestión de pacientes</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="../static/style.css" type="text/css" media="screen" />
|
||||
<link rel="stylesheet" href="static/style.css" type="text/css" media="screen" />
|
||||
</head>
|
||||
<body>
|
||||
<?php include 'navbar.php' ?>
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
<title>Gestión de pacientes</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="../static/style.css" type="text/css" media="screen" />
|
||||
<script src="../static/jquery-3.5.1.min.js"></script>
|
||||
<link rel="stylesheet" href="static/style.css" type="text/css" media="screen" />
|
||||
<script src="static/jquery-3.5.1.min.js"></script>
|
||||
<script src="ajax.js"></script>
|
||||
<script src="validate_patient.js"></script>
|
||||
</head>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<title>Gestión de pacientes</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="../static/style.css" type="text/css" media="screen" />
|
||||
<link rel="stylesheet" href="static/style.css" type="text/css" media="screen" />
|
||||
</head>
|
||||
<body>
|
||||
<?php include 'navbar.php' ?>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<title>Gestión de informes</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="../static/style.css" type="text/css" media="screen" />
|
||||
<link rel="stylesheet" href="static/style.css" type="text/css" media="screen" />
|
||||
</head>
|
||||
<body>
|
||||
<?php include 'navbar.php' ?>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<title>Gestión de usuarios</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="../static/style.css" type="text/css" media="screen" />
|
||||
<link rel="stylesheet" href="static/style.css" type="text/css" media="screen" />
|
||||
<script src="validate_report.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<title>Gestión de usuarios</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="../static/style.css" type="text/css" media="screen" />
|
||||
<link rel="stylesheet" href="static/style.css" type="text/css" media="screen" />
|
||||
</head>
|
||||
<body>
|
||||
<?php include 'navbar.php' ?>
|
||||
|
||||
2
src/static/jquery-3.5.1.min.js
vendored
Normal file
2
src/static/jquery-3.5.1.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
156
src/static/style.css
Normal file
156
src/static/style.css
Normal file
@@ -0,0 +1,156 @@
|
||||
* {
|
||||
font-family: Roboto, Mono;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
table{
|
||||
width: 50%;
|
||||
margin: 30px auto;
|
||||
border-collapse: collapse;
|
||||
text-align: left;
|
||||
}
|
||||
tr {
|
||||
border-bottom: 1px solid #cbcbcb;
|
||||
}
|
||||
th, td{
|
||||
border: none;
|
||||
height: 30px;
|
||||
padding: 2px;
|
||||
}
|
||||
tr:hover {
|
||||
background: #F5F5F5;
|
||||
}
|
||||
|
||||
form {
|
||||
width: 45%;
|
||||
margin: 50px auto;
|
||||
text-align: left;
|
||||
padding: 20px;
|
||||
border: 1px solid #bbbbbb;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.input-group {
|
||||
margin: 10px 0px 10px 0px;
|
||||
}
|
||||
.input-group label {
|
||||
display: block;
|
||||
text-align: left;
|
||||
margin: 3px;
|
||||
}
|
||||
.input-group input {
|
||||
height: 30px;
|
||||
width: 93%;
|
||||
padding: 5px 10px;
|
||||
font-size: 16px;
|
||||
border-radius: 5px;
|
||||
border: 1px solid gray;
|
||||
}
|
||||
|
||||
.search-group input {
|
||||
height: 30px;
|
||||
width: 93%;
|
||||
font-size: 16px;
|
||||
}
|
||||
.btn {
|
||||
padding: 10px;
|
||||
font-size: 15px;
|
||||
color: white;
|
||||
background: #5F9EA0;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.create_btn {
|
||||
text-decoration: none;
|
||||
padding: 2px 5px;
|
||||
background: #5F9EA0;
|
||||
color: white;
|
||||
border-radius: 3px;
|
||||
margin: 400px;
|
||||
}
|
||||
|
||||
.back_btn {
|
||||
text-decoration: none;
|
||||
padding: 2px 5px;
|
||||
background: #88B8E7;
|
||||
color: white;
|
||||
border-radius: 3px;
|
||||
margin: 400px;
|
||||
}
|
||||
|
||||
.edit_btn {
|
||||
text-decoration: none;
|
||||
padding: 2px 5px;
|
||||
background: #2E8B57;
|
||||
color: white;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.del_btn {
|
||||
text-decoration: none;
|
||||
padding: 2px 5px;
|
||||
color: white;
|
||||
border-radius: 3px;
|
||||
background: #800000;
|
||||
}
|
||||
|
||||
header {
|
||||
background: #5F9EA0;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 40px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
box-shadow: 0 0 25px 0 black;
|
||||
}
|
||||
|
||||
header * {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
header li {
|
||||
margin: 20px;
|
||||
}
|
||||
|
||||
header li a {
|
||||
color: black;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
main {
|
||||
background: white;
|
||||
}
|
||||
|
||||
.hero {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
text-align: center;
|
||||
color: white;
|
||||
|
||||
background-image: linear-gradient(rgba(0, 0, 0, 0.5),rgba(0, 0, 0, 0.5)), url('https://www.pepperconstruction.com/sites/default/files/images/pmc1.jpg');
|
||||
background-size: cover;
|
||||
background-position: center center;
|
||||
background-repeat: no-repeat;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
.hero h1 {
|
||||
font-size: 5em;
|
||||
|
||||
margin-top: 0;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
.success {
|
||||
background: #cdf3cd;
|
||||
padding: 10px 60px;
|
||||
border: #c3e6c3 1px solid;
|
||||
display: inline-block;
|
||||
}
|
||||
@@ -6,7 +6,7 @@
|
||||
<title>Gestión de usuarios</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="../static/style.css" type="text/css" media="screen" />
|
||||
<link rel="stylesheet" href="static/style.css" type="text/css" media="screen" />
|
||||
</head>
|
||||
<body>
|
||||
<?php include 'navbar.php' ?>
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
<title>Gestión de usuarios</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="../static/style.css" type="text/css" media="screen" />
|
||||
<script src="../validate_user.js"></script>
|
||||
<link rel="stylesheet" href="static/style.css" type="text/css" media="screen" />
|
||||
<script src="validate_user.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<?php include 'navbar.php' ?>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<title>Gestión de usuarios</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="../static/style.css" type="text/css" media="screen" />
|
||||
<link rel="stylesheet" href="static/style.css" type="text/css" media="screen" />
|
||||
</head>
|
||||
<body>
|
||||
<?php include 'navbar.php' ?>
|
||||
|
||||
Reference in New Issue
Block a user