<?
if (!isset($oreon->user))
header("Location: index.php");
echo "<p class=\"information\">All available radius profile, click on the image button to access to modification</p><hr>";
$lid=$_SESSION['locID'];
$query = "SELECT * from radiusprofile_template where location_id='".$lid."'";
$result = $_SESSION["oreon"]->database->database->query($query);
echo "<table border=\"2\" width=\"520px\" cellpadding=\"3\" cellspacing=\"3\"> <tbody><tr>";
echo('<td></td><td class="gpcell" style="width: 200px;"><b>Radius profile name :');
echo('</td>');
echo('<td class="gpcell" style="width: 320px;"><b>Radius profile description :');
echo('</td></tbody></tr>');
while($row = $oreon->database->database->fetch_object($result)) {
$id = ($row->ID);
$rp_name = (stripslashes($row->rp_name));
$rp_description=stripslashes($row->rp_description);
$rp_id=$row->ID;
printf('<form action="phpmyprepaid.php" method="post">');
echo "<td >";
echo("<input type=\"hidden\" name=\"buttonID\" value=\"radiusprofile_selected\">");
echo("<input type=\"hidden\" name=\"locID\" value=\"$lid\">");
echo("<input type=\"hidden\" name=\"radiusprofile_id\" value=\"$rp_id\">");
echo("<input type=\"hidden\" name=\"rp_name\" value=\"$rp_name\">");
echo("<input type=\"hidden\" name=\"rp_description\" value=\"$rp_description\">");
echo("<input type=\"image\" width=\"25\" height=\"25\" class=\"image\" src=\"images/radiusprofile.png\" name=\"submit\" >");
echo '</td>';
echo('<td class="gpfieldcell" style="width: 200px;" >');
echo($rp_name);
echo('</td>');
echo('<td class="gpfieldcell" style="width: 320px;">');
echo($rp_description);
echo('</td>');
echo('</tr></form>');
}
echo('</tbody></table>');
?>