remove_user.php 3.25 KB
<!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">&nbsp;</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;">&nbsp;</td></tr>
                        <tr>
                            <td colspan="2"><input type="submit" value="&nbsp;I'm sure; Proceed!&nbsp;" /></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>