Login   Register  
PHP Classes
elePHPant
Icontem

File: example/admin/views/hellos/tmpl/form.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Luis Dias  >  Joomla MVC Classes  >  example/admin/views/hellos/tmpl/form.php  >  Download  
File: example/admin/views/hellos/tmpl/form.php
Role: Example script
Content type: text/plain
Description: Hellos Form Template
Class: Joomla MVC Classes
Base MVC classes for developing Joomla extension
Author: By
Last change:
Date: 4 years ago
Size: 1,357 bytes
 

Contents

Class file image Download
<?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>