Example #1
0
function do_search()
{
    $userdata = autocomplete_users_php($_REQUEST['query']);
    if (count($userdata) == 0) {
        alert('No results!', -1);
        show_search_page();
        return;
    } elseif (count($userdata) == 1) {
        redirect($userdata[0]['id']);
    } else {
        show_search_page();
        list_results($userdata);
    }
}
Example #2
0
    ?>
.gif">
              <strong><?php 
    echo _("CURRENT VULNERABILITIES");
    ?>
</strong>
          </a>
      </td>
		</tr>
		<tr class='cv' <?php 
    echo $rvalue == "" && $sortby == "" && $sreport == 0 ? "" : "style='display:none'";
    ?>
>
			<td colspan="3" style="padding:0px 0px 0px 0px;">
			<?php 
    list_results($type, $value, $ctx_filter, $sortby, $sortdir);
    // $value variable is used with current vulnerabilities
    ?>
			</td>
		</tr>
    <?php 
} else {
    ?>
      <tr>
        <td colspan="3" class="cvPadding"></td>
      </tr>
    <?php 
}
?>
		<tr>
        <td colspan="3" class="rPadding">
Example #3
0
require_once 'common.php';
require_once 'ar_common.php';
if (!isset($_REQUEST['tipo'])) {
    $response = array('state' => 405, 'msg' => 'Non acceptable request (t)');
    echo json_encode($response);
    exit;
}
$tipo = $_REQUEST['tipo'];
switch ($tipo) {
    case 'get_results':
        $data = prepare_values($_REQUEST, array('fork_key' => array('type' => 'key')));
        get_results($data);
        break;
    case 'list_results':
        $data = prepare_values($_REQUEST, array('fork_key' => array('type' => 'key'), 'callback' => array('type' => 'string')));
        list_results($data);
        break;
    default:
        $response = array('state' => 404, 'msg' => 'Operation not found');
        echo json_encode($response);
}
function list_results($data)
{
    global $mysqli;
    $fork_key = $data['fork_key'];
    $sql = sprintf("select * from `Result Dimension` where `Fork Key`=%d", $fork_key);
    $res = $mysqli->query($sql);
    $results = array();
    while ($row = $res->fetch_assoc()) {
        $journal = $row['Journal Name'];
        $notes = '';
Example #4
0
echo $patient->name;
?>
<br>
Age: <?php 
echo $patient->getAge();
?>
&nbsp;&nbsp;&nbsp;
Date of Birth: <?php 
echo $patient->getDob();
?>
&nbsp;&nbsp;&nbsp;
Sex: <?php 
echo $patient->sex;
?>
<br>
Dr:
<br>
Report Date: <?php 
echo date('Y-m-d H:i');
?>
<br><br>
<?php 
if ($test_entry == null) {
    echo "ERROR: Test type {$test_name} was not registered for Sample ID {$specimen_id}";
} else {
    list_results($test_entry);
}
?>
<br><br>
Signature: ...................................
</div>
Example #5
0
        if ($reportCount > $pageEnd) {
            echo "<a href=\"index.php?offset={$next}" . $url_allres . $url_filter . "\" class=\"pager\"> " . _("Next") . " &gt;</a>\n    <a href=\"index.php?offset={$last}" . $url_allres . $url_filter . "\" class=\"pager\"> " . _("Last") . " &gt;&gt;</a>";
        }
        echo "</p>";
    }
}
echo "<center>";
echo "<table cellspacing=\"8\" cellpadding=\"0\" class=\"noborder\" width=\"900\" style=\"background-color:transparent\">";
echo "<tr><td class=\"nobborder\">";
stats_severity_services($type, $value);
echo "</td></tr>";
echo "<tr><td class=\"nobborder\" style=\"padding-bottom:10px;\">";
//stats();
stats_networks_hosts($type, $value);
echo "</td></tr>";
//echo "<tr><td class=\"nobborder\">";
//status();
//echo "</td></tr>";
echo "<tr><td class=\"nobborder\">";
switch ($disp) {
    case "delete":
        delete_results($scantime, $scantype, $reporttype, $key, $sortby, $allres, $fp, $nfp, $op, $output, $wh, $bg);
        break;
    default:
        list_results($type, $value, $sortby, $sortdir);
        break;
}
echo "</td></tr>";
echo "</table>";
echo "</center>";
require_once 'footer.php';
Example #6
0
	</tbody>
</table>
<br><br>
<?php 
$test_list = get_tests_by_specimen_id($specimen_id);
foreach ($test_list as $test_entry) {
    $test_name = get_test_name_by_id($test_entry->testTypeId);
    $measure_list = get_test_type_measure($test_entry->testTypeId);
    $print_test_name = true;
    if (count($measure_list) == 1) {
        # Do nothing
        $print_test_name = false;
    } else {
        echo "<b>{$test_name}</b>";
        echo "<br>";
    }
    if ($test_entry == null) {
        echo "ERROR: Test type {$test_name} was not registered for Sample ID {$specimen_id}<br>";
    } else {
        list_results($test_entry, $print_test_name);
    }
}
?>
<br><br>
....................................
<h4><?php 
echo $report_config->footerText;
?>
</h4>
</div>
</div>