<table>
<tr>
<td>Логін:</td>
<td><input type="text" name="login" value="<?php session_start(); echo($_SESSION['login'])?>"></td>
</tr>
<tr>
<td>Пароль:</td>
<td><input type="password" name="password" value="<?php session_start(); echo($_SESSION['password'])?>"></td>
</tr>
<tr>
<td>Пароль(ще раз):</td>
<td><input type="password" name="repeatPassword" value="<?php session_start(); echo($_SESSION['repeatPassword'])?>"></td>
</tr>
<tr>
<td>Стать:</td>
<td>
<input type="radio" name="sex" value="чоловік" <?php if ($_SESSION['sex'] === 'чоловік') echo 'checked = "checked"'; ?>>чоловік
<input type="radio" name="sex" value="жінка" <?php if ($_SESSION['sex'] === 'жінка') echo 'checked = "checked"';?>>жінка
</td>
</tr>
<tr>
<td>Місто:</td>
<td>
<select name="city" >
<option value="Житомир" <?php if ($_SESSION['city'] === 'Житомир') echo 'selected = "selected"';?>>Житомир</option>
<option value="Київ" <?php if ($_SESSION['city'] === 'Київ') echo 'selected = "selected"'; ?>>Київ</option>
<option value="Одесса" <?php if ($_SESSION['city'] === 'Одесса') echo 'selected = "selected"'; ?>>Одесса</option>
<option value="Харьків" <?php if ($_SESSION['city'] === 'Харьків') echo 'selected = "selected"'; ?>>Харьків</option>
</select>
</td>
</tr>
<tr>
<td>Улюблені ігри:</td>
<td>
<input type="checkbox" name="games[]" value="футбол" <?php if (in_array("футбол", $_SESSION['games'])) echo 'checked'; ?>>футбол<br>
<input type="checkbox" name="games[]" value="баскетбол" <?php if (in_array("баскетбол", $_SESSION['games'])) echo 'checked'; ?>>баскетбол<br>
<input type="checkbox" name="games[]" value="волейбол" <?php if (in_array("волейбол", $_SESSION['games'])) echo 'checked'; ?>>волейбол<br>
<input type="checkbox" name="games[]" value="шахи" <?php if (in_array("шахи", $_SESSION['games'])) echo 'checked'; ?>>шахи<br>
<input type="checkbox" name="games[]" value="CS:GO" <?php if (in_array("CS:GO", $_SESSION['games'])) echo 'checked'; ?>>CS:GO<br>
</td>
</tr>
<.table>
int n;
Console.Write("Количество самолетов: ");
n = int.Parse(Console.ReadLine());
Airplane [] airplanes = new Airplane[n];
for (int i = 1; i <= n; i++)
{
Console.WriteLine($"Літак №{i}");
Console.Write("StartCity = ");
string startCity = Console.ReadLine();
Console.Write("FinishCity = ");
string finishCity = Console.ReadLine();
Console.Write("StartYear = ");
int starYear = int.Parse(Console.ReadLine());
Console.Write("StartMonth = ");
int starMonth = int.Parse(Console.ReadLine());
Console.Write("StartDay = ");
int starDay = int.Parse(Console.ReadLine());
Console.Write("StartHours = ");
int starHours = int.Parse(Console.ReadLine());
Console.Write("StartMinutes = ");
int starMinutes = int.Parse(Console.ReadLine());
Console.Write("FinishYear = ");
int finishYear = int.Parse(Console.ReadLine());
Console.Write("FinishMonth = ");
int finishMonth = int.Parse(Console.ReadLine());
Console.Write("FinishDay = ");
int finishDay = int.Parse(Console.ReadLine());
Console.Write("FinishHours = ");
int finishHours = int.Parse(Console.ReadLine());
Console.Write("FinishMinutes = ");
int finishMinutes = int.Parse(Console.ReadLine());
airplanes[i] = new Airplane(startCity, finishCity, new Date(starYear, starMonth, starDay, starHours, starMinutes), new Date(finishYear, finishMonth, finishDay, finishHours, finishMinutes));
}
for(int i = 1; i < airplanes.Length; i++)
{
Console.WriteLine($"StarCity {airplane[i].GetStartCity()}");
Console.WriteLine($"FinishCity {airplane[i].GetFinishCity()}");
Console.WriteLine($"StartDate {airplane[i].GetStartDate()}");
Console.WriteLine($"FinishDate {airplane[i].GetFinishDate()}");
}