Exemplo n.º 1
0
		}
	};
');
?>
<legend><?php 
echo JText::_('PLG_INSTALLER_PACKAGEINSTALLER_UPLOAD_INSTALL_JOOMLA_EXTENSION');
?>
</legend>
<div class="control-group">
	<label for="install_package" class="control-label"><?php 
echo JText::_('PLG_INSTALLER_PACKAGEINSTALLER_EXTENSION_PACKAGE_FILE');
?>
</label>
	<div class="controls">
		<input class="input_box" id="install_package" name="install_package" type="file" size="57" /><br>
		<?php 
$maxSize = JHtml::_('number.bytes', JUtility::getMaxUploadSize());
?>
		<?php 
echo JText::sprintf('JGLOBAL_MAXIMUM_UPLOAD_SIZE_LIMIT', $maxSize);
?>
	</div>
</div>
<div class="form-actions">
	<button class="btn btn-primary" type="button" id="installbutton_package" onclick="Joomla.submitbuttonpackage()">
		<?php 
echo JText::_('PLG_INSTALLER_PACKAGEINSTALLER_UPLOAD_AND_INSTALL');
?>
	</button>
</div>
Exemplo n.º 2
0
							<label for="upload-file" class="control-label"><?php 
    echo JText::_('COM_MEDIA_UPLOAD_FILE');
    ?>
</label>
						</div>
						<div class="controls">
							<input required type="file" id="upload-file" name="Filedata[]" multiple /><button class="btn btn-primary" id="upload-submit"><span class="icon-upload icon-white"></span> <?php 
    echo JText::_('COM_MEDIA_START_UPLOAD');
    ?>
</button>
							<p class="help-block">
								<?php 
    $cMax = (int) $this->config->get('upload_maxsize');
    ?>
								<?php 
    $maxSize = JUtility::getMaxUploadSize($cMax . 'MB');
    ?>
								<?php 
    echo JText::sprintf('JGLOBAL_MAXIMUM_UPLOAD_SIZE_LIMIT', JHtml::_('number.bytes', $maxSize));
    ?>
							</p>
						</div>
					</div>
				</fieldset>
				<?php 
    JFactory::getSession()->set('com_media.return_url', 'index.php?option=com_media&view=images&tmpl=component&fieldid=' . $input->getCmd('fieldid', '') . '&e_name=' . $input->getCmd('e_name') . '&asset=' . $input->getCmd('asset') . '&author=' . $input->getCmd('author'));
    ?>
			</div>
		</form>
	<?php 
}