- md5
- f7b084aac5942f9501a35331306ff293
- sha1
- 2d574db9d68cb86abd1121d72c787ef4783d813c
- sha256
- 71545bb8d036eed96512d73fe75d437b2c25e9a91c0d95afb9b048e261987448
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
<?php defined('_JEXEC') or die('Restricted access'); ?>
<?php JHTML::_('behavior.tooltip'); ?>
<?php
JToolBarHelper::title( JText::_( 'Plugin' ) .': <small><small>[' .JText::_('Edit'). ']</small></small>', 'plugin.png' );
JToolBarHelper::save();
JToolBarHelper::apply();
JToolBarHelper::cancel( 'cancel', 'Close' );
JToolBarHelper::help( 'screen.plugins.edit' );
?>
<?php
// clean item data
JFilterOutput::objectHTMLSafe( $this->plugin, ENT_QUOTES, '' );
?>
<?php
$this->plugin->nameA = '';
if ( $this->plugin->id ) {
$row->nameA = '<small><small>[ '. $this->plugin->name .' ]</small></small>';
}
?>
<script language="javascript" type="text/javascript">
function submitbutton(pressbutton) {
if (pressbutton == "cancel") {
submitform(pressbutton);
return;
}
// validation
var form = document.adminForm;
if (form.name.value == "") {
alert( "<?php echo JText::_( 'Plugin must have a name', true ); ?>" );
} else if (form.element.value == "") {
alert( "<?php echo JText::_( 'Plugin must have a filename', true ); ?>" );
} else {
submitform(pressbutton);
}
}
</script>
<form action="index.php" method="post" name="adminForm">
<div class="col width-60">
<fieldset class="adminform">
<legend><?php echo JText::_( 'Details' ); ?></legend>
<table class="admintable">
<tr>
<td width="100" class="key">
<label for="name">
<?php echo JText::_( 'Name' ); ?>:
</label>
</td>
<td>
<input class="text_area" type="text" name="name" id="name" size="35" value="<?php echo $this->plugin->name; ?>" />
</td>
</tr>
<tr>
<td valign="top" class="key">
<?php echo JText::_( 'Published' ); ?>:
</td>
<td>
<?php echo $this->lists['published']; ?>
</td>
</tr>
<tr>
<td valign="top" class="key">
<label for="folder">
<?php echo JText::_( 'Type' ); ?>:
</label>
</td>
<td>
<?php echo $this->plugin->folder; ?>
</td>
</tr>
<tr>
<td valign="top" class="key">
<label for="element">
<?php echo JText::_( 'Plugin file' ); ?>:
</label>
</td>
<td>
<input class="text_area" type="text" name="element" id="element" size="35" value="<?php echo $this->plugin->element; ?>" />.php
</td>
</tr>
<tr>
<td valign="top" class="key">
<label for="access">
<?php echo JText::_( 'Access Level' ); ?>:
</label>
</td>
<td>
<?php echo $this->lists['access']; ?>
</td>
</tr>
<tr>
<td valign="top" class="key">
<?php echo JText::_( 'Order' ); ?>:
</td>
<td>
<?php echo $this->lists['ordering']; ?>
</td>
</tr>
<tr>
<td valign="top" class="key">
<?php echo JText::_( 'Description' ); ?>:
</td>
<td>
<?php echo JText::_( $this->plugin->description ); ?>
</td>
</tr>
</table>
</fieldset>
</div>
<div class="col width-40">
<fieldset class="adminform">
<legend><?php echo JText::_( 'Parameters' ); ?></legend>
<?php
jimport('joomla.html.pane');
// TODO: allowAllClose should default true in J!1.6, so remove the array when it does.
$pane = &JPane::getInstance('sliders', array('allowAllClose' => true));
echo $pane->startPane('plugin-pane');
echo $pane->startPanel(JText :: _('Plugin Parameters'), 'param-page');
if($output = $this->params->render('params')) :
echo $output;
else :
echo "<div style=\"text-align: center; padding: 5px; \">".JText::_('There are no parameters for this item')."</div>";
endif;
echo $pane->endPanel();
if ($this->params->getNumParams('advanced')) {
echo $pane->startPanel(JText :: _('Advanced Parameters'), "advanced-page");
if($output = $this->params->render('params', 'advanced')) :
echo $output;
else :
echo "<div style=\"text-align: center; padding: 5px; \">".JText::_('There are no advanced parameters for this item')."</div>";
endif;
echo $pane->endPanel();
}
if ($this->params->getNumParams('legacy')) {
echo $pane->startPanel(JText :: _('Legacy Parameters'), "legacy-page");
if($output = $this->params->render('params', 'legacy')) :
echo $output;
else :
echo "<div style=\"text-align: center; padding: 5px; \">".JText::_('There are no legacy parameters for this item')."</div>";
endif;
echo $pane->endPanel();
}
echo $pane->endPane();
?>
</fieldset>
</div>
<div class="clr"></div>
<input type="hidden" name="option" value="com_plugins" />
<input type="hidden" name="id" value="<?php echo $this->plugin->id; ?>" />
<input type="hidden" name="cid[]" value="<?php echo $this->plugin->id; ?>" />
<input type="hidden" name="client" value="<?php echo $this->plugin->client_id; ?>" />
<input type="hidden" name="task" value="" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>
The same content is in 22 releases, Joomla 1.5.5 to 1.5.26. See them all, or every version of this file.