<?php

include "_lib.php";

echo '<table width="100%" border="1" cellspacing="2" cellpadding="4">
<tr bgcolor="silver">
  <td><b>URL</b></td>
  <td><b>Описание</b></td>
</tr>';

$Colors=array("#f8f8f8","#f0f0f0"); 
$n = 0;

  echo '<tr valign="top" bgcolor="#f0f0f0">
    <td>
      <a href="http://seditio.local">http://seditio.local</a>
    </td>
    <td>
      <font size="-1">CMS Seditio (тестовый локальный сайт)</font>
    </td>
  </tr>';

foreach(getAllTests() as $e) 
{ 
  echo '<tr valign="top" bgcolor="'.$Colors[($n++)%2].'">
    <td>
      <a href="'.$e['url'].'">'.$e['url'].'</a>
    </td>
    <td>
      <font size="-1">'.$e['title'];
	  
	if (isset($e['comment'])) {
		echo '<br /><i style="color: red">'.$e['comment'].'</i>';
	}
  echo '</font>
    </td>
  </tr>';
}
echo '</table>';

?>
