📄 add_homework.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%const need_purview=2%>
<!--#include file="../localhost.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="show_error.asp"-->
<!--#include file="../purview.asp"-->
<%response.buffer=true%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<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=add_homework">
<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><input name="homework_name" type="text" class="input_text_01" id="homework_name" size="20" maxlength="20"></td>
<td>如:圆弧连接</td>
</tr>
<tr>
<td>当前是否允许上传作业:</td>
<td><input name="is_upload" type="radio" value="1" checked>
允许上传
<input type="radio" name="is_upload" value="-1">
不允许上传</td>
<td>该功能可以用在限制时段交作业</td>
</tr>
<tr>
<td>面向的对象:</td>
<td><select name="object_e" size="3" multiple class="select_01" id="object_e">
<%
if session("purview")>2 then
response.clear
call error("对不起该功能目前只对普通开放,系统管理员如有需要,请另建一教师账号,使用该功能!")
call Iserror()
response.end
end if
dim sql_61
sql_61="select eric_manager,class_e from eric_manager where eric_manager='" & session("teacher") & "' and class_e<>''"
call opendb()
set rs=conn.execute(sql_61)
if rs.eof then
call closers()
call closedb()
response.clear
call error("当前该教师没有班级,不能布置作业!请先添加授课班级或请与系统管理员联系!")
call Iserror()
response.end
else
dim class_e
class_e=rs("class_e")
call closers()
call closedb()
if Instr(class_e,"|")>0 then
array_class_e=split(class_e,"|")
for i=0 to ubound(array_class_e)
response.write "<option value='" & array_class_e(i) & "'>" & array_class_e(i) & "</option>"
next
else
response.write "<option value='" & class_e & "'>" & class_e & "</option>"
end if
end if%>
</select></td>
<td>按住ctrl选择多个班级</td>
</tr>
<tr>
<td>内容:</td>
<td><textarea name="content" cols="30" rows="8" class="input_textarea_01" id="content"></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 + -