<?php
  //hlavička
  include 'includes/Global.php';
  
  function GetHtmlChar($TestString)
  { // BEGIN function GetHtmlChar
		$TestString=str_replace("\r", "<br />", $TestString);
    //str_replace("\r", "<br>", $Line[2])
  	return $TestString;
  } // END function GetHtmlChar
?>          
<br /><span class="Title">Odkazy: </span>


<?php
  $sql = "SELECT * FROM links order by 1";
  $ID = $db->SQLCommand($sql);
  while($Line = mysql_fetch_array($ID)) {
    echo '<div class="LinksItem"><span class="LinksName">'.$Line['Name'].'</span> - <a href="'.$Line['Address'].'">'.$Line['Address'].'</a> (<span class="NewsText">Přidáno:</span> <span class="Date">'.$Line['Date'].'</span>)<br>';
    $Text = GetHtmlChar($Line['Description']);
    echo '<span class="NewsText">'.$Text.'</span></div>';
  }   
?>

<?php
  //botička (konec)
  ShowFooter();
?>
