<!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=gb2312" />
<title>请选择目录</title>
<style type="text/css">
<!--
body,td,th {
	font-size: 14px;
	color: #333333;
}
body {
	background-color: #F6F6F6;
}
-->
</style></head>
<script language="javascript">
function chose(dir){
	//window.opener.document.getElementById('dir').value = dir;
	document.getElementById('dir').value = dir;
}
function save(){
	window.opener.document.getElementById('dir').value = document.getElementById('dir').value;
	window.close();
}
</script>
<body>
<table width="100%" border="1" cellpadding="2" cellspacing="0" bordercolor="#4F4F4F" style="border-collapse:collapse">
<tr>
    <td>当前位置：<a href="<?php echo $this->installdir;?>scan/view/">根目录</a> >> <a href="<?php echo $this->installdir;?>scan/view/dir/<?php echo base64_encode(dirname($this->dir));?>/"><?php echo realpath($this->dir);?></a></td>
  </tr>
<?php foreach($this->disk as $disk){?>
  <tr>
    <td>
	<?php
	if (is_dir($disk)){?><A href="javascript:chose('<?php echo $disk;?>')" ondblclick="location.href='<?php echo $this->installdir;?>scan/view/dir/<?php echo base64_encode($disk);?>/'"><?php echo basename($disk);?></A><?php }else{echo basename($disk);};?></td>
  </tr>

 <?php }?>
 <tr>
    <td>我选择的目录：
    <input name="dir" type="text" id="dir" />
    <input type="button" name="Submit" value="确认选择" onclick="save()" /></td>
  </tr>
</table>
</body>
</html>
