From d1018a8dd315485b9840e30569f5bd59160bb0c6 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Fri, 13 Jun 2008 09:12:42 -0400
Subject: [PATCH] Added the form and list for mail filtering rules in the interface.

---
 interface/web/mail/form/mail_user.tform.php |   29 +++++++++++++++++++++++++++--
 1 files changed, 27 insertions(+), 2 deletions(-)

diff --git a/interface/web/mail/form/mail_user.tform.php b/interface/web/mail/form/mail_user.tform.php
index 0015d23..454f93c 100644
--- a/interface/web/mail/form/mail_user.tform.php
+++ b/interface/web/mail/form/mail_user.tform.php
@@ -177,12 +177,37 @@
 	)
 );
 
+$form["tabs"]['filter_records'] = array (
+	'title' 	=> "Mail Filter",
+	'width' 	=> 100,
+	'template' 	=> "templates/mail_user_mailfilter_edit.htm",
+	'fields' 	=> array (
+	##################################
+	# Begin Datatable fields
+	##################################
+		
+	##################################
+	# ENDE Datatable fields
+	##################################
+	),
+	'plugins' => array (
+     	'filter_records' => array (
+         	'class'   => 'plugin_listview',
+     		'options' => array(
+				'listdef' => 'list/mail_user_filter.list.php',
+				'sqlextwhere' => "mailuser_id = ".@intval(@$_REQUEST['id']),
+				'sql_order_by' => "ORDER BY rulename"
+			)
+        )
+	)
+);
+
 if($_SESSION["s"]["user"]["typ"] == 'admin') {
 
 $form["tabs"]['mailfilter'] = array (
-	'title' 	=> "Mailfilter",
+	'title' 	=> "Custom Rules",
 	'width' 	=> 100,
-	'template' 	=> "templates/mail_user_mailfilter_edit.htm",
+	'template' 	=> "templates/mail_user_custom_rules_edit.htm",
 	'fields' 	=> array (
 	##################################
 	# Begin Datatable fields

--
Gitblit v1.9.1