Czy pomożecie mi zrobić wyśietlanie newsów takie jak na webmerze wygląda to tak
Moje funkcje w themie są następujące:
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td width='100%' class='side_body'>$subject</td></tr></table>
<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='main-body'><div style='width:100%;vertical-align:top;'>$news</div><br>
<div style='margin-top:5px'>
<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td>".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])."</td></tr>
<tr>
<td align='right' class='infobar2'>".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> <b>·</b>\n" : "")."";
if ($info['news_allow_comments'])
echo" <a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> <b>·</b>
".$info['news_reads'].$locale['044']." <b>-</b>
<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>
</td></tr></table></div></td>
<td class='border-right'><img src='".THEME."images/blank.gif' width='13' height='1' alt='' style='display:block'>
</td></tr></table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td width='100%' class='panel-main'>$subject</td>
</tr></table>
<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='main-body'><div style='width:100%;vertical-align:top;'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div><br>
<div style='margin-top:5px'>
<table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='infobar'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])."</td>
</tr>
<tr>
<td align='right' class='infobar2'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." <b>·</b>
".$info['article_reads'].$locale['044']." <b>-</b>
<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>
</td></tr></table></div></td>
</tr>
</table>\n";
}
O ile o to właśnie chodzi bo z tego co wim to tak.Proszę o odpowiedź!!!:D;)
.-braak-.
|