File Manager
Back to List
| Current Directory: ~/
Editing: add_activity_form.asp.bak
Full path: C:\ict\ICT\add_activity_form.asp.bak
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.noofreport.value == "" ) { alert("��س��ͺ�����§ҹ") document.form1.noofreport.focus() return false; } if( document.form1.year_edu.value == "" ) { alert("��سҡ�͡�ա���֡��") document.form1.year_edu.focus() return false; } if( document.form1.semeter.value == "" ) { alert("��سҡ�͡�Ҥ���¹") document.form1.semeter.focus() return false; } if( document.form1.id_curriculum.value == "" ) { alert("��سҡ�͡��ѡ�ٵ�") document.form1.id_curriculum.focus() return false; } if( document.form1.id_type_curri.value == "" ) { alert("��سҡ�͡�ٻẺ����֡��") document.form1.id_type_curri.focus() return false; } if( document.form1.id_major.value == "" ) { alert("��سҡ�͡�Ң��Ԫ�") document.form1.id_major.focus() return false; } if( document.form1.datebegin.value == "" ) { alert("��سҡ�͡�ѹ���������§ҹ") document.form1.datebegin.focus() return false; } if( document.form1.dateend.value == "" ) { alert("��سҡ�͡�ѹ�ش���¢ͧ�����§ҹ") document.form1.dateend.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"> <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-th-1").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="100%" 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="1"> <% '***************************************************************** session("tb_name")="thesis" %> <!--#include file="chk_permission.asp"--> <% '***************************************************************** if session("tb_preview") <> 1 or session("id_lecturer1") = id_lecturer then '���Է��� �����㹰ҹ ��� ����Ңͧ�������ͧ %><tr><td>[<a href=http://bsris.swu.ac.th/indexstudent.asp>��ԭ�ҹԾ���</a>][<a href=thesis_progress_lecturer.asp>�����Ź��Ե��§ҹ��������˹��</a>][<a href=http://bsris.swu.ac.th/thesis_progress.asp>�ͺ��§ҹ��������˹��</a>][<a href=http://bsris.swu.ac.th/list_status_stu.asp?c1=1&t1=2>Thesis�¡����дѺ</a>] <tr> <td width="892" align="left" valign="top"><div align="center"> <form name="form1" method="post" action="add_activity_stu.asp"> <table width="90%" border="0" align="center" cellpadding="3" cellspacing="0"> <tr bgcolor=#FFFFCC><td colspan=2 align=center>�����Ԩ���������§ҹ��������˹��</td></tr> <tr> <td height="20"><div align="right">ࡳ��</div></td> <td> <select name="id_table" style="font-size:16px"> <% set ors_cr=server.createobject("adodb.recordset") sqlmark_cr="select * from rp_table where id_status=1 and id_table_type=1" ors_cr.open sqlmark_cr,Conn,1,3 ors_cr.movefirst do while not ors_cr.eof %> <option value=<%=ors_cr("id_table")%> ><%=ors_cr("id_table")%>. <%=ors_cr("table_detail")%></option> <% ors_cr.movenext loop %> </select> </td> </tr> <tr> <td align=right>�ѹ���Թ�Ԩ����<td> <input type="text" size="15" id="datepicker-th-1" name="dateactivity" style="font-size:16px"/>mm/dd/yyyy </tr> <tr> <td align=right>�ѹŧ����¹<td> <input type="text" size="15" id="datepicker-th" name="datebegin" style="font-size:16px"/>mm/dd/yyyy </tr> <tr> <td align=right>�ѹ����ش���ŧ����¹<td> <input type="text" size="15" id="datepicker-th-2" name="dateend" style="font-size:16px"/>mm/dd/yyyy </tr> <tr> <td><div align="right">���͡Ԩ����</div></td> <td><textarea name="activity_name" rows="4" cols="50" id="activity_name" style="font-size:16px"></textarea> </tr> <!--<tr> �ѹ�е�ͧ�ա�õ�Ǩ�ͺ�ա��� �������㹪�ǧ�ѹ����˹� �����ʶҹ����Դ-�Դ�ѵ��ѵ�) <td><div align="right">ʶҹ�</div></td> <td><input type="radio" name="radio" id="radio" value="1" /> <label for="radio">�Դ</label> <input type="radio" name="radio" id="radio2" value="0" /> <label for="radio2">�Դ</label></td>--> </tr> <tr> <td> </td> <td><input type="submit" name="Submit" value="Submit" onmousedown="doSubmit();"> <input type="reset" name="Submit2" value="Reset"></td> </tr> </table> </form> <table align=center width=100% border=0 cellspacing=0> <tr bgcolor=#FFFFCC><td align=center>�ӴѺ���<td align=center>���͡Ԩ����<td align=center>�ѹ����աԨ����<td align=center>��ǧ����ŧ����¹<td align=center>ʶҹ�<td align=center>Action<td align=center>���Ե���ŧ����¹ <% date1=datepart("d",date) month1=month(now()) y=year(now()) y=543+y y=right(y,4) 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 'response.write int(dcheck)&"<br>" '��Ǩ�ͺʶҹТͧ�ͺ������������������������� Set ors_status=server.createobject("adodb.recordset") sql_status="select * from rp_activity " ors_status.open sql_status,conn,1,3 If Not ors_status.eof then ors_status.movefirst Do while Not ors_status.eof id=ors_status("id_activity") 'If ors_status("datebegin") > dcheck and ors_status("dateend") > dcheck Then '��Ѻ�Ţ�� 0 �ѧ���֧��ǧ���ҡ�˹� 'sql_edit_st = "update progress_report_thesis set id_status='0' where id_progress_report ='"&id&"'" ' set ors_edit_st=server.createobject("adodb.recordset") ' ors_edit_st.open sql_edit_st,Conn,1,3 'response.write "0No���㹪�ǧ���� "&id&"<br>" If ors_status("date_begin")<= dcheck and ors_status("date_end") >= dcheck Then sql_edit_st="update rp_activity set id_status='1' where id_activity='"&id&"'" set ors_edit_st=server.createobject("adodb.recordset") ors_edit_st.open sql_edit_st,Conn,1,3 'Response.write "1yes㹪�ǧ���� "&id&"<br>" Else sql_edit_st = "update rp_activity set id_status='0' where id_activity ='"&id&"'" set ors_edit_st=server.createobject("adodb.recordset") ors_edit_st.open sql_edit_st,Conn,1,3 End If 'Response.write sql_edit_st ors_status.movenext loop End if '��Ǩ�ͺʶҹТͧ�ͺ������������������������� set ors_o=server.createobject("adodb.recordset") sqlmark_o="select * from rp_activity order by date_end asc" ors_o.open sqlmark_o,Conn,1,3 If Not ors_o.eof then ors_o.movefirst aa=0 do while not ors_o.eof aa=aa+1 if aa mod 2 = 0 then bg1="#EBEBEB" else bg1="#FFFFFF" end If Response.write "<tr bgcolor="&bg1&"><td>"&aa Response.write "<td>"&ors_o("activity_name") Response.write "<td align=center>"&ors_o("d_activity")&"/"&ors_o("m_activity")&"/"&ors_o("y_activity") Response.write "<td align=center>"&ors_o("d_begin")&"/"&ors_o("m_begin")&"/"&ors_o("y_begin") Response.write "-"&ors_o("d_end")&"/"&ors_o("m_end")&"/"&ors_o("y_end") If ors_o("id_status")="1" Then status_t="�Դ" Else status_t="Close" End if Response.write "<td>"&status_t Response.write "<td align=center>" Response.write "[<a href=edit_activity_form.asp?id="&ors_o("id_activity")&">Edit</a>]" Response.write "[<a href=detail_activity.asp?id="&ors_o("id_activity")&">Detail</a>]" %> <td align=center> <form name="form2" method="post" action="preview_activity_register.asp"> <input type="submit" name="Submit" value="View"> <input type="hidden" name="id" value=<%=ors_o("id_activity")%>> </form> <% ors_o.movenext Loop Else Response.write "<tr><td colspan=6>no activity" End if %> </tr> </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 '���Է� %> </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>