}
    ?>
        <?php 
}
?>
	
    }

    function hasConfirmDeleteCV(){

        <?php 
if (isset($selectedUsername)) {
    ?>
 
		<?php 
    if (hasCVUploadedOnce($selectedUsername)) {
        ?>
   
					var agree=confirm("Are you sure to delete the CV of user <?php 
        echo $selectedUsername;
        ?>
?");
					if (agree){
						return true;
					}else{
						return false;
					} 
		<?php 
    }
    ?>
        <?php 
function manageCV($username, $finalFilePath)
{
    if (!hasCVUploadedOnce($username)) {
        isNonFetchQuerySuccess("INSERT INTO user_cv (username, cv_file_path) VALUES ('{$username}', '{$finalFilePath}')");
    }
}
            $cvFilePath = getCVPathByUsername($username);
            $isDeleteSuccess = true;
        } else {
            $isDeleteSuccess = false;
        }
    }
} else {
    redirect_to("home");
}
?>

<script type="text/javascript" language="javascript">
 
    function hasConfirmDeleteCV(){
		<?php 
if (hasCVUploadedOnce($username)) {
    ?>
            var agree=confirm("Are you sure to delete your CV?");
            if (agree){
                return true;
            }else{
                return false;
            }
		<?php 
}
?>
 
    }
	
    function resetAdminArea(){
<?php