<?php
include_once("include/dbconnect.php");
include_once("include/functions.php");
include_once("menu.html");
$config = new ReadConfig;
$general = $config->General('gui_debug');
if ($general['gui_debug'] == 1) {
echo "<div align='center' class='orange'><h2><blink>Debug mode activated</blink></h2></div>";
}
$search = trim($_GET['search']);
switch($search)
{
case "host":
echo "<div class='row'>";
echo "<div align='center'>";
echo "<h2>Enter hostname or ip </h2>";
echo "<table class='search'>\n";
echo "<tr>\n";
echo "<form action='host_form.php' method='get'>";
echo "<th>\n";
echo "<h2>HOST:</h2>\n";
echo "</th>\n";
echo "<th>\n";
echo "<input type='text' name='host' size='30'>";
echo "</th>\n";
echo "<tr>\n";
echo "<td colspan='2' rowspan='1' style='text-align: right; vertical-align: top;'>\n";
echo "<input type='submit' name='search' value='Search'>";
echo "<input type='hidden' name='view_type' value='view'>";
echo "<input type='reset' name='reset' value='Reset'>";
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</div>\n";
echo "</div>\n";
break;
case "service":
echo "<div class='row'>";
echo "<div align='center'>";
echo "<table class='search'>\n";
echo "<tr>\n";
echo "<form action='host_form.php' method='get'>";
echo "<th>\n";
echo "<h2>SERVICE:</h2>\n";
echo "</th>\n";
echo "<th>\n";
echo "<input type='text' name='service' size='30'>";
echo "</th>\n";
echo "<tr>\n";
echo "<td colspan='2' rowspan='1' style='text-align: right; vertical-align: top;'>\n";
echo "<input type='submit' name='search' value='Search'>";
echo "<input type='hidden' name='view_type' value='view_list'>";
echo "<input type='reset' name='reset' value='Reset'>";
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</div>\n";
echo "</div>\n";
break;
case "port":
echo "<div class='row'>";
echo "<div align='center'>";
echo "<table class='search'>\n";
echo "<tr>\n";
echo "<form action='host_form.php' method='get'>";
echo "<th>\n";
echo "<h2>PORT:</h2>\n";
echo "</th>\n";
echo "<th>\n";
echo "<input type='text' name='port' size='30'>";
echo "</th>\n";
echo "<tr>\n";
echo "<td colspan='2' rowspan='1' style='text-align: right; vertical-align: top;'>\n";
echo "<input type='submit' name='search' value='Search'>";
echo "<input type='hidden' name='view_type' value='view_list'>";
echo "<input type='reset' name='reset' value='Reset'>";
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</div>\n";
echo "</div>\n";
break;
case "mail":
echo "<div class='row'>";
echo "<div align='center'>";
echo "<table class='search'>\n";
echo "<tr>\n";
echo "<form action='host_form.php' method='get'>";
echo "<th>\n";
echo "<h2>MAIL:</h2>\n";
echo "</th>\n";
echo "<th>\n";
echo "<input type='text' name='mail' size='30'>";
echo "</th>\n";
echo "<tr>\n";
echo "<td colspan='2' rowspan='1' style='text-align: right; vertical-align: top;'>\n";
echo "<input type='submit' name='search' value='Search'>";
echo "<input type='hidden' name='view_type' value='view_mail'>";
echo "<input type='reset' name='reset' value='Reset'>";
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</div>\n";
echo "</div>\n";
break;
default:
echo "<div class='row'>";
echo " <h1>Parameter error</h1>";
echo "</div>";
break;
}
?>
<div class="row">
</div>
</div>
</div>
</body>
</html>