<h1>Таблица</h1>
<div style="margin-left: 30%;margin-bottom: 100px;">
<form action="" method="POST">
<table>
<tr><td>
<label for="surname">Фамилия:</td><td><input type="text" name="surname" id="name" value="<?php echo $surname; ?>"></label></td>
</tr><tr>
<td>
<label for="name">Имя:</td><td><input type="text" name="name" id="name" value="<?php echo $name; ?>"></label></td>
</tr><tr>
<td>
<label for="patronymic">Отчество:</td><td><input type="text" name="patronymic" id="patronymic" value="<?php echo $patronymic; ?>"></label></td>
</tr><tr>
<td>
<label for="age">Дата рождения:</td><td><input type="text" name="age" id="age" value="<?php echo $age; ?>"></label> </td>
</tr><tr>
<td>
<label for="phone">Телефон:</td><td><input type="text" name="phone" id="phone" value="<?php echo $phone; ?>"></label></td>
</tr><tr>
<td>
<label for="gender">Пол:</td><td><input type="text" name="gender" id="gender" value="<?php echo $gender; ?>"></label>
</tr><tr>
</td>
<label for="address">Баланс:</td><td><input type="text" name="balance" id="balance" value="<?php echo $balance; ?>"></label> </td>
</tr><tr>
<label for="address">Скидка:</td><td><input type="text" name="discount" id="discount" value="<?php echo $discount; ?>"></label></td>
</tr><tr>
<label for="address">Бонус:</td><td><input type="text" name="bonus" id="bonus" value="<?php echo $bonus; ?>"></label></td>
</table>
<input type="hidden" name="id" value="<?php echo($id);?>">
<input type="submit" value="<?php echo($button);?>">
</form>
Длина символов строки и маска для номера задается в SQL server.
Объяснение:
1)
#include <iostream>
using namespace std;
int main()
{
setlocale(LC_ALL, "RUSSIAN");
int a, b, c, w, h;
cout << "Введите ширину дверного проема, см: "; cin >> w;
cout << "Введите высоту дверного проема, см: "; cin >> h;
cout << endl;
cout << "Введите высоту шкафа, см: "; cin >> a;
cout << "Введите ширину шкафа, см: "; cin >> b;
cout << "Введите глубину шкафа, см: "; cin >> c;
cout << endl<< "Результат: ";
if (b < w && a < h || c < w && a < h || c < w && b < h) cout << "Шкаф пройдет в дверной проем." << endl;
else cout << "Шкаф не пройдет в дверной проем." << endl;
system("pause");
return 0;
}