-
Notifications
You must be signed in to change notification settings - Fork 0
/
entry_coach_input.php
121 lines (118 loc) · 6.76 KB
/
entry_coach_input.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?
require_once "head.php";
require_once "includes/auth/config.php";
require_once "action/module/dictionary.php";
require_once "backheader.php";
if (!authCheck($db, "authEntrysRead")) {
exit("<script>
alert('잘못된 접근입니다.');
history.back();
</script>");
}
?>
</head>
<body>
<div class="container">
<div class="athlete">
<div class="profile_logo">
<img src="/assets/images/logo.png">
</div>
<div class="UserProfile">
<p class="UserProfile_tit tit_left_blue">
코치 정보
</p>
<form action="./action/module/coach_Insert.php" method="post" class="form"
enctype="multipart/form-data">
<div class="UserProfile_modify UserProfile_input coachArea">
<div>
<ul class="UserDesc Participant_list Participant_padding">
<li class="row input_row row_item">
<span>이름</span>
<input type="text" name="coach_second_name" id="coach_name" value=""
placeholder="이름을 입력해 주세요" required />
</li>
<li class="row input_row row_item">
<span>성</span>
<input type="text" name="coach_first_name" id="coach_name" value=""
placeholder="성을 입력해 주세요" required />
</li>
<li class="row input_row row_item input_width">
<span>국가</span>
<select aria-placeholder="국가 선택" name="coach_country" required>
<option value='' selected disabled hidden>국가 선택</option>
<?php
foreach ($country_code_dic as $key => $value)
echo "<option value=" . $value . ">" . $key . "</option>";
?>
</select>
</li>
<li class="row input_row row_item">
<span>지역</span>
<input type="text" name="coach_region" id="coach_region" value=""
placeholder="지역을 입력해 주세요" required />
</li>
<li class="row input_row row_item">
<span>소속</span>
<input type="text" name="coach_division" id="coach_division" value=""
placeholder="소속을 입력해 주세요" required />
</li>
<li class="row input_row row_item input_width">
<span>직무</span>
<select title="직무" name="coach_duty" required>
<?php
foreach ($coach_duty_dic as $duty) {
echo '<option value=' . '"' . $duty . '"' . 'id="' . $duty . '"/>' . $duty . '</option>';
}
?>
</select>
</li>
<li class="row input_row row_item input_width">
<span>성별</span>
<select name="coach_gender" style="width: 100px;" title="성별" required>
<option value='' selected disabled hidden>성별 선택</option>
<option value="m">남자</option>
<option value="f">여자</option>
</select>
</li>
<li class="row input_row row_item row_date">
<span>생년월일</span>
<input type="text" name="coach_birth_year" placeholder="연" required value="">
<input type="text" name="coach_birth_month" placeholder="월" required value="">
<input type="text" name="coach_birth_day" placeholder="일" required value="">
</li>
<li class="row input_row row_item">
<span>나이</span>
<input type="text" name="coach_age" id="coach_age" value=""
placeholder="나이를 입력해 주세요" required />
</li>
<li class="row input_row row_item">
<span>이미지 변경</span>
<input type="file" name="coach_imgFile" />
</li>
<li class="row full_width">
<span class="full_span">출입가능구역</span>
<div class="full_div">
<?
for ($value = 1; $value <= count($sector_dic); $value++) {
echo "<label>";
echo '<input type="checkbox" name="coach_sector[]"' . 'value="' . key($sector_dic) . '"' . 'id="' . current($sector_dic) . '"/>';
echo "<span>" . current($sector_dic) . "</span>";
echo "</label>";
next($sector_dic);
}
reset($sector_dic);
?>
</div>
</li>
</ul>
</div>
</div>
</form>
<div class="modify_Btn input_Btn Participant_Btn">
<button type="submit" class="BTN_blue2" name="coach_edit">확인</button>
</div>
</div>
</div>
</div>
</body>
</html>