<ul class="tabnav el">
    <li
        <?php
        if ($_SERVER['SCRIPT_NAME'] == '/shop/admin/discounts/manage.discounts.php'
            || ($_SERVER['SCRIPT_NAME'] == '/shop/admin/discounts/edit.discount.php'
                && isset($_REQUEST['id']))) {
            ?>

            class="selected"

        <?php
        }
        ?>
    >
        <a href="/shop/admin/discounts/manage.discounts.php">Manage</a>
    </li>
    <li
        <?php
        if ($_SERVER['REQUEST_URI'] == '/shop/admin/discounts/edit.discount.php'
            && !isset($_REQUEST['id']))
        {
            ?>

            class="selected"

        <?php
        }
        ?>
    >

        <a href="/shop/admin/discounts/edit.discount.php">Add</a>
    </li>
</ul>
