Zoek Formulier
iemand enig id wat hier mis gaat ?
index.php
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
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
<?php
//hier word het body ingelezen
//hier word gekeken welke pagina is aangeroepen (?page=......)
if (isset($_SESSION['user']))
{
if(!empty($_GET['page']))
{
$pagina = $_GET['page'];
if($pagina == 'home')
{
include("pages/body.php");
unset($pagina);
} ....
//hier is een deel weggelaten
....}
else
{
include("pages/error.php");
unset($pagina);
}
}
else
{
include("pages/body.php");
}
}
else
{
include("pages/login.php");
}
?>
//hier word het body ingelezen
//hier word gekeken welke pagina is aangeroepen (?page=......)
if (isset($_SESSION['user']))
{
if(!empty($_GET['page']))
{
$pagina = $_GET['page'];
if($pagina == 'home')
{
include("pages/body.php");
unset($pagina);
} ....
//hier is een deel weggelaten
....}
else
{
include("pages/error.php");
unset($pagina);
}
}
else
{
include("pages/body.php");
}
}
else
{
include("pages/login.php");
}
?>
pages/body.php
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
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
<?php
if(isset($_SESSION['user']))
{
?>
<table width="100%" height="100%" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<table width="100%" height="100" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="33%" align="center">
<?php include("pages/overz/zoek.php"); ?>
</td>
<td width="34%">
<?php include("pages/overz/center.php"); ?>
</td>
<td width="33%">
<?php include("pages/overz/laatste.php"); ?>
</td>
</tr>
</table>
<table width="100%" height="100" cellpadding="0" cellspacing="0" border="1">
<tr>
<td width="100%" height="100%">
<div width="100%" height="500">
<?php include("pages/overz/resultaat.php");?>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<?php
}
else
{
header('location: /algemeen_beheer');
}
?>
if(isset($_SESSION['user']))
{
?>
<table width="100%" height="100%" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<table width="100%" height="100" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="33%" align="center">
<?php include("pages/overz/zoek.php"); ?>
</td>
<td width="34%">
<?php include("pages/overz/center.php"); ?>
</td>
<td width="33%">
<?php include("pages/overz/laatste.php"); ?>
</td>
</tr>
</table>
<table width="100%" height="100" cellpadding="0" cellspacing="0" border="1">
<tr>
<td width="100%" height="100%">
<div width="100%" height="500">
<?php include("pages/overz/resultaat.php");?>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<?php
}
else
{
header('location: /algemeen_beheer');
}
?>
pages/overz/zoek.php
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
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
<form method="post" action="../algemeen_beheer?page=home" name="zoeken">
<table width="300" cellpadding="0" cellspacing="0">
<tr>
<td width="200">
<input type="text" name="zoek" />
</td>
<td width="100" align="right">
<input type="submit" name="submit" value="Zoek" />
</td>
</tr>
</table>
<table width="300" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3">
<input type="checkbox" name="Filter" value="1"/> Filters
</td>
</tr>
<tr>
<td align="center" colspan="3">
Geaccordeerd
</td>
</tr>
<tr>
<td width="33%" checked>
<input type="radio" name="accord" value="2" checked/> Bijde
</td>
<td width="34%">
<input type="radio" name="accord" value="-1"/> Nee
</td>
<td width="33%">
<input type="radio" name="accord" value="0"/> Ja
</td>
</tr>
<tr>
<td colspan="3">
<select name="cat">
<option value="1">User</option>
<option value="2">Datum</option>
<option value="3">Term</option>
<option value="4">Omschrijving</option>
</select>
</td>
</tr>
</table>
</form>
<table width="300" cellpadding="0" cellspacing="0">
<tr>
<td width="200">
<input type="text" name="zoek" />
</td>
<td width="100" align="right">
<input type="submit" name="submit" value="Zoek" />
</td>
</tr>
</table>
<table width="300" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3">
<input type="checkbox" name="Filter" value="1"/> Filters
</td>
</tr>
<tr>
<td align="center" colspan="3">
Geaccordeerd
</td>
</tr>
<tr>
<td width="33%" checked>
<input type="radio" name="accord" value="2" checked/> Bijde
</td>
<td width="34%">
<input type="radio" name="accord" value="-1"/> Nee
</td>
<td width="33%">
<input type="radio" name="accord" value="0"/> Ja
</td>
</tr>
<tr>
<td colspan="3">
<select name="cat">
<option value="1">User</option>
<option value="2">Datum</option>
<option value="3">Term</option>
<option value="4">Omschrijving</option>
</select>
</td>
</tr>
</table>
</form>
pages/overz/resultaat.php
Code (php)
Gewijzigd op 01/01/1970 01:00:00 door Jasper
<form method="post" action="../algemeen_beheer?page=home" name="zoeken">