<?
if (!isset($oreon->user))
header("Location: index.php");
echo "<p class=\"information\">Choose the radiusprofile, you want to modify user </p><hr>";
$lid=$_SESSION['locID'];
$query = "SELECT * from radiusprofile_template where location_id='".$lid."'";
$result = $_SESSION["oreon"]->database->database->query($query);
while($row = $oreon->database->database->fetch_object($result)) {
echo "<table border=\"5\" cellpadding=\"3\" cellspacing=\"3\"> <tbody><tr>";
$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=\"user_radiusprofile\">");
echo("<input type=\"hidden\" name=\"locID\" value=\"$lid\">");
echo("<input type=\"hidden\" name=\"rp_id\" value=\"$rp_id\">");
echo("<input type=\"hidden\" name=\"rp_name\" value=\"$rp_name\">");
echo("<input type=\"image\" class=\"image\" src=\"images/radiusprofile.png\" name=\"submit\" >");
echo '</td>';
echo('<td class="gpcell" style="width: 85px;">RadiusProfile name :');
echo('</td>');
echo('<td class="gpfieldcell" style="width: 85px;" >');
echo($rp_name);
echo('</td>');
echo('<td class="gpcell" >RadiusProfile description :');
echo('</td>');
echo('<td class="gpfieldcell" style="width: 320px;">');
echo($rp_description);
echo('</td>');
echo('</tr></form></tbody></table>');
}
?>