<?php session_start();
//  Developed by Roshan Bhattarai
//  Visit http://roshanbh.com.np for this script and more.
//  This notice MUST stay intact for legal use

// if session is not set redirect the user
if(empty($_SESSION['u_name']))
	header("Location:index.php");

//if logout then destroy the session and redirect the user
if(isset($_GET['logout']))
{
	session_destroy();
	header("Location:index.php");
}
define("PATHDRASTICTOOLS", "");
//include(PATHDRASTICTOOLS."Examplemysqlconfig.php");
include(PATHDRASTICTOOLS."drasticSrcMySQL.class.php");
$options= array(
	"add_allowed" => false,       
	"delete_allowed" => true
);

	include ("config.php");
$src = new drasticSrcMySQL($server,$user,$pass,$db,'staff',$options);
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<link rel="stylesheet" type="text/css" href="css/grid_default.css"/>

<style type="text/css">

#Layer3 {
	position:absolute;
	width:738px;
	height:115px;
	z-index:1;
	top: 186px;
}

</style>

 <link rel="stylesheet" type="text/css" href="css/grid_default.css"/>

<style type="text/css">
<!--
#Layer3 {
	position:absolute;
	width:373px;
	height:115px;
	z-index:1;
	top: 186px;
}
-->
</style>
<head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<title>Edit Staff</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="css/mm_health_nutr.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="css/grid_default.css"/>
<script language="JavaScript" type="text/javascript">
//--------------- LOCALIZEABLE GLOBALS ---------------
var d=new Date();
var monthname=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
//Ensure correct for language. English is "January 1, 2004"
var TODAY = monthname[d.getMonth()] + " " + d.getDate() + ", " + d.getFullYear();
//---------------   END LOCALIZEABLE   ---------------
</script>
<link href="css/ddsmoothmenu.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/form.js"></script>

<script type="text/javascript" src="js/ddsmoothmenu.js"></script>
<script type="text/javascript" src="js/mootools-1.2-core.js"></script>
<script type="text/javascript" src="js/mootools-1.2-more.js"></script>
<script type="text/javascript" src="js/drasticGrid.js"></script>
<style type="text/css">
#Layer1 {
	position:absolute;
	width:428px;
	height:357px;
	z-index:1;
}
#Layer2 {
	position:absolute;
	height:176px;
	z-index:1;
}


.style3 {color: #FF0000}
</style>   	



<head>

<body>
<table width="955" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr bgcolor="#FFFFFF">
    <td colspan="3" rowspan="2" bgcolor="#FFFFFF">&nbsp;</td>
    <td height="50" colspan="2" align="center" valign="bottom" nowrap="nowrap" bgcolor="#FFFFFF" id="logo">Bus Information Management System</td>
    <td width="5" bgcolor="#FFFFFF">&nbsp;</td>
  </tr>

  <tr bgcolor="#FFFFFF">
    <td height="22" colspan="2" align="center" valign="top" bgcolor="#FFFFFF" id="tagline">MOHANDAS COLLEGE OF ENGINEERING AND TECHNOLOGY</td>
	<td width="5" bgcolor="#FFFFFF">&nbsp;</td>
  </tr>

  <tr>
    <td colspan="6" bgcolor="#FFFFFF"><img src="images/mm_spacer.gif" alt="" width="1" height="2" border="0" /></td>
  </tr>
  <tr>
    <td height="19" colspan="6"> <div id="smoothmenu1" class="ddsmoothmenu">

  <!--################Start Main Menu #####################-->

<ul>
	<li><a href="MainMenu.php">Home</a> </li>
	
	<!--############NEW SUBMENU#############-->
	<li><a href="#">New</a>
 	  <ul>
 		 <li><a href="NewStudent.php">Student</a></li>
		 <li><a href="NewStaff.php">Staff</a></li>
 		 <li><a href="NewBus.php">Bus</a></li>
 		 <li><a href="NewRoute.php">Bus Stop</a></li>
 		 <li><a href="NewUser.php">User</a></li>
  		 <li><a href="EditNews.php">Information</a></li>
      </ul>
    </li>
  
	<!--############EDIT SUBMENU#############-->
	<li><a href="#">Edit</a>
 	  <ul>
	    
		  <li><a href="EditStudent.php">Student</a></li>
  		  <li><a href="Editstaff.php">Staff</a></li>
 		  <li><a href="Editbus.php">Bus</a></li>
		  <li><a href="#">Status</a>
		    <ul>
		      <li><a href="quickeditstudent.php">Student</a></li>
  		      <li><a href="quickeditstaff.php">Staff</a></li>
			  <li><a href="quickeditbus.php">Bus</a></li>
		    </ul>
		  </li>
      </ul>
	</li>

		<!--############Start Print Submenu#############-->
	<li><a href="print.php">Print</a></li><!--############End Print Submenu#############-->
		
<li><a href="changepass.php">Change Password</a></li>
  </li>
  <li><a href="MainMenu.php?logout">Logout</a></li>
    	
	
  <li><a href="contactus.php">Contact Us</a></li>
    </ul>
	
  </li>
  
  </ul>
  
  <!--################End Main Menu#####################-->
<br style="clear: left" />
</div></td>
  </tr>

  <tr>
    <td colspan="6" bgcolor="#FFFFFF"><img src="images/mm_spacer.gif" alt="" width="1" height="2" border="0" /></td>
  </tr>

  <tr>
    <td height="72" valign="top" bgcolor="#79CAFF">&nbsp;</td>
    <td>&nbsp;</td>
    <td colspan="2" valign="bottom"><blockquote>
      <h3 class="style3">Edit Staff Status </h3>
    </blockquote></td>
    <td width="541">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td width="172" height="320" valign="top" bgcolor="#79CAFF"><table border="0" cellspacing="0" cellpadding="0" width="172" id="navigation" bgcolor="79CAFF">
      <tr>
        <td width="172" bgcolor="#79CAFF">&nbsp;<br />
          &nbsp;<a href="MainMenu.php" class="navText">Home</a></td>
      </tr> <tr>
        <td width="172" bordercolor="#666666" ><a href="changepass.php"  class="navText">Change Password</a></td>
      </tr>   
     <tr>
        <td width="172" height="23" bordercolor="#666666" ><a href="upgrade.php" class="navText">Upgrade </a></td>
      </tr>   
    
      <tr>
        <td width="172" bordercolor="#666666" ><a href="MainMenu.php?logout" class="navText">Log Out</a></td>
      </tr> 
	   <tr>
        <td width="172" bordercolor="#666666" ></td>
      </tr>
	     <tr>
        <td width="172" height="23" bordercolor="#666666" ><a href="contactus.php" class="navText">Contact Us </a></td>
      </tr>
    </table>
      <br />
  	&nbsp;<br />
  	&nbsp;<br />
  	&nbsp;<br /> 	</td>
    <td width="5">&nbsp;</td>
    <td colspan="3" valign="top">
	
	
		    <div id="Layer3" align="center">
      <div id="grid1" align="justify"></div>
<script type="text/javascript">
var thegrid = new drasticGrid('grid1', {
	pathimg:"img/",
	pagelength: 15,
	columns: [
		{name: 'EmployeeId'},
		{name: 'Name', width:160},		
		//{name: 'Designation'},	
		{name: 'BusNumber',editable: false},
		{name: 'StopName',editable: false},
		{name: 'TeleNo',editable: false},
		{name: 'Department',editable: false},
		{name: 'Status',width: 40}		
		//{name: 'email', type: DDTYPEMAILTO, width: 140},
		//{name: 'www', type: DDTYPEURL, width: 180},
		//{name: 'present'}				
		]});
</script>
	</div>
	
<td width="5">&nbsp;</td>
  </tr>
  <tr>
<td colspan="7" bgcolor="#79CAFF"><div align="center"><strong>Copyright 2009. businfo.info All rights reserved.&nbsp;</strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="style1">Powered by <a href="http://mobalive.mobi/" style="text-decoration:none">mobalive.mobi</a></span></div>  </td>
  </tr>
</table>

</body>
</html>