Пример #1
0
if ($host_alive) {
    echo "<a href='hoststat.php?id=" . $id . "'>View host stats</a>";
}
?>
                <div class="cleaner h20"></div>
<?php 
if ($host_data) {
    echo "<table id='rounded-corner' summary='HostSummary' align='center'>";
    echo create_host_header();
    echo get_host_summary($host_data);
    echo "</table>";
    if ($host_alive) {
        echo "<form name=pool action='edithost.php?id=" . $id . "' method='post'>";
        echo "<table id='rounded-corner' summary='DevsSummary' align='center'>";
        echo create_devs_header();
        echo process_devs_disp($host_data, FALSE);
        if (isset($dev_response)) {
            if ($dev_response['STATUS'][0]['STATUS'] == 'S') {
                $dev_message = "Action successful: ";
            } else {
                if ($dev_response['STATUS'][0]['STATUS'] == 'I') {
                    $dev_message = "Action info: ";
                } else {
                    if ($dev_response['STATUS'][0]['STATUS'] == 'W') {
                        $dev_message = "Action warning: ";
                    } else {
                        $dev_message = "Action error: ";
                    }
                }
            }
            echo "<thead><tr>\r\n              <th colspan='16'  scope='col' class='rounded-company'>" . $dev_message . $dev_response['STATUS'][0]['Msg'] . "</th>\r\n            </tr></thead>";
Пример #2
0
if ($result) {
    echo "<table id='rounded-corner' summary='Hostsummary'>";
    echo create_host_header();
    while ($host_data = $result->fetch(PDO::FETCH_ASSOC)) {
        $host_alive = get_host_status($host_data);
        echo get_host_summary($host_data);
        if ($host_alive) {
            $privileged = get_privileged_status($host_data);
            echo "<tr><td colspan='16'>";
            echo "<table id='rounded-corner' summary='PoolSummary' align='center'>";
            echo create_pool_header();
            echo process_pools_disp($host_data);
            echo "</table>";
            echo "<table id='rounded-corner' summary='DevsSummary' align='center'>";
            echo create_devs_header();
            echo process_devs_disp($host_data);
            echo "</table>";
            echo "</td></tr>";
        }
    }
    echo create_totals();
    echo "</table>";
} else {
    echo "No Hosts found, you might like to <a href=\"addhost.php\">add a host</a> ?<BR>";
}
?>

                <table align=center><tr><td align=center><a href="addhost.php"><img src="images/add.png" border=0></a></td><td>Add host</td></tr></table>
                
                
                <div class="cleaner h20"></div>
Пример #3
0
<?php 
if ($host_alive) {
    echo "<a href='hoststat.php?id=" . $id . "'>View host stats</a>";
}
?>
                <div class="cleaner h20"></div>
<?php 
if ($host_data) {
    echo "<table id=\"hostsum\" class='acuity' summary='HostSummary' align='center'>";
    echo create_host_header();
    echo get_host_summary($host_data);
    echo "</table>";
    if ($host_alive) {
        echo "<table id=\"devsum\" class='acuity' summary='DevsSummary' align='center'>";
        echo create_devs_header();
        echo process_devs_disp($host_data, $privileged);
        if (isset($dev_response)) {
            if ($dev_response['STATUS'][0]['STATUS'] == 'S') {
                $dev_message = "Action successful: ";
            } else {
                if ($dev_response['STATUS'][0]['STATUS'] == 'I') {
                    $dev_message = "Action info: ";
                } else {
                    if ($dev_response['STATUS'][0]['STATUS'] == 'W') {
                        $dev_message = "Action warning: ";
                    } else {
                        $dev_message = "Action error: ";
                    }
                }
            }
            echo "<thead><tr>\n              <th colspan='16'  scope='col' class='rounded-company'>" . $dev_message . $dev_response['STATUS'][0]['Msg'] . "</th>\n            </tr></thead>";