<!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=<?php echo $cfg_soft_lang; ?>">
<title>文件校驗</title>
<link href='css/base.css' rel='stylesheet' type='text/css'>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6">
<tr>
    <td height="19" background="images/tbg.gif">
      <table width="96%" border="0" cellspacing="1" cellpadding="1">
        <tr>
          <td width="24%">
          	<a href='sys_verifies.php'><b>文件效驗</b></a>
          	&gt;&gt;
          	<strong>校驗結果：</strong> 共有 <?php echo count($filelist); ?> 個文件不同
          </td>
          <td width="76%" align="right">
          </td>
        </tr>
      </table>
   </td>
</tr>
<tr>
 <td height="200" bgcolor="#FFFFFF" valign="top">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
      <form action="sys_verifies.php?action=getfiles" method="post">
        <tr>
          <td class='bline2'> 恢復? </td>
          <td class='bline2'> 文件名(Ctrl+F查找) </td>
          <td class='bline2'> 校驗方式 </td>
          <td class='bline2'> 最後修改時間 </td>
          <td class='bline2'> 指紋碼/點擊可瀏覽文件內容 </td>
        </tr>
        <?php
        	foreach ($filelist as $key => $file)
        	{
         ?>
          <tr>
          <td class='bline'>
          	<input type="checkbox" name="refiles[]" value="<?php echo $file['filename'];?>" checked='1' />
          </td>
          <td class='bline'>
          	<?php echo $file['filename']; ?>
          </td>
          <td class='bline'>
          	<?php echo $file['method']; ?>
          </td>
          <td class='bline'>
          	<?php echo $file['mtime']; ?>
          </td>
          <td class='bline'>
             <a href="sys_verifies.php?action=view&filename=<?php echo $file['turefile']; ?>" target="_blank" class='coolbg' title="標準效驗碼為： <?php echo $file['cthash']; ?>">
             	<?php echo $file['localhash']; ?>
            </a>
          </td>
          </tr>
         <?php
          }
         ?>
          <tr>
          	<td colspan="20" height='42'>
          		<input type="submit" name="submit" value="從官方下載選中的文件並恢復" class='np coolbg' />
            </td>
          </tr>
      </table>
    </form>
	</td>
</tr>
</table>
</body>
</html>