Location: PHPKode > projects > injooosm > administrator/components/com_injooosm/views/comments/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');

// toolbar
JToolBarHelper::title(JText::_('OSM_EDIT_COMMENT'), 'addedit.png');
JToolBarHelper::back($alt= 'Back', $href= 'javascript:history.back();');
JToolBarHelper::spacer();
JToolBarHelper::save('saveComment', 'Save', 'save.png' );
?>
<form class="adminForm" name="adminForm" id="adminForm" method="post" action="">
    <table class="adminlist">
        <thead>
        <tr>
            <th colspan="2"><?php echo JText::_('OSM_EDIT_COMMENT'); ?></th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td><?php echo JText::_('user'); ?></td>
            <td><input type="text" name="user" value="<?php echo $this->comment->user; ?>" size="30" readonly="readonly" /></td>
        </tr>
        <tr>
            <td><?php echo JText::_('email'); ?></td>
            <td><input type="text" name="email" value="<?php echo $this->comment->email; ?>" size="30" readonly="readonly" /></td>
        </tr>
        <tr>
            <td><?php echo JText::_('title'); ?></td>
            <td><input type="text" name="title" value="<?php echo $this->comment->title; ?>" size="30" /></td>
        </tr>
        <tr>
            <td><?php echo JText::_('text'); ?></td>
            <td><?php echo $this->editor->display( 'text', $this->comment->text , '500', '200', '100', '50', true ) ; ?></td>
        </tr>
        </tbody>
    </table>
    <?php
    echo JHTML::_( 'form.token' ); ?>
    <input type="hidden" name="option" value="com_injooosm" />
    <input type="hidden" name="controller" value="comments" />
    <input type="hidden" name="task" value="" />
    <input type="hidden" name="id" value="<?php echo $this->comment->id; ?>" />
</form>
Return current item: injooosm