Code

Fixed problem with phone accounts
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Aug 2005 20:41:51 +0000 (20:41 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Aug 2005 20:41:51 +0000 (20:41 +0000)
Fixed layout of headpage

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

plugins/admin/users/class_userManagement.inc
plugins/admin/users/headpage.tpl

index ec1d42213d0086d2d2740b5e22acc5278c92555c..ea7cbd243bf518f051c71ec96bd0e3cfde8f9f47 100644 (file)
@@ -698,13 +698,15 @@ class userManagement extends plugin
     $users= array();
     
     // Get Configuration
-    $a_SETUP        = $_SESSION['config']->data['SERVERS']['FON'];
-    // Connect to DB server
-    $r_con =  @mysql_connect($a_SETUP['SERVER'],$a_SETUP['LOGIN'],$a_SETUP['PASSWORD']);
-    // Check if we are  connected correctly
     $r_db=false;
-    if($r_con){
-    $r_db  =  @mysql_select_db($a_SETUP['DB'],$r_con);
+    if (isset($_SESSION['config']->data['SERVERS']['FON'])){
+      $a_SETUP= $_SESSION['config']->data['SERVERS']['FON'];
+      // Connect to DB server
+      $r_con= @mysql_connect($a_SETUP['SERVER'],$a_SETUP['LOGIN'],$a_SETUP['PASSWORD']);
+      // Check if we are  connected correctly
+      if($r_con){
+        $r_db  =  @mysql_select_db($a_SETUP['DB'],$r_con);
+      }
     }
 
     // Test Every Entry and generate divlist Array  
index 22304bac080fea28653fb7523aad2377c8963da7..12ee7a617d57da1b92f05a3f13cb8cbaafede4f0 100644 (file)
@@ -45,8 +45,8 @@
             </td>
         </tr>
     </table>
-    <table summary="" width="100%" style="border-top:1px solid #B0B0B0;"><tr><td><img alt="Search" src="{$search_image}" align="middle" title="{t}Display users matching{/t}"></td>
-    <td><LABEL for='filter'>{t}Display users matching{/t}</LABEL></td><td><input id='filter' style='width:99%' type='text' name='regexit' maxlength='20' value='{$regex}' title='{t}Regular expression for matching user names{/t}' onChange="mainform.submit()"></td></tr></table>
+    <table summary="" width="100%" style="border-top:1px solid #B0B0B0;"><tr><td><LABEL for='filter'><img alt="Search" src="{$search_image}" align="middle" title="{t}Display users matching{/t}"></LABEL></td>
+    <td width="99%"><input id='filter' style='width:99%' type='text' name='regexit' maxlength='20' value='{$regex}' title='{t}Regular expression for matching user names{/t}' onChange="mainform.submit()"></td></tr></table>
    {$apply}
    </div>
   </td>