Code

Added ability for server->db tabs to store glpi informations
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 22 Dec 2005 10:05:23 +0000 (10:05 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 22 Dec 2005 10:05:23 +0000 (10:05 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2375 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servDB.inc
plugins/admin/systems/servdb.tpl

index 1d1ead982a070daf03d0375288d04869d6ae0208..58b26e7663f4159e4fd49fd2350da308bcde0766 100644 (file)
@@ -33,7 +33,7 @@ class servdb extends plugin
                          "goImapSieveServer", "goImapSievePort", "goKrbRealm", 
                          "goKrbAdmin", "goKrbPassword", "goFaxAdmin", "goFaxPassword",
                          "goLogAdmin", "goLogPassword", "goFonAdmin", "goFonPassword",
-                         "goFonAreaCode", "goFonCountryCode");
+                         "goFonAreaCode", "goFonCountryCode","goGlpiAdmin","goGlpiDatabase","goGlpiPassword");
   var $objectclasses= array("top", "goServer");
   var $additionaloc= array("goImapServer" => array("goImapName", "goImapConnect",
                                                 "goImapAdmin", "goImapPassword",
@@ -43,6 +43,7 @@ class servdb extends plugin
                                                 "goKrbPassword"),
                           "goFaxServer" => array("goFaxAdmin", "goFaxPassword"),
                           "goLogDBServer" => array("goLogAdmin", "goLogPassword"),
+                          "goGlpiServer" => array("goGlpiAdmin","goGlpiDatabase","goGlpiPassword"),
                           "goFonServer" => array("goFonAdmin", "goFonPassword",
                                                 "goFonAreaCode", "goFonCountryCode"));
 
index d978755285eee4a73028ace0c4f881a644d3cf6b..a2a4ec5d4a58a285860e35cc688d6a6afe39f62c 100644 (file)
@@ -112,6 +112,30 @@ value="{$goLogPassword}" {$goLogDBServerState}></td>
        </tr>
    </table>
   
+   <p class="seperator">&nbsp;</p>
+   <br>
+
+
+   <input type=checkbox name="goGlpiServer" value="1" {$goGlpiServer} {$goGlpiServerACL} onclick="changeState('goGlpiAdmin');changeState('goGlpiPassword');changeState('goGlpiDatabase');"> <b>{t}Glpi database{/t}</b>
+  
+   <table summary="">
+    <tr>
+        <td>{t}Logging DB user{/t}</td>
+        <td><input name="goGlpiAdmin" id="goGlpiAdmin" size=30 maxlength=60 {$goGlpiAdminACL}
+value="{$goGlpiAdmin}" {$goGlpiServerState}></td>
+       </tr>
+    <tr>
+        <td>{t}Password{/t}</td>
+        <td><input type="password" name="goGlpiPassword" id="goGlpiPassword" size=30 maxlength=60 {$goGlpiPasswordACL}
+value="{$goGlpiPassword}" {$goGlpiServerState}></td>
+       </tr>
+    <tr>
+        <td>{t}Database{/t}</td>
+        <td><input name="goGlpiDatabase" id="goGlpiDatabase" size=30 maxlength=60 {$goGlpiDatabaseACL}
+value="{$goGlpiDatabase}" {$goGlpiServerState}></td>
+       </tr>
+   </table>
+  
   </td>
   
  </tr>