";
return $text;
}
function labs_manage_set(){
global $db_conn;
$text = "
#
select
Site name
Carrent Lab State
";
return $text;
}
function labs_manage($stat){
global $db_conn;
if($stat !='NULL'){
$sql = "SELECT \"SiteId\",\"SiteURL\",\"LabVerdictDesc\" from \"WhiteListing\".\"Sites\"
left join \"WhiteListing\".\"LabVerdicts\" on(\"LabStatus\" =\"LabVerdictId\")
where \"VerdictId\" =3 and \"LabStatus\" =$stat order by \"DateAdded\"";
}
else{
$sql = "SELECT \"SiteId\", \"SiteURL\",\"LabVerdictDesc\" from \"WhiteListing\".\"Sites\"
left join \"WhiteListing\".\"LabVerdicts\" on(\"LabStatus\" =\"LabVerdictId\")
where \"VerdictId\" =3 and \"LabStatus\" isnull order by \"DateAdded\"";
}
$lab_res = odbc_exec($db_conn,$sql);
$i = 1;
$text = "