File Manager
Back to List
| Current Directory: ~/
Editing: detail_thesis_progress_ys.asp
Full path: C:\ict\ICT\detail_thesis_progress_ys.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"--> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><!-- InstanceBegin template="/Templates/ict.dwt" codeOutsideHTMLIsLocked="false" --> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Add icon library --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <!-- 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"> <!-- Icomoon Icon Fonts--> <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="./css/templatemo-style.css" rel="stylesheet"> <link href="image/favicon.ico" rel="shortcut icon" type="image/x-icon"> <style> #customers { font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; border-collapse: collapse; width: 100%; } #customers td, #customers th { border: 0px solid #ddd; padding: 8px; } #customers th { padding-top: 12px; padding-bottom: 12px; text-align: left; background-color: #4CAF50; color: white; } .btn { background-color: #cc0000; border: none; color: white; padding: 12px 16px; font-size: 16px; cursor: pointer; } /* Darker background on mouse-over */ .btn:hover { background-color: #3366ff; color: white; } /* Full-width input fields */ input[type=text], input[type=password], textarea { width: 100%; padding: 12px 20px; margin: 8px 0; display: inline-block; border: 1px solid #ccc; box-sizing: border-box; } /* Set a style for all buttons */ button { background-color: #04AA6D; color: white; padding: 14px 20px; margin: 8px 0; border: none; cursor: pointer; } button:hover { opacity: 0.8; } /* Extra styles for the cancel button */ .cancelbtn { width: auto; padding: 10px 18px; background-color: #f44336; } /* Center the image and position the close button */ .container { padding: 16px; } span.psw { float: right; padding-top: 16px; } /* The Modal (background) */ .modal { display: none; /* Hidden by default */ position: fixed; /* Stay in place */ z-index: 1; /* Sit on top */ left: 0; top: 0; width: 100%; /* Full width */ height: 100%; /* Full height */ overflow: auto; /* Enable scroll if needed */ background-color: rgb(0,0,0); /* Fallback color */ background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ padding-top: 60px; } /* Modal Content/Box */ .modal-content { background-color: #fefefe; margin: 5% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */ border: 1px solid #888; width: 80%; /* Could be more or less, depending on screen size */ } /* The Close Button (x) */ .close { position: absolute; right: 25px; top: 0; color: #000; font-size: 35px; font-weight: bold; } .close:hover, .close:focus { color: red; cursor: pointer; } /* Add Zoom Animation */ .animate { -webkit-animation: animatezoom 0.6s; animation: animatezoom 0.6s } @-webkit-keyframes animatezoom { from {-webkit-transform: scale(0)} to {-webkit-transform: scale(1)} } @keyframes animatezoom { from {transform: scale(0)} to {transform: scale(1)} } /* Change styles for span and cancel button on extra small screens */ @media screen and (max-width: 300px) { span.psw { display: block; float: none; } .cancelbtn { width: 100%; } } </style> </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"> <% 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 dcheck=y&""&month1&""&date1 '***************************************************************** '#customers tr:nth-child(even){background-color: #f2f2f2;} '#customers tr:hover {background-color: #ddd;} session("tb_name")="student" id_type=request.form("id_type") %> <% 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%"><!--<tr> <td colspan=5 bgcolor=#FFCC00>�����Ź��Ե</td> --> <% id_stu=request("id_stu") if id_stu="" Then id_stu=request.form("ids") If id_stu="" then id_stu=session("id_stu1") End if end If id_thesis=request("id_thesis") If id_thesis="" Then id_thesis=request.form("id") 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> <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> <% ' response.write id_stu&" " %> <%'=ors_data("email_stu")%> <% 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 ys_semeter=ors_all("id_begin_semeter") ys_year_edu=ors_all("id_begin_year") '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 id_type_curri=ors_all("id_type_curri") 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 %></p> </div> </div> </div> </td></tr> <% response.write "<tr >" '���ͻ�ԭ�ҹԾ��� 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>���ͻ�ԭ�ҹԾ���::"&orst("thesis_th")&"<br>Thesis name::"&orst("thesis_eng") Else 'response.write "<td>����բ�����" End if %> <tr><td></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 align=left> <%If id_type<>"teacher" then%> <div align=right> <!--<form name="form12" method="post" action="javascript:history.go(-1)"> <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;">Previous Page</button></div> </form>--></div><% Else '�к͡ʶҹСѺ�Ҩ������� �Ԩ�������֧����˹���� End if%> </td></tr> <%If id_type="teacher" then%> <tr><td align=right> <form name="form13" class="form-horizontal" style="padding:10px;" method="post" action="thesis_progress_lecturer.asp"> <%'���ʶҹС�����������ǻ������� disable ����ѧ������� enable 'If ors_r("id_status")="0" then 'Response.write id_thesis %> <input type="hidden" name="c1" value=<%=id_curriculum%>> <input type="hidden" name="t1" value=<%=id_type_curri%>> <input type="hidden" name="m" value=<%=id_major%>> <div class="col-xs-12"> <button class="btn-oth" type="submit" role="button" style="margin-left:10px;">��Ѻ˹����§ҹ��������˹��</button></div> <!-- <input type="submit" name="edit" value="Edit"> --> </form> <%End if%> </td></tr> <!--�ʴ��������ͧ��§ҹ--> <% semeter=request.form("semeter") year_edu=request.form("year_edu") '�͡�������ش�����§ҹ�������������ҧ�����§ҹ �µ�Ǩ�ͺ�ҡ�ѹ�ش���¢ͧ�����§ҹ�Ѻ�ѹ�Ѩ�غѹ sqlprt1="select * from progress_report_thesis where semeter='"&semeter&"' and year_edu='"&year_edu&"' and id_curriculum='"&id_curriculum&"' and id_type_curri='"&id_type_curri&"' and id_major='"&id_major&"' and id_status=0" Set orsprt1=server.createobject("adodb.recordset") orsprt1.open sqlprt1,conn,1,3 if not orsprt1.eof Then If dcheck<= orsprt1("dateend") Then msg="���������ҧ���Թ���" Else msg="����ش�����§ҹ" End if End if '�������§ҹ %> <tr><td align=center>��§ҹ��������˹�� ��Ш��Ҥ���¹��� <h2><%=semeter%>/<%=year_edu%> <table class="table table-striped table-bordered"> <tr><td align=left>ʶҹ� <%=msg%><br> <table class="table table-striped table-bordered"> <tr ><td bgcolor=#ff9933>���<td bgcolor=#ff9933>��¡��<td bgcolor=#ff9933>�š�ô��Թ�ҹ<td bgcolor=#ff9933 align=center>�ѭ������ػ��ä<td bgcolor=#ff9933 width="8%" align="center">��§ҹ<td bgcolor=#ff9933 width="8%" align="center">Action <% sqlt="select * from rp_table where id_status=1 order by id_order" Set orst=server.createobject("adodb.recordset") orst.open sqlt,conn,1,3 If Not orst.eof Then orst.movefirst Do While Not orst.eof 'Response.write sqlt&""&orst("id_order")&"<br>" Response.write "<tr><td colspan=6>"&orst("table_sum")&"<br>" sqltpa="select * from thesis_plan_activity where id_stu='"&id_stu&"' and status_del=1 and id_table = '"&orst("id_table")&"' order by id_activity_r" Set orstpa=server.createobject("adodb.recordset") orstpa.open sqltpa,conn,1,3 If Not orstpa.eof Then a=1 id_progress_report=orstpa("id_progress_report") orstpa.movefirst Do While Not orstpa.eof 'Response.write sqltpa&"<br>" sqlprt="select * from progress_report_thesis where semeter='"&semeter&"' and year_edu='"&year_edu&"' and id_progress_report='"&orstpa("id_progress_report")&"'" Set orsprt=server.createobject("adodb.recordset") orsprt.open sqlprt,conn,1,3 if not orsprt.eof Then orsprt.movefirst Do while Not orsprt.eof 'Response.write "<tr><td align=right>"&a&"</td>" 'a=a+1 'Response.write sqlprt&"<br>" 'Response.write "����relate"&orstpa("id_activity") 'Response.write "<td>"&orstpa("id_activity") sqlrar="select * from rp_activity_relate where id_activity_r='"&orstpa("id_activity_r")&"' and id_status=1" Set orsrar=server.createobject("adodb.recordset") orsrar.open sqlrar,conn,1,3 If Not orsrar.eof Then Response.write "<tr><td align=right>"&a&"</td>" a=a+1 Response.write "<td>"&orsrar("activity_name") If orst("id_table")=14 Then '�����ӹǹ˹��¡Ե sqlrpt1="select * from rp_grd where id_report='"&orstpa("id_activity")&"' " Set orsrpt1=server.createobject("adodb.recordset") orsrpt1.open sqlrpt1,conn,1,3 If Not orsrpt1.eof Then sqlrpt2="select * from rp_grd_grade where id_grade='"&orsrpt1("id_grade")&"' " Set orsrpt2=server.createobject("adodb.recordset") orsrpt2.open sqlrpt2,conn,1,3 If Not orsrpt2.eof Then Response.write " ("&orsrpt2("grade_name")&" ˹��¡Ե)" End if End if ElseIf orst("id_table")=12 Then '������Ԫ� sit in Response.write orstpa("activity_name") End If Response.write "</td>" '�š�ô��Թ�ҹ If orstpa("id_status")="0" then sqlres="select * from rp_result2 where id_result='"&orstpa("id_result")&"'" Set orsres=server.createobject("adodb.recordset") orsres.open sqlres,conn,1,3 If Not orsres.eof Then id_activity=orstpa("id_activity") Response.write "<td >"&orsres("result_name")&"</td>" Response.write "<td width=500>"&orstpa("activity_problem")&"</td>" End If Else Response.write "<td><td>" End if '�š�ô��Թ�ҹ %> <td width="8%"> <form name="form12" method="post" action="report_thesis_progress_student_form.asp"> <input type="hidden" name="id_activity" value=<%=orstpa("id_activity")%>> <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;">View</button></div> </form></td> <td width="10%"> <% 'Response.write orstpa("id_result") If orstpa("id_result")=2 And orsprt("date_plan_end") >= dcheck then %><div class="col-xs-12"> <form name="form14" method="post" action="edit_thesis_progress_student.asp"> <input type="hidden" name="year_edu" value=<%=year_edu%>> <input type="hidden" name="semeter" value=<%=semeter%>> <input type="hidden" name="id_activity" value=<%=orstpa("id_activity")%>> <input type="hidden" name="id_stu" value=<%=id_stu%>> <input type="hidden" name="id_thesis" value=<%=id_thesis%>> <button class="btn" type="submit" style="width:auto;"><i class="fa fa-edit"></i></button> </form> <!--<div id="id01" class="modal"> <form class="modal-content animate" action="edit_thesis_progress_student.asp" method="post"> <div class="container"> <label for="uname"><b>�����������´�Ԩ���� "<%=orstpa("id_activity")%>"</b></label> <textarea name="uname" row="5" required></textarea> </div> <div class="container"> <button type="submit">������!</button> <span class="container" style="background-color:#f1f1f1"> <button type="button" onclick="document.getElementById('id01').style.display='none'" class="cancelbtn">¡��ԡ������</button> </span></div> </form> </div>--> <script> // Get the modal var modal = document.getElementById('id01'); // When the user clicks anywhere outside of the modal, close it window.onclick = function(event) { if (event.target == modal) { modal.style.display = "none"; } } </script> <form name="form13" method="post" action="del_thesis_plan_student.asp"> <input type="hidden" name="year_edu" value=<%=year_edu%>> <input type="hidden" name="semeter" value=<%=semeter%>> <input type="hidden" name="id_activity" value=<%=orstpa("id_activity")%>> <input type="hidden" name="id_stu" value=<%=id_stu%>> <input type="hidden" name="id_thesis" value=<%=id_thesis%>> <button class="btn" type="submit" onClick="return confirm('�س��ͧ���ź?');"><i class="fa fa-trash"></i></button> </form> </div> <%End if%> </td> <% End If orsprt.movenext loop End If orstpa.movenext loop End If orst.movenext loop End if %> </tr> </tr> </table> </td></tr> <!--������ʴ���ǵ��ҧ�����§ҹ��������˹������Ҥ--> </td></tr> </table> <% '����Ѻ���˹�ҷ���Ǩ�ͺ�����������觵�����Ѻ ͨ.����֡�һ�ԭ�ҹԾ��� ���� ͨ.����֡���Ԫҡ�� ���ǡ�ѹ�֡������㹵��ҧ rp_check ���ͺ͡ʶҹ�㹢�鹶Ѵ� id_status_check 0=������鹹��Ե 1=��� OK 2= ͨ.����֡�� ��� 3=�Ţ���ѡ�ٵ� ��� 4=��иҹ��ѡ�ٵ���� 5=���Ե �Ѻ��Һ If not orsnc.eof then %> <tr><td> <div class="templatemo-content-widget white-bg"><!--�����˹�ҷ�� �Ҩ�������֡�� ��иҹ��ѡ�ٵ� ����Ţ���ѡ�ٵ�: <table class="table table-striped table-bordered"> <tr><td>--> <form name="form13" method="post" action="thesis_progress_staff_check.asp"> <input type="hidden" name="id_progress_report" value=<%=id_progress_report%>> <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;">Check Data</button></div> </form> <!-- </td><tr> </table> </td></tr>--> <% End If '����Ѻ���˹�ҷ�� '����Ѻ���Ե ��ԡ��ѹ�Ż�Ш���� %> <tr><td> <div class="templatemo-content-widget white-bg"><!--�����˹�ҷ�� �Ҩ�������֡�� ��иҹ��ѡ�ٵ� ����Ţ���ѡ�ٵ�: <table class="table table-striped table-bordered"> <tr><td> <form name="form13" method="post" action="thesis_progress_staff_check.asp"> <input type="hidden" name="id_progress_report" value=<%=id_progress_report%>> <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>--> </table> <% end if %> </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>