equal
deleted
inserted
replaced
23 include_once("inc/header.inc.php"); |
23 include_once("inc/header.inc.php"); |
24 |
24 |
25 $num_all_domains = zone_count(0); |
25 $num_all_domains = zone_count(0); |
26 $doms = zone_count(0, LETTERSTART); |
26 $doms = zone_count(0, LETTERSTART); |
27 ?> |
27 ?> |
28 <h2><? echo _('List all zones'); ?></h2> |
28 <h2><?php echo _('List all zones'); ?></h2> |
29 <? |
29 <?php |
30 echo "<div class=\"showmax\">"; |
30 echo "<div class=\"showmax\">"; |
31 show_pages($doms,ROWAMOUNT); |
31 show_pages($doms,ROWAMOUNT); |
32 echo "</div>"; |
32 echo "</div>"; |
33 |
33 |
34 if ($num_all_domains > ROWAMOUNT) |
34 if ($num_all_domains > ROWAMOUNT) |
39 } |
39 } |
40 ?> |
40 ?> |
41 <table> |
41 <table> |
42 <tr> |
42 <tr> |
43 <th> </th> |
43 <th> </th> |
44 <th><? echo _('Name'); ?></th> |
44 <th><?php echo _('Name'); ?></th> |
45 <th><? echo _('Type'); ?></th> |
45 <th><?php echo _('Type'); ?></th> |
46 <th><? echo _('Records'); ?></th> |
46 <th><?php echo _('Records'); ?></th> |
47 <th><? echo _('Owner'); ?></th> |
47 <th><?php echo _('Owner'); ?></th> |
48 </tr> |
48 </tr> |
49 <tr> |
49 <tr> |
50 |
50 |
51 <? |
51 <?php |
52 if ($num_all_domains < ROWAMOUNT) { |
52 if ($num_all_domains < ROWAMOUNT) { |
53 $doms = get_domains(0,"all",ROWSTART,ROWAMOUNT); |
53 $doms = get_domains(0,"all",ROWSTART,ROWAMOUNT); |
54 } else { |
54 } else { |
55 $doms = get_domains(0,LETTERSTART,ROWSTART,ROWAMOUNT); |
55 $doms = get_domains(0,LETTERSTART,ROWSTART,ROWAMOUNT); |
56 $num_show_domains = ($doms == -1) ? 0 : count($doms); |
56 $num_show_domains = ($doms == -1) ? 0 : count($doms); |
60 if ($doms < 0) |
60 if ($doms < 0) |
61 { |
61 { |
62 ?> |
62 ?> |
63 <tr> |
63 <tr> |
64 <td> </td> |
64 <td> </td> |
65 <td colspan="4"><? echo _('There are no zones.'); ?></td> |
65 <td colspan="4"><?php echo _('There are no zones.'); ?></td> |
66 </tr> |
66 </tr> |
67 <? |
67 <?php |
68 } |
68 } |
69 |
69 |
70 // If he has domains, dump them (duh) |
70 // If he has domains, dump them (duh) |
71 else |
71 else |
72 { |
72 { |
74 { |
74 { |
75 ?> |
75 ?> |
76 |
76 |
77 <tr> |
77 <tr> |
78 <td> |
78 <td> |
79 <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> |
79 <a href="edit.php?id=<?php echo $c["id"] ?>"><img src="images/edit.gif" title="<?php echo _('Edit zone') . " " . $c['name']; ?>" alt="[ <?php echo _('Edit zone') . " " . $c['name']; ?> ]"></a> |
80 <? |
80 <?php |
81 if (level(5)) |
81 if (level(5)) |
82 { |
82 { |
83 ?> |
83 ?> |
84 <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> |
84 <a href="delete_domain.php?id=<?php echo $c["id"] ?>"><img src="images/delete.gif" title="<?php print _('Delete zone') . " " . $c['name']; ?>" alt="[<?php echo _('Delete zone') . " " . $c['name']; ?>]"></a> |
85 <? |
85 <?php |
86 } |
86 } |
87 ?> |
87 ?> |
88 </td> |
88 </td> |
89 <td class="y"><? echo $c["name"] ?></td> |
89 <td class="y"><?php echo $c["name"] ?></td> |
90 <td class="y"><? echo strtolower(get_domain_type($c["id"])) ?></td> |
90 <td class="y"><?php echo strtolower(get_domain_type($c["id"])) ?></td> |
91 <td class="y"><? echo $c["numrec"] ?></td> |
91 <td class="y"><?php echo $c["numrec"] ?></td> |
92 |
92 |
93 <? |
93 <?php |
94 $zone_owners = get_owners_from_domainid($c["id"]); |
94 $zone_owners = get_owners_from_domainid($c["id"]); |
95 if ($zone_owners == "") |
95 if ($zone_owners == "") |
96 { |
96 { |
97 echo "<td class=\"n\"></td>"; |
97 echo "<td class=\"n\"></td>"; |
98 } |
98 } |
105 } |
105 } |
106 |
106 |
107 ?> |
107 ?> |
108 </table> |
108 </table> |
109 |
109 |
110 <? |
110 <?php |
111 if ($num_all_domains < ROWAMOUNT) { |
111 if ($num_all_domains < ROWAMOUNT) { |
112 ?> |
112 ?> |
113 <p><? printf(_('This lists shows all %s zones(s) you have access to.'), $num_all_domains); ?></p> |
113 <p><?php printf(_('This lists shows all %s zones(s) you have access to.'), $num_all_domains); ?></p> |
114 <? |
114 <?php |
115 } |
115 } |
116 else |
116 else |
117 { |
117 { |
118 ?> |
118 ?> |
119 <p><? printf(_('This lists shows %s out of %s zones you have access to.'), $num_show_domains, $num_all_domains); ?></p> |
119 <p><?php printf(_('This lists shows %s out of %s zones you have access to.'), $num_show_domains, $num_all_domains); ?></p> |
120 <? |
120 <?php |
121 } |
121 } |
122 ?> |
122 ?> |
123 |
123 |
124 |
124 |
125 <? // RZ TODO Check next, does it work? |
125 <?php // RZ TODO Check next, does it work? |
126 // <small> echo _('You only administer some records of domains marked with an (*).'); </small> |
126 // <small> echo _('You only administer some records of domains marked with an (*).'); </small> |
127 ?> |
127 ?> |
128 |
128 |
129 <? |
129 <?php |
130 include_once("inc/footer.inc.php"); |
130 include_once("inc/footer.inc.php"); |
131 ?> |
131 ?> |