<style>
    .btn { background:#aaa; font-weight:200; }
    .btn-red { font-size: 14px; }
    p, td { font-weight:200; }
</style>
<div style="<?php if ($_SESSION['loggedin'] && $_SESSION['user']['is_admin'] > 2) : ?>display:none;<?php endif; ?>">
    <h3 class="rs alternate-tab accordion-label" style="display:none;">New Users <i class="fa fa-caret-down" style="display:none; float:right; margin:3px 5px 0 5px;"></i></h3>
      
    <div class="tab-pane accordion-content<?= $active_users ?>">
        <div class="form form-profile aif" style='width:auto'>
            
        <h2 style="margin-top:0px;">
            Admins <i class="fa fa-caret-down" style="float:right; margin:3px 5px 0 5px;"></i>
        </h2>
		This page will be retired soon - new <a href="/admin/dash" title="Visit New Manage User page">Manage Admins + Customers page</a>
		<br /><br />
		
        <?php
        if (empty($inactive_users)) : ?>

        <p>There are currently no Inactive Users.</p>

        <?php
        else : ?>

        <table class="admintable" id="projects_table" style="width:100%; overflow:hidden; margin-bottom:6px">
            <tr>
                <th>Image</th>
                <th>Name</th>
                <th>Email</th>
                <th>Registration</th>
                <th>Company?</th>
                <th>Admin</th>
                <th>Adm?</th>
                <th>Undo</th>
                <th>Type</th>
                <th>Edit</th>
                <th>Del</th>
            </tr>

            <?php
            foreach ($inactive_users as $usery) : ?>
                <tr data-uid="<?= $usery['id'] ?>">
                    <td style="text-align:center; width:74px;">
                        
                            <?php if ($usery['image'] !='') : ?> 
                                <img src="<?= $usery['image'] ?>" 
                                onerror="this.src='/static/system/default_avatar.png'"
                                alt="<?= $usery['name'] ?> profile picture" 
								style="width: 64px; height: 64px; border-radius:50px;" /> 
                            <?php else : ?>
                                <img src="/static/system/default_avatar.png" 
                                alt="<?= $useyr['name'] ?> profile picture" 
								style="width: 64px; height: 64px; border-radius:50px;" />                                             
                            <?php endif; ?>                      
                        
                    </td>
                    <td><?= $usery['name'] ?></td>
                    <td><?= $usery['email'] ?></td>
                    <td style="text-align:center;"><?= date("Y-m-d h:i:s A", strtotime($usery['reg_date'])) ?></td>
                    <td style="text-align:center;"><a href='/admin/activateUser' class='btn btn-green activate-user'>Approve</a></td>
                    <td style="text-align:center;"><?= $usery['is_admin'] ?></td>
                    <td style="text-align:center;"><a href='/admin/makeAdmin' class='btn btn-red make-admin'>Yes</a></td>
                    <td style="text-align:center;"><a href='/admin/removeAdmin' class='btn btn-red remove-admin'>Undo</a></td>
                    <td><?= $usery['account_type'] ?></td>
                    <td><a href="?user&edit=<?= $usery['id'] ?>" title="<?= $usery['name'] ?>" target="_blank">Edit</a></td>
                    <td style="text-align:center;"><a href='?deleteUser&delete=<?= $usery['id'] ?>&uid'>delete</a><br />
                        <a href='/admin/deleteUser' class='delete-user confirm' ><img src="/static/system/icons/delete_icon.png" alt="Delete!" style="height:15px; width:15px" /></a></td>
                </tr>
            <?php
            endforeach; ?>

        </table>

        <?php
        endif; ?>

        </div>
    </div><!--end: .tab-pane (Approvals) -->
	<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
</div>         