This commit is contained in:
2024-06-14 15:55:36 +03:00
parent 5468b1d286
commit 987effd67f
35 changed files with 1808 additions and 245 deletions

View File

@ -1,42 +1,18 @@
<?php
require_once "form.php";
//require_once "form.php";
namespace src;
//use src\Forms;
require_once "vendor/autoload.php";
require "views/form.php";
//require_once "src/Information.php";
//require_once "src/FullName.php";
//require_once "src/Contacts.php";
//require_once "src/AdditionallyInfo.php";
//require_once "info.php";
//require_once "table.php";
/*$flag = false;
$surname = $_REQUEST["surname"];
$name = $_REQUEST["name"];
$patronymic = $_REQUEST["patronymic"];
$fullName = new FullName($surname, $name, $patronymic);
$fullName = $fullName->getFoolName();
$gender = $_REQUEST["gender"];
$dateOfBirth = $_REQUEST["dateOfBirth"];
$additionallyInfo = new AdditionallyInfo($dateOfBirth, $gender);
$additionallyInfo = $additionallyInfo->getAdditionallyInfo();
$countryCode = $_REQUEST["countryCode"];
$phoneNumber = $_REQUEST["phoneNumber"];
$email = $_REQUEST["email"];
$contacts = new Contacts($countryCode, $phoneNumber, $email);
$contacts = $contacts->getContacts();
$fullInformation = new Information($fullName, $additionallyInfo, $contacts);
$fullInformation = $fullInformation->getFullInformation();
$flag = isFullInfo($fullName, $additionallyInfo, $contacts);
if($flag) {
$file = fopen("Information.txt", "a");
fwrite($file, $fullInformation);
fclose($file);
} // if*/
//require_once "table.php";