File Manager
Back to List
| Current Directory: ~/
Editing: add_stugroup_form.asp
Full path: C:\ict\ICT\add_stugroup_form.asp
Permissions: rwx
Write test: File appears not directly writable
Current process identity: IIS APPPOOL\DefaultAppPool
<!--#include file="inc_cache_control.asp"--> <!--#include file="inc_access_control.asp"--> <!--#include file="chk_login.asp"--> <script language="javascript"> function doSubmit() { if( document.form1.id_stu.value == "" ) { alert("��سҡ�͡���ʻ�Шӵ��") document.form1.id_stu.focus() return false; } if( document.form1.name_stu.value == "" ) { alert("��سҡ�͡����") document.form1.name_stu.focus() return false; } if( document.form1.sur_stu.value == "" ) { alert("��سҡ�͡���ʡ��") document.form1.sur_stu.focus() return false; } if( document.form1.date0.value == "" ) { alert("��سҡ�͡�ѹ�����Դ") document.form1.date0.focus() return false; } if( document.form1.nickname.value == "" ) { alert("��سҡ�͡�������") document.form1.nickname.focus() return false; } } </script> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><!-- InstanceBegin template="/Templates/ict.dwt" codeOutsideHTMLIsLocked="false" --> <head> <!-- InstanceBeginEditable name="doctitle" --> <title>�к����ʹ�����͡�ú�����</title> <!-- InstanceEndEditable --> <meta http-equiv="Content-Type" content="text/html; charset=windows-874"> <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable --> <link href="bsri2006.css" rel="stylesheet" type="text/css"> <link href="image/favicon.ico" rel="shortcut icon" type="image/x-icon"> </head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <table width="100%" border="0"> <tr> <td colspan="2"><div align="right"><img src="Image/head1.gif" width="800" height="61"></div></td> </tr> <tr> <td colspan="2" background="Image/bghead1.gif"><div align="right"><font size="2" face="MS Sans Serif, Tahoma, sans-serif"><strong>| <a href="http://www.swu.ac.th" target=_blank>SWU</a> | <a href="http://bsri.swu.ac.th" target=_blank>BSRI</a> |<a href="chaPW.asp"><strong>Change Password</strong></a>|<a href="log_out.asp">Log Out </a></strong></font>|</div></td> </tr> <tr> <td width="20%" align="left" valign="top" bgcolor="#FFCCCC"><!-- InstanceBeginEditable name="EditRegion5" --><!--#include file="chk_menu.asp"--><!-- InstanceEndEditable --></td> <td width="77%" align="left" valign="top"><!-- InstanceBeginEditable name="EditRegion3" --> <table width="100%" border="0" cellspacing="0"> <tr> <td width="892" align="left" valign="top"> <% '***************************************************************** session("tb_name")="student" %> <!--#include file="chk_permission.asp"--> <% '***************************************************************** if session("tb_preview") <> 1 and session("tb_edit")<>1 then '���Է��� �����㹰ҹ ��� ����Ңͧ�������ͧ %> <div align="center"><br> <form name="form1" method="post" action="add_student_group.asp"> <strong>+������ª����Ե��ҡ����+</strong> <% id_stugroup=request("id_stugroup") session("id_stugroup")=id_stugroup sql_group="select * from student_group where id_stugroup='"&id_stugroup&"' order by id_curriculum" set ors_group=server.createobject("adodb.recordset") ors_group.open sql_group,conn,1,3 ors_group.movefirst 'do while not ors_group.eof %> <table width="75%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td colspan="2"><p>��������´���>><strong>��ѡ�ٵ� <% 'response.write ors_group("id_curriculum") id_curriculum=ors_group("id_curriculum") 'response.write id_curriculum sql_curri="select * from curriculum where id_curriculum='"&id_curriculum&"'" set ors_curri=server.createobject("adodb.recordset") ors_curri.open sql_curri,conn,1,3 response.write ors_curri("curriculum_full")&" " %> <strong>Ẻ <% id_type_curriculum=ors_group("id_type_curri") set ors_tc=server.createobject("adodb.recordset") sqlmark_tc="select * from type_curriculum where id_type_curri='"&id_type_curriculum&"'" ors_tc.open sqlmark_tc,Conn,1,3 response.write ors_tc("type_curri_th") %> <strong>��蹷�� <% response.write ors_group("no_stugroup") %> </div> <strong>�Ң� <% id_major=ors_group("id_major") set ors5=server.createobject("adodb.recordset") sql5="select * from major where id_major='"&id_major&"'" ors5.open sql5,Conn,1,3 ors5.movefirst response.write ors5("major_th") %></p> </td> </tr> <tr> <td height="20"><div align="right">���ʻ�Шӵ��</div></td> <td> <input type="text" name="id_stu" onkeypress='if (event.keyCode < 46 || event.keyCode >57 ) event.returnValue=false;'></td> </tr> <tr> <td><div align="right">���˹觷ҧ������</div></td> <td> <select name="id_administor"> <% set ors1=server.createobject("adodb.recordset") sql="select * from administrator_position" ors1.open sql,Conn,1,3 ors1.movefirst do while not ors1.eof response.write "<option value="&ors1("id_administor")&">"&ors1("administor")&"</option>" ors1.movenext loop %> </select> <tr> <td><div align="right">���˹觷ҧ�Ԫҡ��</div></td> <td> <select name="academic"> <% set ors=server.createobject("adodb.recordset") sqlmark="select * from academic_position" ors.open sqlmark,Conn,1,3 ors.movefirst do while not ors.eof response.write "<option value="&ors("id_academic")&">"&ors("academic")&"("&ors("academic_sum")&")</option>" ors.movenext loop %> </select> </tr> <tr> <td><div align="right">���˹���� �</div></td> <td> <input name="other_position" > <% ' set ors_o=server.createobject("adodb.recordset") ' sqlmark_o="select * from other_position" ' ors_o.open sqlmark_o,Conn,1,3 'ors_o.movefirst 'do while not ors_o.eof ' response.write "<option value="&ors_o("id_other_position")&">"&ors_o("other_position")&"("&ors_o("other_position_eng")&")</option>" ' ors_o.movenext ' loop %> </input> </tr> <tr> <td><div align="right">�ӹ�˹��</div></td> <td> <select name="preface"> <% set ors2=server.createobject("adodb.recordset") sql2="select * from preface" ors2.open sql2,Conn,1,3 ors2.movefirst do while not ors2.eof response.write "<option value="&ors2("id_preface")&">"&ors2("preface")&"</option>" ors2.movenext loop %> </select> </td> </tr> <tr> <td><div align="right">����</div></td> <td><input type="text" name="name_stu"> </td> </tr> <tr> <td><div align="right">���ʡ��</div></td> <td><input type="text" name="sur_stu"> </td> </tr> <tr> <td align=right>�ѹ���շ���Դ <td ><input type="text" size="15" id="datepicker-th" name="date0" /></td> </tr> <tr> <td><div align="right">ʶҹ�Ҿ</div></td> <td> <select name="id_status_edu"> <% set ors3=server.createobject("adodb.recordset") sql3="select * from status_edu" ors3.open sql3,Conn,1,3 ors3.movefirst do while not ors3.eof response.write "<option value="&ors3("id_status_edu")&">"&ors3("status_edu")&"</option>" ors3.movenext loop %> </select> </tr> <tr> <td><div align="right">�������</div></td> <td><input type="text" name="nickname"></tr> <tr> <td> </td> <td><input type="submit" name="Submit" value="Submit" onmousedown="doSubmit();"> <input type="reset" name="Submit2" value="Reset"></td> </tr> </form> </div> </td> </tr></table> <% else '���Է� response.write "<tr><td colspan=3><center>�س������Է����� �س���ѵԹ��" response.write "<meta http-equiv=refresh content =4;url=javascript:history.back();>" '���Է� end if '���Է� %> </table> <!-- InstanceEndEditable --></td> </tr> <tr> <td colspan="2" background="Image/bghead1.gif">Contact Admin:: wassanaw@swu.ac.th tel.02-649-5000 ext 17600</td> </tr> </table> </body> <!-- InstanceEnd --></html>