<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>下载管理</title>
<link href="<{$css_root}>images/admincp.css" rel="stylesheet" type="text/css" />
<script language="javascript">
function OpenDialog(url)
{
       return window.showModalDialog(url,window, "DialogWidth:450px;DialogHeight:450px;help:no;status:no");
}
</script>
</head>
<body>
<div id="append_parent"/>
<div id="cpcontainer" class="container">
  <div class="itemtitle">
    <h3>下载管理</h3>
    <ul class="tab1">
      <li> <a href="download.php?act=show"> <span>下载列表</span> </a> </li>
      <li> <a href="download.php?act=add"> <span>添加下载</span> </a> </li>
    </ul>
  </div>
 <form id="form" action="download.php?act=editok" method="post" name="form">
 <input type="hidden" value="<{$down_id}>" name="down[id]" />
    <table class="tb tb2">
      <tbody>
        <tr>
          <td class="td27" colspan="2">文件名称:</td>
        </tr>
        <tr class="noborder">
          <td class="vtop rowform"><input class="txt" type="text" value="<{$down_title}>" name="down[title]"/>
       </td>
          <td class="vtop tips2">填写下载文件的名字，这个名字将显示在下载列表</td>
        </tr>
        <tr>
          <td class="td27" colspan="2">选择文件:</td>
        </tr>
        <tr class="noborder">
          <td class="vtop rowform"><input class="txt" type="text" id="downfile" value="<{$down_file}>"name="down[file]"/><input type="button" class="btn" value="更改" onclick="OpenDialog('open_onefile.php')"/>
       </td>
          <td class="vtop tips2">如果你更改了文件，那么原来的文件将被删除</td>
        </tr>
        <tr>
          <td class="td27" colspan="2">所属分类:</td>
        </tr>
        <tr class="noborder">
          <td class="vtop rowform"><select name="down[catid]">
              <{section name=cates loop=$downcatelist}> <{if $downcatelist[cates].catid eq $down_catid}>
              selected="selected" <{else}> <{/if}>
              value="<{$downcatelist[cates].catid}>"><{$downcatelist[cates].name}><{if $downcatelist[cates].catid eq $down_catid}>
              selected="selected" <{else}> <{/if}>
              value="<{$downcatelist[cates].catid}>"><{$downcatelist[cates].name}>
              <option 
              <{if $downcatelist[cates].catid eq $down_catid}>
              selected="selected" <{else}> <{/if}>
              value="<{$downcatelist[cates].catid}>"><{$downcatelist[cates].name}>
              </option>
              <{/section}>
            </select>      </td>
          <td class="vtop tips2">单页名称，这个页面的名字，将显示在分类和网页的标题中</td>
        </tr>
        <tr>
          <td class="td27" colspan="2">显示顺序:</td>
        </tr>
        <tr class="noborder">
          <td class="vtop rowform"><input class="txt" type="text" value="<{$down_disp}>" name="down[displayorder]"/>          </td>
          <td class="vtop tips2">数值越大越往后，建议不要超过250</td>
        </tr>
        
        <tr>
        <td class="td27" colspan="2">下载说明:</td>
      </tr>
      <tr class="noborder">
        <td colspan="2" ><textarea name="down[note]" rows="10" cols="50"><{$down_note}></textarea>
        </td>
        </tr>
        <tr>
          <td colspan="2"><input class="btn" type="submit" value="提交" name="submit"/>          </td>
        </tr>
      </tbody>
    </table>
  </form>
</div>
</body>
</html>
