<ul class="tabnav el">
    <li
        <?php
        if ($_SERVER['SCRIPT_NAME'] == '/core/admin/adminusers/manage.php'
                 || ($_SERVER['SCRIPT_NAME'] == '/core/admin/adminusers/edit.php'
                     && isset($_REQUEST['id'])))
        {
            ?>
            class="selected"
            <?php
        }
        ?>
    >
        <a href="/admin/adminusers/manage.php">Manage</a>
    </li>
    <li
        <?php
        if ($_SERVER['REQUEST_URI'] == '/admin/adminusers/edit.php'
                 && !isset($_REQUEST['id']))
        {
            ?>
            class="selected"
            <?php
        }
        ?>
    >
        <a href="/admin/adminusers/edit.php">Add</a>
    </li>
</ul>
