<link href="css/downmember.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="js/downmember.js"></script>
<script language="javascript" src="{#CP#}js/multicat.js"></script>
<div  id="notice" class="noticediv"></div>

<form id="downModify" method="post" action="" enctype="multipart/form-data" name="form">
<table width="100%" border="0" cellspacing="1" cellpadding="2" class="downmodizone">
  
        <tr >
                        <td width="80" align="center" height="24">个人分类</td>
          <td height="22"  style="color:#666666">
                          <select  name="pcatid" >
					    <option value="0">请选择分类</option>
							{#pcatlist#}
                          </select> &nbsp; <a href="down_cat.php">添加自定义分类</a>            
		  </td>
    </tr>
          <tr >
    <td width="80" height="24" align="center">下载分类</td>
    <td height="22"  style="color:#666666">
	<select id="selcatid"  name="catid" >
	<option value="0">只发布到个人资源下载区</option>
	{#catlist#}
     </select>
    </td>
  	</tr>
  		<tr > 
            <td width="80" align="center" height="24">下载名称</td>
          <td height="22"  style="color:#666666"> 
              <input type="text" name="title"  class="input"  value="{#title#}" style="width:399px" />
            <span style="color:#ff0000">*</span> </td>
    </tr>
	
	 <tr> 
      <td height="30" width="80" align="center" >文件上传</td>
      <td height="30" valign=top> 
        
          <input id="divsuo" type="file" name="file" style='WIDTH: 399px;display:none' class="input" />
          <input id="divurl" type="text" name="fileurl" style='WIDTH: 399px;' value="{#fileurl#}" class="input" />
          <input type="radio" name="addtype" value="addurl" checked onClick="document.getElementById('divurl').style.display='inline';document.getElementById('divsuo').style.display='none';">
        链接网址
        <input type="radio" name="addtype" value="addfile" onClick="document.getElementById('divurl').style.display='none';document.getElementById('divsuo').style.display='inline';">
       上传文件
      </td>
    </tr>
  </table>
	<div id="proplist" class="downmodizone"></div>
	<table width="100%" border="0" cellspacing="1" cellpadding="2" class="downmodizone">

  <tr >
    <td width="80" align="center">简要描述</td>
    <td height="22" style="color:#666666">
	<textarea name="memo" style="WIDTH: 399px;font-size:12px;" class="textarea" rows="3">{#memo#}</textarea></td>
  </tr>
		  
	
  </table>
	
	<table width="100%" border="0" cellspacing="1" cellpadding="2" >
          <tr > 
		  
            <td width="80" align="center">详细介绍</td>
            <td height="22" style="color:#666666"> 
              <input type="hidden" name="body" value="{#body#}" />
			 <div id="kedit" style="position:relative">
			<script type="text/javascript" src="{#RP#}kedit/memberEditor.js"></script>
            <script type="text/javascript">
            var editor = new KindEditor("editor");
            editor.hiddenName = "body";
            editor.editorWidth = "560px";
            editor.editorHeight = "250px";
            editor.skinPath = "{#RP#}kedit/skins/default/";
			editor.uploadPath = "{#RP#}down/upload.php";
			editor.imageAttachPath="down/pics/";
            editor.iconPath = "{#RP#}kedit/icons/";
            editor.show();
            function KindSubmit() {
	          editor.data();
            }
             </script>
			  </div>
            </td>
          </tr>
		  
          <tr >
            <td width="80" align="center" >&nbsp;</td>
            <td ><div id="downpages"></div></td>
          </tr>
          <tr >
  </table>
	
	<table width="100%" border="0" cellspacing="1" cellpadding="2" class="downmodizone">
            <td align="center" width="80">自定标签</td>
            <td >
			<input name="tags[]" type="text" class="input" id="tags"  value="{#tags0#}" size="10" />
			<input name="tags[]" type="text" class="input" id="tags"  value="{#tags1#}" size="10" />
			<input name="tags[]" type="text" class="input" id="tags"  value="{#tags2#}" size="10" />
			<input name="tags[]" type="text" class="input" id="tags"  value="{#tags3#}" size="10" />
			<input name="tags[]" type="text" class="input" id="tags"  value="{#tags4#}" size="10" />
			</td>
          </tr><tr >
                     <td align="center" >所属专题</td>
                       <td  style="color:#666666" >
						<table cellspacing=0 cellpadding=0><tr><td >
						<select style="WIDTH: 239px;" multiple size="5" name="spe_funct">
						{#musellist#}
						</select></td><td width=20>
						<input class="button" onClick="JavaScript:AddItem('spe_funct', 'spe_selec[]')" type="button" value="添加" name="Input">
						<input class="button" onClick="JavaScript:DelItem('spe_selec[]')" type="button" value="删除" name="Input">
				</td>
				<td>
				  <select  style="WIDTH: 239px" multiple size="5" name="spe_selec[]">
				  {#munowlist#}
				  </select>
				  </td></tr></table>
				  
					   </td>
                      </tr>
		  
            <tr>
              <td align="center" >交易积分</td>
              <td  style="color:#666666" >
			  			<select name="downcentid">
	    				{#centlist#}
	    				</select>
						<input name="downcent" type="text" class="input" id="downcent"  value="{#downcent#}" size="3" maxlength="5" />
			&nbsp;用户下载本资源时需要支付给您的交易积分，交易佣金{#centyj#}%
			  </td>
            </tr>
            <td width="80" align="center" >&nbsp;</td>
            <td height="35" valign="bottom"  style="color:#666666" > 
              <input type="submit" name="Submit2" onClick="KindSubmit();"  value="提交" class="submit" />
              <input type="hidden" id="act" name="act" value="downmodify" />
              <input type="hidden" id="nowid" name="id" value="{#id#}" />
			  <input id="author" type="hidden" name="author"  value="{#author#}"  />
              <input id="source"  type="hidden" name="source"  value="{#source#}"  />
            </td>
          </tr>
       
  </table>
</form>
<script>
$(function(){
$().getPropList();
$().getDownPages(0);
});
</script>
