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