Viewing file: By_propotion.php (5.84 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 </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/Ts32.jpg')"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td colspan="4" bgcolor="#F7F5EC"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1"> <tr> <td colspan="5" bgcolor="#0066CC"><img src="../../Image/Ponallogo.jpg" width="550" height="71"></td> </tr> <tr> <td width="20%" background="../../Image/barm.jpg" class="table"> <div align="center"><strong><font size="2" face="Tahoma"><a href="menu_personal.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="PersonalData.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="../Project&Acc/InstructorList.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="../Support/menu_support.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></td> </tr> <tr> <td colspan="4"> </td> </tr> <tr> <td colspan="4"> <div align="center"><font size="2" face="Tahoma"> </font></div></td> </tr> <tr> <td width="13%"> </td> <td width="9%"> </td> <td width="56%"> </td> <td width="22%"> </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.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> </td> <td><span class="d"><strong><a href="PersonalData.php" class="d">ข้อมูลส่วนตัวบุคลากร</a></strong></span></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td><a href="PersonalData2.php" class="d"><strong>ข้อมูลการแยกตามการบริหาร</strong></a></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td><strong class="red"><a href="EducationData.php" class="d" onMouseOver="MM_swapImage('Image4','','../../Image/Ts32.jpg',1)" onMouseOut="MM_swapImgRestore()">ข้อมูลวุฒิการศึกษา</a></strong></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> <div align="left"><a href="PersonalData2.php" class="d"><strong> </strong></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> <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>"; } ?>
|