
<!--#include file="conn.asp"-->
<!--#include file="../inc/const.asp"-->
<%
if session("admin")="" then
  response.redirect "admin.asp"
end if
%>

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<title>阳光电台V2.0商业版</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 Nclass order by Nclassid 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("Nclass"))%>","<%= trim(rs("classid"))%>","<%= trim(rs("Nclassid"))%>");
        <%
        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.Nclassid.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 topmargin="0">
<form method="POST" name="myform" action="<%=okurlv42d%>adminsave.asp?action=add">
 <TABLE width="602" border="0" align="center" cellspacing="1">
 <TR align="center">
 <TD colspan="4" height="25" bgcolor="#008000" width="594"><b><FONT color="#FFFFFF">添 加  
  电 台 节 目&nbsp;</FONT></b></TD>                
 </TR>
 <TR>
 <TD align="right" width="76" nowrap bgcolor="#008000" height="30"><B><font color="#FF0000">
节目频道</font>：</B></TD>
 <TD width="225" bgcolor="#008000" height="30">
			<%
        sql = "select * from class"
        rs.open sql,conn,1,1
	if rs.eof and rs.bof then
	response.write "请先添加栏目。"
	response.end
	else
%>
				<SELECT name="classid" onChange="changelocation(document.myform.classid.options[document.myform.classid.selectedIndex].value)" size="1">
				<OPTION selected value="">=请选择栏目=</OPTION><% 
        do while not rs.eof
%><OPTION value="<%=trim(rs("classid"))%>"><%=trim(rs("class"))%></OPTION>
                 <%
        rs.movenext
        loop
	end if
        rs.close
        set rs = nothing
        conn.Close
        set conn = nothing
%></SELECT> 
 </TD>
 <TD align="right" width="76" bgcolor="#008000" height="30"><B><font color="#FFFFFF">选择分类：</font></B></TD>
 <TD width="225" bgcolor="#008000" height="30">
<SELECT name="Nclassid">
		 <OPTION selected value="">==请选分类==</OPTION>
	  </SELECT>
 </TD>               
 </TR>               
                    
 <tr>            
                         
 <td width="76" align="right" height="30" nowrap bgcolor="#008000">
 <font color="#FF0000"><b>NJ主持</b></font><b>：</b></td>              
 <td width="225" height="30" bgcolor="#008000">              
 <input type="text" name="txtshowname" size="33"              
          class="smallinput" maxlength="100" value="a">              
 </td>               
 <td width="76" height="30" bgcolor="#008000">              
 <p align="right"><b><font color="#FFFFFF">节目名：</font></b></td>               
 <td width="225" height="30" bgcolor="#008000">              
 <input type="text" name="txtbb" size="33"             
          class="smallinput" maxlength="100">             
 </td>               
 </tr>            
                    
 <tr>             
                       
 <td width="76" align="right" height="30" nowrap bgcolor="#008000"><font color="#FFFFFF">无效</font></td>            
 <td width="450" height="30" colspan="3" bgcolor="#008000">            
        
     
 [<input type="radio" value="" name="movie" checked>]      
 </td>              
 </tr>              
                      
 <tr>             
                       
 <td width="76" align="right" height="30" nowrap bgcolor="#008000"><b><font color="#FF0000">
 节目地址1</font>：</b></td>            
 <td width="450" height="30" colspan="3" bgcolor="#008000">            
 <input type="text" name="txtfilename" size="82"            
          class="smallinput" maxlength="100" value="<%=downdir1%>"><a href="../admin_uploadfile.asp">上传文件</a>            
 </td>               
 </tr>         
 
  <tr>             
                       
 <td width="76" align="right" height="30" nowrap bgcolor="#008000"><b><font color="#FF0000">节目1说明</font>：</b></td>            
 <td width="450" height="30" colspan="3" bgcolor="#008000">            
 <input type="text" name="txtname" size="82"            
          class="smallinput" maxlength="100" value="1">            
 </td>               
 </tr>       
                       
 <tr bgcolor="#cce6ed">               
	                 
 <td width="76" align="right" height="30" nowrap bgcolor="#008000"><b><font color="#FFFFFF">推荐度：</font></b></td>               
 <td width="450" height="30" colspan="3" bgcolor="#008000">               
 <font color="#FFFFFF">               
 1星.<input type="radio" value="1" name="hot">&nbsp;&nbsp;&nbsp; 2星.<input type="radio" value="2" name="hot">&nbsp;&nbsp;&nbsp;                 
 3星.<input type="radio" value="3" name="hot">&nbsp;&nbsp;&nbsp; 4星.<input type="radio" value="4" name="hot">&nbsp;&nbsp;&nbsp;                 
 5星</font>.<input type="radio" value="5" name="hot" checked><!--<input type="text" name="hot" size="60" class="smallinput" maxlength="100" value="3">-->               
 </td>               
 </tr>               
	               
 <tr>               
	                 
 <td width="76" align="right" height="30" nowrap bgcolor="#008000"><b><font color="#FFFFFF">节目大小：</font></b></td>               
 <td width="225" height="30" bgcolor="#008000">               
 <!--<input type="text" name="system" size="60" class="smallinput" maxlength="100" value="Win98/2000+PWS4&NT+IIS4/5">--><input type="text" name="size" size="20"               
          class="smallinput" maxlength="100">               
 </td>               
 <td width="76" height="30" bgcolor="#008000" align="right">               
 <p align="right"><b><font color="#FFFFFF">运行环境：</font></b>               
 </td>               
 <td width="225" height="30" bgcolor="#008000">               
 <select name="system" size="1">
  <option value="Win9x/WinNT/Win2000/WinXP/Win.NET/WinME" name="system">Win9x/WinNT/Win2000/WinXP/Win.NET/WinME</option>
  <option value="Win9x/WinNT/Win2000/WinXP/WinME" name="system" selected>Win9x/WinNT/Win2000/WinXP/WinME</option>
  <option value="Win9x/WinNT/Win2000/WinME" name="system">Win9x/WinNT/Win2000/WinME</option>
  <option value="Win9x/WinNT/Win2000" name="system">Win9x/WinNT/Win2000</option>
  <option value="Windows9x/NT" name="system">Win9x/WinNT</option>
  <option value="Win9x/WinME" name="system">Win9x/WinME</option>
  <option value="WinNT/Win2000" name="system">WinNT/Win2000/winXP</option>
  <option value="ASP环境" name="system">ASP环境</option>
  <option value="PHP环境" name="system">PHP环境</option>
  <option value="CGI环境" name="system">CGI环境</option>
  <option value="JSP环境" name="system">JSP环境</option>
  <option value="Linux环境" name="system">Linux环境</option>
 </select> 不要选择</td>                                
 </tr>               
	               
 <tr bgcolor="#cce6ed">               
	                 
 <td width="76" align="right" height="30" nowrap bgcolor="#008000"><b><font color="#FFFFFF">NJ信箱：</font></b></td>               
 <td width="225" height="30" bgcolor="#008000">               
 <input type="text" name="fromurl" size="33"               
          class="smallinput" maxlength="100">               
 </td>               
 <td width="76" height="30" align="right" bgcolor="#008000"><B><font color="#FFFFFF">节目图片：</font></B></td>               
 <td width="225" height="30" bgcolor="#008000">               
 <INPUT type="text" name="images" size="33"               
          class="smallinput" maxlength="160" value="1"> <a href="../admin_uploadfile.asp"> 
 上传图片</a></td>               
 </tr>               
	               
 <tr bgcolor="#a5d0dc">               
	                 
 <td width="76" align="right" height="30" nowrap bgcolor="#008000"><b><font color="#FFFFFF">制作形式：</font></b></td>               
 <td width="450" height="30" colspan="3" bgcolor="#008000">               
 <select name="order" size="1">               
  <option value="电台嘉宾" name="order">电台嘉宾</option>               
  <option value="阳光电台" selected>阳光电台</option>
 </select>               
 <font color="#FFFFFF">               
 <!--<input type="text" name="order" size="60" class="smallinput" maxlength="100" value="免费">-->               
 是否推荐                
 <input type="checkbox" name="hots" value="on">               
	是否图片精品推荐</font>                
 <input type="checkbox" name="hide" value="on">               
	</td>               
 </tr>               
                       
 <tr>               
                         
 <td width="76" align="right" valign="top" nowrap bgcolor="#008000"><b><font color="#FF0000">
 节目简介：</font></b></td>               
 <td width="450" colspan="3" bgcolor="#008000">               
 <FONT color="#FF0000">               
 <textarea rows="1" name="txtnote" cols="82" class="smallarea">a</textarea>               
 </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>