Parašė Waldoss· 2009 Kov. 29 11:03:34
#1
sveiki,stai iskilo tokia problema atsisiunciau tema tada idejau naujiena bet niera to knopkiaus kad naujiena galima butu skaityti placiau stai theme.php jeigu galite padekit:
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#2788b8";
$body_bg = "#f6f6f6";
$theme_width = "870";
$theme_width_l = "253";
$theme_width_r = "253";
function render_header($header_content) {
global $theme_width;
$soft = dbcount("(news_id)", "news");
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='full-header'>
<table callpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='uphead' align='left'>Šiuo metu turime <b>".$soft."</b> nemokamo softo</td>
<td class='uphead' align='right'>".showsubdate()."</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td rowspan='3'><img src='".THEME."images/header.png' width='515' height='257' alt=''></td>
<td rowspan='3'><img src='".THEME."images/header_1.png' width='50' height='257' alt=''></td>
<td><img src='".THEME."images/header_3.png' width='281' height='45' alt=''></td>
<td rowspan='3'><img src='".THEME."images/header_2.png' width='24' height='257' alt=''></td>
</tr>
<tr>
<td class='new_soft'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."news WHERE ".groupaccess('news_visibility')." AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().") ORDER BY news_datestamp DESC LIMIT 0,9");
echo "<table cellspacing='0' cellpadding='0' border='0' width='100%'>
<tr>
<td colspan='2' class='new_soft2'> Naujausias softas </td>
</tr>";
while ($data = dbarray($result)) {
$id = $data['news_id'];
$p = trimlink($data['news_subject'], 42);
echo "
<tr>
<td width='8%'><img src='".THEME."images/new_soft.png'></td>
<td width='92%' class='new_soft3'><a href='".BASEDIR."news.php?readmore=$id'>$p</a></td>
</tr>";
}
echo "</table>
</td>
</tr>
<tr>
<td><img src='".THEME."images/header_4.png' width='281' height='47' alt=''></td>
</tr>
</table>
</td>
</tr>
</table>\n
";
echo "
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='sub-header'>
<a href='".BASEDIR."index.php'>Pagrindinis</a>
<a href='".BASEDIR."news.php'>Softas</a>
<a href='".BASEDIR."news_cats.php'>Softo kategorijos</a>
<a href='#'>VIP softas</a>
<a href='#'>VIP privilegijos</a>
</td>
</tr>
</table>\n
";
echo "
<table cellpadding='0' cellspacing='0' width='100%'>\n
<tr>\n
";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "
</tr>\n
</table>\n";
echo "
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='footer1' align='left'>Dizaino idėja : <a href='http://judam.net'>Deccacolour</a></td>
<td class='footer2' align='right'>".stripslashes($settings['footer'])."</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='right' class='news-footer'>\n<b>";
echo openform("N",$info['news_id']).newsposter($info," ·").closeform("N",$info['news_id']);
echo "</b></td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," ·").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'><font color='#33b3e6'>.</font>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";
}
function closesidex() {
echo "</div>
</td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";
}
?>
Redagavo Waldoss· 2009 Kov. 29 11:03:51