<!--#include file="conn.asp" -->
<% adm_power_page=2 %>
<!--#include file="admin_dn.asp" -->
<% 

if Trim(Request.QueryString("w"))="save" then
 rs.open "news",conn,2,3
 
 adm_ll=""
 for i=1 to Request.Form("ll").count
 adm_ll=adm_ll&Request.Form("ll")(i)
 next
 rs.addnew
 select case Request.Form("img")
  case "hot"
  title=Request.Form("title")&"<img src=hot.gif class=unnamed1>"
  case "new"
  title=Request.Form("title")&"<img src=new.gif class=unnamed1>"
  case else:
  title=Request.Form("title")
 end select
 rs("title")=title
 rs("name")=Trim(Request("name"))
 body=replace(request("body"),vbcrlf,"<br>")
 rs("body")=body
 rs("ll")=adm_ll
 rs.update
 rs.close
 ms="["&Trim(Request.Form("ll"))&"]　发表的成功提交........."
 %>
 <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><a href="adm_1.asp" target="mainFrame"><strong>首页公告管理</strong></a></p>
<p>&nbsp;</p>
<form name="form1" method="post" action="adm_1.asp?w=save">
  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr bgcolor="#000066"> 
      <td height="18" colspan="2"> <div align="left"><font color="#FFFFFF"><strong>网站公告相关信息发布</strong></font></div></td>
    </tr>
    <tr> 
      <td width="133" height="26">公告标题:</td>
      <td width="594"><input name="title" type="text" id="title">
        支持html </td>
    </tr>
    <tr>
      <td height="26">加入图片:</td>
      <td>
<select name="img" id="img">
          <option value="0" selected>不加任何图</option>
          <option value="hot">加入hot图</option>
          <option value="new">加入new图</option>
        </select>
        插入在标题后面的小图标用来强调..</td>
    </tr>
    <tr> 
      <td height="26">发 布 者:</td>
      <td><input name="name" type="text" id="name" value="本站站长">
        支持html </td>
    </tr>
    <tr> 
      <td height="85">显示栏目:</td>
      <td><table width="77%" border="0" cellpadding="0" cellspacing="2">
          <tr> 
            <td width="6%"> <div align="center"> 
                <input name="ll" type="checkbox" class="unnamed1" id="ll" value="0">
              </div></td>
            <td width="26%">首页新闻</td>
            <td width="8%"> <div align="center"> 
                <input name="ll" type="checkbox" class="unnamed1" id="ll" value="1">
              </div></td>
            <td width="27%">首页公告</td>
            <td width="8%"> <div align="center"> 
                <input name="ll" type="checkbox" class="unnamed1" id="ll" value="2">
              </div></td>
            <td width="25%">域名注册</td>
          </tr>
          <tr> 
            <td height="17"><div align="center"> 
                <input name="ll" type="checkbox" class="unnamed1" id="ll" value="3">
              </div></td>
            <td>虚拟主机</td>
            <td><div align="center"> 
                <input name="ll" type="checkbox" class="unnamed1" id="ll" value="4">
              </div></td>
            <td>主机租用</td>
            <td><div align="center"> 
                <input name="ll" type="checkbox" class="unnamed1" id="ll" value="5">
              </div></td>
            <td>网站开发</td>
          </tr>
          <tr> 
            <td><div align="center"> 
                <input name="ll" type="checkbox" class="unnamed1" id="ll" value="6">
              </div></td>
            <td>企业邮局</td>
            <td><div align="center"> 
                <input name="ll" type="checkbox" class="unnamed1" id="ll" value="7">
              </div></td>
            <td>网站推广</td>
            <td><div align="center"> 
                <input name="ll" type="checkbox" class="unnamed1" id="ll" value="8">
              </div></td>
            <td>代理中心</td>
          </tr>
          <tr> 
            <td><div align="center"> 
                <input name="ll" type="checkbox" class="unnamed1" id="ll" value="9">
              </div></td>
            <td>支付方式</td>
            <td><div align="center"></div></td>
            <td>&nbsp;</td>
            <td><div align="center"></div></td>
            <td>&nbsp;</td>
          </tr>
        </table></td>
    </tr>
    <tr> 
      <td height="26">公告内容:</td>
      <td><p> 
          <textarea name="body" cols="50" rows="12" id="body"></textarea>
          支持html<font color="#FF0000"> </font></p>
        <p>&nbsp;</p></td>
    </tr>
    <tr bgcolor="#000066"> 
      <td height="20"><font color="#000066">&nbsp;</font></td>
      <td> <p> <font color="#000066"> 
          <input type="submit" name="Submit" value="确定发表">
          </font></p></td>
    </tr>
  </table>
<p>&nbsp;</p></form>
<p>&nbsp;</p>
<p align="center"><font color="#FF0000"><%= ms  %></font> </p>
</body>
</html>
