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