<?php
	session_start();
 if($_GET[pid]!=""){ $_SESSION["pid"]=$_GET[pid]; }
	include "conn/conn.php";
	?>
<script language="javascript">
  function selectcity(x){
   if(x!="请选择"){
      window.location.href='trans.php?&pid='+x;
	 }
  }
</script>
<table width="488" height="480" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                          <td height="15" colspan="2"><font style="color:#000000; font-size:13px; ">上 传 清 单</font></td>
                        </tr>
						<form action="trans_chk.php" method="post" enctype="multipart/form-data" name="list">
					
                        <tr>
                          <td height="20" align="right" valign="top">图片信息：</td>
                          <td height="20" valign="top">
						      <input name="picture" type="file">
						      <br /><font color="red">(上传图片大小不能超过700K)</font></td>
                        </tr>
                        <tr>
                          <td height="20" align="right" valign="top">上传数据：</td>
                          <td height="20" valign="top">						 
						      <input name="address" type="file">
						      <br /><font color="red">(音频文件不能超过10M)</font></td>
                        </tr>
			
            <tr>
              <td height="20"><div align="right">上传歌词：</div></td>
              <td height="20"><input name="lyric" type="file" size="20" />
                （歌词为.lrc格式的文件）</td>
            </tr>
            <tr>
                          <td width="109" height="20">
                  <div align="right">歌曲名称：</div>                            </td>
                          <td width="379" height="20">
                            <input name="names" type="text"  id="names" size="25">
            * 请填写歌曲的完整名称 </td>
                        </tr>
                        <tr>
                          <td height="20"><div align="right">演唱者：</div></td>
                          <td height="20">
                            <input name="actor" type="text"  id="actor" size="30">
            *</td>
                        </tr>
                        <tr>
                          <td height="20"><div align="right" >演唱者类型：</div></td>
                          <td height="20">
                            <div align="left">
                    <input type="radio" name="actortype" value="个人" checked>
                    个人
                    <input type="radio" name="actortype" value="组合">
组合
<input type="radio" name="actortype" value="乐队">
乐队                    *</div></td>
                        </tr>
                        <tr>
                          <td height="20"><div align="right">作词：</div></td>
                          <td height="20">
                            <input name="ci" type="text" >
*                          </td>
                        </tr>
                        <tr>
                          <td height="20"><div align="right">作曲：</div></td>
                          <td height="20">
                            <input name="qu" type="text" >
*                          </td>
                        </tr>
                        <tr>
                          <td height="20"><div align="right">发行商：</div></td>
                          <td height="20">
                            <input name="publisher" type="text"  id="publisher" size="30">
            *</td>
                        </tr>
                        <tr>
                          <td height="20"><div align="right">语言：</div></td>
                          <td height="20">
                          <div align="left" >
                      <input type="radio" name="language" value="中文" checked> 
                      中文
                      <input type="radio" name="language" value="英文">
                      英文
                      <input type="radio" name="language" value="韩语"> 
                      韩语
                      <br>
                      <input type="radio" name="language" value="日语"> 
                      日语
                      <input type="radio" name="language" value="德语">
                      德语
                      <input type="radio" name="language" value="法语"> 
                      法语 *</div>            </td>
                        </tr>
                         <tr>
                              <td height="20"><div align="right">一级分类：</div></td>
                          <td height="20">
        <select name="type_1"  id="type_1"  onChange="selectcity(this.value);" >
  <option  value="请选择"> 请选择</option>	
<?php $sql="select * from tb_videolist ";
		$rst=$conn->execute($sql);
		while(!$rst->EOF){
?>
		<option value="<?php  echo $rst->fields[3]; ?> "  <?php
	  if($_SESSION["pid"]!="") {
	     if($_SESSION["pid"]==$rst->fields[3]){
	      echo "selected=\"selected\""; 
	    }
	   }?>><? echo $rst->fields[3]; ?></option>
<?php
		$rst->movenext();
		}
?>
        </select>
*</td> 
                        </tr>
						                        <tr>
                

     <td height="20"><div align="right">二级分类：</div></td>
                          <td height="20">
        <select name="style"  id="style" >
<?php $sql="select * from tb_videolist where grade='2' and father='".$_GET[pid]."'";
		$rst=$conn->execute($sql);
		while(!$rst->EOF){
?>
		<option value="<?php echo $rst->fields[2]; ?>"><? echo $rst->fields[2]; ?></option>
<?php
		$rst->movenext();
		}
?>
        </select>
*</td>
                        </tr>
                        <tr>
                          <td height="20"><div align="right">发行国家：</div></td>
                          <td height="20">
                            <input name="from" type="text"  id="from" size="30">
            *</td>
                        </tr>
                        <tr>
                          <td height="20"><div align="right">发行时间：</div></td>
                          <td height="20">
                            <input name="publishtime" type="text"  id="publishtime" size="30">
            *</td>
                        </tr>

                        <tr>
                          <td height="20"><div align="right">简要介绍：</div></td>
                          <td height="20">
                            <textarea name="remark" cols="35" rows="3"  id="remark"></textarea>
				
            *</td>
                        </tr>
                        <tr>
                          <td height="30" colspan="2">
                              <input name="Submit" type="submit"  value="  添  加">
                              （*为必填项）
                              <input name="Submit2" type="button"  value="返  回  " onClick="javascript:top.window.close()">                          </td>
                        </tr>
			  </form>
</table>