<?php
echo "<HTML>";
echo "<HEAD>";
echo "</HEAD>";
echo "<body>";
?>
<style>
body {
margin: 0;
padding: 0;
}
.wrapper {
display: flex;
flex-direction: row;
text-align: left;
width: 100vw;
height: 98vh;
}
aside.left {
flex-basis: 380px;
}
main {
flex-grow: 1;
flex-shrink: 1;
}
main,
aside.left {
display: flex;
flex-direction: column;
}
div:not(.wrapper) {
margin: 3px;
border: 1px solid black;
}
div.left.one {
flex-basis: 26px;
}
div.left.two {
flex-grow: 1;
flex-shrink: 1;
height: 100%;
}
div.left.three {
flex-basis: auto;
}
div.right.one {
flex-basis: 26px;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
}
div.right.two {
flex-grow: 1;
flex-shrink: 1;
background-color: white;
}
div.left.two select {
height: 100%;
width: 100%;
}
div.right.three {
flex-basis: auto;
}
div.right.four {
flex-basis: auto;
}
</style>
<?php
echo "<form action='aside-main.php' method='POST'>";
echo "<div class='wrapper'>";
echo "<aside class='left'>";
echo "<div class='left one'>";
echo "<select name='selection_folder' onclick='this.form.submit();';>";
echo "<option value='0'>Alle Dateien anzeigen</option>";
echo "<option value='x' disabled>-------------------------------</option>";
echo "</select>";
echo "</div>";
echo "<div class='left two'>";
echo "<select multiple='multiple' name='filename_with_path' onClick='this.form.submit();'>";
for($i=0; $i<100; $i++)
{
echo "<option value='xyz'>xyz</option>";
}
echo "</select>";
echo "</div>";
echo "<div class='left three'>";
echo "<u><b>Anzeige zuletzt aktualisiert</b></u><br>";
echo "<br><br>";
echo "<INPUT name='refresh' style='width: 150px; height: 30px;' type=submit value='aktualisieren'>";
echo "<br><br>";
echo "<u><b>letzte Aktualisierung</b></u><br>";
echo "<br><br>";
echo "<u><b>letzte Aktualisierung</b></u><br>";
echo "<br><br>";
echo "files aktualisieren sich aut!";
echo "</div>";
echo "</aside>";
echo "<main>";
echo "<div class='right one'>";
echo " - keine Datei geladen -";
echo "</div>";
echo "<div class='right two'>";
echo"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed d ";
echo "</div>";
echo "<div class='right four'>";
echo "<INPUT style='width: 210px; height: 20px;' name='search_text' value='".$search_text."'> - Nach was suchst du denn eigentlich?";
echo "<INPUT name='run_search' style='width: 150px;' type=submit value='Suchen'> ";
echo "<input type='checkbox' name='show_only_searchlines' value='1'";
if ($_SESSION['show_only_searchlines'] == "1") { echo "checked"; }
echo " onclick='this.form.submit();'>- nur Zeilen mit Suchergebnissen anzeigen";
echo "</div>";
echo "</main>";
echo "</div>";
echo "</form>";
echo "</body>";
echo "</html>";
?>