Viewing file: menu_std.php (16.43 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "../link/function.php";
include("../includes/FunctionDB.php");
include("admin_menu.php");
include("../includes/Function.php");
ConnectDB();
$sql1 = "Select * From StudentMaster Where studentId='$studentId' ";
$result1 = mysql_query($sql1) or die(" Error".mysql_error());
$rs = mysql_fetch_array($result1);
$row = mysql_fetch_array($result1);
$sql = "Select * From StudentBio Where studentId='$studentId' ";
$result = mysql_query($sql) or die(" Error".mysql_error());
$rss = mysql_fetch_array($result);
?>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<link href="./source/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {
font-size: 14px;
font-weight: bold;
}
.style3 {font-size: 14px; font-family: Tahoma; }
.style4 {font-size: 14px}
-->
</style>
<table width="830" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="830" ><br>
<fieldset>
<legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="Menu_Std_Acc.php">หน้าหลัก</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"><a href="StudentList.php">ข้อมูลนักศึกษา</a></font></legend>
<form id="form1" name="form1" method="post" action="">
<font size="2" face="Tahoma"><img src="../picture/previous.gif" onclick="window.history.back()" width="85" height="22" border="0" /></font>
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0" style="border:0px solid gray">
<tr>
<td colspan="3" bgcolor="#FFFFFF"><div align="center" class="style4"><font face="Tahoma">ประวัตินักศึกษา</font></div></td>
</tr>
<tr>
<td colspan="3" bgcolor="#FFFFFF"><div align="center" class="style1"></div></td>
</tr>
<tr>
<td colspan="2" bgcolor="#EBEBEB"><table width="100%" border="0" cellpadding="1" cellspacing="1" bordercolor="#999999">
<tr bgcolor="#FFFFFF">
<td width="32%" bgcolor="#FFFFFF"><div align="center" class="style3">
<div align="left"><font color="#000000">รหัส</font></div>
</div></td>
<td width="68%" bgcolor="#FFFFFF">
<font color="#000000" size="2" face="Tahoma">:<strong>
<?=$rs["studentCode"]?>
</strong></font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td bgcolor="#FFFFFF"><div align="center" class="style3">
<div align="left"><font color="#000000">ชื่อ-นามสกุล (ไทย)</font></div>
</div></td>
<td bgcolor="#FFFFFF"><font color="#003300" size="2" face="Tahoma">
: <?php
$prefixId = $rs[prefixId];
$sql3= "Select * From Prefix Where prefixId='$prefixId'";
$result3 = mysql_query($sql3) or die("Error Select".mysql_query());
$rs3 = mysql_fetch_array($result3);
echo"$rs3[prefixName]";
?>
</font><font color="#990099" size="2" face="Tahoma"><a href="./StdDetail.php?studentId=<?=$rs["studentId"]?>" title="Click to see Detail" class="d">
<?=$rs["studentName"]?>
<?=$rs["studentSurname"]?>
</a><a href="checkEnrollItem.php?studentCode=<?=$rs["studentCode"]?>" ></a></font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td bgcolor="#FFFFFF"><div align="center" class="style3">
<div align="left"><font color="#000000">ชื่อ-นามสกุล (อังกฤษ)</font></div>
</div></td>
<td bgcolor="#FFFFFF">
<font color="#990099" size="2" face="Tahoma">: </font><font color="#990099" size="2" face="Tahoma"><?=$rs["studentNameEng"]?>
<?=$rs["studentSurnameEng"]?>
</a></font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td bgcolor="#FFFFFF"><div align="center" class="style3">
<div align="left"><font color="#000000">หลักสูตร</font></div>
</div></td>
<td bgcolor="#FFFFFF">
<font color="#000000" size="2" face="Tahoma">
: <?php
$programId = $rs[programId];
$sql2= "Select * From Program Where programId='$programId' ";
$result2 = mysql_query($sql2) or die("Error Select".mysql_query());
$rs2 = mysql_fetch_array($result2);
echo"$rs2[programName]";
?>
</font><font color="#003300" size="2" face="Tahoma"> รุ่น </font><font color="#000000" size="2" face="Tahoma">
<?php
$programId = $rs[programId];
$sql2= "Select * From Generation Where programId='$programId' ";
$result2 = mysql_query($sql2) or die("Error Select".mysql_query());
$rs2 = mysql_fetch_array($result2);
echo"$rs2[genNo]";
?>
</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td bgcolor="#FFFFFF"><div align="center" class="style3">
<div align="left"><font color="#000000">ชั้นปีท</font>ี่</div>
</div></td>
<td bgcolor="#FFFFFF"><font color="#000000" size="2" face="Tahoma">
<font color="#000000" size="2" face="Tahoma">:<strong>
<?=$rs["studentYear"]?>
</strong></font></font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td bgcolor="#FFFFFF"><div align="center" class="style3">
<div align="left"><font color="#000000">อายุ</font></div>
</div></td>
<td bgcolor="#FFFFFF"><font color="#003366" size="2" face="Tahoma">
: <?php //// Show Age
$studentId = $rs[studentId];
$sql4= "Select * From StudentBio Where studentId='$studentId' ";
$result4 = mysql_query($sql4) or die("Error Select".mysql_query());
$rs4 = mysql_fetch_array($result4);
$age = $rs4[birthDate];
$year = explode("-",$age);
$year = intval($year[0]);
$year = $year - 543;
$currentyear = date("Y");
$currentyear = intval($currentyear);
$age = $currentyear - $year ;
echo"$age";
?>
</font><font color="#000000" size="2" face="Tahoma">ปี</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td bgcolor="#FFFFFF"><div align="center" class="style3">
<div align="left"><font color="#000000">วันที่เข้ารับการศึกษา</font></div>
</div></td>
<td bgcolor="#FFFFFF"><font color="#003366" size="2" face="Tahoma">
: <?php
$sday = $rs[admitDate];
$yearthai = explode("-",$sday);
$day = intval($yearthai[2]);
$month = intval($yearthai[1]);
$year = intval($yearthai[0]);
//////////////////
// $yearthai = $day ;
$m = getThaiSubMonth($month);
echo"$day"." "."$m"." "."$year";
?>
</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="18" bgcolor="#FFFFFF"><div align="center" class="style3">
<div align="left"><font color="#000000">สถานะการลงทะเบียน</font></div>
</div></td>
<td bgcolor="#FFFFFF"><font color="#990099" face="Tahoma"><a href="../checkEnrollItem.php?studentCode=<?=$rs["studentCode"]?>" target="_blank" class="style4" >ตรวจสอบรายวิชาลงทะเบียนเรียน</a></font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="18" bgcolor="#FFFFFF"><div align="left"></div></td>
<td bgcolor="#FFFFFF"><font color="#990099" face="Tahoma"><a href="/mis/eregis/login.php" target="_blank" class="style4" onclick='OpenWindow("showDetailEnrollFee.php?studentId=<?=$rs["studentId"]?>&acadYear = <?=$rs["acadYear"]?>&studentYear=<?=$rs["studentYear"]?>&semester=<?=$rs["semester"]?>",700,500)'>ตรวจสอบค่าลงทะเบียน</a></font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="18" bgcolor="#FFFFFF"><div align="center" class="style3">
<div align="left"><font color="#000000">อาจารย์ที่ปรึกษา</font></div>
</div></td>
<td bgcolor="#FFFFFF"><font color="#003300" size="2" face="Tahoma"> : อ.
<?php
$officerId1 = $rs[officerId1];
$sql3= "Select * From Officer Where officerId='$officerId1'";
$result3 = mysql_query($sql3) or die("Error Select".mysql_query());
$rs = mysql_fetch_array($result3);
echo"$rs[officerName] $rs[officerSurname]";
?>
</font></td>
</tr>
</table></td>
<td width="22%" rowspan="4" bgcolor="#FFFFFF"><table width="106" border="2" align="center" cellpadding="0" cellspacing="2" bordercolor="#0000FF">
<tr>
<td width="94"><div align="center">
<?php
echo"<center>";
echo"<img src=\"$rss[picturePath]\" width=\"110\" height=\"130\" >";
echo"</center>";
?>
</div></td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center" class="style4"><font color="#000000" face="Tahoma">สภาพนักศึกษา</font></div></td>
<td bgcolor="#FFFFFF"><font color="#003300" size="2" face="Tahoma">
: <?php
$studentStatus = $rs[studentStatus] ;
$sql4= "Select * From SysStudentStatusDes ";
$result4 = mysql_query($sql4) or die("Error Select".mysql_query());
$rs = mysql_fetch_array($result4);
echo"$rs[description]";
?>
</font></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"><a href="checkEnrollItem.php?studentId=<?=$rs["studentCode"]?>" ></a></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td bgcolor="#FFFFFF"> </td>
<td rowspan="8" bgcolor="#FFFFFF"><table width="100%" border="0" align="center" cellpadding="1" cellspacing="1">
<tr bgcolor="#FDFBF4" onmouseover="this.style.backgroundColor='#D8F8FA'" onmouseout="this.style.backgroundColor='#FDFBF4'">
<td width="7%" bgcolor="#FFFFFF"><div align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="../picture/linesub.gif" width="16" height="16" border="0" align="absmiddle" /></font></div></td>
<td width="93%" bgcolor="#FFFFFF" ><span class="style4"><font face="Tahoma"><a href="StdDetail.php?studentId=<?=$rss["studentId"]?>" > ข้อมูลนักศึกษา</a></font></span></td>
</tr>
<tr bgcolor="#FCF8EB" onmouseover="this.style.backgroundColor='#D8F8FA'" onmouseout="this.style.backgroundColor='#FCF8EB'" >
<td bgcolor="#FFFFFF"><div align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="../picture/linesub.gif" width="16" height="16" border="0" align="absmiddle" /></font></div></td>
<td bgcolor="#FFFFFF"><span class="style4"><font face="Tahoma">ข้อมูลผู้ปกครอง</font></span></td>
</tr>
<tr bgcolor="#FDFBF4" onmouseover="this.style.backgroundColor='#D8F8FA'" onmouseout="this.style.backgroundColor='#FDFBF4'">
<td bgcolor="#FFFFFF"><div align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="../picture/linesub.gif" width="16" height="16" border="0" align="absmiddle" /></font></div></td>
<td bgcolor="#FFFFFF"><span class="style4"><font face="Tahoma"><font face="Tahoma">ข้อมูลทุนการศึกษา</font></font></span></td>
</tr>
<tr bgcolor="#FCF8EB" onmouseover="this.style.backgroundColor='#D8F8FA'" onmouseout="this.style.backgroundColor='#FCF8EB'" >
<td bgcolor="#FFFFFF"><div align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="../picture/linesub.gif" width="16" height="16" border="0" align="absmiddle" /></font></div></td>
<td bgcolor="#FFFFFF"><span class="style4"><font face="Tahoma"><a href="/mis/eregis/login.php" target="_blank">ข้อมูลผลการเรียน</a></font></span></td>
</tr>
<tr bgcolor="#FDFBF4" onmouseover="this.style.backgroundColor='#D8F8FA'" onmouseout="this.style.backgroundColor='#FDFBF4'">
<td bgcolor="#FFFFFF"><div align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="../picture/linesub.gif" width="16" height="16" border="0" align="absmiddle" /></font></div></td>
<td bgcolor="#FFFFFF"><span class="style4"><font face="Tahoma"><font face="Tahoma">ข้อมูลสุขภาพ</font></font></span></td>
</tr>
<tr bgcolor="#FCF8EB" onmouseover="this.style.backgroundColor='#D8F8FA'" onmouseout="this.style.backgroundColor='#FCF8EB'" >
<td bgcolor="#FFFFFF"><div align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="../picture/linesub.gif" width="16" height="16" border="0" align="absmiddle" /></font></div></td>
<td align="left" bgcolor="#FFFFFF"><span class="style4"><font color="#000000" face="Tahoma">ข้อมูลการลา</font></span></td>
</tr>
<tr bgcolor="#FDFBF4" onmouseover="this.style.backgroundColor='#D8F8FA'" onmouseout="this.style.backgroundColor='#FDFBF4'">
<td bgcolor="#FFFFFF"><div align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="../picture/linesub.gif" width="16" height="16" border="0" align="absmiddle" /></font></div></td>
<td bgcolor="#FFFFFF"><span class="style4"><font color="#000000" face="Tahoma">ข้อมูลพฤติกรรม
และ วินัย นักศึกษา</font></span></td>
</tr>
</table></td>
<td bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td width="25%" bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td colspan="3" bgcolor="#FFFFFF"> </td>
</tr>
</table>
</form>
</fieldset>
<br>
<font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><b>หมายเหตุ :</b> ใช้เมาส์คลิกที่ชื่อ<br>
</font></td>
</tr>
</table>
|