Location: PHPKode > projects > WaveWatcher > wavewatcher3/html/clientlist.php
<?
	session_start();
	require_once("../classes/network.php");
        require_once("../classes/user.php");
          
	// Create a User instance
	$user = new User();
	$network = new Network();


	if (!$user->IsLoggedIn())
		header("Location: index.php");


function printClientList(){
$network = new Network(); 
$user = new User();
$result = $network->GetClientList();
while(List( $if_name,$mac, $remsig, $locsig, $node_name, $node_ip, $location) = $network->FetchRow($result))
{
    print "<tr bgcolor=\"#fcfcfc\">";
    print "<td>".$if_name."</td>";
    print "<td>".$mac."</td>";
    print "<td>".$remsig."</td>";
    print "<td>".$locsig."</td>";
    print "<td>".$node_name."</td>";
    print "<td>".$node_ip."</td>";
    print "<td>".$location."</td>";
    

    print "</tr>";
 }
}
?>

<html>
	<head>
		<title>Client List</title>
		<link href="css/style1.css" rel="styleSheet" type="text/css">		
		<script language="javascript">
                
                  function savechanges(process_id)
			{
                                window.location = "procsetup.php?update=1&process_id="+process_id;
                      	}
				
		</script>
	</head>

	<body>
<? include("menuinclude.php");?>	
	<table width = "50%" height="80%" align="center" border="0">
		<tr>
			<td>

				<!-- background table -->
				<table width="650" align="center" border="0" cellspacing="1" cellpadding="0" bgcolor="#000000">
					<tr>
						<td>
							<!-- gui table -->
							<table width="650" border="0" cellspacing="1" cellpadding="2">
								
								<!-- title row -->
								<tr>
									<td bgcolor="#515173" colspan="7">
										<font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#FFFFFF"><b>Client List</b></font>
									</td>
								</tr>
								
								<tr>
									<td bgcolor="#c0c0c0" colspan="7">
										<font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#000000">
											Currently connected clients orderd by increasing remote signal strength<br>
										</font>
									</td>
									
								</tr>

								<!-- Submit -->
							

				                                <tr bgcolor="#fcfcfc">
									<td>
										<table width="100%" border="0">
											<tr>
												<td align="top "width="150">Client name<br><br></td>
												<td width="120">Mac address     </td>
                                                                                                <td width="50">Remote signal level</td>
				                                                                <td width="50">Local signal level</td>
								                                <td width="70">Node name</td>
				                                                                <td width="60">Node IP</td>
								                                <td width="70">Node location</td>
								                              </tr>
				                                                        <? printClientList();?>
									</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	</body>
</html>
Return current item: WaveWatcher