list_zones.php
changeset 29 e1c60f72d494
parent 26 5d63f1e71d6e
child 34 a2826b0ebcff
equal deleted inserted replaced
28:a73ac0ba0401 29:e1c60f72d494
     1 <?php
     1 <?php
     2 require_once("inc/i18n.inc.php");
     2 require_once("inc/i18n.inc.php");
     3 require_once("inc/toolkit.inc.php");
     3 require_once("inc/toolkit.inc.php");
     4 include_once("inc/header.inc.php");
     4 include_once("inc/header.inc.php");
     5 
     5 
     6 $all_doms = get_domains(0);
     6 $num_all_domains = zone_count(0);
     7 $num_all_domains = ($all_doms == -1) ? 0 : count($all_doms);
     7 $doms = zone_count(0, LETTERSTART);
     8 $doms = get_domains(0,LETTERSTART);
       
     9 ?>
     8 ?>
    10    <h2><? echo _('List zones'); ?></h2>
     9    <h2><? echo _('List zones'); ?></h2>
    11 <?
    10 <?
    12 	echo "<div class=\"showmax\">";
    11         echo "<div class=\"showmax\">";
    13 	show_pages(count($doms),ROWAMOUNT);
    12         show_pages($doms,ROWAMOUNT);
    14 	echo "</div>";
    13         echo "</div>";
    15 
    14 
    16 if ($num_all_domains > ROWAMOUNT) 
    15 if ($num_all_domains > ROWAMOUNT)
    17 {
    16 {
    18 	echo "<div class=\"showmax\">";
    17         echo "<div class=\"showmax\">";
    19 	show_letters(LETTERSTART,$all_doms);
    18         show_letters(LETTERSTART);
    20 	echo "</div>";
    19         echo "</div>";
    21 }
    20 }
    22 ?>
    21 ?>
    23    <table>
    22    <table>
    24     <tr>
    23     <tr>
    25      <th>&nbsp;</th>
    24      <th>&nbsp;</th>