File Manager
Back to List
|
Up to Parent Directory
| Current Directory: ~/homework
Editing: homework/edit_homework_form.asp
Full path: C:\ict\ICT\homework\edit_homework_form.asp
Permissions: rwx
Write test: File appears not directly writable
Current process identity: IIS APPPOOL\DefaultAppPool
<!--#INCLUDE FILE="connectdb.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.form1.work_name.value == "" ) { alert("�ô��͡���������ú") document.form1.work_name.focus() return false; } } </script> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/homework.dwt" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-874" /> <!-- InstanceBeginEditable name="doctitle" --> <title>�������ҡ���Ե ʶҺѹ�Ԩ�¾ĵԡ�����ʵ��</title> <!-- InstanceEndEditable --> <style type="text/css"> <!-- body,td,th { font-family: Microsoft Sans Serif, MS Sans Serif, sans-serif; } body { background-color: #FFCCFF; } --> </style> <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable --> </head> <body> <table width="100%" border="0" cellspacing="0"> <tr> <td><div align="center"><img src="head.jpg" width="800" height="191" /></div></td> </tr> <tr> <td> <div align="center"> <!--#include file="chk_menu.asp"--> </div></td></tr> <tr> <td align="center" valign="top"><!-- InstanceBeginEditable name="EditRegion3" --> <p><strong>��䢡�ú�ҹ<br /> �ͧ����Ԫ� <% course_no=request("course_no") response.write course_no id_work=request("id_work") sql_c = "select * from home_work where id_work="&id_work&"" Set ors_c = Server.CreateObject("ADODB.Recordset") ors_c.Open sql_c, Conn, 1, 3 'response.write sql_c if not ors_c.eof then %> </strong><br /> �� <% response.write session("username") %> <br /> </p> <form id="form1" name="add_homework" method="post" action="save_edit_homework.asp" > <table width="617" border="1"> <tr> <td width="69">��������Ԫ�</td> <td width="532"><label> <input readonly name="course_no" type="text" id="course_no" value=<%=course_no%> size="3"> </input> <input readonly name="id_work" type="text" id="id_work" value=<%=id_work%> size="3"> </input> </label></td> </tr> <tr> <td>���͡�ú�ҹ</td> <td><label> <textarea name="work_name" cols="60" rows="1"><%=ors_c("work_name")%></textarea> <%' <input name="work_name" type="text" size="80" value= maxlength="250" />%> </label></td> </tr> <tr> <td>�ѹ������ҧ</td> <td> <% response.write ors_c("d_create") 'tnow=Now 'Response.write (tnow)%></td> </tr> <tr> <td>��˹���</td> <td><label> <% dayleft=ors_c("d_expire") 'response.write dayleft numday=Array("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31") i=lbound(numday) ' response.write numday(i) %> <select name="d_expire"> <% do while i<=ubound(numday) %> <option <% if numday(i)=dayleft then %> value=<%=dayleft%> selected <%else%> value=<%=numday(i)%><%end if%>><%=numday(i)%></option> <% i=i+1 loop %> </select> - <% monthmid=ors_c("m_expire") 'response.write monthmid nummonth=array("1","2","3","4","5","6","7","8","9","10","11","12") nummonthth=array("���Ҥ�","����Ҿѹ��","�չҤ�","����¹","����Ҥ�","�Զع�¹","�á�Ҥ�","�ԧ�Ҥ�","�ѹ��¹","���Ҥ�","��Ȩԡ�¹","�ѹ�Ҥ�") ii=lbound(nummonth) iii=lbound(nummonthth) ' response.write nummonth(ii) 'response.write nummonthth(iii) %> <select name="m_expire"> <% do while ii<=ubound(nummonth) %> <option <% if nummonth(ii)=monthmid then%> value=<%=monthmid%> selected <%else%> value=<%=nummonth(ii)%><%end if%>><%=nummonthth(iii)%></option> <%ii=ii+1 iii=iii+1 loop %> </select> - <% yearleft=ors_c("y_expire") %> <input type="text" name="y_expire" onkeypress='if (event.keyCode < 46 || event.keyCode >57 ) event.returnValue=false;' value=<%=yearleft%>> </label></td> </tr> <tr> <td> </td> <td><label> <input type="submit" name="Submit" value="�ѹ�֡" onmousedown="doSubmit();"/> </label></td> </tr> </table> </form> <% end if %> <p> </p> <!-- InstanceEndEditable --></td> </tr> </table> </body> <!-- InstanceEnd --></html>