get_Target_Details($_REQUEST['left_ste'], $_REQUEST['left_tgt'])[0];
$right_tgt = $db->get_Target_Details($_REQUEST['right_ste'], $_REQUEST['right_tgt'])[0];
$findings = $db->get_Finding_Comparrison($left_tgt, $right_tgt);
?>
$find) {
?>
_row">
|
".$str."";
}
else {
print "".$str." | ";
}
$str = "";
$diff = false;
if(is_null($find)) {
$str .= " ";
}
else {
$str .= $find['ia_controls'];
}
if(isset($findings['right'][$stig_id])) {
$str .= " / ".$findings['right'][$stig_id]['ia_controls'];
if($find['ia_controls'] != $findings['right'][$stig_id]['ia_controls']) {
$diff = true;
}
}
else {
$str .= " /";
}
if($diff) {
print "".$str." | ";
}
else {
print "".$str." | ";
}
$str = "";
if(is_null($find)) {
$str .= "Not Reviewed | ";
}
else {
$status = strtolower(str_replace(" ", "_", $find['status']));
$str .= "".$find['status']." | ";
}
if(isset($findings['right'][$stig_id])) {
$status = strtolower(str_replace(" ", "_", $findings['right'][$stig_id]['status']));
$str .= "".$findings['right'][$stig_id]['status']." | ";
}
else {
$str .= "Not Reviewed | ";
}
print $str;
$str = "";
if(is_null($find)) {
$str .= " | ";
}
else {
$str .= "".$find['notes']." | ";
}
if(isset($findings['right'][$stig_id])) {
$str .= "".$findings['right'][$stig_id]['notes']." | ";
}
else {
$str .= " | ";
}
print $str;
$odd = !$odd;
}
?>