| 
  while($string=MySQL_Fetch_Array($dotaz))
{
$comment=str_split($string["comment"],40);
if ($string["money"]<0)
{
 $barva="#FAEEEE";
}
else
{
 $barva="#E7FFF1";
}
echo '|  | Datum | Částka | Typ platby | Poznámka | 
 
 |  
   |  | '.$string["day"].'.'.$string["month"].'.'.$year.' | '.$string["money"].' | '.id_to_type($string["type"]).' | ';
        ?>
      ','poznámka','scrollbars=yes,status=no,menubar=no,resizable=no,directories=no,width=300,height=200');">
      
      echo $comment[0];
      if ($string["comment"]!="") echo '...';
      echo ' | ';
     ?>
      ','poznámka','scrollbars=yes,status=no,menubar=no,resizable=no,directories=no,width=300,height=300');">
    
    echo 'upravit
     ';
     ?>
      ','poznámka','scrollbars=yes,status=no,menubar=no,resizable=no,directories=no,width=300,height=200');">
    
    echo ' smazat |  
  ';
Next($string);
}
?>|  |  |