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