From 7e83dba2ecb80a1dcf340e0bc54135e44ecad45e Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 21 Oct 2005 11:58:23 +0000 Subject: [PATCH] FAIprofile listbox in GOsa style git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1655 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiProfile.inc | 8 +++- plugins/admin/fai/faiProfile.tpl | 62 +++++++++++++++++--------- 2 files changed, 49 insertions(+), 21 deletions(-) diff --git a/plugins/admin/fai/class_faiProfile.inc b/plugins/admin/fai/class_faiProfile.inc index aa6019971..d5680e49d 100644 --- a/plugins/admin/fai/class_faiProfile.inc +++ b/plugins/admin/fai/class_faiProfile.inc @@ -91,6 +91,11 @@ class faiProfile extends plugin $s_entry = preg_replace("/_.*$/","",$s_entry); }elseif(preg_match("/Add_class/i",$name)){ $s_action = "add"; + }elseif(preg_match("/DelClass/i",$name)){ + $s_action = "delete"; + $s_entry = $_POST['FAIclass']; + }elseif(preg_match("/AddClass/i",$name)){ + $s_action = "add"; } } @@ -166,7 +171,8 @@ class faiProfile extends plugin $field3 = array("string"=> preg_replace("/%KEY%/",$usedClass,$actions),"attach"=>"style='border-right:none;'"); $divlist->AddEntry(array($field1,$field2,$field3)); } - + + $smarty->assign("FAIclasses" ,$this->FAIclasses); $smarty->assign("divlisthead" ,$listhead); $smarty->assign("divlist" ,$divlist->DrawList()); diff --git a/plugins/admin/fai/faiProfile.tpl b/plugins/admin/fai/faiProfile.tpl index fcd02b169..934f61737 100644 --- a/plugins/admin/fai/faiProfile.tpl +++ b/plugins/admin/fai/faiProfile.tpl @@ -1,28 +1,49 @@ -

 {t}Generic{/t}

- +
- - - - - -
- + +

 {t}Generic{/t}

+ + + + + + + + + +
+ + + +
+ + + +
- -
- - - + + + + + +
+

 {t}FAI classes{/t}

+ +
+ + + +
-
- +