This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . ************************************************************************ */ /** * * index.php, TSM Monitor * * main php file * * @author Michael Clemens * @package tsmmonitor */ include_once "includes/global.php"; include_once "includes/page_head.php"; if ($_POST["css"] != "") { $_SESSION['stylesheet'] = $_POST["css"]; } ?>



"; echo "KeyValue"; foreach ($tablearray as $row) { while(list($keycell, $valcell) = each($row)) { if ($i == 0) { echo ""; $i = 1; } else { echo ""; $i = 0; } echo "".$keycell."".$valcell.""; } //} } echo ""; // show normal table layout } else { $whereclause = array(); //if (!$_POST["Clear"] == "Clear") { $whereclause["field"] = $_POST["wcfield"]; $whereclause["val"] = $_POST["wcval"]; $whereclause["op"] = $_POST["wcop"]; //} if ($whereclause["field"]!="" && $whereclause["val"]!="") { if ($_POST["Clear"] == "Clear") { $_SESSION["search"][$GETVars['qq']] = ""; } else { if (!isset($_SESSION["search"])){ $temp = array(); $temp[$GETVars['qq']] = $whereclause; $_SESSION["search"] = $temp; } else { $_SESSION["search"][$GETVars['qq']] = $whereclause; } } } echo ""; //echo get_tableheader($queryarray[$GETVars['qq']]["header"]["column"]); echo getTableheader(); echo execute('table'); $nav = showPageNavigation("40"); if ($nav!="") { echo ""; } echo "
"; } } } else { if (isset($_SESSION["logindata"])){ $errormsg = "Login failed!"; }else{ $errormsg = "Login"; } session_unset(); $_SESSION=array(); include_once "includes/login.php"; } $_SESSION['from'] = $GETVars['qq']; session_write_close(void); ?>