Stránka 1 z 2

pozadí na BanList

Napsal: 09 čer 2012, 17:29
od Kadlec
IP:93.91.250.114:37775
Zdravím,jak mám udělat pozadí do banůistu aby banlist jakoby posouval ale pozadí zůstalo na místě dík tady je Banlist config

Kód: Vybrat vše

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Ultra Banlist</title>
</head>
<body>
<h1>Ultra Banlist</h1>
<?php

// change these things

   $server = "hulk.fakaheda.eu";
   $dbuser = "gs_37775_1";
   $dbpass = "NEREKNU";
   $dbname = "gs_37775_1";
   
mysql_connect($server, $dbuser, $dbpass);
mysql_select_db($dbname);

$result = mysql_query("SELECT * FROM banlist ORDER BY id DESC");
//This will display the most recent by id edit this query how you see fit. Limit, Order, ect.
echo "<table width=100% border=1 cellpadding=3 cellspacing=0>";

echo "<tr style=\"font-weight:bold\">
<td>Typ</td>
<td>Jmeno</td>
<td>Duvod</td>
<td>Admin/Mod</td>
<td>Ban udelen</td>
<td>Ban vyprsi</td>
<td>id</td>

</tr>";

while($row = mysql_fetch_assoc($result)){

if($col == "#eeeeee"){
$col = "#ffffff";
}else{
$col = "#eeeeee";
}
echo "<tr bgcolor=$col>";
if($row['type'] == "5"){
echo "<td>Unban</td>";
}else{
    if($row['type'] == "3"){
    echo "<td>Kick</td>";
    }else{
        if($row['type'] == "2"){
        echo "<td>Warn</td>";
        }else{
            if($row['type'] == "0"){
            echo "<td>Banned</td>";
            }else{
                if($row['type'] == "1"){
                echo "<td>IPBanned</td>";
                }else{
                    if($row['type'] == "4"){
                    echo "<td>Fine</td>";
                    }else{
                        if($row['type'] == "6"){
                        echo "<td>Jailed</td>";
                        }else{
                            if($row['type'] == "9"){
                            echo "<td>Perma</td>";
                            }else{
                            echo "<td>Unknown</td>";
//Holy Epic If Statement Batman!
                            }
                        }
                    }
                }
            }
        }
    }
}
echo "<td>".$row['name']."</td>";
echo "<td>".$row['reason']."</td>";
echo "<td>".$row['admin']."</td>";
//Convert Epoch Time to Standard format
$datetime = date("F j, Y, g:i a", $row['time']);
echo "<td>$datetime</td>";
$dateconvert = date("F j, Y, g:i a", $row['temptime']); 
if($row['temptime'] == "0"){
echo "<td>None</td>";
}else{
echo "<td>$dateconvert</td>";
}
echo "<td>".$row['id']."</td>";

echo "</tr>";
}

echo"</table>"

?>
</div>
MyCraft
</body></html>


ted banlist vypadá nudně jen takto a dost by to pozadí pomohlo http://www.my-craft.hys.cz/banlist.php

Re: pozadí na BanList

Napsal: 09 čer 2012, 17:33
od Mysteria

Kód: Vybrat vše

<head>
<
style>
body 
{
backgroundurl(./pozadi.pngfixed;
}
</
style>
<
title>Ultra Banlist</title>
</
head>
 

Re: pozadí na BanList

Napsal: 09 čer 2012, 17:40
od Sejcek
a nebo sem dej jaký pozadí tam chceš dát + URL obrázku

Re: pozadí na BanList

Napsal: 09 čer 2012, 18:01
od Kadlec
todle bych tam chtěl http://img.fileup.cz/?di=413392580589
Spoiler: zobrazit
Obrázek

Re: pozadí na BanList

Napsal: 09 čer 2012, 18:33
od nejento
Tak to bude vypadat takto:

Kód: Vybrat vše

<head>
<style>
body
{
background: url(http://img.fileup.cz/?di=413392580589) fixed;
}
</style>
<title>Ultra Banlist</title>
</head>

Re: pozadí na BanList

Napsal: 09 čer 2012, 18:46
od Kadlec
Prosím můžete sem vložit celý konfig protože já to v tom mém vůbec nemůžu najít tudle část

Re: pozadí na BanList

Napsal: 09 čer 2012, 19:08
od Sejcek
Je hned nahore =D

Re: pozadí na BanList

Napsal: 09 čer 2012, 19:21
od Kadlec
to vím ale tahle část tam vůbec není

Kód: Vybrat vše

<head>
<style>
body
{
background: url(http://img.fileup.cz/?di=413392580589) fixed;
}
</style>
<title>Ultra Banlist</title>
</head>

Re: pozadí na BanList

Napsal: 09 čer 2012, 19:25
od Houska
Musíš ten styl zavest přimo do PHP, když tak tu ten Banlist hod, dopišu ti to tam..

Re: pozadí na BanList

Napsal: 09 čer 2012, 19:28
od Kadlec
Tady je:

Kód: Vybrat vše

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Ultra Banlist</title>
</head>
<body>
<h1>Ultra Banlist</h1>
<?php

// change these things

   $server = "hulk.fakaheda.eu";
   $dbuser = "gs_37775_1";
   $dbpass = "NEREKNU";
   $dbname = "gs_37775_1";
   
mysql_connect($server, $dbuser, $dbpass);
mysql_select_db($dbname);

$result = mysql_query("SELECT * FROM banlist ORDER BY id DESC");
//This will display the most recent by id edit this query how you see fit. Limit, Order, ect.
echo "<table width=100% border=1 cellpadding=3 cellspacing=0>";

echo "<tr style=\"font-weight:bold\">
<td>Typ</td>
<td>Jmeno</td>
<td>Duvod</td>
<td>Admin/Mod</td>
<td>Ban udelen</td>
<td>Ban vyprsi</td>
<td>id</td>

</tr>";

while($row = mysql_fetch_assoc($result)){

if($col == "#eeeeee"){
$col = "#ffffff";
}else{
$col = "#eeeeee";
}
echo "<tr bgcolor=$col>";
if($row['type'] == "5"){
echo "<td>Unban</td>";
}else{
    if($row['type'] == "3"){
    echo "<td>Kick</td>";
    }else{
        if($row['type'] == "2"){
        echo "<td>Warn</td>";
        }else{
            if($row['type'] == "0"){
            echo "<td>Banned</td>";
            }else{
                if($row['type'] == "1"){
                echo "<td>IPBanned</td>";
                }else{
                    if($row['type'] == "4"){
                    echo "<td>Fine</td>";
                    }else{
                        if($row['type'] == "6"){
                        echo "<td>Jailed</td>";
                        }else{
                            if($row['type'] == "9"){
                            echo "<td>Perma</td>";
                            }else{
                            echo "<td>Unknown</td>";
//Holy Epic If Statement Batman!
                            }
                        }
                    }
                }
            }
        }
    }
}
echo "<td>".$row['name']."</td>";
echo "<td>".$row['reason']."</td>";
echo "<td>".$row['admin']."</td>";
//Convert Epoch Time to Standard format
$datetime = date("F j, Y, g:i a", $row['time']);
echo "<td>$datetime</td>";
$dateconvert = date("F j, Y, g:i a", $row['temptime']); 
if($row['temptime'] == "0"){
echo "<td>None</td>";
}else{
echo "<td>$dateconvert</td>";
}
echo "<td>".$row['id']."</td>";

echo "</tr>";
}

echo"</table>"

?>
</div>
MyCraft
</body></html>