Code

Fixed layout
[gosa.git] / plugins / admin / systems / class_inventory.inc
1 <?php
3 class inventory extends plugin
4 {
5   /* CLI vars */
6   var $cli_summary= "Manage server basic objects";
7   var $cli_description= "Some longer text\nfor help";
8   var $cli_parameters= array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser");
10   /* attribute list for save action */
11   var $ignore_account= TRUE;
12   var $attributes= array();
13   var $objectclasses= array("whatever");
15   function inventory ($config, $dn= NULL)
16   {
17     plugin::plugin ($config, $dn);
18   }
20   function execute()
21   {
22         /* Call parent execute */
23         plugin::execute();
25     /* Fill templating stuff */
26     $smarty= get_smarty();
27     $display= "";
29     /* Do we need to flip is_account state? */
30     if (isset($_POST['modify_state'])){
31       $this->is_account= !$this->is_account;
32     }
34     /* Show tab dialog headers */
35     if ($this->is_account){
36       $display= $this->show_header(_("Remove DNS service"),
37           _("This server has DNS features enabled. You can disable them by clicking below."));
38     } else {
39       $display= $this->show_header(_("Add DNS service"),
40           _("This server has DNS features disabled. You can enable them by clicking below."));
41       return ($display);
42     }
44     $display.= $smarty->fetch(get_template_path('servdns.tpl', TRUE));
45     return($display);
46   }
48   function remove_from_parent()
49   {
50   }
52   function save_object()
53   {
54   }
56   function check()
57   {
58   }
60   function save()
61   {
62   }
64 }
66 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
67 ?>