Sveiki gal gali apdeti sutvarkyti theme.php ? Noriu panaikinti siuntiniu paneles ir prisijungima, o headeri sujungti kad butu ne is 2 daliu o vienos :/
<?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 = "792";
$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'>";
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%'>\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> | © Jop.lt 2008 | <a href='tell.php'>Rekomenduok draugui</a></span></td>
<td width='144'><img src='".THEME."images/made_by.png'> <a href='http://emotive.in/' target='_blank'><img src='".THEME."images/emotive.png' border='0'></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";
}
?>
|