Skip to content

Commit

Permalink
Fixed #24: Button Entity Type hinzugefügt
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianMalik committed Nov 30, 2023
1 parent f733c15 commit 7d2de30
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@
# Update-Informationen aus JSON ermitteln
$Registration_Initial = $json_content_LEI['data']['attributes']['registration']['initialRegistrationDate'];
$Registration_LastUpdate = $json_content_LEI['data']['attributes']['registration']['lastUpdateDate'];
$EntityCategory = $json_content_LEI['data']['attributes']['entity']['category'];
?>

<?php
Expand All @@ -188,6 +189,9 @@ class="btn btn-outline-dark btn-sm font-Bitter mr-1"
# Update-Informationen im Button-Format anzeigen
echo '<button type="button" class="btn btn-dark btn-sm font-Bitter mr-1" disabled><b>Registration:</b> <small>' . date("d.m.Y", strtotime($Registration_Initial)) . '</small></button>';
echo '<button type="button" class="btn btn-dark btn-sm font-Bitter mr-1" disabled><b>Letztes Update:</b> <small>' . date("d.m.Y", strtotime($Registration_LastUpdate)) . '</small></button>';
# Entity Category Type anzeigen
echo '<button type="button" class="btn btn-dark btn-sm font-Bitter mr-1" disabled><b>Entity Typ:</b> <small>' . $EntityCategory . '</small></button>';

# Button "Active" / "Passive" anzeigen
if ($json_content_LEI['data']['attributes']['entity']['status'] == "ACTIVE") {
echo '<button type="button" class="btn btn-success btn-sm font-Bitter mr-1" disabled><b>'
Expand Down

0 comments on commit 7d2de30

Please sign in to comment.