Code

Fixed fonreports
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 17 May 2006 06:17:46 +0000 (06:17 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 17 May 2006 06:17:46 +0000 (06:17 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3375 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/gofon/fonreports/main.inc

index 329fc1526b9f8cc185815e720cb8f062b50eba45..314b64313e879cc86da4cc29e65f7fe2976657fe 100644 (file)
@@ -1,9 +1,6 @@
 <?php
 
 if (!$remove_lock){
-       /* Page header*/
-       $display= print_header(get_template_path('images/phonereport.png'), _("Phone reports"));
-
        /* Create fonreport object on demand */
        if (!isset($_SESSION['fonreport']) || (isset($_GET['reset']) && $_GET['reset'] == 1)){
                $_SESSION['fonreport']= new fonreport ($config, $ui);
@@ -16,9 +13,12 @@ if (!$remove_lock){
 
 
        /* Execute formular */
-       $display.= $fonreport->execute ();
+       $display= $fonreport->execute ();
        $display.= "<input type=\"hidden\" name=\"ignore\">\n";
 
+       /* Page header*/
+       $display= print_header(get_template_path('images/phonereport.png'), _("Phone reports").$display);
+
        /* Store changes  in session */
        $_SESSION['fonreport']= $fonreport;
 }