Parašė V8· 2008 Gru. 23 14:12:42
#1
Kaip istiasyti sita klaida ? bandau keisti theme.php dydzius ir vistiek niekas nesikeicia kas padet galit kame reikalas ?
Paveiksliukas:
theme.php
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#555555";
$body_bg = "#006600";
$theme_width = "600";
$theme_width_l = "188";
$theme_width_r = "188";
function render_header($header_content) {
global $theme_width,$db_prefix;
echo "<table align='center' cellspacing='0' cellpadding='0' width='792' class='outer-border'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='sritis_login'>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td width='486'></td>
<td width='195'><table align='center' cellpadding='0' cellspacing='0' width='195'>
<tr>
<td class='side-body-login'>
<div align='center'>
<form name='loginform' method='post' action='news.php'>
<tr>
<img src='".THEME."images/prisijungimas.png' align='right'><br>
</tr>
<tr>
<div align='right'><a href='register.php'><img src='".THEME."images/registracija.png' border='0'></a> <a href='lostpassword.php'><img src='".THEME."images/p_slaptazodis.png' border='0'></a></div>
</tr><br>
<tr>
<td align='left'><img src='".THEME."images/vardas.png'></td>
<td align='right'><input type='text' name='user_name' class='login_laukelis' style='width:104px;height:19px;'></td>
</tr>
<tr>
<td align='left'><img src='".THEME."images/slaptazodis.png'></td>
<td align='right'><input type='password' name='user_pass' class='login_laukelis' style='width:104px;height:19px;'></td>
</tr>
<tr>
<td align='left'><input type='checkbox' name='remember_me' value='y' title='Atsiminti mane' style='vertical-align:middle;'><img src='".THEME."images/prisiminti.png'></td>
<td align='right'><input type='submit' name='login' value='Jungtis' class='button_1'></td>
</tr>
</form>
</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td height='5'></td>
</tr>
</table>
</td>
<td width='111'></td>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%' class='sritis_panel'>
<tr>
<td width='378'></td>
<td align='center' width='186'><table align='center' cellpadding='0' cellspacing='0' width='186'>
<tr>
<td class='side-body-panel'>
<table width='100%' cellpadding='0' cellspacing='0'>";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,10");
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 23);
echo "<tr>\n<td class='small'><img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a></td>\n
<td align='right'>".$data['download_count']."</td>\n</tr>\n";
}
} else {
echo "<center>Siuntiniø nëra !</center>\n";
}
echo "</table></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td height='5'></td>
</tr>
</table>
</td>
<td width='20'></td>
<td align='center' width='186'><table align='center' cellpadding='0' cellspacing='0' width='186'>
<tr>
<td class='side-body-panel'>
<table width='100%' cellpadding='0' cellspacing='0'>";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,10");
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 23);
echo "<tr>\n<td class='small'><img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a></td>\n
<td align='right'>".$data['download_count']."</td>\n</tr>\n";
}
} else {
echo "<center>Siuntiniø nëra !</center>\n";
}
echo "
</table></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td height='5'></td>
</tr>
</table>
</td>
<td width='22'></td>
</tr>
</table>";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td width='164'><a href='".BASEDIR."index.php'><img src='".THEME."images/navigacija/pagrindinis.gif' border='0'></a></td>
<td width='161'><a href='".BASEDIR."viewpage.php?page_id=3'><img src='".THEME."images/navigacija/pramogos.gif' border='0'></a></td>
<td width='149'><a href='".BASEDIR."viewpage.php?page_id=4'><img src='".THEME."images/navigacija/siuntiniai.gif' border='0'></a></td>
<td width='151'><a href='".BASEDIR."forum/index.php'><img src='".THEME."images/navigacija/forumas.gif' border='0'></a></td>
<td width='167'><a href='".BASEDIR."viewpage.php?page_id=5'><img src='".THEME."images/navigacija/informacija.gif' border='0'></a></td>
</tr>
</table>";
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%' class='footer'>
<tr>
<td width='648' align='center'><span style='font-size : 10px;font-weight : normal;color:#B2B2B2;padding-right:20px;'>Sprendimas: <a href='http://php-fusion.co.uk/' target='_blank'>PHP-Fusion</a> | © Muzika.wu.lt 2009 | <a href='tell.php'>Rekomenduok draugui</a></span></td>
<td width='144'><img src='".THEME."images/made_by.png'> <a href='http://muzika.wu.lt/' target='_blank'>Mzuika.wu.lt</a></td>
</tr>
</table>";
}
function render_news($subject, $news, $info) {
echo "
<table cellpadding='0' cellspacing='0' width='545'>
<tr>
<td class='capmain'><span style='font-size : 10px;font-weight : normal;color:#B2B2B2;'>".showdate("longdate", $info['news_date'])."</span><br><a name='news_1' id='news_1'></a>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<form name='editnews1' method='post' action='administration/news.php&news_id=".$info['news_id']."'>
<td align='center' class='news-footer'><a href='news.php?readmore=".$info['news_id']."'>Naujiena plaèiau</a> | Skaityta: ".$info['news_reads']." | Komentarø: ".$info['news_comments']."</td>
</form>
</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 align='center' cellpadding='0' cellspacing='0' width='545'>
<tr>
<td align='center' class='side-center'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closetable() {
echo "</td>
<tr><td><img src='".THEME."images/side_center_bot.gif'></td></tr>
</tr>
</table>\n";
}
function openside($title) {
echo "<table align='center' cellpadding='0' cellspacing='0' width='188'>
<tr>
<td align='center' class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "<tr><td><img src='".THEME."images/scapmain_bot.gif'></td></tr>
</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";
}
?>
kame beda ?
Redagavo V8· 2008 Gru. 23 14:12:39