<!-- #include file="../../themes/admin/~css.php" -->
<form id="form" style="width:600px;" action="<?=url(RPG.'admin/upload/?iframe')?>" method="post" enctype="multipart/form-data" onsubmit="return yun_submit(this.id)">
<h3 class="title">上传文件 </h3>
<div class="in">
<div class="fieldwrapper">
	<label for="" class="styled">本地文件</label>
	<div class="thefield">
    <input type="file" size="20" name="upfile" />
    </div>
</div>

<div class="buttonsdiv">
	<input value="提交" type="submit" class="button"> 
    <input value="重置" type="reset" class="button">
</div>

</div>
</form>
<br />
<form style="width:600px;">
<h3 class="title">附件列表</h3>
<div class="in">
<table width="100%">
    <thead>
      <tr>
        <th>文件路径</th>
        <th width="100">缩略图</th>
        <th width="60">&nbsp;</th>
      </tr>
    </thead>
    <tbody>
      <?php foreach($arg_0 as $k=>$v){?>
      <tr id="ls_<?=$id?>">
        <td><input type="text" value="<?=html($v[1])?>" style="width:400px;float: left;"/></td>
        <td><?php if($v[0]){?><img style="float: right;" src="<?=$v[1]?>" width="80" height="80" /><?php }?></td>
        <td><a style="float:left" onclick="yun_send('<?=url(RPGM.'upload/?ajax&del='.$v[2])?>','要删除吗?');return false;" href="javascript:void(0)">删除</a></td>
        </tr>     
      <?php }?>
    </tbody>
  </table>
</div>
</form>

