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