Move search bar to the top

This commit is contained in:
coolneng 2020-06-21 20:38:22 +02:00
parent 554baf39ff
commit e5c6e2d6a2
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
14 changed files with 54 additions and 50 deletions

View File

@ -9,12 +9,17 @@
<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' /> <link href='../lib/fullcalendar/core/main.css' rel='stylesheet' />
<script src='../lib/fullcalendar/core/main.js'></script> <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/jquery-3.5.1.min.js"></script>
<script src="calendar.js"></script> <script src="calendar.js"></script>
</head> </head>
<body> <body>
<?php include 'navbar.php' ?> <?php include 'navbar.php' ?>
<?php
include 'database.php';
$pdo = connectDatabase();
$data = fetchCalendarEvents($pdo);
?>
<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

@ -10,8 +10,12 @@
</head> </head>
<body> <body>
<?php include 'navbar.php' ?> <?php include 'navbar.php' ?>
<div style="text-align: right; margin-top: 50px;"> <div>
<a href="forms/holiday_create_form.php" class="create_btn" >Crear</a> <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> </div>
<table> <table>
<thead> <thead>
@ -36,7 +40,7 @@
<td><?php echo $row[2]; ?></td> <td><?php echo $row[2]; ?></td>
<td><?php echo $row[3]; ?></td> <td><?php echo $row[3]; ?></td>
<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>
<td> <td>
<a href="holiday_management.php?delete=<?php echo $row[0]; ?>" class="del_btn">Borrar</a> <a href="holiday_management.php?delete=<?php echo $row[0]; ?>" class="del_btn">Borrar</a>

View File

@ -11,12 +11,12 @@
<body> <body>
<?php include 'navbar.php' ?> <?php include 'navbar.php' ?>
<?php <?php
include '../database.php'; include 'database.php';
$pdo = connectDatabase(); $pdo = connectDatabase();
$doctors = listDoctors($pdo); $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"> <div class="input-group">
<label>Fecha</label> <label>Fecha</label>
<input type="date" name="fecha_festivo" value=""> <input type="date" name="fecha_festivo" value="">

View File

@ -10,12 +10,12 @@
<body> <body>
<?php include 'navbar.php' ?> <?php include 'navbar.php' ?>
<?php <?php
include '../database.php'; include 'database.php';
$pdo = connectDatabase(); $pdo = connectDatabase();
$data = fetchHolidayData($pdo, $_GET["edit"]); $data = fetchHolidayData($pdo, $_GET["edit"]);
?> ?>
<form method="post" action="../user_management.php"> <form method="post" action="user_management.php">
<div class="input-group"> <div class="input-group">
<label>Fecha</label> <label>Fecha</label>
<input type="date" name="fecha_festivo" value="<?php echo $data[1]; ?>"> <input type="date" name="fecha_festivo" value="<?php echo $data[1]; ?>">

View File

@ -10,8 +10,14 @@
</head> </head>
<body> <body>
<?php include 'navbar.php' ?> <?php include 'navbar.php' ?>
<div style="text-align: right; margin-top: 50px;"> <div>
<a href="forms/patient_create_form.php" class="create_btn" >Crear</a> <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> </div>
<table> <table>
<thead> <thead>
@ -56,7 +62,7 @@
<td><?php echo $row[10]; ?></td> <td><?php echo $row[10]; ?></td>
<td><?php echo $row[11]; ?></td> <td><?php echo $row[11]; ?></td>
<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>
<td> <td>
<a href="patient_management.php?delete=<?php echo $row[0]; ?>" class="del_btn">Borrar</a> <a href="patient_management.php?delete=<?php echo $row[0]; ?>" class="del_btn">Borrar</a>
@ -65,16 +71,6 @@
<?php endforeach ?> <?php endforeach ?>
<?php closeDatabase($pdo); ?> <?php closeDatabase($pdo); ?>
</table> </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"])): ?> <?php if (isset($_GET["search"])): ?>
<div style="text-align: right; margin-top: 40px;"> <div style="text-align: right; margin-top: 40px;">
<a href="patient.php" class="back_btn">Atrás</a> <a href="patient.php" class="back_btn">Atrás</a>

View File

@ -13,12 +13,12 @@
<body> <body>
<?php include 'navbar.php' ?> <?php include 'navbar.php' ?>
<?php <?php
include '../database.php'; include 'database.php';
$pdo = connectDatabase(); $pdo = connectDatabase();
$regions = fetchRegions($pdo); $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"> <div class="input-group">
<label>Nombre</label> <label>Nombre</label>
<input type="text" name="nombre" value=""> <input type="text" name="nombre" value="">

View File

@ -10,12 +10,12 @@
<body> <body>
<?php include 'navbar.php' ?> <?php include 'navbar.php' ?>
<?php <?php
include '../database.php'; include 'database.php';
$pdo = connectDatabase(); $pdo = connectDatabase();
$data = fetchPatientData($pdo, $_GET["edit"]); $data = fetchPatientData($pdo, $_GET["edit"]);
?> ?>
<form method="post" action="../patient_management.php"> <form method="post" action="patient_management.php">
<div class="input-group"> <div class="input-group">
<label>Nombre</label> <label>Nombre</label>
<input type="text" name="nombre" value="<?php echo $data[1]; ?>"> <input type="text" name="nombre" value="<?php echo $data[1]; ?>">

View File

@ -10,8 +10,12 @@
</head> </head>
<body> <body>
<?php include 'navbar.php' ?> <?php include 'navbar.php' ?>
<div style="text-align: right; margin-top: 50px;"> <div>
<a href="forms/report_create_form.php" class="create_btn" >Crear</a> <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> </div>
<table> <table>
<thead> <thead>
@ -40,7 +44,7 @@
<td><?php echo $row[4]; ?></td> <td><?php echo $row[4]; ?></td>
<td><?php echo $row[5]; ?></td> <td><?php echo $row[5]; ?></td>
<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>
<td> <td>
<a href="report_management.php?delete=<?php echo $row[0]; ?>" class="del_btn">Borrar</a> <a href="report_management.php?delete=<?php echo $row[0]; ?>" class="del_btn">Borrar</a>

View File

@ -11,13 +11,13 @@
<body> <body>
<?php include 'navbar.php' ?> <?php include 'navbar.php' ?>
<?php <?php
include '../database.php'; include 'database.php';
$pdo = connectDatabase(); $pdo = connectDatabase();
$doctors = listDoctors($pdo); $doctors = listDoctors($pdo);
$patients = fetchPatients($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"> <div class="input-group">
<label>Titulo</label> <label>Titulo</label>
<input type="text" name="titulo" value=""> <input type="text" name="titulo" value="">

View File

@ -10,12 +10,12 @@
<body> <body>
<?php include 'navbar.php' ?> <?php include 'navbar.php' ?>
<?php <?php
include '../database.php'; include 'database.php';
$pdo = connectDatabase(); $pdo = connectDatabase();
$data = fetchReportData($pdo, $_GET["edit"]); $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"> <div class="input-group">
<label>Titulo</label> <label>Titulo</label>
<input type="text" name="titulo" value="<?php echo $data[4]; ?>"> <input type="text" name="titulo" value="<?php echo $data[4]; ?>">

View File

@ -50,7 +50,7 @@ form {
.search-group input { .search-group input {
height: 30px; height: 30px;
width: 93%; width: 93%;
font-size: 16px; font-size: 14px;
} }
.btn { .btn {
padding: 10px; padding: 10px;
@ -67,7 +67,6 @@ form {
background: #5F9EA0; background: #5F9EA0;
color: white; color: white;
border-radius: 3px; border-radius: 3px;
margin: 400px;
} }
.back_btn { .back_btn {

View File

@ -10,8 +10,14 @@
</head> </head>
<body> <body>
<?php include 'navbar.php' ?> <?php include 'navbar.php' ?>
<div style="text-align: right; margin-top: 50px;"> <div>
<a href="forms/user_create_form.html" class="create_btn" >Crear</a> <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> </div>
<table> <table>
<thead> <thead>
@ -43,7 +49,7 @@
<td><?php echo $row[2]; ?></td> <td><?php echo $row[2]; ?></td>
<td><?php echo $row[3]; ?></td> <td><?php echo $row[3]; ?></td>
<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>
<td> <td>
<a href="user_management.php?delete=<?php echo $row[4]; ?>" class="del_btn">Borrar</a> <a href="user_management.php?delete=<?php echo $row[4]; ?>" class="del_btn">Borrar</a>
@ -53,16 +59,6 @@
<?php endforeach ?> <?php endforeach ?>
<?php closeDatabase($pdo); ?> <?php closeDatabase($pdo); ?>
</table> </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"])): ?> <?php if (isset($_GET["search"])): ?>
<div style="text-align: right; margin-top: 20px;"> <div style="text-align: right; margin-top: 20px;">
<a href="user.php" class="back_btn">Atrás</a> <a href="user.php" class="back_btn">Atrás</a>

View File

@ -10,7 +10,7 @@
</head> </head>
<body> <body>
<?php include 'navbar.php' ?> <?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"> <div class="input-group">
<label>Nombre</label> <label>Nombre</label>
<input type="text" name="nombre" value=""> <input type="text" name="nombre" value="">

View File

@ -10,12 +10,12 @@
<body> <body>
<?php include 'navbar.php' ?> <?php include 'navbar.php' ?>
<?php <?php
include '../database.php'; include 'database.php';
$pdo = connectDatabase(); $pdo = connectDatabase();
$data = fetchUserData($pdo, $_GET["edit"]); $data = fetchUserData($pdo, $_GET["edit"]);
?> ?>
<form method="post" action="../user_management.php"> <form method="post" action="user_management.php">
<div class="input-group"> <div class="input-group">
<label>Nombre</label> <label>Nombre</label>
<input type="text" name="nombre" value="<?php echo $data[1]; ?>"> <input type="text" name="nombre" value="<?php echo $data[1]; ?>">