2018-06-18 20:23:05 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
$uID = $_SESSION['user'];
|
|
|
|
?>
|
2018-06-18 17:51:14 +02:00
|
|
|
<p></p>
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<div class="alert alert-dark" role="alert">
|
|
|
|
<h4>Take a look in your FriendsBook!</h4>
|
|
|
|
<hr />
|
|
|
|
<button id="btnCreateTan" type="button" style="float: right;"class="btn btn-info">Erstelle Tan</button>
|
|
|
|
<h5>Want more entrys? go and invite your friends with the friendsTAN</h5>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-columns">
|
|
|
|
|
|
|
|
<!--start of card -->
|
2018-06-18 20:23:05 +02:00
|
|
|
<?php
|
|
|
|
$stmt = $database->prepare("SELECT * FROM entries WHERE userID = '$uID'");
|
|
|
|
$stmt->execute();
|
|
|
|
$result = $stmt->get_result();
|
|
|
|
while ($row = $result->fetch_assoc()) {
|
2018-06-18 17:51:14 +02:00
|
|
|
|
2018-06-18 20:23:05 +02:00
|
|
|
echo '<div class="card">';
|
|
|
|
echo ' <div class="card-body">';
|
|
|
|
echo ' <h5 class="card-title">' .$row['vorname'] . ' ' .$row['nachname'] . '</h5>';
|
|
|
|
if(!empty($row['geburtstag'])){ echo ' <p class="card-text">Geburtstag: ' . $row['geburtstag'] . '</p>';}
|
|
|
|
if(!empty($row['wohnort'])){ echo ' <p class="card-text">Wohnort: ' . $row['wohnort'] . '</p>';}
|
|
|
|
if(!empty($row['strasse'])){ echo ' <p class="card-text">Straße: ' . $row['strasse'] .'</p>';}
|
|
|
|
if(!empty($row['kennenUns'])){ echo ' <p class="card-text">Woher kennen wir uns? ' . $row['kennenUns'] . '</p>';}
|
|
|
|
if(!empty($row['festnetz'])){ echo ' <p class="card-text">Festnetz: ' . $row['festnetz'] .'</p>';}
|
|
|
|
if(!empty($row['handynummer'])){ echo ' <p class="card-text">Handynummer:' . $row['handynummer'] .'</p>';}
|
|
|
|
if(!empty($row['email'])){ echo ' <p class="card-text">E-Mail: ' . $row['email'] .'</p>';}
|
|
|
|
if(!empty($row['hobbies'])){ echo ' <p class="card-text">Hobbies:' . $row['hobbies'] .' </p>';}
|
|
|
|
if(!empty($row['berufswunsch'])){ echo ' <p class="card-text">Berufswunsch: ' . $row['berufswunsch'] .'</p>';}
|
|
|
|
if(!empty($row['essen'])){ echo ' <p class="card-text">Das könnte ich jeden Tag essen: ' . $row['essen'] .'</p>';}
|
|
|
|
if(!empty($row['insel'])){ echo ' <p class="card-text">Was ich auf eine Insel mitnehmen würde: '. $row['insel'] .'</p>';}
|
|
|
|
if(!empty($row['film'])){ echo ' <p class="card-text">Lieblingsfilm: '. $row['film'] .'</p>';}
|
|
|
|
if(!empty($row['sport'])){ echo ' <p class="card-text">Lieblingssport: '. $row['sport'] .'</p>';}
|
|
|
|
if(!empty($row['charakter'])){ echo ' <p class="card-text">Coolster Film oder Spielecharakter: '. $row['charakter'] .'</p>';}
|
|
|
|
if(!empty($row['tier'])){ echo ' <p class="card-text">Mein Lieblingstier: '. $row['tier'] .'</p>';}
|
|
|
|
if(!empty($row['musik'])){ echo ' <p class="card-text">Lieblingsmusik:'. $row['musik'] .' </p>';}
|
|
|
|
if(!empty($row['game'])){ echo ' <p class="card-text">Geilstes Game: '. $row['game'] .'</p>';}
|
|
|
|
if(!empty($row['story'])){ echo ' <p class="card-text">Lieblings alkoholisches Getränk: ' . $row['alk'] .'</p>';}
|
|
|
|
if(!empty($row['geburtstag'])){ echo ' <p class="card-text">Meine heftigeste Suffstory: '. $row['story'] .'</p>';}
|
|
|
|
if(!empty($row['absturz'])){ echo ' <p class="card-text">Letzter Absturz: '. $row['absturz'] . '</p>';}
|
|
|
|
if(!empty($row['trinkspiel'])){ echo ' <p class="card-text">Lieblings Trinkspiel: '. $row['trinkspiel'] .'</p>';}
|
|
|
|
echo ' </div>';
|
|
|
|
echo ' </div>';
|
2018-06-18 17:51:14 +02:00
|
|
|
|
2018-06-18 20:23:05 +02:00
|
|
|
}
|
|
|
|
?>
|
2018-06-18 17:51:14 +02:00
|
|
|
<!-- end of card -->
|
|
|
|
|
|
|
|
<!-- end of card -->
|
|
|
|
</div>
|
|
|
|
<!-- end of card-colums-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- jumbotron for a single entry -->
|
2018-06-18 20:23:05 +02:00
|
|
|
<!--<div class="jumbotron">
|
2018-06-18 17:51:14 +02:00
|
|
|
<h1 class="display-4">Name Nachname!</h1>
|
|
|
|
<p class="lead">Geburtstag:</p>
|
|
|
|
<p>DB-entry</p>
|
|
|
|
<hr/>
|
|
|
|
<p class="lead">Wohnort:</p>
|
|
|
|
<p>DB-entry</p>
|
|
|
|
<hr/>
|
|
|
|
<p class="lead">Straße:</p>
|
|
|
|
<p>DB-entry</p>
|
|
|
|
<hr/>
|
|
|
|
<p class="lead">Woher kennen wir uns:</p>
|
|
|
|
<p>DB-entry</p>
|
|
|
|
<hr/>
|
|
|
|
</div>
|
2018-06-18 20:23:05 +02:00
|
|
|
-->
|
2018-06-18 17:51:14 +02:00
|
|
|
<!-- end of jumbotron -->
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div> <!-- Ende container My FriendsBook -->
|