All pastes #281147 Raw Edit

Mine

public text v1 · immutable
#281147 ·published 2006-12-16 15:12 UTC
rendered paste body
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-color: #000;
background-color: #000;
}

A {text-decoration: none}
A:link {text-decoration: none; color: white; font-weight: bold;}
A:visited {text-decoration: none; color: white; font-weight: bold;}
A:active {text-decoration: none}
A:hover {text-decoration: none; color: #cee3ff; font-weight: normal;}

.overall {
width: 780px;
height: 100%;
margin: 0 auto;
position: auto;
background: #272727;
}

.tborder {
border: 1px solid #000;
width: 50%;
text-align: center;
}

#topbars {
border: 1px;
width: 100%;
height: 20px;
padding-top: 7px;
padding-bottom: 0px;
background: #3f5b80 url(images/bar.png);
font-weight: bold;
text-align: center;
color: #FFFFFF;
}

/* logo */
#header {
width: 778px;
height: 150px;
border: 1px solid #000000;
background-color: #272727;
background-image: url(images/logo.png);
font-size: 50px;
color: #CCCCCC;
text-align: center;
}

/* the totally awesome menu*/
#leftmenu {
float: left;
border: 0px solid #000000;
width: 150px;
background-color: #272727;
font-weight: normal;
color: #FFFFFF;
}

/* main content weeeee */

#content {
float: right;
border: 0px solid #000000;
width: 625px;
height: 100%;
font-weight: normal;
color: #FFF;
background-color: #272727;
}

/* left menu */
#1link {display:none;}
#2link {display:none;}

/* input crap */
input.qty_input {
background-color: #272727;
font-weight: normal;
color: #FFFFFF;
}
input.submit {
background-color: #272727;
border: 1px solid #000000;
font-weight: bold;
color: #FFFFFF;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Sample</title>

</head>

<body>
<div class="overall">
<div id="header">

</div>
<div id="leftmenu">
<div id="topbars">Navigation</div>
<div id="1link">
<? include "log.php"; ?>
</div>
</div><div id="content">
<div id="topbars">BattleField</div>
<table border='1' width='100%'>
<tr>
<td bgcolor='#000088'>Username</td><td bgcolor='#000088'>Army Size</td><td bgcolor='#000088'>Gold</td><td bgcolor='#000088'>Rank
</td>
</tr>
</table>
<?
include "config.php";
function total(){
$start = "25";
$sql = mysql_query("SELECT * FROM users ORDER BY rank DESC LIMIT 0,30");
while($row = mysql_fetch_assoc($sql)){
}
$att = $row['attack'];
$def = $row['defence'];
$mat = $row['mattack'];
$mde = $row['mdefence'];
$unt = $row['untrained'];
$mun = $row['muntrained'];
$spy = $row['spy'];
$sen = $row['sentry'];
$sum = $att + $def + $mat + $mde + $unt + $mun + $spy + $sen;
return $sum;
}
?>
<?
$start = "25";
$sql = mysql_query("SELECT * FROM users ORDER BY rank DESC LIMIT 0,30");
while($row = mysql_fetch_assoc($sql)){

echo "<table border='1' width='100%'>
<tr>
<th>{$row['username']}</th>";
echo "<th>" . total() .
"</th></tr></table>";
}

?></div>
</div>

</body>
</html>