Hallo iedereen,
Als ik op mijn profiel pagina, en op de nidex het levenstrookje wil zetten, zodat je dus kan zien hoeveel jij/andere hebben, dan loopt het fout..
Als ik op mijn profiel.php dit zet:
PHP
<style type="text/css">
p.bar {
width: 100px;
height: 12px;
margin:0px;
background: url('images/barback.gif') repeat-x top left;
border: 1px solid #4f1d09;
}
p.bar span {
height: 12px;
text-align: left;
line-height:normal;
margin:0px;
color: #fff;
font-size: 10px;
display: block;
background: url('images/barspan.gif') repeat-x top left;
}
</style>
Toon Meer
Dan laat hij alles goed zien, zowel op de index als op de profiel,
maar als ik bij profiel die code weghaal, en in de style.css zet, en deze link aan de profiel & de index.php
Dan laat hij het strookje zien maar zonder het kleur erin..
Ook is dit hetzelfde bij mijn index.php..
Misschien weet iemand hoe dit komt, en hoe het op te lossen valt?
profiel.php
PHP
<link rel="stylesheet" type="text/css" href="/css/style.css" />
<script type="text/javascript" src="tabcontent.js">
/***********************************************
* Tab Content script v2.2- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
<script type="text/javascript" src="wz_tooltip.js"></script>
<?
$login = $_GET["l"];
$dbres = mysql_query("SELECT * FROM `crimz_leden` WHERE `login`='$login'");
$s = mysql_fetch_object($dbres);
if($s->img == "") {
$img = "img/icons/profiel/standaard.png";
}
else {
$img = "img/icons/profiel/".$s->img.".png";
}
?>
<?
if($list['rang'] == "1"){
$rangnaam = "naam1";
}elseif($list['rang'] == "2"){
$rangnaam = "naam2";
}elseif($list['rang'] == "3"){
$rangnaam = "naam3";
}elseif($list['rang'] == "4"){
$rangnaam = "naam4";
}elseif($list['rang'] == "5"){
$rangnaam = "naam5";
}elseif($list['rang'] == "6"){
$rangnaam = "naam6";
}else{
$rangnaam = "error";
}
?>
<?php
$getal_goed = number_format($s->geld, 0, ',', '.');
?>
<?
if ($s->job == 0) { $job = "Geen job"; }
if ($s->job == 1) { $job = "Criminal job"; }
if ($s->job == 2) { $job = "Production job"; }
?>
<?
$familie = mysql_query("SELECT * FROM crimz_families WHERE id='".$s->familie_id."'") or die($error[1]);
$families = mysql_fetch_object($familie);
?>
<table class="lijst" style="float:left;">
<tr><td colspan="2"><span style="font-size:20px;"><? echo $s->login; ?></span></td><td><img src="img/avatars/<? echo $s->avatar; ?>" alt="?" width="90" height="90"/></td></tr>
<tr><td align="right">Rang</td><td><img src="img/icons/exp.png" alt="" /></td><td align="left"><? echo $s->rang; ?></td></tr>
<tr><td align="right">Gezondheid</td><td><img src="img/icons/heart.png" alt="" /></td><td align="left"><p class="bar"><span style="width:<?php echo round($s->hp*100/100, 1);?>px;"> <?php echo round($s->hp*100/100, 1);?> %</span></p></td></tr>
<tr><td align="right">Geld</td><td width="20"><img src="img/icons/money.png" alt="" /></td><td width="125" align="left">€<? echo $getal_goed; ?>,-</td></tr>
<tr><td align="right">Power</td><td><img src="img/icons/lightning.png" alt="" /></td><td align="left"><? echo $s->power; ?></td></tr>
<tr><td align="right">Aanvallen gewonnen</td><td><img src="img/icons/target.png" alt="" /></td><td align="left"><? echo $s->aanvallen; ?></td></tr>
<tr><td align="right">Aanvallen verloren</td><td><img src="img/icons/target.png" alt="" /></td><td align="left"><? echo $s->aanvallenverloren; ?></td></tr>
<tr><td align="right">Respect</td><td><img src="img/icons/crown.png" alt="" /></td><td align="left"><? echo $s->respect; ?></td></tr>
<tr><td aling="right">Waarschuwingen:</td><td><img src="img/icons/warning.gif" alt="" /></td><td align="left"><? echo $s->waarschuwingen; ?></td></tr>
<tr><td align="right">Bescherming<td><img src="img/icons/wall_brick.png" alt="" /></td><td align="left">Geen bescherming</td></tr>
<? if ($s->familie_id != 0) { ?>
<tr><td align="right">Familie<td><img src="img/icons/group.png" /></td><td align="left"><? echo $families->naam; ?></td></tr>
<? } ?>
</table>
<div style="float:left; width:15px;"> </div>
<div style="clear:both;"></div>
<br />
<ul id="countrytabs" class="shadetabs">
<li><a href="#" rel="country1" class="selected">Info</a></li>
<li><a href="#" rel="country2">Bezit</a></li>
</ul>
<div style="border:1px solid #dcdacd; width:100%; margin-bottom: 1em;">
<div id="country1" class="tabcontent">
<? if ($s->infotekst == "") {
echo "<br>";
info("Deze speler heeft nog geen info opgegeven.");
echo "<br>";
} else {
echo $s->infotekst;
}
?>
</div>
<div id="country2" class="tabcontent">
<? if ($s->bezitweergeven == 1) { ?>
<?
$nm = 0;
$query = mysql_query("SELECT * FROM `crimz_items` ORDER BY `waarvoor` ASC");
while($b = mysql_fetch_object($query)) {
$nm++;
$wat = $s->{$b->databasenaam};
if ($wat > 0) {
?>
<table width=50% class=lijstleft style="float:left;"><tr align=center class=licht>
<td rowspan=3 width=40>
<img src='img/icons/item_<? echo "$b->databasenaam"; ?>.png' onMouseOver="TagToTip('<? echo $nm; ?>')" onMouseOut="UnTip()" width="40">
<? item($nm,$b->naam,$b->classe,$b->power,$b->lvl); ?>
<? echo "</td>
<td width=15><img src=img/icons/brick.png alt=></td><td><strong>".$b->naam."</strong></td></tr><tr>
<td><img src=img/icons/chart_bar.png alt=></td><td><small>Aantal:</small> <strong>".$wat."</strong></td></tr><tr>
";
}
echo "</td></tr></table>";
}
?>
<? if ($s->kogels != 0) { echo "
<table width=50% class=lijstleft style=float:left;>
<tr align=center class=licht>
<td rowspan=2 width=40><img src=img/icons/item_kogel.png width=40 alt= /></td>
<td width=15><img src=img/icons/brick.png alt=></td><td><strong>Kogels</strong></td></tr><tr>
<td><img src=img/icons/chart_bar.png alt=></td><td><small>Aantal:</small> <strong>".$s->kogels."</strong></td></tr>
</table>"; } if ($s->drugs != 0) { echo "
<table width=50% class=lijstleft style=float:left;>
<tr align=center class=licht>
<td rowspan=2 width=40><img src=img/icons/item_drugs.png width=40 alt= /></td>
<td width=15><img src=img/icons/brick.png alt=></td><td><strong>Drugs</strong></td></tr><tr>
<td><img src=img/icons/chart_bar.png alt=></td><td><small>Aantal:</small> <strong>".$s->drugs."</strong></td></tr>
</table>
"; } ?>
<? } else {
echo "<br>";
info("Deze speler wil zijn bezit niet weergeven.");
echo "<br>";
}
?>
</div>
</div>
<script type="text/javascript">
var countries=new ddtabcontent("countrytabs")
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()
</script>
Toon Meer