Location: PHPKode > projects > PHP Web FileManager - Similiar to Yahoo! > screens/_scn_filemanager.php
<html>
<head>
<title><?php echo $locale->getString(LID_TYPE_GENERAL,LID_TITLE) . " " .$locale->getString(LID_TYPE_GENERAL,LID_VERSION); ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="css/style.css">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<?php
  if ($menuOption == 4 || $menuOption == 8) {
    echo "<form action=\"" . $PHP_SELF . "\" method=\"POST\" ENCTYPE=\"multipart/form-data\">";
  } else {
    echo "<form action=\"" . $PHP_SELF . "\" method=\"POST\">";
  }
?>


<?php if ($menuOption==0) { ?>

<table width="770" border="0" cellspacing="0" cellpadding="0">
<tr>

<td><span class="title">
<?php echo $locale->getString(LID_TYPE_GENERAL,LID_TITLE) . " " .$locale->getString(LID_TYPE_GENERAL,LID_VERSION); ?>
</span></td>
</tr>
<?php if (!empty($errormsg)) { ?>
<tr>
<td>

<?php echo "<b><font color=\"red\">" . $errormsg . "</font></b>"; ?>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>

<?php } ?>
</table>

<table width="770" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="titlebar"><font face="Arial, Helvetica, sans-serif" size="-1"><?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_MEMBER); ?>:
<?php echo $theFileManager->getSiteName(); ?>
</font></td>
</tr>
</table>

<table width="770" border="0" cellspacing="0" cellpadding="0">
<tr class="buttonbar">

<td width="723"> &nbsp;
<?php
echo "<input class=\"button\" type=\"submit\" name=\"copy\" value=\"" . $locale->getString(LID_TYPE_HTML,LID_HTML_BUT_COPY) . "\">";
echo "<input class=\"button\" type=\"submit\" name=\"rename\" value=\"" . $locale->getString(LID_TYPE_HTML,LID_HTML_BUT_RENAME) . "\">";
echo "<input class=\"button\" type=\"submit\" name=\"delete\" value=\"" . $locale->getString(LID_TYPE_HTML,LID_HTML_BUT_DELETE) . "\">";
echo "<input class=\"button\" type=\"submit\" name=\"refresh\" value=\"" . $locale->getString(LID_TYPE_HTML,LID_HTML_BUT_REFRESH) . "\">";
?>
</td>
<td width="47" align="right">

<?php echo "<input class=\"button\" type=\"submit\" name=\"upload\" value=\"" . $locale->getString(LID_TYPE_HTML,LID_HTML_BUT_UPLOAD) . "\">"; ?>
      </td>
</tr>
</table>
<table width="770" border="0" cellspacing="0" cellpadding="0">
<tr class="headingbar">
<td colspan="3"><b> <a href="<?php echo $_SERVER["PHP_SELF"] . "?sort=1&sortprev=" . $actionSortPrev . "&sortdir=" . $sortdir; ?>">
<?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_COL_NAME); ?>
</a></b></td>
<td width="215"><b><a href="<?php echo $_SERVER["PHP_SELF"] . "?sort=2&sortprev=" . $actionSortPrev . "&sortdir=" . $sortdir; ?>">
<?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_COL_LASTMOD); ?>
</a></b></td>
<td width="94">

<div align="right"><b> <a href="<?php echo $_SERVER["PHP_SELF"] . "?sort=3&sortprev=" . $actionSortPrev . "&sortdir=" . $sortdir; ?>">
<?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_COL_SIZE); ?>
</a></b></div>
</td>
</tr>
<?php if ($theFileManager->getIsSubDir() || $isUpload || $isChanged) { ?>
<?php if (strlen($theFileManager->getSubDir()) > 0) { ?>
<tr>
<td colspan="3">
<?php  echo "<a href=\"" . $_SERVER["PHP_SELF"] . "\"><img src=\"images/upfolder.gif\" width=\"15\" height=\"13\" border=\"0\">&nbsp;<b>Home</b></a>"; ?>
</td>
<td width="215">&nbsp;</td>
<td width="94">&nbsp;</td>
</tr>
<tr>
<td width="29">&nbsp;</td>
<td colspan="2">&nbsp;
<?php
 $lastSlash = strrpos($subDir,"/");
 if (!$lastSlash) {
   $lastFolder = $PHP_SELF;
 } else {
   $lastFolder = $PHP_SELF . "?f=" . substr($subDir,0,$lastSlash);
 }

   echo "<a href=\"" . $lastFolder. "\"><img src=\"images/foldero.gif\" width=\"16\" height=\"13\" border=\"0\">&nbsp;<b>" . $theFileManager->getSubDir() . "</b></a>";

 ?>
</td>
<td width="215">&nbsp;</td>
<td width="94">&nbsp;</td>
</tr>
<?php } ?>
<?php } ?>
<?php $totalSize = 0;
  for ($i=0;$i<$theFileManager->getFileCount();$i++) {
  ?>

<tr bgcolor="<?php if ($i % 2 == 0) echo "#FFE53B"; else echo "#F2BE0B"; ?>">
<td width="29">
<input type="checkbox" name="<?php echo "checkbox" . $i ?>" value="1">
</td>
<td width="16">&nbsp;</td>
<td width="216">
<?php
  if ($theList[$i]["isDir"]) {
    if (strlen($subDir) > 0)
      echo "<a href=\"" . $PHP_SELF . "?f=" . $subDir . "/" . $theList[$i]["name"] . "\"><img src=\"images/folder.gif\" width=\"15\" height=\"13\" border=\"0\">&nbsp;" . $theList[$i]["name"] . "</a>";
	else
      echo "<a href=\"" . $PHP_SELF . "?f=" . $theList[$i]["name"] . "\"><img src=\"images/folder.gif\" width=\"15\" height=\"13\" border=\"0\">&nbsp;" . $theList[$i]["name"] . "</a>";
  } else {
    if ($theFileManager->getIsFirewall())
      $theLinkURL = "http://" . $theFileManager->getExternalURL() . $theFileManager->getWebRoot() . "/" . $theFileManager->getMember() . "/" . $subDir . "/" . $theList[$i]["name"];
    else	
      $theLinkURL = "http://" . $_SERVER["SERVER_ADDR"] . $theFileManager->getWebRoot() . "/" . $theFileManager->getMember() . "/" . $subDir . "/" . $theList[$i]["name"];
    echo "<a href=\"" . $theLinkURL  . "\" class=\"text10plain\"  >" .  $theList[$i]["name"] . "</a>";
  }
 ?>
</td>
<td width="215">
<?php echo $theList[$i]["lastmod"]; ?>
</td>
<td width="94">
<div align="right">
<?php
  if ($theList[$i]["isDir"])
    echo "&nbsp;";
  else
    echo $theList[$i]["size"];
  $totalSize = $totalSize + $theList[$i]["size"];
?>
</div>
</td>
</tr>
<?php } ?>
<tr class="totalbar">
<td width="29">&nbsp;</td>
<td width="16">&nbsp;</td>
<td width="216">&nbsp;</td>
<td width="215">
<div align="right"><b>
<?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_TOTALSPACE); ?>
:</b></div>
</td>
<td width="94">
<div align="right">
<?php echo $theFileManager->getTotalSizeUsed(); //$totalSize; ?>
</div>
</td>
</tr>
</table>
<table width="770" border="0" cellspacing="0" cellpadding="0">
<tr class="buttonbar">
<td width="611" height="34"> &nbsp;
<?php
echo "<input class=\"button\" type=\"submit\" name=\"copy\" value=\"" . $locale->getString(LID_TYPE_HTML,LID_HTML_BUT_COPY) . "\">";
echo "<input class=\"button\" type=\"submit\" name=\"rename\" value=\"" . $locale->getString(LID_TYPE_HTML,LID_HTML_BUT_RENAME) . "\">";
echo "<input class=\"button\" type=\"submit\" name=\"delete\" value=\"" . $locale->getString(LID_TYPE_HTML,LID_HTML_BUT_DELETE) . "\">";
echo "<input class=\"button\" type=\"submit\" name=\"refresh\" value=\"" . $locale->getString(LID_TYPE_HTML,LID_HTML_BUT_REFRESH) . "\">";
?>
<input type="hidden" name="f" value="<?php echo $theFileManager->getSubDir(); ?>">
<input type="hidden" name="sortprev" value="<?php echo $actionSort; ?>">
</td>
<td height="34" colspan="2">

<div align="right">
<?php
    echo "<input class=\"button\" type=\"submit\" name=\"newdir\" value=\"". $locale->getString(LID_TYPE_HTML,LID_HTML_BUT_NEWFOLDER) ."\">";
?>
</div>
</td>
<td width="95" height="34" align="right">

<?php echo "<input class=\"button\" type=\"submit\" name=\"upload\" value=\"" . $locale->getString(LID_TYPE_HTML,LID_HTML_BUT_UPLOAD) . "\">"; ?>
</td>
</tr>
</table>
<table width="770" border="0" cellspacing="0" cellpadding="0">
<tr class="buttonbar">
<td>
<select name="advanceoption">
<option value="0"><? echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_ADVANCE_OPTION); ?></option>
<option value="0">-----------------------</option>
<option value="1"><? echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_DROPDOWN_FIND); ?></option>
<?php if ($compress_cfg["set_export_on"]) { ?>
<option value="2"><? echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_DROPDOWN_EXPORT); ?></option>
<?php } ?>
<?php if ($compress_cfg["set_import_on"]) { ?>
<option value="3"><? echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_DROPDOWN_IMPORT); ?></option>
<?php } ?>
</select><?php echo "<input class=\"button\" type=\"submit\" name=\"advance\" value=\"" . $locale->getString(LID_TYPE_HTML,LID_HTML_BUT_GO) . "\">"; ?></td>
</tr>
</table>
<?php } ?>

<?php if ($menuOption==1) { ?>
<table width="770" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" ><span class="heading"><?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_COPY_HDR); ?></span></td>
</tr>
<tr>
<td colspan="2" >
<?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_COPY_INFO); ?>
</td>
</tr>
<tr>
<td colspan="2" >&nbsp;</td>
</tr>
<tr>
<td width="139" ><span class="heading"><?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_CURRENT_FILENAME); ?></span></td>
<td width="431" ><span class="heading"><?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_NEW_FILENAME); ?></span></td>
</tr>
<?php
 for ($i=0;$i<count($modList);$i++) {
  if ($modList[$i]) {
 ?>
<tr>
<td >
<div align="left">

<?php echo $theList[$i]["name"];?>
</div>
</td>
<td >

<input type="text" name="<?php echo "newname" . $i;  ?>">
</td>
</tr>
<tr>
<td colspan="2" >&nbsp;</td>
</tr>
<? } } ?>
<tr>
<td colspan="2" >

&nbsp;
<?php
echo "<input class=\"button\" type=\"submit\" name=\"copy\" value=\"" . $locale->getString(LID_TYPE_HTML,LID_HTML_BUT_COPY) . "\">";
?>
<input type="hidden" name="confirm" value="Confirm">
<input type="hidden" name="f" value="<?php echo $theFileManager->getSubDir(); ?>">
<?php echo "<input class=\"button\" type=\"submit\" name=\"cancel\" value=\"" . $locale->getString(LID_TYPE_HTML,LID_HTML_BUT_CANCEL) . "\">"; ?>
</td>
</tr>
</table>
<?php } ?>
<?php if ($menuOption==2) { ?>
<table width="770" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" ><span class="heading"><?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_RENAME_HDR); ?></span></td>
</tr>
<tr>
<td colspan="2" >
<?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_RENAME_INFO); ?>
</td>
</tr>
<tr>
<td colspan="2" >&nbsp;</td>
</tr>
<tr>
<td width="139" ><span class="heading"><?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_CURRENT_FILENAME); ?></span></td>
<td width="431" ><span class="heading"><?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_NEW_FILENAME); ?></span></td>
</tr>
<?php
 for ($i=0;$i<count($modList);$i++) {
  if ($modList[$i]) {
 ?>
<tr>
<td >
<div align="left">

<?php echo $theList[$i]["name"];?>
</div>
</td>
<td >

<input type="text" name="<?php echo "newname" . $i;  ?>">
</td>
</tr>
<tr>
<td colspan="2" >&nbsp;</td>
</tr>
<? } } ?>
<tr>

<td colspan="2" > &nbsp;
<?php
echo "<input class=\"button\" type=\"submit\" name=\"rename\" value=\"" . $locale->getString(LID_TYPE_HTML,LID_HTML_BUT_RENAME) . "\">";
?>
<input type="hidden" name="confirm" value="Confirm">

<input type="hidden" name="f" value="<?php echo $theFileManager->getSubDir(); ?>">
<?php echo "<input class=\"button\" type=\"submit\" name=\"cancel\" value=\"" . $locale->getString(LID_TYPE_HTML,LID_HTML_BUT_CANCEL) . "\">"; ?>
</td>
</tr>
</table>
<?php } ?>
<?php if ($menuOption==3) { ?>
<table width="770" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" ><span class="heading"><?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_DELETE_HDR); ?></span></td>
</tr>
<tr>
<td colspan="2" >
<?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_DELETE_INFO); ?>
</td>
</tr>
<tr>
<td colspan="2" >&nbsp;</td>
</tr>
<tr>

<td width="139" ><span class="heading"><?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_FILENAME); ?></span></td>
<td width="431" ><span class="heading"><?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_CHECK_CONFIRM); ?></span></td>
</tr>
<?php
 for ($i=0;$i<count($modList);$i++) {
  if ($modList[$i]) {
 ?>
<tr>
<td >
<div align="left">


<?php echo $theList[$i]["name"];?>
</div>
</td>
<td >


<input type="checkbox" name="<?php echo "newname" . $i;  ?>" value="1" checked>
</td>
</tr>
<tr>
<td colspan="2" >&nbsp;</td>
</tr>
<? } } ?>

<tr>

<td colspan="2" > &nbsp;
<?php
echo "<input class=\"button\" type=\"submit\" name=\"delete\" value=\"" . $locale->getString(LID_TYPE_HTML,LID_HTML_BUT_DELETE) . "\">";
?>
<input type="hidden" name="confirm" value="Confirm">

<input type="hidden" name="f" value="<?php echo $theFileManager->getSubDir(); ?>">
<?php echo "<input class=\"button\" type=\"submit\" name=\"cancel\" value=\"" . $locale->getString(LID_TYPE_HTML,LID_HTML_BUT_CANCEL) . "\">"; ?>
</td>
</tr>
</table>
<?php } ?>
<?php if ($menuOption==5) { ?>
<table width="770" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" ><span class="heading">
<?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_NEWFOLDER_HDR); ?>
</span></td>
</tr>
<tr>

<td colspan="2" >
<?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_NEWFOLDER_INFO); ?>
</td>
</tr>
<tr>
<td colspan="2" >&nbsp;</td>
</tr>
<tr>

<td width="146" ><span class="heading">
<?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_NEWFOLDER_NAME); ?>
</span></td>
<td width="424" >&nbsp;</td>
</tr>
<tr>
<td colspan="2" >
<input type="text" name="newdirname">

<i>
<?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_NEWFOLDER_ONLY_CHAR); ?>
</i></td>
</tr>
<tr>
<td colspan="2" >&nbsp;</td>
</tr>
<tr>

<td colspan="2" > &nbsp;
<?php
echo "<input class=\"button\" type=\"submit\" name=\"newdir\" value=\"". $locale->getString(LID_TYPE_HTML,LID_HTML_BUT_NEWFOLDER) ."\">";
?>
<input type="hidden" name="f" value="<?php echo $theFileManager->getSubDir(); ?>">

<input type="hidden" name="confirm" value="Confirm">
<?php echo "<input class=\"button\" type=\"submit\" name=\"cancel\" value=\"" . $locale->getString(LID_TYPE_HTML,LID_HTML_BUT_CANCEL) . "\">"; ?>
</td>
</tr>
</table>
<?php }  ?>
<?php if ($menuOption==4) { ?>
<table width="770" border="0" cellspacing="0" cellpadding="0">
<tr>

<td colspan="2" ><span class="heading"><?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_UPLOAD_HDR); ?></span></td>
</tr>
<tr>
<td colspan="2"><?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_UPLOAD_INFO); ?></td>
</tr>
<tr>
<td colspan="2" >&nbsp;</td>
</tr>
<tr>
<td width="48" >

<div align="right"><?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_FILE); ?>&nbsp;1:</div>
</td>
<td width="522" >

<input class=\"button\" type="file" name="userfile[]">
</td>
</tr>
<tr>
<td width="48" >

<div align="right"><?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_FILE); ?>&nbsp;2:</div>
</td>
<td width="522" >

<input class=\"button\" type="file" name="userfile[]">
</td>
</tr>
<tr>
<td width="48" >

<div align="right"><?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_FILE); ?>&nbsp;3:</div>
</td>
<td width="522" >

<input class=\"button\" type="file" name="userfile[]">
</td>
</tr>
<tr>
<td width="48" >

<div align="right"><?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_FILE); ?>&nbsp;4:</div>
</td>
<td width="522" >

<input class=\"button\" type="file" name="userfile[]">
</td>
</tr>
<tr>
<td width="48" >

<div align="right"><?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_FILE); ?>&nbsp;5:</div>
</td>
<td width="522" >

<input class=\"button\" type="file" name="userfile[]">
</td>
</tr>
<tr>
<td colspan="2" >&nbsp;</td>
</tr>
<tr>

<td colspan="2" > &nbsp;
<?php
	 echo "<input class=\"button\" type=\"submit\" name=\"upload\" value=\"" . $locale->getString(LID_TYPE_HTML,LID_HTML_BUT_UPLOAD) . "\">";
	 ?>
<input type="hidden" name="confirm" value="Confirm">

<input type="hidden" name="f" value="<?php echo $theFileManager->getSubDir(); ?>">
<?php echo "<input class=\"button\" type=\"submit\" name=\"cancel\" value=\"" . $locale->getString(LID_TYPE_HTML,LID_HTML_BUT_CANCEL) . "\">"; ?>
</td>
</tr>
</table>
<?php } if ($menuOption==6) { ?>
<table width="770" border="0" cellspacing="0" cellpadding="0">
<tr>

<td colspan="2" ><span class="heading">
<?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_FIND_HDR); ?>
</span></td>
</tr>
<tr>
<td colspan="2">
<?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_FIND_INFO); ?>
</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<?php if (!empty($errormsg)) { ?>
<tr><td colspan="2">&nbsp;</td></tr>
<tr>
  <td colspan="2"><span class="text10find"><?php echo $errormsg; ?></span></td>
</tr>
<tr><td colspan="2">&nbsp;</td></tr>
<?php } ?>
<tr>
<td width="166">
<?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_FIND_FILE_FOLDER); ?>
</td>
<td width="604">&nbsp;
</td>
</tr>
<tr>
<td colspan="2">
<input type="text" name="findtext" maxlength="255" size="28">
<i>
<?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_FIND_MAX255); ?>
</i>
</td>
</tr>
<tr>
<td colspan="2">
<input type="checkbox" name="findmatchcase" value="1">
<?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_FIND_MATCH_CASE); ?> 
<input type="checkbox" name="findexact" value="1">
<?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_FIND_WHOLE_WORD_ONLY); ?></td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td colspan="2">
<?php
echo "<input class=\"button\" type=\"submit\" name=\"find\" value=\"" . $locale->getString(LID_TYPE_HTML,LID_HTML_BUT_FIND) . "\">";
?>
<input type="hidden" name="confirm" value="Confirm">
<input type="hidden" name="advance" value="1">
<input type="hidden" name="advanceoption" value="1">
<input type="hidden" name="f" value="<?php echo $theFileManager->getSubDir(); ?>">
<?php echo "<input class=\"button\" type=\"submit\" name=\"cancel\" value=\"" . $locale->getString(LID_TYPE_HTML,LID_HTML_BUT_CANCEL) . "\">"; ?>
</td>
</tr>
</table>
<?php } if ($menuOption==7) { ?>
 <table width="770" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" ><span class="heading">
<?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_EXPORT_HDR); ?>
</span></td>
</tr>
<tr>
<td colspan="2" ><?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_EXPORT_INFO); ?>
</td>
</tr>
<tr>
<td colspan="2" >&nbsp;</td>
</tr>
<?php if (!empty($errormsg)) { ?>
<tr><td colspan="2">&nbsp;</td></tr>
<tr>
  <td colspan="2"><span class="text10find"><?php echo $errormsg; ?></span></td>
</tr>
<tr><td colspan="2">&nbsp;</td></tr>
<?php } ?>
<tr>
<td width="145" >
<div align="left"><?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_EXPORT_FILENAME); ?></div></td>
<td width="625" >
<input type="text" name="exportfilename"></td></tr>
<tr><td colspan="2" >&nbsp;</td></tr><tr>
<td colspan="2" >
&nbsp;
<?php
echo "<input class=\"button\" type=\"submit\" name=\"export\" value=\"" . $locale->getString(LID_TYPE_HTML,LID_HTML_BUT_EXPORT) . "\">";
?>
<input type="hidden" name="confirm" value="Confirm">
<input type="hidden" name="advance" value="1">
<input type="hidden" name="advanceoption" value="1">
<input type="hidden" name="f" value="<?php echo $theFileManager->getSubDir(); ?>">
<?php echo "<input class=\"button\" type=\"submit\" name=\"cancel\" value=\"" . $locale->getString(LID_TYPE_HTML,LID_HTML_BUT_CANCEL) . "\">"; ?>
</td>
</tr>
</table>
<?php } if ($menuOption==8) { ?> 
<table width="770" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" ><span class="heading">
<?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_IMPORT_HDR); ?>
</span></td>
</tr>
<tr>
<td colspan="2" ><?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_IMPORT_INFO); ?>
</td>
</tr>
<tr>
<td colspan="2" >&nbsp;</td>
</tr>
<?php if (!empty($errormsg)) { ?>
<tr><td colspan="2">&nbsp;</td></tr>
<tr>
  <td colspan="2"><span class="text10find"><?php echo $errormsg; ?></span></td>
</tr>
<tr><td colspan="2">&nbsp;</td></tr>
<?php } ?>
<tr>
<td width="144" ><div align="left"><?php echo $locale->getString(LID_TYPE_HTML,LID_HTML_LBL_IMPORT_FILENAME); ?></div>
</td>
<td width="626" >
<input class=\"button\" type="file" name="userfile">
</td>
</tr>
<tr><td colspan="2" >&nbsp;</td></tr><tr>
<td colspan="2" >
&nbsp;
<?php
echo "<input class=\"button\" type=\"submit\" name=\"import\" value=\"" . $locale->getString(LID_TYPE_HTML,LID_HTML_BUT_IMPORT) . "\">";
?>
<input type="hidden" name="confirm" value="Confirm">
<input type="hidden" name="advance" value="1">
<input type="hidden" name="advanceoption" value="1">
<input type="hidden" name="f" value="<?php echo $theFileManager->getSubDir(); ?>">
<?php echo "<input class=\"button\" type=\"submit\" name=\"cancel\" value=\"" . $locale->getString(LID_TYPE_HTML,LID_HTML_BUT_CANCEL) . "\">"; ?>
</td>
</tr>
</table>
<?php } ?>
<?php echo "</form>"; ?>
</body>
</html>
Return current item: PHP Web FileManager - Similiar to Yahoo!