<p align="center"class="well-box "><font size="+1" >Последние объявления с видео обзором</font></p>
<table width="100%">
<?
$qv = mysql_query("
SELECT id, id_catalog, zag, zag_url, video_item
FROM
board
WHERE video_host='youtu.be'
ORDER BY id
DESC LIMIT 6");
$nqv = mysql_num_rows($qv);
$i=0;
while ($rqv=mysql_fetch_array($qv))
{
if(!$i) echo '<tr>';
echo '<td width=33% valign=top class="well">';
//echo '<table cellpadding="3" cellspacing="3"><tr>';
echo '<table cellpadding="3" cellspacing="3" width="100%" style="text-align:center;"><tr>';
if($nqv)
echo '<td valign=bottom><a href="'.$bp.'items/'.$rqv['zag_url'].'_'.$rqv['id'].'" >
<img src="http://i.ytimg.com/vi/'.$rqv['video_item'].'/1.jpg" border=0>
<br>'.$rqv['zag'].'</a><br><br><br></td>';
$titt=explode("<hr>", $row_Recordset1['opis']);
if($titt[1])
$tit='title="'.obrez(str_replace("\n"," ", $titt[1]), 200).'"'; else $tit='';
echo '<tr valign=bottom><a '.$tit.' href="'.$bp.'items/'.$row_Recordset1['zag_url'].'_'.$row_Recordset1['id'].'" >'.$row_Recordset1['zag'].'</a>';
echo '<br>';
// вывод даты и города
if(date($date_format_site, strtotime($row_Recordset1['data'])) == date($date_format_site))
echo 'Сегодня';
elseif(date($date_format_site, (strtotime($row_Recordset1['data']) + 24*60*60)) == date($date_format_site))
echo 'Вчера';
else
echo dat_rus($row_Recordset1['data'], 2);
echo '<div class="color-gorod">'.$row_Recordset1['gorod'].'</div>';
echo '</div>';
//////////////////////////////////
echo '</tr>';
echo '</table>';
echo '</td>';
$i++;
if($i==3) $i=0;
}
mysql_free_result($qv);
?>
</table>