From 4991f9e081ac8a563d50e570baf59f6df223e333 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Thu, 24 Nov 2005 09:30:13 -0500
Subject: [PATCH] SQL plugin erweitert
---
interface/lib/classes/plugin_listview.inc.php | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/interface/lib/classes/plugin_listview.inc.php b/interface/lib/classes/plugin_listview.inc.php
index 94d7a51..b6bea10 100644
--- a/interface/lib/classes/plugin_listview.inc.php
+++ b/interface/lib/classes/plugin_listview.inc.php
@@ -16,6 +16,8 @@
$app->uses('listform');
$app->listform->loadListDef($this->options["listdef"]);
+ //$app->listform->SQLExtWhere = "type = 'alias'";
+
$listTpl = new tpl;
$listTpl->newTemplate('templates/'.$app->listform->listDef["name"].'_list.htm');
@@ -32,6 +34,10 @@
$sql_where = $app->tform->getAuthSQL('r')." and";
}
}
+
+ if($this->options["sqlextwhere"] != '') {
+ $sql_where .= " ".$this->options["sqlextwhere"]." and";
+ }
$sql_where = $app->listform->getSearchSQL($sql_where);
$listTpl->setVar($app->listform->searchValues);
--
Gitblit v1.9.1