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

$inbox_all = mysql_query("SELECT * FROM `pytox_post` WHERE `til` LIKE '$_COOKIE[user]' AND `show` LIKE '1'");
$inbox_new = mysql_query("SELECT * FROM `pytox_post` WHERE `til` LIKE '$_COOKIE[user]' AND `laest` LIKE '0' AND `show` LIKE '1'");


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><br />
<a href="?site=Status">Opdater alle brugeres status</a><br />
<?php
} else if ($loggedon["crew"] == "1") {
?>
<a href="?site=CrewAdmin">Crewadministration</a><br />
<?php
}
?>
<a href="?site=Edituser">Ret bruger</a><br />
<a href="?site=Post">P-mail <?php print mysql_num_rows($inbox_new);?>/<?php print mysql_num_rows($pmail_inbox_all);?></a><br />
<a href="?site=Community">Community</a><br />
<a href="../../sites/get.Logout.php">Log af</a>
<?php
} else {
?>
<form action="../../sites/get.Login.php" method="post" name="login">
<b>Login:</b> 
<br />
B:<input type="text" class="userpass" name="username" value="Brugernavn" onFocus="if(this.value == 'Brugernavn'){this.value='';}" onBlur="if(this.value == ''){this.value='Brugernavn';}" />
<br />
K:<input type="password" id="password" class="userpass" name="password" title="Kodeord" />
<br />
<input type="checkbox" class="checkbox" name="remember_settings" value="Husk mig" />&nbsp;Husk mig
<br />
<a href="?site=Forgotps">Glemt kode?</a>
<br />
<input type="submit" name="submit" class="submit" value="Log på" /></form>
<script type="text/javascript">
function newLocation() {
window.location="http://www.pytox.dk/pytox/designs/d2/index.php?site=Makeuser";
}
</script>
<!-- <form style="display:inline;" action="index.php?site=Makeuser" method="post"> -->
<input type="button" class="submit" value="Opret ny" onClick="newLocation()" />
<!-- </form> -->
<?php
}
}
?>
<?php
//if ($_COOKIE['user'] == "BASF") {

?>
<br />
<br />
<br />
<form action="?site=Search&amp;submit=true" style="display:inline;" method="post">
<strong>Søg</strong>
<br />
<input type="hidden" name="site" value="Search" />
<select name="searchBy" style="padding:0;border:1px solid #CCC;">
<option>Nyheder</option>
<option>Artikler</option>
</select>
<br />
<select name="searchKey" style="padding:0;border:1px solid #CCC;">
<option>Indeholder</option>
<option>Starter med</option>
<option>Er præcist</option>
</select>
<br />
<input type="text" name="searchString" style="padding:0;border:1px solid #CCC;" />
<br />
<input type="submit" value="Søg" name="submit" class="submit" style="padding:0;border:1px solid #CCC;"  /></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>