File Manager
Back to List
|
Up to Parent Directory
| Current Directory: ~/homework
Editing: homework/edit_stu_form.asp.bak
Full path: C:\ict\ICT\homework\edit_stu_form.asp.bak
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.username_stu.value == "" ) { alert("�ô��͡���������ú") document.form1.username_stu.focus() return false; } if( document.form1.password_stu.value == "" ) { alert("�ô��͡���������ú") document.form1.password_stu.focus() return false; } if( document.form1.name_stu.value == "" ) { alert("�ô��͡���������ú") document.form1.name_stu.focus() return false; } if( document.form1.surname_stu.value == "" ) { alert("�ô��͡���������ú") document.form1.surname_stu.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>�������Ե</p> <% username_stu=request("username_stu") %> <form id="form1" name="form1" method="post" action="add_stu.asp"> <table width="599" border="0"> <tr> <td width="76">���������</td> <td width="213"><label> <input name="username_stu" type="text" id="username_stu" /> </label></td> </tr> <tr> <td>���ʼ�ҹ</td> <td><label> <input name="password_stu" type="text" id="password_stu" /> </label></td> </tr> <tr> <td>�����Ե</td> <td><label> <input name="name_stu" type="text" size="60" /> </label></td> </tr> <tr> <td>���ʡ��</td> <td><label> <input name="surname_stu" type="text" size="60" /> </label></td> </tr> <tr> <td><label></label></td> <td><input name="����" type="submit" id="����" value="Submit" onmousedown="doSubmit();"/></td> </tr> </table> </form> <p>��ª����Ե������</p> <table width="536" border="0" bgcolor="#FFFFCC"> <tr bgcolor="#FFFFFF"> <td width="43"><div align="center">�ӴѺ���</div></td> <td width="55"><div align="center">���������</div></td> <td width="49"><div align="center">���ʼ�ҹ</div></td> <td width="97"><div align="center">�����Ե</div></td> <td width="115"><div align="center">���ʡ��</div></td> </tr> <tr> <% sql_stu="select * from student" Set ors_stu = Server.CreateObject("ADODB.Recordset") ors_stu.Open sql_stu, Conn, 1, 3 'response.write sql_c if not ors_stu.eof then a=1 username_stu=ors_stu("username_stu") 'course_no=ors_allh("id_course") password_stu=ors_stu("password_stu") name_stu=ors_stu("name_stu") surname_stu=ors_stu("surname_stu") ors_stu.movefirst do while not ors_stu.eof response.write "<tr><td>"&a&"<td>"&ors_stu("username_stu")&"<td>"&ors_stu("password_stu")&"<td>"&ors_stu("name_stu")&"<td>"&ors_stu("surname_stu") 'response.write "<td>+++" %> <td>[<a href=edit_stu.asp?username_stu=<%=ors_stu("username_stu")%> >���</a>] <td>[<a href=del_stu.asp?username_stu=<%=ors_stu("username_stu")%> onclick="return confirm('Are you Sure?');">ź</a>] <% response.write "</tr>" ors_stu.movenext a=a+1 loop else response.write "<tr colspan=6><td>No Data</td></tr>" end if %> </tr> </table> <p><% response.write "<table>" response.write "<tr><td>" %></p> <!-- InstanceEndEditable --></td> </tr> </table> </body> <!-- InstanceEnd --></html>