<!--
<?php
print <<<EOT
--> 
<div class="MainContainers">
  <div class="Header"><span class="tag">附件管理</span><span class="more">&gt;&gt;</span></div>
  <div class="Conter">
    <table class="ListTable">
  <tr>
    <td class='Left'>
      <form name="form1" method="post" action="">
        <SCRIPT LANGUAGE="JavaScript">
<!--
function upfile(url,name,size,b){
	get_obj('fi').innerHTML="调用地址是:<font color=red>$webdb[www_url]/$webdb[updir]/"+url+"</font>";
}
//-->
</SCRIPT>上传一个文件 
              
         <iframe name='mainFrame2' frameborder=0 height=23 scrolling=no src='upfile.php?dir=other&label=fi' width=380></iframe>
            <br><div id=fi></div>
      </form>
    </td>
  </tr>
</table>
</div>
</div>


<form name="form_work" method="post" action="index.php?lfj=$lfj&action=delete">
<div class="MainContainers">
  <div class="Conter">
    <ul class='notes'>
      <li><font color="#FF0000">请小心谨慎，不可恢复，会把目录下的所有文件一起删除 </font></li>
    </ul>
  <table class="ListTable">
    <tr> 
      <th width="5%">序号</th>
      <th>附件</th>
      <th width="12%">上传日期 </th>
      <th width="10%">大小</th>
      <th width="6%">删除</th>
    </tr>
    <tr> 
      <td colspan="5" class='Left'>当前目录:<font color="#FF0000">$thispath</font><br>
        [<a href="?lfj=$lfj&job=$job&down_path=$up_path"><font color="#0000FF"><b>返回上一级目录</b></font></a>] 
        <!--b>[<a href="index.php?lfj=attachment&job=listimg&down_path=$down_path">只显示图片</a></b]--> 
        [<b><a href="index.php?lfj=attachment&job=show&down_path=$down_path&type=pic">当前目录所有图片文件</a></b>] 
        [<b><a href="index.php?lfj=attachment&job=show&down_path=$down_path&type=files">当前目录所有非图片文件</a></b>] 
        <font color="#FF0000">注：如果当前目录文件太多，可以进入下一级目录操作，这样操作速度更快！ </font> 
      </td>
    </tr>
    <!--
EOT;
foreach($listdb AS $key=>$rs){
if($rs[type]=='file'){
	$url="$rs[url]";
	$target="_blank";
}else{
	$url="?lfj=$lfj&job=$job&down_path=$rs[path]";
	$target="_self";
}
print <<<EOT
-->
    <tr> 
      <td width="5%">$rs[id]</td>
      <td class='Left'> 
        <input type="checkbox" name="iddb[{$rs[id]}]" value="$rs[path]">
        <img src="$rs[icon]"> <a href="$url" target="$target">$rs[path]</a></td>
      <td width="12%">$rs[posttime]</td>
      <td width="10%">$rs[size]<b>(K)</b></td>
      <td width="6%"><a href="index.php?lfj=$lfj&action=delete&iddb[{$rs[id]}]={$rs[path]}" title='点击删除' class='del'></a></td>
    </tr>
    <!--
EOT;
}
print <<<EOT
-->
  </table>
  <div class="m-showpage">$showpage</div>
  <div class='submits'>
          <input type="button" onclick="CheckAll('all')" name="Submit2" value="全选" />
          <input type="button" onClick='CheckAll()' name="Submit2" value="反选" /> 
           <input type="submit" name="Submit" value="删 除">
  </div>
  </div>
</div>
</form>
<SCRIPT LANGUAGE="JavaScript">
<!--
function postdo(va){
	document.form_work.jobs.value=va
	document.form_work.submit();
}
function CheckAll(va){
	form=document.form_work
	for (var i=0;i<form.elements.length;i++){
		var e = form.elements[i];
		if(va=='all'){
			e.checked = true;
		}else{
			e.checked == true ? e.checked = false : e.checked = true;
		}
	}
}
//-->
</SCRIPT>
<!--
EOT;
?>
-->