list_zones.php
changeset 136 c795dd75a77e
parent 130 0206bf615244
child 143 bef105ffb017
equal deleted inserted replaced
135:3673b1c9246c 136:c795dd75a77e
    37 
    37 
    38 echo "    <h2>" . _('List zones') . "</h2>\n";
    38 echo "    <h2>" . _('List zones') . "</h2>\n";
    39 
    39 
    40 if ($perm_view == "none") { 
    40 if ($perm_view == "none") { 
    41 	echo "     <p>" . _('You do not have the permission to see any zones.') . "</p>\n";
    41 	echo "     <p>" . _('You do not have the permission to see any zones.') . "</p>\n";
    42 } elseif ($count_zones_view > ROWAMOUNT && $count_zones_all_letterstart == "0") {
    42 } elseif ($count_zones_view > $iface_rowamount && $count_zones_all_letterstart == "0") {
    43 	echo "     <p>" . _('There are no zones to show in this listing.') . "</p>\n";
    43 	echo "     <p>" . _('There are no zones to show in this listing.') . "</p>\n";
    44 } else {
    44 } else {
    45 	echo "     <div class=\"showmax\">\n";
    45 	echo "     <div class=\"showmax\">\n";
    46 	show_pages($count_zones_all_letterstart,ROWAMOUNT);
    46 	show_pages($count_zones_all_letterstart,$iface_rowamount);
    47 	echo "     </div>\n";
    47 	echo "     </div>\n";
    48 
    48 
    49 	if ($count_zones_view > ROWAMOUNT) {
    49 	if ($count_zones_view > $iface_rowamount) {
    50 		echo "<div class=\"showmax\">";
    50 		echo "<div class=\"showmax\">";
    51 		show_letters(LETTERSTART);
    51 		show_letters(LETTERSTART);
    52 		echo "</div>";
    52 		echo "</div>";
    53 	}
    53 	}
    54 	echo "     <table>\n";
    54 	echo "     <table>\n";
    59 	echo "       <th>" . _('Records') . "</th>\n";
    59 	echo "       <th>" . _('Records') . "</th>\n";
    60 	echo "       <th>" . _('Owner') . "</th>\n";
    60 	echo "       <th>" . _('Owner') . "</th>\n";
    61 	echo "      </tr>\n";
    61 	echo "      </tr>\n";
    62 	echo "      <tr>\n";
    62 	echo "      <tr>\n";
    63 
    63 
    64 	if ($count_zones_view <= ROWAMOUNT) {
    64 	if ($count_zones_view <= $iface_rowamount) {
    65 		$zones = get_zones($perm_view,$_SESSION['userid'],"all",ROWSTART,ROWAMOUNT);
    65 		$zones = get_zones($perm_view,$_SESSION['userid'],"all",ROWSTART,$iface_rowamount);
    66 	} else {
    66 	} else {
    67 		$zones = get_zones($perm_view,$_SESSION['userid'],LETTERSTART,ROWSTART,ROWAMOUNT);
    67 		$zones = get_zones($perm_view,$_SESSION['userid'],LETTERSTART,ROWSTART,$iface_rowamount);
    68 		$count_zones_shown = ($zones == -1) ? 0 : count($zones);
    68 		$count_zones_shown = ($zones == -1) ? 0 : count($zones);
    69 	}
    69 	}
    70 	foreach ($zones as $zone)
    70 	foreach ($zones as $zone)
    71 	{
    71 	{
    72 		$zone_owners = get_fullnames_owners_from_domainid($zone["id"]);
    72 		$zone_owners = get_fullnames_owners_from_domainid($zone["id"]);