Exemplo n.º 1
0
session_start();
include_once "klassen.php";
function bool2string($b)
{
    return $b ? "ja" : "nein";
}
?>
<html>
    <head>
        <link rel="stylesheet" type="text/css" href="style.css">
    </head>
    <body>
        <h3>Bitte Instrument w&auml;hlen:</h3>
        <table class="liste"><tr><th>Bild</th><th>Name</th><th>passierbar</th><th>Einflugkosten</th><th>tödlich</th><th>Waffen/Schilde</th><th>Erz</th><th>Deuterium</th></tr>
            <?php 
$l = Weltraumfelder::getList();
for ($i = 0; $i < sizeof($l); $i++) {
    if ($l[$i]->id > 25 || $l[$i]->id < 11) {
        echo '<tr><td><a style="text-decoration:none;color:white;" href="editspace.php?pinsel=' . $l[$i]->id . '&x=', $_GET["x"], '&y=', $_GET["y"], '">';
        echo '<img src="images/' . $l[$i]->bild . '" border="0" /></a></td><td><a href="editspace.php?pinsel=' . $l[$i]->id . '&x=', $_GET["x"], '&y=', $_GET["y"], '">' . $l[$i]->name . '</a></td><td>' . bool2string($l[$i]->passierbar) . '</td><td>' . $l[$i]->einflugkosten . '</td><td>' . bool2string($l[$i]->deadly) . '</td><td>' . bool2string($l[$i]->hide) . '</td><td>' . $l[$i]->erz . '</td><td>' . $l[$i]->deut . '</td></tr>';
    }
}
$l = Systemfelder::getList();
for ($i = 0; $i < sizeof($l); $i++) {
    echo '<tr><td><a style="text-decoration:none;color:white;" href="editspace.php?pinsel=s' . $l[$i]->id . '&x=', $_GET["x"], '&y=', $_GET["y"], '">';
    echo '<img src="images/systems/' . $l[$i]->bild . '" border="0" /></a></td><td><a href="editspace.php?pinsel=s' . $l[$i]->id . '&x=', $_GET["x"], '&y=', $_GET["y"], '">' . $l[$i]->name . '</a></td</tr>';
}
?>
        </table>
    </body>
</html>
Exemplo n.º 2
0
        echo '<tr><th>bebaubar</th><td>' . bool2string($list[$i]->bebaubar) . '</td></tr>';
        echo '<tr><th>tödlich</th><td>' . bool2string($list[$i]->deadly) . '</td></tr>';
        echo '<tr><th>Energieverlust</th><td>' . $list[$i]->energieverlust * 10 . '%</td></tr>';
        echo '<tr><th>Ausfallen der<br />Waffen und Schilde</th><td>' . bool2string($list[$i]->hide) . '</td></tr>';
        echo '</table></td>';
        if ($i + 1 % 3 == 0) {
            echo '</tr>';
        }
    }
    echo '</table>';
}
if ($_GET["kategorie"] == "schiffe") {
    $l = Bauplan_Schiffe::getList();
    echo '<table class="invitetable" style="text-align:center;">';
    echo '<tr><th>ID</th><th>Name</th><th>Bild</th><th>Hülle</th><th>Schilde</th><th>Phaser</th><th>Torpedo</th><th>Gondeln</th><th>Lager</th><th>EPS</th><th>Reaktor</th><th>Warpkern</th><th>Flugkosten</th><th>LRS</th><th>baubar von Spielern</th></tr>';
    for ($i = 0; $i < sizeof($l); $i++) {
        echo '<tr><td>' . $l[$i]->id . '</td><td>' . $l[$i]->klasse . '</td><td><img src="' . $l[$i]->bild . '" border="0" /></td><td>' . $l[$i]->maxhull . '</td><td>' . $l[$i]->maxschilde . '</td><td>' . $l[$i]->laser . ' (' . $l[$i]->maxphaser . ')</td><td>' . $l[$i]->maxgondeln . '</td><td>' . $l[$i]->lager . '</td><td>' . $l[$i]->maxenergie . '</td><td>' . $l[$i]->energieoutput . '</td>';
        echo '<td>' . $l[$i]->maxwarpkern . '</td><td>' . $l[$i]->flugkosten . '</td><td>' . $l[$i]->lrs . '</td><td>' . bool2string($l[$i]->siedler) . '</td></tr>';
    }
    echo '</table>';
}
if ($_GET["kategorie"] == "systems") {
    $l = Systemfelder::getList();
    echo '<table class="invitetable" style="text-align:center;">';
    echo '<tr><th>ID</th><th>Name</th><th>Bild</th></tr>';
    for ($i = 0; $i < sizeof($l); $i++) {
        echo '<tr><td>' . $l[$i]->id . '</td><td>' . $l[$i]->name . '</td><td><img src="images/systems/' . $l[$i]->bild . '" border="0" /></td></tr>';
    }
    echo '</table>';
}
include "foot.php";
Exemplo n.º 3
0
        ?>
      </td>
      <td><?php 
        echo $page->getModule();
        ?>
</td>
      <td><?php 
        echo $page->getAction();
        ?>
</td>
      <td><?php 
        echo $page->getCredential();
        ?>
</td>
      <td><?php 
        echo bool2string($page->getCatchall());
        ?>
</td>            
    </tr>
    <?php 
        if ($rowclass == 'odd') {
            $rowclass = 'even';
        } else {
            $rowclass = 'odd';
        }
        ?>
    
    <?php 
    } else {
        $rootflag = false;
    }