include ("head.php");
function getruninfo($table){
$query = "select * from $table where RunNumber='".$_GET["run"]."' ";//order by `RunStartTime` DESC LIMIT 1";
// if($table == "AnalysisInfo"){
// $query = "select * from $table where $RunNumberName='".$_GET["run"]."'";// group by `UserName` Having StartTime = Max(EntryTime)";
// }
$result=mysql_query($query);
while($row = mysql_fetch_array($result, MYSQL_ASSOC)){
echo "
";
echo "
";
echo "$table |
";
foreach( $row as $key => $value){
if($class=="cell1") $class="cell2";
else $class="cell1";
echo "".$key.": | ".$value." |
";
}
echo "
";
}
}
if(!empty($_GET) && !empty($_GET["run"])){
getruninfo("RunInfo");
getruninfo("EndRunInfo");
getruninfo("AnalysisInfo");
}else{
echo "";
}
include ("tail.php");
?>