<?
  if($_SESSION["dwn"]==1){
    unset($_SESSION["dwn"]);
  ?>
  <script>
    window.location = "bkpfile/dbdownload.php?file=<?= $_GET["file"] ?>";
  </script>
  <?
  }
?>
<br><br><br>

<center>
<table border="1" bgcolor="#CCCCCC" style="font-family:Times New Roman ">
<form action="sysbkp_pro.php" method="post">
<tr bgcolor="#999999">
  <th>Backup</th>
</tr>
<tr>
  <th>Backup File <input type="submit" value="Download" style="height:23px" />
  <!--a href="bkpfile/dbdownload.php<?= "?file=$fileName$tday".".$filetype" ?>">Download</a> Backup File --></th>
</tr>
</form>
<tr>
  <td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<form action="sysbkp_rstr.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="post_max_size" value="21000000" />
<input type="hidden" name="upload_max_filesize" value="20000000">
<input type="hidden" name="MAX_FILE_SIZE" value="20000000" />
<tr bgcolor="#999999">
  <th>Restore Data</th>
</tr>
<tr>
  <th><input type="file" name="myfile" /><input type="submit" value="restore" /></th>
</tr>
</form>
</th>

</table>
</center>