[pLog-svn] r1522 - in plugins/trunk: . jupload jupload/class
jupload/class/action jupload/class/view jupload/jupload
jupload/jupload/lib jupload/jupload/skins jupload/templates
mark at devel.plogworld.net
mark at devel.plogworld.net
Wed Mar 16 08:52:36 GMT 2005
Author: mark
Date: 2005-03-16 08:52:35 +0000 (Wed, 16 Mar 2005)
New Revision: 1522
Added:
plugins/trunk/jupload/
plugins/trunk/jupload/class/
plugins/trunk/jupload/class/action/
plugins/trunk/jupload/class/action/pluginjuploadaddresourceaction.class.php
plugins/trunk/jupload/class/action/pluginjuploadconfigaction.class.php
plugins/trunk/jupload/class/action/pluginjuploadnewresourceaction.class.php
plugins/trunk/jupload/class/action/pluginjuploadupdateconfigaction.class.php
plugins/trunk/jupload/class/view/
plugins/trunk/jupload/class/view/pluginjuploadconfigview.class.php
plugins/trunk/jupload/class/view/pluginjuploadnewresourceview.class.php
plugins/trunk/jupload/jupload/
plugins/trunk/jupload/jupload/jupload.jar
plugins/trunk/jupload/jupload/jupload_uncompressed.jar
plugins/trunk/jupload/jupload/lib/
plugins/trunk/jupload/jupload/lib/skinlf.jar
plugins/trunk/jupload/jupload/skins/
plugins/trunk/jupload/jupload/skins/aquathemepack.zip
plugins/trunk/jupload/jupload/skins/xplunathemepack.zip
plugins/trunk/jupload/locale/
plugins/trunk/jupload/pluginjupload.class.php
plugins/trunk/jupload/templates/
plugins/trunk/jupload/templates/juploadnewresource.template
plugins/trunk/jupload/templates/pluginsettings.template
Log:
New plugin!! Integrate with Jupload. So now we can preview before upload, and multiple file add and drag-drog and a lot of features ... NOW, WE CAN COMPETE WITH FLICKR (only uploading function), heehee
Added: plugins/trunk/jupload/class/action/pluginjuploadaddresourceaction.class.php
===================================================================
--- plugins/trunk/jupload/class/action/pluginjuploadaddresourceaction.class.php 2005-03-16 07:26:18 UTC (rev 1521)
+++ plugins/trunk/jupload/class/action/pluginjuploadaddresourceaction.class.php 2005-03-16 08:52:35 UTC (rev 1522)
@@ -0,0 +1,109 @@
+<?php
+ include_once( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
+ include_once( PLOG_CLASS_PATH."class/view/admin/adminresourceslistview.class.php" );
+ include_once( PLOG_CLASS_PATH."plugins/jupload/class/view/pluginjuploadnewresourceview.class.php" );
+ include_once( PLOG_CLASS_PATH."class/gallery/dao/galleryalbums.class.php" );
+ include_once( PLOG_CLASS_PATH."class/net/http/httpvars.class.php" );
+ include_once( PLOG_CLASS_PATH."class/gallery/dao/galleryresources.class.php" );
+ include_once( PLOG_CLASS_PATH."class/data/validator/integervalidator.class.php" );
+ include_once( PLOG_CLASS_PATH."class/data/validator/arrayvalidator.class.php" );
+
+ /**
+ * Adds a new resource to an album
+ */
+ class PluginJUploadAddResourceAction extends AdminAction
+ {
+
+ var $_description;
+ var $_albumId;
+ var $_resource;
+
+ /**
+ * Constructor. If nothing else, it also has to call the constructor of the parent
+ * class, BlogAction with the same parameters
+ */
+ function PluginJUploadAddResourceAction( $actionInfo, $request )
+ {
+ $this->AdminAction( $actionInfo, $request );
+ $this->registerFieldValidator( "albumId", new IntegerValidator());
+ //$this->_form->registerField( "resourceFile_1");
+ //$this->_form->registerField( "resourceDescription" );
+ $view = new PluginJUploadNewResourceView( $this->_blogInfo );
+ $view->setErrorMessage( $this->_locale->tr( "error_no_resource_uploaded" ));
+ $this->setValidationErrorView( $view );
+
+ }
+
+ /**
+ * Carries out the specified action
+ */
+ function perform()
+ {
+ // fetch the information coming from the resource
+ $this->_description = '';
+ $this->_albumId = $this->_request->getValue( "albumId" );
+ $this->_resource = '';
+
+ // check if there is any file uploaded
+ $files = HttpVars::getFiles();
+ $this->log->debug($files);
+ // we probably need to rearrange the $files array a bit better...
+ $this->_files = Array();
+ foreach( $files as $file ) {
+ $this->log->debug("processing ".$file["name"]);
+ if( $file["error"] == 0 && $file["size"] > 0 && $file["name"] != "" ) {
+ $this->_files[] = $file;
+ }
+ }
+
+ // let the gallery library do its work...
+ $resources = new GalleryResources();
+
+ $this->_view = new AdminResourcesListView( $this->_blogInfo, Array( "albumId" => $this->_albumId ));
+
+ $successMessage = "";
+ $errorMessage = "";
+
+ foreach( $this->_files as $file ) {
+
+ // create a new FileUpload object based on the file
+ $upload = new FileUpload( $file );
+
+ // add the resource to the db
+ $this->notifyEvent( EVENT_PRE_RESOURCE_ADD, Array( "upload" => &$upload ));
+ $res = $resources->addResource( $this->_blogInfo->getId(), $this->_albumId,
+ $this->_description, $upload );
+
+ // check if everything went fine and if not, show an error message
+ if( $res > 0 ) {
+ $successMessage .= $this->_locale->pr("resource_added_ok", $file["name"])."<br/>";
+ // try to fetch the resource so that we can send it in the event
+ $resource = $resources->getResource( $res, $this->_blogInfo->getId());
+ $this->notifyEvent( EVENT_POST_RESOURCE_ADD, Array( "resource" => &$resource ));
+ }
+ else {
+ if( $res == GALLERY_ERROR_RESOURCE_FORBIDDEN_EXTENSION )
+ $errorMessage .= $this->_locale->pr("error_resource_forbidden_extension", $file["name"])."<br/>";
+ elseif( $res == GALLERY_ERROR_RESOURCE_TOO_BIG )
+ $errorMessage .= $this->_locale->pr("error_resource_too_big", $file["name"])."<br/>";
+ elseif( $res == GALLERY_ERROR_UPLOADS_NOT_ENABLED )
+ $errorMessage .= $this->_locale->tr("error_uploads_disabled" )."<br/>";
+ elseif( $res == GALLERY_ERROR_QUOTA_EXCEEDED )
+ $errorMessage .= $this->_locale->tr( "error_quota_exceeded" )."<br/>";
+ else
+ $errorMessage .= $this->_locale->pr("error_adding_resource", $file["name"])."<br/>";
+ }
+ }
+
+ // clear the cache no matter what happened... we should only clear it if there was at least one
+ // file uploaded but this way is not that bad after all...
+ CacheControl::resetBlogCache( $this->_blogInfo->getId());
+
+ if( $successMessage != "" ) $this->_view->setSuccessMessage( $successMessage );
+ if( $errorMessage != "" ) $this->_view->setErrorMessage( $errorMessage );
+ $this->setCommonData();
+
+ return true;
+ }
+ }
+?>
Added: plugins/trunk/jupload/class/action/pluginjuploadconfigaction.class.php
===================================================================
--- plugins/trunk/jupload/class/action/pluginjuploadconfigaction.class.php 2005-03-16 07:26:18 UTC (rev 1521)
+++ plugins/trunk/jupload/class/action/pluginjuploadconfigaction.class.php 2005-03-16 08:52:35 UTC (rev 1522)
@@ -0,0 +1,26 @@
+<?php
+
+ include_once( PLOG_CLASS_PATH."class/action/admin/siteadminaction.class.php" );
+ include_once( PLOG_CLASS_PATH."plugins/jupload/class/view/pluginjuploadconfigview.class.php" );
+
+ /**
+ * shows a form with the current configuration
+ */
+ class PluginJUploadConfigAction extends SiteAdminAction
+ {
+
+ function PluginJUploadConfigAction( $actionInfo, $request )
+ {
+ $this->SiteAdminAction( $actionInfo, $request );
+ }
+
+ function perform()
+ {
+ $this->_view = new PluginJUploadConfigView( $this->_blogInfo );
+
+ $this->setCommonData();
+
+ return true;
+ }
+ }
+?>
\ No newline at end of file
Added: plugins/trunk/jupload/class/action/pluginjuploadnewresourceaction.class.php
===================================================================
--- plugins/trunk/jupload/class/action/pluginjuploadnewresourceaction.class.php 2005-03-16 07:26:18 UTC (rev 1521)
+++ plugins/trunk/jupload/class/action/pluginjuploadnewresourceaction.class.php 2005-03-16 08:52:35 UTC (rev 1522)
@@ -0,0 +1,62 @@
+<?php
+ include_once( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
+ include_once( PLOG_CLASS_PATH."plugins/jupload/class/view/pluginjuploadnewresourceview.class.php" );
+ include_once( PLOG_CLASS_PATH."class/view/admin/adminnewalbumview.class.php" );
+ include_once( PLOG_CLASS_PATH."class/view/admin/adminerrorview.class.php" );
+ include_once( PLOG_CLASS_PATH."class/gallery/dao/galleryalbums.class.php" );
+ include_once( PLOG_CLASS_PATH."class/gallery/dao/galleryresourcestorage.class.php" );
+
+ /**
+ * Adds a new resource to an album
+ */
+ class PluginJUploadNewResourceAction extends AdminAction
+ {
+
+ /**
+ * Constructor. If nothing else, it also has to call the constructor of the parent
+ * class, BlogAction with the same parameters
+ */
+ function PluginJUploadNewResourceAction( $actionInfo, $request )
+ {
+ $this->AdminAction( $actionInfo, $request );
+ }
+
+ function validate()
+ {
+ // check that all the folders are in place
+ if( !GalleryResourceStorage::checkBaseStorageFolder()) {
+ $this->_view = new AdminErrorView( $this->_blogInfo );
+ $this->_view->setMessage( $this->_locale->tr("error_gallery_folder_missing" ));
+ $this->setCommonData();
+
+ return false;
+ }
+
+ return true;
+ }
+
+ /**
+ * Carries out the specified action
+ */
+ function perform()
+ {
+ // check that we have at least one album where to put our pictures
+ $albums = new GalleryAlbums();
+ if( $albums->getNumUserAlbums( $this->_blogInfo->getId()) == 0 ) {
+ $this->_view = new AdminNewAlbumView( $this->_blogInfo );
+ $this->_view->setErrorMessage( $this->_locale->tr("error_must_create_album_first"));
+ $this->setCommonData();
+
+ return false;
+ }
+
+ // if all's fine, continue...
+ $this->_view = new PluginJUploadNewResourceView( $this->_blogInfo );
+ $this->setCommonData();
+ $this->_view->setValue( "albums", $blogAlbums );
+
+ // better to return true if everything fine
+ return true;
+ }
+ }
+?>
Added: plugins/trunk/jupload/class/action/pluginjuploadupdateconfigaction.class.php
===================================================================
--- plugins/trunk/jupload/class/action/pluginjuploadupdateconfigaction.class.php 2005-03-16 07:26:18 UTC (rev 1521)
+++ plugins/trunk/jupload/class/action/pluginjuploadupdateconfigaction.class.php 2005-03-16 08:52:35 UTC (rev 1522)
@@ -0,0 +1,63 @@
+<?php
+
+ include_once( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
+ include_once( PLOG_CLASS_PATH."plugins/jupload/class/view/pluginjuploadconfigview.class.php" );
+
+ /**
+ * updates the plugin configuration
+ */
+ class PluginJUploadUpdateConfigAction extends AdminAction
+ {
+ var $_pluginEnabled;
+ var $_maxFilesPerRequest;
+
+ function PluginJUploadUpdateConfigAction( $actionInfo, $request )
+ {
+ $this->AdminAction( $actionInfo, $request );
+ }
+
+ function validate()
+ {
+ $this->_pluginEnabled = $this->_request->getValue( "pluginEnabled" );
+ $this->_pluginEnabled = ($this->_pluginEnabled != "" );
+ $this->_maxFilesPerRequest = $this->_request->getValue( "maxFilesPerRequest" );
+ if( $this->_maxFilesPerRequest <= 0 || $this->_maxFilesPerRequest>5 || !ctype_digit($this->_maxFilesPerRequest) ) {
+ $this->_view = new PluginJUploadConfigView( $this->_blogInfo );
+ $this->_view->setErrorMessage( $this->_locale->tr("jupload_error_maxfilesperrequest"));
+ $this->setCommonData();
+
+ return false;
+ }
+ return true;
+ }
+
+ function perform()
+ {
+ // // update the plugin configurations to blog setting
+ $config =& Config::getConfig();
+ $config->setValue( "plugin_jupload_enabled", $this->_pluginEnabled );
+ $config->setValue( "plugin_jupload_maxfilesperrequest", $this->_maxFilesPerRequest );
+
+ if( !$config->save() ) {
+ $this->_view = new PluginJUploadConfigView( $this->_blogInfo );
+ $this->_view->setErrorMessage( $this->_locale->tr("error_updating_settings"));
+ $this->setCommonData();
+
+ return false;
+ }
+
+ // if everything went ok...
+ $this->_session->setValue( "blogInfo", $this->_blogInfo );
+ $this->saveSession();
+
+ $this->_view = new PluginJUploadConfigView( $this->_blogInfo );
+ $this->_view->setSuccessMessage( $this->_locale->tr("jupload_settings_saved_ok"));
+ $this->setCommonData();
+
+ // clear the cache
+ CacheControl::resetBlogCache( $this->_blogInfo->getId());
+
+ return true;
+ }
+ }
+?>
\ No newline at end of file
Added: plugins/trunk/jupload/class/view/pluginjuploadconfigview.class.php
===================================================================
--- plugins/trunk/jupload/class/view/pluginjuploadconfigview.class.php 2005-03-16 07:26:18 UTC (rev 1521)
+++ plugins/trunk/jupload/class/view/pluginjuploadconfigview.class.php 2005-03-16 08:52:35 UTC (rev 1522)
@@ -0,0 +1,31 @@
+<?php
+
+ include_once( PLOG_CLASS_PATH."class/view/admin/adminplugintemplatedview.class.php" );
+
+ /**
+ * implements the main view of the feed reader plugin
+ */
+ class PluginJUploadConfigView extends AdminPluginTemplatedView
+ {
+
+ function PluginJUploadConfigView( $blogInfo )
+ {
+ $this->AdminPluginTemplatedView( $blogInfo, "jupload", "pluginsettings" );
+ }
+
+ function render()
+ {
+ // load some configuration settings
+ $config =& Config::getConfig();
+ $pluginEnabled = $config->getValue( "plugin_jupload_enabled" );
+ $maxFilesPerRequest = $config->getValue( "plugin_jupload_maxfilesperrequest" );
+ if ($maxFilesPerRequest == "") $maxFilesPerRequest = 3;
+
+ // create a view and export the settings to the template
+ $this->setValue( "pluginEnabled", $pluginEnabled );
+ $this->setValue( "maxFilesPerRequest", $maxFilesPerRequest );
+
+ parent::render();
+ }
+ }
+?>
\ No newline at end of file
Added: plugins/trunk/jupload/class/view/pluginjuploadnewresourceview.class.php
===================================================================
--- plugins/trunk/jupload/class/view/pluginjuploadnewresourceview.class.php 2005-03-16 07:26:18 UTC (rev 1521)
+++ plugins/trunk/jupload/class/view/pluginjuploadnewresourceview.class.php 2005-03-16 08:52:35 UTC (rev 1522)
@@ -0,0 +1,33 @@
+<?php
+
+ include_once( PLOG_CLASS_PATH."class/view/admin/adminplugintemplatedview.class.php" );
+ include_once( PLOG_CLASS_PATH."class/gallery/dao/galleryalbums.class.php" );
+
+ class PluginJUploadNewResourceView extends AdminPluginTemplatedView
+ {
+
+ function PluginJUploadNewResourceView( $blogInfo )
+ {
+ $this->AdminPluginTemplatedView( $blogInfo, "jupload", "juploadnewresource" );
+ }
+
+ function render()
+ {
+ // get all the albums
+ $albums = new GalleryAlbums();
+ $userAlbums = $albums->getNestedAlbumList( $this->_blogInfo->getId());
+ $this->notifyEvent( EVENT_ALBUMS_LOADED, Array( "albums" => &$userAlbums ));
+
+ $config =& Config::getConfig();
+ $maxFilesPerRequest = $config->getValue( "plugin_jupload_maxfilesperrequest" );
+ $maxTotalRequestSize = $config->getValue( "maximum_file_upload_size" );
+
+ $this->setValue( "albums", $userAlbums );
+ $this->setValue( "maxFilesPerRequest", $maxFilesPerRequest );
+ $this->setValue( "maxTotalRequestSize", $maxTotalRequestSize );
+
+ // transfer control to the parent class
+ parent::render();
+ }
+ }
+?>
\ No newline at end of file
Added: plugins/trunk/jupload/jupload/jupload.jar
===================================================================
(Binary files differ)
Property changes on: plugins/trunk/jupload/jupload/jupload.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: plugins/trunk/jupload/jupload/jupload_uncompressed.jar
===================================================================
(Binary files differ)
Property changes on: plugins/trunk/jupload/jupload/jupload_uncompressed.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: plugins/trunk/jupload/jupload/lib/skinlf.jar
===================================================================
(Binary files differ)
Property changes on: plugins/trunk/jupload/jupload/lib/skinlf.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: plugins/trunk/jupload/jupload/skins/aquathemepack.zip
===================================================================
(Binary files differ)
Property changes on: plugins/trunk/jupload/jupload/skins/aquathemepack.zip
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: plugins/trunk/jupload/jupload/skins/xplunathemepack.zip
===================================================================
(Binary files differ)
Property changes on: plugins/trunk/jupload/jupload/skins/xplunathemepack.zip
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: plugins/trunk/jupload/pluginjupload.class.php
===================================================================
--- plugins/trunk/jupload/pluginjupload.class.php 2005-03-16 07:26:18 UTC (rev 1521)
+++ plugins/trunk/jupload/pluginjupload.class.php 2005-03-16 08:52:35 UTC (rev 1522)
@@ -0,0 +1,64 @@
+<?php
+
+ include_once( PLOG_CLASS_PATH."class/plugin/pluginbase.class.php" );
+ include_once( PLOG_CLASS_PATH."class/plugin/pluginmanager.class.php" );
+
+ /**
+ * Plugin offers you to integrate JUpload with pLog.
+ */
+ class PluginJUpload extends PluginBase
+ {
+ var $resourceCenterEnabled;
+ var $pluginEnabled;
+ var $maxFilesPerRequest;
+ var $maxTotalRequestSize;
+
+ function PluginJUpload()
+ {
+ $this->PluginBase();
+
+ $this->id = "jupload";
+ $this->author = "Mark Wu";
+ $this->desc = "This plugin offers you to integrate JUpload with pLog.";
+
+ $config =& Config::getConfig();
+ $this->resourceCenterEnabled = $config->getValue( "resources_enabled" );
+ $this->pluginEnabled = $config->getValue( "plugin_jupload_enabled" );
+ $this->maxFilesPerRequest = $config->getValue( "plugin_jupload_maxfilesperrequest" );
+ $this->maxTotalRequestSize = $config->getValue( "maximum_file_upload_size" );
+
+ $this->locales = Array();
+
+ $this->init();
+ }
+
+ function init()
+ {
+ $this->registerAdminAction( "juploadConfig", "PluginJUploadConfigAction" );
+ $this->registerAdminAction( "juploadUpdateConfig", "PluginJUploadUpdateConfigAction" );
+ $this->registerAdminAction( "juploadNewResource", "PluginJUploadNewResourceAction" );
+ $this->registerAdminAction( "juploadAddResource", "PluginJUploadAddResourceAction" );
+
+ $this->addMenuEntry( "/menu/adminSettings/GlobalSettings", "juploadConfig", "?op=juploadConfig","" );
+ if ( $this->resourceCenterEnabled && $this->pluginEnabled )
+ {
+ $this->addMenuEntry( "/menu/resourceCenter", "juploadNewResource", "?op=juploadNewResource", "" );
+ }
+ }
+
+ function isEnabled()
+ {
+ return $this->pluginEnabled;
+ }
+
+ function getMaxFilesPerRequest()
+ {
+ return $this->maxFilesPerRequest;
+ }
+
+ function getMaxTotalRequestSize()
+ {
+ return $this->maxTotalRequestSize;
+ }
+ }
+?>
\ No newline at end of file
Added: plugins/trunk/jupload/templates/juploadnewresource.template
===================================================================
--- plugins/trunk/jupload/templates/juploadnewresource.template 2005-03-16 07:26:18 UTC (rev 1521)
+++ plugins/trunk/jupload/templates/juploadnewresource.template 2005-03-16 08:52:35 UTC (rev 1522)
@@ -0,0 +1,76 @@
+{include file="$admintemplatepath/header.template"}
+{include file="$admintemplatepath/navigation.template" showOpt=juploadNewResource title=$locale->tr("juploadNewResource")}
+ <div class="fieldset" style="position: relative; z-index: 1;">
+ <span style="position: relative; z-index: 2; left:10px; top: -8px; background-color: #FFFFFF; font-size: 1em; font-weight: bold;">{$locale->tr("newResource")}</span>
+ <form name="JUploadForm" action="admin.php" method="post" enctype="multipart/form-data">
+ {include file="$admintemplatepath/formvalidate.template" message=$locale->tr("error_adding_resource")}
+
+ <div class="field">
+ <label for="albumId">{$locale->tr("album")}</label>
+ <span class="required">*</span>
+ <div class="formHelp">{$locale->tr("resource_album_help")}</div>
+ <select name="albumId" id="albumId">
+ {foreach from=$albums item=album}
+ {assign var=indentLevel value=$album->getValue("level")}
+ <option value="{$album->getId()}">
+ {textformat indent=$indentLevel indent_char=" "}{$album->getName()}{/textformat}
+ </option>
+ {/foreach}
+ </select>
+ </div>
+ <div class="buttons">
+ <input type="hidden" name="op" value="addResource" />
+ </div>
+ </form>
+
+ <strong style="font-size: 1em; font-weight: bold;"><label for="resourceFile_1">{$locale->tr("file")}</label>
+ <span class="required">*</span></strong>
+ <div class="formHelp">{$locale->tr("resource_file_help")}</div>
+
+
+
+ <applet
+ code="JUpload.startup"
+ archive="plugins/jupload/jupload/jupload.jar,plugins/jupload/jupload/lib/skinlf.jar"
+ width="700"
+ height="300"
+ mayscript
+ name="JUpload"
+ alt="JUpload by www.jupload.biz">
+
+ <!-- Java Plug-In Options -->
+ <param name="progressbar" value="true">
+ <param name="boxmessage" value="Loading JUpload Applet ...">
+ <param name="disableContextMenu" value="true">
+ <param name="mainSplitpaneLocation" value="550">
+ <param name="boxbgcolor" value="#ffffff">
+ <param name="backgroundColor" value="#ffffff">
+
+ <!-- Label Options -->
+ <param name="labelAdd" value="Add">
+ <param name="labelRemove" value="Remove">
+ <param name="labelUpload" value="Upload">
+ <param name="labelStopUpload" value="Stop">
+
+ <!-- SkinLF Options -->
+ <param name="skinThemePackURL" value="plugins/jupload/jupload/skins/xplunathemepack.zip">
+ <param name="lookAndFeelClass" value="com.l2fprod.gui.plaf.skin.SkinLookAndFeel">
+
+ <!-- TargetOptions -->
+ <param name="actionURL" value="{$url->getUrl("/admin.php")}">
+ <param name="completeURL" value="{$url->getUrl("/admin.php?op=juploadNewResource")}">
+
+ <!-- IF YOU HAVE PROBLEMS, CHANGE THIS TO TRUE BEFORE CONTACTING SUPPORT -->
+ <param name="debug" value="false">
+ <param name="showServerResponse" value="false">
+ <param name="showSuccessDialog" value="false">
+ <param name="realTimeResponse" value="false">
+ <param name="maxFilesPerRequest" value="{$maxFilesPerRequest}">
+ <param name="maxTotalRequestSize" value="{$maxTotalRequestSize}">
+ Your browser does not support applets. Or you have disabled applet in your options.
+ To use this applet, please install the newest version of Sun's java. You can get it from <a href="http://www.java.com/">java.com</a>
+ </applet>
+ </div>
+
+{include file="$admintemplatepath/footernavigation.template"}
+{include file="$admintemplatepath/footer.template"}
Added: plugins/trunk/jupload/templates/pluginsettings.template
===================================================================
--- plugins/trunk/jupload/templates/pluginsettings.template 2005-03-16 07:26:18 UTC (rev 1521)
+++ plugins/trunk/jupload/templates/pluginsettings.template 2005-03-16 08:52:35 UTC (rev 1522)
@@ -0,0 +1,37 @@
+{include file="$admintemplatepath/header.template"}
+{include file="$admintemplatepath/navigation.template" showOpt=juploadConfig title=$locale->tr("juploadConfig")}
+<form name="juploadConfig" method="post">
+ <fieldset class="inputField">
+ <legend>{$locale->tr("label_configuration")}</legend>
+ {include file="$admintemplatepath/successmessage.template"}
+ {include file="$admintemplatepath/errormessage.template"}
+ <div class="field">
+ <label for="pluginEnabled">{$locale->tr("label_enable")}</label>
+ <span class="required"></span>
+ <div class="formHelp">
+ <input class="checkbox" type="checkbox" name="pluginEnabled" id="pluginEnabled" {if $pluginEnabled} checked="checked" {/if} value="1" />{$locale->tr("templateeditor_plugin_enabled")}
+ </div>
+ </div>
+
+ <div class="field">
+ <label for="maxFilesPerRequest">{$locale->tr("label_maxfilesperrequest")}</label>
+ <span class="required">*</span>
+ <div class="formHelp">{$locale->tr("jupload_maxfilesperrequest")}</div>
+ <select name="maxFilesPerRequest" id="maxFilesPerRequest">
+ <option value="1" {if $maxFilesPerRequest==1}selected="selected"{/if}>1</option>
+ <option value="2" {if $maxFilesPerRequest==2}selected="selected"{/if}>2</option>
+ <option value="3" {if $maxFilesPerRequest==3}selected="selected"{/if}>3</option>
+ <option value="4" {if $maxFilesPerRequest==4}selected="selected"{/if}>4</option>
+ <option value="5" {if $maxFilesPerRequest==5}selected="selected"{/if}>5</option>
+ </select> </div>
+
+ </fieldset>
+
+ <div class="buttons">
+ <input type="hidden" name="op" value="juploadUpdateConfig" />
+ <input type="reset" name="{$locale->tr("reset")}" />
+ <input type="submit" name="{$locale->tr("update_settings")}" value="{$locale->tr("update")}" />
+ </div>
+</form>
+{include file="$admintemplatepath/footernavigation.template"}
+{include file="$admintemplatepath/footer.template"}
More information about the pLog-svn
mailing list