Jan Dittberner
f6ca9aa8a1
git-svn-id: file:///home/www/usr01/svn/gnuviechadmin/gnuviech.info/gnuviechadmin/trunk@33 a67ec6bc-e5d5-0310-a910-815c51eb3124
31 lines
930 B
PHP
31 lines
930 B
PHP
<?php
|
|
include("commonhead.php");
|
|
?>
|
|
<div>
|
|
<table class="userhead">
|
|
<tr><td>
|
|
<img src="images/gnu.png" width="45" height="43" alt="small GNU head"/>
|
|
</td><td>
|
|
<p>
|
|
<?php
|
|
require_once("usertypes.php");
|
|
|
|
$query=sprintf("SELECT name, type, client FROM sysuser WHERE id=%d",
|
|
$_SESSION["userid"]);
|
|
$result=db_query($dbh, $query);
|
|
$row=db_fetch_array($result);
|
|
printf(_("Logged in as %s (%s)"), $row["name"],
|
|
get_usertype_name($row["type"]));
|
|
|
|
print("<br/>");
|
|
$_SESSION["client"]=$row["client"];
|
|
|
|
$query=sprintf("SELECT client.*, country.name AS cname FROM client, country WHERE client.id=%d AND country.id=client.country", $row["client"]);
|
|
$result=db_query($dbh, $query);
|
|
$row=db_fetch_array($result);
|
|
printf("%s %s, %s %s, %s %s, %s %s", $row["firstname"], $row["lastname"],
|
|
$row["address1"], $row["address2"], $row["zipcode"], $row["town"],
|
|
$row["state"], $row["cname"]);
|
|
?>
|
|
</p></td></tr></table>
|
|
</div>
|