<?php

require_once __DIR__ . "/../../Backend/SessionManager.php";
require_once __DIR__ . "/../../Backend/RectorManager.php";
require_once __DIR__ . "/../../Backend/PersonManager.php";
require_once __DIR__ . "/../../Backend/ChurchManager.php";
require_once __DIR__ . "/../../Backend/LanguageSupport.php";
SessionManager::validateUserInPage('rectorLook.php');
//Get File contest from template
$string = file_get_contents("template/RectorInsertion.html");
if (!isset($_GET) || $_GET["id"] === NULL) {
    echo "<script src='../JS/functions.js'></script><script>href('main.php')</script>";
}
//Remplace the nav
$string = str_replace("|title|", 'Look Rector', $string);
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
$idRector = $_GET["id"];
$rector = RectorManager::getSingleRector('id', $idRector);
if ($rector === NULL) {
    echo "<script src='../JS/functions.js'></script><script>href('rectorMenu.php')</script>";
}
//Create a String of options of Last Church
$churchString = "";
$churchs = ChurchManager::getAllChurchs('name');
foreach ($churchs as $singleChurch) {
    if ($rector->getIdActualChurch() == $singleChurch->getId()) {
        $churchString = $churchString . "<option selected> " . $singleChurch->getName() . "</option>\n";
    } else {
        $churchString = $churchString . "<option> " . $singleChurch->getName() . "</option>\n";
    }
}
<?php

require_once __DIR__ . "/../../Backend/SessionManager.php";
require_once __DIR__ . "/../../Backend/PersonManager.php";
require_once __DIR__ . "/../../Backend/RectorManager.php";
require_once __DIR__ . "/../../Backend/ChurchManager.php";
require_once __DIR__ . "/../../Backend/LanguageSupport.php";
SessionManager::validateUserInPage('addRelationChurchRector.php');
//Get File contest from template
$string = file_get_contents("template/AddRelationChurchRector.html");
//Remplace the nav
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
//Create a String of Church Options
$churchString = "";
$churchs = ChurchManager::getAllChurchs('name', -1);
foreach ($churchs as $singleChurch) {
    $churchString = $churchString . "<option> " . $singleChurch->getName() . "</option>\n";
}
$string = str_replace("|ChurchOption|", $churchString, $string);
//Create a String of Rector Options
$rectorString = "";
$rectors = RectorManager::getAllRectors('name');
foreach ($rectors as $singleRector) {
    $idRector = $singleRector->getId();
    $person = PersonManager::getSinglePerson('id', $idRector);
    $fullname = $person->getFullName();
    $rectorString = $rectorString . "<option lang='{$idRector}' id='{$fullname}'> " . $fullname . "</option>\n";
}
$string = str_replace("|RectorOption|", $rectorString, $string);
//Create Button contest
$saveButton = '<button type="button" class="btn btn-success" onclick=\'validateData("addRelationChurchRector.php", "' . SessionManager::getLastPage() . '")\'>
<?php

require_once __DIR__ . "/../../Backend/SessionManager.php";
require_once __DIR__ . "/../../Backend/CityManager.php";
require_once __DIR__ . "/../../Backend/LanguageSupport.php";
SessionManager::validateUserInPage('NoticeOfPrivacy.php');
//Get File Contest
$string = file_get_contents("template/NoticeOfPrivacy.html");
//Remplace the nav
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
$notice = "";
if (LanguageSupport::getActualLanguage() == 'es') {
    $notice = "Le informamos que sus datos personales recabados a través de sus solicitudes \n                   acudiendo a alguna iglesia de la Zona Metropolitana del estado de Jalisco, \n                   son incorporadas, protegidas y tratadas en los sistemas de datos personales del \n                   Arzobispado de Guadalajara para el ejercicio de las facultades de esta \n                   institución, y sólo pueden ser proporcionados en los términos establecidos en el \n                   Artículo 69 del Código Fiscal de la Federación.\n                   <br><br>\n                   Si desea modificar o corregir sus datos personales, puede hacerlo a través de \n                   acudir a cualquier iglesia donde ya haya hecho algun trámite o \n                   directamente en la oficina central.\n                   <br><br>\n                   Lo anterior se informa en cumplimiento del Lineamiento Decimoséptimo de los \n                   Lineamientos de Protección de Datos Personales, publicados en el Diario Oficial \n                   de la Federación el 30 de septiembre de 2005.";
} else {
    $notice = "We inform the personal data that is received through his request            \n                   going to a church of the Metropolitan Zone of the State of Jalisco,        \n                   are incorpored, protected and storage in the systems of the personal data by  \n                   Arzobispado de Guadalajara for the execution of the faculties of this  \n                   institution and only can be received in the established center in the          \n                   'Artículo 69 del Código Fiscal de la Federación'.\n                   <br><br>\n                   if you want to change or update his personal data could done through of \n                   going to any church that you was done a request or go to the central office.\n                   <br><br>\n                   The Before inform the fulfillment of the 'Lineamiento Decimoséptimo' of \n                   'Lineamientos de Protección de Datos Personales', publish in the official diary   \n                   of the Federation September 30th 2005.";
}
$string = str_replace("|NoticeOfPrivacy|", $notice, $string);
//Display the page
$string = LanguageSupport::HTMLEvalLanguage($string);
echo $string;
<?php

require_once __DIR__ . "/../../Backend/SessionManager.php";
require_once __DIR__ . "/../../Backend/ConfirmationManager.php";
require_once __DIR__ . "/../../Backend/PersonManager.php";
require_once __DIR__ . "/../../Backend/RectorManager.php";
require_once __DIR__ . "/../../Backend/LanguageSupport.php";
require_once __DIR__ . "/../../Backend/BaptismManager.php";
SessionManager::validateUserInPage('confirmationLook.php');
//Get File contest from template
$string = file_get_contents("template/ConfirmationInsertion.html");
if (!isset($_GET) || $_GET["id"] === NULL) {
    echo "<script src='../JS/functions.js'></script><script>href('main.php')</script>";
}
//Remplace the nav
$string = str_replace("|title|", 'Look Confirmation', $string);
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
//Get The Data of the Confirmation
$idConfirmation = $_GET["id"];
$confirmation = ConfirmationManager::getSingleConfirmation('id', $idConfirmation);
$ownerId = $confirmation->getIdOwner();
$owner = PersonManager::getSinglePerson('id', $ownerId);
$owner->getIdFather() !== NULL ? $fatherId = $owner->getIdFather() : ($fatherId = 0);
$owner->getIdMother() !== NULL ? $motherId = $owner->getIdMother() : ($motherId = 0);
$gender = $owner->getGender();
$churchId = $confirmation->getIdChurch();
$confirmationDate = DatabaseManager::databaseDateToSingleDate($confirmation->getCelebrationDate());
$idRector = $confirmation->getIdRector();
$objRector = RectorManager::getSingleRector('id', $idRector);
$objPerRect = PersonManager::getSinglePerson('id', $objRector->getIdPerson());
$nameRector = $objPerRect->getFullNameBeginName();
示例#5
0
<?php

require_once __DIR__ . "/../../Backend/SessionManager.php";
require_once __DIR__ . "/../../Backend/BibleQuote.php";
require_once __DIR__ . "/../../Backend/LanguageSupport.php";
SessionManager::validateUserInPage('main.php');
//Get File contest from template
$string = file_get_contents("template/Main.html");
$string = str_replace("|biblic|", BibleQuote::randomQuote(), $string);
//Remplace the nav
$user_name = strtoupper(SessionManager::getCurrentUser()->getUsername());
$string = str_replace("Username", $user_name, $string);
//Remplace the nav
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
//Display the page
$string = LanguageSupport::HTMLEvalLanguage($string);
echo $string;
<?php

require_once __DIR__ . "/../../Backend/SessionManager.php";
require_once __DIR__ . "/../../Backend/ChurchManager.php";
require_once __DIR__ . "/../../Backend/PersonManager.php";
require_once __DIR__ . "/../../Backend/LanguageSupport.php";
SessionManager::validateUserInPage('userMenu.php');
//Get File contest from template
$string = file_get_contents("template/UserMenu.html");
//Remplace the nav
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
//Validate the URL
$numberPage = intval($_GET["page"]);
$sortType = $_GET["sort"];
$simpleKeyword = $_GET["keyword"];
$kid = $_GET["kid"];
if ($sortType == NULL || $sortType == '') {
    $sortType = 'id DESC';
}
if ($numberPage === NULL || $numberPage < 0) {
    echo "<script src='../JS/functions.js'></script><script>nextPage('set', '0')</script>";
}
//Getting all registries
if ($simpleKeyword !== NULL) {
    $userRegistries = SessionManager::simpleSearchUser($simpleKeyword, $sortType, $numberPage);
} else {
    if ($kid !== NULL) {
        $userSearch = new User();
        $kusername = $_GET["kusername"];
        $ktype = $_GET["ktype"];
        $konlineCheck = $_GET["konlineCheck"];
<?php

require_once __DIR__ . "/../../Backend/SessionManager.php";
require_once __DIR__ . "/../../Backend/LanguageSupport.php";
SessionManager::validateUserInPage('stateInsertion.php');
//Get File Contest
$string = file_get_contents("template/StateInsertion.html");
//Remplace the nav
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
//Create a Button State
$saveButton = '<button type="button" class="btn btn-success" onclick=\'validateData("stateInsertion.php", "' . SessionManager::getLastPage() . '")\'>
                      <img src="../icons/save.png" width="50px"><br>
                      <strong>^Save^</strong>
                   </button>';
$cancelButton = '<button type="button" class="btn btn-success" onclick=\'href("' . SessionManager::getLastPage() . '")\'>
                        <img src="../icons/delete.png" width="50px"><br>
                        <strong>^Cancel^</strong>
                    </button>';
$returnButton = '';
$string = str_replace("|SaveButton|", $saveButton, $string);
$string = str_replace("|CancelButton|", $cancelButton, $string);
$string = str_replace("|ReturnButton|", $returnButton, $string);
//Display the page
$string = LanguageSupport::HTMLEvalLanguage($string);
echo $string;
<?php

require_once __DIR__ . "/../../../Backend/Certs/CopyCommunionCertificate.php";
SessionManager::validateUserInPage('communionLook.php');
if (isset($_GET) && $_GET["idCommunion"] !== NULL && isset($_SESSION) && $_SESSION["user_id"] !== NULL) {
    $user = SessionManager::getCurrentUser();
    $pdf = new CopyCommunionCertificate($user->getId(), $_GET["idCommunion"], $_GET["full"]);
    $pdf->AliasNbPages();
    $pdf->AddPage();
    $pdf->displayData();
    $pdf->Output();
} else {
    echo "<script>\n                url = String(window.location);\n                url = url.substr(0, url.indexOf('cert'));\n                window.location.href = url + 'main.php';\n              </script>";
}
<?php

require_once __DIR__ . "/../../Backend/SessionManager.php";
require_once __DIR__ . "/../../Backend/MarriageManager.php";
require_once __DIR__ . "/../../Backend/PersonManager.php";
require_once __DIR__ . "/../../Backend/LanguageSupport.php";
SessionManager::validateUserInPage('marriageMenu.php');
//Get File contest from template
$string = file_get_contents("template/MarriageMenu.html");
//Remplace the nav
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
//Validate the URL
$numberPage = intval($_GET["page"]);
$sortType = $_GET["sort"];
$simpleKeyword = $_GET["keyword"];
$kid = $_GET["kid"];
if ($sortType == NULL || $sortType == '') {
    $sortType = 'id';
}
if ($numberPage === NULL || $numberPage < 0) {
    echo "<script src='../JS/functions.js'></script><script>nextPage('set', '0')</script>";
}
//Getting all registries
if ($simpleKeyword !== NULL) {
    $marriageRegistries = MarriageManager::simpleSearchMarriage($simpleKeyword, $sortType, $numberPage);
} else {
    if ($kid !== NULL) {
        $marriageSearch = new Marriage();
        $kcelebration = DatabaseManager::singleDateToDatabaseDate($_GET["kcelebration"]);
        $knameb = $_GET["knameb"];
        $klastname1b = $_GET["klastname1b"];
<?php

require_once __DIR__ . "/../../Backend/SessionManager.php";
require_once __DIR__ . "/../../Backend/ChurchManager.php";
require_once __DIR__ . "/../../Backend/PersonManager.php";
require_once __DIR__ . "/../../Backend/LanguageSupport.php";
SessionManager::validateUserInPage('userContact.php');
//Get File contest from template
$string = file_get_contents("template/UserContact.html");
//Remplace the nav
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
//Get All Contacts
$contacts = SessionManager::getContacts(new User($_SESSION["user_id"]));
$stringContact = "";
if ($contacts !== NULL) {
    foreach ($contacts as $key => $value) {
        if ($value->getId() == $_SESSION["user_id"]) {
            continue;
        }
        $lastMessage = SessionManager::getConversation($value->getId(), $_SESSION["user_id"]);
        $lastMessage = $lastMessage[0];
        $stringC = "";
        if ($lastMessage->getReceived() == '1') {
            $stringC = $stringC . '✓';
        } else {
            $stringC = $stringC . 'X';
        }
        if ($lastMessage->getSeen() == '1') {
            $stringC = $stringC . '✓ ';
        } else {
            $stringC = $stringC . '  ';
//Get File contest from template
$string = file_get_contents("template/MarriageInsertion.html");
//Remplace the nav
$string = str_replace("|title|", 'Change Marriage', $string);
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
//Get The Data of the Marriage
$idMarriage = $_GET["id"];
$marriage = MarriageManager::getSingleMarriage('id', $idMarriage);
$boyfriendId = $marriage->getIdBoyfriend();
$boyfriend = PersonManager::getSinglePerson('id', $boyfriendId);
$girlfriendId = $marriage->getIdGirlfriend();
$girlfriend = PersonManager::getSinglePerson('id', $girlfriendId);
$churchMarriageId = $marriage->getIdChurchMarriage();
$churchProcessId = $marriage->getIdChurchProcess();
$marriageDate = DatabaseManager::databaseDateToSingleDate($marriage->getCelebrationDate());
SessionManager::validateUserInPage('marriageChange.php', $churchMarriageId, $churchProcessId);
$idRector = $marriage->getIdRector();
$objRector = RectorManager::getSingleRector('id', $idRector);
$objPerRect = PersonManager::getSinglePerson('id', $objRector->getIdPerson());
$nameRector = $objPerRect->getFullNameBeginName();
$idBookRegistry = $marriage->getIdBookRegistry();
$bookRegistry = MarriageManager::getSingleMarriageRegistry('id', $idBookRegistry);
$idGodFather = $marriage->getIdGodFather();
$idGodMother = $marriage->getIdGodMother();
$godMother = PersonManager::getSinglePerson('id', $idGodMother);
$godFather = PersonManager::getSinglePerson('id', $idGodFather);
$idWitness1 = $marriage->getIdWitness1();
$idWitness2 = $marriage->getIdWitness2();
$witness1 = PersonManager::getSinglePerson('id', $idWitness1);
$witness2 = PersonManager::getSinglePerson('id', $idWitness2);
if ($godFather === NULL) {
示例#12
0
<?php

require_once __DIR__ . "/../../Backend/SessionManager.php";
SessionManager::validateUserInPage('index.php');
$string = file_get_contents("template/index.html");
echo $string;
<?php

require_once __DIR__ . "/../../Backend/SessionManager.php";
require_once __DIR__ . "/../../Backend/ChurchManager.php";
require_once __DIR__ . "/../../Backend/PersonManager.php";
require_once __DIR__ . "/../../Backend/LanguageSupport.php";
SessionManager::validateUserInPage('churchInsertion.php');
//Get File contest from template
$string = file_get_contents("template/ChurchInsertion.html");
//Remplace the nav
$string = str_replace("|title|", 'Insert Church', $string);
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
//Create a String of options of Vicars
$vicarString = "";
$vicars = ChurchManager::getAllVicars();
foreach ($vicars as $singleVicar) {
    $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) {
    $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) {
    $citiesString = $citiesString . "<option> " . $singleCity->getName() . "</option>\n";
<?php

require_once __DIR__ . "/../../Backend/SessionManager.php";
require_once __DIR__ . "/../../Backend/MarriageManager.php";
require_once __DIR__ . "/../../Backend/PersonManager.php";
require_once __DIR__ . "/../../Backend/RectorManager.php";
require_once __DIR__ . "/../../Backend/LanguageSupport.php";
SessionManager::validateUserInPage('marriageInsertion.php');
//Get File contest from template
$string = file_get_contents("template/MarriageInsertion.html");
//Remplace the nav
$string = str_replace("|title|", 'Insert Marriage', $string);
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
//Create a String of options of Last Church
$churchString = "";
$churchs = ChurchManager::getAllChurchs('name');
foreach ($churchs as $singleChurch) {
    if ($singleChurch->getId() == $_SESSION["user_church"]) {
        $churchString = $churchString . "<option selected> " . $singleChurch->getName() . "</option>\n";
    } else {
        $churchString = $churchString . "<option> " . $singleChurch->getName() . "</option>\n";
    }
}
$string = str_replace("|ChurchOptionMarriage|", $churchString, $string);
$string = str_replace("|ChurchOptionProcess|", $churchString, $string);
//Create the button
$saveButton = '<button type="button" class="btn btn-success" onclick=\'validateData("marriageInsertion.php", "insert")\'>
                      <img src="../icons/save.png" width="50px"><br>
                      <strong>^Save^</strong>
                   </button>';
$cancelButton = '<button type="button" class="btn btn-success" onclick=\'href("marriageMenu.php")\'>
$string = str_replace("|title|", 'Change Baptism', $string);
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
//Get The Data of the Baptism
$idBaptism = $_GET["id"];
$baptism = BaptismManager::getSingleBaptism('id', $idBaptism);
$ownerId = $baptism->getIdOwner();
$owner = PersonManager::getSinglePerson('id', $ownerId);
$owner->getIdFather() !== NULL ? $fatherId = $owner->getIdFather() : ($fatherId = 0);
$owner->getIdMother() !== NULL ? $motherId = $owner->getIdMother() : ($motherId = 0);
$gender = $owner->getGender();
$churchId = $baptism->getIdChurch();
$bornDate = DatabaseManager::databaseDateToSingleDate($baptism->getBornDate());
$bornPlace = $baptism->getBornPlace();
$baptismDate = DatabaseManager::databaseDateToSingleDate($baptism->getCelebrationDate());
//Validate the user
SessionManager::validateUserInPage('baptismChange.php', $churchId);
$idRector = $baptism->getIdRector();
$objRector = RectorManager::getSingleRector('id', $idRector);
$objPerRect = PersonManager::getSinglePerson('id', $objRector->getIdPerson());
$nameRector = $objPerRect->getFullNameBeginName();
$idCivilRegistry = $baptism->getIdCivilRegistry();
$civil = BaptismManager::getSingleCivilRegistry('id', $idCivilRegistry);
$office = BaptismManager::getSingleOfficeCivilRegistry('id', $civil->getIdOffice());
$idBookRegistry = $baptism->getIdBookRegistry();
$bookRegistry = BaptismManager::getSingleBaptismRegistry('id', $idBookRegistry);
$idGodFather = $baptism->getIdGodFather();
$idGodMother = $baptism->getIdGodMother();
$godMother = PersonManager::getSinglePerson('id', $idGodMother);
$godFather = PersonManager::getSinglePerson('id', $idGodFather);
if ($godFather === NULL) {
    $godFather = new Person();
<?php

require_once __DIR__ . "/../../../Backend/Certs/EnvelopeChurch.php";
SessionManager::validateUserInPage('churchLook.php');
if (isset($_GET) && $_GET["idChurch"] !== NULL && isset($_SESSION) && $_SESSION["user_id"] !== NULL) {
    $user = SessionManager::getCurrentUser();
    $pdf = new EnvelopeChurch($user->getId(), $_GET["idChurch"]);
    $pdf->AliasNbPages();
    $pdf->AddPage();
    $pdf->displayData();
    $pdf->Output();
} else {
    echo "<script>\r\n                url = String(window.location);\r\n                url = url.substr(0, url.indexOf('cert'));\r\n                window.location.href = url + 'main.php';\r\n              </script>";
}
    echo "<script src='../JS/functions.js'></script><script>href('main.php')</script>";
}
//Remplace the nav
$string = str_replace("|title|", 'Change Confirmation', $string);
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
//Get The Data of the Confirmation
$idConfirmation = $_GET["id"];
$confirmation = ConfirmationManager::getSingleConfirmation('id', $idConfirmation);
$ownerId = $confirmation->getIdOwner();
$owner = PersonManager::getSinglePerson('id', $ownerId);
$owner->getIdFather() !== NULL ? $fatherId = $owner->getIdFather() : ($fatherId = 0);
$owner->getIdMother() !== NULL ? $motherId = $owner->getIdMother() : ($motherId = 0);
$gender = $owner->getGender();
$churchId = $confirmation->getIdChurch();
$confirmationDate = DatabaseManager::databaseDateToSingleDate($confirmation->getCelebrationDate());
SessionManager::validateUserInPage('confirmationChange.php', $churchId);
$idRector = $confirmation->getIdRector();
$objRector = RectorManager::getSingleRector('id', $idRector);
$objPerRect = PersonManager::getSinglePerson('id', $objRector->getIdPerson());
$nameRector = $objPerRect->getFullNameBeginName();
$idBookRegistry = $confirmation->getIdBookRegistry();
$bookRegistry = ConfirmationManager::getSingleConfirmationRegistry('id', $idBookRegistry);
$idGodFather = $confirmation->getIdGodFather();
$godMother = PersonManager::getSinglePerson('id', $idGodMother);
$godFather = PersonManager::getSinglePerson('id', $idGodFather);
if ($godFather === NULL) {
    $godFather = new Person();
}
if ($godMother === NULL) {
    $godMother = new Person();
}
<?php

require_once __DIR__ . "/../../Backend/SessionManager.php";
require_once __DIR__ . "/../../Backend/ChurchManager.php";
require_once __DIR__ . "/../../Backend/DefuntionManager.php";
require_once __DIR__ . "/../../Backend/PersonManager.php";
require_once __DIR__ . "/../../Backend/LanguageSupport.php";
SessionManager::validateUserInPage('defuntionInsertion.php');
//Get File contest from template
$string = file_get_contents("template/DefuntionInsertion.html");
//Remplace the nav
$string = str_replace("|title|", 'Insert Defuntion', $string);
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
//Create a String of options of Last Church
$churchString = "";
$churchs = ChurchManager::getAllChurchs('name');
foreach ($churchs as $singleChurch) {
    if ($singleChurch->getId() == $_SESSION["user_church"]) {
        $churchString = $churchString . "<option selected> " . $singleChurch->getName() . "</option>\n";
    } else {
        $churchString = $churchString . "<option> " . $singleChurch->getName() . "</option>\n";
    }
}
$string = str_replace("|ChurchOption|", $churchString, $string);
//Create the button
$saveButton = '<button type="button" class="btn btn-success" onclick=\'validateData("defuntionInsertion.php", "insert")\'>
                      <img src="../icons/save.png" width="50px"><br>
                      <strong>^Save^</strong>
                   </button>';
$cancelButton = '<button type="button" class="btn btn-success" onclick=\'href("defuntionMenu.php")\'>
                        <img src="../icons/delete.png" width="50px"><br>
$string = file_get_contents("template/ProofInsertion.html");
//Remplace the nav
$string = str_replace("|title|", 'Change Proof', $string);
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
//Get The Data of the Proof
$idProof = $_GET["id"];
$proof = ProofManager::getSingleProofTalks('id', $idProof);
$ownerId = $proof->getIdOwner();
$owner = PersonManager::getSinglePerson('id', $ownerId);
$owner->getIdFather() !== NULL ? $fatherId = $owner->getIdFather() : ($fatherId = 0);
$owner->getIdMother() !== NULL ? $motherId = $owner->getIdMother() : ($motherId = 0);
$address = $owner->getAddress();
$phonenum = $owner->getPhoneNumber();
$gender = $owner->getGender();
$churchId = $proof->getIdChurch();
SessionManager::validateUserInPage('proofChange.php', $churchId);
$idGodFather = $proof->getIdGodFather();
$idGodMother = $proof->getIdGodMother();
$godMother = PersonManager::getSinglePerson('id', $idGodMother);
$godFather = PersonManager::getSinglePerson('id', $idGodFather);
if ($godFather === NULL) {
    $godFather = new Person();
}
if ($godMother === NULL) {
    $godMother = new Person();
}
//Create a String of options of Last Church
$churchString = "";
$churchs = ChurchManager::getAllChurchs('name');
foreach ($churchs as $singleChurch) {
    if ($singleChurch->getId() === $churchId) {
示例#20
0
<?php

require_once __DIR__ . "/../../Backend/SessionManager.php";
require_once __DIR__ . "/../../Backend/LanguageSupport.php";
SessionManager::validateUserInPage('config.php');
//Get File Contest
$string = file_get_contents("template/Config.html");
//Remplace the nav
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
//Get the alert to keep
$alert = "";
if (isset($_GET) && $_GET["success"] === 'true') {
    $alert = '  <div class="alert alert-success" role="alert" style="text-align: center;">
                        <h3>^Successful Change^</h3>
                    </div>';
}
//Set the language of the select
$actualLanguage = LanguageSupport::getActualLanguage();
if ($actualLanguage === 'en') {
    $string = str_replace("|isEnglish|", 'selected', $string);
} else {
    if ($actualLanguage === 'en') {
        $string = str_replace("|isEnglish|", 'selected', $string);
    }
}
$string = str_replace("|Alert|", $alert, $string);
//Get the data value
$user = SessionManager::getCurrentUser();
$paperConfig = SessionManager::getSinglePaperConfig('id', $user->getIdPaperConfig());
$cbcx = $paperConfig->getCopyBaptismCertX();
$cbcy = $paperConfig->getCopyBaptismCertY();
<?php

require_once __DIR__ . "/../../Backend/SessionManager.php";
require_once __DIR__ . "/../../Backend/ProofManager.php";
require_once __DIR__ . "/../../Backend/PersonManager.php";
require_once __DIR__ . "/../../Backend/RectorManager.php";
require_once __DIR__ . "/../../Backend/LanguageSupport.php";
SessionManager::validateUserInPage('proofLook.php');
//Get File contest from template
$string = file_get_contents("template/ProofInsertion.html");
if (!isset($_GET) || $_GET["id"] === NULL) {
    echo "<script src='../JS/functions.js'></script><script>href('main.php')</script>";
}
//Remplace the nav
$string = str_replace("|title|", 'Look Proof', $string);
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
//Get The Data of the Proof
$idProof = $_GET["id"];
$proof = ProofManager::getSingleProofTalks('id', $idProof);
$ownerId = $proof->getIdOwner();
$owner = PersonManager::getSinglePerson('id', $ownerId);
$owner->getIdFather() !== NULL ? $fatherId = $owner->getIdFather() : ($fatherId = 0);
$owner->getIdMother() !== NULL ? $motherId = $owner->getIdMother() : ($motherId = 0);
$address = $owner->getAddress();
$phonenum = $owner->getPhoneNumber();
$gender = $owner->getGender();
$churchId = $proof->getIdChurch();
$idGodFather = $proof->getIdGodFather();
$idGodMother = $proof->getIdGodMother();
$godMother = PersonManager::getSinglePerson('id', $idGodMother);
$godFather = PersonManager::getSinglePerson('id', $idGodFather);
<?php

require_once __DIR__ . "/../../Backend/SessionManager.php";
require_once __DIR__ . "/../../Backend/BaptismManager.php";
require_once __DIR__ . "/../../Backend/PersonManager.php";
require_once __DIR__ . "/../../Backend/LanguageSupport.php";
SessionManager::validateUserInPage('baptismInsertion.php');
//Get File contest from template
$string = file_get_contents("template/BaptismInsertion.html");
//Remplace the nav
$string = str_replace("|title|", 'Insert Baptism', $string);
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
//Create a String of options of Last Church
$churchString = "";
$churchs = ChurchManager::getAllChurchs('name');
foreach ($churchs as $singleChurch) {
    if ($singleChurch->getId() == $_SESSION["user_church"]) {
        $churchString = $churchString . "<option selected> " . $singleChurch->getName() . "</option>\n";
    } else {
        $churchString = $churchString . "<option> " . $singleChurch->getName() . "</option>\n";
    }
}
$string = str_replace("|ChurchOption|", $churchString, $string);
//Create a String of options of Civil Registries
$civilString = "";
$civilRegis = BaptismManager::getAllOfficeCivilRegistries();
foreach ($civilRegis as $single) {
    $city = CityManager::getSingleCity('id', $single->getIdCity())->getName();
    $civilString = $civilString . "<option> No. " . $single->getNumber() . ", {$city}.</option>\n";
}
$string = str_replace("|CivilRegistryOption|", $civilString, $string);
<?php

require_once __DIR__ . "/../../Backend/SessionManager.php";
require_once __DIR__ . "/../../Backend/ChurchManager.php";
require_once __DIR__ . "/../../Backend/PersonManager.php";
require_once __DIR__ . "/../../Backend/LanguageSupport.php";
SessionManager::validateUserInPage('churchChange.php');
//Get File contest from template
$string = file_get_contents("template/ChurchInsertion.html");
if (!isset($_GET) || $_GET["id"] === NULL) {
    echo "<script src='../JS/functions.js'></script><script>href('main.php')</script>";
}
//Remplace the nav
$string = str_replace("|title|", 'Change Church', $string);
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
$idChurch = $_GET["id"];
$church = ChurchManager::getSingleChurch('id', $idChurch);
if ($church === NULL) {
    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);
<?php

require_once __DIR__ . "/../../Backend/SessionManager.php";
require_once __DIR__ . "/../../Backend/RectorManager.php";
require_once __DIR__ . "/../../Backend/PersonManager.php";
require_once __DIR__ . "/../../Backend/ChurchManager.php";
require_once __DIR__ . "/../../Backend/LanguageSupport.php";
SessionManager::validateUserInPage('rectorMenu.php');
//Get File contest from template
$string = file_get_contents("template/ChurchRectorRelationMenu.html");
//Remplace the nav
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
//Validate the URL
$numberPage = intval($_GET["page"]);
$sortType = $_GET["sort"];
$idChurch = $_GET["id"];
$church = ChurchManager::getSingleChurch('id', $idChurch);
if ($sortType == NULL || $sortType == '') {
    $sortType = 'id';
}
if ($numberPage === NULL || $numberPage < 0 || $idChurch === "" || $church === NULL) {
    echo "<script src='../JS/functions.js'></script><script>href('rectorMenu.php')</script>";
}
//Display the name of the church
$string = str_replace("|Church|", "«" . $church->getName() . "»", $string);
//Getting all registries
$rectorRegistries = RectorManager::getAllFormerRectors($idChurch, $sortType, $numberPage);
//Get the total of registries
$totalRegistries = DatabaseManager::getAffectedRows();
$affectedRegistries = DatabaseManager::registriesAffectedLastQuery();
if ($totalRegistries === 0 && $numberPage !== 0) {
<?php

require_once __DIR__ . "/../../../Backend/Certs/MarriageTraslation.php";
SessionManager::validateUserInPage('marriageLook.php');
if (isset($_GET) && $_GET["idMarriage"] !== NULL && isset($_SESSION) && $_SESSION["user_id"] !== NULL) {
    $user = SessionManager::getCurrentUser();
    $pdf = new MarriageTraslation($user->getId(), $_GET["idMarriage"], $_GET["full"]);
    $pdf->AliasNbPages();
    $pdf->setType('no-reverse');
    $pdf->AddPage();
    $pdf->displayData();
    $pdf->setType('reverse');
    $pdf->AddPage();
    $pdf->displayData();
    $pdf->setType('no-reverse');
    $pdf->Output();
} else {
    echo "<script>\n                url = String(window.location);\n                url = url.substr(0, url.indexOf('cert'));\n                window.location.href = url + 'main.php';\n              </script>";
}
<?php

require_once __DIR__ . "/../../Backend/SessionManager.php";
require_once __DIR__ . "/../../Backend/BaptismManager.php";
require_once __DIR__ . "/../../Backend/PersonManager.php";
require_once __DIR__ . "/../../Backend/LanguageSupport.php";
SessionManager::validateUserInPage('baptismMenu.php');
//Get File contest from template
$string = file_get_contents("template/BaptismMenu.html");
//Remplace the nav
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
//Validate the URL
$numberPage = intval($_GET["page"]);
$sortType = $_GET["sort"];
$simpleKeyword = $_GET["keyword"];
$kid = $_GET["kid"];
if ($sortType == NULL || $sortType == '') {
    $sortType = 'id';
}
if ($numberPage === NULL || $numberPage < 0) {
    echo "<script src='../JS/functions.js'></script><script>nextPage('set', '0')</script>";
}
//Getting all registries
if ($simpleKeyword !== NULL) {
    $baptismRegistries = BaptismManager::simpleSearchBaptism($simpleKeyword, $sortType, $numberPage);
} else {
    if ($kid !== NULL) {
        $baptismSearch = new Baptism();
        $kcelebration = DatabaseManager::singleDateToDatabaseDate($_GET["kcelebration"]);
        $kbornp = $_GET["kbornp"];
        $kbornd = DatabaseManager::singleDateToDatabaseDate($_GET["kbornd"]);
<?php

require_once __DIR__ . "/../../Backend/SessionManager.php";
require_once __DIR__ . "/../../Backend/DefuntionManager.php";
require_once __DIR__ . "/../../Backend/ChurchManager.php";
require_once __DIR__ . "/../../Backend/PersonManager.php";
require_once __DIR__ . "/../../Backend/LanguageSupport.php";
SessionManager::validateUserInPage('defuntionMenu.php');
//Get File contest from template
$string = file_get_contents("template/DefuntionMenu.html");
//Remplace the nav
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
//Validate the URL
$numberPage = intval($_GET["page"]);
$sortType = $_GET["sort"];
$simpleKeyword = $_GET["keyword"];
$kid = $_GET["kid"];
if ($sortType == NULL || $sortType == '') {
    $sortType = 'id DESC';
}
if ($numberPage === NULL || $numberPage < 0) {
    echo "<script src='../JS/functions.js'></script><script>nextPage('set', '0')</script>";
}
//Getting all registries
if ($simpleKeyword !== NULL) {
    $defuntionRegistries = DefuntionManager::simpleSearchDefuntion($simpleKeyword, $sortType, $numberPage);
} else {
    if ($kid !== NULL) {
        $defuntionSearch = new Defuntion();
        $kcelebration = DatabaseManager::singleDateToDatabaseDate($_GET["kcelebration"]);
        $kbornp = $_GET["kbornp"];
<?php

require_once __DIR__ . "/../../Backend/SessionManager.php";
require_once __DIR__ . "/../../Backend/ChurchManager.php";
require_once __DIR__ . "/../../Backend/PersonManager.php";
require_once __DIR__ . "/../../Backend/LanguageSupport.php";
SessionManager::validateUserInPage('churchMenu.php');
//Get File contest from template
$string = file_get_contents("template/ChurchMenu.html");
//Remplace the nav
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
//Validate the URL
$numberPage = intval($_GET["page"]);
$sortType = $_GET["sort"];
$simpleKeyword = $_GET["keyword"];
$kid = $_GET["kid"];
if ($sortType == NULL || $sortType == '') {
    $sortType = 'id DESC';
}
if ($numberPage === NULL || $numberPage < 0) {
    echo "<script src='../JS/functions.js'></script><script>nextPage('set', '0')</script>";
}
//Getting all registries
if ($simpleKeyword !== NULL) {
    $churchRegistries = ChurchManager::simpleSearchChurch($simpleKeyword, $sortType, $numberPage);
} else {
    if ($kid !== NULL) {
        $churchSearch = new Church();
        $kid = $_GET["kid"];
        $kName = $_GET["kName"];
        $kType = $_GET["kType"];
<?php

require_once __DIR__ . "/../../../Backend/Certs/BaptismCertificate.php";
SessionManager::validateUserInPage('baptismLook.php');
if (isset($_GET) && $_GET["idBaptism"] !== NULL && isset($_SESSION) && $_SESSION["user_id"] !== NULL) {
    $user = SessionManager::getCurrentUser();
    $pdf = new BaptismCertificate($user->getId(), $_GET["idBaptism"], $_GET["full"]);
    $pdf->AliasNbPages();
    $pdf->AddPage();
    $pdf->displayData();
    $pdf->Output();
} else {
    echo "<script>\n                url = String(window.location);\n                url = url.substr(0, url.indexOf('cert'));\n                window.location.href = url + 'main.php';\n              </script>";
}
<?php

require_once __DIR__ . "/../../Backend/SessionManager.php";
require_once __DIR__ . "/../../Backend/CityManager.php";
require_once __DIR__ . "/../../Backend/LanguageSupport.php";
SessionManager::validateUserInPage('cityInsertion.php');
//Get File Contest
$string = file_get_contents("template/CityInsertion.html");
//Remplace the nav
$string = str_replace("|NavBar|", SessionManager::getNavBar(), $string);
//Create a Button State
$saveButton = '<button type="button" class="btn btn-success" onclick=\'validateData("cityInsertion.php", "' . SessionManager::getLastPage() . '")\'>
                      <img src="../icons/save.png" width="50px"><br>
                      <strong>^Save^</strong>
                   </button>';
$cancelButton = '<button type="button" class="btn btn-success" onclick=\'href("' . SessionManager::getLastPage() . '")\'>
                        <img src="../icons/delete.png" width="50px"><br>
                        <strong>^Cancel^</strong>
                    </button>';
$returnButton = '';
$string = str_replace("|SaveButton|", $saveButton, $string);
$string = str_replace("|CancelButton|", $cancelButton, $string);
$string = str_replace("|ReturnButton|", $returnButton, $string);
//The select for States
$stateString = "";
$states = CityManager::getAllStates();
foreach ($states as $singleState) {
    $stateString = $stateString . "<option> " . $singleState->getName() . "</option>\n";
}
$string = str_replace("|StateOption|", $stateString, $string);
//Display the page