
<!--#include file="conn.asp"-->
<!--#include file="../inc/const.asp"-->
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<title>修 改 直 播 节 目 简 介</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<%
dim rs
dim sql
dim count
set rs=server.createobject("adodb.recordset")
sql = "select * from njnews order by id asc"
rs.open sql,conn,1,1
%>
<SCRIPT language = "JavaScript">
var onecount;
onecount=0;
subcat = new Array();
        <%
        count = 0
        do while not rs.eof 
        %>
subcat[<%=count%>] = new Array("<%= trim(rs("newsnote"))%>","<%= trim(rs("id"))%>");
        <%
        count = count + 1
        rs.movenext
        loop
        rs.close
        %>
onecount=<%=count%>;

function changelocation(locationid)
    {
    document.myform.Nclassid.length = 0; 

    var locationid=locationid;
    var i;
    for (i=0;i < onecount; i++)
        {
            if (subcat[i][1] == locationid)
            { 
                document.myform.Nclassid.options[document.myform.newsid.length] = news Option(subcat[i][0], subcat[i][2]);
            }        
        }
        
    }    
</SCRIPT>
<body bgcolor=#800000>
<form method="POST"  name="myform"  action="<%=okurlv42d%>adminsave3.asp?id=<%=request("id")%>&action=edit">
  <TABLE width="80%" border="0" align="center" cellspacing="1">
    <TR align="center"> 
      <TD colspan="4" height="25" bgcolor="#008000"><b><FONT color="#FFFFFF">修 
        改 直 播 节 目 简 介</FONT></b></TD>
    </TR>
    <%
	sql="select * from njnews where id="&request("id")
	rs.open sql,conn,1,1
%>
    <tr bgcolor="#a5d0dc"> 
      <td width="13%" align="right" valign="top" bgcolor="#008000"><b>节目简介：</b></td>
      <td bgcolor="#008000"> 
        <textarea rows="6" name="newsnote" cols="60" class="smallarea">
<%
	content=replace(rs("newsnote"),"<br>",chr(13))
	content=replace(content,"&nbsp;"," ")
	response.write content
%>
	</textarea>
        <FONT color="#FF0000">**<br>  
        </FONT><font color="#FFFFFF"> 
        例子： <br>
        节目名: 星空倾情 主持人: 小文 <br>  
        节目时段: 22:00 - 23:59 电台QQ:4934639 <br>  
        节目主题：（15字内）</font></td>
    </tr>
  </table>
          
  <div align="center"><center><p><input type="submit" value=" 添 加 "
  name="cmdok" class="buttonface">&nbsp; <input type="reset" value=" 清 除 " 
  name="cmdcancel" class="buttonface"></p>
  </center></div>
</form>
</body>
</html>
<%
	set rs=nothing
	conn.close
	set conn=nothing
%>