Exemplo n.º 1
0
    if ($row->name == JText::_($row->name)) {
        echo ' ';
    } else {
        echo JText::_($row->name);
    }
    ?>
						</td>
						<td class="center">
							<?php 
    $desc = JText::_($row->name);
    echo JoomleagueHelper::getPictureThumb($row->icon, $desc, 0, 21, 4);
    ?>
						</td>
						<td class="center">
							<?php 
    echo JoomleagueHelper::getSportsTypeName($row->sports_type_id);
    ?>
						</td>
						<td class="center">
							<?php 
    echo $published;
    ?>
						</td>
						<td class="order">
							<span>
								<?php 
    echo $this->pagination->orderUpIcon($i, $i > 0, 'eventtype.orderup', 'COM_JOOMLEAGUE_GLOBAL_ORDER_UP', $ordering);
    ?>
							</span>
							<span>
								<?php 
					<td>
						<?php 
    if ($row->name == JText::_($row->name)) {
        echo '&nbsp;';
    } else {
        echo JText::_($row->name);
    }
    ?>
					</td>
					<td>
						<?php 
    echo JHTML::_('select.genericlist', $this->lists['parent_id'], 'parent_id' . $row->id, '' . 'class="inputbox" size="1" onchange="document.getElementById(\'cb' . $i . '\').checked=true"', 'value', 'text', $row->parent_id);
    ?>
					</td>
					<td class="center"><?php 
    echo JText::_(JoomleagueHelper::getSportsTypeName($row->sports_type_id));
    ?>
</td>
					<td class="center"><?php 
    echo JText::_(JoomleagueHelper::getPosPersonTypeName($row->persontype));
    ?>
</td>
					<td class="center">
						<?php 
    if ($row->countEvents == 0) {
        $imageTitle = JText::_('COM_JOOMLEAGUE_ADMIN_POSITIONS_NO_EVENTS');
        echo JHTML::_('image', 'administrator/components/com_joomleague/assets/images/error.png', $imageTitle, 'title= "' . $imageTitle . '"');
    } else {
        $imageTitle = JText::sprintf('COM_JOOMLEAGUE_ADMIN_POSITIONS_NR_EVENTS', $row->countEvents);
        echo JHTML::_('image', 'administrator/components/com_joomleague/assets/images/ok.png', $imageTitle, 'title= "' . $imageTitle . '"');
    }