File Manager
Back to List
| Current Directory: ~/
Editing: add_index_thesis_form.asp.bak
Full path: C:\ict\ICT\add_index_thesis_form.asp.bak
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.form3.expect_result.value == "" ) { alert("��سҡ�͡���Ѿ�����ͧ��ú����") document.form3.expect_result.focus() return false; } if( document.form3.activity_name.value == "" ) { alert("��سҡ�͡�Ԩ��������ͧ��") document.form3.activity_name.focus() return false; } if( document.form3.id_progress_report.value == "00" ) { alert("��س����͡�ա���֡��") document.form3.id_progress_report.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 rel="stylesheet" href="./css/icomoon.css"> <link rel="stylesheet" href="./css/style.css"> <link href="image/favicon.ico" rel="shortcut icon" type="image/x-icon"> <link href="image/favicon.ico" rel="shortcut icon" type="image/x-icon"> <link href="./css/bootstrap.min.css" rel="stylesheet"> <link href="./css/templatemo-style.css" rel="stylesheet"> </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" %> <% id_stu=request("id_stu") 'response.write session("id_stu1") &"aaa" 'response.write "bbb"&id_stu '***************************************************************** 'if session("tb_preview") =2 or session("id_stu1") = id_stu 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 %> <div align="left"> <%'if session("tb_edit") = 2 then %> <%'end if%><br> <table border="0" align="center" cellpadding="0" cellspacing="0" width="100%"> <tr > <td> <table border=0 width="100%"> <% id_stu=request("id_stu") if id_stu="" then id_stu=session("id_stu1") end If sql_data="select * from student where id_stu='"&id_stu&"' " set ors_data=server.createobject("adodb.recordset") ors_data.open sql_data,conn,1,3 if not ors_data.eof then %> <tr> <td colspan=3> <div class="col-1"> <div class="templatemo-content-widget white-bg"> <div class="media"> </div> <div class="media-body"> <h2 class="media-heading text-uppercase"><%=id_stu%>  <%=ors_data("name_stu")%>   <%=ors_data("sur_stu")%> (<%=ors_data("name_eng")%>  <%=ors_data("sur_eng")%>)</h2><p> <% id_status_edu=ors_data("id_status_edu") set ors3=server.createobject("adodb.recordset") sql3="select * from status_edu where id_status_edu='"&id_status_edu&"'" ors3.open sql3,Conn,1,3 if not ors3.eof then response.write ors3("status_edu") end if %> <% id_stugroup=ors_data("id_stugroup") sql_all="select * from student_group where id_stugroup='"&ors_data("id_stugroup")&"' " set ors_all=server.createobject("adodb.recordset") ors_all.open sql_all,Conn,1,3 if not ors_all.eof Then id_curriculum=ors_all("id_curriculum") id_type_curri=ors_all("id_type_curri") id_major=ors_all("id_major") response.write "" sql_curri="select * from curriculum where id_curriculum='"&ors_all("id_curriculum")&"'" set ors_curri=server.createobject("adodb.recordset") ors_curri.open sql_curri,conn,1,3 if not ors_curri.eof then response.write ors_curri("curriculum_full")&" " end if sqlt="select * from type_curriculum where id_type_curri='"&ors_all("id_type_curri")&"'" set orst=server.createobject("adodb.recordset") orst.open sqlt,conn,1,3 if not orst.eof Then response.write orst("type_curri_th") end if response.write " ��� "&ors_all("no_stugroup")&" " id_major=ors_all("id_major") sql_major="select * from major where id_major='"&id_major&"'" set ors_major=server.createobject("adodb.recordset") ors_major.open sql_major,conn,1,3 if not ors_major.eof then response.write ors_major("major_th") end if end if %> </td></tr> <% response.write "<tr >" '���ͻ�ԭ�ҹԾ��� id_thesis=request.form("id") sqlt="select * from thesis where id_thesis='"&id_thesis&"'" set orst=server.createobject("adodb.recordset") orst.open sqlt,conn,1,3 if not orst.eof then 'response.write "<td>"&orst("id_thesis") 'response.write "<td><strong>���ͻ�ԭ�ҹԾ���::<strong>"&orst("thesis_th")&"<br>Thesis name::"&orst("thesis_eng") Else 'response.write "<td>����բ�����"&id_thesis End if %> <tr><td align=right> <form name="form12" method="post" action="thesis_progress_student.asp"> <input type="hidden" name="id_thesis" value=<%=id_thesis%>> <input type="hidden" name="id_stu" value=<%=id_stu%>> <div class="col-xs-12"> <button class="btn-oth" type="submit" role="button" style="margin-left:10px;">��Ѻ˹����§ҹ��������˹��</button></div> </form> </td></tr> </table> <div class="templatemo-content-widget orange-bg"> <div class="media"> <div class="media-body"> <h2 class="media-heading text-uppercase">����Ἱ������¹/�ӻ�ԭ�ҹԾ���</h2> </div> </div> </div> <tr ><td > <form name="form3" method="post" action="add_thesis_progress_student.asp" onsubmit="return doSubmit()"> <div class="table-responsive"> <table class="table table-striped table-bordered"> <tr ><td align=right width=20%>���Ѿ�����ͧ��ú����<font color="#ff0000">*</font><td align=left><textarea rows="4" cols="50" name="expect_result" style="font-size:16px"></textarea><td><strong>�Ƿҧ��úѹ�֡������</strong><br>1. �ѹ�֡ (Save) ���� 1 ���Ѿ�� <br>2. �ҡ��ͧ����������÷Ѵ���������� <br> <tr><td align=right>�Ԩ��������ͧ��<font color="#ff0000">*</font><td align=left><textarea rows="4" cols="50" name="activity_name" style="font-size:16px"></textarea> <tr ><td align=right>���͡�ͺ�����<font color="#ff0000">*</font> <td> <% '���ѹ��� date1=datepart("d",date) month1=month(now()) y=year(now()) y=543+y y=right(y,2) if date1=1 then date1="01" elseif date1=2 then date1="02" elseif date1=3 then date1="03" elseif date1=4 then date1="04" elseif date1=5 then date1="05" elseif date1=6 then date1="06" elseif date1=7 then date1="07" elseif date1=8 then date1="08" elseif date1=9 then date1="09" end if if month1=1 then month1="01" elseif month1=2 then month1="02" elseif month1=3 then month1="03" elseif month1=4 then month1="04" elseif month1=5 then month1="05" elseif month1=6 then month1="06" elseif month1=7 then month1="07" elseif month1=8 then month1="08" elseif month1=9 then month1="09" end if dateend=y&""&month1&""&date1 '���ѹ��� sql_round="select * from progress_report_thesis where id_curriculum='"&id_curriculum&"' and id_type_curri='"&id_type_curri&"' and id_major='"&id_major&"' and dateend >='"&dateend&"'order by year_edu, semeter" Set ors_round=server.createobject("adodb.recordset") ors_round.open sql_round,conn,1,3 'Response.write sql_round If Not ors_round.eof Then %> <select name="id_progress_report" id="id_progress_report" style="font-size:16px"> <option value="00">��س����͡ �Ҥ/�ա���֡��</option> <% ors_round.movefirst 'Response.write ors_round("id_progress_report") do while not ors_round.eof sql_o_po="select * from curriculum where id_curriculum='"&ors_round("id_curriculum")&"'" set ors_o_po=server.createobject("adodb.recordset") Response.write sql_o_po ors_o_po.open sql_o_po,conn,1,3 If Not ors_o_po.eof then curriculum_sum= ors_o_po("curriculum_sum") Else curriculum_sum= "-/" End if set ors_tc=server.createobject("adodb.recordset") sqlmark_tc="select * from type_curriculum where id_type_curri='"&ors_round("id_type_curri")&"'" ors_tc.open sqlmark_tc,Conn,1,3 If Not ors_tc.eof then type_curri_th=ors_tc("type_curri_th") Else type_curri_th= "-/" End if sql_sta="select * from major where id_major='"&ors_round("id_major")&"'" set ors_sta=server.createobject("adodb.recordset") ors_sta.open sql_sta,conn,1,3 If Not ors_sta.eof then major_name=ors_sta("major_name") End if %> <option value=<%=ors_round("id_progress_report")%>>������ <%'=curriculum_sum%> <%'=type_curri_th%> <%'=major_name%> <%=ors_round("semeter")%>/<%=ors_round("year_edu")%> ��ǧ�ѹ��� <% Response.write ors_round("date_begin")&"/"&ors_round("month_begin")&"/"&ors_round("year_begin")&"-"&ors_round("date_end")&"/"&ors_round("month_end")&"/"&ors_round("year_end") %> </option> <%'=ors_round("id_progress_report")%>><%'=curriculum_sum%> <%'=type_curri_th%> (<%'=major_name%>) <% ors_round.movenext loop %> </select> <% End if %> <tr><td><td> <input type="hidden" name="id" value=<%=id_thesis%>> <input type="hidden" name="id_stu" value=<%=id_stu%>> <div class="col-xs-12"> <button class="btn-oth" type="submit" role="button" style="margin-left:10px;" >Save</button> <!--<input type="submit" name="Submit" value="Submit" onmousedown="doSubmit();"> --> <button class="btn-oth" type="reset" name="Submit2" value="Reset">Reset</button></div> </table> </form> </table> <% end if %> </div></td> </tr> </table> <% 'else '���Է� 'response.write "<tr><td colspan=3><center>�س������Է����� �س���ѵԹ��" 'response.write "<meta http-equiv=refresh content =3;url=javascript:history.back();>" '���Է� 'end if '���Է� %> <!-- 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>