<table>
<tr><th><?php 
echo __("Attribute");
?>
</th><th><?php 
echo __("Value");
?>
</th></tr>

<?php 
// Dump LDAP data into table
foreach ($info[0] as $key => $value) {
    if (!is_numeric($key) && $key != "count" && $key != "dn") {
        array_shift($value);
        $val = FormatLdapValue($key, $value);
        echo "<tr class='" . alternate_tr_class($tr_class) . "'>";
        $key = $human_readable_ldap_fields ? __($key) : $key;
        echo "<td>" . $key . "</td><td>{$val}</td></tr>";
    }
}
echo "</table></div></td>";
include "include_right_column.php";
/**********************************************************************************************************
Function Name:
	GetImage
Description:
	Returns image file name - image to be displayed with the LDAP details. If image file exists that matches user account name,
	then this filname is returned else default user or computer account image filenames are used. 
Arguments:
	$name	[IN]	[STRING]	user or computer samaccountname value (or user full name [AJH]) 
Returns:
function GetDetectedXpAvData($id)
{
    global $db;
    $tr_class = 'npb_highlight_row';
    $sql = "SELECT system_name, net_ip_address, system_uuid, virus_name, virus_uptodate FROM system ";
    $sql .= "WHERE (virus_name = '' OR virus_uptodate = 'False') AND system_service_pack = '2.0' AND system_os_name LIKE 'Microsoft Windows XP%' ";
    $sql .= "ORDER BY system_name";
    $result = mysql_query($sql, $db) or die(mysql_error());
    $count = mysql_numrows($result);
    echo "<div class='npb_content_data' id='" . $id . "' style='display: none;'>";
    if ($myrow = mysql_fetch_array($result)) {
        echo "<table>";
        echo "  <tr>";
        echo "\t\t<th>" . __("IP Address") . "</td>";
        echo "  \t<th>" . __("Hostname") . "</td>";
        echo "  \t<th>" . __("AntiVirus Program") . "</td>";
        echo "  \t<th>" . __("AntiVirus Up To Date") . "</td>";
        echo "</tr>";
        do {
            echo "<tr class='" . alternate_tr_class($tr_class) . "'>";
            echo "\t<td>" . ip_trans($myrow["net_ip_address"]) . "</td>";
            echo "\t<td><a href=\"system.php?pc=" . $myrow["system_uuid"] . "&amp;view=summary\">" . $myrow["system_name"] . "</a></td>";
            echo "\t<td>" . $myrow["virus_name"] . "</td>";
            echo "\t<td>" . $myrow["virus_uptodate"] . "</td>";
            echo "\t</tr>";
        } while ($myrow = mysql_fetch_array($result));
    }
    echo "</table>";
    echo "</div>";
    echo "<p class='npb_section_summary'>" . __("Systems") . ": " . $count . "</p>";
    return;
}