function formatBulkTable($bulk) { $table = array(); $table[] = formatLabelForm('', JText::_("COM_REOMI_VIEW_FEES_PAGE_BULK_TITLE")); $table[] = array('attrs' => array('class' => 'table table-striped table-hover'), 'tag' => 'table', 'content' => array(array('tag' => 'thead', 'content' => array(XmlTagHelper::formatTableRow(array(XmlTagHelper::formatTableHeader(JText::_('COM_REOMI_VIEW_SIMULATOR_LABEL_USERS')), XmlTagHelper::formatTableHeader(JText::_("COM_ROEMI_VIEW_SIMULATOR_TABLE_HEADER_COLLECTION_NUMBER")))))), array('tag' => 'tbody', 'content' => formatBulkInputs($bulk)))); return $table; }
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)))); }
function generateBulkTable($bulk_fees, $xmlTag) { if (isset($bulk_fees)) { $tableData = array(); foreach ($bulk_fees as $fee) { $tableData[] = XmlTagHelper::formatTableRow(array(XmlTagHelper::formatTableCell((string) $fee->name), XmlTagHelper::formatTableCell(money_format('%n', $fee->fee)), XmlTagHelper::formatTableCell((string) $fee->description))); } $xmlTag->TABLE(array('class' => 'table table-striped table-hover'), $xmlTag()->TBODY($xmlTag()->__fromArray($tableData))); } }
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))); }
function generateRow($city) { return XmlTagHelper::formatTableRow(array(XmlTagHelper::formatTableCell($city->name), XmlTagHelper::formatTableCell($city->service))); }
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))); }