Exemplo n.º 1
0
                <div class="cleaner h20"></div>

<?php 
$result = $dbh->query("SELECT * FROM hosts ORDER BY name ASC");
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>";
}
?>
Exemplo n.º 2
0
           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>";
   }
   echo "</table>";
   echo "<table id='rounded-corner' summary='PoolSummary' align='center'>";
   echo create_pool_header();
   echo process_pools_disp($host_data, $privileged);
   if (version_compare($API_version, 1.11, '>=') && $privileged) {
       ?>
 <thead>
 	<tr>
 	  <th colspan="13">
       Pool URL: <input type="text" name="url">&nbsp;
       Username: <input type="text" name="user">&nbsp;
       Password: <input type="text" name="pass">&nbsp;&nbsp;
       <input type="submit" value="Add Pool" name="addpool">
       </th>
     </tr>
     <tr>
       <th colspan="13">
       Configuration file path (blank for default):
       <input type="text" name="confpath" value="<?php