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

📄 edit.asp

📁 全新后台新闻编辑器 2.全新后台下载编辑器 3.增加图片友情链接管理功能 4.JMail在线发送邮件,支持在线导出Email 5.新增在后台网站配置中指定网站首页新闻条数 6.后台
💻 ASP
字号:
<!--#include file="conn.inc"-->
<style type="text/css">
<!--
body,td,th {
	font-family: 宋体;
	font-size: 12px;
}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
a {
	font-family: 宋体;
	color: #000000;
}
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #666666;
}
a:hover {
	text-decoration: underline;
	color: #FF0000;
}
a:active {
	text-decoration: none;
	color: #333333;
}
-->
</style>
<link href="css.css" rel="stylesheet" type="text/css">
<%id=trim(request("id"))
if request("actions")="1" then
     if request("choice")="1" then
	    choi=false
     else
	    choi=true
     end if
	 if request("current")="1" then
	    cu=true
     else
	    cu=false
     end if
     topic=trim(request("topic"))
     if topic="" or len(topic)>200 then
	    response.write "<script language='javascript'>alert('主题内容不能为空或大于指定字数!');history.go(-1);</script>"
     else
	    set rs=server.CreateObject("adodb.recordset")
		sql="select * from title where id="&id
		rs.open sql,connstr,1,3
		rs("title")=topic
		rs("current")=cu
		rs("choice")=choi
		rs.update
		rs.close
		set rs=nothing
		response.write "<script language='javascript'>alert('主题修改成功!');history.go(-1);</script>"

     end if
else
set rs=server.CreateObject("adodb.recordset")
sql="select * from title where id="&request("id")
rs.open sql,connstr
%>
<table width="70%"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="63" valign="bottom"><div align="center"></div></td>
  </tr>
</table>

<form name="form1" method="post" action="">
  <table width="70%"  border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#000000">
    <tr>
      <td width="24%" height="45" bgcolor="#D7F2FF"><div align="center">主题内容</div></td>
      <td width="76%" valign="bottom" bgcolor="#FFF4C8"><textarea name="topic" cols="40" rows="4" id="topic"><%=rs("title")%>
</textarea>
      小于 200字</td>
    </tr>
    <tr>
      <td valign="top" bgcolor="#D7F2FF"><div align="center">多选/单选</div></td>
      <td valign="bottom" bgcolor="#FFF4C8">
	  <%if rs("choice")=true then%>
	  <input name="choice" type="radio" value="1" >
        单选
          <input type="radio" name="choice" value="2" checked>
      多选
	  <%else%>
	  <input name="choice" type="radio" value="1" checked>
        单选
          <input type="radio" name="choice" value="2" >
      多选
	  <%end if%></td>
    </tr>
    <tr>
      <td colspan="2" valign="bottom" bgcolor="#D7F2FF"><div align="center">
        <input type="submit" name="Submit" value="提交">
        &nbsp;&nbsp;<input type="reset" name="Submit2" value="重置">
        <input name="actions" type="hidden" id="actions" value="1">
      </div></td>
    </tr>
  </table>
 
</form>
<%end if%>

⌨️ 快捷键说明

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