<? include "chksession.php"; include "connect.php"; mysql_query("set names tis620"); $sql="select * from stu where idstu='$sess_username'"; $result=mysql_db_query($dbname,$sql); $record=mysql_fetch_array($result); $idstu=$record[idstu]; $fname=$record[fname]; $lname=$record[lname]; mysql_close(); ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-874"> <title>Untitled Document</title> <style type="text/css"> <!-- body { background-image: url(image/bg.png); background-repeat: no-repeat; } .style2 { font-size: 14px; font-weight: bold; } .textF { border-width:1; font-size: 12pt; font-family: times; font-style:oblique; } .style3 { font-size: 24px; font-weight: bold; font-style: italic; } --> </style> </head> <body> <table width="800" border="1" align="center" bordercolor="#FFFF99"> <tr> <td bordercolor="#FFFF99"><img src="image/header.jpg" width="800" height="100"></td> </tr> </table> <table width="810" border="1" align="center" bordercolor="#FFFF99"> <tr> <td height="104" bgcolor="#FFFFFF"><table width="800" border="1" bordercolor="#000000"> <tr> <td width="120" height="300"><table width="160" border="0" align="center"> <tr> <td height="21" class="style2"><a href="logoutstu.php">ออกจากระบบ</a></td> </tr> </table> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p></td> <td width="664"><form action="" method="post" name="fmshowgrade"> <p align="center" class="style3">รายงานผลการเรียน</p> <table width="600" border="0" align="center"> <tr> <td width="50" class="style2"><div align="right">ชื่อ :</div></td> <td width="143"><?=$fname?></td> <td width="80"><div align="right"><span class="style2">นามสกุล :</span></div></td> <td width="112"><?=$lname?></td> <td width="110"><div align="right"><span class="style2">รหัสนักศึกษา :</span></div></td> <td width="79"><?=$idstu?></td> </tr> </table> <table width="400" border="0" align="center"> <tr> <td width="91"><div align="right" class="style2">ภาคเรียนที่ :</div></td> <td width="85"><input name="term" type="text" id="term" size="10" maxlength="1"></td> <td width="100"><div align="right" class="style2">ปีการศึกษา :</div></td> <td width="106"><input name="year" type="text" id="year" size="10" maxlength="4"></td> </tr> <tr> <td colspan="4"><div align="center"> <input type="submit" name="btgrade" id="btgrade" value="ดูผลการเรียน"> </div></td> </tr> </table> </form> <? if($_POST["term"] != "" or $_POST["year"] != ""){ include "chksession.php"; include "connect.php"; mysql_query("set names tis620"); $sql = "SELECT * FROM grade WHERE (term LIKE '".$_POST["term"]."' or year LIKE '".$_POST["year"]."' ) "; $query = mysql_query($sql) or die ("Error Query [".$sql."]"); ?> <table width="600" border="1" align="center"> <tr> <th width="91"> <div align="center">รหัสวิชา </div></th> <th width="98"> <div align="center">รายชื่อวิชา </div></th> <th width="198"> <div align="center">หน่วยกิต </div></th> <th width="97"> <div align="center">เกรด </div></th> <th width="59"> <div align="center">ผลคูณ </div></th> </tr> <? while($result = mysql_fetch_array($query)) { ?> <tr> <td><div align="center"><?=$result["idsub"];?></div></td> <td><?=$result["subname"];?></td> <td><?=$result["credit"];?></td> <td><div align="center"><?=$result["garde"];?></div></td> <td align="right"></td> </tr> <? } ?> </table> <? mysql_close(); } ?> <p> </p> <p> </p></td> </tr> </table></td> </tr> </table> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง