list_zones.php
changeset 36 4ec5ab29f634
parent 34 a2826b0ebcff
child 37 b785e54690ce
--- a/list_zones.php	Thu Jun 28 09:19:48 2007 +0000
+++ b/list_zones.php	Mon Jul 02 23:01:18 2007 +0000
@@ -57,30 +57,39 @@
 		
     <tr>
 <?
-if (level(5))
-{
+		if (level(5))
+		{
 ?>
      <td>
       <a href="edit.php?id=<? echo $c["id"] ?>"><img src="images/edit.gif" title="<? echo _('Edit zone') . " " . $c['name']; ?>" alt="[ <? echo _('Edit zone') . " " . $c['name']; ?> ]"></a>
       <a href="delete_domain.php?id=<? echo $c["id"] ?>"><img src="images/delete.gif" title="<? print _('Delete zone') . " " . $c['name']; ?>" alt="[<? echo _('Delete zone') . " " . $c['name']; ?>]"></a>
      </td>
 <?
-}
-else
-{
+		}
+		else
+		{
 ?>
      <td class="n">
       &nbsp;
      </td>
 <?
-}
+		}
 ?>
      <td class="y"><? echo $c["name"] ?></td>
      <td class="y"><? echo strtolower(get_domain_type($c["id"])) ?></td>
      <td class="y"><? echo $c["numrec"] ?></td>
-     <td class="y"><? echo get_owners_from_domainid($c["id"]) ?></td>
-    </tr><?
-		print "\n";
+
+<?
+		$zone_owners = get_owners_from_domainid($c["id"]);
+		if ($zone_owners == "")
+		{
+			echo "<td class=\"n\"></td>";
+		}
+		else
+		{
+			print "<td class=\"y\">".$zone_owners."</td>";
+		}
+		print "<tr>\n";
 	}
 }