</thead> <tbody> <?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
<div class="no-float"></div> </div> <?php if ($this->cfg->usevote == 1) { echo $this->parseTemplate("headline", JText::_('COM_JTG_VOTING'), "jtg_param_header_rating"); $template = "<div id=\"ratingbox\">\n\t<ul id=\"1001\" class=\"rating " . $this->vote['class'] . "\">\n"; for ($i = 1; $i <= 10; $i++) { $link = "index.php?option=com_jtg&controller=files&id=" . $this->track->id . "&task=vote&rate=" . $i . "#jtg_param_header_rating"; $link = JRoute::_($link, false); $template .= "\t\t<li id=\"" . $i . "\" class=\"rate " . $this->stars->{$i} . "\">\n" . "\t\t\t<a href=\"" . $link . "\" title=\"" . JText::_('COM_JTG_STARS_' . $i) . "\">" . $i . "</a>\n" . "\t\t</li>\n"; } $template .= "\t</ul>\n"; if ($this->vote['count'] == 0) { $template .= JText::_('COM_JTG_NOT_VOTED') . "\n"; } else { $template .= JText::sprintf('COM_JTG_TRACK_RATING', $JtgHelper->getLocatedFloat($this->vote['rate']), $this->vote['count']) . "\n"; } echo $this->parseTemplate("description", $template); ?> <div class="no-float"></div> </div> <?php } else { echo "<a name=\"jtg_param_header_rating\"></a>"; } if ($this->cfg->download >= 1) { echo $this->parseTemplate("headline", JText::_('COM_JTG_DOWNLOAD'), "jtg_param_header_download"); echo $this->parseTemplate("description", null, null, "open"); if ($this->cfg->download == 2 and $this->user->get('id') == 0) { // Registered users only echo $this->parseTemplate("description", JText::_('COM_JTG_NOT_DOWNLOAD'));