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.
$myval="{ha_timers___active_raw}";
$myrow="{ha_timers___id}";
$booticons = array( 0 => "icon-remove color-red", 1 => "icon-clock color-green") ;
if (array_key_exists($myval, $booticons)) {
$myret = '<i class="condensed-icon '.$booticons[$myval];
$myret.= '">';
$myret.= '</i>';
}
$myurl='/index.php/ha/ha-setup/ha-setup-menu-commands/ha-setup-timers';
$myvalnot = ($myval == "1" ? "0" : "1");
$params = Array ( 'ha_timers___id'=>$myrow, 'ha_timers___active[0]'=>$myvalnot, 'listid' => 240,
'listref'=>240, 'rowid'=>$myrow, 'Itemid'=>451, 'option'=>'com_fabrik' ,
'task'=>'form.process', 'formid'=>228, 'returntoform'=>0, 'fabrik_ajax'=>1,
'package'=>'fabrik', 'format'=>'raw', 'Submit'=>'');
$result = '<p style="cursor:pointer" onclick="jQuery.ajax(
{
url : "'.$myurl.'",
type: "POST",
data : '.htmlentities(json_encode($params)).',
async : false
});
Fabrik.blocks.list_209_com_fabrik_209.doFilter();
return false;
">'.$myret.'</p>';
return $result;