File Manager
Back to List
| Current Directory: ~/
Editing: edit_thesis_stu_form.asp
Full path: C:\ict\ICT\edit_thesis_stu_form.asp
Permissions: rwx
Write test: File appears not directly writable
Current process identity: IIS APPPOOL\DefaultAppPool
<!--#include file="chk_permission.asp"--> <!--#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.advisor_name.value == "" ) { alert("��سҡ�͡���ͷ���֡����¹͡") document.form1.advisor_name.focus() return false; } } function clearText(thefield){ if (thefield.defaultValue==thefield.value) thefield.value = "" } </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"> <link type="text/css" href="css/ui-lightness/jquery-ui-1.8.10.custom.css" rel="stylesheet" /> <script type="text/javascript" src="js/jquery-1.4.4.min.js"></script> <script type="text/javascript" src="js/jquery-ui-1.8.10.offset.datepicker.min.js"></script> <script type="text/javascript"> $(function () { var d = new Date(); var toDay = d.getDate() + '/' + (d.getMonth() + 1) + '/' + (d.getFullYear() + 543); // �óյ�ͧ�����軯ԷԹŧ��ҡ���� 1 �ѹ���˹�� ����������� Code ����÷Ѵ��ҹ��ҧ���¤�Ѻ (1 �ش = 1 ��ԷԹ) $("#datepicker-th").datepicker({ dateFormat: 'dd/mm/yy', isBuddhist: true, defaultDate: toDay, dayNames: ['�ҷԵ��', '�ѹ���', '�ѧ���', '�ظ', '����ʺ��', '�ء��', '�����'], dayNamesMin: ['��.','�.','�.','�.','��.','�.','�.'], monthNames: ['���Ҥ�','����Ҿѹ��','�չҤ�','����¹','����Ҥ�','�Զع�¹','�á�Ҥ�','�ԧ�Ҥ�','�ѹ��¹','���Ҥ�','��Ȩԡ�¹','�ѹ�Ҥ�'], monthNamesShort: ['�.�.','�.�.','��.�.','��.�.','�.�.','��.�.','�.�.','�.�.','�.�.','�.�.','�.�.','�.�.']}); $("#datepicker-th-2").datepicker({ changeMonth: true, changeYear: true,dateFormat: 'dd/mm/yy', isBuddhist: true, defaultDate: toDay,dayNames: ['�ҷԵ��','�ѹ���','�ѧ���','�ظ','����ʺ��','�ء��','�����'], dayNamesMin: ['��.','�.','�.','�.','��.','�.','�.'], monthNames: ['���Ҥ�','����Ҿѹ��','�չҤ�','����¹','����Ҥ�','�Զع�¹','�á�Ҥ�','�ԧ�Ҥ�','�ѹ��¹','���Ҥ�','��Ȩԡ�¹','�ѹ�Ҥ�'], monthNamesShort: ['�.�.','�.�.','��.�.','��.�.','�.�.','��.�.','�.�.','�.�.','�.�.','�.�.','�.�.','�.�.']}); $("#datepicker-en").datepicker({ dateFormat: 'dd/mm/yy'}); $("#inline").datepicker({ dateFormat: 'dd/mm/yy', inline: true }); }); </script> </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 border="0" cellspacing="0" align=center width=100%> <% '***************************************************************** session("tb_name")="thesis" %> <% '***************************************************************** ' if session("tb_preview") <> 1 or session("tb_edit")=2 then '���Է��� �����㹰ҹ ��� ����Ңͧ�������ͧ pern=session("username") per="2" tb="student" sqlnc="select * from tb_permission where id_staff='"&pern&"' and tb_edit='"&per&"' and tb_name='"&tb&"'" set orsnc=server.createobject("adodb.recordset") orsnc.open sqlnc,conn,1,3 'if not orsnc.eof then ' response.write pern&"=username" ' end if %> <tr><td colspan=7><strong><div align=center><br>��ԭ�ҹԾ��������<br> <tr><td colspan=7> <% id_stu=request("id_stu") if id_stu="" then id_stu=session("id_stu1") end if sqls="select * from student where id_stu='"&id_stu&"'" set orss=server.createobject("adodb.recordset") orss.open sqls,conn,1,3 if not orss.eof then response.write orss("id_stu")&"<strong> <a href=detail_stu.asp?id_stu="&orss("id_stu")&">"&orss("name_stu")&" "&orss("sur_stu")&"</a></strong> " set ors4=server.createobject("adodb.recordset") sql4="select * from student_group where id_stugroup='"&orss("id_stugroup")&"'" ors4.open sql4,Conn,1,3 if not ors4.eof then sqlc="select * from curriculum where id_curriculum='"&ors4("id_curriculum")&"'" set orsc=server.createobject("adodb.recordset") orsc.open sqlc,conn,1,3 if not orsc.eof then sqlt="select * from type_curriculum where id_type_curri='"&ors4("id_type_curri")&"'" set orst=server.createobject("adodb.recordset") orst.open sqlt,conn,1,3 if not orst.eof then 'response.write ors4("id_stugroup") %> <% =orsc("curriculum_sum")%> Ẻ <%=orst("type_curri_th")%> ��� <%=ors4("no_stugroup")%> <% end if end if end if if not orsnc.eof then 'response.write pern 'response.write " [<a href=add_thesis_stu_form.asp?id_stu="&orss("id_stu")&"><strong>������ԭ�ҹԾ���</a>]<br><br>" end if '��Ǩ�ͺ����繹��Ե����ѧ���¹��診 �������Ңͧ������ if id_stu=orss("id_stu") then if orss("id_status_edu")=1 then response.write " [<a href=add_thesis_stu_form.asp?id_stu="&orss("id_stu")&"><strong>������ԭ�ҹԾ���</a>]<br><br>" end if end if 'response.write id_stu&"aa" %> <!-- '�Ҩ�������֡��/////////////////////////////--> <table width=100%> <tr> <td colspan="8" bgcolor="#e0a8fd"><div align="left"><strong>�Ҩ����Ǻ�����ԭ�ҹԾ���</div></td> </tr> <tr bgcolor=#FFFFCC> <td><div align="center"><strong></strong>���</div></td> <td><div align="center"><strong></strong>���˹�</div></td> <td ><div align="left"><strong>����-ʡ��(����)</strong></div></td> <td ><div align="left"><strong>����-ʡ��(��¹͡)</strong></div></td> <td ><div align="left"><strong>�Ţ�������</strong></div></td> <td ><div align="left"><strong>����� �ѹ-��-��</strong></div></td> <td ><div align="left"><strong>�Ҥ���¹ �ա�/���</strong></div></td> <td ><div align="left"><strong>Action</strong></div></td> </tr> <% sqla="select * from advisor_thesis where id_stu='"&id_stu&"' order by id_num" ' sqla="select * from advisor_thesis where id_thesis='"&id_thesis&"' order by id_num" set orsa=server.createobject("adodb.recordset") orsa.open sqla,conn,1,3 if not orsa.eof then idn=0 orsa.movefirst ' id_thesis=orsa("id_thesis") do while not orsa.eof response.write "<tr><td>"&orsa("id_num") sqlp="select * from position_advice where id_position='"&orsa("id_position_thesis")&"'" set orsp=server.createobject("adodb.recordset") orsp.open sqlp,conn,1,3 if not orsp.eof then response.write "<td >"&orsp("position_advice") end if sqll="select * from lecturer where id_lecturer='"&orsa("id_lecturer")&"' " set orsl=server.createobject("adodb.recordset") orsl.open sqll,conn,1,3 if not orsl.eof then response.write "<td>"&orsl("name_lec")&" "&orsl("sur_lec") end if response.write "<td >"&orsa("advisor_out") response.write "<td>"&orsa("command_no") response.write "<td>"&orsa("command_date") response.write "/"&orsa("command_month") response.write "/"&orsa("command_year") response.write "<td>"&orsa("command_sem") if not orsnc.eof or id_stu=session("id_stu1") then %> <td>[<a href=del_advisor_thesis.asp?id_lecturer=<%=orsa("id_lecturer")&"&id_thesis="&id_thesis&"&id_stu="&id_stu&"&crd=1"%> onclick="return confirm('�س�����Ҩ�ź?');">Del</a>] <%'=orsa("id_thesis")%><%'response.write "555"%> <% if orsa("id_thesis")="-" then %> [<a href=confirm_advisor_thesis.asp?id_lecturer=<%=orsa("id_lecturer")&"&id_thesis="&id_thesis&"&id_stu="&id_stu&"&id_num="&orsa("id_num")%> >Confirm</a>] <% end if %> <% end if response.write "</tr>" idn=orsa("id_num") orsa.movenext loop else response.write "<tr><td colspan=4>No Advisor</tr>" idn=0 end if 'response.write "<tr><td>a<td>a" %> <% '///////////////// if id_stu=orss("id_stu") then if 1=orss("id_status_edu") then chk_stu_edit=1 end if end if '/////////////////// ''if not orsnc.eof or chk_stu_edit=1 then%> <!--<form name="form1" method="post" action="add_advisor_thesis.asp" onsubmit="return doSubmit();"> <tr > <td > <% if idn=0 then idn=1 else idn=idn+1 end if %> <INPUT TYPE="text" size= "1" NAME="id_num" value=<%=idn%> readonly>--><!-- ��������ӴѺ��� --> <!-- <td> <select name="id_position_thesis"> <% 'sqlpo="select * from position_advice" 'set orspo=server.createobject("adodb.recordset") 'orspo.open sqlpo,conn,1,3 'if not orspo.eof then 'orspo.movefirst 'do while not orspo.eof 'response.write "<option 'value="&orspo("id_position")&">"&orspo("position_advice")&"</option>" 'orspo.movenext 'loop 'end if %> </select> <td> <select name="id_lecturer"> <% sqlle="select * from lecturer where id_status_lec=1 order by name_lec" set orsle=server.createobject("adodb.recordset") orsle.open sqlle,conn,1,3 if not orsle.eof then orsle.movefirst do while not orsle.eof response.write "<option value="&orsle("id_lecturer")&">"&orsle("name_lec")&" "&orsle("sur_lec")&"</option>" orsle.movenext loop end if %> </select> <td><INPUT TYPE="text" NAME="advisor_name" value="-" onfocus="clearText(this)" size=40>--> <!--<td><INPUT TYPE="text" NAME="command_no" size=10 value="�Ţ���/��" onfocus="clearText(this)"> <td> <input type="text" size="15" id="datepicker-th" name="date0" value="dd/mm/yyyy" onfocus="clearText(this)"/> Ẻ�� �.�. ����ö���͡��/���� : <input type="text" size="10" id="datepicker-th-2" name="date1" /> </td> <input type="hidden" name="id_stu" value=<%=id_stu%>> <input type="hidden" name="codredirect" value="1"> <input type="hidden" name="id_thesis" value=<%=id_thesis%>> <td><input type="submit" name="Submit" value="Add"><tr><td colspan=7>�. ��¹͡������͡�� ARR ���������� �.��ҹ���</td></tr> </form>--><%'end if%> </table> <!-- ���Ҩ�������֡��//////////////////////////////// --> <%'�ѹ�֡�Ţ������� 'response.write "<form action=add_command_advisor_thesis.asp method=post>" 'response.write "<input type=hidden name=id_stu value="&id_stu&">" 'response.write "<input type=submit name=Submit value=�Ţ�������>" 'response.write "</form>" %> <% sqlt="select * from thesis where id_stu='"&orss("id_stu")&"'" set orst=server.createobject("adodb.recordset") orst.open sqlt,conn,1,3 if not orst.eof then response.write "<tr bgcolor=#E1E1E1><td><strong>���ʻ�ԭ�ҹԾ���<td><strong>���ͻ�ԭ�ҹԾ��� </strong><td><strong>�����Ԫ�<td><strong>�ա���֡��" orst.movefirst do while not orst.eof '����ջ�ԭ�ҹԾ��� response.write "<tr >" response.write "<td>"&orst("id_thesis") response.write "<td width='50%'>-"&orst("thesis_th")&"<br><li>"&orst("thesis_eng") response.write "<td>"&orst("id_course") response.write "<td>"&orst("id_academic_semeter")&"/"&orst("academic_year") Response.write "<tr><td colspan=4 align=right><table><tr bgcolor=#ffffcc>" 'Response.write response.write "<td>[<a href=add_advisor_thesis_form.asp?id_thesis="&orst("id_thesis")&"&id_stu="&orst("id_stu")&">��������´</a>]" response.write "<td>[<a href=reserve_room_test_form.asp?id_thesis="&orst("id_thesis")&"&id_stu="&orst("id_stu")&">�ͧ��ͧ�ͺ</a>]" 'response.write "[<a href=reserve_room_test_print.asp?id_thesis="&orst("id_thesis")&"&id_stu="&orst("id_stu")&">�����</a>]" 'response.write "<td>[<a href=thesis_progress_student.asp?id_thesis="&orst("id_thesis")&"&id_stu="&orst("id_stu")&">��§ҹ��������˹��</a>]" response.write "<td>" if id_stu=orss("id_stu") then if orss("id_status_edu")=1 then response.write "[<a href=edit_thesis_form.asp?id_thesis="&orst("id_thesis")&"&id_stu="&orss("id_stu")&">��䢪��ͻ�ԭ�ҹԾ���</a>]"%> <form name="form13" method="post" action="edit_thesis_form.asp"> <input type="hidden" name="id_thesis" value=<%=orst("id_thesis")%>> <input type="hidden" name="id_stu" value=<%=orss("id_stu")%>> <div class="col-xs-12"> <button class="btn-oth" type="submit" role="button" style="margin-right:20px;">��䢢����Ż�ԭ�ҹԾ���</button></div> </form> <% end if end if if not orsnc.eof then response.write "<td>" 'response.write pern response.write "[ <a href=edit_thesis_form.asp?id_thesis="&orst("id_thesis")&"&id_stu="&orss("id_stu")&">Edit</a> ]" %> [ <a href=del_thesis.asp?id_thesis=<%=orst("id_thesis")%>&id_stu=<%=orst("id_stu")%> onClick="return confirm('�س�����Ҩ�ź ?');">Del </a> ] <% end If %></table> <% orst.movenext loop else response.write "<tr><td colspan=5>No Thesis" end if '��иҹ�Ǻ����ի�� %> <% end if '��Ǩ�ͺ�����բ����Ź��Ե�������� %> <% 'else '���Է� 'response.write "<tr><td colspan=3><center>�س������Է����� �س���ѵԹ��" 'response.write "<meta http-equiv=refresh content =3;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>