sertiop
01.03.2005, 15:40
Привет! помогите мне изменить код темы, а именно "шапку" сайта.
вот я переделал дизайн по себя, а вот с верхом немогу разобратся
вот чсть из темы
/************************************************************/
/* Function themeheader() */
/* */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks */
/* function for left side with: blocks(left); */
/************************************************************/
function themeheader() {
global $user, $banners, $sitename, $slogan, $cookie, $prefix, $db;
cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Гость";
}
echo "<body bgcolor=\"#ffffff\" text=\"#007000\" link=\"#ffffff\" vlink=\"#ffffff\" alink=\"#d5ae83\">\n"
."<br>\n";
if ($banners) {
include("banners.php");
}
echo "<br>\n"
."<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\" align=\"center\" bgcolor=\"#ffffff\">\n"
."<tr>\n"
."<td align=\"center\" bgcolor=\"#ffffff\" width=\"100%\">\n"
."<a href=\"index.php\"><img src=\"themes/Karate/images/shapka1.jpg\" alt=\""._WELCOMETO." $sitename\" border=\"0\"></a>\n"
."<a href=\"index.php\"><img src=\"themes/Karate/images/shapka2.gif\" alt=\""._WELCOMETO." $sitename\" border=\"0\"></a>\n"
."<a href=\"index.php\"><img src=\"themes/Karate/images/shapka3.jpg\" alt=\""._WELCOMETO." $sitename\" border=\"0\"></a>\n"
."</tr>\n"
."</table>\n"
."<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\" align=\"center\" bgcolor=\"#ffffff\">\n"
."<tr>\n"
."</tr>\n"
."</table>\n"
."<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\" align=\"center\" bgcolor=\"#ffffff\">\n"
."<tr valign=\"middle\">\n"
." </td>\n"
."<td bgcolor=\"#007000\" align=\"center\">\n"
."<form action=\"modules.php?name=Search\" method=\"post\"><font class=\"content\" color=\"#007000\">\n"
."<td bgcolor=\"#007000\" align=\"center\">\n"
."<form action=\"modules.php?name=Search\" method=\"get\">
<td align=\"left\" width=\"25%\"><font class=\"content\">\n"._HELLO." $username!
<td align=\"right\" width=\"25%\"><font class=\"content\">\n"
."<script type=\"text/javascript\">\n\n"
."<!-- // Array ofmonth Names\n"
."var monthNames = new Array( \"Январь\",\"Февраль\",\"Март\",\"Апрель\",\"Май\",\"Июнь\",\"Июль\",\"Август\",\"Сентябрь\",\"Октябрь\",\"Ноябрь\",\"Декабрь\");\n"
."var now = new Date();\n"
."thisYear = now.getYear();\n"
."if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem\n"
."document.write(monthNames[now.getMonth()] + \" \" + now.getDate() + \", \" + thisYear);\n"
."// -->\n\n"
."</script></font></td>
<font class=\"content\">\n";
while(list($topicid, $topics) = $db->sql_fetchrow($toplist)) {
$topicid = intval($topicid);
if ($topicid==$topic) { $sel = "selected "; }
echo "<option $sel value=\"$topicid\">$topics</option>\n";
$sel = "";
}
echo "</select></font></form></td>\n"
."</tr></table>\n"
."<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\" bgcolor=\"#fefefe\">\n"
."<tr>\n"
."<td bgcolor=\"#ffffff\" colspan=\"4\"><IMG src=\"themes/Karate/images/pixel.gif\" width=\"1\" height=1 alt=\"\" border=\"0\" hspace=\"0\"></td>\n"
."</tr>\n"
."<tr valign=\"middle\" bgcolor=\"#ffffff\">\n"
."<td width=\"15%\" nowrap><font class=\"content\" color=\"#ffffff\">\n";
if ($username == "Anonymous")
{
echo "<a href=\"index.php\"><img border=\"0\" src=\"themes/Karate/images/main.gif\" width=\"170\" height=\"18\"></a>
<a href=\"modules.php?name=Your_Account\"><img border=\"0\" src=\"themes/Karate/images/Your_Account.gif\" width=\"140\" height=\"18\"></a>
<a href=\"xxx.php\"><img border=\"0\" src=\"themes/Karate/images/f_ffp.gif\" width=\"140\" height=\"18\"></a>
<a href=\"http://www.pressball.by/forum/viewtopic.php?t=761\"><img border=\"0\" src=\"themes/Karate/images/fpb.gif\" width=\"140\" height=\"18\"></a>
<a href=\"http://www.pbliga.com\"><img border=\"0\" src=\"themes/Karate/images/pb.gif\" width=\"170\" height=\"18\"></a>\n";
} else {
echo "<a href=\"index.php\"><img border=\"0\" src=\"themes/Karate/images/main.gif\" width=\"170\" height=\"18\"></a>"
."<a href=\"modules.php?name=Your_Account\"><img border=\"0\" src=\"themes/Karate/images/Your_Account.gif\" width=\"140\" height=\"18\"></a>"
."<a href=\"xxx.php\"><img border=\"0\" src=\"themes/Karate/images/f_ffp.gif\" width=\"140\" height=\"18\"></a>"
."<a href=\"http://www.pressball.by/forum/viewtopic.php?t=761\"><img border=\"0\" src=\"themes/Karate/images/fpb.gif\" width=\"140\" height=\"18\"></a>"
."<a href=\"http://www.pbliga.com\"><img border=\"0\" src=\"themes/Karate/images/pb.gif\" width=\"170\" height=\"18\"></a>";
}
echo "</font></td>\n"
."<td align=\"center\" height=\"20\" width=\"60%\"><font class=\"content\">\n"
." \n"
."</td>\n"
."<td> </td>\n"
."</tr>\n"
."<tr>\n"
."<td bgcolor=\"#ffffff\" colspan=\"4\"><IMG src=\"themes/Karate/images/pixel.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\" hspace=\"0\"></td>\n"
."</tr>\n"
."</table>\n"
."<!-- FIN DEL TITULO -->\n"
."<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#ffffff\" align=\"center\">\n"
."<tr valign=\"top\">\n"
."<td bgcolor=\"#ffffff\"><img src=\"themes/Karate/images/pixel.gif\" width=\"1\" height=\"3\" border=\"0\" alt=\"\"></td>\n"
."</tr>\n"
."<tr valign=\"top\">\n"
."<td bgcolor=\"#ffffff\"><img src=\"themes/Karate/images/pixel.gif\" width=\"1\" height=\"5\" border=\"0\" alt=\"\"></td>\n"
."</tr>\n"
."</table>\n"
;
$public_msg = public_message();
echo "$public_msg";
echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#ffffff\" align=\"center\"><tr valign=\"top\">\n"
."<td bgcolor=\"#e6fae6\" width=\"150\" valign=\"top\">\n";
blocks(left);
echo "</td><td><img src=\"themes/Karate/images/pixel.gif\" width=\"15\" height=\"1\" border=\"0\" alt=\"\"></td><td width=\"100%\">\n";
}
а как мне сделать что бы за место:
."<a href=\"index.php\"><img src=\"themes/Karate/images/shapka1.jpg\" alt=\""._WELCOMETO." $sitename\" border=\"0\"></a>\n"
."<a href=\"index.php\"><img src=\"themes/Karate/images/shapka2.gif\" alt=\""._WELCOMETO." $sitename\" border=\"0\"></a>\n"
."<a href=\"index.php\"><img src=\"themes/Karate/images/shapka3.jpg\" alt=\""._WELCOMETO." $sitename\" border=\"0\"></a>\n"
вставить вот этот скрипт:
<!-- Название -->
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD bgColor=#000070><WIDTH="1" border="0" height="1" /></TD></TR>
<TR>
<TD bgColor=#000070><WIDTH="1" border="0" height="1" /></TD></TR>
<TR>
<TD bgColor=#000000><WIDTH="1" border="0" height="1"
/></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" background="" border=0>
<TBODY>
<TR>
<TD width="100%"></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%"
background="images/back_top.jpg"
border=0><TBODY>
<TR>
<TD class=name height=62><B><font size=4 color=ffffff><i> Федерация Футбола Беларусии
</I></B></TD>
<TD align=right rowSpan=2></TD>
<TD width="1%" rowSpan=2></TD></TR>
<TR>
<TD class=main><B> <A href="mailto:rusdoh@mail.ru"><FONT size=1 color=#e0e0e0>sertiop © 2004</FONT></A> </B></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" background="" border=0>
<TBODY>
<TR>
<TD width="100%"></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD bgColor=#000000><WIDTH="1" border="0" height="1" /></TD></TR>
<TR>
<TD bgColor=#000070><WIDTH="1" border="0" height="1" /></TD></TR>
<TR>
<TD bgColor=#000070><WIDTH="1" border="0" height="1"
/></TD></TR></TBODY></TABLE><!-- Конец названия -->
вставлял сам пробывал, неполучается, ругается говорит что ошибки, так как правильно сделать?
помогите плиз
вот я переделал дизайн по себя, а вот с верхом немогу разобратся
вот чсть из темы
/************************************************************/
/* Function themeheader() */
/* */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks */
/* function for left side with: blocks(left); */
/************************************************************/
function themeheader() {
global $user, $banners, $sitename, $slogan, $cookie, $prefix, $db;
cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Гость";
}
echo "<body bgcolor=\"#ffffff\" text=\"#007000\" link=\"#ffffff\" vlink=\"#ffffff\" alink=\"#d5ae83\">\n"
."<br>\n";
if ($banners) {
include("banners.php");
}
echo "<br>\n"
."<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\" align=\"center\" bgcolor=\"#ffffff\">\n"
."<tr>\n"
."<td align=\"center\" bgcolor=\"#ffffff\" width=\"100%\">\n"
."<a href=\"index.php\"><img src=\"themes/Karate/images/shapka1.jpg\" alt=\""._WELCOMETO." $sitename\" border=\"0\"></a>\n"
."<a href=\"index.php\"><img src=\"themes/Karate/images/shapka2.gif\" alt=\""._WELCOMETO." $sitename\" border=\"0\"></a>\n"
."<a href=\"index.php\"><img src=\"themes/Karate/images/shapka3.jpg\" alt=\""._WELCOMETO." $sitename\" border=\"0\"></a>\n"
."</tr>\n"
."</table>\n"
."<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\" align=\"center\" bgcolor=\"#ffffff\">\n"
."<tr>\n"
."</tr>\n"
."</table>\n"
."<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\" align=\"center\" bgcolor=\"#ffffff\">\n"
."<tr valign=\"middle\">\n"
." </td>\n"
."<td bgcolor=\"#007000\" align=\"center\">\n"
."<form action=\"modules.php?name=Search\" method=\"post\"><font class=\"content\" color=\"#007000\">\n"
."<td bgcolor=\"#007000\" align=\"center\">\n"
."<form action=\"modules.php?name=Search\" method=\"get\">
<td align=\"left\" width=\"25%\"><font class=\"content\">\n"._HELLO." $username!
<td align=\"right\" width=\"25%\"><font class=\"content\">\n"
."<script type=\"text/javascript\">\n\n"
."<!-- // Array ofmonth Names\n"
."var monthNames = new Array( \"Январь\",\"Февраль\",\"Март\",\"Апрель\",\"Май\",\"Июнь\",\"Июль\",\"Август\",\"Сентябрь\",\"Октябрь\",\"Ноябрь\",\"Декабрь\");\n"
."var now = new Date();\n"
."thisYear = now.getYear();\n"
."if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem\n"
."document.write(monthNames[now.getMonth()] + \" \" + now.getDate() + \", \" + thisYear);\n"
."// -->\n\n"
."</script></font></td>
<font class=\"content\">\n";
while(list($topicid, $topics) = $db->sql_fetchrow($toplist)) {
$topicid = intval($topicid);
if ($topicid==$topic) { $sel = "selected "; }
echo "<option $sel value=\"$topicid\">$topics</option>\n";
$sel = "";
}
echo "</select></font></form></td>\n"
."</tr></table>\n"
."<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\" bgcolor=\"#fefefe\">\n"
."<tr>\n"
."<td bgcolor=\"#ffffff\" colspan=\"4\"><IMG src=\"themes/Karate/images/pixel.gif\" width=\"1\" height=1 alt=\"\" border=\"0\" hspace=\"0\"></td>\n"
."</tr>\n"
."<tr valign=\"middle\" bgcolor=\"#ffffff\">\n"
."<td width=\"15%\" nowrap><font class=\"content\" color=\"#ffffff\">\n";
if ($username == "Anonymous")
{
echo "<a href=\"index.php\"><img border=\"0\" src=\"themes/Karate/images/main.gif\" width=\"170\" height=\"18\"></a>
<a href=\"modules.php?name=Your_Account\"><img border=\"0\" src=\"themes/Karate/images/Your_Account.gif\" width=\"140\" height=\"18\"></a>
<a href=\"xxx.php\"><img border=\"0\" src=\"themes/Karate/images/f_ffp.gif\" width=\"140\" height=\"18\"></a>
<a href=\"http://www.pressball.by/forum/viewtopic.php?t=761\"><img border=\"0\" src=\"themes/Karate/images/fpb.gif\" width=\"140\" height=\"18\"></a>
<a href=\"http://www.pbliga.com\"><img border=\"0\" src=\"themes/Karate/images/pb.gif\" width=\"170\" height=\"18\"></a>\n";
} else {
echo "<a href=\"index.php\"><img border=\"0\" src=\"themes/Karate/images/main.gif\" width=\"170\" height=\"18\"></a>"
."<a href=\"modules.php?name=Your_Account\"><img border=\"0\" src=\"themes/Karate/images/Your_Account.gif\" width=\"140\" height=\"18\"></a>"
."<a href=\"xxx.php\"><img border=\"0\" src=\"themes/Karate/images/f_ffp.gif\" width=\"140\" height=\"18\"></a>"
."<a href=\"http://www.pressball.by/forum/viewtopic.php?t=761\"><img border=\"0\" src=\"themes/Karate/images/fpb.gif\" width=\"140\" height=\"18\"></a>"
."<a href=\"http://www.pbliga.com\"><img border=\"0\" src=\"themes/Karate/images/pb.gif\" width=\"170\" height=\"18\"></a>";
}
echo "</font></td>\n"
."<td align=\"center\" height=\"20\" width=\"60%\"><font class=\"content\">\n"
." \n"
."</td>\n"
."<td> </td>\n"
."</tr>\n"
."<tr>\n"
."<td bgcolor=\"#ffffff\" colspan=\"4\"><IMG src=\"themes/Karate/images/pixel.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\" hspace=\"0\"></td>\n"
."</tr>\n"
."</table>\n"
."<!-- FIN DEL TITULO -->\n"
."<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#ffffff\" align=\"center\">\n"
."<tr valign=\"top\">\n"
."<td bgcolor=\"#ffffff\"><img src=\"themes/Karate/images/pixel.gif\" width=\"1\" height=\"3\" border=\"0\" alt=\"\"></td>\n"
."</tr>\n"
."<tr valign=\"top\">\n"
."<td bgcolor=\"#ffffff\"><img src=\"themes/Karate/images/pixel.gif\" width=\"1\" height=\"5\" border=\"0\" alt=\"\"></td>\n"
."</tr>\n"
."</table>\n"
;
$public_msg = public_message();
echo "$public_msg";
echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#ffffff\" align=\"center\"><tr valign=\"top\">\n"
."<td bgcolor=\"#e6fae6\" width=\"150\" valign=\"top\">\n";
blocks(left);
echo "</td><td><img src=\"themes/Karate/images/pixel.gif\" width=\"15\" height=\"1\" border=\"0\" alt=\"\"></td><td width=\"100%\">\n";
}
а как мне сделать что бы за место:
."<a href=\"index.php\"><img src=\"themes/Karate/images/shapka1.jpg\" alt=\""._WELCOMETO." $sitename\" border=\"0\"></a>\n"
."<a href=\"index.php\"><img src=\"themes/Karate/images/shapka2.gif\" alt=\""._WELCOMETO." $sitename\" border=\"0\"></a>\n"
."<a href=\"index.php\"><img src=\"themes/Karate/images/shapka3.jpg\" alt=\""._WELCOMETO." $sitename\" border=\"0\"></a>\n"
вставить вот этот скрипт:
<!-- Название -->
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD bgColor=#000070><WIDTH="1" border="0" height="1" /></TD></TR>
<TR>
<TD bgColor=#000070><WIDTH="1" border="0" height="1" /></TD></TR>
<TR>
<TD bgColor=#000000><WIDTH="1" border="0" height="1"
/></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" background="" border=0>
<TBODY>
<TR>
<TD width="100%"></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%"
background="images/back_top.jpg"
border=0><TBODY>
<TR>
<TD class=name height=62><B><font size=4 color=ffffff><i> Федерация Футбола Беларусии
</I></B></TD>
<TD align=right rowSpan=2></TD>
<TD width="1%" rowSpan=2></TD></TR>
<TR>
<TD class=main><B> <A href="mailto:rusdoh@mail.ru"><FONT size=1 color=#e0e0e0>sertiop © 2004</FONT></A> </B></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" background="" border=0>
<TBODY>
<TR>
<TD width="100%"></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD bgColor=#000000><WIDTH="1" border="0" height="1" /></TD></TR>
<TR>
<TD bgColor=#000070><WIDTH="1" border="0" height="1" /></TD></TR>
<TR>
<TD bgColor=#000070><WIDTH="1" border="0" height="1"
/></TD></TR></TBODY></TABLE><!-- Конец названия -->
вставлял сам пробывал, неполучается, ругается говорит что ошибки, так как правильно сделать?
помогите плиз