64 |
64 |
65 include_once("inc/header.inc.php"); |
65 include_once("inc/header.inc.php"); |
66 |
66 |
67 if ($error != "") |
67 if ($error != "") |
68 { |
68 { |
69 ?><div class="error"><? echo _('Error'); ?>: <? echo $error; ?></div><? |
69 ?><div class="error"><?php echo _('Error'); ?>: <?php echo $error; ?></div><?php |
70 } |
70 } |
71 elseif ($success != "") |
71 elseif ($success != "") |
72 { |
72 { |
73 ?><div class="success"><? echo $success; ?></div><? |
73 ?><div class="success"><?php echo $success; ?></div><?php |
74 } |
74 } |
75 |
75 |
76 ?> |
76 ?> |
77 <h2>Add master zone</h2> |
77 <h2>Add master zone</h2> |
78 <? |
78 <?php |
79 |
79 |
80 // Zone type set to master and native only, slave zones are created |
80 // Zone type set to master and native only, slave zones are created |
81 // on a different page. |
81 // on a different page. |
82 $zone_types = array("MASTER", "NATIVE"); |
82 $zone_types = array("MASTER", "NATIVE"); |
83 $users = show_users(); |
83 $users = show_users(); |
84 ?> |
84 ?> |
85 <form method="post" action="add_zone_master.php"> |
85 <form method="post" action="add_zone_master.php"> |
86 <table> |
86 <table> |
87 <tr> |
87 <tr> |
88 <td class="n"><? echo _('Zone name'); ?>:</td> |
88 <td class="n"><?php echo _('Zone name'); ?>:</td> |
89 <td class="n"> |
89 <td class="n"> |
90 <input type="text" class="input" name="domain" value="<? if ($error) print $_POST["domain"]; ?>"> |
90 <input type="text" class="input" name="domain" value="<?php if ($error) print $_POST["domain"]; ?>"> |
91 </td> |
91 </td> |
92 </tr> |
92 </tr> |
93 <tr> |
93 <tr> |
94 <td class="n"><? echo _('Web IP'); ?>:</td> |
94 <td class="n"><?php echo _('Web IP'); ?>:</td> |
95 <td class="n"> |
95 <td class="n"> |
96 <input type="text" class="input" name="webip" value="<? if ($error) print $_POST["webip"]; ?>"> |
96 <input type="text" class="input" name="webip" value="<?php if ($error) print $_POST["webip"]; ?>"> |
97 </td> |
97 </td> |
98 </tr> |
98 </tr> |
99 <tr> |
99 <tr> |
100 <td class="n"><? echo _('Mail IP'); ?>:</TD> |
100 <td class="n"><?php echo _('Mail IP'); ?>:</TD> |
101 <td class="n"> |
101 <td class="n"> |
102 <input type="text" class="input" name="mailip" value="<? if ($error) print $_POST["mailip"]; ?>"> |
102 <input type="text" class="input" name="mailip" value="<?php if ($error) print $_POST["mailip"]; ?>"> |
103 </td> |
103 </td> |
104 </tr> |
104 </tr> |
105 <tr> |
105 <tr> |
106 <td class="n"><? echo _('Owner'); ?>:</td> |
106 <td class="n"><?php echo _('Owner'); ?>:</td> |
107 <td class="n"> |
107 <td class="n"> |
108 <select name="owner"> |
108 <select name="owner"> |
109 <? |
109 <?php |
110 foreach ($users as $u) |
110 foreach ($users as $u) |
111 { |
111 { |
112 ?><option value="<? echo $u['id'] ?>"><? echo $u['fullname'] ?></option><? |
112 ?><option value="<?php echo $u['id'] ?>"><?php echo $u['fullname'] ?></option><?php |
113 } |
113 } |
114 ?> |
114 ?> |
115 </select> |
115 </select> |
116 </td> |
116 </td> |
117 </tr> |
117 </tr> |
118 <tr> |
118 <tr> |
119 <td class="n"><? echo _('Zone type'); ?>:</td> |
119 <td class="n"><?php echo _('Zone type'); ?>:</td> |
120 <td class="n"> |
120 <td class="n"> |
121 <select name="dom_type"> |
121 <select name="dom_type"> |
122 <? |
122 <?php |
123 foreach($zone_types as $s) |
123 foreach($zone_types as $s) |
124 { |
124 { |
125 ?><option value="<? echo $s?>"><? echo $s ?></option><? |
125 ?><option value="<?php echo $s?>"><?php echo $s ?></option><?php |
126 } |
126 } |
127 ?> |
127 ?> |
128 </select> |
128 </select> |
129 </td> |
129 </td> |
130 </tr> |
130 </tr> |
131 <tr> |
131 <tr> |
132 <td class="n"><? echo _('Create zone without applying records-template'); ?>:</td> |
132 <td class="n"><?php echo _('Create zone without applying records-template'); ?>:</td> |
133 <td class="n"><input type="checkbox" name="empty" value="1"></td> |
133 <td class="n"><input type="checkbox" name="empty" value="1"></td> |
134 </tr> |
134 </tr> |
135 <tr> |
135 <tr> |
136 <td class="n"> </td> |
136 <td class="n"> </td> |
137 <td class="n"> |
137 <td class="n"> |
138 <input type="submit" class="button" name="submit" value="<? echo _('Add zone'); ?>"> |
138 <input type="submit" class="button" name="submit" value="<?php echo _('Add zone'); ?>"> |
139 </td> |
139 </td> |
140 </tr> |
140 </tr> |
141 </table> |
141 </table> |
142 </form> |
142 </form> |
143 <? |
143 <?php |
144 |
144 |
145 include_once("inc/footer.inc.php"); |
145 include_once("inc/footer.inc.php"); |