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

📄 editnotice.asp

📁 我的课程设计
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!-- #include file="conn.asp" -->
<%
'	if  (session("userright")="") then 
'		response.Redirect("error.asp?err_on=5")
'	end if
%>
<html>
<head>
<title>修改栏目</title>
<link rel="stylesheet" href="css/admin.css" type="text/css">
</head>
<body>
<script language="JavaScript">
<!--
     function check_null()
	 {
	      if(document.editnotice.title.value=="")
		    {
			    alert("请输入消息的标题!");
				return false;
			}
			if(document.editnotice.content.value=="")
		    {
			    alert("请输入消息的内容!");
				return false;
			}
			
			return true;
	 }
-->
</script>
<%
    Dim Aid
	Aid=request.QueryString("noticeid")
	Dim rs  
	Dim  strSQL 
%>
<p>&nbsp;</p>
<p>&nbsp;</p>
<form action="updatenotice.asp" method="post" name="editnotice" onsubmit="javascript: return check_null();">
<%	
	'strSQL="SELECT * FROM notice where  id='"&Aid&"'"
	strSQL="SELECT * FROM notice where id="&Aid
	 set rs=server.createobject("adodb.recordset")
	rs.open strSQL,db,1,1
	do while not rs.eof
  %> 
<table width="595" height="2%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="30" align="center"><font color="#FFFFFF" size="+1">最新消息修改</font> </td>
  </tr>
</table>

  <table width="631" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
    <tr valign="middle" bgcolor="#799ae1"> 
    <td width="42" height="29" align="center"><font color="#FFFFFF">ID</font></td>
    <td width="212" align="center"><font color="#FFFFFF">标题</font></td>
	<td width="369" align="center"><font color="#FFFFFF">内容</font></td>
   </tr>
  
  <tr> 
    <td height="30" align="center">&nbsp;<%=Aid %>
	 <input name="noticeid" type="hidden" value="<%=Aid %>"></td>
    <td> &nbsp;&nbsp; 
        <input name="title" type="text" value="<%= rs("title")%>" size="30"> 
&nbsp;&nbsp;</td> 	
	<td> &nbsp;&nbsp; 
      <textarea name="content" cols="45" rows="8"><%=rs("content")%></textarea>
      &nbsp;&nbsp;</td> 
  </tr>
 
</table>
 <%
      rs.movenext
	loop
  %>
  <table width="632" height="7%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
    <tr> 
	  <td width="627" height="33" align="center">&nbsp; 
        <input type="submit" name="Submit" value="修改">&nbsp; 
        <input type="reset" name="Submit2" value="重置"></td>
    </tr>
</table>
</form>
<p>&nbsp;</p>
</body>
</html>

⌨️ 快捷键说明

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