} ?> <tr rowspan="2"><td><INPUT TYPE="SUBMIT" NAME="SUBMIT2" VALUE="Come in After 7 P.M."></td> <td><INPUT TYPE="SUBMIT" NAME="SUBMIT4" VALUE="Coming Back from leave"></td> <td><INPUT TYPE="SUBMIT" NAME="SUBMIT6" VALUE="Bringing Laptop In"></td></tr> <?php if (isset($_POST['SUBMIT6'])) { $resident_id = $_POST['resident_id']; $db_handle = Connect_To_Server(); $db_found = Connect_To_DB(); $in_out = 'in'; view_laptop_details($resident_id, $in_out); Close_To_Server($db_handle); } ?> </table> <?php view_form(); ?> <table> <?php view_form_doctor(); ?> <tr><td colspan="3"><INPUT TYPE="SUBMIT" NAME="SUBMIT7" VALUE="Go Back"></td></tr> </table> </FORM>
<HTML> <HEAD> <TITLE>Student - Entries</TITLE> <?php session_start(); if (isset($_SESSION['access']) && $_SESSION['access'] == '4') { if (isset($_POST['SUBMIT2'])) { header('location:/sen/Modules/Links_temp/admin_links.php'); } if (isset($_POST['SUBMIT4'])) { $db_handle = Connect_To_Server(); $db_found = Connect_To_DB(); view_laptop_details(); Close_To_Server($db_handle); } if (isset($_POST['SUBMIT3'])) { $db_handle = Connect_To_Server(); $db_found = Connect_To_DB(); $id = $_POST['id']; view_laptop_details_by_id($id); Close_To_Server($db_handle); } } else { $_SESSION['access'] = 0; session_destroy(); header('location:/sen/Modules/login/login.php'); echo "invalid Login"; } ?> </HEAD>