Investor Education and Resource Centre
 
'.$row[1].''.chr(10); else{ $listing .= chr(10).''.chr(10); } } } return "".$listing.""; } function opt_anytwofields_radiolist($tablename, $field1, $field2, $field3, $checkvalue, $name){ $result = mysql_query('select distinct ' . $field1 . ', ' . $field2 . $field3. ' from ' . $tablename ); if(false!==$result){ $crow = mysql_num_rows($result); $listing = chr(10).''; for($i=0; $i<$crow; $i++){ $row = mysql_fetch_row($result); # echo $checkvalue."|".$row[0]."
"; if(strtolower(trim($checkvalue))==strtolower(trim($row[0])) && !empty($checkvalue)){ if(!empty($row[2])){$param = explode("|",$row[2]);} if(!empty($param) && !empty($field3)){ $listing .= chr(10).''.$row[1].'
'.chr(10); $listing .= "
"; for($ip=0; $ip"; $listing .= " "; } $listing .= "
"; # $listing .= chr(10).''; }else{ $listing .= chr(10).''.$row[1].'
'.chr(10); } }else{ if(!empty($row[2])){$param = explode("|",$row[2]);} if(!empty($param) && !empty($field3)){ $listing .= chr(10).''.$row[1].'
'.chr(10); $listing .= "
"; for($ip=0; $ip"; $listing .= " "; } $listing .= "
"; # $listing .= chr(10).''; }else{ $listing .= chr(10).''.$row[1].'
'.chr(10); } } } } return "".$listing.""; } function orderby_order($field, $orderby){ return (eregi($field, $orderby) && !eregi('DESC', $orderby) && !empty($orderby)?"DESC":"ASC");} function orderby_image($field, $orderby){global $__IMGDIR_; return (eregi($field, $orderby)?"\"\"":"");} ?>