<!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">
<head>
  
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="verify-v1" content="4VQVZSxex949OLV1Wnw/UFtVniiunqptcvicxeSbu9s=" >
<script src="js/jquery.js" type="text/javascript" language="javascript"></script>
<script language="javascript">
//  Developed by Roshan Bhattarai
//  Visit http://roshanbh.com.np for this script and more.
//  This notice MUST stay intact for legal use

$(document).ready(function()
{
	$("#login_form").submit(function()
	{
		//remove all the class add the messagebox classes and start fading
		$("#msgbox").removeClass().addClass('messagebox').text('Validating....').fadeIn(1000);
		//check the username exists or not from ajax
		$.post("ajax_login.php",{ user_name:$('#username').val(),password:$('#password').val(),rand:Math.random() } ,function(data)
        {
		  if(data=='yes') //if correct login detail
		  {
		  	$("#msgbox").fadeTo(200,0.1,function()  //start fading the messagebox
			{
			  //add message and change the class of the box and start fading
			  $(this).html('Logging in.....').addClass('messageboxok').fadeTo(900,1,
              function()
			  {
			  	 //redirect to secure page
				 //document.location='secure.php';

                 document.location='MainMenu.php';
                 //document.location='index2.php';
			  });

			});
		  }
		  else
		  {
		  	$("#msgbox").fadeTo(200,0.1,function() //start fading the messagebox
			{
			  //add message and change the class of the box and start fading
			  $(this).html('Your login details are wrong...').addClass('messageboxerror').fadeTo(900,1);
			});
          }

        });
 		return false; //not to post the  form physically
	});
	//now call the ajax also focus move from
	$("#password").blur(function()
	{
		$("#login_form").trigger('submit');
	});
});
</script>
<!=======================================================================>

<title>BIMS</title>
<style type="text/css">
@import url(css/style.css);
.style1 {color: #FFFFCC}
.style2 {font-size: 14px}
.style3 {color: #3399FF}
.style4 {color: #94E9EF}
.style5 {font-size: 12px}
</style>
<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/javascript.js" type="text/javascript"></script>
</head>
<body>
<div id="header">
<br />
  BUS INFORMATION MANAGEMENT SYSTEM
  <br />
  <h2 align="center">Bus Information Management System</h2>
</div>



<form method="post" action="" id="login_form">
  <strong></strong>
  <hr id="header_stripe"/>
  <div id="page_container">
  <div id="toppanel">
    <div id="panel">
      <div id="panel_contents"> </div>
      <h1 align="center">Mohandas College of Engineering and Technology </h1>
      <h2 align="center"> By MobAlive for BIMS </h2>
      
	<div class="border1" id="login1">
        <p>
		  <br />
          &nbsp;&nbsp;User Name :&nbsp;&nbsp;
        
          <input name="username" type="text" id="username" value="" align="middle"/>
          <br /><br />
          &nbsp;&nbsp;Password :&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          
         <input name="password" type="password" id="password" value="" align="middle"/>
          <br /><br />
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="Submit" type="submit" id="submit" accesskey="l" value="Login" style="margin-left:40px; height:23px"/> <span id="msgbox" style="display:none"></span>        </p>
      </div>



       <div class="border" id="login"></div>
    </div>
    <div class="panel_button" style="display: visible;"><img src="images/expand.png"  alt="expand"/> <a href="#">Login Here</a> </div>
    <div class="panel_button" id="hide_button" style="display: none;"><img src="images/collapse.png" alt="collapse" /> <a href="#">Hide</a> </div>
  </div>

  <div id="content"><table width="90%" height="369" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="24%" height="25" bgcolor="#79CAFF">&nbsp;</td>
    <td width="2%">&nbsp;</td>
    <td>&nbsp;</td>
    <td width="3%">&nbsp;</td>
  </tr>
  <tr>
    <td height="178" bgcolor="#79CAFF"><table width="182" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#46392F" class="border1">
      <tr>
        <td bgcolor="#46392F">&nbsp;&nbsp;</td>
        <td height="19" bgcolor="#46392F"><div align="center" class="buttondiv" id="header1">
            <p >News </p>
        </div></td>
        <td bgcolor="#46392F">&nbsp;&nbsp; </td>
        <?
	include ("config.php");
$query_disp="select * from news where flag=1";
$result_disp = mysql_query($query_disp);
$query_data = mysql_fetch_array($result_disp);
 ?>
      </tr>
      <tr>
        <td bgcolor="#46392F">&nbsp;</td>
        <td bgcolor="#46392F"><marquee  direction="left" align="middle"   scrolldelay="200" height="20">
          <div align="justify" class="style1"><? echo $query_data['longMessage']; ?></div>
        </marquee><p></p></td>
        <td bgcolor="#46392F">&nbsp;</td>
      </tr>
      <tr>
        <td bgcolor="#46392F">&nbsp;</td>
        <td bgcolor="#46392F" class="style4">
          <? echo $query_data['Message1']; ?><p></p></td>
        <td bgcolor="#46392F">&nbsp;</td>
      </tr>
      <tr>
        <td bgcolor="#46392F">&nbsp;</td>
        <td bgcolor="#46392F" class="style4"><? echo $query_data['Message2']; ?><p></p></td>
        <td bgcolor="#46392F">&nbsp;</td>
      </tr>
    </table></td>
    <td rowspan="2">&nbsp;</td>
    <td width="71%" rowspan="2" align="left" valign="top" id="content"><p align="justify">&nbsp;&nbsp;&nbsp;<span class="quote"></span><br />
      <span class="style5"><br />
        &nbsp; &nbsp; &nbsp; &nbsp;Mohandas College of  Engineering and Technology M-CET is the prestigious education project  of the leading industrial group, The Mohandas Group of Companies,  Thiruvananthapuram. The College is run by the V.N.Gangadhara Panikker  Memorial Trust based in Thiruvananthapuram.</span></p>
    <p align="justify"><span class="style5"><br />
  &nbsp; &nbsp; &nbsp; &nbsp;MCET is an  ISO 9001:2000  certified college and is committed to impart value added education of  highest quality to the students by providing state-of-the-art  facilities in order to mould them into competent professionals and  better citizens. It also aims to enhance customer satisfaction through  effective application and continuous up-gradation of quality management  system.</span></p></td>
  </tr>
  <tr>
    <td height="147" bgcolor="#79CAFF">&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.com/" style="text-decoration:none">mobalive.com</a></span></div>  </td>
  </tr>
</table>
</div>
  </div>
</form>
</body>
</html>