list_zones.php
changeset 36 4ec5ab29f634
parent 34 a2826b0ebcff
child 37 b785e54690ce
equal deleted inserted replaced
35:5533c4fff98f 36:4ec5ab29f634
    55 	{
    55 	{
    56 		?>
    56 		?>
    57 		
    57 		
    58     <tr>
    58     <tr>
    59 <?
    59 <?
    60 if (level(5))
    60 		if (level(5))
    61 {
    61 		{
    62 ?>
    62 ?>
    63      <td>
    63      <td>
    64       <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>
    64       <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>
    65       <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>
    65       <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>
    66      </td>
    66      </td>
    67 <?
    67 <?
    68 }
    68 		}
    69 else
    69 		else
    70 {
    70 		{
    71 ?>
    71 ?>
    72      <td class="n">
    72      <td class="n">
    73       &nbsp;
    73       &nbsp;
    74      </td>
    74      </td>
    75 <?
    75 <?
    76 }
    76 		}
    77 ?>
    77 ?>
    78      <td class="y"><? echo $c["name"] ?></td>
    78      <td class="y"><? echo $c["name"] ?></td>
    79      <td class="y"><? echo strtolower(get_domain_type($c["id"])) ?></td>
    79      <td class="y"><? echo strtolower(get_domain_type($c["id"])) ?></td>
    80      <td class="y"><? echo $c["numrec"] ?></td>
    80      <td class="y"><? echo $c["numrec"] ?></td>
    81      <td class="y"><? echo get_owners_from_domainid($c["id"]) ?></td>
    81 
    82     </tr><?
    82 <?
    83 		print "\n";
    83 		$zone_owners = get_owners_from_domainid($c["id"]);
       
    84 		if ($zone_owners == "")
       
    85 		{
       
    86 			echo "<td class=\"n\"></td>";
       
    87 		}
       
    88 		else
       
    89 		{
       
    90 			print "<td class=\"y\">".$zone_owners."</td>";
       
    91 		}
       
    92 		print "<tr>\n";
    84 	}
    93 	}
    85 }
    94 }
    86 
    95 
    87 ?>
    96 ?>
    88    </table>
    97    </table>