<!--#include file="conn.asp" -->
<% adm_power_page=3 %>
<!--#include file="admin_dn.asp" -->
<% 
if Request("w")="save" then
 rs.open "paget_1",conn,2,3
  rs.addnew
  rs("title")=request("title")
  rs("img")=request("img")
  rs("body")=request("body")
  rs.update
  rs.close
  %>

<script language="VBScript" type="text/VBScript">
msgbox "增加成功"
</script>

<%
end if
if Request("w")="del" then
sql="delete  from paget_1 where id="&request("did")
conn.execute(sql)
sql="delete  from paget_2 where id="&request("did")
conn.execute(sql)
%>

<script language="VBScript" type="text/VBScript">
msgbox "删除成功"
</script>

<%
end if
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>:::管理页面:::</title>
<link href="css.css" rel="stylesheet" type="text/css">
</head>

<body leftmargin="2" topmargin="0">
<p>网站推广服务</p>
<form name="form1" method="post" action="adm_13.asp?w=save">
  <table width="80%" height="56" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr bgcolor="#F9F9F9"> 
      <td colspan="2">网站推广大类增加</td>
    </tr>
    <tr> 
      <td width="20%"><div align="right">大类名称：</div></td>
      <td width="80%"><input name="title" type="text" id="title"></td>
    </tr>
    <tr> 
      <td><div align="right">大类图片地址：</div></td>
      <td><input name="img" type="text" id="img">
        图片的地址。</td>
    </tr>
    <tr> 
      <td><div align="right">大类详细介绍：</div></td>
      <td><textarea name="body" cols="30" rows="5" id="body"></textarea>
        支持html</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><input type="submit" name="Submit" value="新增"></td>
    </tr>
  </table>
</form>
<p>&nbsp;</p>
<table width="90%" height="62" border="0" cellpadding="0" cellspacing="1">
  <tr bgcolor="#EEEEEE"> 
    <td colspan="4"><font color="#990000">推广项目</font></td>
  </tr>
  <% 
  rs.open "paget_1",conn,1,1
  while not rs.eof 
   %>
  <tr bgcolor="#F7F7F7"> 
    <td width="7%" height="18"> 
      <div align="center"><font color="#990000"><%= rs("id") %></font></div></td>
    <td width="55%"><a href="adm_13_x.asp?id=<%=rs("id")%>&title=<%= rs("title") %>"><%= rs("title") %></a></td>
    <td width="17%" bgcolor="#F7F7F7"> 
      <div align="center"><a href="adm_13_e.asp?id=<%=rs("id")%>">编辑</a></div></td>
    <td width="21%"> 
      <div align="center"><a href="adm_13.asp?w=del&did=<%=rs("id")%>"><img src="images/4.jpg" width="16" height="16" border="0"></a></div></td>
  </tr>
  <% 
  rs.movenext
  wend
  rs.close
   %>
  <tr> 
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
<p>&nbsp;</p>
<hr size="1" color=C5D7ED>
<p> <font color="#990000">注：</font>这里所谓的大类就是说，推广项目的大的分类如，网易搜索登录，新浪搜索登录。。要在些大类下新增小类，请您点击大类的名称，将可以在此项目下面新增具体的产品。　在册除大类时请注意小心操作，因为删除大类将会把大类下面的所有小类删除.</p>
</body>
</html>
