Code

Should run, now. (Systems->services)
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 13 May 2005 13:12:44 +0000 (13:12 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 13 May 2005 13:12:44 +0000 (13:12 +0000)
But there seem to be something ...
The Checkbox for Temporäry disable ... is checked everytime ?

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

plugins/admin/systems/class_servService.inc
plugins/admin/systems/servservice.tpl

index 6cace375b388c0cb07d80cf4c2bfc94bef5ffedb..9403f1d9f84dcfaad443fba5e99f4e6e19f2dde2 100644 (file)
@@ -151,6 +151,10 @@ class servservice extends plugin
       }
     }
 
+
+  if(isset($this->attrs['goXdmcpIsEnabled'])&&($this->attrs['goXdmcpIsEnabled']))
+    $smarty->assign("goXdmcpIsEnabled","checked");
+
   return($smarty->fetch (get_template_path('servservice.tpl', TRUE)));
   }
 
@@ -228,8 +232,6 @@ class servservice extends plugin
       }
     }
       
-    print_a($this->attrs);
-    
     /* Write to LDAP */
     $ldap= $this->config->get_ldap_link();
     $ldap->cd($this->dn);
index 0ae82f7342de9cfbac6747f82c3f81e1a164aa8f..a4e8dc181fa87c80d7eaedf49c701834bfbf2abd 100644 (file)
@@ -58,7 +58,7 @@
 
      <b>{t}LDAP Service{/t}</b>
 
-               <input type="text" name="goLdapBase" {$goLdapServerState} id="goLdapBaseId">
+               <input type="text"      value="{$goLdapBase}"         name="goLdapBase" {$goLdapServerState} id="goLdapBaseId">
 
        <p class="seperator">&nbsp;</p>
     <br>
   <table>
        <tr>
         <td colspan=2>
-         <input type="checkbox"  value="1" name="goXdmcpIsEnabled" {$goTerminalServerState} id="Temporariid"> {t}Temporary disable login{/t}</td>
+         <input type="checkbox"  value="1" name="goXdmcpIsEnabled" {$goXdmcpIsEnabled}  {$goTerminalServerState} id="Temporariid"> {t}Temporary disable login{/t}</td>
     </tr>
     <tr>
         <td>{t}Font path{/t}</td>
-        <td><input type="text" name="goFontPath" {$goTerminalServerState} id="FontPathId"></td>
+        <td> <input type="text"      value="{$goFontPath}"         name="goFontPath" {$goTerminalServerState} id="FontPathId"></td>
        </tr>
    </table>