<?
if (!isset($oreon->user))
header("Location: index.php");
echo "<p class=\"information\">Choose the group, you want to modify user </p><hr>";
$lid=$_SESSION['locID'];
$query = "SELECT * from group_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: 85px;"><b>Group name :');
echo('</td>');
echo('<td class="gpcell" style="width: 320px;"><b>Group description :');
echo('</td></tbody></tr>');
while($row = $oreon->database->database->fetch_object($result)) {
$id = ($row->ID);
$gp_name = stripslashes($row->gp_name);
$gp_description=stripslashes($row->gp_description);
$gp_id=$row->ID;
printf('<form action="phpmyprepaid.php" method="post">');
echo "<td >";
echo("<input type=\"hidden\" name=\"buttonID\" value=\"user_group\">");
echo("<input type=\"hidden\" name=\"locID\" value=\"$lid\">");
echo("<input type=\"hidden\" name=\"gp_id\" value=\"$gp_id\">");
echo("<input type=\"hidden\" name=\"gp_name\" value=\"$gp_name\">");
echo("<input type=\"image\" width=\"25\" height=\"25\" class=\"image\" src=\"images/group.png\" name=\"submit\" >");
echo '</td>';
echo('<td class="gpfieldcell" style="width: 200px;" ><small>');
echo($gp_name);
echo('</td>');
echo('<td class="gpfieldcell" style="width: 320px;"><small>');
echo($gp_description);
echo('</td>');
echo('</tr></form>');
}
echo('</tbody></table>');
?>