Posted in HTML, PHP, zebra_form

Zebra_form – viewing uploaded documents

$fileUpload = $form->getUploadDetails($uploadid); 

$myArray = json_decode(json_encode($fileUpload), True); 

$myArray = array_shift($myArray); 

$myEnv = “http://” . $myEnv;

foreach ($myArray as $key => $value) {

$myURL = substr($myArray[$key][‘path’], 5);

$mySafeURL = str_replace(‘ ‘, ‘%20’, $myURL);

$mysrc = $myEnv . $mySafeURL;

PDFandJPGandPNG

echo “<hr>”;

}

$form->render(‘inl_sev_065_T_ver.php’);

?>

Posted in HTML, zebra_form

Zebra_form radio buttons

$form->add(‘label’, ‘labelchart’, ‘_CHART’, $translation->getValue(“CESChart”));

$obj = $form->add(‘radios’, ‘_CHART’,
array(
‘N’ => ‘None’,
‘B’ => ‘Bar’,
‘R’ => ‘Radar’
),

‘N’

);

$obj->set_attributes(array(
‘onclick’ => ‘clearCharts()’
));

$obj->set_rule(array(

));

Template entry

RadiobuttonTemplate