<?php
error_reporting(E_ALL);
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n";
echo "<html>";
//keinen <head> bereich eignefügt, müsst ihr selber machen
//in denn head muss auch eine css datei mit dem inhalt
// #linke, #mitte, #rechte {
// float: left;
// }
// .head {
// wunschformatierung der 1. tabellenreihe
// }
//alternativ könnt ihr den auskommentierten stylesheet unter diesem satz auch einbinden ^^
echo "<head>\n";
//echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"http://sascha27.drition.net/tabellen.css\" />\n";
echo "</head>\n\n";
echo "<body>\n\n";
echo "<div id=\"alles\">\n"; //alles umfassende div box
echo "<div id=\"linke\">\n";
echo "<table cellpadding=\"1\" border=\"2\">\n";
echo "<tr>\n";
echo "<td class=\"head\">Level</td><td class=\"head\">Exp</td>";
echo "</tr>";
for($i=1;$i<34;$i++) {
$xp=0;
for($j=1; $j<$i; $j++) {
$xp += floor($j+300*pow(2, ($j/7)));
}
$xp = floor($xp/4);
echo "<tr\n>";
echo "<td>".$i."</td><td> ".$xp."</td>\n";
echo "</tr>\n";
}
echo "</table>\n";
echo "</div>\n\n";
echo "<div id=\"mitte\">\n";
echo "<table cellpadding=\"1\" border=\"2\">\n";
echo "<tr class=\"head\" >\n";
echo "<td class=\"head\">Level</td><td class=\"head\">Exp</td>";
echo "</tr>";
for($i=34;$i<67;$i++) {
$xp=0;
for($j=1; $j<$i; $j++) {
$xp += floor($j+300*pow(2, ($j/7)));
}
$xp = floor($xp/4);
echo "<tr>\n";
echo "<td>".$i."</td><td> ".$xp."</td>\n";
echo "</tr>\n";
}
echo "</table>\n\n";
echo "</div>\n\n";
echo "<div id=\"rechte\">\n";
echo "<table cellpadding=\"1\" border=\"2\">\n";
echo "<tr>\n";
echo "<td class=\"head\">Level</td><td class=\"head\">Exp</td>";
echo "</tr>";
for($i=67;$i<100;$i++) {
$xp=0;
for($j=1; $j<$i; $j++) {
$xp += floor($j+300*pow(2, ($j/7)));
}
$xp = floor($xp/4);
echo "<tr>\n";
echo "<td>".$i."</td><td>".$xp."</td>\n";
echo "</tr>\n";
}
echo "</table>\n";
echo "</div>\n";
echo "</div>\n\n";
echo "</body>\n";
echo "</html>";
?>
Dieser Beitrag wurde von Sascha bearbeitet: 12. April 2007 - 00:47 Uhr