<nav></nav> <div> <strong> Welcome <?php echo $_SESSION['adminName']; ?> ! </strong> <form action="logout.php"> <input type="submit" value="Logout" /> </form> <form action="addProduct.php"> <input type="submit" value="Add New Product" /> </form> <?php echo displayAllProducts(); ?> </div> <footer> <p> © Copyright by ciam1324 </p> </footer> </div> </body> </html>
<input type="submit" value="Sort Books" name="searchForm" style="width: 120px; font-weight: 600"/> </div> <div id="selectionPart_B"> <input type="submit" value="Display All" name="Di" style="width:100px; height: 44px; margin-top: 2px; font-weight: 600"/> </div> <div style="clear:both"></div> </form> </div> <hr> <div id="contents"> <div id="tableShowed"> <?php //Displays all products by default if (!isset($_GET['searchForm']) || !isset($_GET['searchAuthor'])) { $records = displayAllProducts(); } else { $records = filterProducts(); } if (isset($_GET['searchAuthor']) || isset($_GET['searchForm'])) { $records = filterProducts(); echo "<table border = 0>"; echo "<tr>"; echo "<td>"; echo "<span class='title'>TITLE<span>"; echo "</td>"; echo "<td>"; echo "<span class='title'>AUTHOR<span>"; echo "</td>"; echo "</tr>"; foreach ($records as $record) {