<?php

defined("NET2FTP") or die("Direct access to this location is not allowed.");
?>
<!-- Template /skins/blue/upload1.template.php begin -->
<?php 
echo __("Upload to directory:");
?>
 <input type="text" style="width: 300px;" name="directory" value="<?php 
echo $net2ftp_globals["directory_html"];
?>
" />
<?php 
printActionIcon("listdirectories", "createDirectoryTreeWindow('" . $net2ftp_globals["directory_js"] . "','" . $formname . ".directory');");
?>
<br /><br />
<table border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td style="vertical-align: top; width: 50%;">
			<div class="header31"><?php 
echo __("Files");
?>
</div><div style="font-size: 90%;"><?php 
echo __("Files entered here will be transferred to the FTP server.");
?>
</div><br />
		</td>
		<td style="vertical-align: top; width: 50%;">
			<div class="header31"><?php 
echo __("Archives");
?>
?>
" />
<table style="padding: 2px; width: 99%; height: 100%; border: 0px;">
	<tr>
		<td style="vertical-align: top; text-align: <?php 
echo __("left");
?>
; width: 25%;">
<?php 
if ($net2ftp_globals["skin"] != "openlaszlo") {
    printActionIcon("back", "document.forms['" . $formname . "'].state.value='browse'; document.forms['" . $formname . "'].state2.value='main'; document.forms['" . $formname . "'].submit();", "");
    ?>
 &nbsp; 
<?php 
}
printActionIcon("save", "document.forms['" . $formname . "'].screen.value=3; " . $ace_onclick . " document.forms['" . $formname . "'].submit();", "");
?>
 &nbsp; 
<?php 
printTextareaSelect($ace_onclick . $onchange);
?>
		</td>
		<td style="vertical-align: top; text-align: <?php 
echo __("left");
?>
; width: 50%;">
<?php 
if ($net2ftp_globals["state2"] == "") {
    ?>
				<input type="hidden" name="entry" value="<?php 
    echo $net2ftp_globals["entry_html"];
}
?>
			<input type="hidden" name="screen"    value="<?php 
echo $nextscreen;
?>
" />

<?php 
/* ----- Back icon ----- */
printActionIcon("back", $back_onclick, "");
?>
 &nbsp; 

<?php 
/* ----- Submit icon - only for transactions which have a 2nd screen ----- */
if ($net2ftp_globals["screen"] == 1 && ($net2ftp_globals["state"] == "admin_createtables" || $net2ftp_globals["state"] == "advanced_ftpserver" || $net2ftp_globals["state"] == "chmod" || $net2ftp_globals["state"] == "copymovedelete" || $net2ftp_globals["state"] == "findstring" || $net2ftp_globals["state"] == "newdir" || $net2ftp_globals["state"] == "raw" || $net2ftp_globals["state"] == "rename" || $net2ftp_globals["state"] == "unzip" || $net2ftp_globals["state"] == "zip") || $net2ftp_globals["state"] == "upload") {
    printActionIcon("forward", $forward_onclick, "");
}
?>

			<br /><br />
<?php 
require_once $net2ftp_globals["application_skinsdir"] . "/" . $net2ftp_globals["skin"] . "/" . $net2ftp_globals["state"] . $net2ftp_globals["screen"] . ".template.php";
?>
		</form>
	</div>
<?php 
require_once $net2ftp_globals["application_skinsdir"] . "/" . $net2ftp_globals["skin"] . "/footer.template.php";
?>
<!-- Template /skins/blue/manage.template.php end -->
			<table>
				<tr>
					<td><?php 
        echo __("Target directory:");
        ?>
</td>
					<td>
						<input type="text" class="longinput" name="list[<?php 
        echo $i;
        ?>
][targetdirectory]" value="<?php 
        echo $net2ftp_globals["directory_html"];
        ?>
" />
						<?php 
        printActionIcon("listdirectories", "createDirectoryTreeWindow('" . $net2ftp_globals["directory_js"] . "', 'forms[CopyMoveDeleteForm]','elements[\\'list[{$i}][targetdirectory]\\']');");
        ?>
					</td>
				</tr>
				<tr><td>
					<?php 
        echo __("Target name:");
        ?>
      </td><td><input type="text" class="input" name="list[<?php 
        echo $i;
        ?>
][newname]" value="<?php 
        echo $list["all"][$i]["dirfilename_html"];
        ?>
" />
				</td></tr>
Example #5
0
			<input type="hidden" name="state"         value="browse" />
			<input type="hidden" name="state2"        value="main" />
			<input type="hidden" name="directory"     value="<?php 
echo $net2ftp_globals["directory_html"];
?>
" />
			<input type="hidden" name="url_withpw"    value="<?php 
echo printPHP_SELF("bookmark_withpw");
?>
" />
			<input type="hidden" name="url_withoutpw" value="<?php 
echo printPHP_SELF("bookmark_withoutpw");
?>
" />
			<input type="hidden" name="text"          value="net2ftp <?php 
echo $net2ftp_globals["ftpserver"];
?>
" />
<?php 
if ($net2ftp_globals["state"] != "bookmark") {
    printActionIcon("bookmark", "document.forms['StatusbarForm'].state.value='bookmark';document.forms['StatusbarForm'].submit();");
}
printActionIcon("refresh", "window.location.reload();");
printActionIcon("help", "void(window.open('" . $net2ftp_globals["application_rootdir_url"] . "/help.html','Help','location,menubar,resizable,scrollbars,status,toolbar'));");
printActionIcon("logout", "document.forms['StatusbarForm'].state.value='logout';document.forms['StatusbarForm'].submit();");
?>
			</form>
		</div>
 	</div>
<!-- Template /skins/blue/statusbar.template.php end -->
			<input type="hidden" name="state2"    value="main" />
			<input type="hidden" name="entry"     value="" />

<table id="toptable">
	<tr valign="bottom">
		<td rowspan="2" width="40"> &nbsp; </td>
		<td style="text-align: <?php 
echo __("left");
?>
;">
			<input type="text" name="directory" value="<?php 
echo $directory_html;
?>
" style="width: 400px;" title="(accesskey g)" accesskey="g" /> 
			<?php 
printActionIcon("listdirectories", "createDirectoryTreeWindow('{$directory_js}','BrowseForm.directory');");
?>
<br />
			<span style="font-size: 80%;"><?php 
echo __("Directory Tree");
?>
: <?php 
echo $directory_tree;
?>
</span>
		</td>
		<td valign="middle" style="text-align: <?php 
echo __("right");
?>
;">
			<div style="padding: 5px 10px;"><?php 
    ?>

<?php 
    echo __("Unzip archive <b>%1\$s</b> to:", $list["all"][$i]["dirfilename"]);
    ?>
<br />

<?php 
    echo __("Target directory:");
    ?>
		<input type="text" style="width: 400px;" name="list[<?php 
    echo $i;
    ?>
][targetdirectory]" value="<?php 
    echo $net2ftp_globals["directory_html"];
    ?>
" />
<?php 
    printActionIcon("listdirectories", "createDirectoryTreeWindow('" . $net2ftp_globals["directory_js"] . "', 'UnzipForm.elements[\\'list[{$i}][targetdirectory]\\']');");
    ?>
<br />

		<br /><br />

<?php 
}
// end for
?>

<!-- Template /skins/shinra/unzip1.template.php end -->
<?php 
/* ----- Upload (this row is only shown when you click the "Flash Upload" button!) ----- */
// Removed
?>

                            <tr onmouseover="this.style.color='#000000'; this.style.backgroundColor='#ffcc00';" onmouseout="this.style.color='#000000'; this.style.backgroundColor='#FFFFFF';">
                              <td colspan="6" title="<?php 
echo __("Go to the parent directory");
?>
" style="cursor: pointer; cursor: hand; border: 0px; text-align: center;" onclick="javascript:submitBrowseForm('<?php 
echo $updirectory_js;
?>
', '', 'browse', 'main');">
                                <?php 
printActionIcon("up", "", "");
?>
                              </td>
                            </tr>
<?php 
$rowcounter = 0;
/* ----- Directories ----- */
if ($list["stats"]["directories"]["total_number"] > 0) {
    ?>
                            <tr>
                              <td colspan="6">
                                <b><?php 
    echo __("Directories");
    ?>
</b> (<?php 
    echo $list["stats"]["directories"]["total_number"];
<?php 
/* ----- Copy or Move: print header table ----- */
if ($net2ftp_globals["state2"] == "copy" || $net2ftp_globals["state2"] == "move") {
    ?>
		<table style="border-color: #000000; border-style: solid; border-width: 1px; padding: 10px;">
			<tr><td>
				<input type="button" class="extralongbutton" value="<?php 
    echo __("Set all targetdirectories");
    ?>
" onclick="CopyValueToAll(document.forms['CopyMoveDeleteForm'], document.forms['CopyMoveDeleteForm'].headerDirectory, 'targetdirectory');" /> &nbsp; 
				<input type="text" style="width: 300px;" name="headerDirectory" value="<?php 
    echo $net2ftp_globals["directory_html"];
    ?>
" />
				<?php 
    printActionIcon("listdirectories", "createDirectoryTreeWindow('" . $net2ftp_globals["directory_js"] . "','CopyMoveDeleteForm.headerDirectory');");
    ?>
				<div style="font-size: 65%"><?php 
    echo __("To set a common target directory, enter that target directory in the textbox above and click on the button \"Set all targetdirectories\".");
    ?>
</div>
				<div style="font-size: 65%"><?php 
    echo __("Note: the target directory must already exist before anything can be copied into it.");
    ?>
</div>
			</td></tr>
		</table>
		<br />
		<table style="border-color: #000000; border-style: solid; border-width: 1px; padding: 10px; margin-<?php 
    echo __("right");
    ?>
	}
}
//--></script>

		<form name="BrowseForm" id="BrowseForm" action="<?php echo $net2ftp_globals["action_url"]; ?>" method="post">
<?php			printLoginInfo(); ?>
			<input type="hidden" name="state"     value="browse" />
			<input type="hidden" name="state2"    value="main" />
			<input type="hidden" name="entry"     value="" />

<table id="toptable">
	<tr valign="bottom">
		<td rowspan="2" width="40"> &nbsp; </td>
		<td style="text-align: <?php echo __("left"); ?>;">
			<input type="text" name="directory" value="<?php echo $directory_html; ?>" style="width: 400px;" title="(accesskey g)" accesskey="g" /> 
			<?php printActionIcon("listdirectories", "createDirectoryTreeWindow('$directory_js','BrowseForm.directory');"); ?><br />
			<span style="font-size: 80%;"><?php echo __("Directory Tree"); ?>: <?php echo $directory_tree; ?></span>
		</td>
		<td valign="middle" style="text-align: <?php echo __("right"); ?>;">
			<div style="padding: 5px 10px;"><?php echo __("Language:"); ?></div>
			<div style="padding: 5px 10px;"><?php echo __("Skin:"); ?></div>
		</td>
		<td valign="middle" style="text-align: <?php echo __("left"); ?>;">
<?php			printLanguageSelect("language2", $language_onchange, "width:120px;;", ""); ?>
			<br />
<?php			printSkinSelect("skin2", $skin_onchange, "width:120px;", ""); ?>
		</td>
	</tr>
</table>

<br />