-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_form.php
59 lines (55 loc) · 2.47 KB
/
_form.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<div class="container">
<div class="card">
<div class="card-header">
<h3>
<?php if ($param['id']): ?>
Обновить пользователя: <b><?php echo $user['login']?></b>
<?php else: ?>
Создать нового пользователя
<?php endif ?>
</h3>
</div>
<div class="card-body">
<form method="post" enctype="multipart/form-data" action="">
<div class="form-group">
<label>Логин</label>
<input name="login" value="<?php echo $user['login'] ?>"
class="form-control <?php echo $errors['login'] ? 'is-invalid' : '' ?>">
<div class="invalid-feedback">
<?php echo $errors['login'] ?>
</div>
</div>
<div class="form-group">
<label>Имя</label>
<input name="name" value="<?php echo $user['name'] ?>"
class="form-control <?php echo $errors['name'] ? 'is-invalid' : '' ?>">
<div class="invalid-feedback">
<?php echo $errors['name'] ?>
</div>
</div>
<div class="form-group">
<label>Фамилия</label>
<input name="surname" value="<?php echo $user['surname'] ?>" class="form-control">
</div>
<div class="form-group">
<label>Дата рождения</label>
<input name="birthdate" value="<?php echo $user['birthdate'] ?>"
class="form-control <?php echo $errors['birthdate'] ? 'is-invalid' : '' ?>">
<div class="invalid-feedback">
<?php echo $errors['birthdate'] ?>
</div>
</div>
<div class="form-group">
<label>Email</label>
<input name="email" value="<?php echo $user['email'] ?>" class="form-control">
</div>
<div class="form-group">
<label>Адрес</label>
<input name="address" value="<?php echo $user['address'] ?>" class="form-control">
</div>
<button class="btn btn-success">Сохранить</button>
</div>
</div>
</form>
</form>
</div>