Parašė SWIZZ· 2009 Lap. 17 21:11:25
#7
Ne neveikia... ;( Va kaip padariau:
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='494'>
<tr>
<td class='capmain-left'>\n";
if (!isset($_GET['readmore'])){
if ($info['news_ext'] == "y") {
echo "<a href='news.php?readmore=".$info['news_id']."' style='text-decoration: none'>$subject</a>\n";
} else {
echo $subject;
}
}
echo "</td>
<td class='capmain-right' align='center'>".$info['news_comments']."</td>
</tr>
<tr>
<td class='main-body' colspan='2'>$news</td>
</tr>
<tr>
<td class='news-footer' colspan='2'></td>
</tr>
</table>\n";
}
Man reikia, kad po naujiena rašytu "Skaityti toliau..." pvz čia:
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='494'>
<tr>
<td class='capmain-left'>\n";
if (!isset($_GET['readmore']) && $info['news_ext'] == "y") {
echo "<a href='news.php?readmore=".$info['news_id']."' style='text-decoration: none'>$subject</a>\n";
} else {
echo $subject;
}
echo "</td>
<td class='capmain-right' align='center'>".$info['news_comments']."</td>
</tr>
<tr>
<td class='main-body' colspan='2'>$news
Skaityti toliau...
</td>
</tr>
<tr>
<td class='news-footer' colspan='2'></td>
</tr>
</table>\n";
}
Redagavo SWIZZ· 2009 Lap. 17 21:11:31