hi,
im trying to figure out what php code is returned with this function
[CODE] function xxx_chklist_mst($mst, $name, $checkrec) {
$list = “<table style=”width: auto;margin: 0px;”><tr>n”;
$f = file($mst);
foreach($f as $line){
$line = chop($line);
if($line==’–‘){
$list .= “</tr><tr>n”;
} elseif($line==’++’) {
$list .= “<td style=”width: auto;padding: 0px;margin: 0px;border-width: 0px;background-color: transparent;”><br></td>”;
} else {
$rec = explode(‘:’, $line);
$checked = ”;
if(isset($checkrec[$rec[0]])) $checked = ‘ checked’;
$list .= “<td style=”width: auto;padding: 0px;margin: 0px;border-width: 0px;background-color: transparent;”><input name=”.$name.$rec[0].” type=checkbox value=””.$rec[1].”””.$checked.”>”.$rec[1].” </td>n”;
}
}
$list .= “</tr></table>n”;
return $list;
}
and you call that function like this in the template
[CODE]<?php echo xxx_chklist_mst(“./php/config/SONOTA_MST.php”, “HID-SONOTA_ID”, $rec_syumi); ?>
it should return among the html code, some php like this which is what i need to get
[CODE][…] <?php if(!$obj_hid[‘SONOTA_ID010′]==’0’){echo ‘ checked’;} ?>[…]
but i cant tell what is exactly returned within the IF statement. Can you please give me a hand?
Thank you.