Files
@ 7ec91347b83f
Branch filter:
Location: hot67beta/administrator/components/com_plugins/views/plugin/tmpl/form.php
7ec91347b83f
4.6 KiB
text/x-php
there we go
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 | <?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>
|