" . htmlentities($name) . ""; else return "" . htmlentities($name) . ""; } function build_hrefDNA($url, $query, $name) { if($query) return "" . htmlentities($name) . ""; else return "" . htmlentities($name) . ""; } function build_href1($url, $name) { return "" . htmlentities($name) . ""; } function show_array($x) { if(!is_array($x)) return; reset($x); echo "

content of array

\n"; echo "

"; if($x) while($i=each($x)) echo "
", htmlentities($i[0]), " = ", htmlentities($i[1]), "\n"; echo "

\n"; } function getErrorHandler($errno,$errmsg,$filename,$linenum) { $msg = "Time: " .date("Y-m-d H:i:s"). "\n"; $msg .= "Error: " .$errmsg. "\n"; $msg .= "File: " .$filename. "\n"; $msg .= "Line: " .$linenum; switch ($errno) { case E_NOTICE: case E_USER_NOTICE: return; break; case E_STRICT: return; break; default: mail("g.droege@bgbm.org", "Error report", $msg, "From: Kew-".$_SESSION['log']); break; } } set_error_handler("getErrorHandler"); function build_select_list($formname, $sql, $defaultitem) { $result = mysql_query($sql); echo '\n"; mysql_free_result($result); } function build_select_listRelation($formname, $sql, $defaultitem) { $result = mysql_query($sql); echo '\n"; mysql_free_result($result); } function build_select_listRecord($formname, $sql, $defaultitem) { $result = mysql_query($sql); echo '\n"; mysql_free_result($result); } function build_select_listFragment($formname, $sql, $defaultitem) { $result = mysql_query($sql); echo '\n"; mysql_free_result($result); } function build_select_listFridge($formname, $sql, $defaultitem) { $result = mysql_query($sql); echo '\n"; mysql_free_result($result); } function build_select_listRack($formname, $sql, $defaultitem) { $result = mysql_query($sql); echo '\n"; mysql_free_result($result); } function build_select_listBox($formname, $sql, $defaultitem) { $result = mysql_query($sql); echo '\n"; mysql_free_result($result); } function build_select_listDrawer($formname, $sql, $defaultitem) { $result = mysql_query($sql); echo '\n"; mysql_free_result($result); } function build_select_listProviderIntern($formname, $sql, $defaultitem) { $result = mysql_query($sql); echo ''; mysql_free_result($result); } function build_select_listProviderExtern($formname, $sql, $defaultitem) { $result = mysql_query($sql); echo ''; mysql_free_result($result); } function DatumsWandler($Datum) { if(strlen($Datum) == 10) { $GewandeltesDatum = substr($Datum, 8, 2); $GewandeltesDatum .= "."; $GewandeltesDatum .= substr($Datum, 5, 2); $GewandeltesDatum .= "."; $GewandeltesDatum .= substr($Datum, 0, 4); return $GewandeltesDatum; } elseif(strlen($Datum) == 19) { $GewandeltesDatum = substr($Datum, 8, 2); $GewandeltesDatum .= "."; $GewandeltesDatum .= substr($Datum, 5, 2); $GewandeltesDatum .= "."; $GewandeltesDatum .= substr($Datum, 0, 4); $GewandeltesDatum .= substr($Datum, 10); return $GewandeltesDatum; } else { return FALSE; } } ?>