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

📄 editnews.asp

📁 三鸟个人网站源码。
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="session.asp"-->
<html>

<head>
<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">
<LINK href="style.css" rel=stylesheet>
</head>
<script language="VBScript">
<!--
Sub Checkdata()
if aaa.news_title.Value = Empty then
Window.Alert"新闻的题目没有填写...”"
Exit Sub
End if
if aaa.news_text.Value = Empty then
Window.Alert"“新闻内容没有填写...”"
Exit Sub
End if
if aaa.news_writer.Value = Empty then
Window.Alert"“新闻添加人没有填写...”"
Exit Sub
End if
aaa.submit
End sub
-->
</script>
<body>
  <%
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from news where news_id="&request("news_id") 
rs.open sql,conn,3,3   
%>
<div align="center">
  <center>
  <form method="post" action="ADD_newsto2.asp?news_id=<%=rs("news_id")%>" name="aaa">
    <table border="0" cellpadding="0" cellspacing="1" width="500" bgcolor="#000000" height="220">
    <tr>
      <td bgcolor="#FFFFFF" width="99" align="center" height="23">文章标题:</td>
      <td bgcolor="#FFFFFF" width="391" height="23">&nbsp;<input type="text" name="news_title" size="40" style="border: 1 solid #000000" value="<%=rs("news_title")%>"></td>
    </tr>
    <tr>
      <td bgcolor="#FFFFFF" width="99" align="center" height="13">添 加 人:</td>               
      <td bgcolor="#FFFFFF" width="391" height="13">&nbsp;<input type="text" name="news_writer" size="20" style="border: 1 solid #000000" value="<%=rs("news_writer")%>"></td>
    </tr>
    <tr>
      <td bgcolor="#FFFFFF" width="99" align="center" height="30">标题颜色:</td>           
      <td bgcolor="#FFFFFF" width="391" height="30">&nbsp;<input type="radio" value="black" name="title_colour" checked>黑色&nbsp;    
        <input type="radio" value="yellow" name="title_colour"><font color="#E3E300">黄色</font>&nbsp;    
        <input type="radio" value="blue" name="title_colour"><font color="#0000FF">蓝色</font>&nbsp;    
        <input type="radio" value="red" name="title_colour"><font color="#FF0000">红色</font></td>
    </tr>
    <tr>
      <td bgcolor="#FFFFFF" width="99" align="center" height="119">文章内容:</td>
      <td bgcolor="#FFFFFF" width="391" height="119">&nbsp;<textarea rows="19" name="news_text" cols="48" style="border: 1 solid #000000"><%=rs("news_text")%></textarea> 
        支持UBB</td>                               
    </tr>
    <tr>
      <td bgcolor="#FFFFFF" colspan="2" width="494" height="27">
        <p align="center"><input type="button" value="提交修改" name="B1" ONCLICK="Checkdata"></p>
      </td>
    </tr>
  </table>
  <%rs.close
set rs=nothing
conn.close
set conn=nothing
%>
  </form>
  </center>
</div>

</body>

</html>

⌨️ 快捷键说明

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