-
Notifications
You must be signed in to change notification settings - Fork 1
/
elements.php
executable file
·135 lines (124 loc) · 13.7 KB
/
elements.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?php
session_start();
require_once 'database.php';
$type=$_GET['type'];
/*if($type=="education"){
echo '<div id="education'.$number.'">
<table width="100%" height="22" border="0" cellpadding="5" cellspacing="0">
<tr><td><input type="hidden" name="education_id'.$number.'" id="education_id'.$number.'" value="-1"></td></tr>';
echo '
<tr><td width="180" valign="top">Dates of studying</td><td width="370">From: <select name="org_fday'.$number.'">
<option>D</option>';
for($j=1;$j<=31;$j++) echo '<option>'.$j.'</option>';
echo '</select> <select name="org_fmonth'.$number.'"><option>M</option>';
for($j=1;$j<=12;$j++) echo '<option>'.$j.'</option>';
echo '</select><select name="org_fyear'.$number.'"><option>Y</option>';
for($j=1940;$j<=2020;$j++) echo '<option>'.$j.'</option>';
echo '</select> To: <select name="org_tday'.$number.'"><option>D</option><option>-></option>';
for($j=1;$j<=31;$j++) echo '<option>'.$j.'</option>';
echo '</select> <select name="org_tmonth'.$number.'"><option>M</option><option>-></option>';
for($j=1;$j<=12;$j++) echo '<option>'.$j.'</option>';
echo '</select><select name="org_tyear'.$number.'"><option>Y</option><option>-></option>';
for($j=1940;$j<=2020;$j++) echo '<option>'.$j.'</option>';
echo '</select>
</td> </tr>
<tr> <td width="180" valign="top">Title of qualification awarded</td><td width="370"><label> <input type="text" name="stud_cv_title'.$number.'" class="lykeion" id="stud_cv_title'.$number.'" size="75" maxlength="249" style="width:98%" value=""> </label></td> </tr>
<tr> <td width="180" valign="top">Principal subjects/occupational skills covered</td><td width="370"><label> <textarea style="resize: none;" name="stud_cv_subject'.$number.'" class="lykeion" id="stud_cv_subject'.$number.'" row="5" cols="50" style="width:98%" value=""></textarea> </label></td> </tr>
<tr> <td width="180" valign="top">Name organisation providing education or training</td><td width="370"><label> <input type="text" name="stud_cv_org_name'.$number.'" class="lykeion" id="stud_cv_org_name'.$number.'" size="75" maxlength="249" style="width:98%" value=""> </label></td> </tr>
<tr> <td width="180" valign="top">Type of organisation providing education or training</td><td width="370"><label> <input type="text" name="stud_cv_org_type'.$number.'" class="lykeion" id="stud_cv_org_type'.$number.'" size="75" maxlength="249" style="width:98%" value=""> </label></td> </tr>
<tr> <td width="180" valign="top">Address of organisation</td><td width="370"><label> <input type="text" name="stud_cv_org_address'.$number.'" class="lykeion" id="stud_cv_org_address'.$number.'" style="width:98%" size="75" maxlength="249" value=""> </label></td> </tr>
<tr> <td width="180" valign="top">City of organisation</td><td width="370"><label> <input type="text" name="stud_cv_org_city'.$number.'" class="lykeion" id="stud_cv_org_city'.$number.'" size="75" maxlength="249" style="width:98%" value=""> </label></td> </tr>
<tr> <td width="180" valign="top">Country of organisation</td><td width="370"><label> <input type="text" name="stud_cv_org_country'.$number.'" class="lykeion" id="stud_cv_org_country'.$number.'" size="75" maxlength="249" style="width:98%" value=""> </label></td> </tr>
<tr> <td width="180" valign="top">Level in national or international classification</td><td width="370"><label> <input name="stud_cv_level'.$number.'" class="lykeion" type="text" id="stud_cv_level'.$number.'" size="75" maxlength="249" style="width:98%" value="" list="level-list"/><datalist id="level-list"> <option value="Bachelor"> <option value="Master"> <option value="PhD"> <option value="High School"></datalist> </label></td> </tr>
<tr> <td width="180" valign="top">Education field</td><td width="370"><label> <input name="stud_cv_field'.$i.'" class="lykeion" type="text" id="stud_cv_field'.$number.'" size="75" maxlength="249" style="width:98%" value=""list="field-list"/> <datalist id="field-list"><option value="Computer Science and Informatics"><option value="Automatic Control and Electronics"><option value="Electric Power Engineering"><option value="Telecommunication"><option value="Civil Engineering"><option value="Mechanical Engineering"><option value="Chemical Engineering"></datalist> </label></td> </tr>
<tr><td></td><td align="right"><a href=javascript:showhide("education'.$number.'",-1);>Delete this education</a></td></tr>
<tr><td colspan="2">------------------------------------------------------------------------------------------------------------------------------------</td></tr></table></div>';
}*/
if($_SESSION['loged']=='true' || $_SESSION['state']=='registration'){
if($_GET['type']){
$db=new database();
$number=$_GET['br'];
if($type=="work"){
echo '<div id="work'.$number.'">
<input type="hidden" name="work_id'.$number.'" id="work_id'.$number.'" value="-1">
<label>Dates when you worked</label> <select name="fday'.$number.'">
<option>D</option>';
for($j=1;$j<=31;$j++) echo '<option>'.$j.'</option>';
echo '</select> <select name="fmonth'.$number.'"><option>M</option>';
for($j=1;$j<=12;$j++) echo '<option>'.$j.'</option>';
echo '</select><select name="fyear'.$number.'"><option>Y</option>';
for($j=1940;$j<=2020;$j++) echo '<option>'.$j.'</option>';
echo '</select>-<select name="tday'.$number.'"><option>D</option><option>-></option>';
for($j=1;$j<=31;$j++) echo '<option>'.$j.'</option>';
echo '</select> <select name="tmonth'.$number.'"><option>M</option><option>-></option>';
for($j=1;$j<=12;$j++) echo '<option>'.$j.'</option>';
echo '</select><select name="tyear'.$number.'"><option>Y</option><option>-></option>';
for($j=1940;$j<=2020;$j++) echo '<option>'.$j.'</option>';
echo '</select><br>
<label>Occupation or position held</label> <textarea style="resize: none;" name="stud_cv_Occupation'.$number.'" class="lykeion" id="stud_cv_Occupation'.$number.'" rows="5" cols="45" /></textarea>
<label>Main activities and responsibilities</label> <textarea style="resize: none;" name="stud_cv_Responsibilities'.$number.'" class="lykeion" id="stud_cv_Responsibilities'.$number.'" rows="5" cols="45"/></textarea>
<label>Name of employer</label> <input type="text" name="stud_cv_Name'.$number.'" class="lykeion" id="stud_cv_Name'.$number.'" />
<label>Address of employer</label> <input type="text" name="stud_cv_address'.$number.'" class="lykeion" id="stud_cv_address'.$number.'" />
<label>City of employer</label> <input type="text" name="stud_cv_work_city'.$number.'" class="lykeion" id="stud_cv_work_city'.$number.'" />
<label>Country of employer</label> <input type="text" name="stud_cv_work_country'.$number.'" class="lykeion" id="stud_cv_work_country'.$number.'" />
<label>Type of business or sector</label> <input name="stud_cv_Type'.$number.'" class="lykeion" type="text" id="stud_cv_Type'.$number.'" />
<label><a href=javascript:showhide("work'.$number.'",-1);>Delete this work</a></label>
</div><br><br><br>';
}
if($type=="education"){
echo '<div id="education'.$number.'">
<input type="hidden" name="education_id'.$number.'" id="education_id'.$number.'" value="-1">';
echo '
<label>Dates of studying</label><select name="org_fday'.$number.'">
<option>D</option>';
for($j=1;$j<=31;$j++) echo '<option>'.$j.'</option>';
echo '</select> <select name="org_fmonth'.$number.'"><option>M</option>';
for($j=1;$j<=12;$j++) echo '<option>'.$j.'</option>';
echo '</select><select name="org_fyear'.$number.'"><option>Y</option>';
for($j=1940;$j<=2020;$j++) echo '<option>'.$j.'</option>';
echo '</select> - <select name="org_tday'.$number.'"><option>D</option><option>-></option>';
for($j=1;$j<=31;$j++) echo '<option>'.$j.'</option>';
echo '</select> <select name="org_tmonth'.$number.'"><option>M</option><option>-></option>';
for($j=1;$j<=12;$j++) echo '<option>'.$j.'</option>';
echo '</select><select name="org_tyear'.$number.'"><option>Y</option><option>-></option>';
for($j=1940;$j<=2020;$j++) echo '<option>'.$j.'</option>';
echo '</select><br>
<label>Title of qualification awarded</label> <input type="text" name="stud_cv_title'.$number.'" class="lykeion" id="stud_cv_title'.$number.'" value="">
<label>Principal subjects/occupational skills covered</label> <textarea style="resize: none;" name="stud_cv_subject'.$number.'" class="lykeion" id="stud_cv_subject'.$number.'" row="5" cols="45" value=""></textarea> <br><br>
<label>Name organisation providing education or training</label> <input type="text" name="stud_cv_org_name'.$number.'" class="lykeion" id="stud_cv_org_name'.$number.'" value=""><br><br>
<label>Type of organisation providing education or training</label> <input type="text" name="stud_cv_org_type'.$number.'" class="lykeion" id="stud_cv_org_type'.$number.'" value=""> <br><br>
<label>Address of organisation</label> <input type="text" name="stud_cv_org_address'.$number.'" class="lykeion" id="stud_cv_org_address'.$number.'" value="">
<label>City of organisation</label> <input type="text" name="stud_cv_org_city'.$number.'" class="lykeion" id="stud_cv_org_city'.$number.'" value="">
<label>Country of organisation</label> <input type="text" name="stud_cv_org_country'.$number.'" class="lykeion" id="stud_cv_org_country'.$number.'" value="">
<label>Level in national or international classification</label> <input name="stud_cv_level'.$number.'" class="lykeion" type="text" id="stud_cv_level'.$number.'" value="" list="level-list"/> <datalist id="level-list"> <option value="Bachelor"> <option value="Master"> <option value="PhD"> <option value="High School"></datalist> <br><br>
<label>Education field</label> <input name="stud_cv_field'.$i.'" class="lykeion" type="text" id="stud_cv_field'.$number.'" value="" list="field-list"/><datalist id="field-list"><option value="Computer Science and Informatics"><option value="Automatic Control and Electronics"><option value="Electric Power Engineering"><option value="Telecommunication"><option value="Civil Engineering"><option value="Mechanical Engineering"><option value="Chemical Engineering"></datalist>
<label><a href=javascript:showhide("education'.$number.'",-1);>Delete this education</a></label>
</div><br><br><br>';
}
if($type=="language"){
echo '
<input type="hidden" name="language_id'.$number.'" id="language_id'.$number.'" value="-1">
<label>Language</label> <input type="text" name="stud_cv_Other_language'.$number.'" class="lykeion" id="stud_cv_Other_language'.$number.'" value=""> <br>
<label>Listening</label> <select name="stud_cv_listening'.$number.'" class="lykeion" id="stud_cv_listening'.$number.'" value=""> <option>Level</option><option>a1</option><option>a2</option><option>b1</option><option>b2</option><option>c1</option><option>c2</option> </select><br>
<label>Reading</label><select name="stud_cv_reading'.$number.'" class="lykeion" id="stud_cv_reading'.$number.'" value=""><option>Level</option><option>a1</option><option>a2</option><option>b1</option><option>b2</option><option>c1</option><option>c2</option> </select><br>
<label>Spoken interaction</label> <select name="stud_cv_spoken_i'.$number.'" class="lykeion" id="stud_cv_spoken_i'.$number.'" value=""> <option>Level</option><option>a1</option><option>a2</option><option>b1</option><option>b2</option><option>c1</option><option>c2</option> </select><br>
<label>Spoken production</label> <select name="stud_cv_listening'.$number.'" class="lykeion" id="stud_cv_listening'.$number.'" value=""><option>Level</option><option>a1</option><option>a2</option><option>b1</option><option>b2</option><option>c1</option><option>c2</option> </select><br>
<label>Writing</label> <select name="stud_cv_writing'.$number.'" class="lykeion" id="stud_cv_writing'.$number.'" value=""><option>Level</option><option>a1</option><option>a2</option><option>b1</option><option>b2</option><option>c1</option><option>c2</option> </select><br>
<label><a href=javascript:showhide("language'.$number.'",-1);>Delete this language</a></label>
</div>';
}
if($type=="delete_work"){
$sql="DELETE FROM work_experience WHERE ID='$number'";
$db->query($sql);
}
if($type=="delete_education"){
$sql="DELETE FROM education WHERE ID='$number'";
$db->query($sql);
}
if($type=="delete_language"){
$sql="DELETE FROM languagelist WHERE ID='$number'";
$db->query($sql);
}
}
}
?>