From 4780ebab197145fa0441e155251fc313b6021a13 Mon Sep 17 00:00:00 2001
From: Robert Anderson <randerson@lbsd.net>
Date: Wed, 18 Mar 2009 10:07:20 +0000
Subject: [PATCH] Updated for use with SMRadiusd

---
 webui/policy-group-main.php | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/webui/policy-group-main.php b/webui/policy-group-main.php
index 7c38a9e5..f51bcbda 100644
--- a/webui/policy-group-main.php
+++ b/webui/policy-group-main.php
@@ -32,7 +32,7 @@ printHeader(array(
 ));
 
 ?>
-	<p class="pageheader">Policy Groups</p>
+	<p class="pageheader">User Groups</p>
 
 	<form id="main_form" action="policy-group-main.php" method="post">
 
@@ -72,10 +72,12 @@ printHeader(array(
 			<tr class="resultstitle">
 				<td id="noborder"></td>
 				<td class="textcenter">Name</td>
+				<td class="textcenter">Priority</td>
 				<td class="textcenter">Disabled</td>
+				<td class="textcenter">Comment</td>
 			</tr>
 <?php
-			$sql = "SELECT ID, Name, Disabled FROM ${DB_TABLE_PREFIX}policy_groups ORDER BY Name";
+			$sql = "SELECT ID, Name, Priority, Disabled, Comment FROM ${DB_TABLE_PREFIX}groups ORDER BY Name";
 			$res = $db->query($sql);
 
 			while ($row = $res->fetchObject()) {
@@ -83,7 +85,9 @@ printHeader(array(
 				<tr class="resultsitem">
 					<td><input type="radio" name="policy_group_id" value="<?php echo $row->id ?>" /></td>
 					<td><?php echo $row->name ?></td>
+					<td><?php echo $row->priority ?></td>
 					<td class="textcenter"><?php echo $row->disabled ? 'yes' : 'no' ?></td>
+					<td><?php echo $row->comment ?></td>
 				</tr>
 <?php
 			}
-- 
GitLab