View file waplend/news.php

File size: 910B
<?php
	$qwer = mysql_query("SELECT * FROM `news` where `type`='news' order by time desc ");
$mne = mysql_fetch_array($qwer);
if($qwer1 = mysql_query("SELECT * FROM `news` where `type`='komm' and `idnews`='".intval($mne['id'])."' "))
{
$mne1 = mysql_num_rows($qwer1);
}
echo "<div class='contur'><div class='header'><span style='color:#c00000;text-decoration:blink;'>
&#x041F;o&#x0441;&#x043B;&#x0435;&#x0434;&#x043D;&#x0438;&#x0435; &#x043D;&#x043E;&#x0432;&#x043E;&#x0441;&#x0442;&#x0438; &#x0441;&#x0430;&#x0439;&#x0442;&#x0430;:</span>
<div style='text-align: left'><b>".date("d/m/Y", $mne['time'])."</b> ".$mne['zagol']."<br/><small>
	".str_replace($sm1,$sm2,$mne['full'])."<br/>
<a href='news/fullnews.php?id=".$mne['id']."'>Мнения[".$mne1."]</a> |
<a href='news/'>&#x0412;&#x0441;&#x0435; &#x043D;&#x043E;&#x0432;&#x043E;&#x0441;&#x0442;&#x0438;>></a></small></div></div></div>";
	
?>