9. Comp_home.php5 95
35. Comp_lab1_reserve.php5 44
61. Comp_lab3_incharge.php5 46
87. Comp_lab5_attendence.php5 46
113
139
165
font-size: xx-small;
<div id="help" style="width: 95%; height: 3%" class="style6">
<font face="arial" color="white" size="1" style="color:
BLACK">
</font> <span class="style7">
<font color="white" style="color: #FFFFFF">
<a target="_self" href="compadmin_interface.php5"
class="style3">
<span class="style2">COMPUTER LAB SECTION
</span></a> </font> </span>
<font face="arial" color="white" size="1" style="color:
BLACK">
| </font>
<span class="style7"><font color="white" style="color:
BLACK">
<a target="_self" href="electroadmin_interface.php5"
class="style3">
<span class="style2">ELECTRONICS LAB
SECTION</span></a></font></span><font face="arial" color="white"
size="1" style="color: #FFFFFF"><span class="style7"><font color="white"
style="color: #FFFFFF"> </font>
</span><span class="style1">
<font face="arial" color="white" size="1" style="color: BLACK">
| </font>
<span class="style7"><font color="white" style="color: BLACK">
<a target="_self" href="mechadmin_interface.php5" class="style3">
<span class="style2">MECHANICAL LAB
SECTION</span></a></font></span><font color="white" style="color:
#FFFFFF"> </font>
<font face="arial" color="white" size="1" style="color: BLACK">
| </font>
<span class="style7"><font color="white" style="color: BLACK">
<a target="_self" href="scienceadmin_interface.php5" class="style3">
<span class="style2">SCIENCE LAB SECTION</span></a></font></span>
<font face="arial" color="white" size="1" style="color: BLACK">
| </font>
<span class="style7"><font color="white" style="color: BLACK">
<a target="_self" href="student_interface.php5" class="style3">
<span class="style2">STUDENT LAB SECTION</span></a></font></span>
<font face="arial" color="white" size="1" style="color: BLACK">
| </font>
<span class="style7"><font color="white" style="color: BLACK">
<a target="_self" href="student_interface.php5" class="style3">
<span class="style2">FACULTY LAB
<img alt="sbit1" src="pictures\electro2.jpg" width="180"
height="140" align="absmiddle" style="border-color: #FFFFFF"
border="3">
<img alt="sbit2" src="pictures\lab1.jpg" width="180"
height="140" align="absmiddle" border="3" style="border-color:
#FFFFFF">
<img src="pictures\science5.jpg" width="180" height="140"
align="absmiddle" border="3" style="border-color:
#FFFFFF">
<img alt="neeraj1" src="pictures\electro4.jpg" width="180"
height="140" align="absmiddle" border="3" style="border-color:
#FFFFFF"><br>
<img alt="" src="pictures\bottomline.png" width="100%"
height="3%"><div align="center">
<a href="jjjjj" style="color: BLACK"
class="style3">Contact us</a>
<span class="style2"> |
</span> <a href="" class="style3"><span class="style2">Help</span></a>
<div align="center" class="style2">Copyright © 2009 Rohilla Group of
company. All rights reserved.</div></div>
</html>
Compadmin_interface.php5 (computer section login page)
<html>
<head>
<title>interface</title>
<script type = "text/javascript" language = "JavaScript">
} </script>
<style type="text/css">
.style1 {
include_once "header.php5";
?>
<div id="help" align="right" style="width: 95%; height: 3%">
<font face="arial" color="white" size="1" style="color: #FFFFFF">
</font> <span class="style1">
<font color="white" style="color: #FFFFFF">
<center>
<div align="right">
<input type="button" name="submit" value="HOME" onclick="home();">
</div>
<table cellpadding="0" height="50%" width="100%" color="skyblue">
<caption class="style6">
<br />
<br />
<img alt="sbit1" src="pictures\comp1.jpg" width="180" height="140" align="absmiddle"
style="border-color: #FFFFFF" border="3">
<img alt="sbit2" src="pictures\comp3.jpg" width="180" height="140" align="absmiddle"
border="3" style="border-color: #FFFFFF">
<img src="pictures\comp5.jpg" width="180" height="140" align="absmiddle" border="3"
style="border-color: #FFFFFF">
<img alt="neeraj1" src="pictures\comp4.png" width="180" height="140"
align="absmiddle" border="3" style="border-color: #FFFFFF"><br>
<tr>
<td align="right" style="color: #FFCCFF">
<font ><h2> <span class="style4">COMPUTER ADMIN LOGIN | INTERFACE</span></align></h2> </font></td>
<td bgcolor="white">
</td>
<td>
<table align="right" >
<tr><td colspan="5" align="center" ><font color="red"><?php if(isset($_GET['msg'])) echo $_GET['msg'];?></font></td></tr>
<tr><td>
<form name="Stud" id='Stud' action="compadmin_connect.php5" method="post">
<span class="style5">Admin Id</span><span class="style2"> </span><span
class="style3">:   </span>  <input type="text" id = "ai" name = "ai"
onblur="check1();" /> </td><td>
<div id="val1">
</div> </td></tr>
<tr><td> <span class="style5">Password :</span><span class="style1"> 
</span> <input type="password" id = "ap" name = "ap" onblur="check2();"/></td>
<td>
<div id="val2"></center></div></td></tr>
<tr><td>
<center><input type="submit" value="LOGIN" /></td></tr>
</center>
include_once "fotter.php5";
?>
function insert() {
$a=$_POST['ai'];
$b=$_POST['ap'] ;
$handle=mysql_connect('localhost','root','SBIT');
$db=mysql_select_db('lms',$handle);
header("Location: compadmin_interface.php5?msg=Not Valid");
}
Comp_home.php5 (computer section Home after valid login)
<?php
@session_start();
if(!isset($_SESSION['adminname'])) {
require_once "labmain.php5" ; exit(0);
<title>COMPUTER HOME</title>
<script type = "text/javascript" language = "JavaScript">
function lab1() {
document.location="computer_lab1.php5";
}
function lab2() {
document.location="computer_lab2.php5";
}
function lab3() {
document.location="computer_lab3.php5";
}
function lab4() {
document.location="computer_lab4.php5";
}
function lab5() {
}
function lab6() {
document.location="computer_lab6.php5";
}
<td style="width: 633px"><strong>WELCOME MR. <?php echo
$_SESSION['adminname']; ?></strong></td>
<td class="style4"><form action="logout.php5" method="post">
<input type="submit" name="logout" value="LOGOUT" style="width: 79px"
<input type="button" name="li" id="li" value="LAB1" style="width: 122px"
onclick="lab1();">
<input name="reqs" id="reqs" type="button" value="LAB2" style="width: 122px"
onclick="lab2();">
<input name="dumb" type="button" value="LAB3" style="width: 122px" onclick="lab3();">
<input name="complain" type="button" value="LAB4" style="width: 122px"
onclick="lab4();">
<input name="reserve" type="button" value="LAB5" style="width: 122px"
onclick="lab5();">
<input name="Button1" type="button" value="LAB6" style="width: 122px"
onclick="lab6();">
<img alt="sbit1" src="pictures\comp1.jpg" width="180" height="140" align="absmiddle"
style="border-color: #FFFFFF" border="3">
<img alt="sbit2" src="pictures\comp3.jpg" width="180" height="140" align="absmiddle"
border="3" style="border-color: #FFFFFF">
<img src="pictures\comp5.jpg" width="180" height="140" align="absmiddle" border="3"
style="border-color: #FFFFFF">
<img alt="neeraj1" src="pictures\comp4.png" width="180" height="140"
align="absmiddle" border="3" style="border-color: #FFFFFF">
</div>
<?php }
include_once "fotter.php5";
?>
</body>
</html>
<?php
@session_start();
if(!isset($_SESSION['adminname'])) {
require_once "labmain.php5" ; exit(0);
} else{
?>
<html>
<head>
<title>COMPUTER LAB1</title>
<script type="text/javascript">
{
}
}
<td style="width: 633px"><strong>WELCOME MR. <?
php echo $_SESSION['adminname']; ?></strong></td>
<td class="style3"><form action="logout.php5" method="post">
style="width: 131px" class="style5" onclick="lab_allotment();">
</form></td>
</tr>
</table>
<div class="style2">
<input type="button" name="li" id="li" value="LAB INFORMATION"
style="width: 127px" onclick="lab_info();">
<input name="reqs" id="reqs" type="button" value="REQUIRE STOCK"
style="width: 122px" onclick="lab_require();">
<input name="dumb" type="button" value="DUMB STOCK" style="width:
122px" onclick="lab_dumb();">
<input name="complain" type="button" value="COMPALIN STOCK"
style="width: 125px" onclick="lab_maintain();">
<input name="reserve" type="button" value="RESERVE STOCK"
style="width: 122px" onclick="lab_reserve();">
<input name="Button1" type="button" value="LAB INCHARGE"
style="width: 122px" onclick="lab_incharge();">
<input name="practical" type="button" value="PRACTICAL DETAIL"
style="width: 130px" onclick="lab_practical();">
<input name="marks" type="button" value="LAB MARKS" style="width:
113px" onclick="lab_marks();">
<input name="attendence" type="button" value="LAB ATTENDENCE"
style="width: 138px" onclick="lab_attendence();">
<input name="time_table" type="button" value="TIME TABLE"
style="width: 127px" onclick="lab_timetable();">
<img alt="sbit1" src="pictures\comp1.jpg" width="180" height="140"
align="absmiddle" style="border-color: #FFFFFF"
border="3">
<img alt="sbit2" src="pictures\comp3.jpg" width="180" height="140"
align="absmiddle" border="3" style="border-color:
#FFFFFF">
<img src="pictures\comp5.jpg" width="180" height="140"
align="absmiddle" border="3" style="border-color:
#FFFFFF">
<img alt="neeraj1" src="pictures\comp4.png" width="180"
height="140" align="absmiddle" border="3" style="border-color: #FFFFFF">
</div>
<?php }
include_once "fotter.php5";
?>
</body>
</html>
logout.php5 (logout button coding)
if(isset($_POST['logout'])) {
@session_start();
$_SESSION['adminname']=null;
session_unregister('adminname');
session_unset();
session_destroy();
unset($_POST);
echo "<script>
document.location='labmain.php5';
</script>";
}
?>