Parašė bad_user· 2008 Rugp. 13 21:08:37
#4
Sena render news keisk į šitą:
function render_news($subject, $news, $info) {
global $aidlink,$item_type;
$res = "";
echo "<table cellpadding='0' cellspacing='0' width='$theme_width'>
<tr>
<td class='capmain'>$subject<br><span style='font-size : 10px;font-weight : normal;color:#FFFFFF;'>".showdate("shortdate", $info['news_date'])."</span></td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<form name='editnews".$info['news_id']."' method='post' action='".ADMIN."news.php".$aidlink."&news_id=".$info['news_id']."'>
<td align='center' class='news-footer'><a href='news.php?readmore=".$info['news_id']."'>Naujiena plaèiau</a> | <font color='FFF'>Skaityta: ".$info['news_reads']." | Komentarø: ".$info['news_comments']."</font></td>
</form>
</tr>
</table>\n";
}
Seną render header keisk į:
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' class='outer-border'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='header_top'>
<table cellpadding='0' cellspacing='0' width='100%'>
<td width='500'></td>
<td width='200'></td>
<td width='13' height='28'align='left'><img src='".THEME."images/line_l.png'></td>
<td width='235' align='left' height='28' background='".THEME."images/line_grad.png' class='line'>LT EN RU</td>
<td width='13' align='left' height='28'><img src='".THEME."images/line_r.png'></td>
</table>
</td>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='outer-border'>\n<tr>
<td><img src='".THEME."header.gif'></td>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>
<td class='linija'></td>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}