<?php defined('_JEXEC') or die('Restricted access'); ?>
<script language="javascript" type="text/javascript">
<!--
function submitbutton(pressbutton) {
var form = document.adminForm;
if (pressbutton == 'cancel') {
submitform( pressbutton );
return;
}
// do field validation
if (form.greeting.value == "") {
alert( "<?php echo JText::_( 'You must provide a greeting text.', true ); ?>" );
} else {
submitform( pressbutton );
}
}
//-->
</script>
<form action="index.php" method="post" name="adminForm" id="adminForm">
<div class="col100">
<fieldset class="adminform">
<legend><?php echo JText::_( 'Details' ); ?></legend>
<table class="admintable">
<tr>
<td width="100" align="right" class="key">
<label for="greeting">
<?php echo JText::_( 'Greeting' ); ?>:
</label>
</td>
<td>
<input class="text_area"
type="text"
name="greeting"
id="greeting"
size="32"
maxlength="250"
value="<?php echo $this->hellos->greeting;?>" />
</td>
</tr>
</table>
</fieldset>
</div>
<div class="clr"></div>
<input type="hidden" name="option" value="com_hellos" />
<input type="hidden" name="id" value="<?php echo $this->hellos->id; ?>" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="controller" value="hellos" />
</form>
|