Example #1
0
			<?php 
    $edit = JTExt::_('edit');
    $delete = JTExt::_('delete');
    $edit = "title=\"" . $edit . "\" alt=\"" . $edit . "\"";
    $delete = "title=\"" . $delete . "\" alt=\"" . $delete . "\"";
    $k = 0;
    for ($i = 0, $n = count($this->rows); $i < $n; $i++) {
        $row = $this->rows[$i];
        $terrain = JtgHelper::parseMoreTerrains($this->sortedter, $row->terrain, "array");
        $terrain = implode(", ", $terrain);
        if ($this->cfg->unit == "Miles") {
            $distance = JtgHelper::getLocatedFloat(JtgHelper::getMiles($row->distance, "-", "Miles"));
        } else {
            $distance = JtgHelper::getLocatedFloat($row->distance, "-", "km");
        }
        $votes = LayoutHelper::parseVoteFloat($row->vote);
        $link = JRoute::_('index.php?option=com_jtg&view=files&layout=file&id=' . $row->id, false);
        $cats = JtgHelper::parseMoreCats($this->cats, $row->catid, "array");
        $cats = implode(", ", $cats);
        ?>
			<tr class="sectiontableentry<?php 
        echo $k;
        ?>
">
				<td align="center"><?php 
        echo $this->pagination->getRowOffset($i);
        ?>
					<a
					href="index.php?option=com_jtg&view=files&layout=form&id=<?php 
        echo $row->id;
        ?>
Example #2
0
		</tfoot>
		<tbody>
			<?php 
$k = 0;
for ($i = 0, $n = count($this->rows); $i < $n; $i++) {
    $row = $this->rows[$i];
    if (!$row->title) {
        $row->title = "<font class=\"emptyEntry\">" . JText::_('COM_JTG_NO_TITLE') . "</font>";
    }
    $link = JRoute::_('index.php?option=com_jtg&view=files&layout=file&id=' . $row->id, false);
    $profile = JtgHelper::getProfileLink($row->uid, $row->user);
    $cat = JtgHelper::parseMoreCats($this->sortedcats, $row->catid, "list", true);
    $terrain = JtgHelper::parseMoreTerrains($this->sortedter, $row->terrain, "list", true);
    $hits = JtgHelper::getLocatedFloat($row->hits);
    $layoutHelper = new LayoutHelper();
    $votes = $layoutHelper->parseVoteFloat($row->vote, true);
    $links = null;
    if (!$row->distance) {
        $row->distance = 0;
    }
    if ($this->cfg->unit == "Miles") {
        $distance = JtgHelper::getLocatedFloat(JtgHelper::getMiles($row->distance, "-", "Miles"));
    } else {
        $distance = JtgHelper::getLocatedFloat($row->distance, "-", "km");
    }
    if ($profile != "") {
        $profile .= "&nbsp;";
    } else {
        $profile .= "<font class=\"emptyEntry\">" . JText::_('COM_JTG_NO_USER') . "</font>&nbsp;";
    }
    if ($this->uid != 0 and $this->uid == $row->uid or JFactory::getUser()->get('isRoot')) {