Viewing file: menu_teacher.php (5.79 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php session_start(); if (session_is_registered("valid_user")&&session_is_registered("password")) { $Username = $valid_user; $Password = $password; include("../../include/FunctionDB.php"); ConnectDB(); $sql = "Select * From user_tb Where Username='$Username'"; $result = mysql_query($sql) or die(" Error".mysql_error()); $rs1 = mysql_fetch_array($result); $Username = $rs1[Username]; $sql1 = "Select * From personal_tb Where Username='$Username'"; $result1 = mysql_query($sql1) or die(" Error".mysql_error()); $rs = mysql_fetch_array($result1); ?> <html> <head> <title>Management Department</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-874"> <link href="../../css/style1.css" rel="stylesheet" type="text/css"> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} }
function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; }
function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; }
function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> </head>
<body bgcolor="#F7F5EC" background="../../Image/bg5.jpg" onLoad="MM_preloadImages('../../Image/T21.jpg','../../Image/T13.jpg','../../Image/con2.jpg')"> <table width="79%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td colspan="4"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="29"> <div align="center"><img src="../../Image/headman2.jpg" width="740" height="60"></div></td> </tr> </table> </td> </tr> </table></td> </tr> <tr> <td colspan="4" bgcolor="#F7F5EC"> </td> </tr> <tr> <td colspan="4" bgcolor="#F7F5EC"> <div align="center"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1"> <tr> <td width="20%" background="../../Image/barm.jpg" class="table"> <div align="center"><strong><font size="2" face="Tahoma"><a href="../menu_manage.php" class="d">หน้าหลัก</a></font></strong></div></td> <td width="20%" background="../../Image/barm.jpg" class="table"> <div align="center" ><strong><font size="2" face="Tahoma"><a href="../../logout.php" class="d">Logout</a></font></strong></div></td> </tr> </table> </div></td> </tr> <tr> <td width="15%"><div align="center"><font size="4" face="Tahoma"><strong></strong></font></div></td> <td width="8%"> </td> <td width="48%"> <div align="left"></div></td> <td width="29%"> </td> </tr> <tr> <td><div align="left"><font size="2" face="Tahoma"><strong> </strong></font></div></td> <td> </td> <td rowspan="2"><div align="center"><font size="4" face="Tahoma"><strong>1. ฐานข้อมูลอาจารย์</strong></font></div></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td><hr></td> <td> </td> </tr> <tr> <td> </td> <td><div align="right"></div></td> <td><a href="by_propotion.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image3','','../../Image/T13.jpg',1)"><img src="../../Image/T11.jpg" name="Image3" width="200" height="25" border="0"></a></td> <td> </td> </tr> <tr> <td> </td> <td><div align="right"></div></td> <td><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image2','','../../Image/T21.jpg',1)"><img src="../../Image/T22.jpg" name="Image2" width="200" height="25" border="0"></a></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td><strong></strong></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td><strong></strong></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td><div align="center"><a href="Conclude1.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image8','','../../Image/con2.jpg',1)"><img src="../../Image/con1.jpg" name="Image8" width="200" height="25" border="0"></a></div></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> </tr> </table> </body> </html> <?php } else { echo"<body bgcolor=\"#CCCCCC\">"; echo"<meta http-equiv=\"refresh\" content=\"3;URL=../logout.php\" target=\"mainFrame\">\n"; echo"<center>"; echo"<br><br><br><b><font face=\"Tahoma\" size=\"4\" color=\"#FF0000\">Please Login</font> </b><br>"; echo"<br><br><font face=\"Tahoma\" size=\"10\" color=\"#000000\"> ERROR 404 PERMISION DENY</font><br>"; echo"<br><font face=\"Tahoma\" size=\"4\" color=\"#000000\"> คุณไม่มสิทธ์ใช้งาน</font>"; echo"</center>"; echo"</body>"; } ?>
|