<%
if session("admin")="" then
  response.redirect "admin.asp"
end if
%>
<!--#include file="connt.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 "
rs.open sql,conn,1,1
%><SCRIPT language = "JavaScript">
var onecount;
onecount=0;
subcat = new Array();
        <%
        count = 0
        do while not rs.eof 
        %>

        <%
        count = count + 1
        rs.movenext
        loop
        rs.close
        %>
onecount=<%=count%>;

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

    var locationid=locationid;
    var i;
    for (i=0;i < onecount; i++)
        {
            if (subcat[i][1] == locationid)
            { 
                document.myform.newsid.options[document.myform.newssid.length] = new Option(subcat[i][0], subcat[i][2]);
            }        
        }
        
    }    
</SCRIPT>
<SCRIPT language="javascript">
<!--
function CheckForm()
{
	document.myform.txtcontent.value=document.myform.doc_html.value;
	return true
}
//-->
</SCRIPT>
<body bgcolor=#800000>
<form method="POST" name="myform" action="<%=okurlv42d%>adminsave3.asp?action=add">
  <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>    
    <tr> 
      <td width="15%" align="right" valign="top" nowrap bgcolor="#008000"><b><font color="#FFFFFF">节目简介：</font></b></td>
      <td width="85%" colspan="3" bgcolor="#008000"><font color="#FF0000"> 
        <textarea rows="6" name="newsnote" cols="60" class="smallarea"></textarea>
        <br> </font><font color="#FFFFFF">例子如下：<br>
        节目名: 星空倾情 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;主持人: 小文 <br>  
        广播时段: 22:00 - 23:59 &nbsp;&nbsp;电台QQ:4934639</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>
