<tbody> <?php if (!is_array($this->items)) { ?> <tr><td colspan="<?php echo $colspan; ?> " class="emptyListInfo"><?php echo JText::_('No items found.'); ?> </td></tr> <?php } else { for ($i = 0; $i < $itemsCount; $i++) { $subject =& $this->items[$i]; $link = JRoute::_(ARoute::edit('airport', $subject->id)); if ($subject->level > 1) { $parentsStr = ""; $_currentParentId = $subject->parent_id; $parentsStr = " " . $_currentParentId; for ($i2 = 0; $i2 < $subject->level; $i2++) { foreach ($this->ordering as $k => $v) { $v = implode("-", $v); $v = "-" . $v . "-"; if (strpos($v, "-" . $_currentParentId . "-") !== false) { $parentsStr .= " " . $k; $_currentParentId = $k; break; } } }
<tr> <td colspan="10"><?php echo JText::_('COM_BOOKPRO_NO_ITEM'); ?> </td> </tr> <?php } else { ?> <?php for ($i = 0; $i < $itemsCount; $i++) { ?> <?php $subject =& $this->items[$i]; $link = JRoute::_(ARoute::edit(CONTROLLER_COUPON, $subject->id)); ?> <td class="checkboxCell"><?php echo JHTML::_('grid.checkedout', $subject, $i); ?> </td> <td class="center"> <?php echo JHtml::_('jgrid.published', $subject->state, $i, 'coupons.', true, 'cb', null, null); ?> </td>
</tr> </tfoot> <tbody> <?php if (!is_array($this->items) || !$itemsCount) { ?> <tr><td colspan="7" class="emptyListInfo"><?php echo JText::_('No items found.'); ?> </td></tr> <?php } else { for ($i = 0; $i < $itemsCount; $i++) { $subject = $this->items[$i]; // echo "<pre>"; print_r($subject); echo "</pre> thangloan".__FILE__.":".__LINE__.'</br>'; $link = JRoute::_(ARoute::edit(CONTROLLER_AIRPORT, $subject->id)); $orderkey = array_search($subject->id, $this->ordering[$subject->parent_id]); if ($subject->level > 1) { $parentsStr = ""; $_currentParentId = $subject->parent_id; $parentsStr = " " . $_currentParentId; for ($i2 = 0; $i2 < $subject->level; $i2++) { foreach ($this->ordering as $k => $v) { $v = implode("-", $v); $v = "-" . $v . "-"; if (strpos($v, "-" . $_currentParentId . "-") !== false) { $parentsStr .= " " . $k; $_currentParentId = $k; break; } }
</td> </tr> </tfoot> <tbody> <?php if (!is_array($this->items) || !$itemsCount && $this->tableTotal) { ?> <tr><td colspan="5" class="emptyListInfo"><?php echo JText::_('No items found.'); ?> </td></tr> <?php } else { for ($i = 0; $i < $itemsCount; $i++) { $subject =& $this->items[$i]; $link = JRoute::_(ARoute::edit(CONTROLLER_ROOM_RATE_LOG, $subject->id)); $js = 'javascript:ListSubjects.select(' . $subject->id . ',\'' . $title . '\',\'' . $this->escape($subject->alias) . '\')'; ?> <tr> <td style="text-align: right; white-space: nowrap;"><?php echo number_format($this->pagination->getRowOffset($i), 0, '', ' '); ?> </td> <?php if (!$this->selectable) { ?> <td class="checkboxCell"><?php echo JHTML::_('grid.checkedout', $subject, $i); ?> </td> <?php
if (empty($this->items)) { ?> <tr> <td colspan="<?php echo $colspan; ?> " class="emptyListInfo"><?php echo JText::_('No items found.'); ?> </td> </tr> <?php } else { for ($i = 0; $i < $itemsCount; $i++) { $subject = $this->items[$i]; $link = JRoute::_(ARoute::edit('CONTROLLER_FLIGHT', $subject->id)); ?> <tr> <td class="checkboxCell"><?php echo $i + 1; ?> </td> <td class="checkboxCell"><?php echo JHTML::_('grid.checkedout', $subject, $i); ?> </td> <td><?php echo JHtml::_('jgrid.published', $subject->state, $i, '', true, 'cb', null, null); ?>