📄 add.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java"
errorPage=""%>
<!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>
</head>
<body>
<script language="javascript">
function check(){//标题内容不能为空
if(form1.user.value.length>10){
alert("标题不能超过10个字!");
document.form1.user.focus();
return false;
}else if(document.form1.user.value==""||document.form1.user.value==" "){
alert("标题不能为空!");
document.form1.user.focus();
return false;
}else if(document.form1.content.value==""||document.form1.content.value==" "){
alert("资源信息不能为空");
document.form1.content.focus();
return false;
}
}
</script>
<form method="POST" action="ok_add.jsp" name="form1"
onsubmit="return check(this);">
<table width="100%" border="1">
<tr bgcolor="#00CCFF">
<td colspan="2">
<div align="center">
<h1>
添加教学资源信息
</h1>
</div>
</td>
</tr>
<tr>
<td width="28%">
请在右侧对话框内输入教学资源信息
</td>
<td width="72%">
<div align="center">
<p>
标题:
</p>
<p>
<input type="text" name="user" size="20">
</p>
<p>
教学资源信息:
</p>
<p>
<textarea name="content" cols="60" rows="10"></textarea>
</p>
<p>
<input type="submit" value="确定">
<input type="reset" value="重写">
<input type="button" value="取消"
onClick="javascript:window.close();">
</p>
</div>
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -