function generateRow($index, $fee)
{
    setlocale(LC_MONETARY, 'fr_FR.utf8');
    $desc = $fee->description;
    if ($desc == null) {
        $desc = "";
    }
    return XmlTagHelper::formatTableRow(array(XmlTagHelper::formatTableCell(JHtmlGrid::id($index, $fee->id)), XmlTagHelper::formatTableCell(JText::_($fee->name)), XmlTagHelper::formatTableCell(JText::_($desc)), XmlTagHelper::formatTableCell(money_format('%n', $fee->fee))));
}
?>
            </td>
        </tr>
    </table>

	<table class="table table-striped table-bordered">
		<thead>
            <tr>
                <th style="width: 5px;">
                	<?php 
echo JText::_('COM_CITRUSCART_NUM');
?>
                </th>
                <th style="width: 20px;">
                	<?php 
echo JHtmlGrid::checkall($name = 'cid', $tip = 'JGLOBAL_CHECK_ALL', $action = 'Joomla.checkAll(this)');
?>
                </th>
                <th style="width: 50px;">
                    <?php 
echo CitruscartGrid::sort('COM_CITRUSCART_ID', "tbl.zone_id", $state->direction, $state->order);
?>
                </th>
                <th style="text-align: left;">
                    <?php 
echo CitruscartGrid::sort('COM_CITRUSCART_NAME', "tbl.zone_name", $state->direction, $state->order);
?>
                </th>
                <th>
	                <?php 
echo JText::_('COM_CITRUSCART_STATUS');
function generateRow($index, $container_type)
{
    return XmlTagHelper::formatTableRow(array(XmlTagHelper::formatTableCell(JHtmlGrid::id($index, $container_type->id)), XmlTagHelper::formatTableCell(JText::_($container_type->container_name)), XmlTagHelper::formatTableCell($container_type->liters)));
}
Exemple #4
0
    echo $item->group_id;
    ?>
">
							<?php 
    echo $item->group_name;
    ?>
						</a>
					</td>
					<td>
						<?php 
    echo $item->plugin;
    ?>
					</td>
					<td>
						<?php 
    echo JHtmlGrid::boolean($i, $item->show_in_list_summary, 'elements.showInListView', 'elements.hideFromListView');
    ?>
					</td>
					<td>
						<?php 
    echo JHtml::_('jgrid.published', $item->published, $i, 'elements.', $canChange);
    ?>
					</td>
					<td class="order">
						<?php 
    if ($saveOrder) {
        ?>
							<?php 
        if ($listDirn == 'asc') {
            ?>
								<span><?php 
Exemple #5
0
 /**
  * Displays a checked out icon.
  *
  * @param   object   &$row        A data object (must contain checkedout as a property).
  * @param   integer  $i           The index of the row.
  * @param   string   $identifier  The property name of the primary key or index of the row.
  *
  * @return  string
  *
  * @since   11.1
  */
 public static function checkedOut(&$row, $i, $identifier = 'id')
 {
     $user = JFactory::getUser();
     $userid = $user->get('id');
     $result = false;
     if ($row instanceof JTable) {
         $result = $row->isCheckedOut($userid);
     } else {
         $result = JTable::isCheckedOut($userid, $row->checked_out);
     }
     $checked = '';
     if ($result) {
         $checked = JHtmlGrid::_checkedOut($row);
     } else {
         if ($identifier == 'id') {
             $checked = JHtml::_('grid.id', $i, $row->{$identifier});
         } else {
             $checked = JHtml::_('grid.id', $i, $row->{$identifier}, $result, $identifier);
         }
     }
     return $checked;
 }
Exemple #6
0
    ?>
</a></span>
				</td>
				<td class="center">
					<?php 
    echo JHtml::_('jgrid.published', $item->published, $i, 'items.', true, 'cb');
    ?>
				</td>
				<td class="center">
					<?php 
    echo JHtmlGrid::boolean($i, $item->featured, 'items.featured', 'items.unfeatured');
    ?>
				</td>
				<td class="center">
					<?php 
    echo JHtmlGrid::boolean($i, $item->available, 'items.available', 'items.inavailable');
    ?>
				</td>
				<td class="order">
						<?php 
    if ($saveOrder) {
        ?>
							<?php 
        if ($listDirn == 'asc') {
            ?>
								<span><?php 
            echo $this->pagination->orderUpIcon($i, $item->cat_id == @$this->items[$i - 1]->cat_id, 'items.orderup', 'JLIB_HTML_MOVE_UP', $ordering);
            ?>
</span>
								<span><?php 
            echo $this->pagination->orderDownIcon($i, $this->pagination->total, $item->cat_id == @$this->items[$i + 1]->cat_id, 'items.orderdown', 'JLIB_HTML_MOVE_DOWN', $ordering);
 /**
  * Checkbox input.
  *
  * @return  string Checkbox html code.
  */
 public function checkbox()
 {
     $pkName = $this->config->get('field.pk');
     return \JHtmlGrid::id($this->row, $this->current->{$pkName});
 }
function generateRow($index, $fee)
{
    setlocale(LC_MONETARY, 'fr_FR.utf8');
    return XmlTagHelper::formatTableRow(array(XmlTagHelper::formatTableCell(JHtmlGrid::id($index, $fee->id)), XmlTagHelper::formatTableCell(JText::_($fee->user)), XmlTagHelper::formatTableCell($fee->service), XmlTagHelper::formatTableCell(JText::_($fee->container) . " " . $fee->liters . "L"), XmlTagHelper::formatTableCell(money_format('%n', $fee->fee))));
}
function generateRow($index, $city)
{
    return XmlTagHelper::formatTableRow(array(XmlTagHelper::formatTableCell(JHtmlGrid::id($index, $city->id)), XmlTagHelper::formatTableCell($city->name), XmlTagHelper::formatTableCell($city->service)));
}