<?php 
	session_start();
	if($_SESSION['logged'] != 'true'){
	 header('location:index.php');}
	require("db.php");
	$id =$_SESSION['userid'];
	$result = mysql_query("SELECT * FROM teacher WHERE teacherid ='$id'");
	$test = mysql_fetch_array($result);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<link rel="shortcut icon" href="images/chmsc.png">
<link rel="icon" href="images/chmsc.png" type="image/png"  />
<head>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Profile Teacher</title>
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="wrapper">
	<div id="page">
		<div id="page-bgtop">
			<div id="page-bgbtm">
				<div id="content">
					<div class="post" style="width: 561px; margin-left: -58px;">
						<h2 class="title"><a href="#">Welcome <?php echo $test['firstname'] . " " . $test['middlename'] . " ". $test['lastname']; ?>! </a></h2>
						<p class="meta"><span class="date">
															<?php $date= date("l, F d, Y");
																
																echo $date ;
																echo "  &nbsp; "
															?> 
										</span></p>
						<div class="entry">
							<div class="pic">
								<fieldset style="border-top-left-radius:5px; border-top-right-radius:5px; border-bottom-left-radius:5px; border-bottom-right-radius:5px;">							
<?php echo "<img src='../01-for login page/images/photos/".$test['upload']."' width='210' height='210 alt='bread fuck'/>"; ?>	
									
								</fieldset>
							</div>
							
							<div class="right_side">
							<fieldset style="border-top-left-radius:5px; border-top-right-radius:5px; border-bottom-left-radius:5px; border-bottom-right-radius:5px;">
							<legend>Teacher's Profile</legend>
							<p>&nbsp;</p>
							<p><strong>ID #:</strong> <a href="#"> <?php echo $test['UserName']; ?></a></p>
							<p>&nbsp;</p>
							<p>Name: <a href="#"><?php echo $test['firstname'] . " " . $test['middlename'] . " ". $test['lastname']; ?></a></p>
							<p>&nbsp;</p>
							<p>Contact Number: <a href="#"><?php echo $test['contactnum']; ?></a></p>
							<p>&nbsp;</p>
							<p>Address: <a href="#"><?php echo $test['address']; ?></a></p>
							</fieldset>
							</div>
							
							
							
							
							
					  </div>
					</div>
					<div style="clear: both;">&nbsp;</div>
				</div>
				<!-- end #content -->
				<div id="sidebar">
				  <div id="logo">
						<h1></h1>
				    </div>
					<div id="menu">
						<ul>
							<li class="current_page_item"><a href="#">Profile</a></li>
							<li><a href="teachload.php">Load</a></li>
							<li><a href="teachgrade2.php">Add Grades</a></li>
							<li><a href="teachupgrade.php">User's Manual</a></li>
							<li><a href="teachchangepass.php">Change Password</a></li>
							<li><a href="logout.php">Log-out</a></li>
						</ul>
					</div>
					<ul>
						<li>
							<div id="search" >
								<form method="get" action="http://www.google.com.ph/search" target="_blank">
									<div>
										<input type="text" name="s" id="search-text" value="" style="width: 114px;" />
										<input type="submit" id="search-submit" value="GO" />
									</div>
								</form>
							</div>
							<div style="clear: both;">&nbsp;</div>
						</li>
					</ul>
				</div>
				<!-- end #sidebar -->
				<div style="clear: both;">&nbsp;</div>
			</div>
		</div>
	</div>
	<!-- end #page -->
</div>
<div id="footer">
	<p>Copyright (c) 2011 chmscogi.edu.ph. All rights reserved.</p>
</div>
<!-- end #footer -->
</body>
</html>
