From 5017e1b9a31c5058c3967dfb351219e4afd5e1aa Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 4 Jan 2006 13:53:52 +0000 Subject: [PATCH] Update for glpi stuff git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2406 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_glpiAccount.inc | 37 +++++++++++++++++++ .../admin/systems/class_glpiManufacturer.inc | 1 + plugins/admin/systems/glpi.tpl | 4 +- 3 files changed, 41 insertions(+), 1 deletion(-) diff --git a/plugins/admin/systems/class_glpiAccount.inc b/plugins/admin/systems/class_glpiAccount.inc index 6d7813e8c..71306352c 100644 --- a/plugins/admin/systems/class_glpiAccount.inc +++ b/plugins/admin/systems/class_glpiAccount.inc @@ -159,6 +159,43 @@ class glpiAccount extends plugin $this->cur_dialog = new glpiDeviceManagement($this->config,$this->dn,$this->usedDevices); } + + + + /* Attachment pool was closed with use + */ + if(isset($_POST['UseAttachment'])){ + if(count($this->cur_dialog->check())){ + foreach($this->cur_dialog->check() as $msg){ + print_red($msg); + } + }else{ + /****/ + echo "blabla attaching something ..... "; + + } + } + + /* Attachment pool was closed with abort + */ + if(isset($_POST['AbortAttachment'])){ + $this->cur_dialog = false; + $this->edit_type = false; + } + + /* Open Attachment pool to add/edit Attachments + */ + if(isset($_POST['AddAttachment'])){ + $this->cur_dialog = new glpiAttachmentPool($this->config,$this->dn); + $this->dialog = true; + } + + /* Remove Attachment fro this tab + */ + if(isset($_POST['RemoveAttachment'])){ + + } + /* We have selected some devices and pressed use button */ if(isset($_POST['SelectDeviceSave'])){ diff --git a/plugins/admin/systems/class_glpiManufacturer.inc b/plugins/admin/systems/class_glpiManufacturer.inc index a29a601c7..eaaaaa941 100644 --- a/plugins/admin/systems/class_glpiManufacturer.inc +++ b/plugins/admin/systems/class_glpiManufacturer.inc @@ -36,6 +36,7 @@ class glpiManufacturer extends plugin function execute() { + plugin::execute(); $smarty = get_smarty(); $display = ""; diff --git a/plugins/admin/systems/glpi.tpl b/plugins/admin/systems/glpi.tpl index 08e43a690..cf2b27221 100644 --- a/plugins/admin/systems/glpi.tpl +++ b/plugins/admin/systems/glpi.tpl @@ -91,7 +91,9 @@ - + test + + -- 2.30.2