Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Del News-Footer

Parašė Žmogus· 2008 Geg. 15 13:05:37
#2

function render_news($subject, $news, $info) {

echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='capmain' align='center'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo "<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
   echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a>  ";
echo "</td>
</tr>
</table>\n";

}


function render_article($subject, $article, $info) {
   
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td class='capmain' align='center'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo "<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "</td>
</tr>
</table>\n";

}






Nu čia kaip pvz, nes db tingiu visą padaryti

Redagavo Žmogus· 2008 Geg. 15 13:05:25