gonggao_xg.asp

来自「吻宇考试管理系统源码 吻宇考试管理系统源码」· ASP 代码 · 共 99 行

ASP
99
字号
<!--#include file=checkuser.asp-->
<!--#include file=conn.asp-->
<%
dim rs,sql
dim id
id=request.querystring("id")
sql="select * from gonggao where id="&id
set rs=conn.execute(sql)
%>
<!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;
}
a:link {
	color: #000000;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #000000;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
	color: #000000;
}
-->
</style>
<script language="javascript">
function Checkform()
{
if (document.cnwy.title.value=="")
{
alert("公告的主题不能为空~!");
return false;
}
if(document.cnwy.neirong.value=="")
{
alert("公告的内容不能为空~!");
return false;
}
if(document.cnwy.user.value=="")
{
alert("公告的发布人的信息不能为空~!");
return false;
}
}

</script>
</head>
<body>
<form name="cnwy" method="post" action="gonggao_save.asp?id=<%=rs("id")%>" onSubmit="return Checkform()">
  <table width="364" align="center" cellpadding="1" cellspacing="1" bgcolor="#67B0ED">
    <tr>
      <td colspan="2" bgcolor="#EFF8FE"><div align="center">公告增加</div></td>
    </tr>
    <tr>
      <td width="62" bgcolor="#EFF8FE">公告题目:</td>
      <td width="293" bgcolor="#EFF8FE"><input name="title" type="text" id="title" value="<%=rs("title")%>"></td>
    </tr>
    <tr>
      <td bgcolor="#EFF8FE">公告内容:</td>
      <td bgcolor="#EFF8FE"><textarea name="neirong" cols="40" rows="10" id="neirong"><%=rs("neirong")%></textarea></td>
    </tr>
    <tr>
      <td bgcolor="#EFF8FE">发布人:</td>
      <td bgcolor="#EFF8FE"><input name="user" type="text" id="user" value="<%=rs("user")%>"></td>
    </tr>
    <tr>
      <td colspan="2" bgcolor="#EFF8FE"><table width="235" align="center">
        <tr>
          <td width="111"><input type="submit" name="Submit" value="修改"></td>
          <td width="112"><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 + =
减小字号Ctrl + -
显示快捷键?