activex omzeilen
Voor een website willen "trusted website" omzeilen. Aan de hand van
php en vbscript is er een script die microsoft word documenten leest
en die in de database "mysql" opslaat. Om dit te laten gebeuren,
moeten internet gebruikers ons website toevoegen bij "vertrouwde
website". Hoe kunnen we dit omzeilen.
hier is het script die ik gebruik ik denk niet dat het hier aanlegt maar kan iemand effe kijken alvast bedankt..
Code (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
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
<?php
session_start();
#session_unregister('beroepsprofiel');
#session_unregister('regio');
session_unregister('standplaats');
session_unregister('uren');
session_unregister('werkdagen');
session_unregister('beschikbaar');
session_unregister('salarisExtra');
session_unregister('salaris');
session_unregister('dienstverband');
session_unregister('studierichting');
session_unregister('opleiding');
session_unregister('werkervaring');
session_unregister('werkervaringExtra');
session_unregister('ambitie');
session_unregister('motivatie');
session_unregister('error_beroepsprofiel');
session_unregister('error_regio');
session_unregister('error_uren');
#session_unregister('error_werkdagen');
session_unregister('error_beschikbaar');
session_unregister('error_salaris');
session_unregister('error_dienstverband');
session_unregister('error_opleiding');
session_unregister('error_studierichting');
session_unregister('error_werkervaring');
session_unregister('error_ambitie');
session_unregister('error_motivatie');
session_unregister('document');
session_unregister('error_document1');
session_unregister('error_document2');
session_unregister('error_document3');
if (!isset($_SESSION["check_wn_aanmeld"]))
{
header("Location: aanmelden1.php");
} else {
include ("../incl/connect.php");
MYSQL_CONNECT($hostname,$username,$password) OR DIE("Kan geen verbinding maken met de database");
mysql_select_db("$dbName");
?>
session_start();
#session_unregister('beroepsprofiel');
#session_unregister('regio');
session_unregister('standplaats');
session_unregister('uren');
session_unregister('werkdagen');
session_unregister('beschikbaar');
session_unregister('salarisExtra');
session_unregister('salaris');
session_unregister('dienstverband');
session_unregister('studierichting');
session_unregister('opleiding');
session_unregister('werkervaring');
session_unregister('werkervaringExtra');
session_unregister('ambitie');
session_unregister('motivatie');
session_unregister('error_beroepsprofiel');
session_unregister('error_regio');
session_unregister('error_uren');
#session_unregister('error_werkdagen');
session_unregister('error_beschikbaar');
session_unregister('error_salaris');
session_unregister('error_dienstverband');
session_unregister('error_opleiding');
session_unregister('error_studierichting');
session_unregister('error_werkervaring');
session_unregister('error_ambitie');
session_unregister('error_motivatie');
session_unregister('document');
session_unregister('error_document1');
session_unregister('error_document2');
session_unregister('error_document3');
if (!isset($_SESSION["check_wn_aanmeld"]))
{
header("Location: aanmelden1.php");
} else {
include ("../incl/connect.php");
MYSQL_CONNECT($hostname,$username,$password) OR DIE("Kan geen verbinding maken met de database");
mysql_select_db("$dbName");
?>
<SCRIPT LANGUAGE="VBScript">
Sub ReadFile()
Dim Form
Set Form = Document.forms("formulier")
Dim oApp
Dim oDoc
Dim oMergedDoc
on error resume next
Set oApp = CreateObject("Word.Application")
oApp.Visible = False
oApp.Documents.Open Form.cv.value
Set oDoc = oApp.ActiveDocument.Range(0,0)
oDoc.WholeStory
Form.TekstInput.value = oDoc.Text
oApp.ActiveDocument.close False
oApp.quit
Set oApp=Nothing
End Sub
</SCRIPT>
<script language="JavaScript">
function show(object) {
document.getElementById(object).style.visibility = 'visible'; }
function hide(object) {
document.getElementById(object).style.visibility = 'hidden'; }
</script>
Code (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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
<?php
$id = $_SESSION['check_wn_aanmeld'];
if (isset($_POST['submit'])) {
$standplaats = $_POST['standplaats'];
$uren = $_POST['uren'];
$werkdagen = $_POST['werkdagen'];
$beschikbaar = $_POST['beschikbaar'];
$salarisExtra = $_POST['salarisExtra'];
$salaris = $_POST['salaris'];
$dienstverband = $_POST['dienstverband'];
$opleiding = $_POST['opleiding'];
$studierichting = $_POST['studierichting'];
$werkervaring = $_POST['werkervaring'];
$werkervaringExtra = $_POST['werkervaringExtra'];
$ambitie = $_POST['ambitie'];
$motivatie = $_POST['motivatie'];
if (empty($_POST['beroepsprofiel']) OR (is_array($_POST['beroepsprofiel']) && count($_POST['beroepsprofiel']) > 3))
{
$error_beroepsprofiel = 1;
echo "<meta HTTP-EQUIV='REFRESH' CONTENT='0; URL=aanmelden2.php'>";
} else {
$error_beroepsprofiel = 0;
$data_query = mysql_query("DELETE FROM sel_wn_beroepsprofiel WHERE id = $id");
if (isset($_POST['submit']))
{
foreach($_POST['beroepsprofiel'] as $beroepsprofiel )
{
$data_source = "INSERT INTO sel_wn_beroepsprofiel (id, beroepsprofiel) VALUES ('$id', '$beroepsprofiel')";
$data_result = mysql_query($data_source);
}
}
}
if (empty($_POST['regio']) OR (is_array($_POST['regio']) && count($_POST['regio']) > 3))
{
$error_regio = 1;
echo "<meta HTTP-EQUIV='REFRESH' CONTENT='0; URL=aanmelden2.php'>";
} else {
$error_regio = '0';
$data_query = mysql_query("DELETE FROM sel_wn_regio WHERE id = '$id'");
if (isset($_POST['submit']))
{
foreach($_POST['regio'] as $regio )
{
$data_source = "INSERT INTO sel_wn_regio (id, regio) VALUES ('$id', '$regio')";
$data_result = mysql_query($data_source);
}
}
}
if ($_POST['uren'] == 'Maak uw keuze')
{
$error_uren = '1';
echo "<meta HTTP-EQUIV='REFRESH' CONTENT='0; URL=aanmelden2.php'>";
} else { $error_uren = '0'; }
if ($_POST['beschikbaar'] == 'Maak uw keuze')
{
$error_beschikbaar = '1';
echo "<meta HTTP-EQUIV='REFRESH' CONTENT='0; URL=aanmelden2.php'>";
} else { $error_beschikbaar = '0'; }
if ($_POST['salaris'] == 'Maak uw keuze')
{
$error_salaris = '1';
echo "<meta HTTP-EQUIV='REFRESH' CONTENT='0; URL=aanmelden2.php'>";
} else { $error_salaris = '0'; }
if ($_POST['dienstverband'] == 'Maak uw keuze')
{
$error_dienstverband = '1';
echo "<meta HTTP-EQUIV='REFRESH' CONTENT='0; URL=aanmelden2.php'>";
} else { $error_dienstverband = '0'; }
if ($_POST['opleiding'] == 'Maak uw keuze')
{
$error_opleiding = '1';
echo "<meta HTTP-EQUIV='REFRESH' CONTENT='0; URL=aanmelden2.php'>";
} else { $error_opleiding = '0'; }
# if (empty($_POST['studierichting']))
# {
# $error_studierichting = '1';
# echo "<meta HTTP-EQUIV='REFRESH' CONTENT='0; URL=addwn2.php'>";
# } else { $error_studierichting = '0'; }
if (($_POST['werkervaring'] == 'Geen') && (!empty($_POST['werkervaringExtra'])))
{
$error_werkervaring = '1';
echo "<meta HTTP-EQUIV='REFRESH' CONTENT='0; URL=aanmelden2.php'>";
} else { $error_werkervaring = '0'; }
if (empty($_POST['ambitie']))
{
$error_ambitie = 1;
echo "<meta HTTP-EQUIV='REFRESH' CONTENT='0; URL=aanmelden2.php'>";
} else { $error_ambitie = 0; }
if (empty($_POST['motivatie']))
{
$error_motivatie = 1;
echo "<meta HTTP-EQUIV='REFRESH' CONTENT='0; URL=aanmelden2.php'>";
} else { $error_motivatie = 0; }
if (empty($_FILES['cv']['name']))
{
$error_document1 = 1;
echo "<meta HTTP-EQUIV='REFRESH' CONTENT='0; URL=aanmelden2.php'>";
} else { $error_document1 = 0; }
$document = $_FILES['cv']['name'];
$extension = substr($document, -3);
if ($extension != "doc")
{
$error_document2 = 1;
echo "<meta HTTP-EQUIV='REFRESH' CONTENT='0; URL=aanmelden2.php'>";
} else { $error_document2 = 0; }
$size = $_FILES['cv']['size'];
if ($size >= 153600)
{
$error_document3 = 1;
echo "<meta HTTP-EQUIV='REFRESH' CONTENT='0; URL=aanmelden2.php'>";
} else { $error_document3 = 0; }
session_register("standplaats", "uren", "werkdagen", "beschikbaar", "salarisExtra", "salaris", "dienstverband", "ambitie", "motivatie", "opleiding", "studierichting", "werkervaring", "werkervaringExtra", "document", "error_beroepsprofiel", "error_regio", "error_uren", "error_beschikbaar", "error_salaris", "error_dienstverband", "error_opleiding", "error_ambitie", "error_motivatie", "error_werkervaring", "error_document1", "error_document2", "error_document3");
if (($error_beroepsprofiel == 0) AND ($error_regio == 0) AND ($error_uren == 0) AND ($error_ambitie == 0) AND ($error_motivatie == 0) AND ($error_beschikbaar == 0) AND ($error_salaris == 0) AND ($error_dienstverband == 0) AND ($error_opleiding == 0) AND ($error_werkervaring == 0) AND ($error_document1 == 0) AND ($error_document2 == 0) AND ($error_document3 == 0))
{
$currentdatetime = strftime("%Y-%m-%d %H:%M:%S");
$_POST['ambitie'] = nl2br($_POST['ambitie']);
$_POST['motivatie'] = nl2br($_POST['motivatie']);
$data_source = "UPDATE wn_cvinfo SET standplaats = '$_POST[standplaats]', uren = '$_POST[uren]', werkdagen = '$_POST[werkdagen]', beschikbaar = '$_POST[beschikbaar]', salarisExtra = '$_POST[salarisExtra]', salaris = '$_POST[salaris]', dienstverband = '$_POST[dienstverband]', opleiding = '$_POST[opleiding]', studierichting = '$_POST[studierichting]', werkervaring = '$_POST[werkervaring]', werkervaringExtra = '$_POST[werkervaringExtra]', ambitie = '$_POST[ambitie]', motivatie = '$_POST[motivatie]' WHERE id = '$_SESSION[check_wn_aanmeld]'";
$data_result = mysql_query($data_source);
# File upload + id definieren
# $data_source = "SELECT id FROM wn_account WHERE email = '$_SESSION[check_wn_aanmeld]'";
# $data_result = mysql_query($data_source);
# $data = mysql_fetch_array($data_result);
copy($_FILES['cv']['tmp_name'], "../wn/docs/$id.doc");
$data_source = "UPDATE wn_document SET document = '$_POST[TekstInput]' WHERE id='$id'";
$data_result = mysql_query($data_source);
echo "<meta HTTP-EQUIV='REFRESH' CONTENT='0; URL=../content.php?page=aanmeldenTnx_wn'>";
# header("Location: content.php?page=aanmeldenTnx_wn");
}
} else {
#if (empty($beroepsprofiel)) { $beroepsprofiel = ''; }
#if (empty($regio)) { $regio = ''; }
if (empty($standplaats)) {$standplaats = ''; }
if (empty($uren)) { $uren = ''; }
if (empty($werkdagen)) { $werkdagen = ''; }
if (empty($beschikbaar)) {$beschikbaar = ''; }
if (empty($salarisExtra)) {$salarisExtra = ''; }
if (empty($salaris)) {$salaris = ''; }
if (empty($dienstverband)) {$dienstverband = ''; }
if (empty($opleiding)) {$opleiding = ''; }
if (empty($studierichting)) {$studierichting = ''; }
if (empty($werkervaring)) {$werkervaring = ''; }
if (empty($werkervaringExtra)) {$werkervaringExtra = ''; }
if (empty($ambitie)) {$ambitie = ''; }
if (empty($motivatie)) {$motivatie = ''; }
if (empty($error_beroepsprofiel)) { $error_beroepsprofiel = 0; }
if (empty($error_regio)) { $error_regio = 0; }
if (empty($error_uren)) { $error_uren = 0; }
if (empty($error_beschikbaar)) { $error_beschikbaar = 0; }
if (empty($error_salaris)) { $error_salaris = 0; }
if (empty($error_dienstverband)) { $error_dienstverband = 0; }
if (empty($error_opleiding)) { $error_opleiding = 0; }
if (empty($error_studierichting)) { $error_studierichting = 0; }
if (empty($error_werkervaring)) { $error_werkervaring = 0; }
if (empty($error_document1)) { $error_document1 = 0; }
if (empty($error_document2)) { $error_document2 = 0; }
if (empty($error_document3)) { $error_document3 = 0; }
if (empty($error_ambitie)) { $error_ambitie = 0; }
if (empty($error_motivatie)) { $error_motivatie = 0; }
?>
$id = $_SESSION['check_wn_aanmeld'];
if (isset($_POST['submit'])) {
$standplaats = $_POST['standplaats'];
$uren = $_POST['uren'];
$werkdagen = $_POST['werkdagen'];
$beschikbaar = $_POST['beschikbaar'];
$salarisExtra = $_POST['salarisExtra'];
$salaris = $_POST['salaris'];
$dienstverband = $_POST['dienstverband'];
$opleiding = $_POST['opleiding'];
$studierichting = $_POST['studierichting'];
$werkervaring = $_POST['werkervaring'];
$werkervaringExtra = $_POST['werkervaringExtra'];
$ambitie = $_POST['ambitie'];
$motivatie = $_POST['motivatie'];
if (empty($_POST['beroepsprofiel']) OR (is_array($_POST['beroepsprofiel']) && count($_POST['beroepsprofiel']) > 3))
{
$error_beroepsprofiel = 1;
echo "<meta HTTP-EQUIV='REFRESH' CONTENT='0; URL=aanmelden2.php'>";
} else {
$error_beroepsprofiel = 0;
$data_query = mysql_query("DELETE FROM sel_wn_beroepsprofiel WHERE id = $id");
if (isset($_POST['submit']))
{
foreach($_POST['beroepsprofiel'] as $beroepsprofiel )
{
$data_source = "INSERT INTO sel_wn_beroepsprofiel (id, beroepsprofiel) VALUES ('$id', '$beroepsprofiel')";
$data_result = mysql_query($data_source);
}
}
}
if (empty($_POST['regio']) OR (is_array($_POST['regio']) && count($_POST['regio']) > 3))
{
$error_regio = 1;
echo "<meta HTTP-EQUIV='REFRESH' CONTENT='0; URL=aanmelden2.php'>";
} else {
$error_regio = '0';
$data_query = mysql_query("DELETE FROM sel_wn_regio WHERE id = '$id'");
if (isset($_POST['submit']))
{
foreach($_POST['regio'] as $regio )
{
$data_source = "INSERT INTO sel_wn_regio (id, regio) VALUES ('$id', '$regio')";
$data_result = mysql_query($data_source);
}
}
}
if ($_POST['uren'] == 'Maak uw keuze')
{
$error_uren = '1';
echo "<meta HTTP-EQUIV='REFRESH' CONTENT='0; URL=aanmelden2.php'>";
} else { $error_uren = '0'; }
if ($_POST['beschikbaar'] == 'Maak uw keuze')
{
$error_beschikbaar = '1';
echo "<meta HTTP-EQUIV='REFRESH' CONTENT='0; URL=aanmelden2.php'>";
} else { $error_beschikbaar = '0'; }
if ($_POST['salaris'] == 'Maak uw keuze')
{
$error_salaris = '1';
echo "<meta HTTP-EQUIV='REFRESH' CONTENT='0; URL=aanmelden2.php'>";
} else { $error_salaris = '0'; }
if ($_POST['dienstverband'] == 'Maak uw keuze')
{
$error_dienstverband = '1';
echo "<meta HTTP-EQUIV='REFRESH' CONTENT='0; URL=aanmelden2.php'>";
} else { $error_dienstverband = '0'; }
if ($_POST['opleiding'] == 'Maak uw keuze')
{
$error_opleiding = '1';
echo "<meta HTTP-EQUIV='REFRESH' CONTENT='0; URL=aanmelden2.php'>";
} else { $error_opleiding = '0'; }
# if (empty($_POST['studierichting']))
# {
# $error_studierichting = '1';
# echo "<meta HTTP-EQUIV='REFRESH' CONTENT='0; URL=addwn2.php'>";
# } else { $error_studierichting = '0'; }
if (($_POST['werkervaring'] == 'Geen') && (!empty($_POST['werkervaringExtra'])))
{
$error_werkervaring = '1';
echo "<meta HTTP-EQUIV='REFRESH' CONTENT='0; URL=aanmelden2.php'>";
} else { $error_werkervaring = '0'; }
if (empty($_POST['ambitie']))
{
$error_ambitie = 1;
echo "<meta HTTP-EQUIV='REFRESH' CONTENT='0; URL=aanmelden2.php'>";
} else { $error_ambitie = 0; }
if (empty($_POST['motivatie']))
{
$error_motivatie = 1;
echo "<meta HTTP-EQUIV='REFRESH' CONTENT='0; URL=aanmelden2.php'>";
} else { $error_motivatie = 0; }
if (empty($_FILES['cv']['name']))
{
$error_document1 = 1;
echo "<meta HTTP-EQUIV='REFRESH' CONTENT='0; URL=aanmelden2.php'>";
} else { $error_document1 = 0; }
$document = $_FILES['cv']['name'];
$extension = substr($document, -3);
if ($extension != "doc")
{
$error_document2 = 1;
echo "<meta HTTP-EQUIV='REFRESH' CONTENT='0; URL=aanmelden2.php'>";
} else { $error_document2 = 0; }
$size = $_FILES['cv']['size'];
if ($size >= 153600)
{
$error_document3 = 1;
echo "<meta HTTP-EQUIV='REFRESH' CONTENT='0; URL=aanmelden2.php'>";
} else { $error_document3 = 0; }
session_register("standplaats", "uren", "werkdagen", "beschikbaar", "salarisExtra", "salaris", "dienstverband", "ambitie", "motivatie", "opleiding", "studierichting", "werkervaring", "werkervaringExtra", "document", "error_beroepsprofiel", "error_regio", "error_uren", "error_beschikbaar", "error_salaris", "error_dienstverband", "error_opleiding", "error_ambitie", "error_motivatie", "error_werkervaring", "error_document1", "error_document2", "error_document3");
if (($error_beroepsprofiel == 0) AND ($error_regio == 0) AND ($error_uren == 0) AND ($error_ambitie == 0) AND ($error_motivatie == 0) AND ($error_beschikbaar == 0) AND ($error_salaris == 0) AND ($error_dienstverband == 0) AND ($error_opleiding == 0) AND ($error_werkervaring == 0) AND ($error_document1 == 0) AND ($error_document2 == 0) AND ($error_document3 == 0))
{
$currentdatetime = strftime("%Y-%m-%d %H:%M:%S");
$_POST['ambitie'] = nl2br($_POST['ambitie']);
$_POST['motivatie'] = nl2br($_POST['motivatie']);
$data_source = "UPDATE wn_cvinfo SET standplaats = '$_POST[standplaats]', uren = '$_POST[uren]', werkdagen = '$_POST[werkdagen]', beschikbaar = '$_POST[beschikbaar]', salarisExtra = '$_POST[salarisExtra]', salaris = '$_POST[salaris]', dienstverband = '$_POST[dienstverband]', opleiding = '$_POST[opleiding]', studierichting = '$_POST[studierichting]', werkervaring = '$_POST[werkervaring]', werkervaringExtra = '$_POST[werkervaringExtra]', ambitie = '$_POST[ambitie]', motivatie = '$_POST[motivatie]' WHERE id = '$_SESSION[check_wn_aanmeld]'";
$data_result = mysql_query($data_source);
# File upload + id definieren
# $data_source = "SELECT id FROM wn_account WHERE email = '$_SESSION[check_wn_aanmeld]'";
# $data_result = mysql_query($data_source);
# $data = mysql_fetch_array($data_result);
copy($_FILES['cv']['tmp_name'], "../wn/docs/$id.doc");
$data_source = "UPDATE wn_document SET document = '$_POST[TekstInput]' WHERE id='$id'";
$data_result = mysql_query($data_source);
echo "<meta HTTP-EQUIV='REFRESH' CONTENT='0; URL=../content.php?page=aanmeldenTnx_wn'>";
# header("Location: content.php?page=aanmeldenTnx_wn");
}
} else {
#if (empty($beroepsprofiel)) { $beroepsprofiel = ''; }
#if (empty($regio)) { $regio = ''; }
if (empty($standplaats)) {$standplaats = ''; }
if (empty($uren)) { $uren = ''; }
if (empty($werkdagen)) { $werkdagen = ''; }
if (empty($beschikbaar)) {$beschikbaar = ''; }
if (empty($salarisExtra)) {$salarisExtra = ''; }
if (empty($salaris)) {$salaris = ''; }
if (empty($dienstverband)) {$dienstverband = ''; }
if (empty($opleiding)) {$opleiding = ''; }
if (empty($studierichting)) {$studierichting = ''; }
if (empty($werkervaring)) {$werkervaring = ''; }
if (empty($werkervaringExtra)) {$werkervaringExtra = ''; }
if (empty($ambitie)) {$ambitie = ''; }
if (empty($motivatie)) {$motivatie = ''; }
if (empty($error_beroepsprofiel)) { $error_beroepsprofiel = 0; }
if (empty($error_regio)) { $error_regio = 0; }
if (empty($error_uren)) { $error_uren = 0; }
if (empty($error_beschikbaar)) { $error_beschikbaar = 0; }
if (empty($error_salaris)) { $error_salaris = 0; }
if (empty($error_dienstverband)) { $error_dienstverband = 0; }
if (empty($error_opleiding)) { $error_opleiding = 0; }
if (empty($error_studierichting)) { $error_studierichting = 0; }
if (empty($error_werkervaring)) { $error_werkervaring = 0; }
if (empty($error_document1)) { $error_document1 = 0; }
if (empty($error_document2)) { $error_document2 = 0; }
if (empty($error_document3)) { $error_document3 = 0; }
if (empty($error_ambitie)) { $error_ambitie = 0; }
if (empty($error_motivatie)) { $error_motivatie = 0; }
?>
<link rel="stylesheet" type="text/css" href="../incl/stylesheet.css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_popupMsg(msg) { //v1.0
alert(msg);
}
//-->
</script>
<body leftmargin="33" topmargin="33">
<font size="3"><b>Aanmelden bij e-Webs - Stap 2</b></font><br>
<style type="text/css">
td {FONT-FAMILY:arial; FONT-SIZE:11px; text-align:justify}
input { font-family:arial; font-size:11px }
input.standard { width:211px }
input.werkervaring { width:131px }
select { font-family:arial; font-size:11px }
select.standard { width:211px }
input { font-family:arial; font-size:11px }
textarea { font-family:arial; font-size:11px; width:211px }
</style>
<form id="formulier" method="post" enctype="multipart/form-data">
<table border="0" align="center" cellpadding="0" cellspacing="2">
<tr>
<td height="20" colspan="3" bgcolor="DDDDDD"> <b>CV gegevens invoeren</b></td>
</tr>
<tr>
<td> </td>
<td valign="top"><div class=error id="error_beroepsprofiel" style="position:absolute; visibility:hidden;"> Selecteer a.u.b. uw beroepsprofiel. </div></td>
<td valign="top"> </td>
</tr>
<tr>
<td width="190" bgcolor="DDDDDD"> Beroepsprofiel <font color="FF0000">*</font><br>
<br> <br> </td>
<td width="215"><select class="standard" name="beroepsprofiel[]" size="3" multiple>
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
$beroepsprofiel_query = mysql_query("SELECT * FROM sel_wn_beroepsprofiel WHERE id = '$id'");
while($beroepsprofiel = mysql_fetch_array($beroepsprofiel_query)) {
echo "<option selected>$beroepsprofiel[beroepsprofiel]</option>"; }
$data_source = "SELECT * FROM lstberoepsprofiel ORDER BY beroepsprofiel";
$data_result = mysql_query($data_source);
while($data = mysql_fetch_array($data_result)) {
echo "<option>";
echo $data['beroepsprofiel'];
echo "</option>";
}
?>
$beroepsprofiel_query = mysql_query("SELECT * FROM sel_wn_beroepsprofiel WHERE id = '$id'");
while($beroepsprofiel = mysql_fetch_array($beroepsprofiel_query)) {
echo "<option selected>$beroepsprofiel[beroepsprofiel]</option>"; }
$data_source = "SELECT * FROM lstberoepsprofiel ORDER BY beroepsprofiel";
$data_result = mysql_query($data_source);
while($data = mysql_fetch_array($data_result)) {
echo "<option>";
echo $data['beroepsprofiel'];
echo "</option>";
}
?>
</select></td>
<td width="13" valign="top">
Code (php)
</td>
</tr>
<tr>
<td bgcolor="DDDDDD"> Regio <font color="FF0000">*</font><br> <br>
<br> </td>
<td><select name="regio[]" size="3" multiple class="standard">
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
$regio_query = mysql_query("SELECT * FROM sel_wn_regio WHERE id = '$id'");
while($regio = mysql_fetch_array($regio_query)) {
echo "<option selected>$regio[regio]</option>"; }
$data_source = "SELECT * FROM lstregio ORDER BY regio";
$data_result = mysql_query($data_source);
while($data = mysql_fetch_array($data_result)) {
echo "<option>";
echo $data['regio'];
echo "</option>";
}
?>
$regio_query = mysql_query("SELECT * FROM sel_wn_regio WHERE id = '$id'");
while($regio = mysql_fetch_array($regio_query)) {
echo "<option selected>$regio[regio]</option>"; }
$data_source = "SELECT * FROM lstregio ORDER BY regio";
$data_result = mysql_query($data_source);
while($data = mysql_fetch_array($data_result)) {
echo "<option>";
echo $data['regio'];
echo "</option>";
}
?>
</select> </td>
<td width="13" valign="top">
Code (php)
</td>
</tr>
<tr>
<td bgcolor="DDDDDD"> Gewenste standplaats</td>
<td><div class=error id="error_regio" style="position:absolute; visibility:hidden;"> Selecteer a.u.b. uw regio. </div>
<div class=error id="error_uren" style="position:absolute; visibility:hidden;"> Selecteer a.u.b. uw werkuren. </div>
<input name="standplaats" class='standard' type="text" value="">
</td>
<td width="13"> </td>
</tr>
<tr>
<td bgcolor="DDDDDD"> Uren per week <font color="FF0000">*</font></td>
<td><table width="211" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="102" bgcolor="#000066"> <select name="uren">
<option>Maak uw keuze</option>
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
# Haal gegevens MySQL dBase
$data_source = "SELECT * FROM lsturen";
$data_result = mysql_query($data_source);
while($data = mysql_fetch_array($data_result)) {
echo "<option";
if ($uren == $data['uren'])
{
echo " selected";
}
echo ">";
echo $data['uren'];
echo "</option>";
}
?>
# Haal gegevens MySQL dBase
$data_source = "SELECT * FROM lsturen";
$data_result = mysql_query($data_source);
while($data = mysql_fetch_array($data_result)) {
echo "<option";
if ($uren == $data['uren'])
{
echo " selected";
}
echo ">";
echo $data['uren'];
echo "</option>";
}
?>
</select> </td>
<td><div align="right">
<select name="werkdagen">
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
$data_source = "SELECT * FROM lstwerkdagen";
$data_result = mysql_query($data_source);
while($data = mysql_fetch_array($data_result)) {
echo "<option";
if ($werkdagen == $data['werkdagen'])
{
echo " selected";
}
echo ">";
echo $data['werkdagen'];
echo "</option>";
}
?>
$data_source = "SELECT * FROM lstwerkdagen";
$data_result = mysql_query($data_source);
while($data = mysql_fetch_array($data_result)) {
echo "<option";
if ($werkdagen == $data['werkdagen'])
{
echo " selected";
}
echo ">";
echo $data['werkdagen'];
echo "</option>";
}
?>
</select>
</div></td>
</tr>
</table></td>
<td width="13">
Code (php)
</td>
</tr>
<tr>
<td bgcolor="DDDDDD"> Beschikbaar <font color="FF0000">*</font></td>
<td><select class='standard' name="beschikbaar">
<option>Maak uw keuze</option>
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
# Haal gegevens MySQL dBase
$data_source = "SELECT * FROM lstbeschikbaar";
$data_result = mysql_query($data_source);
while($data = mysql_fetch_array($data_result)) {
echo "<option";
if ($beschikbaar == $data['beschikbaar'])
{
echo " selected";
}
echo ">";
echo $data['beschikbaar'];
echo "</option>";
}
?>
# Haal gegevens MySQL dBase
$data_source = "SELECT * FROM lstbeschikbaar";
$data_result = mysql_query($data_source);
while($data = mysql_fetch_array($data_result)) {
echo "<option";
if ($beschikbaar == $data['beschikbaar'])
{
echo " selected";
}
echo ">";
echo $data['beschikbaar'];
echo "</option>";
}
?>
</select> </td>
<td>
Code (php)
</td>
</tr>
<tr>
<td bgcolor="DDDDDD"> Huidige bruto jaarsalaris </td>
<td valign="top"><div class=error id="error_beschikbaar" style="position:absolute; visibility:hidden;"> Selecteer a.u.b. uw beschikbaarheid. </div>
<div class=error id="error_salaris" style="position:absolute; visibility:hidden;"> Selecteer a.u.b. uw gewenste jaarsalaris. </div>
<input class='standard' name="salarisExtra" type="text" value=''></td>
<td> </td>
</tr>
<tr>
<td bgcolor="DDDDDD"> Gewenst bruto jaarsalaris<font color="FF0000">
*</font></td>
<td><select class="standard" name="salaris">
<option>Maak uw keuze</option>
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
$data_source = "SELECT * FROM lstsalaris";
$data_result = mysql_query($data_source);
while($data = mysql_fetch_array($data_result)) {
echo "<option";
if ($salaris == $data['salaris'])
{
echo " selected";
}
echo ">";
echo $data['salaris'];
echo "</option>";
}
?>
$data_source = "SELECT * FROM lstsalaris";
$data_result = mysql_query($data_source);
while($data = mysql_fetch_array($data_result)) {
echo "<option";
if ($salaris == $data['salaris'])
{
echo " selected";
}
echo ">";
echo $data['salaris'];
echo "</option>";
}
?>
</select> </td>
<td width="13">
Code (php)
</td>
</tr>
<tr>
<td bgcolor="DDDDDD"> Dienstverband<font color="FF0000"> *</font></td>
<td><select class="standard" name="dienstverband">
<option>Maak uw keuze</option>
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
$data_source = "SELECT * FROM lstdienstverband";
$data_result = mysql_query($data_source);
while($data = mysql_fetch_array($data_result)) {
echo "<option";
if ($dienstverband == $data['dienstverband'])
{
echo " selected";
}
echo ">";
echo $data['dienstverband'];
echo "</option>";
}
?>
$data_source = "SELECT * FROM lstdienstverband";
$data_result = mysql_query($data_source);
while($data = mysql_fetch_array($data_result)) {
echo "<option";
if ($dienstverband == $data['dienstverband'])
{
echo " selected";
}
echo ">";
echo $data['dienstverband'];
echo "</option>";
}
?>
</select> </td>
<td width="13">
Code (php)
</td>
</tr>
<tr>
<td bgcolor="DDDDDD"> Hoogst afgeronde opleiding <font color="FF0000">*</font></td>
<td><select class="standard" name="opleiding">
<option>Maak uw keuze</option>
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
$data_source = "SELECT * FROM lstopleiding ORDER BY id DESC";
$data_result = mysql_query($data_source);
while($data = mysql_fetch_array($data_result)) {
echo "<option";
if ($opleiding == $data['opleiding'])
{
echo " selected";
}
echo ">";
echo $data['opleiding'];
echo "</option>";
}
?>
$data_source = "SELECT * FROM lstopleiding ORDER BY id DESC";
$data_result = mysql_query($data_source);
while($data = mysql_fetch_array($data_result)) {
echo "<option";
if ($opleiding == $data['opleiding'])
{
echo " selected";
}
echo ">";
echo $data['opleiding'];
echo "</option>";
}
?>
</select> </td>
<td width="13">
Code (php)
</td>
</tr>
<tr>
<td bgcolor="DDDDDD"> Afstudeer richting</td>
<td>
<div class=error id="error_dienstverband" style="position:absolute; visibility:hidden;"> Selecteer a.u.b. uw type dienstverband. </div>
<div class=error id="error_opleiding" style="position:absolute; visibility:hidden;"> Selecteer a.u.b. uw afgeronde opleiding. </div>
<div class=error id="error_werkervaring" style="position:absolute; visibility:hidden;"> Selecteer a.u.b. uw aantal jaren werkervaring. </div>
<div class=error id="error_studierichting" style="position:absolute; visibility:hidden;"> Voer a.u.b. uw studierichting in. </div>
<input class="standard" name="studierichting" type="text" maxlength="50" value="">
</td>
<td width="13">
Code (php)
</td>
</tr>
<tr>
<td bgcolor="DDDDDD"> Duur laatste relevante functie <font color="FF0000">*</font></td>
<td><table width="211" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="54"><select name="werkervaring">
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
$data_source = "SELECT * FROM lstwerkervaring";
$data_result = mysql_query($data_source);
while($data = mysql_fetch_array($data_result)) {
echo "<option";
if ($werkervaring == $data['werkervaring'])
{
echo " selected";
}
echo ">";
echo $data['werkervaring'];
echo "</option>";
}
?>
$data_source = "SELECT * FROM lstwerkervaring";
$data_result = mysql_query($data_source);
while($data = mysql_fetch_array($data_result)) {
echo "<option";
if ($werkervaring == $data['werkervaring'])
{
echo " selected";
}
echo ">";
echo $data['werkervaring'];
echo "</option>";
}
?>
</select> </td>
<td width="23" bgcolor="DDDDDD"><div align="center">als</div></td>
<td><div align="right">
<input name="werkervaringExtra" type="text" class="werkervaring" id="werkervaringExtra" value="" maxlength="50">
</div></td>
</tr>
</table></td>
<td width="13">
Code (php)
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"> </td>
<td width="13" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td bgcolor="DDDDDD"> Ambitie (<a href="#" onClick="MM_popupMsg('bijvoorbeeld: Hoe ziet u zichzelf over tien jaar')"><font color="0000FF">?</font></a>)<br>
<br>
<br>
</td>
<td>
<div class=error id="error_ambitie" style="position:absolute; visibility:hidden;"> Voer a.u.b. uw ambitie in. </div>
<textarea name="ambitie" rows="3" id="ambitie"></textarea></td>
<td width="13">
Code (php)
</tr>
<tr>
<td bgcolor="DDDDDD"> Motivatie (<a href="#" onClick="MM_popupMsg('bijvoorbeeld: Waarom bent u op zoek naar een nieuwe baan')"><font color=0000FF>?</font></a>)<br>
<br>
<br>
</td>
<td>
<div class=error id="error_motivatie" style="position:absolute; visibility:hidden;"> Voer a.u.b. uw motivatie in. </div>
<textarea name="motivatie" rows="3" id="motivatie"></textarea></td>
<td width="13">
Code (php)
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td bgcolor="DDDDDD"> Curriculum Vitae <font color="FF0000">*</font></td>
<div style="position:absolute; visibility: hidden;">
<textarea name="TekstInput"></textarea>
</div>
<td>
<div class=error id="error_document1" style="position:absolute; visibility:hidden;"> Voeg a.u.b. uw Curriculum Vitae toe. </div>
<div class=error id="error_document2" style="position:absolute; visibility:hidden;"> Voeg a.u.b. een Curriculum Vitae in Microsoft Word formaat toe. </div>
<div class=error id="error_document3" style="position:absolute; visibility:hidden;"> Het door u ingevoegde Curriculum Vitae is groter dan 150 KB. </div>
<input class="standard" OnClick"ReadFile" name="cv" type="file"> </td>
<td width="13">
Code (php)
1
2
3
4
5
6
7
2
3
4
5
6
7
<?php
if ($error_document1 == 1) { echo "<a href='#' onMouseOver=show('error_document1') onMouseOut=hide('error_document1')><img border=0 src='../img/error.gif'></a>"; } else {
if ($error_document2 == 1) { echo "<a href='#' onMouseOver=show('error_document2') onMouseOut=hide('error_document2')><img border=0 src='../img/error.gif'></a>"; } else {
if ($error_document3 == 1) { echo "<a href='#' onMouseOver=show('error_document3') onMouseOut=hide('error_document3')><img border=0 src='../img/error.gif'></a>"; }
}
}
?>
if ($error_document1 == 1) { echo "<a href='#' onMouseOver=show('error_document1') onMouseOut=hide('error_document1')><img border=0 src='../img/error.gif'></a>"; } else {
if ($error_document2 == 1) { echo "<a href='#' onMouseOver=show('error_document2') onMouseOut=hide('error_document2')><img border=0 src='../img/error.gif'></a>"; } else {
if ($error_document3 == 1) { echo "<a href='#' onMouseOver=show('error_document3') onMouseOut=hide('error_document3')><img border=0 src='../img/error.gif'></a>"; }
}
}
?>
</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td width="13"> </td>
</tr>
<tr>
<td><input name="submit" onClick="ReadFile" type="submit" value="Afronden >"></td>
<td><div align="right" class="style2"> </div></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td width="13"> </td>
</tr>
<tr>
<td> <font color="FF0000">* = verplicht in te vullen veld</font></td>
<td> </td>
<td> </td>
</tr>
</table>
</form>