2024-09-07 20:05:22 +00:00
|
|
|
|
|
|
|
<!-- user profile -->
|
|
|
|
<div class="card text-center w-50 mx-auto">
|
|
|
|
|
|
|
|
<p class="h4 card-header">Profile of <?= $userDetails[0]['username'] ?></p>
|
|
|
|
<div class="card-body">
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
2024-09-09 12:20:21 +00:00
|
|
|
<div class="col-md-4 avatar-container">
|
|
|
|
<div>
|
|
|
|
<img class="avatar-img" src="<?= $app_root . htmlspecialchars($avatar) ?>" alt="avatar" />
|
2024-09-08 11:15:08 +00:00
|
|
|
</div>
|
2024-09-07 20:05:22 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-8">
|
|
|
|
|
2024-09-08 10:48:21 +00:00
|
|
|
<!--div class="row mb-3">
|
2024-09-07 20:05:22 +00:00
|
|
|
<div class="col-md-4 text-end">
|
|
|
|
<label class="form-label"><small>username:</small></label>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-8 text-start bg-light">
|
|
|
|
<?= $userDetails[0]['username'] ?>
|
|
|
|
</div>
|
2024-09-08 10:48:21 +00:00
|
|
|
</div-->
|
2024-09-07 20:05:22 +00:00
|
|
|
|
|
|
|
<div class="row mb-3">
|
|
|
|
<div class="col-md-4 text-end">
|
|
|
|
<label class="form-label"><small>name:</small></label>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-8 text-start bg-light">
|
|
|
|
<?= $userDetails[0]['name'] ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row mb-3">
|
|
|
|
<div class="col-md-4 text-end">
|
|
|
|
<label class="form-label"><small>email:</small></label>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-8 text-start bg-light">
|
|
|
|
<?= $userDetails[0]['email'] ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2024-09-13 10:04:15 +00:00
|
|
|
<div class="row mb-3">
|
|
|
|
<div class="col-md-4 text-end">
|
|
|
|
<label class="form-label"><small>timezone:</small></label>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-8 text-start bg-light">
|
|
|
|
<?php if (isset($userDetails[0]['timezone'])) { ?>
|
|
|
|
<?= $userDetails[0]['timezone'] ?> <span style="font-size: 0.66em;">(<?= getUTCOffset($userDetails[0]['timezone']) ?>)</span>
|
|
|
|
<?php } ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2024-09-07 20:05:22 +00:00
|
|
|
<div class="row mb-3">
|
|
|
|
<div class="col-md-4 text-end">
|
|
|
|
<label class="form-label"><small>bio:</small></label>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-8 text-start bg-light">
|
2024-09-10 11:05:38 +00:00
|
|
|
<textarea class="scroll-box" rows="10" readonly><?= $userDetails[0]['bio'] ?? '' ?></textarea>
|
2024-09-07 20:05:22 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row mb-3">
|
|
|
|
<div class="col-md-4 text-end">
|
|
|
|
<label class="form-label"><small>rights:</small></label>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-8 text-start bg-light">
|
2024-09-11 13:21:05 +00:00
|
|
|
<?php foreach ($userRights as $right) { ?>
|
|
|
|
<?= $right['right_name'] ?>
|
|
|
|
<br />
|
|
|
|
<?php } ?>
|
2024-09-07 20:05:22 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2024-09-07 22:36:57 +00:00
|
|
|
<p>
|
|
|
|
<a href="<?= $app_root ?>?page=profile&action=edit" class="btn btn-primary">Edit</a>
|
|
|
|
</p>
|
|
|
|
|
2024-09-07 20:05:22 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- /user profile -->
|