<table width="700">
 <tr>
  <td align="center" valign="top">
<?php
while($loggedon = mysql_fetch_assoc($db_bottom)) {

if ($_COOKIE["user"] == $loggedon["bruger"] && $_COOKIE["pass"] == $loggedon["kode"] && $_COOKIE["com"] == "1") {
?>
<span class="small">Brugermenu:</span>
<br />
<?php
if ($loggedon["admin"] == "1" || $loggedon["admin"] == "2") {
?>
<a href="?site=Admin">Administration</a> | 
<?php
if ($loggedon["crew"] == "1") {
?>
<a href="?site=CrewAdmin">Crewadministration</a> | 
<?php
}
?>
<?php
<a href="?site=Community">Community</a> | <a href="../../sites/get.Logout.php">Log af</a>
<?php
} else {
?>
<form action="../../sites/get.Login.php" method="post" name="login"><b>Login:</b> B:<input type="text" class="userpass" name="username" value="Brugernavn" onFocus="if(this.value == 'Brugernavn'){this.value='';}" onBlur="if(this.value == ''){this.value='Brugernavn';}" /> K:<input type="password" id="password" class="userpass" name="password" title="Kodeord" /> <input type="checkbox" name="remember_settings" value="Husk mig" />Husk mig <input type="submit" name="submit" class="submit" value="Log på" /></form> <form action="?site=Makeuser" method="post"><input type="submit" value="Opret ny" /></form>
<?php
}
}
?>
  </td>
  <td align="right" valign="top">
<?php
if (!isset($nocounter_in_bottom)) {
?>
<!-- chart.dk unified trackercode - v1 -->
<script type='text/javascript' src='http://www.chart.dk/js/unified.asp'></script>
<script language='javascript'>
 track_visitor(131320, '');
</script>
<noscript>
 <a href="http://www.chart.dk/ref.asp?id=131320" target="_blank">
  <img src="http://cluster.chart.dk/chart.asp?id=131320" border="0" alt="Chart.dk" />
 </a>
</noscript>
<!-- chart.dk unified trackercode - v1 -->
<?php
}
?>
  </td>
 </tr>
</table>