Location: PHPKode > projects > injooosm > administrator/components/com_injooosm/views/cats/tmpl/form.php
<?php
/**
 * Joomla! 1.5 component injooosm
 *
 * @version $Id: form.php 2009-11-22 14:03:00$
 * @author Christian Knorr
 * @package injooosm
 * @subpackage backend
 * @license GNU/GPL
 * @filesource
 *
 */

// no direct access
defined('_JEXEC') or die('Restricted access');

JToolBarHelper::title(JText::_('OSM_ADD_CAT'), 'categories.png');
JToolBarHelper::back($alt= 'Back', $href= 'javascript:history.back();');
JToolBarHelper::spacer();
JToolBarHelper::save('savecat', 'Save', 'save.png' );

?>
<form action="" method="post" name="adminForm" id="adminForm" class="adminForm" enctype="multipart/form-data">
    <table class="adminlist" cellpadding="1">
        <thead>
            <tr>
                <th colspan="5" align="center"><?php echo JText::_('OSM_ADD_CAT'); ?></th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td width="150px"><?php echo JText::_('OSM_TITLE'); ?></td>
                <td><input type="text" name="title" value="" /></td>
            </tr>
            <tr>
                <td width="150px"><?php echo JText::_('OSM_PARENT'); ?></td>
                <td><?php echo $this->lists['parent']; ?></td>
            </tr>
            <tr>
                <td width="150px"><?php echo JText::_('PUBLISHED'); ?></td>
                <td><?php echo $this->lists['block']; ?></td>
            </tr>
            <tr>
                <td width="150px"><?php echo JText::_('IMAGE'); ?></td>
                <td><input type="file" name="image" value="" width="30" maxlength="<?php echo $this->maxsize; ?>" /></td>
            </tr>
            <tr>
                <td><?php echo JText::_('OSM_DESC'); ?></td>
                <td><?php echo $this->editor->display( 'desc', '' , '500', '200', '75', '20', false ) ; ?></td>
            </tr>
        </tbody>
    </table>
    <?php
    echo JHTML::_( 'form.token' ); ?>
    <input type="hidden" name="option" value="com_injooosm" />
    <input type="hidden" name="controller" value="cats" />
    <input type="hidden" name="task" value="" />
    <input type="hidden" name="MAX_FILES_SIZE" value="<?php echo $this->maxsize; ?>">
</form>
Return current item: injooosm