<?
//phpinfo();
$now = date("m/j/y h:i:s",time());
include "connect.php";
$LABlist = $_POST['LABlist'];
$SUBNET = $_POST['SUBNET'];
$OSlist = $_POST['OSlist'];
$Submit3 = $_POST['Submit3'];
$REMOTE_ADDR = $_SERVER["REMOTE_ADDR"];
$stmt = "FROM arp_table a, subnets b where (a.subnet = b.subnet) and (ip_address='" . $REMOTE_ADDR . "')";
$stmt = urlencode($stmt);
if ($Submit3=='No Green') {
$stmt = $stmt . 'and ((owner is null) or (building is null) or (room is null) or (barcode is null) or (owner is null) or (os is null))';
}
?>
<html>
<title>IASO Review Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<frameset rows="*" cols="262,*" frameborder="NO" border="0" framespacing="0">
<frame name="leftFrame" noresize src="getpicks.php?stmt=<? print $stmt ?>" marginwidth="0" marginheight="0">
<frame name="rightFrame" noresize src="right.php" marginwidth="0" marginheight="0">
</frameset>
<noframes><body bgcolor="#F9F3E0" text="#000000">
</body></noframes>
</html>