Code

génération fichier xls
authorguiguidoc <guiguidoc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 19 Oct 2005 12:08:02 +0000 (12:08 +0000)
committerguiguidoc <guiguidoc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 19 Oct 2005 12:08:02 +0000 (12:08 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1620 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/addons/xls/classe_xls.inc [new file with mode: 0644]
plugins/addons/xls/main.inc [new file with mode: 0644]

diff --git a/plugins/addons/xls/classe_xls.inc b/plugins/addons/xls/classe_xls.inc
new file mode 100644 (file)
index 0000000..7817424
--- /dev/null
@@ -0,0 +1,32 @@
+<?php
+
+class xls extends plugin
+{
+  /* Definitions */
+  var $plHeadline= "xls";
+  var $plDescription= "This does something";
+
+   function xls ($config, $dn= NULL)
+  {
+       /* Include config object */
+       $this->config= $config;
+
+       print $dn;
+
+       #FIXME: ACL is set to default for testing
+       $this->acl= "#all#";
+
+        /* Get global filter config */
+        if (!is_global("phonefilter")){
+               $ui= get_userinfo();
+                $base= get_base_from_people($ui->dn);
+                $phonefilter= array("search_base" => $base,
+                                 "organizational" => "checked",
+                                 "global" => "checked",
+                                  "search_for" => "*",
+                                 "object_type" => "*");
+                register_global("phonefilter", $phonefilter);
+        }
+  }
+}
+?>
\ No newline at end of file
diff --git a/plugins/addons/xls/main.inc b/plugins/addons/xls/main.inc
new file mode 100644 (file)
index 0000000..a0af410
--- /dev/null
@@ -0,0 +1,8 @@
+<?php
+if (!$remove_lock){
+       /* Page header*/
+       $display= print_header(get_template_path('images/addressbook.png'), _("Address book"));
+
+       
+}
+?>