﻿<?php
if(!defined('InEmpireBak'))
{
	exit();
}
$onclickword='(榛炴搳杞夊悜鎭㈠京鏁告摎)';
$change=(int)$_GET['change'];
if($change==1)
{
	$onclickword='(榛炴搳阆告搰)';
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>绠＄悊鍌欎唤鐩寗</title>
<link href="images/css.css" rel="stylesheet" type="text/css">
<script>
function ChangePath(pathname)
{
	opener.document.<?=$form?>.mypath.value=pathname;
	window.close();
}
</script>
</head>

<body>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
  <tr> 
    <td>浣岖疆锛?a href="ChangePath.php">绠＄悊鍌欎唤鐩寗</a>&nbsp;(瀛樻斁鐩寗锛?b><?=$bakpath?></b>)</td>
  </tr>
</table>
<br>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
  <tr bgcolor="#0472BC"> 
    <td width="42%" height="25" bgcolor="#0472BC"> <div align="center"><strong><font color="#FFFFFF">鍌欎唤鐩寗鍚??=$onclickword?></font></strong></div></td>
    <td width="16%" height="25"> <div align="center"><strong><font color="#FFFFFF">镆ョ湅瑾槑鏂囦欢</font></strong></div></td>
    <td width="42%"><div align="center"><font color="#FFFFFF">鎿崭綔</font></div></td>
  </tr>
  <?php
  while($file=@readdir($hand))
  {
	if($file!="."&&$file!=".."&&is_dir($bakpath."/".$file))
	{
		if($change==1)
		{
			$showfile="<a href='#ebak' onclick=\"javascript:ChangePath('$file');\" title='$file'>$file</a>";
		}
		else
		{
			$showfile="<a href='phome.php?phome=PathGotoRedata&mypath=$file' title='$file'>$file</a>";
		}
  ?>
  <tr bgcolor="#DBEAF5"> 
    <td height="25"> <div align="left"><img src="images/dir.gif" width="19" height="15">&nbsp; 
        <?=$showfile?> </div></td>
    <td height="25"> <div align="center"> [<a href="<? echo $bakpath."/".$file."/readme.txt"?>" target=_blank>镆ョ湅鍌欎唤瑾槑</a>]</div></td>
    <td><div align="center">[<a href="#ebak" onclick="window.open('phome.php?phome=DoZip&p=<?=$file?>&change=<?=$change?>','','width=350,height=160');">镓揿寘涓︿笅杓?/a>]&nbsp;&nbsp;[<a href="RepFiletext.php?mypath=<?=$file?>">镟挎弥鏂囦欢鍏у</a>]&nbsp;&nbsp;[<a href="phome.php?phome=DelBakpath&path=<?=$file?>&change=<?=$change?>" onclick="return confirm('纰鸿獚瑕佸埅闄わ紵');">鍒櫎鐩寗</a>]</div></td>
  </tr>
  <?
     }
  }
  ?>
  <tr> 
    <td height="25" colspan="3"><font color="#666666">(瑾槑锛氩鏋滃倷浠界洰閷勬枃浠惰纯澶氩缓璀扮洿鎺ュ緸FTP涓嬭级鍌欎唤鐩寗銆?</font></td>
  </tr>
</table>
</body>
</html>