<?php

$nav = [
    'index.php' => 'Manage',
    'edit.php' => 'Add/Edit',
];

?>

<ul class="tabnav el">
<?php
foreach ($nav as $file => $title) {
    $selected = '';
    if (stristr($_SERVER['SCRIPT_NAME'], $file)) {
        $selected = 'class="selected"';
    }

    ?>
	<li <?=$selected?>><a href="<?=$file?>"><?=clean_page($title)?></a></li>
	<?php

}
?>
</ul>
