Tu jest kod i jak to przekombinowac??
function render_news($subject, $news, $info) {
global $locale;
echo "<table cellSpacing='0' cellPadding='3' width='100%' align='center' border='0'><tr>";
echo "<td class='td1'>";
echo "<table cellSpacing='0' cellPadding='0' width='100%' border='0'><tr>";
echo "<td class='td1'>";
echo "<table height='100%' cellSpacing='0' cellPadding='0' width='100%' border='0'><tr>";
echo "<td vAlign='top' width='100%'>";
echo "<table cellSpacing='0' cellPadding='0' width='100%'><tr>";
echo "<td><table cellSpacing='1' cellPadding='3' width='100%'class='td3'><tr>";
echo "<td class='td2'><table width='100%'><tr>";
echo "<td rowSpan='2'><img src='".THEME."images/icons/icon-news.gif'></td>";
echo "<td class='news-heading'>$subject</td>";
echo "<td align='right' rowSpan='2'>";
echo "".($info['news_ext'] == "y" ? "<a class='readmore' href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."";
if ($info['news_allow_comments'])
echo "<b>News Item</b><br />".$info['news_reads'].$locale['044']." \ ";
echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a>";
echo"</td></tr>";
echo "<tr><td class='smText'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])."</td></tr>";
echo "<tr><td colSpan='3'>";
echo "<table cellSpacing='1' cellPadding='1' width='100%' class='td3'><tr>";
echo "<td class='news-body'><table width='100%'><tr>";
echo "<td class='news-text'>$news</td></tr>";
echo "<tr><td class='news-footer' align='right'>";
echo "Read Comments <a href='news.php?readmore=".$info['news_id']."'><img src='".THEME."images/icons/icon-comments.gif 'alt='Read Comments' title='Read Comments' style='vertical-align:middle;'></a> Print Article <a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a> ";
if (iMEMBER) {
echo "Submit News <a href='".BASEDIR."submit.php?stype=n'><img src='".THEME."images/icons/icon-postnews.gif' alt='Create News' title='Create News' style='vertical-align:middle;'></a>";
}
echo "</td></tr></table></td></tr></table>";
echo "</td></tr></table></td></tr></table>";
echo "</td></tr></table>";
//echo "<img height='3' src='".THEME."images/spacer.gif' width='3'>";
echo "</td></tr></table></td></tr></table></td></tr></table>";
Edytowane przez h dnia 31.05.2007 21:30:44
|