📄 ext_score_add.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="const.asp" -->
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="img/Style.css" rel="stylesheet" type="text/css" />
<title>无标题文档</title>
<style type="text/css">
<!--
.STYLE1 {color: #FFFFFF}
-->
</style>
</head>
<body>
<%
action=Request("action")
if action="add" then
first_no =safeChar(trim(Request.Form("first_no")))
onenum =safeChar(trim(Request.Form("onenum")))
if onenum="" or not isnumeric(onenum) then
onenum=15
end if
if first_no="" then
Response.Write("起始学号不能为空")
end if
onenum=abs(Cint(onenum))
%>
<form name="form" action="ext_score_addx.asp" method="post" onsubmit="return chk()">
<table width="94%" border="0" align="center" cellpadding="1" cellspacing="0" class="atable1">
<tr>
<td colspan="8" bgcolor="#333"><span class="STYLE1"> 特加分添加</span></td>
</tr>
<tr>
<td height="17" colspan="8" class="tdmenu"> 得分可以负数,代表扣分</td>
</tr>
<% for i=1 to onenum %>
<tr>
<td width="9%" class="tdmenu"><div align="center">学号:</div></td>
<td width="12%" class="tdmenu">
<div align="left">
<input name="user_no" type="text" class="atable1" id="user_no" value="<%=first_no%>" size="16" maxlength="16" />
</div></td>
<td width="10%" class="tdmenu"><div align="center">得分:</div></td>
<td width="11%" class="tdmenu"><input name="mark" type="text" class="atable1" id="mark" value="0" size="4" maxlength="4"></td>
<td width="10%" class="tdmenu"><div align="center">理由:</div></td>
<td colspan="3" class="tdmenu">
<div align="left">
<input name="reason" type="text" class="atable1" id="reason" value="无" size="50" maxlength="150" />
</div></td>
</tr>
<%next%>
<tr>
<td height="30" colspan="6" class="tdmenu">
<div align="right">
<input type="hidden" name="action" value="add76" />
</div>
<div align="center"></div> <div align="center"></div> <div align="center"></div></td>
<td width="7%" class="tdmenu"><div align="center"><input name="提交" type="submit" class="tdmenu" id="提交" value="提交" />
</div></td>
<td width="10%" class="tdmenu">
<div align="left">
<input name="重填" type="reset" class="tdmenu" id="重填" value="重填" />
</div></td>
</tr>
</table>
</form>
<%else %>
<script language="javascript">
function chk()
{
if(document.form.first_no.value=="")
{alert('起始学号不能为空');return false;}
if(document.form.onenum.value=="")
{alert('人数不能为空');return false;}
else
return true;
}
</script>
<form name="form" action="" method="post" onsubmit="return chk()">
<table width="80%" border="0" align="center" cellpadding="1" cellspacing="0" class="atable1">
<tr>
<td colspan="6" bgcolor="#333"><span class="STYLE1"> 特加分添加</span></td>
</tr>
<tr>
<td height="30" colspan="6" class="tdmenu"> <span class="red">请填写初始学号段,比如030300169 则起始学号可以为:030300 随便填 一次添加人数:默认10 可添加多次</span> </td>
</tr>
<tr>
<td width="16%" class="tdmenu"><div align="center">初始学号段:</div></td>
<td width="36%" class="tdmenu">
<div align="left">
<input name="first_no" type="text" class="atable1" id="first_no" size="16" maxlength="16" />
</div></td>
<td width="19%" class="tdmenu"><div align="center"> 添加的人数:</div></td>
<td colspan="3" class="tdmenu">
<div align="left">
<input name="onenum" type="text" class="atable1" id="onenum" value="15" size="6" maxlength="2" />
</div></td>
</tr>
<tr>
<td height="30" colspan="4" class="tdmenu">
<div align="right">
<input type="hidden" name="action" value="add" />
</div>
<div align="center"></div> <div align="center"></div> <div align="center"></div></td>
<td width="7%" class="tdmenu"><div align="center"><input name="提交" type="submit" class="tdmenu" id="提交" value="提交" />
</div></td>
<td width="11%" class="tdmenu">
<div align="left">
<input name="重填" type="reset" class="tdmenu" id="重填" value="重填" />
</div></td>
</tr>
</table>
</form>
<%end if%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -