File Manager
Back to List
| Current Directory: ~/
Editing: add_comment_stu_form.asp.bak
Full path: C:\ict\ICT\add_comment_stu_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"--> <!--#include file="chk_permission.asp"--> <script language="javascript"> function doSubmit() { if( document.form1.comments.value == "" ) { alert("��سҡ�͡�������������") document.form1.comments.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"> </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" --> <% '***************************************************************** session("tb_name")="student" %> <% '***************************************************************** tb_edit=session("tb_edit") if tb_edit <> 1 then '���Է��� �����㹰ҹ ��� ����Ңͧ�������ͧ %> <table width="100%" border="0" cellspacing="0"> <tr> <td width="892" align="left" valign="top"><br><div align="center"> <%if tb_edit=2 then id_stu=request("id") id_stugroup=request("id_stugroup") %> [<a href=all_student.asp?id_stugroup=<%=id_stugroup%>>��ª����Ե����</a>] <br> ��������������ͧ���Ե(Comments) <%end if%> <form name="form1" method="post" action="add_comment_stu.asp"> <table width="75%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td> </td><td> </td> </tr> <% sqlall="select * from student where id_stu='"&id_stu&"'" set orsall=server.createobject("adodb.recordset") orsall.open sqlall,conn,1,3 if not orsall.eof then response.write "<tr bgcolor=#FFFFCC><td colspan=2 align=center>"&orsall("name_stu")&" "&orsall("sur_stu") %> <tr><td><TEXTAREA NAME="comments" ROWS="3" COLS="50"></TEXTAREA><br><br><br> <input type=hidden name=id_stu value=<%=id_stu%>> <input type=hidden name=id_stugroup value=<%=id_stugroup%>> <td><input type="submit" name="Submit" value="Submit" onmousedown="doSubmit();"> <input type="reset" name="Submit2" value="Reset"></td> </tr> </form> <tr bgcolor=#8080C0><td colspan=2 align=center>�������������</td></tr> <tr bgcolor=#FFFFCC><td align=center>��������´<td align=center>Action</td></tr> <% sqlc="select * from student_comment where id_student='"&id_stu&"' and id_status='1'" set orsc=server.createobject("adodb.recordset") orsc.open sqlc,conn,1,3 'response.write sqlc a=0 if not orsc.eof then orsc.movefirst do while not orsc.eof a=a+1 if a mod 2 = 0 then bg1="#EBEBEB" else bg1="#FFFFFF" end if response.write "<tr bgcolor="&bg1&"><td>"&orsc("comment")&"<br>("&orsc("datetimeadd")&")<td align=center>[<a href=edit_comment_stu_form.asp?id="&orsc("id_comment")&"&id_stugroup="&id_stugroup&">Edit</a>][<a href=del_comment_stu.asp?id="&orsc("id_comment")&">Del</a>" orsc.movenext loop else response.write "<tr><td colspan=2>No comment" end if %> <% end if%> </div></td> </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>