<option>Chemistry</option> <option>Geology</option> <option>Management/Economics</option> <option>Mathematics</option> <option>Molecular Biology & Biotechnology</option> <option>Physics</option> <option>Statistics & Computer Science</option> <option>Zoology</option> </select> <input type="submit" name="btncheck" value="Check Details" class="style6" /> <br /><br /> </form> <a href="home.php"><img src="../Images/home.png" alt="Go Back To Home" /></a> </div> <?php if (isset($_POST['dept'])) { $view = new Lecturer(); $view->viewDetails(); } } ?> <br /> <br /><br /><br /> <marquee> <p class="style2">::Designed and Developed by Udara Senanayake:: </p> </marquee> </body> </html>
$update = new Lecturer(); $update->updateDetails(); } elseif (isset($_POST['btnupdatepass'])) { $update = new Lecturer(); $update->updatePass(); } elseif (isset($_POST['btnget']) && $_POST['regno'] != "SELECT") { //get lecturer details in database $getid = $_POST['regno']; $get_details = "SELECT name,pass,lectEmail,department FROM lecturer,user \n\t\t\t\t\t\tWHERE lectId='{$getid}' AND id='{$getid}'"; $get_details_res = mysql_query($get_details); $getname = mysql_result($get_details_res, 0, 'name'); $getpass = mysql_result($get_details_res, 0, 'pass'); $getemail = mysql_result($get_details_res, 0, 'lectEmail'); $getdept = mysql_result($get_details_res, 0, 'department'); } elseif (isset($_POST['btndeldata']) && $_POST['regno'] != "SELECT") { $delete = new Lecturer(); $delete->deleteDetails(); } elseif (isset($_POST['btnclrdata'])) { //clears form data to get an empty form header("Location:lectdata.php"); } mysql_close(); } ?> <input type="submit" name="btnget" value="Get Data" class="style3" onclick="return emptyRegNo_Get()"/> <input type="submit" name="btnclrdata" value="Clear Data" class="style3" /> <input type="submit" name="btndeldata" value="Delete Record" class="style3" onclick="return emptyRegNo_Del()"/> </td> </tr>
<html> <head> <link rel="stylesheet" href="/ACTA_project/res/css/content.css"> <link rel="stylesheet" href="/ACTA_project/res/css/admin.css"> </head> <body> <div class="panel_upper"> <p>Lecturer Details</p> </div> <div class="panel" id="panel"> <div class="panel_body"> <div class="panel_bar" > </div> <div class="panel_body_cont"> <?php session_start(); $username = $_SESSION['user_name']; require_once "../../mod/lec mod/lecturerdata.php"; $lec = new Lecturer(); $lec->query("SELECT * FROM authen WHERE user_name = '{$username}'", "Person_NIC"); ?> </div> </div> </div> </body> </html>