Przedszkolak
Postów: 11
Data rejestracji: 05.05.2007 10:34
|
Witam.
Robię thema i mam mały problem.
Wszystko mam wycentrowane prócz paneli bocznych...
Otóż tak to wygląda: http://img528.ima...rrrsq8.jpg
Nie wiem jak to zrobić by panele trzymały się reszty thema :/ Oto kod thema:
<?
// theme settings
$body_text = "#ffffff";
$body_bg = "#000000";
$theme_width = "100%";
$theme_width_l = "218";
$theme_width_r = "218";
function render_header($header_content) {
global $theme_width,$settings,$db_prefix,$locale,$userdata,$aidlink;
if (file_exists(INFUSIONS."user_info_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."user_info_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."user_info_panel/locale/English.php";
}
echo "<center><table align=\"center\" width=\"924\" border=\"0\" cellspacing=\"0\"
cellpadding=\"0\">
<tr>
<td><table align=\"center\" width=\"924\" border=\"0\" cellspacing=\"0\" cellpadding=\"0
\">
<tr>
<td style=\"background-image: url('".THEME."images/jumppolska_01.gif'); border: 0; height:
21; padding-left: 10; padding-right: 10; width: 904\"><table border=\"0\" cellpadding=\"0\"
cellspacing=\"0\" width=\"904\">
<tr>
<td align=\"left\"><font color=\"#5183d7\">Witaj na <b>JumpPolska</b></font> | ";
if(iGUEST){
echo"<font color=\"#5183d7\"><img src='".THEME."images/bullet.gif' alt=''><a
href='".BASEDIR."register.php'>Zarejestruj się
";
}else{
echo"<font color=\"#5183d7\"><img src='".THEME."images/bullet.gif' alt=''
<a href='".BASEDIR."messages.php' class='side'>Wiadomo¶ci</a>";
}
echo "
</td>
<td align=\"right\"><script type='text/javascript' src='http://www.darmowe-
statystyki.com/usluga.dodatek.20'></script></td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
<tr>
<td><table align=\"center\" width=\"924\" border=\"0\" cellspacing=\"0\" cellpadding=\"0
\">
<tr>
<td><img src=\"".THEME."images/jumppolska_02.gif\" width=\"677\" height=\"149\"
border=\"0\" /></td>
<td style=\"background-image: url('".THEME."images/jumppolska_03.gif'); height: 149px;
width: 245px\" valign=\"top\">";
if (iMEMBER) {
echo " <table cellspacing='2'> <tr>\n";
echo ("<td class='login' > <b>W</b>itaj <a href='".BASEDIR."profile.php?lookup=".$userdata
['user_id']."'" ."<span style='color:#".$userdata['user_color']."'>".$userdata
['user_prefix'].$userdata['user_name']);
echo "</span></a></td>\n";
echo "</tr></table>";
if ($userdata['user_avatar'] != "") {
echo "<table cellspacing='0' cellpadding='0' border='0' align=\"left\"><tr>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_lewa.png' height='12' width='12'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_srodek.png' height='12'
width='100%'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_prawa.png' height='12'
width='12'></td></tr><tr>\n";
echo "<td align='left'><img src='".IMAGES."avatar_mod/srodek_lewa.png' width='12'
height='100%'></td>\n";
echo "<td height='1%'>";
echo "<img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='60'
hight='60' alt='".$data['user_name']."'></td>";
echo "<td align='right'><img src='".IMAGES."avatar_mod/srodek_prawa.png' height='100%'
width='12'></td></tr><tr>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_lewa.png' height='12' width='12'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_srodek.png' height='12' width='100%'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_prawa.png' height='12'
width='12'></td></tr>\n";
echo "</table></center>";
} else {
echo "<table cellspacing='0' cellpadding='0' border='0' align=\"left\"><tr>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_lewa.png' height='12' width='12'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_srodek.png' height='12'
width='100%'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_prawa.png' height='12'
width='12'></td></tr><tr>\n";
echo "<td align='left'><img src='".IMAGES."avatar_mod/srodek_lewa.png' width='12'
height='100%'></td>\n";
echo "<td align='center' height='1%'>";
echo "<img src='".BASEDIR."/images/brak.gif' width='60' hight='60'></td>";
echo "<td align='right'><img src='".IMAGES."avatar_mod/srodek_prawa.png' height='100%'
width='12'></td></tr><tr>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_lewa.png' height='12' width='12'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_srodek.png' height='12' width='100%'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_prawa.png' height='12'
width='12'></td></tr>\n";
echo "</table></center>";
}
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND
message_read='0'AND message_folder='0'");
echo "<br> <img src='".THEME."images/profil.gif' > <a
href='".BASEDIR."edit_profile.php' class='side'> Edytuj Profil</a><br>
<img src='".THEME."images/user.gif' > <a href='".BASEDIR."members.php' class='side'>
Użytkownicy</a><br>
<img src='".THEME."images/up.gif' > <a href='".BASEDIR."user/index.php' class='side'>
User Panel</a><br>
<img src='".THEME."images/wiadomosci.gif' > <a href='".BASEDIR."messages.php'
class='side'> Wiadomo¶ci</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo " <img src='".THEME."images/pa.gif' alt=''> <a
href='".ADMIN."index.php$aidlink'>Administracja</a><br>\n";
}{echo "
<div style=\"text-align: center\"><br><img src='".THEME."images/logout.gif' > <a
href='".BASEDIR."setuser.php?logout=yes' class='side'>Wyloguj</a></div>\n";
if ($msg_count) echo "<br><center><b><a href='".BASEDIR."messages.php'
class='side2'>".sprintf('Masz %u PW' , $msg_count)."</a></b></center>\n";
}
tablebreak();
} else {
echo "<br><center><div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
<input type='text' name='user_name' class='textbox' value='nick' onBlur=\"if
(this.value=='') this.value='Twój Nick';\" onFocus=\"if(this.value=='nick')
this.value='';\" style='width:100px'><br><br>
<input type='password' name='user_pass' class='textbox' value='hasło' onBlur=\"if
(this.value=='') this.value='Haslo';\" onFocus=\"if(this.value=='hasło') this.value='';\"
style='width:100px'><br>
<input type='checkbox' name='remember_me' value='y' title='Zapamiętaj mnie'
style='vertical-align:middle;'>
<input type='submit' name='login' value='Loguj' class='button2'>
<br>
<br>
</form>
</center>
\n";
if ($settings['enable_registration']) {
echo " <a href='".BASEDIR."lostpassword.php' class='side'><img
src='".THEME."images/bullet.gif' border='0' > Zgubione Hasło </a><br>\n";
echo " <a href='".BASEDIR."register.php' class='side'><img
src='".THEME."images/bullet.gif' border='0' > Rejestracja </a><br>\n";
}
echo "
</div>\n";
}
closesidel();
echo "</center>
</td>
</tr>
</table></td>
</tr>
<tr>
<td><table align=\"center\" width=\"905\" border=\"0\" cellspacing=\"0\"
cellpadding=\"0\">
<tr>
<td style=\"background-image: url('".THEME."images/jumppolska_04.gif'); border: 0; height:
36; padding-left: 10; padding-right: 10; width: 905\"><table border=\"0\" cellpadding=\"0\"
cellspacing=\"0\" width=\"905\">
<tr>
<td align=\"left\"><a href=' ".BASEDIR."news.php' onMouseover=\"showit(0)\">Strona
Główna</a> <font color=#5183d7>⇔</font> <a href=' ".BASEDIR."forum/index.php'
onMouseover=\"showit(1)\">Forum</a> <font color=#5183d7>⇔</font> <a href='
".BASEDIR."news.php' onMouseover=\"showit(2)\">Tutoriale</a> <font
color=#5183d7>⇔</font> <a href=' ".BASEDIR."news.php' onMouseover=\"showit(3)
\">Teamy</a> <font color=#5183d7>⇔</font></td></tr></table>
<tr>
<td>
<ilayer align=\"center\" width=925 height=15 name=\"dep1\" \"background-image: url
('".THEME."images/jumppolska_05.gif');>
<layer name=\"dep2\" width=925 height=15 align=\"center\">
</layer>
</ilayer>
<div id=\"describe\" style=\"background-image: url('".THEME."images/jumppolska_05.gif');
height: 15px; width: 925px\" onMouseover=\"clear_delayhide()\" onMouseout=\"resetit(event)
\"></div>
<script language=\"JavaScript1.2\">
var submenu=new Array()
submenu[0]='<font size=\"1\" face=\"Verdana\"><b><font color=#5183d7>⇒</font> <a
href=".BASEDIR."news.php>Strona Główna</a> <font color=#5183d7>⇔</font> <a
href=".BASEDIR."articles.php>Artykuły</a> <font color=#5183d7>⇔</font> <a
href=".BASEDIR."infusions/site_map/site_map.php>Mapa Strony</a> <font
color=#5183d7>⇔</font> <a
href=".BASEDIR."infusions/suggestion_box/suggestion_box.php>Propozycje</a> <font
color=#5183d7>⇔</font> <a href=".BASEDIR."regulamin.php>Regulamin <font
color=#5183d7>⇔</font> <a href=".BASEDIR."search.php>Szukaj <font
color=#5183d7>⇐</font></a></b></font>'
submenu[1]='<font size=\"1\" face=\"Verdana\"><b><font color=#5183d7>⇒</font> <a
href=".BASEDIR."forum/index.php>Strona Główna</a> <font color=#5183d7>⇔</font> <a
href=".BASEDIR."forum/viewtopic.php?t=9>Regulamin</a> <font
color=#5183d7>⇐</font></a></b></font>'
submenu[2]='<font size=\"1\" face=\"Verdana\"><b><font color=#5183d7>⇒</font> <a
href=".BASEDIR."machiny.php>Machiny</a> <font color=#5183d7>⇔</font> <a
href=".BASEDIR."miejsca.php>Miejsca</a> <font color=#5183d7>⇔</font> <a
href=".BASEDIR."postacie.php>Postacie</a> <font color=#5183d7>⇔</font> <a
href=".BASEDIR."pozostale.php>Pozostałe</a> <font color=#5183d7>⇔</font> <a
href=".BASEDIR."skrzynie.php>Skrzynie</a> <font
color=#5183d7>⇐</font></a></b></font>'
submenu[3]='<font size=\"1\" face=\"Verdana\"><b><font color=#5183d7>⇒</font> <a
href=".BASEDIR."avatary.php>Avatary</a> <font color=#5183d7>⇔</font> <a
href=".BASEDIR."fanart.php>FanArt</a> <font color=#5183d7>⇔</font> <a
href=".BASEDIR."gify.php>Gify</a> <font color=#5183d7>⇔</font> <a
href=".BASEDIR."minipostacie.php>MiniPostacie</a> <font color=#5183d7>⇔</font> <a
href=".BASEDIR."pozostalegrafa.php>Pozostałe</a> <font color=#5183d7>⇔</font> <a
href=".BASEDIR."rendery.php>Rendery</a> <font color=#5183d7>⇔</font> <a
href=".BASEDIR."sprite.php>Sprite</a> <font color=#5183d7>⇔</font> <a
href=".BASEDIR."sygnatury.php>Sygnatury</a> <font color=#5183d7>⇔</font> <a
href=".BASEDIR."tapety.php>Tapety</a> <font color=#5183d7>⇔</font> <a
href=".BASEDIR."userbars.php>UserBars</a> <font
color=#5183d7>⇐</font></a></b></font>'
submenu[4]='<font size=\"1\" face=\"Verdana\"><b><br> <font color=#5183d7>⇒</font> <a
href=".BASEDIR."forum/index.php>Aktualnie Brak Downloadu</a> <font
color=#5183d7>⇐</font></a></b></font>'
submenu[5]='<font size=\"1\" face=\"Verdana\"><b><br> <font color=#5183d7>⇒</font> <a
href=".BASEDIR."wymiana.php>Wymiana</a> <font color=#5183d7>⇔</font> <a
href=".BASEDIR."news.php>Miejsce na twój Link =)</a> <font
color=#5183d7>⇐</font></a></b></font>'
submenu[6]='<font size=\"1\" face=\"Verdana\"><b><br> <font color=#5183d7>⇒</font> <a
href=".BASEDIR."redakcja.php>Redakcja</a> <font color=#5183d7>⇔</font> <a
href=".BASEDIR."nabor.php>Nabór</a> <font color=#5183d7>⇐</font></a></b></font>'
submenu[7]='<font size=\"1\" face=\"Verdana\"><b><br> <font color=#5183d7>⇒</font> <a
href=".BASEDIR."news.php>Aktualnie brak konkursów</a> <font
color=#5183d7>⇐</font></a></b></font>'
submenu[8]='<font size=\"1\" face=\"Verdana\"><b><br> <font color=#5183d7>⇒</font> <a
href=".BASEDIR."contact.php>Kontakt</a> <font color=#5183d7>⇐</font></a></b></font>'
var delay_hide=500
var menuobj=document.getElementById? document.getElementById(\"describe\") : document.all?
document.all.describe : document.layers? document.dep1.document.dep2 : \"\"
function showit(which){
clear_delayhide()
thecontent=(which==-1)? \"\" : submenu[which]
if (document.getElementById||document.all)
menuobj.innerHTML=thecontent
else if (document.layers){
menuobj.document.write(thecontent)
menuobj.document.close()
}
}
function resetit(e){
if (document.all&&!menuobj.contains(e.toElement))
delayhide=setTimeout(\"showit(-1)\",delay_hide)
else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6
(e.currentTarget, e.relatedTarget))
delayhide=setTimeout(\"showit(-1)\",delay_hide)
}
function clear_delayhide(){
if (window.delayhide)
clearTimeout(delayhide)
}
function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
</script>
</td>
</tr></table>
</td>
</tr>
</table></td>
</tr>
<tr>
<td><table align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"
width=\"924\">
<tr>
<td background=\"".THEME."images/jumppolska_06.gif\" width=\"461\" height=\"209\"
style=\"border: 0; padding-top: 20; padding-left: 25; padding-right: 25; padding-bottom:
10;\">
<div id='slider1' class='contentslide'>
<div class='opacitylayer'>
<div class='contentdiv'>
Jakiś link
</div>
<div class='contentdiv'>
Jakiś link 2
</div>
</div>
</div>
<div class='pagination' align='right' id='paginate-slider1'></div>
<script type='text/javascript'>
//Define: ContentSlider('slider_ID', [autorotate_miliseconds], [custompaginatelinkstext],
[customnextlinktext])
ContentSlider('slider1')
ContentSlider('slider1', 6000)
</script>
</td>
<td background=\"".THEME."images/jumppolska_07.gif\" width=\"231\" height=\"209\"
style=\"border: 0; padding-top: 20; padding-left: 25; padding-right: 25; padding-bottom:
10;\">
";
include BASEDIR."infusions/info_panel/locale/Polish.php";
include BASEDIR."includes/theme.php";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr><td>";
echo "\n";
$result=dbquery("SELECT * FROM ".$db_prefix."users WHERE user_lastvisit>'0' AND
user_status='0' ORDER BY user_lastvisit DESC LIMIT 0,10"); //<<LIMIT WYSWIETLANYCH
UŻYTKOWNIKÓW//
if(dbrows($result)!=0){
while($data=dbarray($result)){
$lastseen=time()-$data['user_lastvisit'];
$iW=sprintf("%2d",floor($lastseen/604800));
$iD=sprintf("%2d",floor($lastseen/(60*60*24)));
$iH=sprintf("%02d",floor((($lastseen%604800)%86400)/3600));
$iM=sprintf("%02d",floor(((($lastseen%604800)%86400)%3600)/60));
$iS=sprintf("%02d",floor((((($lastseen%604800)%86400)%3600)%60)));
if($lastseen<60){
$lastseen="<font color='#CCCCCC'><b>na stronie</b></font>"; //<<uzytkownik online //
}elseif($lastseen<360){
$lastseen="<font color='#BBBBBB'><b>odchodzi</b></font>"; //<<uzytkownik odchchodzi, po 360
sek od czasu wylogowania//
}elseif($iW>0){
if($iW==1) $Text="".$locale['XXX_007']."";
elseif($iW==2 || $iW==3 || $iW==4) $Text="".$locale['XXX_011']."";
else $Text="".$locale['XXX_008']."";
$lastseen="$iW $Text";
}elseif($iD>0){
if($iD==1) $Text="".$locale['XXX_009']."";
else $Text="".$locale['XXX_010']."";
$lastseen="$iD $Text";
}else{
$lastseen="$iH:$iM:$iS";
}
if (!isset($start)) $start="";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr><td class='small'>
<a href='".BASEDIR."profile.php?lookup=$data[user_id]'
onmouseover=\"gpe('$start<center><b>° ".$locale['XXX_017']."
°</b></center><hr><b>".$locale['XXX_003']."</b>: ".$data['user_prefix'].$data
['user_name']."<br><b>".$locale['XXX_004']."</b>: ".$data
['user_location']."<br><b>".$locale['XXX_005']."</b>: ".$data
['user_msn']."<br><b>".$locale['XXX_006']."</b>: ".$data['user_posts']."$end')\"
style='color:#".$data['user_color']."' onMouseout=\"hideddrivetip()\"><b>";
echo $data['user_prefix'].$data['user_name']."</b></a></td><td align=\"right\"
class='small'>".$lastseen."</td></tr></table>"; //wyswietlanie na stronie //
}
}
// TEN KOD WYSWIETLA ILU JEST GOSCI ONLINE POD UZYTKOWNIKAMI //
if ($settings['maintenance'] != "1") {
$cond = ($userdata['user_level'] != 0 ? "'".$userdata['user_id']."'" : "'0' AND
online_ip='".USER_IP."'");
$result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user=".$cond."");
if (dbrows($result) != 0) {
$result = dbquery("UPDATE ".$db_prefix."online SET online_lastactive='".time()."' WHERE
online_user=".$cond."");
} else {
$name = ($userdata['user_level'] != 0 ? $userdata['user_id'] : "0");
$result = dbquery("INSERT INTO ".$db_prefix."online (online_user, online_ip,
online_lastactive) VALUES ('$name', '".USER_IP."', '".time()."')");
}
$result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_lastactive<".(time()-
60)."");
$result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user='0'");
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr><td class='small'> <b><span
style=\"color: #C0C0C0\">".$locale['011']."</span></td><td align=\"right\"
class='small'>".dbrows($result)."</b></td></tr></table>\n";
$result = dbquery(
"SELECT ton.*, user_id,user_name,user_color,user_prefix FROM ep_online ton
LEFT JOIN ep_users tu ON ton.online_user=tu.user_id
WHERE online_user!='0'"
);
} else {
echo $locale['013']."<br>\n";
}
echo "</td></tr></table>";
echo "
</td>
<td background=\"".THEME."images/jumppolska_08.gif\" width=\"231\" height=\"209\"
style=\"border: 0; padding-top: 20; padding-left: 25; padding-right: 25; padding-bottom:
10;\">";
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
if (file_exists(INFUSIONS."musicbox2_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."musicbox2_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."musicbox2_panel/locale/English.php";
}
echo"<center><b>W</b>itamy!</center><br>Lubisz HardStyle? Chcesz posłuchać nowych, dobrych
kawałków? Nic prostszego kliknij:";
echo "<!--
MusicBox2 ~ Playlist Manager for Flash mp3 Player
Author: Gander
HomePage: www.gander.pl
Multiple Tracks Flash mp3 Player with Menu
Author: Momentum Network Inc
HomePage: www.premiumbeat.com
//-->
<script type='text/javascript' language='JavaScript' defer>
<!--
function openMusicBox(){
window.open
('".INFUSIONS."musicbox2_panel/player/','MusicBoxFlashPlayer','width=300,height=300,top=30,
left=30,menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=
no,fullscreen=no,channelmode=no').focus();
}
//-->
</script>
<center>
".stripslashes($mbs['info'])."<br>
<button class='button' onClick='openMusicBox()'>".$locale['mb_302']."</button><br>
</center>\n";
echo"
</td>
</tr>
</table></td>
</tr>
<tr>
<td>
\n";
echo "<table width='100%' cellspacing='0' cellpadding='0' align='center'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings,$db_prefix,$locale,$userdata,$aidlink;
echo "</tr>\n</table>\n";
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"924\"
align=\"center\">
<tr>
<td background=\"".THEME."images/jumppolska_09.gif\" width=\"200\" height=\"209\"
style=\"border: 0; padding-top: 20; padding-left: 10; padding-right: 10; padding-bottom:
10;\">";
if ($settings['maintenance'] != "1") {
$cond = ($userdata['user_level'] != 0 ? "'".$userdata['user_id']."'" : "'0' AND
online_ip='".USER_IP."'");
$result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user=".$cond."");
if (dbrows($result) != 0) {
$result = dbquery("UPDATE ".$db_prefix."online SET online_lastactive='".time()."' WHERE
online_user=".$cond."");
} else {
$name = ($userdata['user_level'] != 0 ? $userdata['user_id'] : "0");
$result = dbquery("INSERT INTO ".$db_prefix."online (online_user, online_ip,
online_lastactive) VALUES ('$name', '".USER_IP."', '".time()."')");
}
$result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_lastactive<".(time()-
60)."");
$result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user='0'");
echo "<img src='".THEME."images/bullet.gif' alt=''>".$locale['011']."".dbrows
($result)."<br>";
$result = dbquery(
"SELECT ton.*, user_id,user_name,user_color,user_prefix FROM ep_online ton
LEFT JOIN ep_users tu ON ton.online_user=tu.user_id
WHERE online_user!='0'"
);
} else {
echo $locale['013']."<br>\n";
}
{
$members = dbrows($result);
echo "<img src='".THEME."images/bullet.gif' alt=''>Zarejestrowanych Użytkowników:
".number_format(dbcount("(user_id)", "users", "user_status<='1'"))."<br>\n";
if ($settings['admin_activation'] == "1") echo "<img src='".THEME."images/bullet.gif'
alt=''>Nieaktywowany Użytkownik: ".dbcount("(user_id)", "users",
"user_status='2'")."<br>\n";
$data = dbarray(dbquery("SELECT user_id,user_name,user_color,user_prefix FROM
".$db_prefix."users WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1"));
echo "<img src='".THEME."images/bullet.gif' alt=''>Najnowszy Użytkownik: <a
href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'
style='color:#".$data['user_color']."'>".$data['user_prefix'].$data
['user_name']."</a><br>\n";
}
//antal Superadmins
echo"<img src='".THEME."images/bullet.gif' alt=''>Głównych administratorów: ";
$total = dbrows(dbquery("SELECT user_id, user_level FROM ".$db_prefix."users WHERE
user_level='103'"));
echo $locale['OUE_003'].$total. "<br />\n";
//antal Admins
echo"<img src='".THEME."images/bullet.gif' alt=''>Administratorów: ";
$total = dbrows(dbquery("SELECT user_id, user_level FROM ".$db_prefix."users WHERE
user_level='102'"));
echo $locale['OUE_004'].$total. "<hr>";
echo "<!-- STAT LACZNIE WSZYSTKICH PLIKÓW -->";
$downloadcount = dbquery("SELECT count(download_id) FROM ".$db_prefix."downloads");
echo "
<img src='".THEME."images/bullet.gif' alt=''>Ł±cznie wszystkich plików: ".dbresult
($downloadcount, 0)."
<!-- KONIEC STAT LACZNIE WSZYSTKICH PLIKÓW --><br>
<!-- STAT LACZNIE WSZYSTKICH POBRAN -->
<img src='".THEME."images/bullet.gif' alt=''>Ł±cznie wszystkich pobrań: ";
$result = dbquery("SELECT SUM(download_count) FROM ".$db_prefix."downloads");
$i_alt = dbresult($result,0);
echo "".$i_alt."";
echo "
<!-- KONIEC STAT LACZNIE WSZYSTKICH POBRAN --><br>
<!-- STAT LACZNIE UNIKALNYCH WIZYT -->
<img src='".THEME."images/bullet.gif' alt=''>Unikalnych wizyt: ".$settings['counter']."
<!-- KONIEC STAT LACZNIE UNIKALNYCH WIZYT -->
</td>
<td background=\"".THEME."images/jumppolska_10.gif\" width=\"200\" height=\"209\"
style=\"border: 0; padding-top: 20; padding-left: 10; padding-right: 10; padding-bottom:
10;\">"; echo "<script>
nereidFadeObjects = new Object();
nereidFadeTimers = new Object();
function nereidFade(object, destOp, rate, delta){
if (!document.all)
return
if (object != '[object]'){ //do this so I can take a string too
setTimeout('nereidFade('+object+','+destOp+','+rate+','+delta+')',0);
return;
}
clearTimeout(nereidFadeTimers[object.sourceIndex]);
diff = destOp-object.filters.alpha.opacity;
direction = 1;
if (object.filters.alpha.opacity > destOp){
direction = -1;
}
delta=Math.min(direction*diff,delta);
object.filters.alpha.opacity+=direction*delta;
if (object.filters.alpha.opacity != destOp){
nereidFadeObjects[object.sourceIndex]=object;
nereidFadeTimers[object.sourceIndex]=setTimeout('nereidFade(nereidFadeObjects
['+object.sourceIndex+'],'+destOp+','+rate+','+delta+')',rate);
}
}
</script>";
echo "<center><marquee behavior='scroll' align='center' valign='bottom'
direction='up' width='120' height='120' scrollamount='1' scrolldelay='1'
onmouseover='this.stop()' onmouseout='this.start()'>";
$result = dbquery("SELECT * FROM ".$db_prefix."buttons ORDER BY button_order");
while ($data=dbarray($result)) {
echo "
<table cellpadding='4' cellspacing='0' width='120'>
<tr><td><p align='center'><a class='side'
href='".INFUSIONS."button_panel/button.php?button_id=".$data['button_id']."'
target='_blank'>";
if ($data['button_type'] == '1') {
echo "<img src='".$data['button_pic']."' border='0' style='filter:alpha
(opacity=30)' onMouseOver='nereidFade(this,100,10,30)' onMouseOut='nereidFade
(this,30,10,5)' title='".$data['button_name']."' alt='".$data['button_name']."'>";
}
/* do wyswietlania animacji flash
if ($data['button_type'] == '2') {
echo "<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"
codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,
0,0\">
<PARAM NAME=menu VALUE=false>
<PARAM NAME=quality VALUE=high>
<EMBED width=120 height=60 src=\"".$data['button_pic']."\"
menu=\"false\" quality=\"high\" TYPE=\"application/x-shockwave-flash\"
PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\">
</EMBED>
</OBJECT>";
}*/
if ($data['button_type'] == '3') {
echo "".$data['button_name']."";
}
echo "</a></td></tr></table>";
}
echo "</marquee></center>";
echo "
</td>
<td background=\"".THEME."images/jumppolska_11.gif\" width=\"534\" height=\"209\"
style=\"border: 0; padding-top: 20; padding-left: 0; padding-right: 0; padding-bottom:
10;\"><br><center>"; include(INFUSIONS."brotator/brotator.php"); echo "<br><br>"; include
(INFUSIONS."brotator/brotator.php"); echo "</center></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"924\" align=\"center\">
<tr>
<td background=\"".THEME."images/jumppolska_12.gif\" width=\"924\" height=\"35\"
style=\"border: 0; padding-top: 10; padding-left: 20; padding-right: 10; padding-bottom:
10;\">Design & code : <a href='http://www.jumppl.webd.pl' title='tutoriale'>Crashian</a> |
Powered <a href='http:/www.extreme-fusion.pl'>eXtreme-Fusion</a>
</td>
</tr>
</table>
\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo " <table align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"
width=\"700\">
<tr>
<td background=\"".THEME."images/jumppolska_13.gif\" width=\"660\" height=\"49\"
style=\"border: 0; padding-top: 10; padding-left: 20; padding-right: 20; padding-bottom:
10;\"><b>$subject</b><br>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info
['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])."
</td>
</tr>
<tr>
<td background=\"".THEME."images/jumppolska_14.gif\" width=\"680\" height=\"3\"
style=\"border: 0; padding-top: 10; padding-left: 10; padding-right: 10; padding-bottom:
10;\">$news</td>
</tr>
<tr>
<td background=\"".THEME."images/jumppolska_15.gif\" width=\"680\" height=\"41\"
style=\"border: 0; padding-top: 10; padding-left: 10; padding-right: 10; padding-bottom:
10;\"><center><table width=\"100%\"><tr><td>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info
['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])."</td><td>".($info['news_ext'] ==
"y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" :
"")."
<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale
['043']."</a> ·
".$info['news_reads'].$locale['044']."
</td></tr>
</table></center></td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"700
\">
<tr>
<td background=\"".THEME."images/jumppolska_13.gif\" width=\"660\" height=\"49\"
style=\"border: 0; padding-top: 10; padding-left: 20; padding-right: 20; padding-bottom:
10;\"><b>$subject</b></td>
</tr>
<tr>
<td background=\"".THEME."images/jumppolska_14.gif\" width=\"680\" height=\"3\"
style=\"border: 0; padding-top: 10; padding-left: 10; padding-right: 10; padding-bottom:
10;\">$article</td>
</tr>
<tr>
<td background=\"".THEME."images/jumppolska_15.gif\" width=\"680\" height=\"41\"
style=\"border: 0; padding-top: 10; padding-left: 10; padding-right: 10; padding-bottom:
10;\"><center><table width='98%' cellpadding='0' cellspacing='0'>
<tr>
<td><img src='".THEME."images/bullet.gif'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info
['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])."
</td>
<td align='right'>
<a href='readarticle.php?article_id=".$info['article_id']."'>".$info
['article_comments'].$locale['043']."</a> ·
".$info['article_reads'].$locale['044']."
<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>
</td>
</tr>
</table></center></td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"700
\" margin-right:25px>
<tr>
<td background=\"".THEME."images/jumppolska_13.gif\" width=\"660\" height=\"49\"
style=\"border: 0; padding-top: 10; padding-left: 20; padding-right: 20; padding-bottom:
10;\"><b>$title</b></td>
</tr>
<tr>
<td background=\"".THEME."images/jumppolska_14.gif\" width=\"680\" height=\"3\"
style=\"border: 0; padding-top: 10; padding-left: 10; padding-right: 10; padding-bottom:
10;\">\n";
}
function closetable() {
echo "</tr>
<tr>
<td background=\"".THEME."images/jumppolska_15.gif\" width=\"680\" height=\"14\"
style=\"border: 0; padding-left: 0; padding-right: 10; \"></td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table class='table_center' title=\"OpenSide\" border=\"0\" cellspacing=\"0\"
cellpadding=\"0\" width=\"200\">
<tr>
<td><img src=\"".THEME."images/$title.gif\" padding-left: 10px; border=\"0\"
height=\"18\" width=\"200\" /></td>
</tr>
<tr>
<td background=\"".THEME."images/emikser_v3_26.jpg\" width=\"217\" height=\"3\"
style=\"border: 0; padding-top: 10; padding-left: 10; padding-right: 10; padding-bottom:
10;\">\n";
}
function closeside() {
echo "</td>
</tr>
<tr>
<td><img src=\"".THEME."images/emikser_v3_28.jpg\" border=\"0\" height=\"17\"
width=\"200\" align=\"center\" /></td>
</tr>
</table></div>\n";
tablebreak();
}
function opensidex($title,$open="on") {
$box_img = ($open=="on" ? "off" : "on");
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='sidi-top-left'><img src='".THEME."images/blank.gif' width='5' height='21' alt=''
style='display:block'></td>
<td class='sidi-top-main'>$title</td>
<td align='right' class='sidi-top-main'><img onclick=\"javascript:flipBox('$title')\"
name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'></td>
<td class='sidi-top-right'><img src='".THEME."images/blank.gif' width='5' height='21'
alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='sidi-left'><img src='".THEME."images/blank.gif' width='5' height='1' alt=''
style='display:block'></td>
<td class='side-body'>
<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</div>
<td class='sidi-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt=''
style='display:block'></td>
</tr>
<tr>
<td class='border-dol'><img src='".THEME."images/blank.gif' width='5' height='16' alt=''
style='display:block'></td>
<td class='border-dos'><img src='".THEME."images/blank.gif' width='1' height='16' alt=''
style='display:block'></td>
<td class='border-dor'><img src='".THEME."images/blank.gif' width='5' height='16' alt=''
style='display:block'></td>
</tr>
</table>\n";
tablebreak();
}
function opensidel() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>\n";
}
function closesidel() {
echo "</td>
</tr>
</table>\n";
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='0'></td></tr>
</table>\n";
}
?> Kliknij i zaczekaj na załadowanie kodu ...
Proszę o pomoc
PW od moderatora:
- Przeniesienie tematu - Pieka 21.11 - 19:56
Edytowane przez Crashian dnia 21.11.2008 20:01:41
|