📄 edit_homework.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%const need_purview=2%>
<!--#include file="../localhost.asp"-->
<!--#include file="show_error.asp"-->
<!--#include file="../purview.asp"-->
<!--#include file="conn.asp"-->
<%response.buffer=true%>
<%
id=request.querystring("id")
if not isnumeric(id) then
call error("非法参数!")
call Iserror()
response.end
else
call opendb()
set rs=conn.execute("select * from homework where id=" & id)
if rs.eof then
call closers()
call closedb()
call error("非法参数!")
call Iserror()
response.end
else
array_homework=rs.getrows()
call closers()
call closedb()
end if
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<link href="../eric.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style3 {color: #FFFFFF; font-weight: bold; font-size: 14px; }
-->
</style>
</head>
<body>
<form name="form1" method="post" action="admin_check.asp?action=edit_homework&id=<%=id%>">
<table width="600" border="0" align="center" cellpadding="4" cellspacing="1" id="table_01">
<tr>
<td width="163" class="white_bold_blue">布置作业:</td>
<td width="237" class="white_bold_blue"> </td>
<td width="172" class="white_bold_blue">说明</td>
</tr>
<tr>
<td>作业名称:</td>
<td><%response.write array_homework(2,0):rem 显示第3列第1行的数据%></td>
<td>如:圆弧连接</td>
</tr>
<tr>
<td>当前是否允许上传作业:</td>
<td><input name="is_upload" type="radio" value="1" <%if array_homework(4,0) then response.write "checked"%>>
允许上传
<input type="radio" name="is_upload" value="-1" <%if not array_homework(4,0) then response.write "checked"%>>
不允许上传</td>
<td>该功能可以用在限制时段交作业</td>
</tr>
<tr>
<td>面向的对象:</td>
<td><%response.write array_homework(7,0):rem 作业面向班级%></td>
<td>按住ctrl选择多个班级</td>
</tr>
<tr>
<td>内容:</td>
<td><textarea name="content" cols="30" rows="8" class="input_textarea_01" id="content"><%response.write array_homework(8,0)%></textarea></td>
<td></td>
</tr>
<tr>
<td>上传相关文件:</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td colspan="3"><span class="red_bold_14pt_font">注意:</span> <table width="500" border="0" align="center" cellpadding="4" cellspacing="1" id="table_02">
<tr>
<td width="16" height="16" align="center" valign="middle" bgcolor="#0099CC" class="style3">1</td>
<td width="464" class="red_12pt_font"> 在添加完成该操作后,系统会创建以此命名的文件夹,请不要随意改动(如更名,会带来大量的数据操作!),或者删除,学生的作业都将提交到该文件夹下面,一旦删除,则所有该次作业都将删除,无法恢复,请慎重! </td>
</tr>
<tr>
<td width="16" height="16" align="center" valign="middle" bgcolor="#0099CC" class="style3">2</td>
<td>如果你要布置多个作业,请一个添加完成后,再继续添加</td>
</tr>
<tr>
<td height="16" align="center" valign="middle" bgcolor="#0099CC" class="style3">3</td>
<td>只用添加了班级才能布置作业给相应的班级</td>
</tr>
<tr>
<td height="16" align="center" valign="middle" bgcolor="#0099CC" class="style3">4</td>
<td>还有什么疑问,可以问系统管理员.</td>
</tr>
<tr>
<td height="16" align="center" valign="middle" bgcolor="#0099CC" class="style3">5</td>
<td class="red_12pt_font">当前版本系统不允许更改作业名称!</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="3" class="center"><input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit2" value="重置"></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -