⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 newart.asp

📁 使用ASP开发的源代码.
💻 ASP
字号:
<!-- #include file="ChkPwd.asp" -->
<html>

<head>
<style>
<!--
.main        { font-size: 9pt }
-->
</style>
<script Language="JavaScript">
function ChkFields() {
	if (document.formadd.Subject.value=='') {
		window.alert ("请输入主题!");
		formadd.Subject.focus();
		return false
	}
	if (document.formadd.Subject.value.length>50) {
		window.alert ("主题超长!");
		formadd.Subject.focus();
		return false
	}
	if (document.formadd.Words.value.length>1000) {
		window.alert ("留言内容超长!");
		formadd.Words.focus();
		return false
	}

	return true
}

</script>

<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>添加新帖子</title>
</head>

<body background="images/Back.jpg">

<p align="center">添加新帖子</p>

<form method="POST" action="artSave.asp?UpperId=0" name="formadd" onsubmit = "return ChkFields()">
 <table align="center" border="1" cellpadding="1" cellspacing="1" width="473" bordercolor="#008000" bordercolordark="#FFFFFF" height="108">
      <tr>
        <td align=left bgcolor="#E1F5FF" width="77" height="24" class="main">用户名</td>
		<td width="380" height="24" class="main"> <%=Session("UserName")%></td>
	  </tr>
	  <tr>
	    <td align=left bgcolor="#E1F5FF" width="77" height="23" class="main">标题</td>
        <td width="380" height="23" class="main"><input name="Subject" size="51"></td>
      </tr>
      <tr>
	    <td align=left bgcolor="#E1F5FF" width="77" height="43" class="main" valign="top">具体内容</td>
        <td width="380" height="43" class="main" valign="top"><textarea rows="4" name="Words" cols="50"></textarea></td>
      </tr>
  </table> 
  <p align="center"><input type="submit" value="提交" name="B1"><input type="reset" value="全部重写" name="B2"></p>
</form>
<p align="center"> </p>

</body>

</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -