Code

Added RDN support for users
[gosa.git] / plugins / admin / systems / class_inventory.inc
1 <?php
3 class inventory extends plugin
4 {
6   /* attribute list for save action */
7   var $ignore_account= TRUE;
8   var $attributes= array();
9   var $objectclasses= array("whatever");
11   function inventory ($config, $dn= NULL, $parent= NULL)
12   {
13     plugin::plugin ($config, $dn, $parent);
14   }
16   function execute()
17   {
18         /* Call parent execute */
19         plugin::execute();
21     /* Fill templating stuff */
22     $smarty= get_smarty();
23     $display= "";
25     /* Do we need to flip is_account state? */
26     if (isset($_POST['modify_state'])){
27       $this->is_account= !$this->is_account;
28     }
30     /* Show tab dialog headers */
31     if ($this->is_account){
32       $display= $this->show_header(_("Remove DNS service"),
33           _("This server has DNS features enabled. You can disable them by clicking below."));
34     } else {
35       $display= $this->show_header(_("Add DNS service"),
36           _("This server has DNS features disabled. You can enable them by clicking below."));
37       return ($display);
38     }
40     $display.= $smarty->fetch(get_template_path('servdns.tpl', TRUE));
41     return($display);
42   }
44   function remove_from_parent()
45   {
46   }
48   function save_object()
49   {
50   }
52   function check()
53   {
54   }
56   function save()
57   {
58   }
60 }
62 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
63 ?>