From 8b044fd2a35bbccc904ca7dbeb37d3cc86de4d94 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 19 Dec 2005 13:19:11 +0000 Subject: [PATCH] Added invetory git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2342 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_inventory.inc | 67 +++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 plugins/admin/systems/class_inventory.inc diff --git a/plugins/admin/systems/class_inventory.inc b/plugins/admin/systems/class_inventory.inc new file mode 100644 index 000000000..be90e46e1 --- /dev/null +++ b/plugins/admin/systems/class_inventory.inc @@ -0,0 +1,67 @@ + "Eins ist toll", "zwei" => "Zwei ist noch besser"); + + /* attribute list for save action */ + var $ignore_account= TRUE; + var $attributes= array(); + var $objectclasses= array("whatever"); + + function inventory ($config, $dn= NULL) + { + plugin::plugin ($config, $dn); + } + + function execute() + { + /* Call parent execute */ + plugin::execute(); + + /* Fill templating stuff */ + $smarty= get_smarty(); + $display= ""; + + /* Do we need to flip is_account state? */ + if (isset($_POST['modify_state'])){ + $this->is_account= !$this->is_account; + } + + /* Show tab dialog headers */ + if ($this->is_account){ + $display= $this->show_header(_("Remove DNS service"), + _("This server has DNS features enabled. You can disable them by clicking below.")); + } else { + $display= $this->show_header(_("Add DNS service"), + _("This server has DNS features disabled. You can enable them by clicking below.")); + return ($display); + } + + $display.= $smarty->fetch(get_template_path('servdns.tpl', TRUE)); + return($display); + } + + function remove_from_parent() + { + } + + function save_object() + { + } + + function check() + { + } + + function save() + { + } + +} + +// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: +?> -- 2.30.2