Viewing file: Detail.php (3.95 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php include("../../../include/FunctionDB.php"); include("../../../include/Function.php"); ConnectDB(); $sql = " SELECT * FROM std_scholarship_tb Where Student_id='$Student_id' "; $result = mysql_query($sql) or die("Select Has Error".mysql_error()); $rs = mysql_fetch_array($result); ?> <html> <head> <title>Display </title> <meta http-equiv="Content-Type" content="text/html; charset=windows-874"> </head>
<body bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> <tr> <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr bgcolor="#F4F9F2"> <td width="29%" bgcolor="#F4F9F2"><font size="2" face="Tahoma"><strong> รหัสนักศึกษา</strong></font><font size="3" face="Tahoma"> :</font><font color="#006633" size="2" face="Tahoma"> <?=$rs["Student_id"]?> </font></td> <td width="71%" bgcolor="#F4F9F2"><font size="2" face="Tahoma"><strong>ชื่อ-นามสกุล</strong></font><font size="3" face="Tahoma"> : </font><font color="#006633" size="2" face="Tahoma"> <?php $Student_id = $rs[Student_id]; $sql1 = "Select First_name,Name,Lastname From student_tb Where Student_id='$Student_id'"; $result1 = mysql_query($sql1) or die("Error".mysql_error()); $row = mysql_fetch_array($result1); echo "$row[First_name] $row[Name] $row[Lastname]";
?> </font></td> </tr> </table></td> </tr> <tr> <td> </td> </tr> </table> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#CCCCCC" style="border:1px solid gray"> <tr bgcolor="#DDF3DC"> <td colspan="3"> <div align="center"><font color="#003366" size="4" face="Tahoma"><strong><font color="#000000">รายละเอียด</font></strong></font><font size="4" face="Tahoma"><strong><font color="#000000" size="4" face="Tahoma">ข้อมูลทุนการศึกษา</font></strong></font></div></td> </tr> <tr bgcolor="#FFFEF4"> <td width="25%" bgcolor="#FFFEF4"><div align="center"><strong><font size="2" face="Tahoma">วันที่รับทุน</font></strong></div></td> <td width="3%"> </td> <td width="72%"><font color="#003366" size="2" face="Tahoma"> <?php $dday = $rs[Date_rec]; $yearthai = explode("-",$dday); $day = intval($yearthai[2]); $month = intval($yearthai[1]); $year = intval($yearthai[0]); ////////////////// // $yearthai = $day ; $m = getThaiSubMonth($month); echo"$day"." "."$m"." "."$year"; ?> </font><font color="#000000" size="2" face="Tahoma"> </font></td> </tr> <tr> <td bgcolor="#FBF5E3"> <div align="center"><strong><font size="2" face="Tahoma, MS Sans Serif">ชื่อทุนการศึกษา</font></strong></div></td> <td bgcolor="#FBF5E3"><font size="2" face="Tahoma"> </font></td> <td bgcolor="#FBF5E3"> <div align="left"><font color="#003399" size="2" face="Tahoma"> <? $Scholarship_code = $rs[Scholarship_code]; $strSQL = "SELECT * FROM scholarship_tb Where Scholarship_code='$Scholarship_code' "; $result1 = mysql_query($strSQL) or die("Error".mysql_error()); $rss = mysql_fetch_array($result1); echo"$rss[Scholarship_name]"; ?> </font></div></td> </tr> <tr bgcolor="#FFFEF4"> <td> <div align="center"><strong><font color="#003366" size="2" face="Tahoma, MS Sans Serif">การพิจารณา</font></strong></div></td> <td><font size="2" face="Tahoma"> </font></td> <td> <div align="left"><font size="2" face="Tahoma"><? echo $rs[Consider]?></font></div></td> </tr> <form action="" method=""> </form> <tr bgcolor="#DDF3DC"> <td colspan="3"> </td> </tr> </table> <table width="79%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td> </td> </tr> <tr> <td><div align="center"> </div></td> </tr> </table> <p> </p> </body> </html> <?php CloseDB(); ?>
|