For running J!5.1 you must https://fabrikar.com/forums/index.php?wiki/update-from-github/ or include the new file manually https://fabrikar.com/forums/index.php?threads/joomla-5-1-and-fabrik-cannot-find-files-error.54473/post-285151 See also Announcements
Please see our announcement here.
at the beginning. You may add CSS styles or classes.<tr>
<th colspan="5">Total</th>
</tr>
<tr>
<th colspan="2">Among them</th>
<th colspan="3">including</th>
</tr>
<tr>
<th colspan="5">Total</th>
</tr>
<tr>
<th colspan="2">Among them</th>
<th colspan="3">including</th>
</tr>
<tr class="fabrik___heading">
<?php foreach ($this->headings as $key => $heading) {
$style = empty($this->headingClass[$key]['style']) ? '' : 'style="'.$this->headingClass[$key]['style'].'"';?>
<th class="<?php echo $this->headingClass[$key]['class']?>" <?php echo $style?>>
<span class="heading">
/* This is my code about merged cells in the middle of the table */
<?php if ($this->heading['tablename_elementname']) { ?>
<tr><th colspan="2">Period</th></tr>
<?php }; ?>
/* The end of code */
<?php echo $heading; ?></span>
<?php if (array_key_exists($key, $this->filters) && ($this->filterMode === 3 || $this->filterMode === 4)) {
$filter = $this->filters[$key];
$required = $filter->required == 1 ? ' notempty' : '';
echo '<div class="listfilter' . $required . '">
<span>' . $filter->element . '</span></div>';
}?>
</th>
<?php }?>
</tr>
/* This is my code about automation numeric columns of the table */
<tr>
<?php
$numeracia=1;
foreach ($this->headings as $key => $heading) { ?>
<th>
<?php
echo $numeracia;
$numeracia++;
?>
</th>
<?php
};
?>
</tr>
/* The end of code */
<?php /* The template of the table ??????? 8.1 Addition 8.1 */ ?>
<?php if ($this->table->id == 26) { ?>
<tr class="fabrik___heading">
<?php foreach ($this->headings as $key => $heading) {
$style = empty($this->headingClass[$key]['style']) ? '' : 'style="'.$this->headingClass[$key]['style'].'"';?>
<?php if ($key == dbme_entity_performance___entity_full_name ||
$key == dbme_entity_performance___agency_coordinated_or_provided_permission_to_exclusion ||
$key == dbme_entity_performance___way_of_sale_of_assets ||
$key == dbme_entity_performance___balance_residual_value_object_of_alienation ||
$key == dbme_entity_performance___result_of_independent_evaluation_assets_initial_value_alienation ||
$key == dbme_entity_performance___cost_of_sales_alienation ||
$key == dbme_entity_performance___received_money_alienation ||
$key == fabrik_select || $key == fabrik_actions) { ?>
<th rowspan="2" class="<?php echo $this->headingClass[$key]['class']?>" <?php echo $style?>>
<span class="heading"><?php echo $heading; }
else if ($key == dbme_entity_performance___alienated_real_property_or_part) { ?>
<th colspan="3" class="<?php echo $this->headingClass[$key]['class']?>" <?php echo $style?>>
<span class="heading"><?php echo "Obektu, za yakumu prujnyato upravlinski rishennya"; } ?></span>
<?php if (array_key_exists($key, $this->filters) && ($this->filterMode === 3 || $this->filterMode === 4)) {
$filter = $this->filters[$key];
$required = $filter->required == 1 ? ' notempty' : '';
echo '<div class="listfilter' . $required . '">
<span>' . $filter->element . '</span></div>';
}?>
</th>
<?php }?>
</tr>
<tr class="fabrik___heading">
<?php foreach ($this->headings as $key => $heading) {
$style = empty($this->headingClass[$key]['style']) ? '' : 'style="'.$this->headingClass[$key]['style'].'"';?>
<?php if ($key == dbme_entity_performance___alienated_real_property_or_part ||
$key == dbme_entity_performance___alienated_other_separate_individually_defined_property ||
$key == dbme_entity_performance___alienated_land) { ?>
<th class="<?php echo $this->headingClass[$key]['class']?>" <?php echo $style?>>
<span class="heading"><?php echo $heading; } ?></span>
<?php if (array_key_exists($key, $this->filters) && ($this->filterMode === 3 || $this->filterMode === 4)) {
$filter = $this->filters[$key];
$required = $filter->required == 1 ? ' notempty' : '';
echo '<div class="listfilter' . $required . '">
<span>' . $filter->element . '</span></div>';
}?>
</th>
<?php }?>
</tr>
<tr>
<?php $numeracia=1;
foreach ($this->headings as $key => $heading) {
$style = empty($this->headingClass[$key]['style']) ? '' : 'style="'.$this->headingClass[$key]['style'].'"';?>
<th class="<?php echo $this->headingClass[$key]['class']?>" <?php echo $style?>>
<span class="heading"><?php echo $numeracia; $numeracia++; ?></span>
</th>
<?php }?>
</tr>
<?php }; ?>