| [ Index ] |
PHP Cross Reference of Joomla 2.5.4 DE |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @package Joomla.Administrator 4 * @subpackage com_installer 5 * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. 6 * @license GNU General Public License version 2 or later; see LICENSE.txt 7 * @since 1.5 8 */ 9 10 // no direct access 11 defined('_JEXEC') or die; 12 ?> 13 <script type="text/javascript"> 14 Joomla.submitbutton = function(pressbutton) { 15 var form = document.getElementById('adminForm'); 16 17 // do field validation 18 if (form.install_package.value == ""){ 19 alert("<?php echo JText::_('COM_INSTALLER_MSG_INSTALL_PLEASE_SELECT_A_PACKAGE', true); ?>"); 20 } else { 21 form.installtype.value = 'upload'; 22 form.submit(); 23 } 24 } 25 26 Joomla.submitbutton3 = function(pressbutton) { 27 var form = document.getElementById('adminForm'); 28 29 // do field validation 30 if (form.install_directory.value == ""){ 31 alert("<?php echo JText::_('COM_INSTALLER_MSG_INSTALL_PLEASE_SELECT_A_DIRECTORY', true); ?>"); 32 } else { 33 form.installtype.value = 'folder'; 34 form.submit(); 35 } 36 } 37 38 Joomla.submitbutton4 = function(pressbutton) { 39 var form = document.getElementById('adminForm'); 40 41 // do field validation 42 if (form.install_url.value == "" || form.install_url.value == "http://"){ 43 alert("<?php echo JText::_('COM_INSTALLER_MSG_INSTALL_ENTER_A_URL', true); ?>"); 44 } else { 45 form.installtype.value = 'url'; 46 form.submit(); 47 } 48 } 49 </script> 50 51 <form enctype="multipart/form-data" action="<?php echo JRoute::_('index.php?option=com_installer&view=install');?>" method="post" name="adminForm" id="adminForm"> 52 53 <?php if ($this->ftp) : ?> 54 <?php echo $this->loadTemplate('ftp'); ?> 55 <?php endif; ?> 56 <div class="width-70 fltlft"> 57 <fieldset class="uploadform"> 58 <legend><?php echo JText::_('COM_INSTALLER_UPLOAD_PACKAGE_FILE'); ?></legend> 59 <label for="install_package"><?php echo JText::_('COM_INSTALLER_PACKAGE_FILE'); ?></label> 60 <input class="input_box" id="install_package" name="install_package" type="file" size="57" /> 61 <input class="button" type="button" value="<?php echo JText::_('COM_INSTALLER_UPLOAD_AND_INSTALL'); ?>" onclick="Joomla.submitbutton()" /> 62 </fieldset> 63 <div class="clr"></div> 64 <fieldset class="uploadform"> 65 <legend><?php echo JText::_('COM_INSTALLER_INSTALL_FROM_DIRECTORY'); ?></legend> 66 <label for="install_directory"><?php echo JText::_('COM_INSTALLER_INSTALL_DIRECTORY'); ?></label> 67 <input type="text" id="install_directory" name="install_directory" class="input_box" size="70" value="<?php echo $this->state->get('install.directory'); ?>" /> <input type="button" class="button" value="<?php echo JText::_('COM_INSTALLER_INSTALL_BUTTON'); ?>" onclick="Joomla.submitbutton3()" /> 68 </fieldset> 69 <div class="clr"></div> 70 <fieldset class="uploadform"> 71 <legend><?php echo JText::_('COM_INSTALLER_INSTALL_FROM_URL'); ?></legend> 72 <label for="install_url"><?php echo JText::_('COM_INSTALLER_INSTALL_URL'); ?></label> 73 <input type="text" id="install_url" name="install_url" class="input_box" size="70" value="http://" /> 74 <input type="button" class="button" value="<?php echo JText::_('COM_INSTALLER_INSTALL_BUTTON'); ?>" onclick="Joomla.submitbutton4()" /> 75 </fieldset> 76 <input type="hidden" name="type" value="" /> 77 <input type="hidden" name="installtype" value="upload" /> 78 <input type="hidden" name="task" value="install.install" /> 79 <?php echo JHtml::_('form.token'); ?> 80 </div> 81 </form>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Tue Apr 3 11:40:28 2012 | Cross-referenced by PHPXref 0.7.1 |