55 |
55 |
56 |
56 |
57 include_once("inc/header.inc.php"); |
57 include_once("inc/header.inc.php"); |
58 |
58 |
59 ?> |
59 ?> |
60 <H2>Edit record in zone "<?= get_domain_name_from_id($_GET["domain"]) ?>"</H2> |
60 <H2><? echo _('Edit record in zone'); ?> "<?= get_domain_name_from_id($_GET["domain"]) ?>"</H2> |
61 <FONT CLASS="nav"><BR><A HREF="index.php">DNS Admin</A> >> <A HREF="edit.php?id=<?= $_GET["domain"] ?>"><?= get_domain_name_from_id($_GET["domain"]) ?></A> >> Edit record<BR><BR></FONT> |
61 <FONT CLASS="nav"><BR><A HREF="index.php"><? echo _('DNS Admin'); ?></A> >> <A HREF="edit.php?id=<?= $_GET["domain"] ?>"><?= get_domain_name_from_id($_GET["domain"]) ?></A> >> <? echo _('Edit record'); ?><BR><BR></FONT> |
62 |
62 |
63 <FORM METHOD="post" ACTION="edit_record.php"> |
63 <FORM METHOD="post" ACTION="edit_record.php"> |
64 <INPUT TYPE="hidden" NAME="recordid" VALUE="<?= $_GET["id"] ?>"> |
64 <INPUT TYPE="hidden" NAME="recordid" VALUE="<?= $_GET["id"] ?>"> |
65 <INPUT TYPE="hidden" NAME="domainid" VALUE="<?= $_GET["domain"] ?>"> |
65 <INPUT TYPE="hidden" NAME="domainid" VALUE="<?= $_GET["domain"] ?>"> |
66 <TABLE BORDER="0" CELLSPACING="4"> |
66 <TABLE BORDER="0" CELLSPACING="4"> |
67 <TR STYLE="font-weight: Bold"><TD CLASS="tdbg">Name</TD><TD CLASS="tdbg"> </TD><TD CLASS="tdbg">Type</TD><TD CLASS="tdbg">Priority</TD><TD CLASS="tdbg">Content</TD><TD CLASS="tdbg">TimeToLive</TD></TR> |
67 <TR STYLE="font-weight: Bold"><TD CLASS="tdbg"><? echo _('Name'); ?></TD><TD CLASS="tdbg"> </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> |
68 |
68 |
69 <? |
69 <? |
70 $rec = get_record_from_id($_GET["id"]); |
70 $rec = get_record_from_id($_GET["id"]); |
71 ?> |
71 ?> |
72 |
72 |
99 } |
99 } |
100 |
100 |
101 ?> |
101 ?> |
102 </SELECT></TD><TD CLASS="tdbg"><INPUT TYPE="text" NAME="prio" VALUE="<?= $rec["prio"] ?>" CLASS="sinput"></TD><TD CLASS="tdbg"><INPUT TYPE="text" NAME="content" VALUE="<?= $rec["content"] ?>" CLASS="input"></TD><TD CLASS="tdbg"><INPUT TYPE="text" NAME="ttl" VALUE="<?= $rec["ttl"] ?>" CLASS="sinput"></TD></TR> |
102 </SELECT></TD><TD CLASS="tdbg"><INPUT TYPE="text" NAME="prio" VALUE="<?= $rec["prio"] ?>" CLASS="sinput"></TD><TD CLASS="tdbg"><INPUT TYPE="text" NAME="content" VALUE="<?= $rec["content"] ?>" CLASS="input"></TD><TD CLASS="tdbg"><INPUT TYPE="text" NAME="ttl" VALUE="<?= $rec["ttl"] ?>" CLASS="sinput"></TD></TR> |
103 </TABLE> |
103 </TABLE> |
104 <BR><INPUT TYPE="submit" NAME="commit" VALUE="Commit changes" CLASS="button"> <INPUT TYPE="reset" NAME="reset" VALUE="Reset changes" CLASS="button"> |
104 <BR><INPUT TYPE="submit" NAME="commit" VALUE="<? echo _('Commit changes'); ?>" CLASS="button"> <INPUT TYPE="reset" NAME="reset" VALUE="<? echo _('Reset changes'); ?>" CLASS="button"> |
105 </FORM> |
105 </FORM> |
106 |
106 |
107 <?if (level(10)) { ?> |
107 <?if (level(10)) { ?> |
108 <table style="width:140px"> |
108 <table style="width:140px"> |
109 <tr><td CLASS="tdbg"><b>Sub-users</b></td><td CLASS="tdbg"> </td></tr> |
109 <tr><td CLASS="tdbg"><b><? echo _('Sub-users'); ?></b></td><td CLASS="tdbg"> </td></tr> |
110 <? |
110 <? |
111 $x_result = $db->query("SELECT r.id,u.username FROM record_owners as r, users as u WHERE r.record_id='".$_GET['id']."' AND u.id=r.user_id"); |
111 $x_result = $db->query("SELECT r.id,u.username FROM record_owners as r, users as u WHERE r.record_id='".$_GET['id']."' AND u.id=r.user_id"); |
112 while ($x_r = $x_result->fetchRow()) { |
112 while ($x_r = $x_result->fetchRow()) { |
113 echo "<tr><td CLASS=\"tdbg\">".$x_r["username"]."</td><td CLASS=\"tdbg\">"; |
113 echo "<tr><td CLASS=\"tdbg\">".$x_r["username"]."</td><td CLASS=\"tdbg\">"; |
114 echo "<a href=\"".$_SERVER["PHP_SELF"]."?id=".$_GET["id"]."&domain=".$_GET["domain"]."&delid=".$x_r["id"]."\">"; |
114 echo "<a href=\"".$_SERVER["PHP_SELF"]."?id=".$_GET["id"]."&domain=".$_GET["domain"]."&delid=".$x_r["id"]."\">"; |
115 echo "<img src=\"images/delete.gif\" alt=\"trash\" border=\"0\"/></a></td></tr>"; |
115 echo "<img src=\"images/delete.gif\" alt=\"" . _('trash') . "\" border=\"0\"/></a></td></tr>"; |
116 } |
116 } |
117 ?> |
117 ?> |
118 </table> |
118 </table> |
119 <? } |
119 <? } |
120 |
120 |