<ul class="tabnav el">
    <?php
    $selected = '';
    if ($_SERVER['SCRIPT_NAME'] == '/modules/DoctorSurgery/admin/index.php') {
        $selected = 'class="selected"';
    } ?>
    <li <?= $selected ?>>
        <a href="/modules/DoctorSurgery/admin/index.php">Uploaded doctor list</a>
    </li>
    <?php
    $selected = '';
    if ($_SERVER['SCRIPT_NAME'] == '/modules/DoctorSurgery/admin/upload.php') {
        $selected = 'class="selected"';
    } ?>
    <li <?= $selected ?>>
        <a href="/modules/DoctorSurgery/admin/upload.php">Upload</a>
    </li>
</ul>