add_zone_slave.php
changeset 71 e1b918eaf69a
parent 50 ed18c8317cff
child 79 0c0aa144356a
equal deleted inserted replaced
70:47248e2af079 71:e1b918eaf69a
    59 
    59 
    60 include_once("inc/header.inc.php");
    60 include_once("inc/header.inc.php");
    61 
    61 
    62 	if ($error != "")
    62 	if ($error != "")
    63 	{
    63 	{
    64 	        ?><div class="error"><? echo _('Error'); ?>: <? echo $error; ?></div><?
    64 	        ?><div class="error"><?php echo _('Error'); ?>: <?php echo $error; ?></div><?php
    65 	}
    65 	}
    66 	elseif ($success != "")
    66 	elseif ($success != "")
    67 	{
    67 	{
    68 		?><div class="success"><? echo $success; ?></div><?
    68 		?><div class="success"><?php echo $success; ?></div><?php
    69 	}
    69 	}
    70 	
    70 	
    71 	$users = show_users();
    71 	$users = show_users();
    72 	
    72 	
    73 	?>
    73 	?>
    74 	    <h2><? echo _('Add slave zone'); ?></h2>
    74 	    <h2><?php echo _('Add slave zone'); ?></h2>
    75 	    <form method="post" action="add_zone_slave.php">
    75 	    <form method="post" action="add_zone_slave.php">
    76 	     <table>
    76 	     <table>
    77 	      <tr>
    77 	      <tr>
    78 	       <td class="n"><? echo _('Zone name'); ?>:</td>
    78 	       <td class="n"><?php echo _('Zone name'); ?>:</td>
    79 	       <td class="n">
    79 	       <td class="n">
    80 	        <input type="text" class="input" name="domain" value="<? if ($error) print $_POST["domain"]; ?>">
    80 	        <input type="text" class="input" name="domain" value="<?php if ($error) print $_POST["domain"]; ?>">
    81 	       </td>
    81 	       </td>
    82 	      </tr>
    82 	      </tr>
    83 	      <tr>
    83 	      <tr>
    84 	       <td class="n"><? echo _('IP of master NS'); ?>:</td>
    84 	       <td class="n"><?php echo _('IP of master NS'); ?>:</td>
    85 	       <td class="n">
    85 	       <td class="n">
    86 	        <input type="text" class="input" name="slave_master" value="<? if ($error) print $_POST["slave_master"]; ?>">
    86 	        <input type="text" class="input" name="slave_master" value="<?php if ($error) print $_POST["slave_master"]; ?>">
    87 	       </td>
    87 	       </td>
    88 	      </tr>
    88 	      </tr>
    89 	      <tr>
    89 	      <tr>
    90 	       <td class="n"><? echo _('Owner'); ?>:</td>
    90 	       <td class="n"><?php echo _('Owner'); ?>:</td>
    91 	       <td class="n">
    91 	       <td class="n">
    92 	        <select name="owner">
    92 	        <select name="owner">
    93 	         <? 
    93 	         <?php 
    94 	         foreach ($users as $u)
    94 	         foreach ($users as $u)
    95 	         {
    95 	         {
    96 	           ?><option value="<? echo $u['id'] ?>"><? echo $u['fullname'] ?></option><?
    96 	           ?><option value="<?php echo $u['id'] ?>"><?php echo $u['fullname'] ?></option><?php
    97 	         } 
    97 	         } 
    98 	        ?>
    98 	        ?>
    99 	        </select>
    99 	        </select>
   100 	       </td>
   100 	       </td>
   101 	      </tr>
   101 	      </tr>
   102 	      <tr>
   102 	      <tr>
   103 	       <td class="n">&nbsp;</td>
   103 	       <td class="n">&nbsp;</td>
   104 	       <td class="n">
   104 	       <td class="n">
   105 	        <input type="submit" class="button" name="submit" value="<? echo _('Add domain'); ?>">
   105 	        <input type="submit" class="button" name="submit" value="<?php echo _('Add domain'); ?>">
   106 	       </td>
   106 	       </td>
   107 	      </tr>
   107 	      </tr>
   108 	     </table>
   108 	     </table>
   109 	    </form>
   109 	    </form>
   110 <?
   110 <?php
   111 include_once("inc/footer.inc.php");
   111 include_once("inc/footer.inc.php");
   112 ?>
   112 ?>