Code

Added empty package configuration dialog
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 7 Oct 2005 10:49:55 +0000 (10:49 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 7 Oct 2005 10:49:55 +0000 (10:49 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1535 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiPackageConfiguration.inc [new file with mode: 0644]
plugins/admin/fai/faiPackageConfiguration.tpl [new file with mode: 0644]

diff --git a/plugins/admin/fai/class_faiPackageConfiguration.inc b/plugins/admin/fai/class_faiPackageConfiguration.inc
new file mode 100644 (file)
index 0000000..a0263d5
--- /dev/null
@@ -0,0 +1,49 @@
+<?php
+
+class faiPackageConfiguration extends plugin
+{
+  /* CLI vars */
+  var $cli_summary        = "Manage server basic objects";
+  var $cli_description    = "Some longer text\nfor help";
+  var $cli_parameters     = array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser");
+
+  /* attribute list for save action */
+  var $ignore_account = TRUE;
+  var $attributes     = array();
+  var $objectclasses  = array();
+
+  var $obj;
+
+  function faiPackageConfiguration ($config, $dn= NULL,$obj)
+  {
+    plugin::plugin ($config, $dn);
+    $this->obj = $obj;
+  }
+
+  function execute()
+  {
+    /* Fill templating stuff */
+    $smarty     = get_smarty();
+    $display = "";
+    $display.= $smarty->fetch(get_template_path('faiPackageConfiguration.tpl', TRUE));
+    return($display);
+  }
+
+  /* Save data to object */
+  function save_object()
+  {
+  }
+
+  /* Check supplied data */
+  function check()
+  {
+    $message= array();
+    return ($message);
+  }
+
+  function save()
+  {
+  }
+}
+// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
+?>
diff --git a/plugins/admin/fai/faiPackageConfiguration.tpl b/plugins/admin/fai/faiPackageConfiguration.tpl
new file mode 100644 (file)
index 0000000..4d0de8e
--- /dev/null
@@ -0,0 +1,8 @@
+<h2><img alt="" src="images/house.png" align="middle" title="{t}Generic{/t}">&nbsp;{t}Generic{/t}</h2>
+
+<div align="right" style="align:right;">
+    <input name="SaveObjectConfig" value="Use" type="submit">
+    <input name="CancelObjectConfig" value="Cancel" type="submit">
+</div>
+<input type="hidden" name="ignore">
+