Location: PHPKode > projects > phpMyPrepaid > phpmyprepaid/www/include/location/location_selected.php
<?php
if(isset($_POST['locID'])){ $_SESSION['locID'] = $_POST['locID'];}
$id = $_SESSION['locID'];
if (isset( $_POST['LocationName']))
	$_SESSION['LocName'] = $_POST['LocationName'];
$query="SELECT LocationDomain,LocationName FROM locations where ID = '$id'";
$result = $oreon->database->database->query($query) or die("Query database error !");
while ($row = $oreon->database->database->fetch_object($result)) {
	$array[] = $row;
	$domain = ($row->LocationDomain);
	$locationName = ($row->LocationName);
}
$_SESSION['LocationDomain'] = $domain;
echo '<table style="text-align: left;">';
echo '<tr><td style=" text-align: center;"><img class="leftImage" src="images/wifi_locations.png" align="middle" >';
echo ("<td style=\"text-align: left; vertical-align: middle;\"> <b> ".$locationName." </b>");
echo(' nas. </b></td></tr></table><br>');


	//if(is_admin()){
//	echo('logged in as master admin');
//	}
$ID = $_SESSION['locID'];

show_AP();
//	echo"<table>";

//		echo"<tr>";
//			echo"<td>";
//			echo"Notes, etc. for this location should be included here";
//			echo"</td>";
//		echo"</tr>";
//	echo"</table>";
//	printf('Information needed for this screen: <br>');
//	printf('<p>NAS information -->clients.conf</p>');
//	printf('<p>Location info -->in DB</p>');
//	printf('<p>to edit this screen, edit location_selected.php</p>');
//	printf('<p>Including Add AP here till we add the buttons');
include('include/ap/addAP.php');
	//echo($_SESSION['locID']); //DEBUG
	//}
Return current item: phpMyPrepaid