Login   Register  
PHP Classes

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


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 );
    // do field validation
    if (form.greeting.value == "") {
        alert( "<?php echo JText::_'You must provide a greeting text.'true ); ?>" );
    } else {
        submitform( pressbutton );
<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">
            <td width="100" align="right" class="key">
                <label for="greeting">
                <?php echo JText::_'Greeting' ); ?>:
            <input class="text_area" 
            value="<?php echo $this->hellos->greeting;?>" />            
<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" />