<?php
	
	$final_query = "SELECT ID FROM mobile_posta WHERE user_to=".$_SESSION['my_id']." AND precitana = 0";
	$posta_novych = $dba->GetNums($final_query);	
	
	$kreditov = $dba->GetOne('mobile_users', $_SESSION['my_id'], 'kredits');

?>
  <div id="menu02">
  	<span id="red"><b><?php echo $_SESSION['log']; ?></b></span> prihlásený <span id="red">|</span>
  	 <a href="index.php?module=posta" id="menu02_link">pošta<?php if($posta_novych>0) echo " <span id=\"red\"><b>($posta_novych nových)</b></span>";?></a> <span id="red">|</span>
  	  <a href="index.php?module=friends" id="menu02_link">priatelia</a> <span id="red">|</span>
  	  <a href="index.php?module=pozadia_add" id="menu02_link">pridať pozadie</a> <span id="red">|</span>
  	  <a href="index.php?module=smsky_add" id="menu02_link">pridať SMS</a> <span id="red">|</span>
  	    <a href="index.php?module=pozadia&amp;action=moje_pozadia" id="menu02_link">moje pozadia</a> <span id="red">|</span>
  	     <a href="index.php?module=moj_mobil" id="menu02_link">môj mobil</a> <span id="red">|</span>
  	      <a href="index.php?module=users" id="menu02_link">užívatelia</a> <span id="red">|</span>
  	       <a href="index.php?module=setup_form" id="menu02_link">nastavenia</a> <span id="red">|</span>
  	        <a href="index.php?module_top=logout" id="menu02_link">odhlásenie</a>
  	        <?php 
  	         
//  	        	if(in_array($_SESSION['my_id'], $admins))
//				{
//					echo " <span id=\"red\">|</span> <a href=\"index.php?module=faq\" id=\"menu02_link\">kreditov: $kreditov</a>";
//					echo " <span id=\"red\">|</span> Kliknutí do kreditu: ";
//					$klks = $kliknuti_na_kredit - $_SESSION['kliknuti'];
//					echo $klks;
//				}
//				
//				if(in_array($_SESSION['my_id'], $admins))
//				{
//					echo " <span id=\"red\">|</span> do hlas kred: ";
//					$hl = $hlasov_na_kredit - $_SESSION['hls'];
//					echo $hl;
//				}
  	        
  	        ?>
  </div>
  
  <?php
  
//    if(in_array($_SESSION['my_id'], $admins))
//				{
//				    dump($_SESSION['hls']);
//				}
  
  ?>