| [ Indice ] |
Riferimento incrociato di Joomla! 1.5.14 - VM 1.1.4Servizio fornito da VMItalia |
[Vedi sommario] [Stampa] [Vedi testo]
1 <?php defined('_JEXEC') or die('Restricted access'); ?> 2 3 <?php JHTML::_('behavior.tooltip'); ?> 4 5 <?php 6 JToolBarHelper::title( JText::_( 'Plugin' ) .': <small><small>[' .JText::_('Edit'). ']</small></small>', 'plugin.png' ); 7 JToolBarHelper::save(); 8 JToolBarHelper::apply(); 9 JToolBarHelper::cancel( 'cancel', 'Close' ); 10 JToolBarHelper::help( 'screen.plugins.edit' ); 11 ?> 12 13 <?php 14 // clean item data 15 JFilterOutput::objectHTMLSafe( $this->plugin, ENT_QUOTES, '' ); 16 ?> 17 18 <?php 19 $this->plugin->nameA = ''; 20 if ( $this->plugin->id ) { 21 $row->nameA = '<small><small>[ '. $this->plugin->name .' ]</small></small>'; 22 } 23 ?> 24 <script language="javascript" type="text/javascript"> 25 function submitbutton(pressbutton) { 26 if (pressbutton == "cancel") { 27 submitform(pressbutton); 28 return; 29 } 30 // validation 31 var form = document.adminForm; 32 if (form.name.value == "") { 33 alert( "<?php echo JText::_( 'Plugin must have a name', true ); ?>" ); 34 } else if (form.element.value == "") { 35 alert( "<?php echo JText::_( 'Plugin must have a filename', true ); ?>" ); 36 } else { 37 submitform(pressbutton); 38 } 39 } 40 </script> 41 42 <form action="index.php" method="post" name="adminForm"> 43 <div class="col width-60"> 44 <fieldset class="adminform"> 45 <legend><?php echo JText::_( 'Details' ); ?></legend> 46 <table class="admintable"> 47 <tr> 48 <td width="100" class="key"> 49 <label for="name"> 50 <?php echo JText::_( 'Name' ); ?>: 51 </label> 52 </td> 53 <td> 54 <input class="text_area" type="text" name="name" id="name" size="35" value="<?php echo $this->plugin->name; ?>" /> 55 </td> 56 </tr> 57 <tr> 58 <td valign="top" class="key"> 59 <?php echo JText::_( 'Published' ); ?>: 60 </td> 61 <td> 62 <?php echo $this->lists['published']; ?> 63 </td> 64 </tr> 65 <tr> 66 <td valign="top" class="key"> 67 <label for="folder"> 68 <?php echo JText::_( 'Type' ); ?>: 69 </label> 70 </td> 71 <td> 72 <?php echo $this->plugin->folder; ?> 73 </td> 74 </tr> 75 <tr> 76 <td valign="top" class="key"> 77 <label for="element"> 78 <?php echo JText::_( 'Plugin file' ); ?>: 79 </label> 80 </td> 81 <td> 82 <input class="text_area" type="text" name="element" id="element" size="35" value="<?php echo $this->plugin->element; ?>" />.php 83 </td> 84 </tr> 85 <tr> 86 <td valign="top" class="key"> 87 <label for="access"> 88 <?php echo JText::_( 'Access Level' ); ?>: 89 </label> 90 </td> 91 <td> 92 <?php echo $this->lists['access']; ?> 93 </td> 94 </tr> 95 <tr> 96 <td valign="top" class="key"> 97 <?php echo JText::_( 'Order' ); ?>: 98 </td> 99 <td> 100 <?php echo $this->lists['ordering']; ?> 101 </td> 102 </tr> 103 <tr> 104 <td valign="top" class="key"> 105 <?php echo JText::_( 'Description' ); ?>: 106 </td> 107 <td> 108 <?php echo JText::_( $this->plugin->description ); ?> 109 </td> 110 </tr> 111 </table> 112 </fieldset> 113 </div> 114 <div class="col width-40"> 115 <fieldset class="adminform"> 116 <legend><?php echo JText::_( 'Parameters' ); ?></legend> 117 <?php 118 jimport('joomla.html.pane'); 119 // TODO: allowAllClose should default true in J!1.6, so remove the array when it does. 120 $pane = &JPane::getInstance('sliders', array('allowAllClose' => true)); 121 echo $pane->startPane('plugin-pane'); 122 echo $pane->startPanel(JText :: _('Plugin Parameters'), 'param-page'); 123 if($output = $this->params->render('params')) : 124 echo $output; 125 else : 126 echo "<div style=\"text-align: center; padding: 5px; \">".JText::_('There are no parameters for this item')."</div>"; 127 endif; 128 echo $pane->endPanel(); 129 130 if ($this->params->getNumParams('advanced')) { 131 echo $pane->startPanel(JText :: _('Advanced Parameters'), "advanced-page"); 132 if($output = $this->params->render('params', 'advanced')) : 133 echo $output; 134 else : 135 echo "<div style=\"text-align: center; padding: 5px; \">".JText::_('There are no advanced parameters for this item')."</div>"; 136 endif; 137 echo $pane->endPanel(); 138 } 139 140 if ($this->params->getNumParams('legacy')) { 141 echo $pane->startPanel(JText :: _('Legacy Parameters'), "legacy-page"); 142 if($output = $this->params->render('params', 'legacy')) : 143 echo $output; 144 else : 145 echo "<div style=\"text-align: center; padding: 5px; \">".JText::_('There are no legacy parameters for this item')."</div>"; 146 endif; 147 echo $pane->endPanel(); 148 } 149 echo $pane->endPane(); 150 ?> 151 </fieldset> 152 </div> 153 <div class="clr"></div> 154 155 <input type="hidden" name="option" value="com_plugins" /> 156 <input type="hidden" name="id" value="<?php echo $this->plugin->id; ?>" /> 157 <input type="hidden" name="cid[]" value="<?php echo $this->plugin->id; ?>" /> 158 <input type="hidden" name="client" value="<?php echo $this->plugin->client_id; ?>" /> 159 <input type="hidden" name="task" value="" /> 160 <?php echo JHTML::_( 'form.token' ); ?> 161 </form>
titolo
Descrizione
Corpo
titolo
Descrizione
Corpo
titolo
Descrizione
Corpo
titolo
Corpo
| Generato il: Mon Oct 19 20:29:27 2009 | Generato con PHPXref 0.7 |