Przedszkolak
Postów: 7
Data rejestracji: 06.06.2005 11:50
|
Coś nie mogę dodać jednak załącznika :)
Więc podaję w code.
1. Style.css
body {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:12px;
padding:0px 0px 0px 0px;
margin: 0px 0px 0px 0px;
scrollbar-3dlight-color:#9EBFDF;
scrollbar-arrow-color:#6985B5;
scrollbar-darkshadow-color:#224891;
scrollbar-face-color:#DEE0E2;
scrollbar-highlight-color:#ffffff;
scrollbar-shadow-color:#DEE0E2;
scrollbar-track-color:#DEE0E2
}
.forumline {
border: solid 1px #2B438F;
background-color: #F8F8F8;
}
.links {
background-image: url(images/cellpic_nav.gif);
border-top: solid 1px #2B438F;
border-bottom: solid 1px #2B438F;
height: 20px;
}
.panel {
background: #354883 url(images/cellpic1.gif);
border: solid 1px #DCE1EE;
border-right-color: #CFDADE;
border-bottom-color: #CFDADE;
padding:0px 4px 2px 4px;font-size:11px;color:#FFFFFF;font-weight:bold;
text-align: left;
height: 27px;
}
.panel2 {
background: #FFF url(images/cellpic2.gif) top left repeat-x;
color: #455995;
font-weight: bold;
font-size: 11px;
height: 24px;
padding: 0 5px;
border: solid 1px #FFF;
border-right-color: #D6D6D6;
border-bottom-color: #D6D6D6;
white-space: nowrap;
}
.td { font-size:11px; color:#006699; font-weight:bold;background-color:#F2F5F9; padding:4px;
background-image:url(images/cellpic1.gif);background-repeat:repeat-x;}
/* General page style */
.bodyline {background: #F8F8F8;color:#000000;border:1px solid #A0A0A0}
a {color:#455995; text-decoration:none; font-size:10px;}
a:hover {color:#FF1010; text-decoration:none;}
a.side {color:#455995; text-decoration:none; font-size:10px;}
a:hover.side {color:#FF1010; text-decoration:none;}
a.white {color:#455995; text-decoration:none; font-size:11px;}
a:hover.white {color:#FF1010; text-decoration:none;}
form {margin:0px 0px 0px 0px;}
hr {height: 0px; border: solid #CCCCCC 0px; border-top-width: 1px;}
hr.side-hr {height: 0px; border: solid #CCCCCC 0px; border-top-width: 1px;}
td {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px;}
pre {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:9px;}
.alt {color:#1C1C1C;}
.white-header {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px; color:#444;background-color:#999386;
padding:4px; border-top:#2B438F 1px solid; border-bottom:#2B438F 1px solid;}
.full-header {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px; color:#fff;background-color:#999386;}
.button {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px; color:#000000;background-color:#fafafa;
border:1px #50643E solid;margin-top:2px;}
.textbox {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px; color:#000000;background-color:#fafafa;
border:1px #50643E solid;}
.clock {color:#455995; text-decoration:none; FONT-WEIGHT: normal;font-size:10px;}
.main-body {background-color: #F8F8F8;
border: solid 1px #FFF;
border-right-color: #D6D6D6;
border-bottom-color: #D6D6D6;
text-align: left;
padding:3px 4px 3px 4px;}
.side-body {background-color: #F8F8F8;
border: solid 1px #FFF;
border-right-color: #D6D6D6;
border-bottom-color: #D6D6D6;
text-align: left;
padding:4px 4px 6px 4px;}
.main-bg {background-color:#F8F8F8;}
.border {border-width:0px 1px 1px 1px;border-color:#2B438F;border-style:solid;}
.news-footer {background: #FFF url(images/cellpic2.gif) top left repeat-x;font-size:9px;font-weight:normal; color:#666666;background-color:#FFFFFF; padding:4px 4px 4px 4px;}
.capmain {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px;font-weight:bold;
border-width:1px 1px 1px 1px;border-color:#2B438F;border-style:solid;
color:#B78E00; height:24px; padding:2px 2px 2px 2px;}
.footer {
background-image: url(images/footer.gif);
border-bottom: solid 2px #FF1010;
border-top: solid 1px #2B438F;
font-size: 9px;
color: #808080;
padding:4px 4px 4px 4px;}
.copyrights {background: none; COLOR: #FFFDF0; FONT-SIZE: 10px; FONT-WEIGHT: normal; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.tiny {background: none; COLOR: #F4F1BF; FONT-SIZE: 10px; FONT-WEIGHT: normal; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.title {background: none; COLOR: #ffffff; FONT-SIZE: 11px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.block-title {BACKGROUND: none; COLOR: #4EA000; FONT-SIZE: 10px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica}
.head-title {background: none; COLOR: #346D00; FONT-SIZE: 10px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.date {background: none; COLOR: #2D2B2B; FONT-SIZE: 10px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
img {border: 0px;}
.capleft {width:2px;height:20px;}
.capright {width:2px;height:20px;}
.scapmain {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px;font-weight:bold; color:#000; height:19px; padding:0px 2px 0px 2px;
border-width:1px 0px 1px 0px;border-color:#2B438F #2B438F #2B438F #2B438F;border-style:solid;}
.tbl-border {background-color:#2B438F;}
.tbl {font-size:11px; padding:3px 4px 3px 4px;}
.tbl1 {font-size:11px; color:#091609; background-color:#F8F8F8;padding:4px}
.tbl2 {font-size:11px; color:#091609; background-color:#F8F8F8;padding:4px}
/* Forum header*/
.forum-caption {font-size:10px;font-weight:bold; color:#FFFFFF;background-color:#E9EBE7; height:24px; padding:0px 4px 2px 4px;
background-image:url(images/cellpic1.gif);background-repeat:repeat-x;}
/* Quote blocks */
.quote {color:#184993;background-color:#F0F0F0; padding:2px; margin:0px 20px 0px 20px; border:1px #2B438F solid;}
/* Voting Poll */
.poll {height:10px; border:1px #2B438F solid;}
.comment-name {font-weight:bold; color:#ddcc88;}
/* This is for the Shoutbox */
.shoutboxname {font-weight:bold; color:#ffddaa;}
.shoutbox {color:#06070A;}
.shoutboxdate {font-size:9px; color:#1C1C1C;}
.small {font-size:10px; font-weight:normal;}
.small2 {font-size:9px; font-weight:normal; color:#1C1C1C;}
.side-small {font-size:10px; font-weight:normal; color:#000;}
.side-label {background-color:none; font-weight:normal; color:#346D00; padding:2px;}
/* This is for the Photo Gallery */
.gallery {padding: 16px 0px 8px 0px;}
.gallery img {border: 1px solid #2B438F; filter: gray;}
.gallery:hover img {border: 1px solid #4E79F3; filter: none;}
img.activegallery {border: 1px solid #2B438F; filter: none;}
2. Theme.php
/************************/
/* Theme Settings */
/************************/
$body_text = "#000000";
$body_bg = "#F8F8F8";
$theme_width = "100%";
$theme_width_l = "165";
$theme_width_r = "165";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table class='bodyline' width='$theme_width' cellspacing='0' cellpadding='0' border='0'>";
echo "<tr><td align='center' valign='top'>";
echo "<table background='".THEME."images/logo_bg.gif' width='100%' border='0' cellspacing='0' cellpadding='4'><tr>";
// Start banner code
echo "<td width='100%' height='80'>$header_content</td>";
echo "</tr></table>";
// End banner code
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td class='links'><table width='100%' border='0' cellpadding='4' cellspacing='0'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
echo "<td>\n";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " <font color='#FF1010'>r6;</font>\n"; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td>\n";
echo "<td class='clock' align='right' nowrap>";
echo "<div id='Clock'></div>";
echo "<script type='text/javascript'>
<!--
var DayNam = new Array(
'Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
var MnthNam = new Array(
'January','February','March','April','May','June','July','August','September','October','November','December');
//-->
</script>";
echo "<script type='text/javascript' src='".THEME."/clock.js'></script>";
echo "</td></tr></table></td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "<tr valign='top'>";
echo "<td valign='middle' align='right'>";
echo "<table width='100%' cellpadding='4' bgcolor='#F8F8F8' cellspacing='0' border='0'>";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='$theme_width'><tr>";
echo "<td>".stripslashes($settings['footer'])."</td>";
echo "</tr></table></td></tr></table><br>";
echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0'>";
echo "<tr><td width='30%' class='footer' align='left'><div align='left'>";
if ($license == false) {
echo "Powered by <a target='_blank' href='http://www.php-fusion.co.uk'><img src='".THEME."images/fusion.gif' style='vertical-align:middle;'></a> v".$settings['version']." © 2003-2005";
}
echo "</div></td>";
echo "<td width='45%'class='footer' align='center'>Aphrodite - ";
echo "<a target='_blank' href='http://www.phpbbstyles.com/'>phpBBStyles.com</a> | ";
echo "Ported for PHP-Fusion by: <a target='_blank' href='http://phpfusion.org/'><img src='".THEME."images/fthemes.gif' style='vertical-align:middle;'></a></td>";
echo "<td width='25%' class='footer' align='right'>";
echo "<font class='clock'><b>".$settings['counter']." </b></font>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td></tr></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table class='forumline' border='0' cellspacing='0' width='100%' cellpadding='3'><tr>";
echo "<td class='panel'><img border='0' src='".THEME."images/small_arrow.gif'>$subject</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 class='forumline' border='0' cellspacing='0' width='100%' cellpadding='3'><tr>";
echo "<td class='panel'><img border='0' src='".THEME."images/small_arrow.gif'>$subject</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='24' 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";
}
// Open table begins
function opentable($title) {
echo "<table class='forumline' width='100%' cellpadding='2' cellspacing='0'>";
echo "<tr><td class='panel2'>$title</td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td class='main-body'>\n";
}
// Close table end
function closetable() {
echo "</td></tr></table>\n";
}
function openside($title) {
echo "<table border='0' class='forumline' cellspacing='0' width='100%' cellpadding='3'><tr>";
echo "<td class='panel' width='100%'>";
echo "<img src='".THEME."images/small_arrow.gif'>$title";
echo "</td></tr>";
echo "<tr><td class='side-body' width='100%'>";
}
function closeside() {
echo "</td></tr></table>";
tablebreak();
}
function opensidex($title,$open="on") {
if($open=="on"){$box_img="off";}else{$box_img="on";}
echo "<table border='0' class='forumline' cellspacing='0' width='100%' cellpadding='3'><tr>";
echo "<td class='panel'>";
echo "<img align='right' onclick=\"javascript:flipBox('$title')\" name='b_$title' border='0' src='".THEME."images/panel_$box_img.gif'>$title";
echo "</td></tr>";
echo "<tr><td class='side-body'width='100%'>";
echo "<div id='box_$title'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}
function closesidex() {
echo "</div></td></tr></table>";
tablebreak();
}
// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
pozdro |