Viewing file: FrmEditGrade.php (6.14 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php session_start(); if (session_is_registered("valid_user")&&session_is_registered("Priority")&&session_is_registered("password") ) { include("../include/FunctionDB.php"); include("admin_menu.php"); include("../include/Function.php"); ConnectDB(); $sql ="SELECT * FROM student_tb WHERE Student_id='$Student_id'"; $result = mysql_query($sql) or die("Cannot Select").mysql_error(); $rs = mysql_fetch_array($result); $sql1 = "Select * From grade_tb Where code='$code'"; $result1 = mysql_query($sql1) or did("Error".mysql_error()); $row = mysql_fetch_array($result1);
?> <meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<table width="835" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="835" ><br> <fieldset> <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="Edu_Menu.php">หน้าหลัก</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="menu_std.php?Student_id=<? echo $rs[Student_id];?>">ข้อมูลนักศึกษา</a></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /><a href="AddGrade.php?Student_id=<? echo $rs[Student_id];?>"> เพิ่มข้อมูลเกรดนักศึกษา</a></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /><a href="EditGradeList.php?Student_id=<? echo $rs[Student_id];?>"> แก้ไขข้อมูลเกรดนักศึกษา</a></font></legend> <label> <form id="form1" name="form1" method="post" action="InsertCourse.php"> <table width="73%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC" style="border:1px solid gray"size="12"> <tr bgcolor="#9BDDDD"> <td height="25" colspan="3"><div align="center"><font color="#FFFFFF" size="4" face="Tahoma"><strong><font color="#FF0000">แก้ไข</font> <font color="#333333">ผลการเรียนนักศึกษา</font></strong></font></div></td> </tr> <tr> <td width="30%" height="20" bgcolor="#EEEEEE"><div align="center"><strong><font size="2" face="Tahoma">รหัสนักศึกษา</font></strong></div></td> <td width="3%" bgcolor="#EEEEEE"> </td> <td width="67%" bgcolor="#EEEEEE"><font color="#003399" size="2" face="Tahoma"> <strong><? echo $rs[Student_id] ;?></strong> <strong> <font color="#000000"> ชื่อนักศึกษา</font></strong> <strong><? echo $rs[First_name] ;?> <? echo $rs[Name] ;?> <? echo $rs[Lastname] ;?> </strong></font></td> </tr> <tr> <td bgcolor="#EEEEEE"><div align="center"><strong><font size="2" face="Tahoma">ชั้นปี</font></strong></div></td> <td bgcolor="#EEEEEE"><div align="center"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></div></td> <td bgcolor="#EEEEEE"><font size="2" face="Tahoma"> <input type="radio" name="Class" <?php if (!(strcmp("$row[Class]",1))) {echo "checked";} ?> value="1" /> 1 <input type="radio" name="Class" <?php if (!(strcmp("$row[Class]",2))) {echo "checked";} ?> value="2" /> 2 <input type="radio" name="Class" <?php if (!(strcmp("$row[Class]",3))) {echo "checked";} ?> value="3" /> 3 <input type="radio" name="Class" <?php if (!(strcmp("$row[Class]",4))) {echo "checked";} ?> value="4" /> 4 </font></td> </tr> <tr> <td height="22" bgcolor="#EEEEEE"><div align="center"><strong><font size="2" face="Tahoma">ภาคเรียน</font></strong></div></td> <td bgcolor="#EEEEEE"><div align="center"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></div></td> <td bgcolor="#EEEEEE"><font size="2" face="Tahoma"> <input type="radio" name="Term" <?php if (!(strcmp("$row[Term]",1))) {echo "checked";} ?> value="1" /> เทอม1 <input type="radio" name="Term" <?php if (!(strcmp("$row[Term]",2))) {echo "checked";} ?> value="2" /> เทอม2 <input type="radio" name="Term" <?php if (!(strcmp("$row[Term]",3))) {echo "checked";} ?> value="3" /> เทอม3</font></td> </tr> <tr> <td bgcolor="#EEEEEE"><div align="center"><strong><font size="2" face="Tahoma">จำนวนหน่วยกิตทฤษฏี</font></strong></div></td> <td bgcolor="#EEEEEE"> </td> <td bgcolor="#EEEEEE"><font size="2" face="Tahoma"> <input name="Tb" type="text" class="input" id="Tb" value="<? echo $row[Tb]?>" size="5" /> </font></td> </tr> <tr> <td bgcolor="#EEEEEE"><div align="center"><strong><font size="2" face="Tahoma">จำนวนหน่วยกิตปฏิบัติและทดลอง</font></strong></div></td> <td bgcolor="#EEEEEE"> </td> <td bgcolor="#EEEEEE"><font size="2" face="Tahoma"> <input name="Tp" type="text" class="input" id="Tp" value="<? echo $row[Tp]?>" size="5" /> </font></td> </tr> <tr> <td height="22" bgcolor="#EEEEEE"><div align="center"><strong><font size="2" face="Tahoma">G.P.A</font></strong></div></td> <td bgcolor="#EEEEEE"> </td> <td bgcolor="#EEEEEE"><font size="2" face="Tahoma"> <input name="Gpa" type="text" class="input" id="Gpa" value="<? echo $row[Gpa]?>" size="5" /> </font> </td> </tr> <tr bgcolor="#9BDDDD" > <td height="25" colspan="3"><div align="center"> <input name="code" type="hidden" id="code" value="<? echo $row[code]?>" /> <input name="Student_id" type="hidden" id="Student_id" value="<? echo $rs[Student_id]?>" /> <input type="submit" name="Submit" value=" บันทึก " class="button" /> </div></td> </tr> </table> </form> </fieldset> <br> <font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><b>หมายเหตุ :</b> ใช้เมาส์คลิกที่ชื่อ<br> </font></td> </tr> </table> <?php } else { echo"<meta http-equiv=\"refresh\" content=\"3;URL=../login.php\">\n"; echo"Please Login "; } ?>
|