Code

Included patch from Mathieu Parent to display more information in DHCP service declar...
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 9 Nov 2009 14:38:41 +0000 (14:38 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 9 Nov 2009 14:38:41 +0000 (14:38 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14804 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/dhcp/admin/systems/services/dhcp/class_servDHCP.inc

index 9d7fa002156a91d41d51040051b1ffb498a1a5a2..8fd87ac96202ba5c924168b36cfc9aeda1310741 100644 (file)
@@ -351,21 +351,29 @@ class servdhcp extends goService
    
       $values = "<a href='?plug=".$_GET['plug']."&act=edit&id=".$id."'>".$values."</a>";
        
-      if (count($tmp->sectionMap[$this->objectType($section)])){
-        if ($this->objectType($section) == "dhcpService"){
+      $objtype = $this->objectType($section);
+      $dhcpObject = new $objtype($this,$this->dhcpObjectCache[$section]);
+      if (count($tmp->sectionMap[$objtype])){
+        if ($objtype == "dhcpService"){
           $DhcpList->AddEntry(array(
               array("string" => $values),
+              array("string" => ''),
+              array("string" => ''),
               array("string" => str_replace("%s",$id,$editImgInsNoDel), "attach" => "style='text-align:right;'")
               ));
         } else {
           $DhcpList->AddEntry(array(
               array("string" => $values),
+              array("string" => $dhcpObject->options->get('routers')),
+              array("string" => ''),
               array("string" => str_replace("%s",$id,$editImgIns), "attach" => "style='text-align:right;'")
               ));
         }
       } else {
         $DhcpList->AddEntry(array(
               array("string" => $values),
+              array("string" => $dhcpObject->statements->get('fixed-address')),
+              array("string" =>  preg_replace('/^[^ ]+ /', '', $dhcpObject->dhcpHWAddress)),
               array("string" => str_replace("%s",$id,$editImg), "attach" => "style='text-align:right;'")
               ));
       }