<?php require_once("admin_public.php");?>
<div class="admin_bread">当前位置：文件信息</div>
<div class="admin_right">
  <div class="admin_main">
    <form action="result.php" method="post" name="admin_info" class="admin_info_form">
      <div class="admin_info" id="info_a">
        <h4 class="h1">文件信息</h4>
        <div class="admin_table">
        <?php 
		$viewid=$_GET['id'];
		$result=file_view($viewid);
		while($files=mysql_fetch_array($result))
		{
		?>
          <table width="100%">
            <tr>
              <td class="td1">文件编号</td>
              <td class="td2"><?php echo $files['id'];?><input type="hidden" name="id" value="<?php echo $files['id'];?>" /></td>
            </tr>
            <tr>
              <td class="td1">文件名称</td>
              <td class="td2"><input type="text" name="name" value="<?php echo $files['name'];?>" /></td>
            </tr>
            <tr>
              <td class="td1">文件大小</td>
              <td class="td2"><?php echo size_info($files['size']);?><span></span></td>
            </tr>
            <tr>
              <td class="td1">文件类型</td>
              <td class="td2"><?php echo $files['type'];?></td>
            </tr>
            <tr>
              <td class="td1">上传时间</td>
              <td class="td2"><?php echo date('Y.m.d H:s',$files['up']);?></td>
            </tr>
            <tr>
              <td class="td1">最后下载</td>
              <td class="td2"><?php echo date('Y.m.d H:s',$files['dt']);?></td>
            </tr>
            <tr>
              <td class="td1">下载次数</td>
              <td class="td2"><?php echo $files['down'];?><span>次</span></td>
            </tr>
            <tr>
              <td class="td1">文件密码</td>
              <td class="td2"><input type="text" name="pass" value="<?php echo $files['pass'];?>" /></td>
            </tr>
            <tr>
              <td class="td1">下载密码</td>
              <td class="td2"><input type="text" name="po" value="<?php echo $files['po'];?>" /></td>
            </tr>
            <tr>
              <td class="td1">密码保护开关</td>
              <td class="td2"><input type="text" name="pro" value="<?php echo $files['pro'];?>" /><span>0为关闭,1为开启</span></td>
            </tr>
            <tr>
              <td class="td1">详细描述</td>
              <td class="td2"><textarea name="des" style=" margin-bottom:10px;"><?php echo $files['des'];?></textarea></td>
            </tr>
            <tr>
              <td class="td1">&nbsp;</td>
              <td class="td2"><input type="submit" value="更新" class="submit" name="files_update" /></td>
            </tr>
          </table>
          <?php
		}
		  ?>
        </div>
      </div>
    </form>
  </div>
</div>
<?php require_once("admin_footer.php");?>