<? include "chksession.php"; ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>main</title> <style type="text/css"> <!-- body { background-color: #0A7CFC; background-image: url(pic/227034_4204591.jpg); color: #000; } #apDiv1 { position:absolute; left:69px; top:380px; width:213px; height:129px; z-index:1; } #apDiv2 { position:absolute; left:97px; top:510px; width:208px; height:137px; z-index:1; } --> </style> </head> <body> <table width="900" height="813" border="1" align="center"> <tr> <td height="807" align="center" valign="top" bgcolor="#FFFFFF"><table width="900" border="1"> <tr> <td align="center"><img src="pic/headd.gif" width="893" height="174" /></td> </tr> </table> <table width="900" border="1"> <tr> <td width="900" align="center" valign="top"><marquee> <form id="form1" name="form1" method="post" action=""> <img src="pic/casd.gif" width="300" height="50" /> </form> </marquee></td> </tr> </table> <table width="901" height="510" border="1"> <tr> <td width="199" height="506" align="center" valign="top" bgcolor="#CCCCCC"><form id="form2" name="form2" method="post" action=""> <table width="181" height="571" border="-"> <tr> <td width="185" align="center"><a href="main.php"><img src="picmanu/home1.gif" width="175" height="42" /></a></td> </tr> <tr> <td align="center"><a href="วัตถุประสงค์q.html"><img src="picmanu/วัตถุ.gif" width="175" height="42" /></a></td> </tr> <tr> <td align="center"><a href="sample.php"><img src="picmanu/ก่อนเรียน.gif" width="175" height="42" /></a></td> </tr> <tr> <td align="center"><a href="บทเรียน.html"><img src="picmanu/บทเรียน.gif" width="175" height="42" /></a></td> </tr> <tr> <td align="center"><a href="sample3.php"><img src="picmanu/หลังเรียน.gif" width="175" height="42" /></a></td> </tr> <tr> <td align="center"><a href="scoretest.php"><img src="picmanu/ผลสอบ.gif" width="175" height="42" /></a></td> </tr> <tr> <td align="center"><a href="ผู้จัดทำ.html"><img src="picmanu/ผู้จัดทำ.gif" width="175" height="42" /></a></td> </tr> <tr> <td height="69" align="center"><a href="เข้าสู่ระบบ.html"><img src="picmanu/ออก.gif" width="175" height="42" /></a></td> </tr> </table> <p> </p> </form> <p> </p></td> <td width="685" align="center" valign="top" background="pic/223381_4134803.gif"> <div align="right"><font size="4">ยินดีต้อนรับคุณ<font color="#0000FF"> [<? echo $sess_username ?>]</font> <br> <font size="3"><a href="editform.php">>>แก้ไขข้อมูลสมาชิก</a></font> <br><font size="3"><a href="changepw.php">>>เปลี่ยนรหัสผ่าน</a></font> <br><font size="3"><a href="logout.php">>>ออกจากระบบ</a></font></div> <p> </p> <center><h1>คะแนนแบบทดสอบ </h1></center> <p><br> <? include "connect.php"; $sql="select * from tb_member order by name"; $result=mysql_db_query($dbname,$sql); $record=mysql_fetch_array($result); $sql2="select * from tb_scorebe where userid ='$sess_id' "; $dbquery = mysql_db_query($dbname,$sql2); $num_rows = mysql_num_rows($dbquery); if ($num_rows ==''){ echo "คุณยังทำแบบทดสอบไม่ครบ ดูคะแนนไม่ได้เลยค่ะ"; }elseif ($num_rows >= 0 ) $sql3="select * tb_scorebe values('','$score_be')"; echo "<center>คุณทำข้อสอบหลังเรียนได้ทั้งหมด $score_be[score_be] คะแนน</center><br>"; ?> </p> <p> <br> <a href="scoretest.php">ดูคะแนนหลังเรียน</a> </div> </p> <p> </p></td> </tr> </table> <p> </p></td> </tr> </table> </body> </html>
echo "<center>คุณทำข้อสอบหลังเรียนได้ทั้งหมด $dbquery [score_be] คะแนน</center><br>";
<? include "connect.php"; $sql="select * from tb_member order by name"; $result=mysql_db_query($dbname,$sql); $record=mysql_fetch_array($result); $sql2="select * from tb_scorebe where userid ='$sess_id' "; $objQuery = mysql_query($sql2); $objResult = mysql_fetch_array($objQuery); if ($objResult ==''){ echo "คุณยังทำแบบทดสอบไม่ครบ ดูคะแนนไม่ได้เลยค่ะ";}else{ echo "<center>คุณทำข้อสอบหลังเรียนได้ทั้งหมด".$objResult['score_be']."คะแนน</center><br>"; } ?>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง