Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 43 additions & 43 deletions characters.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,59 +47,59 @@ function getTitle()

?>

<div class="pt-5">
<div class="pt-5">

<div class="container">
<div class="container">

<section class="jumbotron text-center pt-5 mb-5 bg-white">
<div class="container">
<h1 class="jumbotron-heading"><?php echo getTitle(); ?></h1>
<?php if(isset($_GET['house'])): ?>
<img class="card-img-top" style="width: 5%" src="/assets/images/houses/<?php echo $_GET['house'] ?>.jpg" alt="<?php echo $_GET['house']; ?>">
<span><?php echo strtoupper($_GET['house']) ?></span>
<?php endif; ?>
</div>
</section>


<div class="bg-white p-5">
<table class="table">
<thead>
<tr>
<th scope="col" style="width: 15%">Avatar</th>
<th scope="col" style="width: 15%">Ad</th>
<th scope="col" style="width: 25%">Rol</th>
<th scope="col">Bina</th>
<th scope="col">Kan Durumu</th>
<th scope="col">Tür</th>
</tr>
</thead>
<tbody>
<?php
foreach ($characterDetails as $detail):
?>
<section class="jumbotron text-center pt-5 mb-5 bg-white">
<div class="container">
<h1 class="jumbotron-heading"><?php echo getTitle(); ?></h1>
<?php if(isset($_GET['house'])): ?>
<img class="card-img-top" style="width: 5%" src="/assets/images/houses/<?php echo $_GET['house'] ?>.jpg" alt="<?php echo $_GET['house']; ?>">
<span><?php echo strtoupper($_GET['house']) ?></span>
<?php endif; ?>
</div>
</section>


<div class="bg-white p-5">
<table class="table">
<thead>
<tr>
<td>
<img style=" width: 50%; height: auto;" alt="" class="card-img-top" src="assets/images/characters/<?php echo $detail['name']?>.jpg">
</td>
<td><?php echo $detail['name'];?></td>
<td><?php echo $detail['role'];?></td>
<td><?php echo $detail['house'];?></td>
<td><?php echo $detail['bloodStatus'];?></td>
<td><?php echo $detail['species'];?></td>
<th scope="col" style="width: 15%">Avatar</th>
<th scope="col" style="width: 15%">Ad</th>
<th scope="col" style="width: 25%">Rol</th>
<th scope="col">Bina</th>
<th scope="col">Kan Durumu</th>
<th scope="col">Tür</th>
</tr>
<?php
</thead>
<tbody>
<?php
foreach ($characterDetails as $detail):
?>
<tr>
<td>
<img style=" width: 50%; height: auto;" alt="" class="card-img-top" src="assets/images/characters/<?php echo $detail['name']?>.jpg">
</td>
<td><?php echo $detail['name'];?></td>
<td><?php echo $detail['role'];?></td>
<td><?php echo $detail['house'];?></td>
<td><?php echo $detail['bloodStatus'];?></td>
<td><?php echo $detail['species'];?></td>
</tr>
<?php
endforeach;
?>
</tbody>
</table>
?>
</tbody>
</table>
</div>
</div>
</div>
</div>


<?php

include 'footer.php';

?>
?>
2 changes: 1 addition & 1 deletion footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
</body>
</html>
</html>
6 changes: 3 additions & 3 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">

<title><?php echo getTitle() ?></title>
</head>
<body class="bg-light">
<body class="bg-light">
66 changes: 33 additions & 33 deletions spells.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,48 +31,48 @@ function getTitle()

?>

<div class="pt-5">
<div class="pt-5">

<div class="container">
<div class="container">

<section class="jumbotron text-center pt-5 mb-5 bg-white">
<div class="container">
<h1 class="jumbotron-heading"><?php echo getTitle(); ?></h1>
</div>
</section>


<div class="bg-white p-5">
<table class="table">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Büyü</th>
<th scope="col">Tür</th>
<th scope="col">Etki</th>
</tr>
</thead>
<tbody>
<?php
$counter = 1;
foreach ($spellDetails as $detail) {
?>
<section class="jumbotron text-center pt-5 mb-5 bg-white">
<div class="container">
<h1 class="jumbotron-heading"><?php echo getTitle(); ?></h1>
</div>
</section>


<div class="bg-white p-5">
<table class="table">
<thead>
<tr>
<th scope="row"><?php echo $counter++; ?> </th>
<td><?php echo $detail['spell']; ?></td>
<td><?php echo $detail['type']; ?></td>
<td><?php echo $detail['effect']; ?></td>
<th scope="col">#</th>
<th scope="col">Büyü</th>
<th scope="col">Tür</th>
<th scope="col">Etki</th>
</tr>
<?php } ?>
</tbody>
</table>
</thead>
<tbody>
<?php
$counter = 1;
foreach ($spellDetails as $detail) {
?>
<tr>
<th scope="row"><?php echo $counter++; ?> </th>
<td><?php echo $detail['spell']; ?></td>
<td><?php echo $detail['type']; ?></td>
<td><?php echo $detail['effect']; ?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>


<?php

include 'footer.php';

?>
?>