add_record.php
changeset 2 9a485c41cfcf
parent 1 58094faf794d
child 3 64525a2eb098
equal deleted inserted replaced
1:58094faf794d 2:9a485c41cfcf
    26         }
    26         }
    27         clean_page("edit.php?id=".$_POST["zoneid"]);
    27         clean_page("edit.php?id=".$_POST["zoneid"]);
    28 }
    28 }
    29 include_once("inc/header.inc.php");
    29 include_once("inc/header.inc.php");
    30 ?>
    30 ?>
    31 <H2>Add record to zone "<?= get_domain_name_from_id($_GET["id"]) ?>"</H2>
    31 <H2><? echo _('Add record to zone'); ?> "<?= get_domain_name_from_id($_GET["id"]) ?>"</H2>
    32 <FONT CLASS="nav"><BR><A HREF="index.php">DNS Admin</A> &gt;&gt; <A HREF="edit.php?id=<?= $_GET["id"] ?>"><?= get_domain_name_from_id($_GET["id"]) ?></A> &gt;&gt; Add record<BR><BR></FONT>
    32 <FONT CLASS="nav"><BR><A HREF="index.php"><? echo _('DNS Admin'); ?></A> &gt;&gt; <A HREF="edit.php?id=<?= $_GET["id"] ?>"><?= get_domain_name_from_id($_GET["id"]) ?></A> &gt;&gt; <? echo _('Add record'); ?><BR><BR></FONT>
    33 
    33 
    34 <FORM METHOD="post">
    34 <FORM METHOD="post">
    35 <INPUT TYPE="hidden" NAME="zoneid" VALUE="<?= $_GET["id"] ?>">
    35 <INPUT TYPE="hidden" NAME="zoneid" VALUE="<?= $_GET["id"] ?>">
    36 <TABLE BORDER="0" CELLSPACING="4">
    36 <TABLE BORDER="0" CELLSPACING="4">
    37 <TR STYLE="font-weight: Bold"><TD CLASS="tdbg">Name</TD><TD CLASS="tdbg">&nbsp;</TD><TD CLASS="tdbg">Type</TD><TD CLASS="tdbg">Priority</TD><TD CLASS="tdbg">Content</TD><TD CLASS="tdbg">TimeToLive</TD></TR>
    37 <TR STYLE="font-weight: Bold"><TD CLASS="tdbg"><? echo _('Name'); ?></TD><TD CLASS="tdbg">&nbsp;</TD><TD CLASS="tdbg"><? echo _('Type'); ?></TD><TD CLASS="tdbg"><? echo _('Priority'); ?></TD><TD CLASS="tdbg"><? echo _('Content'); ?></TD><TD CLASS="tdbg"><? echo _('TimeToLive'); ?></TD></TR>
    38 <TR><TD CLASS="tdbg"><INPUT TYPE="text" NAME="name" CLASS="input">.<?= get_domain_name_from_id($_GET["id"]) ?></TD><TD CLASS="tdbg">IN</TD><TD CLASS="tdbg"><SELECT NAME="type">
    38 <TR><TD CLASS="tdbg"><INPUT TYPE="text" NAME="name" CLASS="input">.<?= get_domain_name_from_id($_GET["id"]) ?></TD><TD CLASS="tdbg">IN</TD><TD CLASS="tdbg"><SELECT NAME="type">
    39 <?
    39 <?
    40 $dname = get_domain_name_from_id($_GET["id"]);
    40 $dname = get_domain_name_from_id($_GET["id"]);
    41 foreach (get_record_types() as $c) {
    41 foreach (get_record_types() as $c) {
    42         if (eregi('in-addr.arpa', $dname) && strtoupper($c) == 'PTR') {
    42         if (eregi('in-addr.arpa', $dname) && strtoupper($c) == 'PTR') {
    48         }
    48         }
    49         ?><OPTION<?= $add ?> VALUE="<?= $c ?>"><?= $c ?></OPTION><?
    49         ?><OPTION<?= $add ?> VALUE="<?= $c ?>"><?= $c ?></OPTION><?
    50 }
    50 }
    51 ?></SELECT></TD><TD CLASS="tdbg"><INPUT TYPE="text" NAME="prio" CLASS="sinput"></TD><TD CLASS="tdbg"><INPUT TYPE="text" NAME="content" CLASS="input"></TD><TD CLASS="tdbg"><INPUT TYPE="text" NAME="ttl" CLASS="sinput" VALUE="<?=$DEFAULT_TTL?>"></TD></TR>
    51 ?></SELECT></TD><TD CLASS="tdbg"><INPUT TYPE="text" NAME="prio" CLASS="sinput"></TD><TD CLASS="tdbg"><INPUT TYPE="text" NAME="content" CLASS="input"></TD><TD CLASS="tdbg"><INPUT TYPE="text" NAME="ttl" CLASS="sinput" VALUE="<?=$DEFAULT_TTL?>"></TD></TR>
    52 </TABLE>
    52 </TABLE>
    53 <BR><INPUT TYPE="submit" NAME="commit" VALUE="Add record" CLASS="button">
    53 <BR><INPUT TYPE="submit" NAME="commit" VALUE="<? echo _('Add record'); ?>" CLASS="button">
    54 </FORM>
    54 </FORM>
    55 
    55 
    56 <? include_once("inc/footer.inc.php"); ?>
    56 <? include_once("inc/footer.inc.php"); ?>