Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- require_once("inc/config.inc.php");
- require_once("inc/functions.inc.php");
- //Überprüfe, dass der User eingeloggt ist
- //Der Aufruf von check_user() muss in alle internen Seiten eingebaut sein
- $user = check_user();
- include("templates/header.inc.php");
- ?>
- <div class="container main-container">
- <h1>Accountübersicht <?php echo htmlentities($user['Ingamename']); ?>,</h1><br>
- Stand:
- <?php
- $statement = $pdo->prepare("SELECT * FROM statistiken WHERE user=$user");
- $result = $statement->execute();
- $count = 1;
- while($row = $statement->fetch()) {
- echo "<tr>";
- echo "<td>".$user['datum']."</td>";
- }
- ?>
- <br>
- <br>
- <br>
- <div class="panel panel-default">
- <table class="table">
- <tr>
- <th>Ingamename</th>
- <th>Hauptstadt</th>
- <th>Allianz</th>
- </tr>
- <?php
- $statement = $pdo->prepare("SELECT * FROM users LIMIT 1");
- $result = $statement->execute();
- $count = 1;
- while($row = $statement->fetch()) {
- echo "<tr>";
- echo "<td>".$user['Ingamename']."</td>";
- echo "<td>".$user['Koordinaten']."</td>";
- echo "<td>".$user['Allianz']."</td>";
- echo "</tr>";
- }
- ?>
- </table>
- </div>
- </div>
- <div class="container main-container">
- <div class="panel panel-default">
- <h2>Stand Ressis</h2>
- <table class="table">
- <tr>
- <th>Koordinaten</th>
- <th>Iridium</th>
- <th>Holzium</th>
- <th>Wasser</th>
- <th>Sauerstoff</th>
- </tr>
- <?php
- $statement = $pdo->prepare("SELECT * FROM statistiken WHERE user=$user");
- $result = $statement->execute();
- $count = 1;
- while($row = $statement->fetch()) {
- echo "<tr>";
- echo "<td>".$row['koords']."</td>";
- echo "<td>".$row['iridium']."</td>";
- echo "<td>".$row['holzium']."</td>";
- echo "<td>".$row['wasser']."</td>";
- echo "<td>".$row['sauerstoff']."</td>";
- echo "</tr>";
- }
- ?>
- </table>
- </div>
- <div class="panel panel-default">
- <h2>Produktion</h2>
- <table class="table">
- <tr>
- <th>Koordinaten</th>
- <th>Iri / h</th>
- <th>Holz / h</th>
- <th>Was / h</th>
- <th>o2 / h</th>
- <th></th>
- <th>Iri / h</th>
- <th>Holz / h</th>
- <th>Was / h</th>
- <th>o2 / h</th>
- </tr>
- <?php
- $statement = $pdo->prepare("SELECT * FROM statistiken WHERE user=$user");
- $result = $statement->execute();
- $count = 1;
- while($row = $statement->fetch()) {
- echo "<tr>";
- echo "<td>".$row['koords']."</td>";
- echo "<td>".$row['iridium']."</td>";
- echo "<td>".$row['holzium']."</td>";
- echo "<td>".$row['wasser']."</td>";
- echo "<td>".$row['sauerstoff']."</td>";
- echo "";
- echo "<td>".$row['iridium']."</td>";
- echo "<td>".$row['holzium']."</td>";
- echo "<td>".$row['wasser']."</td>";
- echo "<td>".$row['sauerstoff']."</td>";
- echo "</tr>";
- }
- ?>
- </table>
- </div>
- </div>
- </div>
- <div class="container main-container">
- <div class="panel panel-default">
- <h2>Gebäude</h2>
- <table class="table">
- <tr>
- <th>Koordinaten</th>
- <th>Iri</th>
- <th>Holz</th>
- <th>Wa</th>
- <th>O2</th>
- <th>Lg</th>
- <th>Ta</th>
- <th>Hg</th>
- <th>Fh</th>
- <th>Bz</th>
- <th>Tz</th>
- <th>Kz</th>
- <th>Hz</th>
- <th>Vz</th>
- <th>Ss</th>
- </tr>
- <?php
- $statement = $pdo->prepare("SELECT * FROM statistiken WHERE user=$user");
- $result = $statement->execute();
- $count = 1;
- while($row = $statement->fetch()) {
- echo "<tr>";
- echo "<td>".$row['koords']."</td>";
- echo "<td>".$row['iri']."</td>";
- echo "<td>".$row['holz']."</td>";
- echo "<td>".$row['was']."</td>";
- echo "<td>".$row['o2']."</td>";
- echo "<td>".$row['lag']."</td>";
- echo "<td>".$row['tan']."</td>";
- echo "<td>".$row['han']."</td>";
- echo "<td>".$row['flh']."</td>";
- echo "<td>".$row['bz']."</td>";
- echo "<td>".$row['tz']."</td>";
- echo "<td>".$row['kz']."</td>";
- echo "<td>".$row['hz']."</td>";
- echo "<td>".$row['vz']."</td>";
- echo "<td>".$row['ss']."</td>";
- echo "</tr>";
- }
- ?>
- </table>
- </div>
- </div>
- <div class="container main-container">
- <div class="panel panel-default">
- <h2>Technologien</h2>
- <table class="table">
- <tr>
- <th>Oxi</th>
- <th>Hov</th>
- <th>Anti</th>
- <th>ESW</th>
- <th>PSW</th>
- <th>NSW</th>
- <th>Tvr</th>
- <th>Fkv</th>
- <th>Com</th>
- <th>Lv</th>
- <th>Wk</th>
- <th>Bbt</th>
- <th>Sst</th>
- </tr>
- <?php
- $statement = $pdo->prepare("SELECT * FROM statistiken WHERE user=$user");
- $result = $statement->execute();
- $count = 1;
- while($row = $statement->fetch()) {
- echo "<tr>";
- echo "<td>".$row['oxi']."</td>";
- echo "<td>".$row['hov']."</td>";
- echo "<td>".$row['anti']."</td>";
- echo "<td>".$row['esw']."</td>";
- echo "<td>".$row['psw']."</td>";
- echo "<td>".$row['nsw']."</td>";
- echo "<td>".$row['tvr']."</td>";
- echo "<td>".$row['fkv']."</td>";
- echo "<td>".$row['com']."</td>";
- echo "<td>".$row['lv']."</td>";
- echo "<td>".$row['wk']."</td>";
- echo "<td>".$row['bbt']."</td>";
- echo "<td>".$row['sst']."</td>";
- echo "</tr>";
- }
- ?>
- </table>
- </div>
- </div>
- <div class="container main-container">
- <div class="panel panel-default">
- <h2>Flugzeuge</h2>
- <table class="table">
- <tr>
- <th>Koordinaten</th>
- <th>SP</th>
- <th>BB</th>
- <th>RA</th>
- <th>EA</th>
- <th>FA</th>
- <th>NG</th>
- <th>RV</th>
- <th>DE</th>
- <th>Spi</th>
- <th>Se</th>
- <th>Sc</th>
- <th>Bo</th>
- <th>kT</th>
- <th>mT</th>
- <th>gT</th>
- </tr>
- <?php
- $statement = $pdo->prepare("SELECT * FROM statistiken WHERE user=$user");
- $result = $statement->execute();
- $count = 1;
- while($row = $statement->fetch()) {
- echo "<tr>";
- echo "<td>".$row['koords']."</td>";
- echo "<td>".$row['spar']."</td>";
- echo "<td>".$row['bla']."</td>";
- echo "<td>".$row['ravn']."</td>";
- echo "<td>".$row['eagl']."</td>";
- echo "<td>".$row['falc']."</td>";
- echo "<td>".$row['nigt']."</td>";
- echo "<td>".$row['ravr']."</td>";
- echo "<td>".$row['dest']."</td>";
- echo "<td>".$row['spio']."</td>";
- echo "<td>".$row['sett']."</td>";
- echo "<td>".$row['scar']."</td>";
- echo "<td>".$row['bomb']."</td>";
- echo "<td>".$row['ktrp']."</td>";
- echo "<td>".$row['mtrp']."</td>";
- echo "<td>".$row['gtrp']."</td>";
- echo "</tr>";
- }
- ?>
- </table>
- </div>
- </div>
- <div class="container main-container">
- <div class="panel panel-default">
- <h2>Verteidigungsanlagen</h2>
- <table class="table">
- <tr>
- <th>Koordinaten</th>
- <th>Ew</th>
- <th>Pw</th>
- <th>Nw</th>
- <th>Esq</th>
- <th>Psq</th>
- <th>Nsq</th>
- </tr>
- <?php
- $statement = $pdo->prepare("SELECT * FROM statistiken WHERE user=$user");
- $result = $statement->execute();
- $count = 1;
- while($row = $statement->fetch()) {
- echo "<tr>";
- echo "<td>".$row['koords']."</td>";
- echo "<td>".$row['ewoo']."</td>";
- echo "<td>".$row['pwoo']."</td>";
- echo "<td>".$row['nwoo']."</td>";
- echo "<td>".$row['eseq']."</td>";
- echo "<td>".$row['pseq']."</td>";
- echo "<td>".$row['nseq']."</td>";
- echo "</tr>";
- }
- ?>
- </table>
- </div>
- </div>
- <?php
- include("templates/footer.inc.php")
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement