MDIS/src/appointment.php

35 lines
1.3 KiB
PHP

<?php session_start(); ?>
<html class="no-js" lang="es">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<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/fullcalendar.css" type="text/css" media="screen"/>
<script src="static/jquery-3.5.1.min.js"></script>
<script src="static/jquery-ui.min.js"></script>
<script src="static/moment.min.js"></script>
<script src="static/fullcalendar.min.js"></script>
<script src="calendar.js"></script>
</head>
<body>
<?php include 'navbar.php'; ?>
<?php
include 'database.php';
$pdo = connectDatabase();
$events = fetchCalendarEvents($pdo);
if($_SESSION["user_type"] == 2){
$user = finduser($pdo, $_SESSION["user"]);
}
$holidays = fetchDoctorHolidays($pdo, $user[0][4]);
$calendar_settings = fetchCalendarSettings($pdo, $user[0][4]);
closeDatabase($pdo);
?>
<div class="response"></div>
<div id="calendar"></div>
</body>
</html>