array(0), 'default' => 0 ); } if(!is_array($value['allowed'])){ $value['allowed'] = array(); } $form=" "; $query = "select opac_view_id, opac_view_name from opac_views order by opac_view_name"; $result = mysql_query($query); if(mysql_num_rows($result)){ while($row = mysql_fetch_object($result)){ $form.=" "; $form.=" "; $form.=" "; } } $form.="
".$msg['opac_view_allowed']." ".$msg['opac_view']." ".$msg['opac_view_default']."
".$msg['opac_view_classic_opac']."
opac_view_id,$value['allowed']) ? "checked='checked' " : "")."name='".$prefix."[allowed][]' value='".htmlentities($row->opac_view_id,ENT_QUOTES,$charset)."'/> ".htmlentities($row->opac_view_name,ENT_QUOTES,$charset)." opac_view_id == $value['default'] ? "checked='checked' " : "")."name='".$prefix."[default]' value='".htmlentities($row->opac_view_id,ENT_QUOTES,$charset)."'/>
"; return $form; } function get_storable_value($value){ return addslashes(serialize($value)); } }