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

📄 newsadd.asp

📁 办公自动化系统
💻 ASP
字号:
<!--#include virtual="/_inc/GeneralADO.asp"-->
<%

if session("userid")="" then
	response.write "<SCRIPT LANGUAGE='JavaScript'>"&chr(13)
			response.write "<!--"&chr(13)
			response.write "parent.location.href=""/error/error.htm"""&chr(13)&chr(13)
			response.write "//-->"&chr(13)
			response.write "</SCRIPT>"&chr(13)
end if


dim page
page=request.querystring("page")
%>
<html>
<head>
<title>添加新闻</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
.unnamed1 {  font-size: 9pt; color: #000000; text-decoration: none}
.unnamed2 {  font-size: 9pt; color: #666666}

-->
</style>
<link rel="stylesheet" href="<%=session("css")%>/person.css" type="text/css">
<SCRIPT LANGUAGE="vbscript">
function checkdate(date1)
	if trim(date1)="" then
		checkdate=1
	
	end if
end function
</SCRIPT>
<script language="JavaScript">
<!--
function message()
{//alert(document.newfile.title.value.length);
//alert(document.newfile.begindate.value);

//	sendit(o2)
	if (document.news.topic.value==""){
		alert("请输入主题");
		document.news.topic.focus();
		return false;
	}
	var date1,k
	date1=document.news.topic.value
	k=checkdate(date1)
	if(k==1)
		{
			alert("主题名称不能全为空格!");
			document.news.topic.focus();
			return false;
		} 
	return true;
}

//-->
</script>
</head>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="98%" border="0" cellspacing="0" cellpadding="0" height="99%" class="unnamed1">
  <tr>
    <td width="85%" valign="top" align="center" height="100%">
<table width="96%" border="0" cellspacing="0" cellpadding="0" background="/images/image--banyuan--cccccc--2.gif" class="unnamed1" align="center">
        <tr> 
          <td width="10%"><img width="8" height="22" src="/images/image--banyuan--cccccc.gif"><img width="15" height="22" src="/images/image--banyuan--cccccc--6.gif"></td>
          <td width="84%">公司动态  -->添加新闻</td>
          <td align="right" width="6%"><img width="15" height="22" src="/images/image--banyuan--cccccc--6.gif"><img width="6" height="22" src="/images/image--banyuan--cccccc--.gif"></td>
        </tr>
</table>
      <br>
	  <form name="news"action="addnews.asp?page=<%=page%>" method="post" onsubmit="javascript:return message()">
      <table width="500" border="0" cellspacing="0" cellpadding="0" class="unnamed1">
        <tr> 
        </tr>
		<tr> 
          <td align="left" bgcolor="#EFEFEF">主题:<input type="text" name="topic" size="25"style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; FONT-SIZE: 9pt; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid"></td>
          </td>
        </tr>

        <tr> 
          <td colspan="2" height="121" align="left" bgcolor="#EFEFEF">内容:
            <textarea name="content" cols="100" rows="38" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; FONT-SIZE: 9pt; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" ></textarea>
          </td>
        </tr>
		<tr><td>&nbsp;</td></tr>
		<tr> 
          <td  align="center" height="41">&nbsp;
            <input type="submit" name="send" value="提交">
            <input type="reset" name="reset" value="重置">
          </td>
        </tr>
		<tr> 
          <td>&nbsp;</td>
          
        </tr>
	  </table>
	  <table>
		<tr>
			<td align="center"><a href="#" onclick="history.back()"><font face="Arial, Helvetica, sans-serif"  color="#999966">返回</font></a></td>
		</tr>
      </table>
	  </form>
    </td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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