-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added trinket list and detail views
- Loading branch information
Showing
8 changed files
with
255 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
include_once('../../header.php'); | ||
?> | ||
|
||
<?php | ||
// insert vote | ||
include_once('../strategy_handling.php'); | ||
?> | ||
|
||
<?php | ||
// update votes | ||
if ($selectedStrat && $selectedVote) { | ||
setVote($selectedStrat, $selectedVote); | ||
} | ||
|
||
// get data | ||
if ($selectedId) { | ||
$stmt = getEntityData($selectedId, $unitType); | ||
|
||
$stmt->bind_result($selectedId, $name, $turn, $cost, $text, $blizzardId, $isActive, $artist); | ||
|
||
$stmt->fetch() | ||
?> | ||
<div class="card_wrapper"> | ||
<h1 class="cardname"><?= $name ?> <?= $isActive === 0 ? '[inactive]' : '' ?></h1> | ||
<div class="card_picture_big2"> | ||
<img src="<?= PICTURE_LOCAL_TRINKET . $blizzardId . PICTURE_LOCAL_BIG_SUFFIX ?>" alt="The picture of <?= $name ?>"> | ||
</div> | ||
<div class="card_info"> | ||
<?= $artist ? 'Artist:' : '' ?> <span class="price_font"><?= $artist ?? '' ?></span><br><br> | ||
</div> | ||
<div class="card_picture"> | ||
<img src="<?= PICTURE_LOCAL_TRINKET . $blizzardId . PICTURE_LOCAL_RENDER_SUFFIX_80 ?>" alt="<?= $text ?>"> | ||
</div> | ||
</div> | ||
|
||
<?php | ||
include_once('../strategy_and_voting.php'); | ||
} | ||
?> | ||
|
||
</div> <!-- / content --> | ||
<?php | ||
include_once('../../footer.php'); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.