Parašė ramon· 2008 Sau. 4 00:01:04
#12
Grizau ir padariau ;)
Stai kodas :
echo "<table align='center' cellpadding='0' cellspacing='1' width='400' class='tbl-border'>
<tr>
<td class='forum-caption' colspan='2'><b>".$data['user_name']."</b> rasytos naujienos</td>
</tr>
<tr>
<td class='tbl2' width='70%'><B>Naujienos pavadinimas</b></td>
<td class='tbl2' width='30%' nowrap='nowrap'><b>Data</b></td>
</tr>\n";
$a = dbquery("SELECT * FROM ".$db_prefix."news WHERE ".groupaccess('news_visibility' )." AND (news_start='0'||news_start<=".time()." ) AND (news_end='0'||news_end>=".time()." ) AND news_name='".$data['user_id']."'" );
while ($b = dbarray($a)) {
echo "<tr>
<td class='tbl1'><a href='news.php?readmore=".$b['news_id']."'>".trimlink($b['news_subject'], 50)."</a></td>
<td align='center' class='tbl1'><i>".showdate("forumdate", $b['news_datestamp'])."</i></td>
</tr>\n";
}
echo "</table><br>\n";
Simple, ane? :):)