echo "<script src='../JS/functions.js'></script><script>href('churchMenu.php')</script>";
}
//Create a String of options of Vicars
$vicarString = "";
$vicars = ChurchManager::getAllVicars();
foreach ($vicars as $singleVicar) {
    if ($church->getIdVicar() === $singleVicar->getId()) {
        $vicarString = $vicarString . "<option selected> " . $singleVicar->getName() . "</option>\n";
    } else {
        $vicarString = $vicarString . "<option> " . $singleVicar->getName() . "</option>\n";
    }
}
$string = str_replace("|VicarOptions|", $vicarString, $string);
//Create a String of options of Deans
$deanString = "";
$deans = ChurchManager::getAllDeans();
foreach ($deans as $singleDean) {
    if ($church->getIdDean() === $singleDean->getId()) {
        $deanString = $deanString . "<option selected> " . $singleDean->getName() . "</option>\n";
    } else {
        $deanString = $deanString . "<option> " . $singleDean->getName() . "</option>\n";
    }
}
$string = str_replace("|DeanOptions|", $deanString, $string);
//Create a String of options of Cities
$citiesString = "";
$cities = CityManager::getAllCities();
foreach ($cities as $singleCity) {
    if ($church->getIdCity() === $singleCity->getId()) {
        $citiesString = $citiesString . "<option selected> " . $singleCity->getName() . "</option>\n";
    } else {