Viewing file: AddHealthData.php (6.51 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php include("../../../include/FunctionDB.php"); include("../../../include/Function.php"); ConnectDB(); $sql ="Select * From student_tb Where Student_id='$Student_id' "; $result = mysql_query($sql) or die("Error".mysql_error()); $rs = mysql_fetch_array($result); ?> <html> <head> <title>Add Student's Heatth</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-874"> <link href="../../../css/style1.css" rel="stylesheet" type="text/css"> </head>
<body bgcolor="#FFFFFF"> <font face="Tahoma, MS Sans Serif"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="416" colspan="2"> <form name="form1" method="post" action="InsertHealth.php"> <table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#99CCFF"> <tr bgcolor="#D7EABD"> <td height="25" colspan="3"> <div align="center"><strong><font color="#003366" size="4" face="Tahoma">เพิ่มข้อมูลสุขภาพนักศึกษา </font></strong></div></td> </tr> <tr> <td width="27%" bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma, MS Sans Serif">ชื่อ-นามสกุล</font></div></td> <td width="3%" bgcolor="#EEEEEE"> </td> <td width="70%" bgcolor="#EEEEEE"><strong><font size="2" face="Tahoma"><? echo $rs[First_name]?> <? echo $rs[Name]?> <? echo $rs[Lastname]?></font></strong></td> </tr> <tr> <td bgcolor="#EEEEEE"><div align="center"><font color="#000000" size="2" face="Tahoma">น้ำหนัก</font></div></td> <td bgcolor="#EEEEEE"><div align="center"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></div></td> <td bgcolor="#EEEEEE"><input name="Weight" type="text" id="Weight" size="5"> <font size="2" face="Tahoma, MS Sans Serif">ส่วนสูง <input name="Height" type="text" id="Height2" size="5"> </font></td> </tr> <tr> <td bgcolor="#EEEEEE"> <div align="center"><font size="2" face="Tahoma">วันที่บันทึก</font></div></td> <td bgcolor="#EEEEEE"><div align="center"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></div></td> <td bgcolor="#EEEEEE"><font color="#000000" size="2" face="Tahoma">วันที่ <select name="mDate" id="mDate" class="select" > <? getDay1to31();?> </select> เดือน <select name="mMonth" id="mMonth" class="select" > <? getThaiMonth();?> </select> ปี พ.ศ. <input name="mYear" type="text" id="mYear" size="10" class="input1" > </font></td> </tr> <tr> <td bgcolor="#EEEEEE"> <div align="center"><font size="2" face="Tahoma, MS Sans Serif">กรุ๊ปเลือด</font></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="B_group" value="A"> A <input type="radio" name="B_group" value="B"> B <input type="radio" name="B_group" value="AB"> AB <input type="radio" name="B_group" value="O"> O </font> </td> </tr> <tr> <td bgcolor="#EEEEEE"> <div align="center"><font size="2" face="Tahoma, MS Sans Serif">ความดัน</font></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"> <input name="Presure" type="text" id="Presure" size="20"> </font></td> </tr> <tr> <td bgcolor="#EEEEEE"> <div align="center"><font size="2" face="Tahoma, MS Sans Serif">โรคประจำตัว</font></div></td> <td nowrap bordercolor="#CCCCCC" bgcolor="#EEEEEE"> </td> <td nowrap bordercolor="#CCCCCC" bgcolor="#EEEEEE"><textarea name="Disease" cols="40" rows="3" id="Disease"></textarea></td> </tr> <tr bordercolor="#CCCCCC"> <td nowrap bordercolor="#CCCCCC" bgcolor="#EEEEEE"> <div align="center"><font color="#000000" size="2" face="Tahoma">อาการ</font></div></td> <td bordercolor="#CCCCCC" bgcolor="#EEEEEE"> </td> <td nowrap bordercolor="#CCCCCC" bgcolor="#EEEEEE"><font size="2" face="Tahoma"> <textarea name="Symptom" cols="40" rows="5" id="Symptom"></textarea> </font></td> </tr> <tr> <td bgcolor="#EEEEEE"> <div align="center"><font size="2" face="Tahoma, MS Sans Serif">การรักษา</font></div></td> <td bgcolor="#EEEEEE"> </td> <td bgcolor="#EEEEEE"> <textarea name="Treat" cols="40" rows="5" id="Treat"></textarea></td> </tr> <tr> <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma">ยาที่ได้รับ</font></div></td> <td bgcolor="#EEEEEE"> </td> <td bgcolor="#EEEEEE"><textarea name="Medicine" cols="40" rows="3" id="textarea3"></textarea></td> </tr> <tr> <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma">อาการแพ้ยา</font></div></td> <td bgcolor="#EEEEEE"> </td> <td bgcolor="#EEEEEE"><textarea name="Bad_Medic" cols="40" rows="3" id="textarea4"></textarea></td> </tr> <tr> <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma">อาการแพ้อาหาร</font></div></td> <td bgcolor="#EEEEEE"> </td> <td bgcolor="#EEEEEE"><textarea name="Bad_Food" cols="40" rows="3" id="textarea5"></textarea></td> </tr> <tr> <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma">สถานที่รักษา</font></div></td> <td bgcolor="#EEEEEE"> </td> <td bgcolor="#EEEEEE"><input name="Place_Treat" type="text" id="Place_Treat" size="60"></td> </tr> <tr bgcolor="#D7EABD"> <td colspan="3"> <div align="center"> <input type="hidden" name="Student_id" value="<? echo $rs[Student_id]?>"> <input type="submit" name="Submit" value=" เพิ่ม "> </div></td> </tr> </table> </form></td> </tr> </table> </font> </body> </html>
|