📄 kemu_xg.asp
字号:
<!--#include file=conn.asp-->
<!--#include file=checkuser.asp-->
<%
dim rs,sql,rs1,sql1
dim id
id=request.QueryString("id")
set rs=server.CreateObject("adodb.recordset")
sql="select * from kemu where id="&id&""
rs.open sql,conn,1,1
%>
<!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>
<style type="text/css">
<!--
body {
background-color: #EFF8FE;
}
body,td,th {
font-size: 12px;
}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
function formCheck()
{
if (document.cnwy.namer.value == "")
{
alert("科目名称不能为空~!");
return false;
}
if (document.cnwy.dxts.value == "")
{
alert("单选题数不能为空~!");
return false;
}
if(document.cnwy.sxts.value=="")
{
alert("双选题数不能为空~!")
return false;
}
if(document.cnwy.dxfs.value=="")
{
alert("单选分数不能为空~!")
return false;
}
if(document.cnwy.sxfs.value=="")
{
alert("双选分数不能为空~!")
return false;
}
if(document.cnwy.zongf.value=="")
{
alert("总分数不能为空~!")
return false;
}
if(document.cnwy.passfs.value=="")
{
alert("通过考试的分数不能为空~!")
return false;
}
if(document.cnwy.passtime.value=="")
{
alert("考试的时间不能为空!")
return false;
}
}
</script>
</head>
<body>
<form method="post" action="kemu_save.asp?id=<%=rs("id")%>"name="cnwy" onSubmit="return formCheck()">
<table width="0" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#67B0ED">
<tr bgcolor="#EFF8FE">
<td height="7" colspan="2" ><div align="center">考试科目修改</div></td>
</tr>
<tr bgcolor="#EFF8FE">
<td height="8" >科目名称:</td>
<td height="8" ><input name="namer" type="text" id="namer2" value="<%=rs("name")%>"></td>
</tr>
<tr bgcolor="#EFF8FE">
<td width="111">单选题个数:</td>
<td width="256"><input name="dxts" type="text" id="dxts" value="<%=rs("dxts")%>"></td>
</tr>
<tr bgcolor="#EFF8FE">
<td>双选题个数:</td>
<td><input name="sxts" type="text" id="sxts" value="<%=rs("sxts")%>"></td>
</tr>
<tr bgcolor="#EFF8FE">
<td>单选题分数:</td>
<td><input name="dxfs" type="text" id="dxfs" value="<%=rs("dxfs")%>"></td>
</tr>
<tr bgcolor="#EFF8FE">
<td>双选题分数:</td>
<td><input name="sxfs" type="text" id="sxfs" value="<%=rs("sxfs")%>"></td>
</tr>
<tr bgcolor="#EFF8FE">
<td>本门科目总数:</td>
<td><input name="zongf" type="text" id="zongf" value="<%=rs("zongf")%>"></td>
</tr>
<tr bgcolor="#EFF8FE">
<td>通过考试的分数:</td>
<td><input name="passfs" type="text" id="passfs" value="<%=rs("passfs")%>"></td>
</tr>
<tr bgcolor="#EFF8FE">
<td>本科考试的时间: </td>
<td><input name="passtime" type="text" id="passtime" value="<%=rs("xztime")%>">
单位是分钟</td>
</tr>
<tr bgcolor="#EFF8FE">
<td colspan="2"><table width="165" border="0" align="center">
<tr>
<td width="76"><input type="submit" name="Submit" value="添加"></td>
<td width="79"><div align="right">
<input type="reset" name="Submit2" value="清除">
</div></td>
</tr>
</table></td>
</tr>
</table>
</form>
</body>
</html>
<%
rs.close
set rs=nothing
set conn=nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -