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 = pmb_mysql_query($query); if(pmb_mysql_num_rows($result)){ while($row = pmb_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; } public function get_storable_value($value){ return addslashes(serialize($value)); } public static function get_selector($name, $selected = array()) { global $msg, $charset; $query = "SELECT opac_view_id,opac_view_name FROM opac_views order by opac_view_name"; $result = pmb_mysql_query($query); $select_view = ""; return $select_view; } }