Move search bar to the top

This commit is contained in:
2020-06-21 20:38:22 +02:00
parent 554baf39ff
commit e5c6e2d6a2
14 changed files with 54 additions and 50 deletions

View File

@@ -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>