Code

Fixed printf , parameter was missing,
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 12 May 2006 06:00:06 +0000 (06:00 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 12 May 2006 06:00:06 +0000 (06:00 +0000)
added styles

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

include/class_plugin.inc
plugins/admin/departments/class_departmentGeneric.inc

index 7a24d0e8c1c335a28372e2ffa002dc7a9a4c9bae..1a74a753832aabdceaf067953219c2b39c251628 100644 (file)
@@ -906,14 +906,14 @@ class plugin
       $attrs= $ldap->fetch();
       if(isset($attrs['gosaUnitTag'][0]) && $attrs['gosaUnitTag'][0] == $tag){
         if ($show) {
-          echo sprintf(_("Processing: Object '%s' is already tagged"), $dn);
+          echo sprintf(_("Processing: Object '%s' is already tagged"), $dn)."<br>";
           flush();
         }
         return;
       }
       if (count($attrs)){
         if ($show){
-          echo sprintf(_("Processing: Adding tag (%s) to object '%s'"), $dn);
+          echo sprintf(_("Processing: Adding tag (%s) to object '%s'"), $tag,$dn)."<br>";
           flush();
         }
         $nattrs= array("gosaUnitTag" => $this->gosaUnitTag);
@@ -942,7 +942,7 @@ class plugin
       }
       if (count($attrs)){
         if ($show){
-          echo sprintf(_("Processing: Removing tag from object '%s'"), $dn);
+          echo sprintf(_("Processing: Removing tag from object '%s'"), $dn)."<br>";
           flush();
         }
         $nattrs= array("gosaUnitTag" => array());
index 53afc78d764a2522553ad083b63b4cf79b46d4e5..1f788f1955839ed18b32d2e82350dd2fd0f6ac04 100644 (file)
@@ -360,6 +360,13 @@ class department extends plugin
        /* Tag objects to have the gosaAdministrativeUnitTag */
        function tag_objects($OnlySetTagFlag = false)
        {
+    if(!$OnlySetTagFlag){
+      $smarty= get_smarty();
+      echo "<!-- headers.tpl-->".$smarty->fetch(get_template_path('headers.tpl'));
+      echo "<body style='background-image:none;margin:3px;color:black'>";
+      echo "<h3>".sprintf(_("Tagging '%s'."),"<i>".$this->dn."</i>")."</h3>";
+    }
+
                $add= $this->is_administrational_unit;
                $len= strlen($this->dn);
                $ldap= $this->config->get_ldap_link();