File Manager
Back to List
| Current Directory: ~/
Editing: edit_thesis_progress_student_form.asp
Full path: C:\ict\ICT\edit_thesis_progress_student_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> function doSubmit() { if( document.form3.activity_problem.value == "" ) { alert("��سҡ�͡�ѭ�Ҩҡ��÷ӡԨ����") document.form3.activity_problem.focus() return false; } if( document.form3.id_activity_r.value == "" ) { alert("��سҡ�͡�ѭ�Ҩҡ��÷ӡԨ����") document.form3.id_activity_r.focus() return false; } } </script> <script src="ckeditor/ckeditor.js" type="text/javascript"></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="./css/font-awesome.min.css" rel="stylesheet"> <link href="./css/bootstrap.min.css" rel="stylesheet"> <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" %> <% id_activity=request.form("id_activity") 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"> <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 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 id_curriculum=ors_all("id_curriculum") 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 id_type_curri=orst("id_type_curri") 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 >" '���ͻ�ԭ�ҹԾ��� 'Response.write "���ʡԨ����"&id_activity 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-right:20px;">��Ѻ˹����§ҹ��������˹��</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="save_thesis_progress_student.asp" onsubmit="return doSubmit()"> <% sql_ac="select * from thesis_plan_activity where id_activity='"&id_activity&"'" Set ors_ac=server.createobject("adodb.recordset") ors_ac.open sql_ac,conn,1,3 if not ors_ac.eof Then Set ors_table=server.createobject("adodb.recordset") sql_table="select * from rp_table where id_table='"&ors_ac("id_table")&"'" ors_table.open sql_table,conn,1,3 If Not ors_table.eof Then rp_table_name=ors_table("table_sum") Else rp_table_name="�͡�èѴ�����" End if Response.write ors_ac("id_activity") %> <div class="table-responsive"> <table class="table table-striped table-bordered"> <tr><td align=left width=20%>���Ѿ�����ͧ��ú����<td align=left><%=rp_table_name%><!--<textarea rows="4" cols="100" name="expect_result" style="font-size:16px" readonly><%=ors_ac("expect_result")%></textarea>--> <tr><td align=left>�Ԩ��������ͧ��<td> <select name="id_activity_r" id="select2" style="font-size:16px"> <!--<option value="00">��س����͡�Ԩ�������з�</option>--> <% 'sqlrpl="select * from rp_activity_relate where id_activity_r='"&ors_ac("id_activity_r")&"'" sqlrpl="select * from rp_activity_relate where id_table="&ors_ac("id_table")&" and id_status=1" Set orsrpl=server.createobject("adodb.recordset") orsrpl.open sqlrpl,conn,1,3 'Response.write sqlrpl If Not orsrpl.eof Then orsrpl.movefirst Do While Not orsrpl.eof %> <option <%if cint(orsrpl("id_activity_r"))=CInt(ors_ac("id_activity_r")) then%> value = <%=cint(ors_ac("id_activity_r"))%> selected <%else%> value = <%=orsrpl("id_activity_r") %> <%end if%>> <%=orsrpl("activity_name")%> </option> <% 'End If orsrpl.movenext Loop 'Else 'Response.write "<td>�͡�èѴ�����" End If %> <tr><td align=left>��������´�Ԩ����<td align=left><textarea class="form-control" rows="4" name="activity_name" style="font-size:16px"><%=ors_ac("activity_name")%></textarea> <script type="text/javascript"> CKEDITOR.replace('activity_name', { skin : 'kama', //��˹��ٻẺ˹�ҵ� height : 130, //��˹������٧ width : 500,//��˹��������ҧ toolbar: 'Minick' //���¡��ҹ ckeditor �ҡ��� config.js }); </script> </td></tr> <tr><td align=left>��ǧ���� <td align=left> �Ҥ���¹��� <% '���ѹ��� 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" disabled> <% 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 <% If CInt(ors_round("id_progress_report"))=CInt(ors_ac("id_progress_report")) Then %> value=<%=ors_ac("id_progress_report")%> selected <%else%> value=<%=ors_round("id_progress_report")%> <%end if%>> <%'=ors_ac("id_progress_report")%> <%'=ors_round("id_progress_report")%> <%'=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 %> <% 'dateendcheck=ors_ac("year_end")+ors_ac("month_end") %> <tr><td><td> <input type="hidden" name="id" value=<%=id_thesis%>> <input type="hidden" name="id_stu" value=<%=id_stu%>> <input type="hidden" name="id_activity" value=<%=id_activity%>> <div class="col-xs-12"> <button class="btn-oth" type="submit" role="button" style="margin-left:10px;" >�ѹ�֡</button><button class="btn-oth" type="reset" name="Submit2" value="Reset">��ҧ</button></div> <!-- <input type="submit" name="Submit" value="Submit" onmousedown="doSubmit();"> <input type="reset" name="Submit2" value="Reset">--> </table> <% Else Response.write "dont have data" End if%> </form> </table> </div> <% 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>