Parašė danieliusk· 2008 Rugp. 26 22:08:38
#10
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='main-body'>
$news
</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='news-footer'>".$locale['040']."<a class='news' href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])."</td>
<td align='right' class='news-footer'>\n";
if ($info['news_ext'] == "y") echo "<a class='news' href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n";
if ($info['news_allow_comments']) echo "<a class='news' href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> ·\n";
echo $info['news_reads'].$locale['044']." · <a class='news' href='print.php?type=N&item_id=".$info['news_id']."'>".$locale['045']."</a>";
if (checkrights("N"))
echo" · <form style='display:inline' name='editnews".$info['news_id']."' method='post' action='".ADMIN."news.php?news_id=".$info['news_id']."'><input type='hidden' name='edit' value='edit'><a class='news' href='javascript:document.editnews".$info['news_id'].".submit();'>".$locale['048']."</a></form>
";
echo"
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}