list_zones.php
changeset 171 2a10febd6af9
parent 163 32d4c63c50c9
child 191 963d62dc1c80
equal deleted inserted replaced
170:391e744a1def 171:2a10febd6af9
    56 	echo "       <th>&nbsp;</th>\n";
    56 	echo "       <th>&nbsp;</th>\n";
    57 	echo "       <th>" . _('Name') . "</th>\n";
    57 	echo "       <th>" . _('Name') . "</th>\n";
    58 	echo "       <th>" . _('Type') . "</th>\n";
    58 	echo "       <th>" . _('Type') . "</th>\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 	if ($iface_zonelist_serial == "1") echo "       <th>" . _('Serial') . "</th>\n";
    61 	echo "      </tr>\n";
    62 	echo "      </tr>\n";
    62 
    63 
    63 	if ($count_zones_view <= $iface_rowamount) {
    64 	if ($count_zones_view <= $iface_rowamount) {
    64 		$zones = get_zones($perm_view,$_SESSION['userid'],"all",ROWSTART,$iface_rowamount);
    65 		$zones = get_zones($perm_view,$_SESSION['userid'],"all",ROWSTART,$iface_rowamount);
    65 	} else {
    66 	} else {
    66 		$zones = get_zones($perm_view,$_SESSION['userid'],LETTERSTART,ROWSTART,$iface_rowamount);
    67 		$zones = get_zones($perm_view,$_SESSION['userid'],LETTERSTART,ROWSTART,$iface_rowamount);
    67 		$count_zones_shown = ($zones == -1) ? 0 : count($zones);
    68 		$count_zones_shown = ($zones == -1) ? 0 : count($zones);
    68 	}
    69 	}
    69 	foreach ($zones as $zone)
    70 	foreach ($zones as $zone)
    70 	{
    71 	{
    71 		$zone_owners = get_fullnames_owners_from_domainid($zone["id"]);
    72 		$zone_owners = get_fullnames_owners_from_domainid($zone['id']);
       
    73 		if ($iface_zonelist_serial == "1") $serial = get_serial_by_zid($zone['id']);
    72 
    74 
    73 		echo "         <tr>\n";
    75 		echo "         <tr>\n";
    74 		echo "          <td>\n";
    76 		echo "          <td>\n";
    75 		echo "           <a href=\"edit.php?id=" . $zone['id'] . "\"><img src=\"images/edit.gif\" title=\"" . _('View zone') . " " . $zone['name'] . "\" alt=\"[ " . _('View zone') . " " . $zone['name'] . " ]\"></a>\n";
    77 		echo "           <a href=\"edit.php?id=" . $zone['id'] . "\"><img src=\"images/edit.gif\" title=\"" . _('View zone') . " " . $zone['name'] . "\" alt=\"[ " . _('View zone') . " " . $zone['name'] . " ]\"></a>\n";
    76 		if ( $perm_edit != "all" || $perm_edit != "none") {
    78 		if ( $perm_edit != "all" || $perm_edit != "none") {
    82 		echo "          </td>\n";
    84 		echo "          </td>\n";
    83 		echo "          <td class=\"y\">" . $zone["name"] . "</td>\n";
    85 		echo "          <td class=\"y\">" . $zone["name"] . "</td>\n";
    84 		echo "          <td class=\"y\">" . strtolower($zone["type"]) . "</td>\n";
    86 		echo "          <td class=\"y\">" . strtolower($zone["type"]) . "</td>\n";
    85 		echo "          <td class=\"y\">" . $zone["count_records"] . "</td>\n";
    87 		echo "          <td class=\"y\">" . $zone["count_records"] . "</td>\n";
    86 		echo "          <td class=\"y\">" . $zone_owners . "</td>\n";
    88 		echo "          <td class=\"y\">" . $zone_owners . "</td>\n";
       
    89 		if ($iface_zonelist_serial == "1") {
       
    90 			if ($serial != "") {
       
    91 				echo "          <td class=\"y\">" . $serial . "</td>\n";
       
    92 			} else {
       
    93 				echo "          <td class=\"n\">&nbsp;</td>\n";
       
    94 			}
       
    95 		}
    87 		echo "           </tr>\n";
    96 		echo "           </tr>\n";
    88 	}
    97 	}
    89 	echo "          </table>\n";
    98 	echo "          </table>\n";
    90 
    99 
    91 }
   100 }