Source for file FTPUploadApplet.class.php
Documentation is available at FTPUploadApplet.class.php
include_once CLASSPATH. "communication/FTPHost.class.php";
* @author Daniel Plücken <daniel@debakel.net>
* @license http://www.gnu.org/copyleft/lesser.html
* GNU Lesser General Public License
* @copyright Copyright (C) 2006 Daniel Plücken <daniel@debakel.net>
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General
* Public License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307 USA
* Stores the value of the width-attribute of this applet.
* Stores the value of the height-attribute of this applet.
* The label of the button for browsing the filesystem.
* @var string $browse_bt_label
* The label of the button for sending the selected file.
* @var string $send_bt_label
* Stores the background color of the applet.
* Stores the background color of the progressbar in the applet.
* @var string $progressbar_bgcolor
* Stores the foreground color of the progressbar in the applet.
* Stores the target path for uploaded files. Must have an ending slash.
* @var string $target_path
* Stores the filename for uploaded file.
* @var string $target_path
* Stores the target url to retrieve after the selectedfile is uploaded.
* Can also be a javascript (javascript:document...).
* @var string $target_href_after_upload
* Stores whether the percentage display should be shown or not.
* @var string $target_href_after_upload
* Stores the path to the jar-archive.
* Stores whether the file should zipped before upload.
* Stores the path to the target zip archive.
* Stores the filename of the target zip archive.
* @var string $zip_filename
* Stores the mode how to communicate.
* @author Daniel Plücken <daniel@debakel.net>
* @param string $password
parent::FTPHost( $host, $user, $password, $port );
* Sets the string to act as label for the browse-button.
* @author Daniel Plücken <daniel@debakel.net>
* @param string $string The label to store.
* Sets the string to act as label for the send-button.
* @author Daniel Plücken <daniel@debakel.net>
* @param string $string The label to store.
* Sets the target url to retrieve after the selectedfile is uploaded.
* Can also be a javascript (javascript:document...).
* @author Daniel Plücken <daniel@debakel.net>
* @param string $string The label to store.
* Sets where to put the files to upload. The path has to have an ending
* @author Daniel Plücken <daniel@debakel.net>
* @param string $string The path to store.
* Sets how the uploaded file should be named.
* @author Daniel Plücken <daniel@debakel.net>
* @param string $string The filename to store.
* Sets how the uploaded file should be named.
* @author Daniel Plücken <daniel@debakel.net>
* Sets how the uploaded file should be named.
* @author Daniel Plücken <daniel@debakel.net>
* Sets whether the file should zipped before upload.
* @author Daniel Plücken <daniel@debakel.net>
* Use this only if you want to upload the file AND generate separatly a zip
* archive of the file. If you only want to get the file to upload zipped,
* then it is effectual to give only the target filename.
* @author Daniel Plücken <daniel@debakel.net>
* Use this only if you want to upload the file AND generate separatly a zip
* archive of the file. If you only want to get the file to upload zipped in
* the target folder of the file, then it is effectual to give only the
* @author Daniel Plücken <daniel@debakel.net>
* Stets the connection mode (PASV or ACTIVE)
* @author Daniel Plücken <daniel@debakel.net>
* Returns a generated string based on the attributes of this HTML-Object.
* @author Daniel Plücken <daniel@debakel.net>
return "<applet codebase=\"". $this->codebase. "\"\r\n"
. " archive=\"applets/GilliGanFTP.jar,lib/edtftpj.jar\"\r\n"
. " code=\"org.pluecken.applets.GilliGanFTP.GilliGanFTP\"\r\n"
. " height=\"". $this->height. "\" "
. "width=\"". $this->width. "\">\r\n"
. " on Linux KDE (with ProgressBarLabel): "
. "MIN-Height 80 / MIN-Width 231\r\n"
. " on Linux KDE (without ProgressBarLabel): "
. "MIN-Height 74 / MIN-Width 231\r\n"
. " <!-- on WinXP: MIN-Height 76 / MIN-Width 223 -->\r\n"
. " <param name=\"host\" value=\"". $this->name. "\" />\r\n"
. " <param name=\"user\" value=\"". $this->user. "\" />\r\n"
. " <param name=\"pass\" value=\"". $this->password. "\" />\r\n"
. " <param name=\"port\" value=\"". $this->port. "\" />\r\n"
. " <param name=\"connection_mode\" "
. "value=\"". $this->mode. "\" />\r\n"
. " <param name=\"browse_bt_label\" "
. " <param name=\"send_bt_label\" "
. " <param name=\"target_path\" "
. " <param name=\"zip_it\" "
. "value=\"". $this->zip_it. "\" />\r\n"
: " <param name=\"target_filename\" "
: " <param name=\"target_zip_path\" "
: " <param name=\"target_zip_filename\" "
. " <param name=\"target_href_after_upload\" "
<param name="browse_bt_image" value="http://www.google.de/images/firefox/google.gif" />
<param name="sent_bt_image" value="http://www.google.de/images/firefox/google.gif" />
. " <param name=\"percentage_display\" "
<!-- <param name="gap_progressbar_textfield" value="1" />
<!-- <param name="gap_textfield_buttons" value="1" />
<!-- <param name="gap_buttons_to_each_other" value="5" /> -->
. " <param name=\"progressbar_bgcolor\" "
. " <param name=\"progressbar_fgcolor\" "
. " <param name=\"bgcolor\" "
} // END of class FTPUploadApplet
|