<? include("include/verify.php"); ?><html>
<head>
<title>Choose 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.newtld.focus();}</script>
</head>
<body onload=focus()>
<form name=frm method="post" action="tld_chknew.php">
<?
switch($fail) {
case "invalid":
$ERR = "TLD \"$tld\" is invalid or already exists";
break;
}
$HEAD = "Choose TLD";
$FOOT[0] = "type='button' value='DONE' onclick='location.href=\"admin_menu.php\"' $seperator";
$FOOT[1] = "type='button' value='LOGOFF' onclick='location.href=\"logout.php\"'";
$FOOT[2] = "type='button' value='EDIT MY 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 ORDER BY TLD");
$count = 0;
$num = mysql_numrows($result);
include("header.php");
?>
<table width=100% cellspacing=0 cellpadding=3 class="form1">
<? if ($num > 0) { ?>
<tr>
<td class="form3">TLD</td>
<td class="form3"> </td>
<td class="form3">SERIAL</td>
<td class="form3"> </td>
<td class="form3"> </td>
<td class="form3"> </td>
<td class="form3"> </td>
</tr>
<?
}
while ($count < $num) {
$TLD = mysql_result($result,$count,"TLD");
?>
<tr>
<td><? echo strtoupper($TLD); ?></td>
<td></td>
<td><? echo mysql_result($result,$count,"serial"); ?></td>
<td></td>
<td><a href="tld_edit.php?TLD=<? echo $TLD; ?>"><img src="images/edit.png"></a></td>
<td></td>
<? if ($user_level & 16) { ?>
<td><a href="tld_delete_confirm.php?TLD=<? echo $TLD; ?>"><img src="images/delete.gif"></a></td>
<? } else { ?>
<td><img src="images/deleteX.gif"></td>
<? } ?>
</tr>
<?
$count++;
}
?>
<? if ($user_level & 16) { ?>
<tr>
<td colspan=2 style="border-top:1px solid #808080;"><input name=newtld type="text" size="15" value=""></td>
<td colspan=5 class="form2" style="border-top:1px solid #808080;">
<input type="image" src="images/createtld.png">
</td>
</tr>
<? } ?>
</table>
<? include("footer.php"); ?>