Parašė Gyciagas· 2008 Lap. 11 17:11:39
#1
Norėčiau šituos panaikinti
ir padaryti tokius
1 paveikslelio Theme.php
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#000000";
$body_bg = "#333333";
$theme_width = "1000";
$theme_width_l = "171";
$theme_width_r = "171";
function render_header($header_content) {
global $theme_width,$settings;
echo"<center><table id=\"Table_01\" width=\"1000\" height=\"456\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
echo" <tr>";
echo" <td>";
echo" <img src=\"".THEME."images/header_01.jpg\" width=\"87\" height=\"20\"></td>";
echo" <td>";
echo" <img src=\"".THEME."images/header_02.jpg\" width=\"826\" height=\"20\"></td>";
echo" <td>";
echo" <img src=\"".THEME."images/header_03.jpg\" width=\"87\" height=\"20\"></td>";
echo" </tr>";
echo" <tr>";
echo" <td>";
echo" <img src=\"".THEME."images/header_04.jpg\" width=\"87\" height=\"324\"></td>";
echo" <td>";
echo" <img src=\"".THEME."images/header_05.jpg\" width=\"826\" height=\"324\"></td>";
echo" <td>";
echo" <img src=\"".THEME."images/header_06.jpg\" width=\"87\" height=\"324\"></td>";
echo" </tr>";
echo" <tr>";
echo" <td>";
echo" <img src=\"".THEME."images/header_07.jpg\" width=\"87\" height=\"24\"></td>";
echo" <td>";
echo" <img src=\"".THEME."images/header_08.jpg\" width=\"826\" height=\"24\"></td>";
echo" <td>";
echo" <img src=\"".THEME."images/header_09.jpg\" width=\"87\" height=\"24\"></td>";
echo" </tr>";
echo" <tr>";
echo" <td>";
echo" <img src=\"".THEME."images/header_10.jpg\" width=\"87\" height=\"80\"></td>";
echo" <td background=\"".THEME."images/header_11.jpg\" width=\"826\" height=\"69\" alt=\"\"><center><FONT FACE=\"Verdana\" SIZE=\"1\" COLOR=\"#FFFFFF\"><b>".showsublinks("","white")."</b></FONT></center></td>";
echo" <td>";
echo" <img src=\"".THEME."images/header_12.jpg\" width=\"87\" height=\"80\"></td>";
echo" </tr>";
echo" <tr>";
echo" <td>";
echo" <img src=\"".THEME."images/header_13.jpg\" width=\"87\" height=\"8\"></td>";
echo" <td>";
echo" <img src=\"".THEME."images/header_14.jpg\" width=\"826\" height=\"8\"></td>";
echo" <td>";
echo" <img src=\"".THEME."images/header_15.jpg\" width=\"87\" height=\"8\"></td>";
echo" </tr>";
echo"</table>
<table width=\"1000\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"101\" background=\"".THEME."images/lt.jpg\"> </td>
<td>\n";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</td>
<td width=\"101\" background=\"".THEME."images/rt.jpg\"> </td>
</tr>
</table>
<table id=\"Table_01\" width=\"1000\" height=\"69\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
echo" <tr>";
echo" <td>";
echo" <img src=\"".THEME."images/footer_01.gif\" width=\"97\" height=\"28\"></td>";
echo" <td background=\"".THEME."images/footer_02.gif\" width=\"100%\" height=\"28\"></td>";
echo" <td>";
echo" <img src=\"".THEME."images/footer_03.gif\" width=\"97\" height=\"28\"></td>";
echo" </tr>";
echo" <tr>";
echo" <td background=\"".THEME."images/footer_04.gif\" width=\"97\" height=\"1\"></td>";
echo" <td background=\"".THEME."images/footer_05.gif\" width=\"100%\" height=\"1\">";
if ($license == false) {
echo "<center><b><FONT FACE=\"Times New Roman\" SIZE=\"2\" COLOR=\"#FFFFFF\"> <a target='_blank' href='http://l2.nkk.lt'></b><b><FONT FACE=\"Times New Roman\" SIZE=\"1\" COLOR=\"#FFFFFF\"> L2-Failai </a></center>";
}
echo "</td>";
echo" <td background=\"".THEME."images/footer_06.gif\" width=\"97\" height=\"1\"></td>";
echo" </tr>";
echo" <tr>";
echo" <td>";
echo" <img src=\"".THEME."images/footer_07.gif\" width=\"97\" height=\"22\"></td>";
echo" <td background=\"".THEME."images/footer_08.gif\" width=\"100%\" height=\"22\"></td>";
echo" <td>";
echo" <img src=\"".THEME."images/footer_09.gif\" width=\"97\" height=\"22\"></td>";
echo" </tr>";
echo" <tr>";
echo" <td background=\"".THEME."images/footer_10.gif\" width=\"97\" height=\"18\"></td>";
echo" <td background=\"".THEME."images/footer_11.gif\" width=\"100%\" height=\"18\"><br><b><center><font class='visits'>".$settings['counter']." Unikaliu apsilankymu</font></center></b><br>".stripslashes($settings['footer'])."<br></td>";
echo" <td background=\"".THEME."images/footer_12.gif\" width=\"97\" height=\"18\"></td>";
echo" </tr>";
echo"</table></center>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table border='0' style='border: 1px solid #000000' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td background='".THEME."images/cell1.gif' height='22'><img border='0' src='".THEME."images/panel_img.gif'> <font class='block-news'>$subject</font></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>$news</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'> ";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])." </td>";
echo "<td height='24' align='right' class='news-footer'>";
echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."";
if ($info['news_allow_comments'])
echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> · ";
echo "".$info['news_reads'].$locale['044']." ";
echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table border='0' style='border: 1px solid #000000' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td background='".THEME."images/cell1.gif' height='22'><img border='0' src='".THEME."images/panel_img.gif'> <font class='block-news'>$subject</font></td>";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
echo "<td height='22' align='right' class='news-footer'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
echo "".$info['article_reads'].$locale['044']." ";
echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='2' cellspacing='1' style='border: 1px solid #000000'>";
echo "<tr><td background='".THEME."images/cell1.gif' bgcolor='#333333' height='22'><font class='head-title'> $title</font></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td></tr></table>\n";
}
function openside($title) {
echo "<table border='0' style='border: 1px solid #000000' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='22' width='100%' background='".THEME."images/cell1.gif'>";
echo "<img border='0' src='".THEME."images/panel_img.gif'> <font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#333333' background='".THEME."images/back.gif' class='side-body' width='100%'>";
}
function closeside() {
echo "</td></tr></table>";
tablebreak();
}
function opensidex($title,$open="on") {
$box_img = ($open=="on" ? "off" : "on");
echo "<table border='0' style='border: 1px solid #000000' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='22' width='100%' background='".THEME."images/cell1.gif'>";
echo "<img align='left'onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'><font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#333333' class='side-body'width='100%' '".THEME."images/back.gif'>";
echo "<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</div></td></tr></table>";
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='5'>";
echo "</td></tr></table>\n";
}
?>
2 paveikslelio Theme.php
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#ffffff";
$body_bg = "#000000";
$theme_width = "900";
$theme_height= "100%";
$theme_width_l = "175";
$theme_width_r = "175";
function render_header($header_content) {
global $theme_width; echo "<table cellpadding='0' cellspacing='0' width='900' align='center'>\n<tr><td aling='left' width='30' height='35'></td><td class='navbar' align='center' width='900' height='35'>".showsublinks("·","white")."</td><td aling='left' width='30' height='35'></td>
</tr>
</table>\n";
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header'>
<table cellpadding='0' cellspacing='0' width='100%'>
</table>
</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%' class='footerbg'>
<tr>
<td class='footer' align='center' width='100%' height='25'><a href='http://aš' align='left'>PHP-Fusion</a> ©<a href='http://aš/profile.php?lookup=10138' align='right'> SimpleMind</a><br>".showcounter("·","white")."
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr><td>
<table cellpadding='0' cellspacing='0' width='100%'>
<td aling='left' width='21' height='25'><img src='".THEME."/images/sidenavbg_left.png'></td>
<td class='capmain' align='center'>$subject</td>
<td aling='right' width='21' height='25'><img src='".THEME."/images/sidenavbg_right.png'></td>
</td></tr></table>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," ·").newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr><td>
<table cellpadding='0' cellspacing='0' width='100%'>
<td aling='left' width='20' height='25'><img src='".THEME."/images/sidenavbg_left.png'></td>
<td class='capmain' align='center' height='25'>$subject</td>
<td aling='right' width='20' height='25'><img src='".THEME."/images/sidenavbg_right.png'></td>
</td></tr></table>
<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>
<table cellpadding='0' cellspacing='0' width='100%'>
<td aling='left' width='20' height='25'><img src='".THEME."/images/sidenavbg_left.png'></td>
<td class='capmain' align='center' height='25'>$title</td>
<td aling='right' width='20' height='25'><img src='".THEME."/images/sidenavbg_right.png'></td>
</td></tr></table>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr><td>
<td aling='left' width='20' height='25'><img src='".THEME."/images/sidenavbg_left.png'></td>
<td class='scapmain' align='center' height='25'>$title</td>
<td aling='right' width='20' height='25'><img src='".THEME."/images/sidenavbg_right.png'></td>
</td></tr></table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr></table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='left' width='20' height='3'><img src='".THEME."/images/panbtleft.png'></td>
<td width='100%' height='3' class='subbt'></td>
<td align='right' width='20' height='3'><img src='".THEME."/images/panbtright.png'></td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr><td>
<table cellpadding='0' cellspacing='0' width='100%'>
<td aling='left' width='20' height='25'><img src='".THEME."/images/sidenavbg_left.png'></td>
<td class='scapmain' align='center' height='25'>$title</td>
<td class='scapmain' align='center:right'>".panelbutton($state,$boxname)."</td>
<td aling='right' width='20' height='25'><img src='".THEME."/images/sidenavbg_right.png'></td>
</td></tr></table>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="on"?" style='display:none'":"").">\n";
}
function closesidex() {
echo "</div>
</td>
</tr></table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='left' width='20' height='3'><img src='".THEME."/images/panbtleft.png'></td>
<td width='100%' height='3' class='subbt'></td>
<td align='right' width='20' height='3'><img src='".THEME."/images/panbtright.png'></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 MAnjack· 2008 Lap. 11 18:11:06