Location: PHPKode > projects > TLD Manager > tldmgr/tld_edit.php
<? include("include/verify.php"); ?><html>
<head>
	<title>Edit TLD</title>
	<link type="text/css" rel="stylesheet" href="domain.css">
	<meta http-equiv="refresh" content="<? echo $login_expires+1; ?>">
	<script>function focus(){document.frm.SOA.focus();}</script>
</head>

<body onload=focus()>
<form name=frm method="post" action="tld_update.php">
<input type="hidden" name="TLD" value="<? echo $TLD; ?>">
<?
	$HEAD = "Edit&nbsp;Root";
	$INFO = strtoupper($TLD);
	$FOOT[0] = "type='submit' value='OK'";
	$FOOT[1] = "type='button' value='CANCEL' onclick='location.href=\"tld_pick.php\"' style='border-left: 8px solid #808080;'";
	$FOOT[2] = "type='button' value='LOGOFF' onclick='location.href=\"logout.php\"'";
	$FOOT[3] = "type='button' value='EDIT MY&#10;ACCOUNT' onclick='location.href=\"user_edit.php?nick=$user_nick\"'";
	$FORM = TRUE;

	mysql_connect($db_host,$db_user,$db_pass);
	@mysql_select_db($db_name) or die( "Unable to select database \"$db_name @ $db_host\"");
	$result = mysql_query("SELECT * FROM root WHERE TLD='$TLD'");

	include("header.php");
?>

					<table width=100% cellspacing=0 cellpadding=3 class="form">
						<tr>
							<td class="form5" align="right">SOA:</td><td>&nbsp;&nbsp;</td>
							<td class="form"><input name=SOA type="text" size="30" value="<? echo mysql_result($result,0,"SOA"); ?>"></td>
						</tr>
						<tr>
							<td class="form5" align="right">Contact:</td><td></td>
							<td class="form"><input name=contact type="text" size="30" value="<? echo mysql_result($result,0,"contact"); ?>"></td>
						</tr>
						<tr>
							<td class="form5" align="right">TTL:</td><td></td>
							<td class="form"><input name=TTL type="text" size="30" value="<? echo mysql_result($result,0,"TTL"); ?>"></td>
						</tr>
						<tr>
							<td class="form5" align="right">Refresh:</td><td></td>
							<td class="form"><input name=refresh type="text" size="30" value="<? echo mysql_result($result,0,"refresh"); ?>"></td>
						</tr>
						<tr>
							<td class="form5" align="right">Retry:</td><td></td>
							<td class="form"><input name=retry type="text" size="30" value="<? echo mysql_result($result,0,"retry"); ?>"></td>
						</tr>
						<tr>
							<td class="form5" align="right">Expire:</td><td></td>
							<td class="form"><input name=expire type="text" size="30" value="<? echo mysql_result($result,0,"expire"); ?>"></td>
						</tr>
						<tr>
							<td class="form5" align="right">Filename:</td><td></td>
							<td class="form"><input name=filename type="text" size="30" value="<? echo mysql_result($result,0,"filename"); ?>"></td>
						</tr>
					</table>

<? include("footer.php"); ?>
Return current item: TLD Manager