Weteran
Postów: 3460 Pomógł: 123
Data rejestracji: 31.03.2005 20:10
|
Z tego co widzę, as nie zamknął poprzedniego tematu bez powodu...
edit by as//... temat trafił do Kosza za notoryczne pisanie postu pod postem przez ~kamil1446. Posty oczywiście usuwałem ale pojawiały się ponownie, więc cierpliwość moja (która jest ponoć anielska) wyczerpała się...
<?
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/*--------------------------------------------+
| Bluescape Theme for PHP-Fusion v6.x |
|---------------------------------------------|
| author: PHP-Fusion Themes © 2005 |
| web: http://phpfusion.org |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
// theme settings
$body_text = "#555555";
$body_bg = "#FEFEFE";
$theme_width = "100%";
$theme_width_l = "170";
$theme_width_r = "170";
// Right Panels off in Forum Mode
//$theme_panels_exclude = array("/forum/");
include THEME."menu.php";
function render_header($header_content) {
global $theme_width,$settings, [color=red][b]$locale, $db_prefix[/b][/color];
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' class='body-border'>";
echo "<tr><td><table cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td><table cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td><div align='right' id='clockbar'><div class='clockbarcolor'>";
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/clock.js'></script></div></div>";
echo "<div align='right' id='pageheader'>";
echo "<table style='WIDTH: 100%' height='50' cellSpacing='0' cellPadding='0' border='0'><tr>";
echo "<td style='WIDTH: 45%'>";
echo "<img alt='".$settings[sitename]."' src='".THEME."images/logo.jpg' border='0' width='216' height='74'></a>";
echo "</td>";
echo "<td style='padding-right:15px;' align='right'><a class='clockbarcolor' href='#' onClick=\"return clickreturnvalue()\" onMouseover=\"dropdownmenu(this, event, menu1, '185px')\" onMouseout=\"delayhidemenu()\"><img src='".THEME."images/quicktips.gif'></a></td>";
echo "</tr></table></div>";
echo "<table style='WIDTH: 100%' cellSpacing='0' cellPadding='0' border='0'><tr>";
echo "<td class='subheader'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " - \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='subheader-text'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target."' class='subheader-text'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</div></td>[color=red][b]<td>";
require_once INFUSIONS."FOLDER_W_KTORYM_JEST_INFUSION/PLIK_INFUSIONA.PHP";
echo "</TD>[/b][/color]<td class='subheader' vAlign='center' align='right'>";
echo "<form name='search' action='".BASEDIR."search.php?stype=f' method='post'>";
echo "<table cellSpacing='0' width='100%' cellPadding='0' border='0'><tr>";
echo "<td align='right'><b>Search</b> ";
echo "<input type='text' class='input' name='stext' value='Search Forums' onBlur=\"if(this.value=='') this.value='Search Forums';\" onFocus=\"if(this.value=='Search Forums') this.value='';\">";
echo " <input name='option' class='submit' type='submit' value='Search'>";
echo "</td></tr></table></form>";
echo "</td></tr></table></div>";
echo "</td></tr></table>";
echo "</td></tr></table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
} Trochę w ciemno to robiłem (zmiany są wytłuszczone), więc pewnie będziesz miał jeszcze trochę zabawy. |
Przedszkolak
Postów: 27
v6.01.xxx Data rejestracji: 04.10.2006 14:59
|
zrobiłem szefie tak jak kazałeś, ale brakuje mi tylko jednego ;)
Chce aby to wyglądało tak: (wygląd górnej belki)
Dzisiaj jest..... Imeniny obchodzi.... | Twój IP:[/center]
i żeby to było na tle tej belki, a mi wyszło takie coś:( -> załącznik (problemik.jpg)
Proszę, bardzo prosze o pomoc!!! Tylko z tym mam najwiekszy porblem.... prosze:(
kod thema:
<?
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk|
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/*--------------------------------------------+
| Bluescape Theme for PHP-Fusion v6.x |
|---------------------------------------------|
| author: PHP-Fusion Themes © 2005 |
| web: http://phpfusion.org|
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
// theme settings
$body_text = "#555555";
$body_bg = "#FEFEFE";
$theme_width = "100%";
$theme_width_l = "170";
$theme_width_r = "170";
// Right Panels off in Forum Mode
//$theme_panels_exclude = array("/forum/");
include THEME."menu.php";
function render_header($header_content) {
global $theme_width,$settings, $locale, $db_prefix;
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' class='body-border'>";
echo "<tr><td><table cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td><table cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td><div align='right' id='clockbar'><div class='clockbarcolor'>";
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/clock.js'></script></div></div>";
echo "<div align='right' id='pageheader'>";
echo "<table style='WIDTH: 100%' height='50' cellSpacing='0' cellPadding='0' border='0'><tr>";
echo "<td style='WIDTH: 45%'>";
echo "<img alt='".$settings[sitename]."' src='".THEME."images/logo.jpg' border='0' width='216' height='74'></a>";
echo "</td>";
echo "<td style='padding-right:15px;' align='right'><a class='clockbarcolor' href='#' onClick=\"return clickreturnvalue()\" onMouseover=\"dropdownmenu(this, event, menu1, '185px')\" onMouseout=\"delayhidemenu()\"><img src='".THEME."images/quicktips.gif'></a></td>";
echo "</tr></table></div>";
echo "<table style='WIDTH: 100%' cellSpacing='0' cellPadding='0' border='0'><tr>";
echo "<td class='subheader'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " - \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='subheader-text'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target."' class='subheader-text'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</div></td><td>";
require_once INFUSIONS."imieniny/imieniny.php";
require_once INFUSIONS."ip_panel/ip_panel.php";
echo "<table cellSpacing='0' width='100%' cellPadding='0' border='0'><tr>";
echo "</TD><td class='subheader' valign='center' align='right'>";
echo "</td></tr></table></form>";
echo "</td></tr></table></div>";
echo "</td></tr></table>";
echo "</td></tr></table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}
function render_footer($license=false) {
kamil1445 dodał/a następującą grafikę:
Edytowane przez kamil1445 dnia 09.10.2006 13:04:41
|
Przedszkolak
Postów: 28 Ostrzeżeń: 1
v7.01.06 Data rejestracji: 11.07.2007 00:33
|
Mam problem. Chcę wstawić info z imieninami na tej samej belce co zegar, tzn. by imieniny były po lewej stronie, a zegar po prawej, ale oba w jednej linii, wierszu. Wstawiałem już skrypt, ale były jeden pod drugim. Będę wdzięczny za pomoc.
Adres strony: http://www.slesin...g/news.php
render header z theme.php:
function render_header($header_content) {
global $theme_width,$settings;
echo "<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0'>";
echo "<tr><td><img src='".THEME."images/space.gif' width='770' height='1'></td></tr>";
echo "<tr><td><div class='main-bg'>";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0' background='".THEME."images/center_head.jpg'>";
echo "<tr><td width='26'><img src='".THEME."images/left_head.jpg' width='26'></td>";
echo "<td><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td height='100' colspan='2' class='title' style='padding-top:16px;'>";
echo "<table width='100%' border='0' cellpadding='4' cellspacing='0'><tr>";
echo "<td style='padding-top:6px;' width='100%'>$header_content</td></tr></table></td></tr>";
echo "<tr><td align='left' width='90%' valign='middle' height='29'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " <img src='".THEME."images/divider.gif'> \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='nav'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='nav'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td>";
echo "<td width='10%' class='nav' height='29' valign='middle' align='right'>";
echo "<table cellpadding='0' cellspacing='0'><tr><td>";
if (iMEMBER) {
echo "<div id='search'>";
//Search Script
echo "<form name='search' action='".BASEDIR."search.php?stype=f' method='post'>";
echo "<div align='left' class='search'>";
echo "<input type='text' class='inputbox' name='stext' value='Search Forums' onBlur=\"if(this.value=='') this.value='Search Forums';\" onFocus=\"if(this.value=='Search Forums') this.value='';\">";
echo "<input type='hidden' name='option' value='search'></div></form></div></td>";
}else{
echo "</td>";
}
//End Search Script
echo "</tr></table></td></tr></table></td>";
echo "<td width='26'><img src='".THEME."images/right_head.jpg' width='26'></td></tr></table>";
echo "<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0'><tr>";
echo "<td width='11' height='25' background='".THEME."images/border_left.jpg'></td>";
echo "<td height='25' bgcolor='#F1F1F1' style='border-bottom: 1px solid #C5C5C5; border-top: 5px solid #FFFFFF;'></td>";
echo "<td height='25' align='right' bgcolor='#F4F4F7' style='border-bottom: 1px solid #C5C5C5; border-top: 5px solid #FFFFFF;'>";
// Clock Script
echo "<div class='datetime' id='Clock'></div>";
echo " <script type='text/javascript'>
<!--
var DayNam = new Array(
'Niedziela','Poniedziałek','Wtorek','¦roda','Czwartek','Pi±tek','Sobota');
var MnthNam = new Array(
'Styczeń','Luty','Marzec','Kwiecień','Maj','Czerwiec','Lipiec','Sierpień','Wrzesień','Pażdziernik','Listopad','Grudzień');
//-->
</script>";
echo "<script type='text/javascript' src='".THEME."/clock.js'></script>";
echo "</div></td>";
// Clock Script Ends
echo "<td width='11' height='25' align='right' background='".THEME."images/border_right.jpg'> </td></tr></table>";
echo "<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0'><tr>";
echo "<td valign='top' align='left' class='left' width='11' background='".THEME."images/border_left.jpg'> </td>";
echo "<td valign='top'>";
echo "<table width='100%' cellpadding='5' cellspacing='0' border='0' align='center'>";
}
skrypt imieniny do wstawienia:
define('AD_IPATH',"".BASEDIR."imieniny/"); // sciezka do katalogu ze skryptem
define('AD_DATE',1); // gdy 1 - aktualna data jest wyswietlana
function ad_imieniny()
{
$month = array(1=>'Styczenia','Lutego','Marca','Kwietnia','Maja','Czerwca','Lipca',
'Sierpnia','Wrze¶nia','PaĽdziernika','Listopada','Grudnia');
$day = array("niedziela", 'poniedziałek','wtorek','¦roda','czwartek','pi±tek','sobota');
$dzisiaj = getdate();
$ad_m = date("m");
$ad_n = date("n");
$ad_d = date("j");
$name=@file(AD_IPATH.$ad_m);
if(AD_DATE==1) echo ' Imieniny obchodz±: <b>'.$name[$ad_d].'</b>';
}
ad_imieniny()
Kody dajemy w code, poprawiłam - Milka
Edytowane przez Milka dnia 30.07.2007 23:25:42
|