Komunikat na górnym środkowym panelem
Witam Bardzo bym chciał umieścić an stronie ckomunikat identyczny jak na: www.koscierzyce.y...
Witaj Gościu nie masz dostępu do niektórych stron. Aby uzyskać całkowity dostęp należy się zarejestrować.
Oto mój plik Thema.php:
<?
if (!defined("IN_FUSION")) { die("Access Denied"); }
/************************/
/* Theme Settings */
/************************/
$theme_width = "990";
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");
define("THEME_BULLEo", "");
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $theme_width,$settings,$locale;
echo "
<table width='$theme_width' align='center' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td width='24' height='106'><img src='".THEME."images/darkSilver_03.gif' width='24' height='106' /></td>
<td width='58' height='106'><img src='".THEME."images/darkSilver_06.gif' width='58' height='106' /></td>
<td width='$theme_width' align='center' style='background-image:url(".THEME."images/darkSilver_07.gif)'>";
include(INFUSIONS.'master_ads_panel/master_ads.php');
echo "</td>
<td width='58' height='106'><img src='".THEME."images/darkSilver_11.gif' width='58' height='106' /></td>
<td width='28' height='106'><img src='".THEME."images/darkSilver_13.gif' width='28' height='106' /></td>
</tr>
</table>
<table width='$theme_width' align='center' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td width='24' style='background-image:url(".THEME."images/darkSilver_16.gif)'> </td>
<td class='white-header'><div align='center'><img src='http://img7.imageshack.us/img7/7033/zbuntowanionekp1.jpg'</td>
<td width='28' style='background-image:url(".THEME."images/darkSilver_20.gif)'> </td>
</tr>
</table>
<table width='$theme_width' align='center' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td width='21'><img src='".THEME."images/darkSilver_23.gif' width='21' height='19' alt='' /></td>
<td style='background-image:url(".THEME."images/darkSilver_24.gif)'> </td>
<td width='21'><img src='".THEME."images/darkSilver_27.gif' width='21' height='19' alt='' /></td>
</tr>
</table>
<table width='$theme_width' align='center' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td width='15' style='background-image:url(".THEME."images/darkSilver_28.gif)'><img src='images/spacer.gif' width='15' height='1' alt='' /></td>";
if (LEFT) { echo "<td class='side-body' valign='top'>".LEFT."</td>"; }
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-body' valign='top'>".RIGHT."</td>"; }
echo "
<td width='16' style='background-image:url(".THEME."images/darkSilver_31.gif)'><img src='images/spacer.gif' width='16' height='1' alt='' /></td>
</tr>
</table>
<table width='$theme_width' align='center' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td width='35'><img src='".THEME."images/darkSilver_34.gif' width='35' height='56' alt='' /></td>
<td class='footer' align='left' style='background-image:url(".THEME."images/darkSilver_35.gif)'>
<br />";
echo "".sprintf($locale['global_172'], substr((get_microtime() - START_TIME),0,4))."</td>";
echo"<td class='footer' align='center' style='background-image:url(".THEME."images/darkSilver_35.gif)'><br />".($license ? "" : showcopyright() )."</td>
<td class='footer' align='right' style='background-image:url(".THEME."images/darkSilver_35.gif)'><br />".showcounter()."</td>
<td width='35'><img src='".THEME."images/darkSilver_38.gif' width='35' height='56' /></td>
</tr>
</table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "
<table width='100%' border='0' cellspacing='0' cellpadding='3' class='tablebreak'>
<tr>
<td>
<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td width='30' style='background-image:url(".THEME."images/darkSilverHeader_01.gif)'> </td>
<td style='background-image:url(".THEME."images/darkSilverHeader_03.gif)'>
<table width='100%' border='0' cellspacing='0' cellpadding='4'>
<tr>
<td align='center'><font class='storytitle'>$subject</font></td>
</tr>
</table>
</td>
<td width='30' style='background-image:url(".THEME."images/darkSilverHeader_05.gif)'> </td>
</tr>
</table>
<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td width='16' style='background-image:url(".THEME."images/darkSilverFooter_05.gif)'><img src='images/darkSilverFooter_05.gif' width='16' height='8' alt='' /></td>
<td bgcolor='#000000'>
<table width='100%' border='0' cellspacing='0' cellpadding='4'>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td class='news-footer'>
<div align='center'>".newsposter($info, THEME_BULLEo)."</div>
<div align='center'>".newsopts($info, THEME_BULLEo).itemoptions("N",$info['news_id'])."</div>
</td>
</tr>
</table>
</td>
<td width='16' style='background-image:url(".THEME."images/darkSilverFooter_06.gif)'><img src='images/darkSilverFooter_06.gif' width='16' height='1' alt='' /></td>
</tr>
</table>
<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td width='16'><img src='".THEME."images/darkSilverFooter_01.gif' width='16' height='13' alt='' /></td>
<td height='13' style='background-image:url(".THEME."images/darkSilverFooter_02.gif)'><img src='images/darkSilverFooter_02.gif' width='1' height='13' alt='' /></td>
<td width='16'><img src='".THEME."images/darkSilverFooter_04.gif' width='16' height='13' alt='' /></td>
</tr>
</table>
</td>
</tr>
</table>";
}
function render_article($subject, $article, $info) {
global $locale;
echo "
<table width='$theme_width' align='center' border='0' cellspacing='0' cellpadding='3' class='tablebreak'>
<tr>
<td>
<table width='$theme_width' align='center' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td width='30' style='background-image:url(".THEME."images/darkSilverHeader_01.gif)'> </td>
<td style='background-image:url(".THEME."images/darkSilverHeader_03.gif)'>
<table width='$theme_width' align='center' border='0' cellspacing='0' cellpadding='4'>
<tr>
<td><font class='storytitle'>$subject</font></td>
</tr>
</table>
</td>
<td width='30' style='background-image:url(".THEME."images/darkSilverHeader_05.gif)'> </td>
</tr>
</table>
<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td width='16' style='background-image:url(".THEME."images/darkSilverFooter_05.gif)'><img src='images/darkSilverFooter_05.gif' width='16' height='8' alt='' /></td>
<td bgcolor='#000000'>
<table width='$theme_width' align='center' border='0' cellspacing='0' cellpadding='4'>
<tr>
<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>
</tr>
<tr>
<td class='news-footer'>
<div align='center'>".articleposter($info, THEME_BULLET).articleopts($info, THEME_BULLET).itemoptions("A",$info['article_id'])."</div>
</td>
</tr>
</table>
</td>
<td width='16' style='background-image:url(".THEME."images/darkSilverFooter_06.gif)'><img src='images/darkSilverFooter_06.gif' width='16' height='1' alt='' /></td>
</tr>
</table>
<table width='$theme_width' align='center' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td width='16'><img src='".THEME."images/darkSilverFooter_01.gif' width='16' height='13' alt='' /></td>
<td height='13' style='background-image:url(".THEME."images/darkSilverFooter_02.gif)'><img src='images/darkSilverFooter_02.gif' width='1' height='13' alt='' /></td>
<td width='16'><img src='".THEME."images/darkSilverFooter_04.gif' width='16' height='13' alt='' /></td>
</tr>
</table>
</td>
</tr>
</table>";
}
// Open table begins
function opentable($title) {
echo "
<table width='100%' border='0' cellspacing='0' cellpadding='3' class='tablebreak'>
<tr>
<td>
<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td width='30' height='25' style='background-image:url(".THEME."images/darkSilverHeader_01.gif)'></td>
<td height='25' style='background-image:url(".THEME."images/darkSilverHeader_03.gif)'>
<div align='center'><font class='block-title'><strong>$title</strong></font></div>
</td>
<td width='30' height='25' style='background-image:url(".THEME."images/darkSilverHeader_05.gif)'></td>
</tr>
</table>
<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td width='16' style='background-image:url(".THEME."images/darkSilverFooter_05.gif)'></td>
<td>";
}
// Close table end
function closetable() {
echo" </td>
<td width='16' style='background-image:url(".THEME."images/darkSilverFooter_06.gif)'></td>
</tr>
</table>";
echo " <table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td width='16'><img src='".THEME."images/darkSilverFooter_01.gif' width='16' height='13' alt='' /></td>
<td height='13' style='background-image:url(".THEME."images/darkSilverFooter_02.gif)'><img src='images/darkSilverFooter_02.gif' width='1' height='13' alt='' /></td>
<td width='16'><img src='".THEME."images/darkSilverFooter_04.gif' width='16' height='13' alt='' /></td>
</tr>
</table>
</td>
</tr>
</table>";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
$boxname = str_replace(" ", "", $title);
echo "
<table width='100%' border='0' cellspacing='0' cellpadding='3' class='tablebreak'>
<tr>
<td>
<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td width='30' height='25' style='background-image:url(".THEME."images/darkSilverHeader_01.gif)'></td>
<td height='25' style='background-image:url(".THEME."images/darkSilverHeader_03.gif)'>
<div align='center'><font class='block-title'><strong>$title</strong></font>
".($collapse ? " ".panelbutton($state, $boxname)."" : "")."</div>
</td>
<td width='30' height='25' style='background-image:url(".THEME."images/darkSilverHeader_05.gif)'></td>
</tr>
</table>
<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td width='16' style='background-image:url(".THEME."images/darkSilverFooter_05.gif)'></td>
<td>";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside() {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo " </td>
<td width='16' style='background-image:url(".THEME."images/darkSilverFooter_06.gif)'></td>
</tr>
</table>
<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td width='16'><img src='".THEME."images/darkSilverFooter_01.gif' width='16' height='13' alt='' /></td>
<td height='13' style='background-image:url(".THEME."images/darkSilverFooter_02.gif)'><img src='images/darkSilverFooter_02.gif' width='1' height='13' alt='' /></td>
<td width='16'><img src='".THEME."images/darkSilverFooter_04.gif' width='16' height='13' alt='' /></td>
</tr>
</table>
</td>
</tr>
</table>";
}
?>
Kliknij i zaczekaj na załadowanie kodu ...
Edytowane przez Pieka dnia 21.02.2009 17:59:11
|