Code

Updated goto plugin
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 23 Jul 2008 08:36:41 +0000 (08:36 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 23 Jul 2008 08:36:41 +0000 (08:36 +0000)
-Added images for applications and devices

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11767 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/applications/class_applicationManagement.inc
gosa-plugins/goto/admin/applications/main.inc
gosa-plugins/goto/admin/devices/class_deviceManagement.inc
gosa-plugins/goto/admin/devices/main.inc
gosa-plugins/goto/html/images/application.png [new file with mode: 0644]
gosa-plugins/goto/html/images/devices.png [new file with mode: 0644]

index b7f040d78140994b03cd53f7541808e73f6608f2..1790fe29d9ecdd2ba0409e2b43d9eabd12231691 100644 (file)
@@ -23,6 +23,7 @@ class applicationManagement extends plugin
   /* Definitions */
   var $plHeadline     = "Applications";
   var $plDescription  = "This does something";
+  var $plIcon         = "plugins/goto/images/application.png";
 
   /* Dialog attributes */
   var $apptabs                  = NULL;
index 8167bd8fdee5f56feb63094fc0707759446ba56b..e48883babd700320ed2e688642eacf5f78f62637 100644 (file)
@@ -35,9 +35,9 @@ if ($remove_lock){
 
        /* Page header*/
        if (session::is_set('objectinfo')){
-               $display= print_header(get_template_path('images/application.png'), _("Application management"), "<img alt=\"\" align=\"middle\" src=\"".get_template_path('images/lists/locked.png')."\"> ".@LDAP::fix(session::get('objectinfo')));
+               $display= print_header(get_template_path($applicationManagement->plIcon), _("Application management"), "<img alt=\"\" align=\"middle\" src=\"".get_template_path('images/lists/locked.png')."\"> ".@LDAP::fix(session::get('objectinfo')));
        } else {
-               $display= print_header(get_template_path('images/application.png'), _("Application management"));
+               $display= print_header(get_template_path($applicationManagement->plIcon), _("Application management"));
        }
 
        /* Reset requested? */
index 7b3f750f66d8280fd19d17f332e75cfd202efd1d..3b1c6375446b5985662ecda69746389e1ffeacc5 100644 (file)
@@ -6,6 +6,7 @@ class deviceManagement extends plugin
   /* Definitions */
   var $plHeadline     = "Hotplug devices";
   var $plDescription  = "Manage hotplug devices";
+  var $plIcon         = "plugins/goto/images/devices.png";
 
   /* Dialog attributes */
   var $ui                             = NULL;
index 549a6b3cc7cde18ea2d7a8f633f4121cdf220029..4dc8c7dee867f54ddc6f327f6f8d81ea90865379 100644 (file)
@@ -38,9 +38,9 @@ if ($remove_lock){
 
   /* Page header*/
   if (session::is_set('objectinfo')){
-    $display= print_header(get_template_path('images/devices.png'), _("Hotplug device management"), "<img alt=\"\" align=\"middle\" src=\"".get_template_path('images/lists/locked.png')."\"> ".@LDAP::fix(session::get('objectinfo')));
+    $display= print_header(get_template_path($DeviceManagement->plIcon), _("Hotplug device management"), "<img alt=\"\" align=\"middle\" src=\"".get_template_path('images/lists/locked.png')."\"> ".@LDAP::fix(session::get('objectinfo')));
   } else {
-    $display= print_header(get_template_path('images/devices.png'), _("Hotplug device management"));
+    $display= print_header(get_template_path($DeviceManagement->plIcon), _("Hotplug device management"));
   }
 
   /* Reset requested? */
diff --git a/gosa-plugins/goto/html/images/application.png b/gosa-plugins/goto/html/images/application.png
new file mode 100644 (file)
index 0000000..671fc7d
Binary files /dev/null and b/gosa-plugins/goto/html/images/application.png differ
diff --git a/gosa-plugins/goto/html/images/devices.png b/gosa-plugins/goto/html/images/devices.png
new file mode 100644 (file)
index 0000000..b4bfa28
Binary files /dev/null and b/gosa-plugins/goto/html/images/devices.png differ