Location: PHPKode > projects > phpMyPrepaid > phpmyprepaid/www/include/ap/show_ap.php
<?php
echo '<table><tr><td colspan=2><big style="font-family: Aircut"><span
	 style="font-weight: bold; text-decoration: italic;">';
	 echo "NAS information :</big></td></tr></table><br>";

$APID=$_POST['APID'];
if ($debug) echo " AP ".$APID." AP";
$query="select dnsname,ipaddress,user,pass,macaddress,nasID,comunity,version,mib,longitude,latitude from AP where ID = '$APID'";
$result=$oreon->database->database->query($query);
$row = $oreon->database->database->fetch_object($result);
$dnsname=$row->dnsname;
$nasval=$ipaddress=$row->ipaddress;
$user=$row->user;
$pass=$row->pass;
$macaddress=$row->macaddress;
$nasid=$row->nasID;
$comunity=$row->comunity;
$version=$row->version;
$latitude=$row->latitude;
$longitude=$row->longitude;
$mib=$row->mib;

if ($debug) echo " nas id ".$nasid." AP";
$query="select nasname,shortname,type,ports,secret,community,description from nas where ID = '$nasid'";
$result=$oreon->database->database->query($query);
$row = $oreon->database->database->fetch_object($result);
$nasname=$row->nasname;
$shortname=$row->shortname;
$nastype=$row->type;
$ports=$row->ports;
$secret=$row->secret;
$description=$row->description;

echo '		
<table border="1">
<tr>
<td colspan="3" align="left"> <big style="font-family: Aircut"><span style="font-weight: bold; text-decoration: italic;"> Nas information</big></span></td>';
echo '</tr>';
echo '<tr><td style="width: 196px;"><small><b>Dns name</td><td><small>';
echo $dnsname;
echo '</small></td></tr>';
echo '<tr><td style="width: 196px;"><small><b>Ip address</td><td><small>';
echo $ipaddress;
echo '</small></td></tr>';
echo '<tr><td style="width: 196px;"><small><b>Description</td><td><small>';
echo $description;
echo '</small></td></tr>';
echo '<tr><td style="width: 196px;"><small><b>Latitude</td><td><small>';
echo $latitude;
echo '</small></td></tr>';
echo '<tr><td style="width: 196px;"><small><b>Longitude</td><td><small>';
echo $longitude;
echo '</small></td></tr>';
echo '</table>';

echo '<hr><table><tr><td>';
echo '<form action="phpmyprepaid.php" method="post">';  
	echo('<input type="hidden" name="buttonID" value="show_snmp_ap">');
	echo("<input type=\"hidden\" name=\"APID\" value=\"$apid\">");
	echo('<input type="hidden" name="LocationID" value='.$locid.'>');
	echo("<input type=\"submit\" class=\"smallButton\" name=\"submit\" value=\"Show snmp nas\">");
	printf('</form></td>');
echo '<td>';
echo '<form action="phpmyprepaid.php" method="post">';  
	echo('<input type="hidden" name="buttonID" value="show_users_ap">');
	echo("<input type=\"hidden\" name=\"APID\" value=\"$apid\">");
	echo('<input type="hidden" name="LocationID" value='.$locid.'>');
	echo("<input type=\"submit\" class=\"smallButton\" name=\"submit\" value=\"Show users nas\">");
	printf('</form></td></tr></table>');
?>
Return current item: phpMyPrepaid