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

📄 admin_edit.asp

📁 管理系统部分功能如下: (1)在线增加、修改、删除管理员 (2)在线增加、修改、删除作品、支持HTML等.. (3)前台作品付有评论功能..以及评论数目和点击次数显示
💻 ASP
字号:
<!-- #include file="conn.asp" -->
<!-- #include file="cookies.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">
<title>80秀传媒设计资讯中心 || 网站作品展示 || 后台管理</title>
<link href="style.css" type="text/css" rel="stylesheet">
</head>

<body bgcolor="#666666" text="#000000">
<%
set rs1=server.createobject("adodb.recordset")
sql1="select * from book where id="&request.querystring("id")
rs1.open sql1,conn,3,3
%>
<form name="form1" method="post" action="admin_editsave.asp?id=<%=request.querystring("id")%>">
  <div align="center">
  <p>修改作品信息</p>
<table width="550" border="0" cellpadding="6" cellspacing="1" bgcolor="#393939" class="b" height="9">
    <tr bgcolor="#5b5b5b" class="text">
      <td height="2" width="100"><font color="#000000">标题:</font></td>
      <td height="2" width="400"> 
          <font color="#000000"> 
          <input type="text" name="title" size="50" value="<%=trim(rs1("title"))%>">
          </font>
      </td>
    </tr>
  </table>
<table width="550" border="0" cellpadding="6" cellspacing="1" bgcolor="#393939" class="b" height="9">
    <tr bgcolor="#5b5b5b" class="text">
      <td width="100"><font color="#000000">分类:</font></td>
        <td width="150">
            <font color="#000000">
			<%
	             set rs=server.createobject("adodb.recordset")
				 sql="select * from type"
				 rs.open sql,conn,1,1
				 if rs.eof and rs.bof then
				 response.write "请先添加分类!"
				 response.end
				 else
		    %>
          <select name="type">
            <%
			  do while not rs.eof
	        %>
			<option selected value="<%=trim(rs("typename"))%>"><%=trim(rs("typename"))%></option>
			<% rs.movenext
			loop
			end if
			rs.close
			set rs=nothing
			%>
          </select>
            </font>
        </td>
      <td width="100"><font color="#000000">完成时间:</font></td>
      <td width="150">
          <font color="#000000">
          <input type="text" name="key1" size="15" value="<%=trim(rs1("key1"))%>">
          </font>
      </td>
    </tr>
  </table>
<table width="550" border="0" cellpadding="6" cellspacing="1" bgcolor="#393939" class="b" height="9">
    <tr bgcolor="#5b5b5b" class="text">
      <td width="100"><font color="#000000">运用类别:</font></td>
      <td width="162">
          <font color="#000000">
          <input type="text" name="from1" size="15" value="<%=trim(rs1("from1"))%>">
          </font>
      </td>
      <td width="88"> </td>
        <td width="149"> 
           
      </td>
    </tr>
  </table>
    <table width="500" border="0" cellspacing="0" cellpadding="0">
      <tr> 
        <td width="250"><font color="#000000">内容:</font> </td>
        <td width="250"> 
          <font color="#000000"> 
          <input type="checkbox" name="html" value="on">
          是否支持HTML</font></td>   
      </tr> 
    </table> 
<table width="550" border="0" cellpadding="6" cellspacing="1" bgcolor="#393939" class="b" height="9">
    <tr bgcolor="#5b5b5b" class="text"> 
      <td height="11">  
          <textarea name="nr" cols="113" rows="15"><%
                content=replace(rs1("nr"),"<br>",chr(13))
                content=replace(content,"&nbsp;"," ")    
            response.write content%></textarea> 
      </td> 
    </tr> 
  </table> 
  <input type="submit" name="yes" value="确定"> 
  <input type="submit" name="no" value="重写">    
</div>  
</form>  
<%rs1.close  
set rs1=nothing  
conn.close  
set conn=nothing  
%>  
</body>  
</html>  

⌨️ 快捷键说明

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