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

Parašė Žmogus· 2008 Geg. 15 19:05:21
#9

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='left' class='news-footer'>\n";
echo "Parašė: <a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> </td>";
echo"<td align='right' class='news-footer'>";
   echo "<a href='news.php?readmore=".$info['news_id']."'>Komentarų: [".$info['news_comments']."]</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";

}





Turėtu veikti

Redagavo Žmogus· 2008 Geg. 15 19:05:50