remove_user.php
3.25 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Remove User</title>
<style type="text/css">
html, body { margin:0px; padding:0;}
.title-link {
display:block;
color:#f7bd55;
font-size: 12px;
font-weight: bold;
text-align: left;
line-height: 1.75em;
background-color: #3b0d32;
border: solid 1px #FFF;
border-bottom: solid 1px #999;
cursor: default;
padding: 0em; padding:3px 10px 3px 10px;
margin: 0em;
}
form {
display: block;
margin-right:20px;
}
.dashboard-section-title { font-weight:bold; color:#3b0d32; }
</style>
</head>
<body>
<div class="title-link" style="display:block;color:#f7bd55; font-size: 12px;font-weight: bold;text-align: left;line-height: 1.75em; background-color: #3b0d32; border: solid 1px #FFF; border-bottom: solid 1px #999; cursor: default; padding: 0em; padding:3px 10px 3px 10px; margin: 0em;">Are you sure you want to remove this user?</div>
<form method="post" action="" id="remove-user-form">
<input type="hidden" name="uid" value="<?php echo $uid; ?>" />
<div class="dashboard-section" style="margin-left:5px;margin-top:10px;">
<div class="dashboard-section-links"></div>
<div class="dashboard-section-content small" style="padding:10px;">
<table width="300" cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr>
<td width="20" valign="top"><input type="radio" name="remove_action" value="remove_all" id="remove_all" /></td>
<td><label for="remove_all">Yes, remove user and all related registrations, posts and comments.<br /><span style="font-size:11px; color:#999;"><em>(not recommended)</em></span></label></td>
</tr>
<tr><td colspan="2"> </td></tr>
<tr>
<td width="20" valign="top"><input type="radio" name="remove_action" value="terminate" id="terminate" checked="checked" /></td>
<td><label for="terminate">Yes, but I just want to terminate them, and remove their access to the site.</label></td>
</tr>
<tr><td valign="middle" colspan="2" class="confirm-delete" style="color:red; font-size:10px;height:25px;"> </td></tr>
<tr>
<td colspan="2"><input type="submit" value=" I'm sure; Proceed! " /></td>
</tr>
</tbody>
</table>
</div>
</div>
</form>
<script type="text/javascript">
var $ = jQuery;
$('#remove_all').click(function() {
$('.confirm-delete').html('This action cannot be undone. Proceed with caution.');
});
$('#terminate').click(function() {
$('.confirm-delete').empty();
});
</script>
</body>
</html>