$kat_id = $_GET['kat_id'];
}
if (array_key_exists('mod', $_GET)) {
    $mod = $_GET['mod'];
}
if (array_key_exists('s_m', $_GET)) {
    $s_m = $_GET['s_m'];
}
$stat = createStatement($bewertung);
//echo $stat;
//log-file schreiben:
$fh = fopen($p2b_path . 'pic2base/log/p2b.log', 'a');
fwrite($fh, date('d.m.Y H:i:s') . " " . isset($REMOTE_ADDR) . " " . $_SERVER['PHP_SELF'] . " " . $_SERVER['HTTP_USER_AGENT'] . " " . $c_username . "\n");
fclose($fh);
$base_file = 'recherche2';
echo "\n<div class='page'>\n\t<p id='kopf'>pic2base :: Datensatz-Recherche <span class='klein'>(User: {$c_username}; eingestellte Bewertung: " . showBewertung($bewertung) . ")</span></p>\n\t\n\t<div class='navi' style='clear:right;'>\n\t\t<div class='menucontainer'>";
createNavi2_1($c_username);
echo "</div>\n\t</div>";
//################################################################################################################
switch ($mod) {
    case 'zeit':
        //include $sr.'/bin/share/functions/ajax_functions.php';
        echo "\n\t\t<div id='spalte1F'>";
        $ziel = "../../html/recherche/recherche2.php";
        $base_file = 'recherche2';
        $mod = 'zeit';
        $modus = 'recherche';
        include '../../share/time_treeview.php';
        echo "\n\t\t</div>";
        break;
        //#####################################################################################################################
    $s_m = $_GET['s_m'];
}
$stat = createStatement($bewertung);
//echo $stat;
$base_file = 'recherche2';
switch ($mod) {
    case 'zeit':
        include $sr . '/bin/share/functions/ajax_functions.php';
        echo "<BODY onLoad=\"getTimeTreeview('0','zeit','J','{$bewertung}')\">";
        break;
    case 'kat':
        include $sr . '/bin/share/functions/ajax_functions.php';
        echo "<BODY onLoad=\"getKatTreeview('0','0','kat','{$bewertung}','recherche','recherche2')\">";
        break;
}
echo "\n\t<CENTER>\n\t<DIV Class='klein'>\n\t<div class='page' id='page'>\n\t\n\t\t<div class='head' id='head'>\n\t\t\tpic2base :: Datensatz-Recherche <span class='klein'>(User: {$username}; eingestellte Bewertung: " . showBewertung($bewertung) . ")</span>\n\t\t</div>\n\t\t\n\t\t<div class='navi' id='navi'>\n\t\t\t<div class='menucontainer'>";
createNavi2_1($uid);
echo "</div>\n\t\t</div>";
//################################################################################################################
switch ($mod) {
    case 'zeit':
        echo "<div id='spalte1F'>\n\t\t\t\t<center>\n\t\t\t\t\t<fieldset  style='background-color:none; margin-top:10px;'>\n\t\t\t\t\t<legend style='color:blue; font-weight:bold;'>Bildsuche nach Aufnahmedatum</legend>\n\t\t\t\t\t\t<div id='scrollbox0' style='overflow-y:scroll;'>";
        echo "</div>\n\t\t\t\t\t</fieldset>\n\t\t\t\t</center>\n\t\t\t</div>";
        break;
        //#####################################################################################################################
    //#####################################################################################################################
    case 'kat':
        echo "<div id='spalte1F'>\n\t\t\t\t<center>\n\t\t\t\t<fieldset  style='background-color:none; margin-top:10px;'>\n\t\t\t\t<legend style='color:blue; font-weight:bold;'>Bildsuche nach Kategorien</legend>\n\t\t\t\t\t<div id='scrollbox0' style='overflow-y:scroll;'>";
        echo "</div>\n\t\t\t\t</fieldset>\n\t\t\t\t</center>\n\t\t\t</div>";
        break;
        //#####################################################################################################################
						document.getElementById('coll_name').focus();
					}
					else if (parameter == 'coll_description')
					{
						document.getElementById('coll_description').focus();
					}
				}
			</script>
			<?php 
        break;
}
echo "\n\t<CENTER>\n\t<DIV Class='klein'>\n\t<div class='page' id='page'>";
if ($search_modus == 'normal') {
    echo "\n\t\t\t<div class='head' id='head'>\n\t\t\t\tpic2base :: Datensatz-Recherche <span class='klein'>(User: {$username}; eingestellte Bewertung: " . showBewertung($bewertung) . ")</span>\n\t\t\t</div>";
} elseif ($search_modus == 'collection') {
    echo "\n\t\t\t<div class='head' id='head'>\n\t\t\t\tpic2base :: Datensatz-Recherche <span class='klein'>(User: {$username}; eingestellte Bewertung: " . showBewertung($bewertung) . ")</span> im Kollektions-Modus! <input type='button' style='vertical-align:middle;' value='Zum Normalmodus' onCLick='document.cookie = \"search_modus=normal; path=/\"; location.reload();'>\n\t\t\t</div>";
}
echo "\n\t\t<div class='navi' id='navi'>\n\t\t\t<div class='menucontainer'>";
createNavi2_1($uid);
echo "</div>\n\t\t</div>";
//################################################################################################################
switch ($mod) {
    case 'zeit':
        echo "<div id='spalte1F'>\n\t\t\t\t<center>\n\t\t\t\t\t<fieldset  style='background-color:none; margin-top:10px;'>\n\t\t\t\t\t<legend style='color:blue; font-weight:bold;'>Bildsuche nach Aufnahmedatum</legend>\n\t\t\t\t\t\t<div id='scrollbox0' style='overflow-y:scroll;'>";
        echo "</div>\n\t\t\t\t\t</fieldset>\n\t\t\t\t</center>\n\t\t\t</div>";
        break;
        //#####################################################################################################################
    //#####################################################################################################################
    case 'kat':
        echo "<div id='spalte1F'>\n\t\t\t\t<center>\n\t\t\t\t<fieldset  style='background-color:none; margin-top:10px;'>\n\t\t\t\t<legend style='color:blue; font-weight:bold;'>Bildsuche nach Kategorien</legend>\n\t\t\t\t\t<div id='scrollbox0' style='overflow-y:scroll;'>";
        echo "</div>\n\t\t\t\t</fieldset>\n\t\t\t\t</center>\n\t\t\t</div>";