Parašė Soo-2· 2009 Kov. 15 16:03:30
#1
Sveiki. Kas gali buti blogai. Po headeriu sukures panele, joje idejau kad rodytu data kada sukurta ta naujiena, bet man rodo data ne sendienos o 01-01-1970.
Stai visos paneles kodas
<?php
global $info;
$result = dbquery("SELECT * FROM ".$db_prefix."news ORDER BY news_datestamp DESC LIMIT 0,3");
if (dbrows($result) != 0) {
echo "<table cellpadding='0' cellspacing='0' align='left' >";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['news_subject'], 35);
echo "<tr>
<td>
<a href='".BASEDIR."news.php?readmore=".$data['news_id']."' title='".$data['news_subject']."'>
<font size='2px' color='d2c6b6'><b>$itemsubject</b></font></a></td></tr>";
echo "<tr><td><span style='font-size : 10px;font-weight : normal;'>".showdate("shortdate", $info['news_date'])."</span></td></tr>";
echo "<td><br><img src='".THEME."grafika/news_tarpas.png' alt=''></td></tr>";
}
echo "</table>";
}
?>
Redagavo Soo-2· 2009 Kov. 15 16:03:23