1
0
Fork 0
gnuviechadmin-historic/php/domainlist.php
Jan Dittberner dbae3c8bd3 add domain
git-svn-id: file:///home/www/usr01/svn/gnuviechadmin/gnuviech.info/gnuviechadmin/trunk@31 a67ec6bc-e5d5-0310-a910-815c51eb3124
2004-03-08 17:42:14 +00:00

34 lines
No EOL
865 B
PHP

<?php
require("wantauth.php");
require("tools.php");
$dbh=db_open();
session_start();
include("userhead.php");
include("domainstatustypes.php");
?>
<div>
<?php
$query=sprintf("SELECT * FROM domain WHERE client=%d",
$_SESSION["client"]);
$result=pg_query($dbh, $query);
$rows=pg_num_rows($result);
if ($rows==0) {
print("<p>" . _("You don't have any domains registered.") . "</p>");
}
else {
print("<p>" . _("Here is a list of your currently registered domains.") . "</p>");
printf("<table><tr><th>%s</th><th>%s</th></tr>",
_("Domain name"), _("Status"));
while ($row=pg_fetch_array($result)) {
printf("<tr><td>%s</td><td>%s</td></tr>",
$row["domainname"], get_domainstatustype_name($row["status"]));
}
print("</table>");
}
?>
</div>
<a href="registerdomain.php"><?php print(_("Add domain")); ?></a>
<?php
include("commonfoot.php");
?>