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