Move search bar to the top
This commit is contained in:
parent
554baf39ff
commit
e5c6e2d6a2
|
@ -9,12 +9,17 @@
|
|||
<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="calendar.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<?php include 'navbar.php' ?>
|
||||
<?php
|
||||
include 'database.php';
|
||||
|
||||
$pdo = connectDatabase();
|
||||
$data = fetchCalendarEvents($pdo);
|
||||
?>
|
||||
<div class="response"></div>
|
||||
<div id="calendar" style="max-width: 700px; margin: auto;"></div>
|
||||
</body>
|
||||
|
|
|
@ -10,8 +10,12 @@
|
|||
</head>
|
||||
<body>
|
||||
<?php include 'navbar.php' ?>
|
||||
<div style="text-align: right; margin-top: 50px;">
|
||||
<a href="forms/holiday_create_form.php" class="create_btn" >Crear</a>
|
||||
<div>
|
||||
<form method="post" action="holiday_management.php">
|
||||
<div class="search-group">
|
||||
<a href="holiday_create_form.php" class="create_btn" >Crear</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<table>
|
||||
<thead>
|
||||
|
@ -36,7 +40,7 @@
|
|||
<td><?php echo $row[2]; ?></td>
|
||||
<td><?php echo $row[3]; ?></td>
|
||||
<td>
|
||||
<a href="forms/holiday_edit_form.php?edit=<?php echo $row[0]; ?>" class="edit_btn">Editar</a>
|
||||
<a href="holiday_edit_form.php?edit=<?php echo $row[0]; ?>" class="edit_btn">Editar</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="holiday_management.php?delete=<?php echo $row[0]; ?>" class="del_btn">Borrar</a>
|
||||
|
|
|
@ -11,12 +11,12 @@
|
|||
<body>
|
||||
<?php include 'navbar.php' ?>
|
||||
<?php
|
||||
include '../database.php';
|
||||
include 'database.php';
|
||||
|
||||
$pdo = connectDatabase();
|
||||
$doctors = listDoctors($pdo);
|
||||
?>
|
||||
<form name="create_form" method="post" action="../holiday_management.php">
|
||||
<form name="create_form" method="post" action="holiday_management.php">
|
||||
<div class="input-group">
|
||||
<label>Fecha</label>
|
||||
<input type="date" name="fecha_festivo" value="">
|
||||
|
|
|
@ -10,12 +10,12 @@
|
|||
<body>
|
||||
<?php include 'navbar.php' ?>
|
||||
<?php
|
||||
include '../database.php';
|
||||
include 'database.php';
|
||||
|
||||
$pdo = connectDatabase();
|
||||
$data = fetchHolidayData($pdo, $_GET["edit"]);
|
||||
?>
|
||||
<form method="post" action="../user_management.php">
|
||||
<form method="post" action="user_management.php">
|
||||
<div class="input-group">
|
||||
<label>Fecha</label>
|
||||
<input type="date" name="fecha_festivo" value="<?php echo $data[1]; ?>">
|
||||
|
|
|
@ -10,8 +10,14 @@
|
|||
</head>
|
||||
<body>
|
||||
<?php include 'navbar.php' ?>
|
||||
<div style="text-align: right; margin-top: 50px;">
|
||||
<a href="forms/patient_create_form.php" class="create_btn" >Crear</a>
|
||||
<div>
|
||||
<form method="post" action="patient_management.php">
|
||||
<div class="search-group">
|
||||
<input type="text" name="search_box" value="">
|
||||
<button class="create_btn" type="submit" name="search" >Buscar</button>
|
||||
<a href="patient_create_form.php" class="create_btn" >Crear</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<table>
|
||||
<thead>
|
||||
|
@ -56,7 +62,7 @@
|
|||
<td><?php echo $row[10]; ?></td>
|
||||
<td><?php echo $row[11]; ?></td>
|
||||
<td>
|
||||
<a href="forms/patient_edit_form.php?edit=<?php echo $row[0]; ?>" class="edit_btn">Editar</a>
|
||||
<a href="patient_edit_form.php?edit=<?php echo $row[0]; ?>" class="edit_btn">Editar</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="patient_management.php?delete=<?php echo $row[0]; ?>" class="del_btn">Borrar</a>
|
||||
|
@ -65,16 +71,6 @@
|
|||
<?php endforeach ?>
|
||||
<?php closeDatabase($pdo); ?>
|
||||
</table>
|
||||
<div>
|
||||
<form method="post" action="patient_management.php">
|
||||
<div class="search-group">
|
||||
<input type="text" name="search_box" value="">
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<button class="btn" type="submit" name="search" >Buscar</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<?php if (isset($_GET["search"])): ?>
|
||||
<div style="text-align: right; margin-top: 40px;">
|
||||
<a href="patient.php" class="back_btn">Atrás</a>
|
||||
|
|
|
@ -13,12 +13,12 @@
|
|||
<body>
|
||||
<?php include 'navbar.php' ?>
|
||||
<?php
|
||||
include '../database.php';
|
||||
include 'database.php';
|
||||
|
||||
$pdo = connectDatabase();
|
||||
$regions = fetchRegions($pdo);
|
||||
?>
|
||||
<form name="create_form" method="post" action="../patient_management.php" onsubmit="return validatePatient();">
|
||||
<form name="create_form" method="post" action="patient_management.php" onsubmit="return validatePatient();">
|
||||
<div class="input-group">
|
||||
<label>Nombre</label>
|
||||
<input type="text" name="nombre" value="">
|
||||
|
|
|
@ -10,12 +10,12 @@
|
|||
<body>
|
||||
<?php include 'navbar.php' ?>
|
||||
<?php
|
||||
include '../database.php';
|
||||
include 'database.php';
|
||||
|
||||
$pdo = connectDatabase();
|
||||
$data = fetchPatientData($pdo, $_GET["edit"]);
|
||||
?>
|
||||
<form method="post" action="../patient_management.php">
|
||||
<form method="post" action="patient_management.php">
|
||||
<div class="input-group">
|
||||
<label>Nombre</label>
|
||||
<input type="text" name="nombre" value="<?php echo $data[1]; ?>">
|
||||
|
|
|
@ -10,8 +10,12 @@
|
|||
</head>
|
||||
<body>
|
||||
<?php include 'navbar.php' ?>
|
||||
<div style="text-align: right; margin-top: 50px;">
|
||||
<a href="forms/report_create_form.php" class="create_btn" >Crear</a>
|
||||
<div>
|
||||
<form method="post" action="report_management.php">
|
||||
<div class="search-group">
|
||||
<a href="report_create_form.php" class="create_btn" >Crear</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<table>
|
||||
<thead>
|
||||
|
@ -40,7 +44,7 @@
|
|||
<td><?php echo $row[4]; ?></td>
|
||||
<td><?php echo $row[5]; ?></td>
|
||||
<td>
|
||||
<a href="forms/report_edit_form.php?edit=<?php echo $row[0]; ?>" class="edit_btn">Editar</a>
|
||||
<a href="report_edit_form.php?edit=<?php echo $row[0]; ?>" class="edit_btn">Editar</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="report_management.php?delete=<?php echo $row[0]; ?>" class="del_btn">Borrar</a>
|
||||
|
|
|
@ -11,13 +11,13 @@
|
|||
<body>
|
||||
<?php include 'navbar.php' ?>
|
||||
<?php
|
||||
include '../database.php';
|
||||
include 'database.php';
|
||||
|
||||
$pdo = connectDatabase();
|
||||
$doctors = listDoctors($pdo);
|
||||
$patients = fetchPatients($pdo);
|
||||
?>
|
||||
<form name="create_form" method="post" action="../report_management.php" onsubmit="return validateReport();">
|
||||
<form name="create_form" method="post" action="report_management.php" onsubmit="return validateReport();">
|
||||
<div class="input-group">
|
||||
<label>Titulo</label>
|
||||
<input type="text" name="titulo" value="">
|
||||
|
|
|
@ -10,12 +10,12 @@
|
|||
<body>
|
||||
<?php include 'navbar.php' ?>
|
||||
<?php
|
||||
include '../database.php';
|
||||
include 'database.php';
|
||||
|
||||
$pdo = connectDatabase();
|
||||
$data = fetchReportData($pdo, $_GET["edit"]);
|
||||
?>
|
||||
<form name="create_form" method="post" action="../report_management.php">
|
||||
<form name="create_form" method="post" action="report_management.php">
|
||||
<div class="input-group">
|
||||
<label>Titulo</label>
|
||||
<input type="text" name="titulo" value="<?php echo $data[4]; ?>">
|
||||
|
|
|
@ -50,7 +50,7 @@ form {
|
|||
.search-group input {
|
||||
height: 30px;
|
||||
width: 93%;
|
||||
font-size: 16px;
|
||||
font-size: 14px;
|
||||
}
|
||||
.btn {
|
||||
padding: 10px;
|
||||
|
@ -67,7 +67,6 @@ form {
|
|||
background: #5F9EA0;
|
||||
color: white;
|
||||
border-radius: 3px;
|
||||
margin: 400px;
|
||||
}
|
||||
|
||||
.back_btn {
|
||||
|
|
22
src/user.php
22
src/user.php
|
@ -10,8 +10,14 @@
|
|||
</head>
|
||||
<body>
|
||||
<?php include 'navbar.php' ?>
|
||||
<div style="text-align: right; margin-top: 50px;">
|
||||
<a href="forms/user_create_form.html" class="create_btn" >Crear</a>
|
||||
<div>
|
||||
<form method="post" action="user_management.php">
|
||||
<div class="search-group">
|
||||
<input type="text" name="search_box" value="">
|
||||
<button class="create_btn" type="submit" name="search" >Buscar</button>
|
||||
<a href="user_create_form.php" class="create_btn" >Crear</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<table>
|
||||
<thead>
|
||||
|
@ -43,7 +49,7 @@
|
|||
<td><?php echo $row[2]; ?></td>
|
||||
<td><?php echo $row[3]; ?></td>
|
||||
<td>
|
||||
<a href="forms/user_edit_form.php?edit=<?php echo $row[4]; ?>" class="edit_btn">Editar</a>
|
||||
<a href="user_edit_form.php?edit=<?php echo $row[4]; ?>" class="edit_btn">Editar</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="user_management.php?delete=<?php echo $row[4]; ?>" class="del_btn">Borrar</a>
|
||||
|
@ -53,16 +59,6 @@
|
|||
<?php endforeach ?>
|
||||
<?php closeDatabase($pdo); ?>
|
||||
</table>
|
||||
<div>
|
||||
<form method="post" action="user_management.php">
|
||||
<div class="search-group">
|
||||
<input type="text" name="search_box" value="">
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<button class="btn" type="submit" name="search" >Buscar</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<?php if (isset($_GET["search"])): ?>
|
||||
<div style="text-align: right; margin-top: 20px;">
|
||||
<a href="user.php" class="back_btn">Atrás</a>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
</head>
|
||||
<body>
|
||||
<?php include 'navbar.php' ?>
|
||||
<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">
|
||||
<label>Nombre</label>
|
||||
<input type="text" name="nombre" value="">
|
||||
|
|
|
@ -10,12 +10,12 @@
|
|||
<body>
|
||||
<?php include 'navbar.php' ?>
|
||||
<?php
|
||||
include '../database.php';
|
||||
include 'database.php';
|
||||
|
||||
$pdo = connectDatabase();
|
||||
$data = fetchUserData($pdo, $_GET["edit"]);
|
||||
?>
|
||||
<form method="post" action="../user_management.php">
|
||||
<form method="post" action="user_management.php">
|
||||
<div class="input-group">
|
||||
<label>Nombre</label>
|
||||
<input type="text" name="nombre" value="<?php echo $data[1]; ?>">
|
||||
|
|
Loading…
Reference in New Issue