Location: PHPKode > projects > injooosm > components/com_injooosm/views/files/tmpl/user.php
<?php
/**
 * Joomla! 1.5 component injooosm
 *
 * @version $Id: user.php 2010-02-05 23:45:00$
 * @author Christian Knorr
 * @package injooosm
 * @subpackage frontend
 * @license GNU/GPL
 * @filesource
 *
 */
// no direct access
defined('_JEXEC') or die('Restricted access');
$user =& JFactory::getUser();
if ($user->id != 0) {
echo $this->lh;
?>
<form action="<?php echo $this->action; ?>" method="post" name="adminForm">
<table width="100%">
	<tr>
		<td>
            <?php echo JText::_('Display Num') .'&nbsp;' . $this->pagination->getLimitBox(); ?>
        </td>
        <td style="text-align:right">
            <?php echo $this->pagination->getResultsCounter( ); ?>
        </td>
	</tr>
</table>
<table class="tracktable">
    <thead>
        <tr class="sectiontableheader">
            <th>#</th>
            <th><?php echo JHTML::_('grid.sort', JText::_( 'OSM_TITLE' ), 'title', @$this->lists['order_Dir'], @$this->lists['order'], 'files' ); ?></th>
            <th width="80px"><?php echo JHTML::_('grid.sort', JText::_( 'OSM_CAT' ), 'cat', @$this->lists['order_Dir'], @$this->lists['order'], 'files' ); ?></th>
            <th width="80px"><?php echo JHTML::_('grid.sort', JText::_( 'OSM_HITS' ), 'hits', @$this->lists['order_Dir'], @$this->lists['order'], 'files' ); ?></th>
            <th width="80px"><?php echo JText::_('edit'); ?></th>
            <th width="80px"><?php echo JText::_('delete'); ?></th>
        </tr>
    </thead>
<tbody>
    <?php
	$k = 0;
	for ($i=0, $n=count( $this->rows ); $i < $n; $i++)
	{
        $row = &$this->rows[$i];
        $link = JRoute::_('index.php?option=com_injooosm&view=files&layout=file&id='.$row->id);
    ?>
    <tr class="sectiontableentry<?php echo $k; ?>">
        <td align="center"><?php echo $this->pagination->getRowOffset( $i ); ?></td>
        <td><a href="<?php echo $link; ?>"><?php echo $row->title; ?></a></td>
        <td><img src="<?php echo JURI::base(); ?>/images/injooosm/cats/<?php echo $row->image; ?>" alt="<?php echo $row->cat; ?>" title="<?php echo $row->cat; ?>" width="32px" /></td>
        <td><?php echo $row->hits; ?></td>
        <td><a href="index.php?option=com_injooosm&view=files&layout=form&id=<?php echo $row->id; ?>"><img src="./images/edit_f2.png" width="16px" /></a></td>
        <td><a href="index.php?option=com_injooosm&controller=files&task=delete&id=<?php echo $row->id; ?>"><img src="./images/cancel_f2.png" width="16px" /></a></td>
    </tr>
    <?php
    $k = 1 - $k;
    }
    ?>
</tbody>
<tfoot>
    <tr class="sectiontablefooter">
        <td colspan="6" align="center">
            <?php echo $this->pagination->getPagesLinks( $this->rows ); ?>
            <?php echo $this->pagination->getResultsCounter( ); ?>
        </td>
    </tr>
</tfoot>
</table>
<input type="hidden" name="option" value="com_injooosm" />
<input type="hidden" name="filter_order" value="<?php echo $this->lists['order']; ?>" />
<input type="hidden" name="filter_order_Dir" value="<?php echo $this->lists['order_Dir']; ?>" />
</form>
<?php
} else {
	JResponse::setHeader('HTTP/1.0 403',true);
	JError::raiseWarning( 403, JText::_('ALERTNOTAUTH') );
}
echo $this->footer;
Return current item: injooosm