From: hickert Date: Fri, 14 Mar 2008 13:55:01 +0000 (+0000) Subject: msgPool X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c6af4ca1bf62eb730be4b6f716cb8574cc33194b;p=gosa.git msgPool git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9847 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/admin/ogroups/class_ogroup.inc b/gosa-core/plugins/admin/ogroups/class_ogroup.inc index bfd86e101..127948767 100644 --- a/gosa-core/plugins/admin/ogroups/class_ogroup.inc +++ b/gosa-core/plugins/admin/ogroups/class_ogroup.inc @@ -283,14 +283,52 @@ class ogroup extends plugin $smarty->assign("tree_image", get_template_path('images/tree.png')); $smarty->assign("deplist", $this->config->idepartments); $smarty->assign("alphabet", generate_alphabet()); - foreach( array("dselect", "regex", "accounts", "groups", "applications", - "departments", "servers", "workstations", "winstations", "terminals","subtrees", - "printers", "phones") as $type){ + foreach( array("dselect", "regex", "subtrees") as $type){ $smarty->assign("$type", $ogfilter[$type]); } $smarty->assign("hint", print_sizelimit_warning()); $smarty->assign("apply", apply_filter()); + /* Build up checkboxes + */ + $ar = array( + "departments" => array( + "T" => msgPool::selectToView(_("departments")), + "C" => (isset($ogfilter['departments']) && ($ogfilter['departments'])), + "L" => sprintf(_("Show %s"),_("departments"))), + "accounts" => array( + "T" => msgPool::selectToView(_("people")), + "C" => (isset($ogfilter['accounts']) && ($ogfilter['accounts'])), + "L" => sprintf(_("Show %s"),_("people"))), + "groups"=> array( + "T" => msgPool::selectToView(_("groups")), + "C" => (isset($ogfilter['groups']) && ($ogfilter['groups'])), + "L" => sprintf(_("Show %s"),_("groups"))), + "applications"=> array( + "T" => msgPool::selectToView(_("applications")), + "C" => (isset($ogfilter['applications']) && ($ogfilter['applications'])), + "L" => sprintf(_("Show %s"),_("applications"))), + "servers"=> array( + "T" => msgPool::selectToView(_("servers")), + "C" => (isset($ogfilter['servers']) && ($ogfilter['servers'])), + "L" => sprintf(_("Show %s"),_("servers"))), + "workstations"=> array( + "T" => msgPool::selectToView(_("workstations")), + "C" => (isset($ogfilter['workstations']) && ($ogfilter['workstations'])), + "L" => sprintf(_("Show %s"),_("workstations"))), + "terminals"=> array( + "T" => msgPool::selectToView(_("terminals")), + "C" => (isset($ogfilter['terminals']) && ($ogfilter['terminals'])), + "L" => sprintf(_("Show %s"),_("terminals"))), + "printers"=> array( + "T" => msgPool::selectToView(_("printer")), + "C" => (isset($ogfilter['printers']) && ($ogfilter['printers'])), + "L" => sprintf(_("Show %s"),_("printers"))), + "phones"=> array( + "T" => msgPool::selectToView(_("phones")), + "C" => (isset($ogfilter['phones']) && ($ogfilter['phones'])), + "L" => sprintf(_("Show %s"),_("phones")))); + $smarty->assign("checkboxes",$ar); $display= $smarty->fetch (get_template_path('ogroup_objects.tpl', TRUE, dirname(__FILE__))); return ($display); } diff --git a/gosa-core/plugins/admin/ogroups/ogroup_objects.tpl b/gosa-core/plugins/admin/ogroups/ogroup_objects.tpl index ec22f87b8..1625b3e32 100644 --- a/gosa-core/plugins/admin/ogroups/ogroup_objects.tpl +++ b/gosa-core/plugins/admin/ogroups/ogroup_objects.tpl @@ -23,17 +23,12 @@ {$alphabet}
-

- {t}Show departments{/t}
- {t}Show people{/t}
- {t}Show groups{/t}
- {t}Show applications{/t}
- {t}Show servers{/t}
- {t}Show workstations{/t}
- {t}Show terminals{/t}
- {t}Show printers{/t}
- {t}Show phones{/t}
-

+

+ {foreach from=$checkboxes item=item key=key} + {$item.L}
+ {/foreach} +

{t}Search in subtrees{/t}