Start the web server inside the src directory
This commit is contained in:
parent
222194f1f1
commit
554baf39ff
@ -17,6 +17,7 @@ mkShell {
|
||||
|
||||
alias mysql='mysql --socket="$(pwd)/.mysql/mysql.sock" -u root'
|
||||
|
||||
cd src
|
||||
php -S localhost:8000
|
||||
'';
|
||||
}
|
||||
|
@ -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' ?>
|
||||
|
@ -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' ?>
|
||||
|
5668
static/moment.js
5668
static/moment.js
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user