aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2025-01-19 15:53:55 +0200
committerSyndamia <kamen@syndamia.com>2025-01-19 15:53:55 +0200
commitc4da5629654f7cde95a91c51fc69c9fcbea9613d (patch)
treec6b3b5d762561b0d01092cbe302aaac17774c14c
parent877320142b415a5ee9b8e3eff75be1470c0bab46 (diff)
downloadnowayforward_human-c4da5629654f7cde95a91c51fc69c9fcbea9613d.tar
nowayforward_human-c4da5629654f7cde95a91c51fc69c9fcbea9613d.tar.gz
nowayforward_human-c4da5629654f7cde95a91c51fc69c9fcbea9613d.zip
feat(views): Implement more sophisticated printing of user info
-rw-r--r--views/test/index.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/views/test/index.php b/views/test/index.php
index e0b7eb6..df83e60 100644
--- a/views/test/index.php
+++ b/views/test/index.php
@@ -1,6 +1,5 @@
<?php
include '../meta.php';
- print_r(Database\User::get_all());
?>
<form action="/test1/index.php" method="POST">
@@ -8,4 +7,14 @@
<input type="submit">
</form>
+<?php foreach(Database\User::get_all() as $user):?>
+ <section class="card">
+ <section class="quickinfo">
+ <?php print_r($user); ?>
+ </section>
+ <strong><?php echo $user->Username ?></strong>
+ <em><?php echo $user->Role ?></em>
+ </section>
+<?php endforeach;?>
+
<?php end_page(); ?>