Witam,
Mój problem polega na kodowaniu w?a?nie tylko u?yciu tego theme, poniewa? tabelka wy?wietlania daty dzia?a przy u?yciu pliku JScript clock.js. Próbowa?em zmieni? kodowanie pliku theme.php dzi?ki Notatnik SP lecz ?adnych efektów... Mo?e kto? wie gdzie le?y problem?
theme.php
<?php
/*--------------------------------------------+
| PHP-Fusion v7 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2007 |
| web: http://www.php-fusion.co.uk |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU Affero GPL v3. |
+--------------------------------------------*/
/*--------------------------------------------+
| Webmaster Files Theme for PHP-Fusion v7.x |
| Modified by:http://www.webmaster-files.com |
|---------------------------------------------|
| author: PHP-Fusion Themes © 2007 |
| web: http://phpfusion-themes.com |
| email: |
|---------------------------------------------|
| Converted to V7 by Harly Petersen |
| web: http://php-fusion.openworld.dk |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU Affero GPL v3. |
+--------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
//Theme settings
define("THEME_BULLET", "<img class='bullet' src='".THEME."images/bullet.gif' alt='->' border='0' />");
define("THEME_BULLET2", "<img class='bullet2' src='".THEME."images/bullet2.gif' alt='->' border='0' />");
define("THEME_WIDTH", "80%");
require_once INCLUDES."theme_functions_include.php";
// Right Panels off in Forum Mode
//$theme_panels_exclude = array("/forum/");
function render_page($license=false) {
global $settings, $main_style, $locale;
echo "<table align='center' cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' class='body-border'>
<tr>
<td><table cellpadding='0' cellspacing='0' width='100%' align='center'><tr>
<td><div align='right' id='clockbar'><div class='clockbarcolor'>";
echo "<div 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(
'styczenia','lutego','marca','kwietnia','maja','czerwca','lipca','sierpnia','wrze?nia','pa?dziernika','listopada','grudnia');
//-->
</script>";
echo "<script type='text/javascript' src='".THEME."/clock/clock.js'></script></div></div>
<div align='right' id='pageheader'>
<table style='WIDTH: 100%; height:50px;' cellspacing='0' cellpadding='0' border='0'><tr>
<td align='center'>\n".showbanners()."</td>
</tr>
</table>
</div>
<table style='WIDTH: 100%' cellspacing='0' cellpadding='0' border='0'><tr>
<td class='subheader'>".showsublinks(" ".THEME_BULLET2." ", "white")."</td>
<td class='subheader' style='vertical-align:middle;' align='right'>
<form action='".BASEDIR."search.php?stype=f' method='post'>
<table cellspacing='0' width='100%' cellpadding='0' border='0'><tr>
<td align='right'><b>Szukaj</b> <input type='text' class='input' name='stext' value='Szukaj na Forum' onBlur=\"if(this.value=='') this.value='Szukaj na Forum';\" onFocus=\"if(this.value=='Szukaj na Forum') this.value='';\"> <input name='option' class='submit' type='submit' value='Szukaj' />
</td></tr>
</table>
</form>
</td></tr>
</table>
</td></tr>
</table>
</td></tr>
</table>
<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'>\n<tr>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo "</tr>\n</table>
<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'><tr>
<td align='center' class='footer'>";
if (!$license) { echo showcopyright()."<br/><br/>\n"; } echo showcounter()."<br/><br/><b>Webmaster Files</b> Theme designed by: <a target='_blank' href='http://phpfusion-themes.com'>Fuzed Themes</a> - Converted to V7 by <a target='_blank' href='http://php-fusion.openworld.dk'>Harly</a> - Modified Skin by: <a target='_blank'>tOmaSz000</a>";
echo "</td></tr>
</table>\n";
}
function render_news($subject, $news, $info) {
$subject = strip_tags($subject);
echo "<table style='WIDTH: 100%;' cellspacing='0' cellpadding='2' border='0'><tr>
<td class='tableHeadingBG'><div class='tableHeading'>$subject</div>
</td></tr>
<tr><td class='td-cell1' style='WIDTH: 100%' valign='top'>$news</td></tr>
<tr><td class='td-cell2' align='center' style='WIDTH: 100%'>
<table cellspacing='0' cellpadding='0' border='0'><tr>
<td align='center'>";
echo newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</td>
</tr>
</table>
</td></tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table style='WIDTH: 100%;' cellspacing='0' cellpadding='2' border='0'><tr>
<td class='tableHeadingBG'><div class='tableHeading'>$subject</div></td></tr>
<tr><td class='td-cell1' style='WIDTH: 100%' valign='top'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>
</tr>
<tr><td class='td-cell2' align='center' style='WIDTH: 100%'>
<table cellspacing='0' cellpadding='0' border='0'><tr><td align='center'>";
echo articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</td>
</tr>
</table>
</td></tr>
</table>\n";
}
function opentable($title) {
echo "<table style='WIDTH: 100%' cellspacing='0' cellpadding='0' border='0'><tr>
<td class='tableHeadingBG'>
<div class='tableHeading'>$title</div></td>
</tr>
<tr><td class='td-cell1' valign='top'>";
}
function closetable() {
echo "</td></tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>\n<tr>\n";
echo "<td class='tableHeadingBG'>".$title."</td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='tableHeadingBG' align='right'>".panelbutton($state,$boxname)."</td>\n";
}
echo "</tr>\n<tr>\n";
echo "<td".($collapse == true ? " colspan='2'" : "")." class='side-body'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside($collapse = false) {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>\n</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";
}
?>
Z góry serdecznie dzi?kuj?, za ka?d? porad? ;)
@edit: Temat rozwi?zany. B??dne kodowanie w przegl?darce rozwi?za?o problem ;)
PW od moderatora:
- Przeniesienie tematu - khaman 05.06 - 15:19
Edytowane przez tOmaSz000 dnia 08.06.2009 13:00:02
|