We have now opened a commercial services section here on the forum for registered users. If you have a Fabrik project that you wish to have someone work on for you, post it under Help Wanted. If you are an application developer and wish to earn some money helping others, post your details under Fabrik Application Developers.
Both of these are unmoderated. It will be up to both parties to work out the details and come to an agreement.
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
$serviciu = $data['test_cdd___serviciu_raw'];
$clasa = $data['test_cdd___clasa_raw'];
$cks = $this->form->data['test_cdd___abonament_raw'];
foreach ($cks as $ck) {
$value = $ck;
}
$opt->text .= ' | <a target="_blank" href="http://www.google.com/?serviciu='. $serviciu .'&clasa='.$clasa.'&abonament='.$value.'">Modifica</a>';
I believe that would be in $this->form->data[]
var_dump($this->form->data);exit;
$serviciu = $data['test_cdd___serviciu_raw'];
$clasa = $data['test_cdd___clasa_raw'];
$cks = implode(',',$this->form->data['test_cdd___abonament_raw']);
$opt->text .= ' | <a target="_blank" href="http://www.google.com/?serviciu='. $serviciu .'&clasa='.$clasa.'&abonament='.$cks.'">Modifica</a>';
$city_auto_raw = is_array($data['fab_cdd_test___city_auto_raw']) ? $data['fab_cdd_test___city_auto_raw'] : array($data['fab_cdd_test___city_auto_raw']);
$qs = implode(',', $city_auto_raw);
$opt->text .= ' <a target="_blank" href="http://example.com/' . strtolower($opt->text) . '/' . $qs . '">Go There</a>';
$subs = $data['test_cdd___abonament_raw'];
foreach($subs as $sub){
$value = $sub;
}
$link[] = 'abonament='.$value;
$link = array();
$link[] = 'serviciu='.$data['test_cdd___serviciu_raw'][0];
$link[] = 'clasa='.$data['test_cdd___clasa_raw'];
$link[] = 'abonament='.implode(',', (array)$data['test_cdd___abonament_raw']);
$qs = implode('&', $link);
$opt->text .= ' <a target="_blank" href="http://example.com/' . $qs . '">Go There</a>';
$nr = '{contracte_campuri___camp_firma}';
$serviciu = '{contracte_campuri___camp_serviciu_raw}';
$abonament = '{contracte_campuri___camp_abonament_raw}';
$clasa = '{contracte_campuri___camp_clasa_raw}';
$link = JURI::root();
$db =& JFactory::getDBO();
$db->setQuery("select a.id as IDEXTRA, a.extraoptiune from contracte_extraoptiuni a left join contracte_extraoptiuni_repeat_clase_extraoptiune b on a.id = b.parent_id where b.clase_extraoptiune = $clasa");
$extras = $db->loadObjectList();
$list = array();
$list[] = '<ul>';
foreach($extras as $extra) {
$idextra = $extra->IDEXTRA;
//the query that check if there is a new value in the database table. Based on this result, the "$text" string below should change
$db->setQuery("select id_ctr from contracte_extraoptiuni_disponibile where id_ctr = $nr and extraoptiune=$idextra and abonament=$abonament and serviciu = $serviciu and clasa =$clasa");
$idctr = $db->loadResult();
//how to update "on the fly" this value based on the query result?
if ($idctr > 0) {
$text = 'Modifica';
} else {
$text = 'Adauga';
}
$list[] = '<li>'.$extra->extraoptiune.' | <a href="'.$link.'extraoptiuni.php?serviciu='.$serviciu.'&clasa='.$clasa.'&abonament='.$abonament.'&nr='.$nr.'&extraoptiune='.$idextra.'" target="new">'.$text.'</a></li>';
}
$list[] = '</ul>';
return implode($list);