Include navbar in all files and flatten directory

This commit is contained in:
coolneng 2020-06-20 15:09:23 +02:00
parent 7106239d88
commit 222194f1f1
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
16 changed files with 45 additions and 252 deletions

View File

@ -15,23 +15,7 @@
<script src="calendar.js"></script> <script src="calendar.js"></script>
</head> </head>
<body> <body>
<header> <?php include 'navbar.php' ?>
<nav>
<ul class="navbar-left">
<li class="list"><a href="index.php">Página principal</a></li>
<?php if(isset($_SESSION["user"])) : ?>
<li class="list"><a href="user.php">Usuarios</a></li>
<li class="list"><a href="patient.php">Pacientes</a></li>
<li class="list"><a href="appointment.php">Citas</a></li>
<li class="list"><a href="holiday.php">Vacaciones</a></li>
<?php endif ?>
<?php if($_SESSION["user_type"] == 2) : ?>
<li class="list"><a href="report.php">Informes</a></li>
<?php endif ?>
<li class="list"><a href="login.php">Login</a></li>
</ul>
</nav>
</header>
<div class="response"></div> <div class="response"></div>
<div id="calendar" style="max-width: 700px; margin: auto;"></div> <div id="calendar" style="max-width: 700px; margin: auto;"></div>
</body> </body>

View File

@ -9,23 +9,7 @@
<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> </head>
<body> <body>
<header> <?php include 'navbar.php' ?>
<nav>
<ul class="navbar-left">
<li class="list"><a href="index.php">Página principal</a></li>
<?php if(isset($_SESSION["user"])) : ?>
<li class="list"><a href="user.php">Usuarios</a></li>
<li class="list"><a href="patient.php">Pacientes</a></li>
<li class="list"><a href="appointment.php">Citas</a></li>
<li class="list"><a href="holiday.php">Vacaciones</a></li>
<?php endif ?>
<?php if($_SESSION["user_type"] == 2) : ?>
<li class="list"><a href="report.php">Informes</a></li>
<?php endif ?>
<li class="list"><a href="login.php">Login</a></li>
</ul>
</nav>
</header>
<div style="text-align: right; margin-top: 50px;"> <div style="text-align: right; margin-top: 50px;">
<a href="forms/holiday_create_form.php" class="create_btn" >Crear</a> <a href="forms/holiday_create_form.php" class="create_btn" >Crear</a>
</div> </div>

View File

@ -5,27 +5,11 @@
<title>Gestión de usuarios</title> <title>Gestión de usuarios</title>
<meta name="description" content=""> <meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1"> <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> <script src="validate_date.js"></script>
</head> </head>
<body> <body>
<header> <?php include 'navbar.php' ?>
<nav>
<ul class="navbar-left">
<li class="list"><a href="index.php">Página principal</a></li>
<?php if(isset($_SESSION["user"])) : ?>
<li class="list"><a href="user.php">Usuarios</a></li>
<li class="list"><a href="patient.php">Pacientes</a></li>
<li class="list"><a href="appointment.php">Citas</a></li>
<li class="list"><a href="holiday.php">Vacaciones</a></li>
<?php endif ?>
<?php if($_SESSION["user_type"] == 2) : ?>
<li class="list"><a href="report.php">Informes</a></li>
<?php endif ?>
<li class="list"><a href="login.php">Login</a></li>
</ul>
</nav>
</header>
<?php <?php
include '../database.php'; include '../database.php';

View File

@ -5,26 +5,10 @@
<title>Gestión de usuarios</title> <title>Gestión de usuarios</title>
<meta name="description" content=""> <meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1"> <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> </head>
<body> <body>
<header> <?php include 'navbar.php' ?>
<nav>
<ul class="navbar-left">
<li class="list"><a href="index.php">Página principal</a></li>
<?php if(isset($_SESSION["user"])) : ?>
<li class="list"><a href="user.php">Usuarios</a></li>
<li class="list"><a href="patient.php">Pacientes</a></li>
<li class="list"><a href="appointment.php">Citas</a></li>
<li class="list"><a href="holiday.php">Vacaciones</a></li>
<?php endif ?>
<?php if($_SESSION["user_type"] == 2) : ?>
<li class="list"><a href="report.php">Informes</a></li>
<?php endif ?>
<li class="list"><a href="login.php">Login</a></li>
</ul>
</nav>
</header>
<?php <?php
include '../database.php'; include '../database.php';

View File

@ -5,7 +5,7 @@
<title>MDIS</title> <title>MDIS</title>
<meta name="description" content=""> <meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1"> <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> </head>
<body> <body>
<header> <header>

View File

@ -11,22 +11,7 @@
</head> </head>
<body> <body>
<header> <header>
<nav> <?php include 'navbar.php' ?>
<ul class="navbar-left">
<li class="list"><a href="index.php">Página principal</a></li>
<?php if(isset($_SESSION["user"])) : ?>
<li class="list"><a href="user.php">Usuarios</a></li>
<li class="list"><a href="patient.php">Pacientes</a></li>
<li class="list"><a href="appointment.php">Citas</a></li>
<li class="list"><a href="holiday.php">Vacaciones</a></li>
<?php endif ?>
<?php if($_SESSION["user_type"] == 2) : ?>
<li class="list"><a href="report.php">Informes</a></li>
<?php endif ?>
<li class="list"><a href="login.php">Login</a></li>
</ul>
</nav>
</header>
</body> </body>
<form name="login_form" method="post" action="user_management.php" onsubmit="return validateLogin();"> <form name="login_form" method="post" action="user_management.php" onsubmit="return validateLogin();">
<div class="input-group"> <div class="input-group">

17
src/navbar.php Normal file
View File

@ -0,0 +1,17 @@
<header>
<nav>
<ul class="navbar-left">
<li class="list"><a href="index.php">Página principal</a></li>
<?php if(isset($_SESSION["user"])) : ?>
<li class="list"><a href="user.php">Usuarios</a></li>
<li class="list"><a href="patient.php">Pacientes</a></li>
<li class="list"><a href="appointment.php">Citas</a></li>
<li class="list"><a href="holiday.php">Vacaciones</a></li>
<?php endif ?>
<?php if($_SESSION["user_type"] == 2) : ?>
<li class="list"><a href="report.php">Informes</a></li>
<?php endif ?>
<li class="list"><a href="login.php">Login</a></li>
</ul>
</nav>
</header>

View File

@ -9,23 +9,7 @@
<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> </head>
<body> <body>
<header> <?php include 'navbar.php' ?>
<nav>
<ul class="navbar-left">
<li class="list"><a href="index.php">Página principal</a></li>
<?php if(isset($_SESSION["user"])) : ?>
<li class="list"><a href="user.php">Usuarios</a></li>
<li class="list"><a href="patient.php">Pacientes</a></li>
<li class="list"><a href="appointment.php">Citas</a></li>
<li class="list"><a href="holiday.php">Vacaciones</a></li>
<?php endif ?>
<?php if($_SESSION["user_type"] == 2) : ?>
<li class="list"><a href="report.php">Informes</a></li>
<?php endif ?>
<li class="list"><a href="login.php">Login</a></li>
</ul>
</nav>
</header>
<div style="text-align: right; margin-top: 50px;"> <div style="text-align: right; margin-top: 50px;">
<a href="forms/patient_create_form.php" class="create_btn" >Crear</a> <a href="forms/patient_create_form.php" class="create_btn" >Crear</a>
</div> </div>

View File

@ -5,29 +5,13 @@
<title>Gestión de pacientes</title> <title>Gestión de pacientes</title>
<meta name="description" content=""> <meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1"> <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="../../static/jquery-3.5.1.min.js"></script> <script src="../static/jquery-3.5.1.min.js"></script>
<script src="../ajax.js"></script> <script src="ajax.js"></script>
<script src="../validate_patient.js"></script> <script src="validate_patient.js"></script>
</head> </head>
<body> <body>
<header> <?php include 'navbar.php' ?>
<nav>
<ul class="navbar-left">
<li class="list"><a href="index.php">Página principal</a></li>
<?php if(isset($_SESSION["user"])) : ?>
<li class="list"><a href="user.php">Usuarios</a></li>
<li class="list"><a href="patient.php">Pacientes</a></li>
<li class="list"><a href="appointment.php">Citas</a></li>
<li class="list"><a href="holiday.php">Vacaciones</a></li>
<?php endif ?>
<?php if($_SESSION["user_type"] == 2) : ?>
<li class="list"><a href="report.php">Informes</a></li>
<?php endif ?>
<li class="list"><a href="login.php">Login</a></li>
</ul>
</nav>
</header>
<?php <?php
include '../database.php'; include '../database.php';

View File

@ -5,26 +5,10 @@
<title>Gestión de pacientes</title> <title>Gestión de pacientes</title>
<meta name="description" content=""> <meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1"> <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> </head>
<body> <body>
<header> <?php include 'navbar.php' ?>
<nav>
<ul class="navbar-left">
<li class="list"><a href="index.php">Página principal</a></li>
<?php if(isset($_SESSION["user"])) : ?>
<li class="list"><a href="user.php">Usuarios</a></li>
<li class="list"><a href="patient.php">Pacientes</a></li>
<li class="list"><a href="appointment.php">Citas</a></li>
<li class="list"><a href="holiday.php">Vacaciones</a></li>
<?php endif ?>
<?php if($_SESSION["user_type"] == 2) : ?>
<li class="list"><a href="report.php">Informes</a></li>
<?php endif ?>
<li class="list"><a href="login.php">Login</a></li>
</ul>
</nav>
</header>
<?php <?php
include '../database.php'; include '../database.php';

View File

@ -9,23 +9,7 @@
<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> </head>
<body> <body>
<header> <?php include 'navbar.php' ?>
<nav>
<ul class="navbar-left">
<li class="list"><a href="index.php">Página principal</a></li>
<?php if(isset($_SESSION["user"])) : ?>
<li class="list"><a href="user.php">Usuarios</a></li>
<li class="list"><a href="patient.php">Pacientes</a></li>
<li class="list"><a href="appointment.php">Citas</a></li>
<li class="list"><a href="holiday.php">Vacaciones</a></li>
<?php endif ?>
<?php if($_SESSION["user_type"] == 2) : ?>
<li class="list"><a href="report.php">Informes</a></li>
<?php endif ?>
<li class="list"><a href="login.php">Login</a></li>
</ul>
</nav>
</header>
<div style="text-align: right; margin-top: 50px;"> <div style="text-align: right; margin-top: 50px;">
<a href="forms/report_create_form.php" class="create_btn" >Crear</a> <a href="forms/report_create_form.php" class="create_btn" >Crear</a>
</div> </div>

View File

@ -5,27 +5,11 @@
<title>Gestión de usuarios</title> <title>Gestión de usuarios</title>
<meta name="description" content=""> <meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1"> <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> <script src="validate_report.js"></script>
</head> </head>
<body> <body>
<header> <?php include 'navbar.php' ?>
<nav>
<ul class="navbar-left">
<li class="list"><a href="index.php">Página principal</a></li>
<?php if(isset($_SESSION["user"])) : ?>
<li class="list"><a href="user.php">Usuarios</a></li>
<li class="list"><a href="patient.php">Pacientes</a></li>
<li class="list"><a href="appointment.php">Citas</a></li>
<li class="list"><a href="holiday.php">Vacaciones</a></li>
<?php endif ?>
<?php if($_SESSION["user_type"] == 2) : ?>
<li class="list"><a href="report.php">Informes</a></li>
<?php endif ?>
<li class="list"><a href="login.php">Login</a></li>
</ul>
</nav>
</header>
<?php <?php
include '../database.php'; include '../database.php';

View File

@ -5,26 +5,10 @@
<title>Gestión de usuarios</title> <title>Gestión de usuarios</title>
<meta name="description" content=""> <meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1"> <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> </head>
<body> <body>
<header> <?php include 'navbar.php' ?>
<nav>
<ul class="navbar-left">
<li class="list"><a href="index.php">Página principal</a></li>
<?php if(isset($_SESSION["user"])) : ?>
<li class="list"><a href="user.php">Usuarios</a></li>
<li class="list"><a href="patient.php">Pacientes</a></li>
<li class="list"><a href="appointment.php">Citas</a></li>
<li class="list"><a href="holiday.php">Vacaciones</a></li>
<?php endif ?>
<?php if($_SESSION["user_type"] == 2) : ?>
<li class="list"><a href="report.php">Informes</a></li>
<?php endif ?>
<li class="list"><a href="login.php">Login</a></li>
</ul>
</nav>
</header>
<?php <?php
include '../database.php'; include '../database.php';

View File

@ -9,23 +9,7 @@
<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> </head>
<body> <body>
<header> <?php include 'navbar.php' ?>
<nav>
<ul class="navbar-left">
<li class="list"><a href="index.php">Página principal</a></li>
<?php if(isset($_SESSION["user"])) : ?>
<li class="list"><a href="user.php">Usuarios</a></li>
<li class="list"><a href="patient.php">Pacientes</a></li>
<li class="list"><a href="appointment.php">Citas</a></li>
<li class="list"><a href="holiday.php">Vacaciones</a></li>
<?php endif ?>
<?php if($_SESSION["user_type"] == 2) : ?>
<li class="list"><a href="report.php">Informes</a></li>
<?php endif ?>
<li class="list"><a href="login.php">Login</a></li>
</ul>
</nav>
</header>
<div style="text-align: right; margin-top: 50px;"> <div style="text-align: right; margin-top: 50px;">
<a href="forms/user_create_form.html" class="create_btn" >Crear</a> <a href="forms/user_create_form.html" class="create_btn" >Crear</a>
</div> </div>

View File

@ -5,27 +5,11 @@
<title>Gestión de usuarios</title> <title>Gestión de usuarios</title>
<meta name="description" content=""> <meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1"> <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> <script src="../validate_user.js"></script>
</head> </head>
<body> <body>
<header> <?php include 'navbar.php' ?>
<nav>
<ul class="navbar-left">
<li class="list"><a href="index.php">Página principal</a></li>
<?php if(isset($_SESSION["user"])) : ?>
<li class="list"><a href="user.php">Usuarios</a></li>
<li class="list"><a href="patient.php">Pacientes</a></li>
<li class="list"><a href="appointment.php">Citas</a></li>
<li class="list"><a href="holiday.php">Vacaciones</a></li>
<?php endif ?>
<?php if($_SESSION["user_type"] == 2) : ?>
<li class="list"><a href="report.php">Informes</a></li>
<?php endif ?>
<li class="list"><a href="login.php">Login</a></li>
</ul>
</nav>
</header>
<form name="create_form" method="post" action="../user_management.php" onsubmit="return validateUser();"> <form name="create_form" method="post" action="../user_management.php" onsubmit="return validateUser();">
<div class="input-group"> <div class="input-group">
<label>Nombre</label> <label>Nombre</label>

View File

@ -5,27 +5,10 @@
<title>Gestión de usuarios</title> <title>Gestión de usuarios</title>
<meta name="description" content=""> <meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1"> <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> </head>
<body> <body>
<header> <?php include 'navbar.php' ?>
<nav>
<ul class="navbar-left">
<li class="list"><a href="index.php">Página principal</a></li>
<?php if(isset($_SESSION["user"])) : ?>
<li class="list"><a href="user.php">Usuarios</a></li>
<li class="list"><a href="patient.php">Pacientes</a></li>
<li class="list"><a href="appointment.php">Citas</a></li>
<li class="list"><a href="holiday.php">Vacaciones</a></li>
<?php endif ?>
<?php if($_SESSION["user_type"] == 2) : ?>
<li class="list"><a href="report.php">Informes</a></li>
<?php endif ?>
<li class="list"><a href="login.php">Login</a></li>
</ul>
</nav>
</header>
<?php <?php
include '../database.php'; include '../database.php';