| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
1 <?php // no direct access 2 defined( '_JEXEC' ) or die( 'Restricted access' ); ?> 3 <script language="javascript" type="text/javascript"> 4 <!-- 5 function submitbutton3(pressbutton) { 6 var form = document.adminForm; 7 8 // do field validation 9 if (form.install_directory.value == ""){ 10 alert( "<?php echo JText::_( 'Please select a directory', true ); ?>" ); 11 } else { 12 form.installtype.value = 'folder'; 13 form.submit(); 14 } 15 } 16 17 function submitbutton4(pressbutton) { 18 var form = document.adminForm; 19 20 // do field validation 21 if (form.install_url.value == "" || form.install_url.value == "http://"){ 22 alert( "<?php echo JText::_( 'Please enter a URL', true ); ?>" ); 23 } else { 24 form.installtype.value = 'url'; 25 form.submit(); 26 } 27 } 28 //--> 29 </script> 30 31 <form enctype="multipart/form-data" action="index.php" method="post" name="adminForm"> 32 33 <?php if ($this->ftp) : ?> 34 <?php echo $this->loadTemplate('ftp'); ?> 35 <?php endif; ?> 36 37 <table class="adminform"> 38 <tr> 39 <th colspan="2"><?php echo JText::_( 'Upload Package File' ); ?></th> 40 </tr> 41 <tr> 42 <td width="120"> 43 <label for="install_package"><?php echo JText::_( 'Package File' ); ?>:</label> 44 </td> 45 <td> 46 <input class="input_box" id="install_package" name="install_package" type="file" size="57" /> 47 <input class="button" type="button" value="<?php echo JText::_( 'Upload File' ); ?> & <?php echo JText::_( 'Install' ); ?>" onclick="submitbutton()" /> 48 </td> 49 </tr> 50 </table> 51 52 <table class="adminform"> 53 <tr> 54 <th colspan="2"><?php echo JText::_( 'Install from directory' ); ?></th> 55 </tr> 56 <tr> 57 <td width="120"> 58 <label for="install_directory"><?php echo JText::_( 'Install directory' ); ?>:</label> 59 </td> 60 <td> 61 <input type="text" id="install_directory" name="install_directory" class="input_box" size="70" value="<?php echo $this->state->get('install.directory'); ?>" /> 62 <input type="button" class="button" value="<?php echo JText::_( 'Install' ); ?>" onclick="submitbutton3()" /> 63 </td> 64 </tr> 65 </table> 66 67 <table class="adminform"> 68 <tr> 69 <th colspan="2"><?php echo JText::_( 'Install from URL' ); ?></th> 70 </tr> 71 <tr> 72 <td width="120"> 73 <label for="install_url"><?php echo JText::_( 'Install URL' ); ?>:</label> 74 </td> 75 <td> 76 <input type="text" id="install_url" name="install_url" class="input_box" size="70" value="http://" /> 77 <input type="button" class="button" value="<?php echo JText::_( 'Install' ); ?>" onclick="submitbutton4()" /> 78 </td> 79 </tr> 80 </table> 81 82 <input type="hidden" name="type" value="" /> 83 <input type="hidden" name="installtype" value="upload" /> 84 <input type="hidden" name="task" value="doInstall" /> 85 <input type="hidden" name="option" value="com_installer" /> 86 <?php echo JHTML::_( 'form.token' ); ?> 87 </form>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |