From f1eacebbfa9aebc255b1b4c56c682b96da405b6c Mon Sep 17 00:00:00 2001
From: Falko Timme <ft@falkotimme.com>
Date: Thu, 22 May 2014 03:37:23 -0400
Subject: [PATCH] - Added client field to DNS and DNS slave list views.

---
 interface/web/dns/list/dns_soa.list.php |   22 +++++++++++++++++++++-
 1 files changed, 21 insertions(+), 1 deletions(-)

diff --git a/interface/web/dns/list/dns_soa.list.php b/interface/web/dns/list/dns_soa.list.php
index e3b240a..d6f5641 100644
--- a/interface/web/dns/list/dns_soa.list.php
+++ b/interface/web/dns/list/dns_soa.list.php
@@ -13,7 +13,11 @@
 
 
 // Name of the list
-$liste["name"]     = "dns_soa";
+if($_SESSION['s']['user']['typ'] == 'admin') {
+	$liste["name"]     = "dns_soa_admin";
+} else {
+	$liste["name"]     = "dns_soa";
+}
 
 // Database table
 $liste["table"]    = "dns_soa";
@@ -70,6 +74,22 @@
 	),
 	'width'  => "",
 	'value'  => "");
+	
+if($_SESSION['s']['user']['typ'] == 'admin') {
+	$liste["item"][] = array( 'field'  => "sys_groupid",
+		'datatype' => "INTEGER",
+		'formtype' => "SELECT",
+		'op'  => "=",
+		'prefix' => "",
+		'suffix' => "",
+		'datasource' => array (  'type' => 'SQL',
+			'querystring' => 'SELECT groupid, name FROM sys_group WHERE groupid != 1 ORDER BY name',
+			'keyfield'=> 'groupid',
+			'valuefield'=> 'name'
+		),
+		'width'  => "",
+		'value'  => "");
+}
 
 $liste["item"][] = array( 'field'  => "origin",
 	'datatype' => "VARCHAR",

--
Gitblit v1.9.1