Parašė Dandžu· 2008 Bir. 23 13:06:44
#1
Taigi kodinu čia tokę theme ir pasidariau naujienos show hide. Ir reikia padaryti naujiausią naujieną visad išksleistą.
function render_news($subject, $news, $info, $open="off") {
global $locale,$boxcounter;
$boxname = "expbox".$boxcounter;
$boxcounter++;
$box_img = ($open=="on" ? "off" : "on");
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td width='100%'><table cellSpacing='0' cellPadding='0' width='100%' border='0'>";
echo "<tr><td width='100%' height='18' class='naujienos-cellpic' align='center'>$subject</td></tr>";
echo "<tr><td width='100%' bgColor='#ccd5d1'><img valing='bottom' onclick=\"javascript:flipBox('$boxname')\" name='b_$boxname' alt='$box_img' src='".THEME."images/panel_$box_img.png'> [ ".showdate("longdate", $info['news_date'])." ] Parašė <a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>, ".$locale['043']." - <a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments']."</a>, Perskaitė - ".$info['news_reads']."</td></tr><tr><td width='100%' bgColor='#ffffff'>";
echo "<div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">\n";
echo "$news";
echo "</td></tr></table></td></tr></table>";
tablebreak();
}