Panzram Posted December 3, 2010 Posted December 3, 2010 Hey i am trying to edit a layout a bit i found on here earlier, but its not going how i hoped, can anyone please help me? The result i get is: Can someone please sort it so the bars go the right way, and the usename and money appears. Thanks in advance [fieldset]<?php class headers { function startheaders() { global $ir; echo <<<EOF <html> <head> <title>y</title> <link rel="stylesheet" href="style.css" type="text/css"> <script language="JavaScript1.2"> function high(which2){ theobject=which2 highlighting=setInterval("highlightit(theobject)",50) } function low(which2){ clearInterval(highlighting) if (which2.style.MozOpacity) which2.style.MozOpacity=0.3 else if (which2.filters) which2.filters.alpha.opacity=25 } function highlightit(cur2){ if (cur2.style.MozOpacity<1) cur2.style.MozOpacity=parseFloat(cur2.style.MozOpacity)+0.1 else if (cur2.filters&&cur2.filters.alpha.opacity<100) cur2.filters.alpha.opacity+=10 else if (window.highlighting) clearInterval(highlighting) } </script> <script language="JavaScript"> function FT_PreloadImages() { if (document.images) { if (typeof(document.FT) == 'undefined') { document.FT = new Object(); } document.FT.loaded_images = new Array(); var argc = FT_PreloadImages.arguments.length; for (i=0; i<argc; i++) { document.FT.loaded_images = new Image(); document.FT.loaded_images.src = FT_PreloadImages.arguments; } } } function msover(img,ref,desc) { if (document.images) { document.images $IP = mysql_real_escape_string($IP); mysql_query("UPDATE users SET laston=unix_timestamp(),lastip='$ip' WHERE userid=$userid",$c); if(!$ir['email']) { die ("<body>Your account may be broken. Please mail [email protected] stating your username and player ID."); } if($dosessh && $_SESSION['attacking']) { print "You lost all your EXP for running from the fight."; mysql_query("UPDATE users SET exp=0 WHERE userid=$userid",$c); $_SESSION['attacking']=0; } $enperc=(int) ($ir['energy']/$ir['maxenergy']*100); $wiperc=(int) ($ir['will']/$ir['maxwill']*100); $experc=(int) ( $ir['exp']/$ir['exp_needed']*100); $brperc=(int) ($ir['brave']/$ir['maxbrave']*100); $hpperc=(int) ($ir['hp']/$ir['maxhp']*100); $enopp=100-$enperc; $wiopp=100-$wiperc; $exopp=100-$experc; $bropp=100-$brperc; $hpopp=100-$hpperc; $d=""; $u=$ir['username']; print "<body bgcolor='#6A6A6A' style='background-image:url('images/bg.png');' topmargin='0' bgproperties='fixed' onLoad='FT_PreloadImages("images/top/quiknav/buttons/index_on.jpg", "images/top/quiknav/buttons/forums_on.jpg", "images/top/quiknav/buttons/roster_on.jpg", "images/top/quiknav/buttons/links_on.jpg", "images/top/quiknav/buttons/matches_on.jpg")'> <div align='center'><center> <table border='0' cellpadding='0' cellspacing='0' width='100'> <tr> <td width='100%' valign='top'><table border='0' cellpadding='0' cellspacing='0' width='100%'> <tr> <td width='33%' valign='top' background='images/border_left.jpg'>images/border_left.jpg' alt='border_left.jpg'></td> <td width='33%' valign='top'><table border='0' cellpadding='0' cellspacing='0' width='100%'> <tr> <td width='100%' valign='top'><table border='0' cellpadding='0' cellspacing='0' width='100%'> <tr> <td width='50%' valign='top'></td> <td width='50%' valign='top'></td> </tr> </table> </td> </tr> <tr> <td width='100%'></td> </tr> <tr> <td width='700' height='34' style='background-image:url(images/top/bottom.jpg); '></td> </tr> <tr> <td width='100%' valign='top'><table border='0' cellpadding='0' cellspacing='0' width='100%' height='311'> <tr> <td width='18%' valign='top' background='images/nav/bg2.jpg' height='311'><table border='0' cellpadding='0' cellspacing='0' width='100%'> <tr> <td width='100%' background='images/nav/bg.bmp' valign='top'><table border='0' cellpadding='0' cellspacing='0' width='100%'> <tr> <td width='147' height='15' style='background-image:url(images/top/bottom.jpg); '></td> </tr> <tr> <td width='100%'><table border='0' cellpadding='8' cellspacing='0' width='100%'> <tr> <td width='100%'>Name: {$u} [{$ir['userid']}] Money: {$fm} Level: {$ir['level']} Energy: {$enperc}% <img src=bargreen.gif width=$enperc height=10><img src=barred.gif width=$enopp height=10> Will: {$wiperc}% <img src=bargreen.gif width=$wiperc height=10><img src=barred.gif width=$wiopp height=10> Brave: {$ir['brave']}/{$ir['maxbrave']} <img src=bargreen.gif width=$brperc height=10><img src=barred.gif width=$bropp height=10> EXP: {$experc}% <img src=bargreen.gif width=$experc height=10><img src=barred.gif width=$exopp height=10> Health: {$hpperc}% <img src=bargreen.gif width=$hpperc height=10><img src=barred.gif width=$hpopp height=10> "; if($ir['fedjail']) { $q=mysql_query("SELECT * FROM fedjail WHERE fed_userid=$userid",$c); $r=mysql_fetch_array($q); die("<font color=red size=+1>You have been put in the Your Game Name Federal Jail for {$r['fed_days']} day(s). Reason: {$r['fed_reason']}</font></body></html>"); } if(file_exists('ipbans/'.$ip)) { die("<font color=red size=+1>Your IP has been banned, there is no way around this.</font></body></html>"); } } function menuarea() { include "mainmenu.php"; global $ir,$c; print "</td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> <td width='2%' valign='top' background='images/spacer_bg.jpg' height='311'></td> <td width='80%' valign='top' background='images/content/box/bg.jpg' height='311'><table border='0' cellpadding='0' cellspacing='0' width='100%'> <tr> <td width='100%'></td> </tr> <tr> <td width='100%' background='images/content/bg.jpg' valign='top'><table border='0' cellpadding='0' cellspacing='0' width='100%'> <tr> <td width='2%'></td> <td width='19%' valign='top'><table border='0' cellpadding='0' cellspacing='0' width='100%'> <tr> <td width='100%'></td> </tr> <tr> <td width='100%' background='images/minibox_l/bg.jpg'><table border='0' cellpadding='0' cellspacing='0' width='100%'> <tr> <td width='6%'></td> <td width='87%' valign='top'>Name: {$u} [{$ir['userid']}] Money: {$fm} Level: {$ir['level']} </td> <td width='7%'></td> </tr> </table> </td> </tr> <tr> <td width='100%'></td> </tr> <tr> <td width='100%' height='4'></td> </tr> </table> </td> <td width='2%'></td> <td width='57%' valign='top'><table border='0' cellpadding='0' cellspacing='0' width='100%' height='1'> <tr> <td width='100%' height='1'></td> </tr> <tr> <td width='100%' background='images/minibox_r/bg.jpg' height='1' valign='top'><table border='0' cellpadding='0' cellspacing='0' width='100%'> <tr> <td width='3%'></td> <td width='94%'>Energy: {$enperc}% <img src=bargreen.gif width=$enperc height=2><img src=barred.gif width=$enopp height=2> Will: {$wiperc}% <img src=bargreen.gif width=$wiperc height=2><img src=barred.gif width=$wiopp height=2> Brave: {$ir['brave']}/{$ir['maxbrave']} <img src=bargreen.gif width=$brperc height=2><img src=barred.gif width=$bropp height=2> Health: {$hpperc}% <img src=bargreen.gif width=$hpperc height=2><img src=barred.gif width=$hpopp height=2> </td> <td width='4%'></td> </tr> </table> </td> </tr> <tr> <td width='100%' height='1'></td> </tr> <tr> <td width='100%' height='4'></td> </tr> </table> </td> <td width='20%'></td> </tr> </table> </td> </tr> <tr> <td width='100%' valign='top'><table border='0' cellpadding='0' cellspacing='0' width='100%'> <tr> <td width='100%' valign='top'><table border='0' cellpadding='0' cellspacing='0' width='100%' background='images/content/box/topbg.jpg'> </table> </td> </tr> <td width='91%' valign='top' height='3' colspan='2'></td> </tr> </table> </td> </tr> <tr> <td width='100%' valign='top'><table border='0' cellpadding='0' cellspacing='0' width='100%'> <tr> <td width='100%' valign='top'><table border='0' cellpadding='0' cellspacing='0' width='100%' background='images/content/box/topbg.jpg'> <tr> <td width='50%'></td> <td width='50%'></td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td width='100%' style='padding: 5px;'>"; } function endpage() { print "</td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> <td width='34%' valign='top' background='images/border_right.jpg'></td> </tr> </table> </td> </tr> <tr> <td width='100%'></td> </tr> </table> </center> </div> </body> </html>"; } } ?>[/fieldset] Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.