blob: 069f5de3c1cdff4858f410c8466e8e4cbc320113 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
<?php
if($candelete) {
?>
<h1>Delete User</h1>
<h2>Id : <?= $userdelete->id() ?></h2>
<h2>Level : <?= $userdelete->level() ?></h2>
<form action="<?= $this->url('userupdate') ?>" method="post">
<input type="hidden" name="id" value="<?= $userdelete->id() ?>">
<input type="submit" name="action" value="confirmdelete">
</form>
<?php
} else {
?>
<h1>You can't delete this user</h1>
<h2>You need at least one admin user to run the system.</h2>
<p>To delete this user, create at least another admin user, then retry to delete this one.</p>
<a href="<?= $this->url('user') ?>">Go back to users</a>
<?php
}
?>
|