www.gusucode.com > 星云DJ舞曲 4.5a源码程序 > admin/admin_specialadd.asp

    <!--#include file="conn.asp"-->
<!--#include file="function.asp"-->
<!--#include file="checkadmin.inc"-->
<%
Classid=cstr(trim(request.QueryString("classid")))
%>
<html>
<head>
<title>迪吧后台管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="Admin_Style.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="2" topmargin="0" marginwidth="0" marginheight="0">
        <form method="POST" action="admin_SpecialSave.asp" id=form2 name=special>
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="border" id="AutoNumber2">
  <tr class="topbg"> 
    <td height="22" colspan="2" align="center"><strong>添 加 专 辑</strong></td>
  </tr>
</table>
  <table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="border" id="AutoNumber3">
    <tr class="tdbg"> 
      <td width="20%" align="right"><strong>选择分类:</strong></td>
      <td width="80%">&nbsp;&nbsp;一级栏目:
              <select name="classid" size="1" onchange="window.open('admin_Specialadd.asp?classid='+this.options[this.selectedIndex].value,'_self')">
                <option value="" <%if classid="" then%> selected<%end if%>>选择栏目</option>
<%
set rs=server.createobject("adodb.recordset")
sql="select * from class"
rs.open sql,conn,1,1
Do while not rs.eof
%>
                <option<%if classid=cstr(rs("classid")) and classid<>"" then%> selected<%end if%> value="<%=Cstr(rs("classid"))%>"><%=rs("class")%></option>
<%
rs.MoveNext
Loop
rs.close
%>            </select></td>
    </tr>
    <tr class="tdbg"> 
      <td width="20%" align="right"><strong>专辑名称:</strong></td>
      <td width="80%"><input type="text" name="name" size="20"></td>
    </tr>
    <tr class="tdbg"> 
      <td width="20%" align="right"><strong>专辑图片:</td>
      <td width="80%"><input type="text" name="pic" size="50" value="<%=pic%>"></td>
      <tr class="tdbg"> 
      <td width="20%" align="right"><strong>发布网站:</td>
      <td width="80%"><input type="text" name="gongsi" size="50"></td>
      <tr class="tdbg"> 
      <td width="20%" align="right"><strong>专辑语言:</td>
      <td width="80%"><input type="text" name="yuyan" size="50"></td>
      <tr class="tdbg"> 
      <td width="20%" align="right"><strong>专辑作者:</td>
      <td width="80%"><input type="text" name="zuozhe" size="50"></td>
      <tr class="tdbg"> 
      <td width="20%" align="right"><strong>所属分类:</td>
      <td width="80%"><input type="text" name="ClassName" size="50"></td>
      <tr class="tdbg"> 
      <td width="20%" align="right"><strong>专辑状态:</td>
      <td width="80%"><input type="text" name="zhuangtai" size="50"></td>
      <tr class="tdbg"> 
      <td width="20%" align="right"><strong>联系作者:</td>
      <td width="80%"><input type="text" name="DjQq" size="50"></td>
      <tr class="tdbg"> 
      <td width="20%" align="right"><strong>发行时间:</td>
      <td width="80%"><input type="text" name="dateandtime" size="50" value="<%=date()%>"></td>
  </tr>
    <tr class="tdbg"> 
      <td width="20%" align="right"><strong>专辑简介:</strong></td>
      <td width="80%"><TEXTAREA name="intro" rows=5 cols="66"></TEXTAREA></td>
    </tr>
    <tr class="tdbg"> 
      <td height="22" colspan="2" align="center" class="title"><input type="hidden" value="add" name="act"> 
<%if Classid="" then%>
              <input type="button" value=" 确 定 " name="cmdok" onclick="window.alert('请先选择栏目!')">&nbsp; 
<%else%>
              <input type="submit" value=" 确 定 " name="cmdok">&nbsp; 
<%end if%>
              <input type="reset" value=" 取 消 " name="cmdcancel">
        </td>
    </tr>
  </table>
</form>
</body> 
</html> 
<%
set rs=nothing
conn.close
set conn=nothing
%>