54 lines
2.2 KiB
PHP
54 lines
2.2 KiB
PHP
|
<?php include(__DIR__."/../layout/top.php"); ?>
|
||
|
<div class="row">
|
||
|
<div class="col-md-12">
|
||
|
<h3>Users</h3>
|
||
|
<form method="post">
|
||
|
<table class="table">
|
||
|
<tr>
|
||
|
<th>Username</th>
|
||
|
<td><input name="username" value="<?php echo $editUser->username; ?>" class="form-control"></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th>Primary Mail</th>
|
||
|
<td><input name="" value="<?php echo $editUser->getMail(); ?>" class="form-control" disabled></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th>Developer</th>
|
||
|
<td><input name="developer" type="checkbox" <?php if($editUser->developer) { echo 'checked'; } ?>></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th>Admin</th>
|
||
|
<td><input name="admin" type="checkbox" <?php if($editUser->admin) { echo 'checked'; } ?>></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<input type="submit" value="Save" class="btn btn-warning">
|
||
|
</form>
|
||
|
|
||
|
<h4>Mails</h4>
|
||
|
<table class="table">
|
||
|
<tr>
|
||
|
<th>#</th>
|
||
|
<th>Mail</th>
|
||
|
<th>Status</th>
|
||
|
<th>Actions</th>
|
||
|
</tr>
|
||
|
<?php
|
||
|
foreach($mails as $mail) {
|
||
|
?>
|
||
|
<tr>
|
||
|
<td><?php echo $mail->id; ?></td>
|
||
|
<td><?php echo $mail->mail; ?></td>
|
||
|
<td><?php echo $mail->status ?></td>
|
||
|
<td>
|
||
|
<?php
|
||
|
if($mail->status == "waiting") {
|
||
|
echo '<a href="/gui/mailValidation/'.$mail->id.'/'.$mail->validation_code.'" class="btn btn-danger btn-sm">Aktivieren</a>';
|
||
|
}
|
||
|
?>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<?php } ?>
|
||
|
</table>
|
||
|
</div>
|
||
|
</div>
|
||
|
<?php include(__DIR__."/../layout/bottom.php"); ?>
|