-
Notifications
You must be signed in to change notification settings - Fork 0
/
add-athlete-form.php
92 lines (89 loc) · 6.12 KB
/
add-athlete-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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!doctype html>
<html lang="sk">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Pridať športovca</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<script src="javascript/addAthleteScript.js"></script>
</head>
<body>
<header id="main-header">
<h1 id="main-h1">
Pridanie športovca
</h1>
</header>
<section id="main-section">
<article id="main-article">
<header id="form-article-header">
<a id="undo" href="index.php" data-toggle="tooltip" title="Späť"><img src="resources/pictures/undo.svg" width="32" height="32" alt="undo"></a>
</header>
<div id="form-div">
<form action='add-athlete.php' method='post'>
<div class="form-row">
<div class="form-group col-md-6">
<label for="name">Meno</label>
<input type='text' class='form-control' id='name' name='name' placeholder='Zadajte meno' pattern='^(?!\s*$).+' required>
</div>
<div class="form-group col-md-6">
<label for="surname">Priezvisko</label>
<input type='text' class='form-control' id='surname' name='surname' placeholder='Zadajte priezvisko' pattern='^(?!\s*$).+' required>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-4">
<label for="birth-day">Dátum narodenia</label>
<input type='text' class='form-control' id='birth-day' name='birth-day' placeholder='Zadajte dátum narodenia' oninput='checkBirthDeathDay()' required pattern='^(?:(?:31(\.)(?:0?[13578]|1[02]))\1|(?:(?:29|30)(\.)(?:0?[1,3-9]|1[0-2])\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:29(\.)0?2\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1\d|2[0-8])(\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:(?:1[6-9]|[2-9]\d)?\d{2})$'>
<small id="birthDayHelpBlock" class="form-text text-muted">
Dátum musí byť v tvare dd.mm.yyyy
</small>
</div>
<div class="form-group col-md-4">
<label for="birth-place">Miesto narodenia</label>
<input type='text' class='form-control' id='birth-place' name='birth-place' placeholder='Zadajte miesto narodenia' required pattern='^(?!\s*$).+'>
</div>
<div class="form-group col-md-4">
<label for="birth-country">Krajina Narodenia</label>
<input type='text' class='form-control' id='birth-country' name='birth-country' placeholder='Zadajte krajinu narodenia' required pattern='^(?!\s*$).+'>
</div>
</div>
<div class="form-row">
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" id="death-check" name="death-check" value="isDeath" onclick="showDeathForm(this)">
<label class="form-check-label" for="death-check">Zomrel</label>
</div>
</div>
<div class="form-row" id="death-form">
<div class="form-group col-md-4">
<label for="death-day">Dátum úmrtia</label>
<input type='text' class='form-control' id='death-day' name='death-day' placeholder='Zadajte dátum úmrtia' oninput='checkBirthDeathDay()' pattern='^(?:(?:31(\.)(?:0?[13578]|1[02]))\1|(?:(?:29|30)(\.)(?:0?[1,3-9]|1[0-2])\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:29(\.)0?2\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1\d|2[0-8])(\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:(?:1[6-9]|[2-9]\d)?\d{2})$'>
<small id="deathDayHelpBlock" class="form-text text-muted">
Dátum musí byť v tvare dd.mm.yyyy
</small>
</div>
<div class="form-group col-md-4">
<label for="death-place">Miesto úmrtia</label>
<input type='text' class='form-control' id='death-place' name='death-place' placeholder='Zadajte miesto úmrtia'>
</div>
<div class="form-group col-md-4">
<label for="death-country">Krajina úmrtia</label>
<input type='text' class='form-control' id='death-country' name='death-country' placeholder='Zadajte krajinu úmrtia'>
</div>
</div>
<div class="form-row" id="button-div">
<button type="submit" name="submit" class="btn btn-success">Pridať</button>
</div>
</form>
</div>
</article>
</section>
</body>
</html>