Kalender - Agenda (met mysql)
Waarde interetnerds, surfjeanetten en ander maatschappelijk verstoot !
Na zoveel scriptjes gebruikt te hebben van deze site wast dringend tijd dak ook es een scriptje post-te.
Voor dit script heb ik mij gebaseerd opt script "Europeese kalender" van HaasOnline (http://www.phphulp.nl/php/scripts/1/333/) en hebt een bitteke uitgebouwd; een mooie layout, koppeling aan een database, ...
Tmaakt gebruik van een mysql database, met de volgende instelling:
CREATE TABLE `agenda` (
`id` int(11) NOT NULL auto_increment,
`date` varchar(10) NOT NULL default '',
`genre` text NOT NULL,
`titre` text NOT NULL,
`details` text NOT NULL,
UNIQUE KEY `id` (`id`)
) TYPE=MyISAM PACK_KEYS=0;
Voor de verjaardagen gebruik ik een andere database, nl. de members database, maar vermits die in mijn hele site verwerkt zit kan ik die hier moeilijk posten. Maar kveronderstel dat't ni zo moeilijk is voor de phpfanaten om die ff te koppelen aan uw eigen ledensysteem.
M'n excuses voort frans, maar kheb het nu eenmaal geschreven voor een waalse studentenvereniging.
Alle bemerkingen, commentaar, reacties zijn welkom.
Voor vragen moogt ge altijd mailen!
**** Aanpassing ****
Voila, kheb het scriptje wat vertaald naart nederlands.
Hier mss nog enkele nuttige woordjes:
jour = dag
mois = maand
annee = jaar
nom = naam
prénom = voornaam
section = afdeling / studierichting
annif = anniversaire = verjaardag
jour férié = vrije dag / feestdag
Dan mss nog een kleine uitleg bij het verschil tss de $querytris en de $queryquattro:
De $queryquattro wordt gebruikt voor de feestdagen die elk jaar op dezelfde datum vallen (nieuwjaar, kerstmis, ...)
De $querytris wordt gebruikt voor de feestdagen die niet elk jaar op dezelde datum vallen (pasen, pinksteren, ...)
En dan voor de gemakkelijkheid toch even de structuur van mijn ledensysteem:
CREATE TABLE `members` (
`id` int(11) NOT NULL auto_increment,
`login` text NOT NULL,
`pass` text NOT NULL,
`nom` text NOT NULL,
`prenom` text NOT NULL,
`email` text NOT NULL,
`section` text NOT NULL,
`annif` varchar(5) NOT NULL default '',
UNIQUE KEY `id` (`id`)
) TYPE=MyISAM PACK_KEYS=0;
Voorbeeld: http://www.webkot.be/~cerclevt/agenda.php
Gesponsorde koppelingen
PHP script bestanden
Er zijn 162 reacties op 'Kalender agenda met mysql'
Gesponsorde koppelingen
Have fun with it !
(en trouwens Wes : het is "Tu es fou!" , twee fouten in drie woorden, proficiat ;-) )
Warning: Access denied for user: '[email protected]' (Using password: YES) in
c:\phpdev\www\agenda.php on line 69
Warning: MySQL Connection Failed: Access denied for user: '[email protected]'
(Using password: YES) in c:\phpdev\www\agenda.php on line 69
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link
resource in c:\phpdev\www\agenda.php on line 69
Connectie met de database mislukt.
Vraag dus: wat moet er gewijzigd worden om het werkend te krijgen? (Het ligt zeker niet aan het frans:-) )
groet, newbe
hoi ik, probeer het eens zonder wachtwoord. als dat werkt kan je het weer instellen.
voeg in de activok.php gewoon hetvolgende toe (let wel op dat dit na de
$titre = addslashes($_POST['titre']);
$details = addslashes($_POST['details']);
wordt geplaatst).
dus voeg hetvolgende toe:
$titre = str_replace("boeking", "<b>boeking</b>", "$titre");
$details = str_replace("boeking", "<b>boeking</b>", "$details");
Dat is dus deze lijn <center><table width="350" height="350"><tr><td height="15" style="padding: 0px; margin: 0px; font: 14px Verdana, Arial; font-weight: normal; background-color: #FFFFFF; color: #AAAAAA; border: solid 1px #AAAAAA;">
ik snap niet hoe je aan zoveel lijnen komt. Het bestand aganda.php is het grootste en komt bij mij niet verder dan 400 zoveel lijnen. Misschien is het handig erbij te zetten in welk bestand je bezig bent. Heb je niet misschien alles in één bestand gezet, ipv 3 losse (agenda.php, jour.php en activok.php)??
Groet Raúl
Ik heb wel een edit/delete functie aan toevoegd
Ook worden alle activiteiten die zijn toegevoegd in een lijstje waar je de activiteiten voor de komende drie maanden ziet
Momenteel bezig de code aan het uitpluizen, wat \n's en \t's toevoegen, en ook wat commentaar bijgeschreven
Dit plaats je in agenda.php (ik heb wel enkele strings aangepast, dus het zou kunnen dat je dat hier weer moet veranderen)
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
//verwijderen
if(isset($_GET['verwijder']) === true)
{
$id = $_GET['verwijder'];
$delete = "DELETE FROM agenda WHERE id ='$id'";
$query = mysql_query($delete) OR die(msql_error());
header('location:?page=agenda&maand=' . $_GET['maand'] . '&jaar=' . $_GET['jaar']);
}
//data weergeven voor komende maanden
$sql = "SELECT id,date,genre,titre,details FROM agenda ORDER BY date ASC";
$res = mysql_query($sql);
if (mysql_num_rows($res) >= 1)
{
echo "Activiteiten voor de komende maanden:\n";
echo "<ul>\n";
while ($row = mysql_fetch_array($res))
{
$datum = $row['date'];
list($jaar,$maand,$dag)=explode("-",$datum);
if (($datum >= date("Y-m-d")) and ($maand < (date("m")+ 3))) {
echo
//mail & naam & datum
"\t<li>" . $dag . "/" . $maand . "/" . $jaar . " : " . $row['titre'] ;
//verwijderlinks
echo "<a style=\"color:#FF0000" . "\" href=\"?page=agenda&maand=" . $maand . "&jaar=" . $jaar . "&verwijder=" . $row['id'] . "\">" . "Verwijder</a>
<a style=\"color:#FF0000" . "\" href=\"?page=dag&dag=" . $dag . "&maand=" . $maand . "&jaar=" . $jaar . "&aanpassen=" . $row['id'] . "\">" . "Aanpassen</a></li>\n";
}
}
echo "</ul>\n";
}
else
{
echo "Er zijn nog geen activiteiten toegevoegd.";
}
?>
In activok:
2
3
4
5
6
7
8
9
10
11
12
13
14
15
if(isset($_POST['aanpassen']))
{
$details = addslashes($_POST['details']);
$details = nl2br($details);
$titel = addslashes($_POST['titel']);
$sql = "UPDATE agenda SET details='$details', titre='$titel' WHERE id='$id'";
mysql_query($sql) or die (mysql_error());
header('location:?page=agenda&maand=' . $maand . '&jaar=' . $jaar);
}
?>
in dag:
2
3
4
5
6
7
8
9
//aanpassen: formulier weergeven
if(isset($_GET['aanpassen']) === true){
$id = $_GET['aanpassen'];
$Editquery = "SELECT titre,details FROM agenda WHERE id = $id";
$edit = mysql_query($Editquery) or die(mysql_error());
$resultaat = mysql_fetch_array($edit);
?>
<form id="Aanpas" method="post" action="">
<h2>Aanpassen</h2>
<table>
<tr>
<td valign="top">Datum:</td>
<td></td>
<tr>
<tr>
<td valign="top">Titel:</td>
<td><input type="text" maxlength="40" name="titel" style="width:320px;background-color:#D0D0D0; border:1px solid;" value ="
2
3
4
5
6
$text = $resultaat['titre'];
echo stripslashes(str_replace("<br />","",$text));
?>
<tr>
<td valign="top">Details :</td>
<td><textarea cols="50" rows="10" style="background-color:#D0D0D0; border:1px solid;" name="details"></textarea> <br /><br /><center>
<input type="submit" name="submit" value="Aanpassen" style="border:1px solid;" />
<input name="reset" type="reset" style="border:1px solid;" value="Wissen" />
<input type="hidden" name="aanpassen" />
</center></td>
</tr></table>
</form>
Hopelijk wat duidelijk, indien niet post ik gans het script wel in een linkje
ps woffer bedankt voor je reactie members aangemaakt en ingevuld. werkt nu
Is er ook een php script om leden in te vullen? <---- newbie
Groet
Alvast bedankt
Mercikes !
http://www.cursistennet.nl/~ldblankenedu/alg-onwd/index.php
Dan uiteraard boveaan de rechterkant de link agenda.
Groetjes, lissy
Ik zou graag willen dat alleen ik 'activiteiten' kan toevoegen en niet gasten. Hoe kan ik het toevoeg-formulier uit jour.php weghalen en b.v. in een speciale beveiligde pagina doen zoals b.v. kalender-admin.php ?
Alvast bedankt voor reactie =)
Dit kunt ge simpelweg doen door het deel "een activiteit toevoegen" van jour.php in een if-funktie te plaatsen (vb: if($gebruiker == "admin") ).
Als ge liever geen membersysteem hebt kunt ge hetvolgende doen:
Ge zet opnieuw het deel "een activiteit toevoegen" van jour.php in een if-funktie, maar dit keer zet ge de if-funktie afhankelijk van een GET-variabele:
if($_GET['gebruiker'] == "admin") {
Als ge dan op een dag klikt opent hij jour.php zonder het deel "een activiteit toevoegen". Als ge nu gewoon achter de url &gebruiker=admin (om de get-variabele 'gebruiker' te definiëren) toevoegt en de pagina herlaadt kunt ge gewoon een activiteit toevoegen.
Het is niet zo'n mooie manier, maar het werkt wel perfect. Er zijn mooiere manieren, maar dit vraagt een beetje meer programmeerwerk...
Zou je alsjeblieft het laatste deel van het aangespaste script hier als reactie kunnen posten :)? Dus vanaf:
<font style="color:#0D4E95; font-family: Verdana, Arial, Helvetica, sans-serif;"><b>
Een activiteit toevoegen:
</b></font>
alvast bedankt =)
Have fun with it !
jour.php
---------
2
3
header("Cache-Control: no-cache, must-revalidate, no-store\nPragma: no-cache\n");
?>
<HTML>
<HEAD>
<TITLE>Agenda</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body,td,p,select,input,textarea {
color: #333333;
font-size: 11px;
font-family: Verdana, Arial, Helvetica, sans-serif;
margin:0,0,0,0;
}
a{
color: #333333;
font-size: 11px;
font-family: Verdana, Arial, Helvetica, sans-serif;
text-decoration:underline;
}
.style1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #0D4E95;
font-weight: bold;
padding-bottom:0px;
padding-top:0px;
}
a.topnav {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #333333;
font-weight: bold;
text-decoration:none;
}
a.topnav:hover {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #333333;
font-weight: bold;
text-decoration:underline;
}
.sidered {color: #0D4E95; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif;}
.side {color: #333333; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif;}
a.sideredlinks{color: #0D4E95; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold;text-decoration:underline; }
h1 {
font-size: 18px;
color: #0D4E95;
}
.base {font-size: 10px;margin-left:28px;}
td.kalalg { padding: 0px; margin: 0px; center: top; font: 11px Verdana, Arial; font-weight: bold; background-color: #FFFFFF; color: #0000CC; line-height: 16px; }
td.kaltit { padding: 0px; margin: 0px; center: top; font: 11px Verdana, Arial; font-weight: normal; background-color: #FFFFFF; color: #AAAAAA; border-bottom: solid 1px #AAAAAA;}
td.kaltexr { width: 117px; padding: 0px; height: 100px; cursor: hand; margin: 0px; font: 11px Verdana, Arial; font-weight: normal; color: #0D4E95; }
-->
</style>
</HEAD>
<body>
<center>
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
$jour = $_GET['jour'];
$mois = $_GET['mois'];
$annee = $_GET['annee'];
$jds = date("w", mktime(0, 0, 0, $mois, $jour, $annee));
$arrayjour = array(
"Zondag",
"Maandag",
"Dinsdag",
"Woensdag",
"Donderdag",
"Vrijdag",
"Zaterdag"
);
$jour_nom = $arrayjour[$jds];
$arraymois = array(
"januari",
"februari",
"maart",
"april",
"mei",
"juni",
"juli",
"augustus",
"september",
"oktober",
"november",
"december"
);
$mois_nom = $arraymois[$mois-1];
// Mysql connectie
$user = "user";
$dbpass = "pass";
$host = "localhost";
$dbdb = "database";
if (!mysql_select_db($dbdb, mysql_connect($host, $user, $dbpass)))
{
echo "Verbinding met de database mislukt.";
exit();
}
?>
<h1>Agenda</h1><br>
<center><table width="350" height="350"><tr><td height="15" style="padding: 0px; margin: 0px; font: 14px Verdana, Arial; font-weight: normal; background-color: #FFFFFF; color: #AAAAAA; border: solid 1px #AAAAAA;">
</td></tr>
<tr><td bgcolor="#CDD2D9" valign="top" style="padding: 5px; border: solid 1px #AAAAAA;">
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
$querytris="SELECT titre FROM agenda WHERE date='$jour/$mois/$annee' and genre='jour férié' ORDER BY id";
$resulttris=mysql_query($querytris) or die(mysql_error());
if (mysql_num_rows($resulttris) >= 1)
{
echo "<font style=\"color:#404040;\"><center><b>";
while ($rowtris = mysql_fetch_array($resulttris))
{
echo "".$rowtris['titre']."";
}
echo "</b></center></font><br>";
}
$queryquattro="SELECT titre FROM agenda WHERE date='$jour/$mois' and genre='jour férié' ORDER BY id";
$resultquattro=mysql_query($queryquattro) or die(mysql_error());
if (mysql_num_rows($resultquattro) >= 1)
{
echo "<font style=\"color:#404040;\"><center><b>";
while ($rowquattro = mysql_fetch_array($resultquattro))
{
echo "".$rowquattro['titre']."";
}
echo "</b></center></font><br>";
}
$query="SELECT login,nom,prenom,email,section FROM members WHERE annif='$jour/$mois' ORDER BY id";
$result=mysql_query($query) or die(mysql_error());
if (mysql_num_rows($result) >= 1)
{
echo "<font class=\"sidered\"><b>Verjaardag:</b></font><br>";
while ($row = mysql_fetch_array($result))
{
echo "<table><tr><td style=\"padding-left: 15px;\">";
echo "<font class=\"sidered\">» Verjaardag van ".$row['login']."</font><br>";
echo "<table><tr><td style=\"padding-left: 15px;\">".$row['prenom']." ".$row['nom']."<br>";
echo "Afdeling: ".$row['section']."<br>";
echo "Email: ".$row['email']."</td></tr></table></td></tr></table>";
}
echo "<br>";
}
echo "<font class=\"sidered\"><b>Activiteiten:</b></font><br>";
$querybis="SELECT titre,details FROM agenda WHERE date='$jour/$mois/$annee' and genre='activité' ORDER BY id";
$resultbis=mysql_query($querybis) or die(mysql_error());
if (mysql_num_rows($resultbis) >= 1)
{
while ($rowbis = mysql_fetch_array($resultbis))
{
echo "<table><tr><td style=\"padding-left: 15px;\">";
echo "<font class=\"sidered\">» ".$rowbis['titre']."</font><br>";
echo "<table><tr><td style=\"padding-left: 15px;\">".$rowbis['details']."";
echo "</td></tr></table></td></tr></table>";
}
echo "<br>";
}
else
{
echo "<table><tr><td style=\"padding-left: 15px;\">";
echo "Geen activiteiten<br></td></tr></table>";
}
?>
</td></tr>
<tr><td bgcolor="white" align="right" style="border:0px;">
</td></tr>
</table>
</center>
</body>
</html>
activok.php
--------------
<HTML>
<HEAD>
<TITLE>Agenda</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body,td,p,select,input,textarea {
color: #333333;
font-size: 11px;
font-family: Verdana, Arial, Helvetica, sans-serif;
margin:0,0,0,0;
}
a{
color: #333333;
font-size: 11px;
font-family: Verdana, Arial, Helvetica, sans-serif;
text-decoration:underline;
}
.style1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #0D4E95;
font-weight: bold;
padding-bottom:0px;
padding-top:0px;
}
a.topnav {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #333333;
font-weight: bold;
text-decoration:none;
}
a.topnav:hover {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #333333;
font-weight: bold;
text-decoration:underline;
}
.sidered {color: #0D4E95; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif;}
.side {color: #333333; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif;}
a.sideredlinks{color: #0D4E95; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold;text-decoration:underline; }
h1 {
font-size: 18px;
color: #0D4E95;
}
.base {font-size: 10px;margin-left:28px;}
td.kalalg { padding: 0px; margin: 0px; center: top; font: 11px Verdana, Arial; font-weight: bold; background-color: #FFFFFF; color: #0000CC; line-height: 16px; }
td.kaltit { padding: 0px; margin: 0px; center: top; font: 11px Verdana, Arial; font-weight: normal; background-color: #FFFFFF; color: #AAAAAA; border-bottom: solid 1px #AAAAAA;}
td.kaltexr { width: 117px; padding: 0px; height: 100px; cursor: hand; margin: 0px; font: 11px Verdana, Arial; font-weight: normal; color: #0D4E95; }
-->
</style>
</HEAD>
<body>
<center>
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// mysql connectie
$user = "user";
$dbpass = "pass";
$host = "localhost";
$dbdb = "database";
$jour = $_GET['jour'];
$mois = $_GET['mois'];
$annee = $_GET['annee'];
if (!mysql_select_db($dbdb, mysql_connect($host, $user, $dbpass)))
{
echo "Verbinding met de database mislukt.";
exit();
}
if ($_POST['titre'])
{
$titre = addslashes($_POST['titre']);
$details = addslashes($_POST['details']);
$details = nl2br($details);
$sql = "INSERT INTO agenda SET id = '', titre = '$titre', details = '$details', date = '$jour/$mois/$annee', genre = 'activité'";
mysql_query($sql) or die (mysql_error());
?>
<h1>Activiteit toegevoegd</h1>
Uw activiteit werd succesvol toegevoegd!
<font style="color:#0D4E95; font-family: Verdana, Arial, Helvetica, sans-serif;"><b>
Een activiteit toevoegen:
</b></font>
<form action="" method="post">
<table>
<tr>
<td valign="top">Datum:</td>
<td></td>
<tr>
<tr>
<td valign="top">Titel:</td>
<td><input type="text" maxlength="40" name="titre" style="width:320px;background-color:#D0D0D0; border:1px solid;"></td>
<tr>
<td valign="top">Details :</td>
<td><TEXTAREA name="details" cols="50" rows="10" style="background-color:#D0D0D0; border:1px solid;"></textarea><br><br><center><input type="submit" name="envoyer" value="Versturen" style="border:1px solid;"> <input type="reset" value="Wissen" style="border:1px solid;"></center></td>
</tr></table>
<h1>Error</h1>
Paswoord niet correct
<font style="color:#0D4E95; font-family: Verdana, Arial, Helvetica, sans-serif;"><b>
Aanmelden als administrator:
</b></font>
<form action="" method="post">
<table>
<tr>
<td valign="top">Paswoord:</td>
<td>
<input type="text" maxlength="40" name="pass" style="width:70px;background-color:#D0D0D0; border:1px solid;">
<br><br><center><input type="submit" name="envoyer" value="Versturen" style="border:1px solid;">
</td>
</tr>
</table>
</center>
</form>
</center>
</body>
</html>
Probeer zelf maar even:
http://takhavo.ta.funpic.org/agenda.php > Password is nog het zelfde, zodra probleem is verholpen verander ik het...
Alvast bedankt =)
Hier nog een site waar jouw agenda ook staat en werkt :-)
http://www.lissydesign.info
De site is nog volledig in opbouw. Vandaag alles eraf gehaald en wat er thans staat is vandaag door me gebouwd :-)
BEDANKT voor je snelle reactie voor het maken van de naar mijn smaak verbetering wanneer je slechts door 1 persoon de toevoegingen wenst te laten verrichten.
Vriendelijke groet, lissy
Zoals iedereen weet is een normale schoolweek een week van maandag t/m vrijdag en zijn zaterdagen en zondagen vrije dagen waarop geen les wordt gegeven.
Nu heb ik op http://takhavo.ta.funpic.org/agenda de zondagen al oranje gekregen, nu wil ik graag de zaterdagen ook oranje, maar hoe krijg ik dat voor me kaar :-)? Is dat weer een aanpassing in het script, zoja wat moet ik veranderen?
Alvast bedankt O:-)
agenda.php
--------------
2
3
header("Cache-Control: no-cache, must-revalidate, no-store\nPragma: no-cache\n");
?>
<HTML>
<HEAD>
<TITLE>Agenda</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body,td,p,select,input,textarea {
color: #333333;
font-size: 11px;
font-family: Verdana, Arial, Helvetica, sans-serif;
margin:0,0,0,0;
}
a{
color: #333333;
font-size: 11px;
font-family: Verdana, Arial, Helvetica, sans-serif;
text-decoration:underline;
}
.style1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #0D4E95;
font-weight: bold;
padding-bottom:0px;
padding-top:0px;
}
a.topnav {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #333333;
font-weight: bold;
text-decoration:none;
}
a.topnav:hover {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #333333;
font-weight: bold;
text-decoration:underline;
}
.sidered {color: #0D4E95; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif;}
.side {color: #333333; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif;}
a.sideredlinks{color: #0D4E95; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold;text-decoration:underline; }
h1 {
font-size: 18px;
color: #0D4E95;
}
.base {font-size: 10px;margin-left:28px;}
td.kalalg { padding: 0px; margin: 0px; center: top; font: 11px Verdana, Arial; font-weight: bold; background-color: #FFFFFF; color: #0000CC; line-height: 16px; }
td.kaltit { padding: 0px; margin: 0px; center: top; font: 11px Verdana, Arial; font-weight: normal; background-color: #FFFFFF; color: #AAAAAA; border-bottom: solid 1px #AAAAAA;}
td.kaltexr { width: 117px; padding: 0px; height: 100px; cursor: hand; margin: 0px; font: 11px Verdana, Arial; font-weight: normal; color: #0D4E95; }
-->
</style>
</HEAD>
<body>
<center>
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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
// Connection mysql
$user = "user";
$dbpass = "pass";
$host = "localhost";
$dbdb = "database";
if (!mysql_select_db($dbdb, mysql_connect($host, $user, $dbpass)))
{
echo "Connectie met de database mislukt.";
exit();
}
echo "<table width=\"200\">\n";
echo "<tr><td class=\"kalalg\">";
if($_GET['thismonth'] != "" and $_GET['thisyear'] != "") {
$this_month = $_GET['thismonth'];
$this_year = $_GET['thisyear'];
if ($this_month == 13) {
$this_month = 1;
$this_year = $this_year + 1;
}
elseif ($this_month == 0)
{
$this_month = 12;
$this_year = $this_year - 1;
}
else
{
$this_month = $this_month;
}
}
else {
$this_month = date("n");
$this_year = date("Y");
}
$arraymonth = array(
"Januari",
"Februari",
"Maart",
"April",
"Mei",
"Juni",
"Juli",
"Augustus",
"September",
"Oktober",
"November",
"December"
);
$month_name = $arraymonth[$this_month-1];
/* Navigation */
$last_month = $this_month - 1;
$next_month = $this_month + 1;
echo "<center>";
echo "<table width=\"800\"><tr><td align=\"left\" width=\"200\">\n";
echo "<a href=\"agenda.php?thismonth=$last_month&thisyear=$this_year\" style=\"color:#0D4E95; font-family: Verdana, Arial, Helvetica, sans-serif;\"><b>« Vorige</b></a>";
echo "</td><td align=\"center\" width=\"400\">";
echo "<h1>$month_name $this_year</h1>";
echo "</td><td align=\"right\" width=\"200\">";
echo "<a href=\"agenda.php?thismonth=$next_month&thisyear=$this_year\" style=\"color:#0D4E95; font-family: Verdana, Arial, Helvetica, sans-serif;\"><b>Volgende »</b></a>";
echo "</td></tr></table>";
echo "</center>";
/* Titels van de kalender */
echo "<table width=\"820\" cellspacing=\"1\" cellpadding=\"0\" style=\"border: solid #AAAAAA 1px;\">\n";
echo "<td class=\"kaltit\" height=\"5\" style=\"text-align: center; border-right: solid #AAAAAA 1px;\">Maandag</td>";
echo "<td class=\"kaltit\" height=\"5\" style=\"text-align: center; border-right: solid #AAAAAA 1px;\">Dinsdag</td>";
echo "<td class=\"kaltit\" height=\"5\" style=\"text-align: center; border-right: solid #AAAAAA 1px;\">Woensdag</td>";
echo "<td class=\"kaltit\" height=\"5\" style=\"text-align: center; border-right: solid #AAAAAA 1px;\">Donderdag</td>";
echo "<td class=\"kaltit\" height=\"5\" style=\"text-align: center; border-right: solid #AAAAAA 1px;\">Vrijdag</td>";
echo "<td class=\"kaltit\" height=\"5\" style=\"text-align: center; border-right: solid #AAAAAA 1px;\">Zaterdag</td>";
echo "<td class=\"kaltit\" height=\"5\" style=\"text-align: center;\">Zondag</td>";
echo "</td></tr>";
/* De maand berekenen */
$first_day = date("w", mktime(0, 0, 0, $this_month, 1, $this_year));
$total_days = date("t", mktime(0, 0, 0, $this_month, 1, $this_year));
$week_num = 1;
$day_num = 1;
$the_day = " ";
/* Het aantal weken overlopen (primaire teller in het proces) */
while ($week_num <= 6) {
echo "<tr>\n";
/* Het aantal weken overlopen (secundaire teller) */
for ( $i = 1; $i <= 5; $i++ ) {
if ($week_num == 1) {
if ($i < $first_day)
$the_day = " ";
else if ($i == $first_day) {
$the_day = 1;
}
} else {
if ($the_day > $total_days)
$the_day = " ";
}
/* De dagen weergeven */
if ($the_day != " ")
{
if ($the_day == date(j) and $this_month == date("n") and $this_year == date("Y"))
{
echo "<td valign=\"top\" class=\"kaltexr\" onclick=\"window.location.href='jour.php?jour=$the_day&mois=$this_month&annee=$this_year'\" onMouseOver=\"this.style.backgroundColor='#FEFFBF';\" onMouseOut=\"this.style.backgroundColor='#FEFF97'\" bgcolor=#FEFF97><b>$the_day</b><br>";
}
else
{
echo "<td valign=\"top\" class=\"kaltexr\" onclick=\"window.location.href='jour.php?jour=$the_day&mois=$this_month&annee=$this_year'\" onMouseOver=\"this.style.backgroundColor='#E9ECEF';\" onMouseOut=\"this.style.backgroundColor='#CDD2D9'\" bgcolor=#CDD2D9><b>$the_day</b><br>";
}
$querytris="SELECT titre FROM agenda WHERE date='$the_day/$this_month/$this_year' and genre='jour férié' ORDER BY id";
$resulttris=mysql_query($querytris) or die(mysql_error());
if (mysql_num_rows($resulttris) >= 1)
{
echo "<font style=\"color:#404040; font-size:90%;\"><center><b>";
while ($rowtris = mysql_fetch_array($resulttris))
{
echo "".$rowtris['titre']."";
}
echo "</b></center></font><br>";
}
$queryquattro="SELECT titre FROM agenda WHERE date='$the_day/$this_month' and genre='jour férié' ORDER BY id";
$resultquattro=mysql_query($queryquattro) or die(mysql_error());
if (mysql_num_rows($resultquattro) >= 1)
{
echo "<font style=\"color:#404040;font-size:90%;\"><center><b>";
while ($rowquattro = mysql_fetch_array($resultquattro))
{
echo "".$rowquattro['titre']."";
}
echo "</b></center></font><br>";
}
$query="SELECT login FROM members WHERE annif='$the_day/$this_month' ORDER BY id";
$result=mysql_query($query) or die(mysql_error());
if (mysql_num_rows($result) >= 1)
{
echo "<font style=\"sidered\" style=\"font-size:90%;\">Verjaardag:</font>";
echo "<br><table padding=\"0\" spacing=\"0\" style=\"margin-left: 2px; line-height: 60% ;\">";
while ($row = mysql_fetch_array($result))
{
echo "<tr><td><font style=\"color: black; font-size:90%;\">» ".$row['login']."</font></td></tr>";
}
echo "</table>";
}
$querybis="SELECT titre FROM agenda WHERE date='$the_day/$this_month/$this_year' and genre='activité' ORDER BY id";
$resultbis=mysql_query($querybis) or die(mysql_error());
if (mysql_num_rows($resultbis) >= 1)
{
echo "<font style=\"sidered\" style=\"font-size:90%;\">Activiteiten:</font>";
echo "<br><table padding=\"0\" spacing=\"0\" style=\"margin-left: 2px; line-height: 60% ;\">";
while ($rowbis = mysql_fetch_array($resultbis))
{
echo "<tr><td><font style=\"color: black; font-size:90%;\">» ".$rowbis['titre']."</font></td></tr>";
}
echo "</table>";
}
echo "</td>";
}
else
{
echo "<td valign=\"top\" bgcolor=\"#DFDFDF\"></td>";
}
/* De volgende dag berekenen */
if ($the_day != " ")
$the_day++;
}
if ($week_num == 1) {
if ($first_day == 6) {
$the_day = 1;
if ($the_day == date(j) and $this_month == date("n") and $this_year == date("Y"))
{
echo "<td valign=\"top\" class=\"kaltexr\" onclick=\"window.location.href='jour.php?jour=$the_day&mois=$this_month&annee=$this_year'\" onMouseOver=\"this.style.backgroundColor='#FEFFBF';\" onMouseOut=\"this.style.backgroundColor='#FEFF97'\" bgcolor=#FEFF97><b>$the_day</b><br>";
}
else
{
echo "<td valign=\"top\" class=\"kaltexr\" onclick=\"window.location.href='jour.php?jour=$the_day&mois=$this_month&annee=$this_year'\" onMouseOver=\"this.style.backgroundColor='#E9ECEF';\" onMouseOut=\"this.style.backgroundColor='#C3C3C3'\" bgcolor=#C3C3C3><b>$the_day</b><br>";
}
$querytris="SELECT titre FROM agenda WHERE date='$the_day/$this_month/$this_year' and genre='jour férié' ORDER BY id";
$resulttris=mysql_query($querytris) or die(mysql_error());
if (mysql_num_rows($resulttris) >= 1)
{
echo "<font style=\"color:#404040; font-size:90%;\"><center><b>";
while ($rowtris = mysql_fetch_array($resulttris))
{
echo "".$rowtris['titre']."";
}
echo "</b></center></font><br>";
}
$queryquattro="SELECT titre FROM agenda WHERE date='$the_day/$this_month' and genre='jour férié' ORDER BY id";
$resultquattro=mysql_query($queryquattro) or die(mysql_error());
if (mysql_num_rows($resultquattro) >= 1)
{
echo "<font style=\"color:#404040;font-size:90%;\"><center><b>";
while ($rowquattro = mysql_fetch_array($resultquattro))
{
echo "".$rowquattro['titre']."";
}
echo "</b></center></font><br>";
}
$query="SELECT login FROM members WHERE annif='$the_day/$this_month' ORDER BY id";
$result=mysql_query($query) or die(mysql_error());
if (mysql_num_rows($result) >= 1)
{
echo "<font style=\"sidered\" style=\"font-size:90%;\">Verjaardag:</font>";
echo "<br><table padding=\"0\" spacing=\"0\" style=\"margin-left: 2px; line-height: 60% ;\">";
while ($row = mysql_fetch_array($result))
{
echo "<tr><td><font style=\"color: black; font-size:90%;\">» ".$row['login']."</font></td></tr>";
}
echo "</table>";
}
$querybis="SELECT titre FROM agenda WHERE date='$the_day/$this_month/$this_year' and genre='activité' ORDER BY id";
$resultbis=mysql_query($querybis) or die(mysql_error());
if (mysql_num_rows($resultbis) >= 1)
{
echo "<font style=\"sidered\" style=\"font-size:90%;\">Activiteiten:</font>";
echo "<br><table padding=\"0\" spacing=\"0\" style=\"margin-left: 2px; line-height: 60% ;\">";
while ($rowbis = mysql_fetch_array($resultbis))
{
echo "<tr><td><font style=\"color: black; font-size:90%;\">» ".$rowbis['titre']."</font></td></tr>";
}
echo "</table>";
}
echo "</td>";
$the_day++;
if ($the_day == date(j) and $this_month == date("n") and $this_year == date("Y"))
{
echo "<td valign=\"top\" class=\"kaltexr\" onclick=\"window.location.href='jour.php?jour=$the_day&mois=$this_month&annee=$this_year'\" onMouseOver=\"this.style.backgroundColor='#FEFFBF';\" onMouseOut=\"this.style.backgroundColor='#FEFF97'\" bgcolor=#FEFF97><b>$the_day</b><br>";
}
else
{
echo "<td valign=\"top\" class=\"kaltexr\" onclick=\"window.location.href='jour.php?jour=$the_day&mois=$this_month&annee=$this_year'\" onMouseOver=\"this.style.backgroundColor='#E9ECEF';\" onMouseOut=\"this.style.backgroundColor='#C3C3C3'\" bgcolor=#C3C3C3><b>$the_day</b><br>";
}
$querytris="SELECT titre FROM agenda WHERE date='$the_day/$this_month/$this_year' and genre='jour férié' ORDER BY id";
$resulttris=mysql_query($querytris) or die(mysql_error());
if (mysql_num_rows($resulttris) >= 1)
{
echo "<font style=\"color:#404040; font-size:90%;\"><center><b>";
while ($rowtris = mysql_fetch_array($resulttris))
{
echo "".$rowtris['titre']."";
}
echo "</b></center></font><br>";
}
$queryquattro="SELECT titre FROM agenda WHERE date='$the_day/$this_month' and genre='jour férié' ORDER BY id";
$resultquattro=mysql_query($queryquattro) or die(mysql_error());
if (mysql_num_rows($resultquattro) >= 1)
{
echo "<font style=\"color:#404040;font-size:90%;\"><center><b>";
while ($rowquattro = mysql_fetch_array($resultquattro))
{
echo "".$rowquattro['titre']."";
}
echo "</b></center></font><br>";
}
$query="SELECT login FROM members WHERE annif='$the_day/$this_month' ORDER BY id";
$result=mysql_query($query) or die(mysql_error());
if (mysql_num_rows($result) >= 1)
{
echo "<font style=\"sidered\" style=\"font-size:90%;\">Verjaardag:</font>";
echo "<br><table padding=\"0\" spacing=\"0\" style=\"margin-left: 2px; line-height: 60% ;\">";
while ($row = mysql_fetch_array($result))
{
echo "<tr><td><font style=\"color: black; font-size:90%;\">» ".$row['login']."</font></td></tr>";
}
echo "</table>";
}
$querybis="SELECT titre FROM agenda WHERE date='$the_day/$this_month/$this_year' and genre='activité' ORDER BY id";
$resultbis=mysql_query($querybis) or die(mysql_error());
if (mysql_num_rows($resultbis) >= 1)
{
echo "<font style=\"sidered\" style=\"font-size:90%;\">Activiteiten:</font>";
echo "<br><table padding=\"0\" spacing=\"0\" style=\"margin-left: 2px; line-height: 60% ;\">";
while ($rowbis = mysql_fetch_array($resultbis))
{
echo "<tr><td><font style=\"color: black; font-size:90%;\">» ".$rowbis['titre']."</font></td></tr>";
}
echo "</table>";
}
echo "</td>";
echo "</tr>";
$the_day++;
}
elseif ($first_day == 0) {
echo "<td valign=\"top\" bgcolor=\"#DFDFDF\"></td>";
$the_day = 1;
if ($the_day == date(j) and $this_month == date("n") and $this_year == date("Y"))
{
echo "<td valign=\"top\" class=\"kaltexr\" onclick=\"window.location.href='jour.php?jour=$the_day&mois=$this_month&annee=$this_year'\" onMouseOver=\"this.style.backgroundColor='#FEFFBF';\" onMouseOut=\"this.style.backgroundColor='#FEFF97'\" bgcolor=#FEFF97><b>$the_day</b><br>";
}
else
{
echo "<td valign=\"top\" class=\"kaltexr\" onclick=\"window.location.href='jour.php?jour=$the_day&mois=$this_month&annee=$this_year'\" onMouseOver=\"this.style.backgroundColor='#E9ECEF';\" onMouseOut=\"this.style.backgroundColor='#C3C3C3'\" bgcolor=#C3C3C3><b>$the_day</b><br>";
}
$querytris="SELECT titre FROM agenda WHERE date='$the_day/$this_month/$this_year' and genre='jour férié' ORDER BY id";
$resulttris=mysql_query($querytris) or die(mysql_error());
if (mysql_num_rows($resulttris) >= 1)
{
echo "<font style=\"color:#404040; font-size:90%;\"><center><b>";
while ($rowtris = mysql_fetch_array($resulttris))
{
echo "".$rowtris['titre']."";
}
echo "</b></center></font><br>";
}
$queryquattro="SELECT titre FROM agenda WHERE date='$the_day/$this_month' and genre='jour férié' ORDER BY id";
$resultquattro=mysql_query($queryquattro) or die(mysql_error());
if (mysql_num_rows($resultquattro) >= 1)
{
echo "<font style=\"color:#404040;font-size:90%;\"><center><b>";
while ($rowquattro = mysql_fetch_array($resultquattro))
{
echo "".$rowquattro['titre']."";
}
echo "</b></center></font><br>";
}
$query="SELECT login FROM members WHERE annif='$the_day/$this_month' ORDER BY id";
$result=mysql_query($query) or die(mysql_error());
if (mysql_num_rows($result) >= 1)
{
echo "<font style=\"sidered\" style=\"font-size:90%;\">Verjaardag:</font>";
echo "<br><table padding=\"0\" spacing=\"0\" style=\"margin-left: 2px; line-height: 60% ;\">";
while ($row = mysql_fetch_array($result))
{
echo "<tr><td><font style=\"color: black; font-size:90%;\">» ".$row['login']."</font></td></tr>";
}
echo "</table>";
}
$querybis="SELECT titre FROM agenda WHERE date='$the_day/$this_month/$this_year' and genre='activité' ORDER BY id";
$resultbis=mysql_query($querybis) or die(mysql_error());
if (mysql_num_rows($resultbis) >= 1)
{
echo "<font style=\"sidered\" style=\"font-size:90%;\">Activiteiten:</font>";
echo "<br><table padding=\"0\" spacing=\"0\" style=\"margin-left: 2px; line-height: 60% ;\">";
while ($rowbis = mysql_fetch_array($resultbis))
{
echo "<tr><td><font style=\"color: black; font-size:90%;\">» ".$rowbis['titre']."</font></td></tr>";
}
echo "</table>";
}
echo "</td>";
echo "</tr>";
$the_day++;
}
else {
if ($the_day == date(j) and $this_month == date("n") and $this_year == date("Y"))
{
echo "<td valign=\"top\" class=\"kaltexr\" onclick=\"window.location.href='jour.php?jour=$the_day&mois=$this_month&annee=$this_year'\" onMouseOver=\"this.style.backgroundColor='#FEFFBF';\" onMouseOut=\"this.style.backgroundColor='#FEFF97'\" bgcolor=#FEFF97><b>$the_day</b><br>";
}
else
{
echo "<td valign=\"top\" class=\"kaltexr\" onclick=\"window.location.href='jour.php?jour=$the_day&mois=$this_month&annee=$this_year'\" onMouseOver=\"this.style.backgroundColor='#E9ECEF';\" onMouseOut=\"this.style.backgroundColor='#C3C3C3'\" bgcolor=#C3C3C3><b>$the_day</b><br>";
}
$querytris="SELECT titre FROM agenda WHERE date='$the_day/$this_month/$this_year' and genre='jour férié' ORDER BY id";
$resulttris=mysql_query($querytris) or die(mysql_error());
if (mysql_num_rows($resulttris) >= 1)
{
echo "<font style=\"color:#404040; font-size:90%;\"><center><b>";
while ($rowtris = mysql_fetch_array($resulttris))
{
echo "".$rowtris['titre']."";
}
echo "</b></center></font><br>";
}
$queryquattro="SELECT titre FROM agenda WHERE date='$the_day/$this_month' and genre='jour férié' ORDER BY id";
$resultquattro=mysql_query($queryquattro) or die(mysql_error());
if (mysql_num_rows($resultquattro) >= 1)
{
echo "<font style=\"color:#404040;font-size:90%;\"><center><b>";
while ($rowquattro = mysql_fetch_array($resultquattro))
{
echo "".$rowquattro['titre']."";
}
echo "</b></center></font><br>";
}
$query="SELECT login FROM members WHERE annif='$the_day/$this_month' ORDER BY id";
$result=mysql_query($query) or die(mysql_error());
if (mysql_num_rows($result) >= 1)
{
echo "<font style=\"sidered\" style=\"font-size:90%;\">Verjaardag:</font>";
echo "<br><table padding=\"0\" spacing=\"0\" style=\"margin-left: 2px; line-height: 60% ;\">";
while ($row = mysql_fetch_array($result))
{
echo "<tr><td><font style=\"color: black; font-size:90%;\">» ".$row['login']."</font></td></tr>";
}
echo "</table>";
}
$querybis="SELECT titre FROM agenda WHERE date='$the_day/$this_month/$this_year' and genre='activité' ORDER BY id";
$resultbis=mysql_query($querybis) or die(mysql_error());
if (mysql_num_rows($resultbis) >= 1)
{
echo "<font style=\"sidered\" style=\"font-size:90%;\">Activiteiten:</font>";
echo "<br><table padding=\"0\" spacing=\"0\" style=\"margin-left: 2px; line-height: 60% ;\">";
while ($rowbis = mysql_fetch_array($resultbis))
{
echo "<tr><td><font style=\"color: black; font-size:90%;\">» ".$rowbis['titre']."</font></td></tr>";
}
echo "</table>";
}
echo "</td>";
$the_day++;
if ($the_day == date(j) and $this_month == date("n") and $this_year == date("Y"))
{
echo "<td valign=\"top\" class=\"kaltexr\" onclick=\"window.location.href='jour.php?jour=$the_day&mois=$this_month&annee=$this_year'\" onMouseOver=\"this.style.backgroundColor='#FEFFBF';\" onMouseOut=\"this.style.backgroundColor='#FEFF97'\" bgcolor=#FEFF97><b>$the_day</b><br>";
}
else
{
echo "<td valign=\"top\" class=\"kaltexr\" onclick=\"window.location.href='jour.php?jour=$the_day&mois=$this_month&annee=$this_year'\" onMouseOver=\"this.style.backgroundColor='#E9ECEF';\" onMouseOut=\"this.style.backgroundColor='#C3C3C3'\" bgcolor=#C3C3C3><b>$the_day</b><br>";
}
$querytris="SELECT titre FROM agenda WHERE date='$the_day/$this_month/$this_year' and genre='jour férié' ORDER BY id";
$resulttris=mysql_query($querytris) or die(mysql_error());
if (mysql_num_rows($resulttris) >= 1)
{
echo "<font style=\"color:#404040; font-size:90%;\"><center><b>";
while ($rowtris = mysql_fetch_array($resulttris))
{
echo "".$rowtris['titre']."";
}
echo "</b></center></font><br>";
}
$queryquattro="SELECT titre FROM agenda WHERE date='$the_day/$this_month' and genre='jour férié' ORDER BY id";
$resultquattro=mysql_query($queryquattro) or die(mysql_error());
if (mysql_num_rows($resultquattro) >= 1)
{
echo "<font style=\"color:#404040;font-size:90%;\"><center><b>";
while ($rowquattro = mysql_fetch_array($resultquattro))
{
echo "".$rowquattro['titre']."";
}
echo "</b></center></font><br>";
}
$query="SELECT login FROM members WHERE annif='$the_day/$this_month' ORDER BY id";
$result=mysql_query($query) or die(mysql_error());
if (mysql_num_rows($result) >= 1)
{
echo "<font style=\"sidered\" style=\"font-size:90%;\">Verjaardag:</font>";
echo "<br><table padding=\"0\" spacing=\"0\" style=\"margin-left: 2px; line-height: 60% ;\">";
while ($row = mysql_fetch_array($result))
{
echo "<tr><td><font style=\"color: black; font-size:90%;\">» ".$row['login']."</font></td></tr>";
}
echo "</table>";
}
$querybis="SELECT titre FROM agenda WHERE date='$the_day/$this_month/$this_year' and genre='activité' ORDER BY id";
$resultbis=mysql_query($querybis) or die(mysql_error());
if (mysql_num_rows($resultbis) >= 1)
{
echo "<font style=\"sidered\" style=\"font-size:90%;\">Activiteiten:</font>";
echo "<br><table padding=\"0\" spacing=\"0\" style=\"margin-left: 2px; line-height: 60% ;\">";
while ($rowbis = mysql_fetch_array($resultbis))
{
echo "<tr><td><font style=\"color: black; font-size:90%;\">» ".$rowbis['titre']."</font></td></tr>";
}
echo "</table>";
}
echo "</td>";
echo "</tr>";
$the_day++;
}
}
elseif ($the_day > $total_days) {
$the_day = " ";
echo "<td valign=\"top\" bgcolor=\"#DFDFDF\"></td>";
echo "<td valign=\"top\" bgcolor=\"#DFDFDF\"></td>";
echo "</tr>";
}
elseif ($the_day != " ") {
if ($the_day == date(j) and $this_month == date("n") and $this_year == date("Y"))
{
echo "<td valign=\"top\" class=\"kaltexr\" onclick=\"window.location.href='jour.php?jour=$the_day&mois=$this_month&annee=$this_year'\" onMouseOver=\"this.style.backgroundColor='#FEFFBF';\" onMouseOut=\"this.style.backgroundColor='#FEFF97'\" bgcolor=#FEFF97><b>$the_day</b><br>";
}
else
{
echo "<td valign=\"top\" class=\"kaltexr\" onclick=\"window.location.href='jour.php?jour=$the_day&mois=$this_month&annee=$this_year'\" onMouseOver=\"this.style.backgroundColor='#E9ECEF';\" onMouseOut=\"this.style.backgroundColor='#C3C3C3'\" bgcolor=#C3C3C3><b>$the_day</b><br>";
}
$querytris="SELECT titre FROM agenda WHERE date='$the_day/$this_month/$this_year' and genre='jour férié' ORDER BY id";
$resulttris=mysql_query($querytris) or die(mysql_error());
if (mysql_num_rows($resulttris) >= 1)
{
echo "<font style=\"color:#404040; font-size:90%;\"><center><b>";
while ($rowtris = mysql_fetch_array($resulttris))
{
echo "".$rowtris['titre']."";
}
echo "</b></center></font><br>";
}
$queryquattro="SELECT titre FROM agenda WHERE date='$the_day/$this_month' and genre='jour férié' ORDER BY id";
$resultquattro=mysql_query($queryquattro) or die(mysql_error());
if (mysql_num_rows($resultquattro) >= 1)
{
echo "<font style=\"color:#404040;font-size:90%;\"><center><b>";
while ($rowquattro = mysql_fetch_array($resultquattro))
{
echo "".$rowquattro['titre']."";
}
echo "</b></center></font><br>";
}
$query="SELECT login FROM members WHERE annif='$the_day/$this_month' ORDER BY id";
$result=mysql_query($query) or die(mysql_error());
if (mysql_num_rows($result) >= 1)
{
echo "<font style=\"sidered\" style=\"font-size:90%;\">Verjaardag:</font>";
echo "<br><table padding=\"0\" spacing=\"0\" style=\"margin-left: 2px; line-height: 60% ;\">";
while ($row = mysql_fetch_array($result))
{
echo "<tr><td><font style=\"color: black; font-size:90%;\">» ".$row['login']."</font></td></tr>";
}
echo "</table>";
}
$querybis="SELECT titre FROM agenda WHERE date='$the_day/$this_month/$this_year' and genre='activité' ORDER BY id";
$resultbis=mysql_query($querybis) or die(mysql_error());
if (mysql_num_rows($resultbis) >= 1)
{
echo "<font style=\"sidered\" style=\"font-size:90%;\">Activiteiten:</font>";
echo "<br><table padding=\"0\" spacing=\"0\" style=\"margin-left: 2px; line-height: 60% ;\">";
while ($rowbis = mysql_fetch_array($resultbis))
{
echo "<tr><td><font style=\"color: black; font-size:90%;\">» ".$rowbis['titre']."</font></td></tr>";
}
echo "</table>";
}
echo "</td>";
$the_day++;
if ($the_day > $total_days) {
$the_day = " ";
echo "<td valign=\"top\" bgcolor=\"#DFDFDF\"></td>";
echo "</tr>";
}
else
{
if ($the_day == date(j) and $this_month == date("n") and $this_year == date("Y"))
{
echo "<td valign=\"top\" class=\"kaltexr\" onclick=\"window.location.href='jour.php?jour=$the_day&mois=$this_month&annee=$this_year'\" onMouseOver=\"this.style.backgroundColor='#FEFFBF';\" onMouseOut=\"this.style.backgroundColor='#FEFF97'\" bgcolor=#FEFF97><b>$the_day</b><br>";
}
else
{
echo "<td valign=\"top\" class=\"kaltexr\" onclick=\"window.location.href='jour.php?jour=$the_day&mois=$this_month&annee=$this_year'\" onMouseOver=\"this.style.backgroundColor='#E9ECEF';\" onMouseOut=\"this.style.backgroundColor='#C3C3C3'\" bgcolor=#C3C3C3><b>$the_day</b><br>";
}
$querytris="SELECT titre FROM agenda WHERE date='$the_day/$this_month/$this_year' and genre='jour férié' ORDER BY id";
$resulttris=mysql_query($querytris) or die(mysql_error());
if (mysql_num_rows($resulttris) >= 1)
{
echo "<font style=\"color:#404040; font-size:90%;\"><center><b>";
while ($rowtris = mysql_fetch_array($resulttris))
{
echo "".$rowtris['titre']."";
}
echo "</b></center></font><br>";
}
$queryquattro="SELECT titre FROM agenda WHERE date='$the_day/$this_month' and genre='jour férié' ORDER BY id";
$resultquattro=mysql_query($queryquattro) or die(mysql_error());
if (mysql_num_rows($resultquattro) >= 1)
{
echo "<font style=\"color:#404040;font-size:90%;\"><center><b>";
while ($rowquattro = mysql_fetch_array($resultquattro))
{
echo "".$rowquattro['titre']."";
}
echo "</b></center></font><br>";
}
$query="SELECT login FROM members WHERE annif='$the_day/$this_month' ORDER BY id";
$result=mysql_query($query) or die(mysql_error());
if (mysql_num_rows($result) >= 1)
{
echo "<font style=\"sidered\" style=\"font-size:90%;\">Verjaardag:</font>";
echo "<br><table padding=\"0\" spacing=\"0\" style=\"margin-left: 2px; line-height: 60% ;\">";
while ($row = mysql_fetch_array($result))
{
echo "<tr><td><font style=\"color: black; font-size:90%;\">» ".$row['login']."</font></td></tr>";
}
echo "</table>";
}
$querybis="SELECT titre FROM agenda WHERE date='$the_day/$this_month/$this_year' and genre='activité' ORDER BY id";
$resultbis=mysql_query($querybis) or die(mysql_error());
if (mysql_num_rows($resultbis) >= 1)
{
echo "<font style=\"sidered\" style=\"font-size:90%;\">Activiteiten:</font>";
echo "<br><table padding=\"0\" spacing=\"0\" style=\"margin-left: 2px; line-height: 60% ;\">";
while ($rowbis = mysql_fetch_array($resultbis))
{
echo "<tr><td><font style=\"color: black; font-size:90%;\">» ".$rowbis['titre']."</font></td></tr>";
}
echo "</table>";
}
echo "</td>";
echo "</tr>";
$the_day++;
}
}
else {
$the_day = " ";
echo "<td valign=\"top\" bgcolor=\"#DFDFDF\"></td>";
echo "<td valign=\"top\" bgcolor=\"#DFDFDF\"></td>";
echo "</tr>";
}
$week_num++;
}
echo "</table>";
echo "</td></tr>";
echo "</table>";
?>
<br>
</center>
</body>
</html>
en kan iemand mij uitleggen hoe ik dit systeem kan koppelingen aan een users-table, zodat ik het bewerken van en toevoegen aan de agenda kan toewijzen aan de administrators?
daarnaast heb ik witte borders in de kalender. (de vakjes van de dagen zijn wit omlijnd) hoe kan ik die zwart maken?
maar kheb een paar foutjes denk ik, ik klik op een dag om iets toe te voegen maar ik zie nergens admin staan! wie kan me helpen ? vb : http://www.wyger.nl/usr/hvkdeboerkes/agenda/agenda.php
voeg me toe aan msn of leg het hier uit greets kevin
Is er toevallig iemand die het toevoegen / bewerken / verwijderen op een heeft draaien ?.
<HTML>
<HEAD>
<TITLE>Agenda</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body,td,p,select,input,textarea {
color: #333333;
font-size: 11px;
font-family: Verdana, Arial, Helvetica, sans-serif;
margin:0,0,0,0;
}
a{
color: #333333;
font-size: 11px;
font-family: Verdana, Arial, Helvetica, sans-serif;
text-decoration:underline;
}
.style1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #0D4E95;
font-weight: bold;
padding-bottom:0px;
padding-top:0px;
}
a.topnav {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #333333;
font-weight: bold;
text-decoration:none;
}
a.topnav:hover {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #333333;
font-weight: bold;
text-decoration:underline;
}
.sidered {color: #0D4E95; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif;}
.side {color: #333333; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif;}
a.sideredlinks{color: #0D4E95; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold;text-decoration:underline; }
h1 {
font-size: 18px;
color: #0D4E95;
}
.base {font-size: 10px;margin-left:28px;}
td.kalalg { padding: 0px; margin: 0px; center: top; font: 11px Verdana, Arial; font-weight: bold; background-color: #FFFFFF; color: #0000CC; line-height: 16px; }
td.kaltit { padding: 0px; margin: 0px; center: top; font: 11px Verdana, Arial; font-weight: normal; background-color: #FFFFFF; color: #AAAAAA; border-bottom: solid 1px #AAAAAA;}
td.kaltexr { width: 117px; padding: 0px; height: 100px; cursor: hand; margin: 0px; font: 11px Verdana, Arial; font-weight: normal; color: #0D4E95; }
-->
</style>
</HEAD>
<body>
<center>
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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
// Connection mysql
$user = "<gebruikersnaam>";
$dbpass = "<wachtwoord>";
$host = "localhost";
$dbdb = "<databasenaam>";
if (!mysql_select_db($dbdb, mysql_connect($host, $user, $dbpass)))
{
echo "Connectie met de database mislukt.";
exit();
}
echo "<table width=\"200\">\n";
echo "<tr><td class=\"kalalg\">";
if($_GET['thismonth'] != "" and $_GET['thisyear'] != "") {
$this_month = $_GET['thismonth'];
$this_year = $_GET['thisyear'];
if ($this_month == 13) {
$this_month = 1;
$this_year = $this_year + 1;
}
elseif ($this_month == 0)
{
$this_month = 12;
$this_year = $this_year - 1;
}
else
{
$this_month = $this_month;
}
}
else {
$this_month = date("n");
$this_year = date("Y");
}
$arraymonth = array(
"Januari",
"Februari",
"Maart",
"April",
"Mei",
"Juni",
"Juli",
"Augustus",
"September",
"Oktober",
"November",
"December"
);
$month_name = $arraymonth[$this_month-1];
/* Navigation */
$last_month = $this_month - 1;
$next_month = $this_month + 1;
echo "<center>";
echo "<table width=\"800\"><tr><td align=\"left\" width=\"200\">\n";
echo "<a href=\"agenda.php?thismonth=$last_month&thisyear=$this_year\" style=\"color:#0D4E95; font-family: Verdana, Arial, Helvetica, sans-serif;\"><b>« Vorige</b></a>";
echo "</td><td align=\"center\" width=\"400\">";
echo "<h1>$month_name $this_year</h1>";
echo "</td><td align=\"right\" width=\"200\">";
echo "<a href=\"agenda.php?thismonth=$next_month&thisyear=$this_year\" style=\"color:#0D4E95; font-family: Verdana, Arial, Helvetica, sans-serif;\"><b>Volgende »</b></a>";
echo "</td></tr></table>";
echo "</center>";
/* Titels van de kalender */
echo "<table width=\"820\" cellspacing=\"1\" cellpadding=\"0\" style=\"border: solid #AAAAAA 1px;\">\n";
echo "<td class=\"kaltit\" height=\"5\" style=\"text-align: center; border-right: solid #AAAAAA 1px;\">Maandag</td>";
echo "<td class=\"kaltit\" height=\"5\" style=\"text-align: center; border-right: solid #AAAAAA 1px;\">Dinsdag</td>";
echo "<td class=\"kaltit\" height=\"5\" style=\"text-align: center; border-right: solid #AAAAAA 1px;\">Woensdag</td>";
echo "<td class=\"kaltit\" height=\"5\" style=\"text-align: center; border-right: solid #AAAAAA 1px;\">Donderdag</td>";
echo "<td class=\"kaltit\" height=\"5\" style=\"text-align: center; border-right: solid #AAAAAA 1px;\">Vrijdag</td>";
echo "<td class=\"kaltit\" height=\"5\" style=\"text-align: center; border-right: solid #AAAAAA 1px;\">Zaterdag</td>";
echo "<td class=\"kaltit\" height=\"5\" style=\"text-align: center;\">Zondag</td>";
echo "</td></tr>";
/* De maand berekenen */
$first_day = date("w", mktime(0, 0, 0, $this_month, 1, $this_year));
$total_days = date("t", mktime(0, 0, 0, $this_month, 1, $this_year));
$week_num = 1;
$day_num = 1;
$the_day = " ";
/* Het aantal weken overlopen (primaire teller in het proces) */
while ($week_num <= 6) {
echo "<tr>\n";
/* Het aantal weken overlopen (secundaire teller) */
for ( $i = 1; $i <= 5; $i++ ) {
if ($week_num == 1) {
if ($i < $first_day)
$the_day = " ";
else if ($i == $first_day) {
$the_day = 1;
}
} else {
if ($the_day > $total_days)
$the_day = " ";
}
/* De dagen weergeven */
if ($the_day != " ")
{
if ($the_day == date(j) and $this_month == date("n") and $this_year == date("Y"))
{
echo "<td valign=\"top\" class=\"kaltexr\" onclick=\"window.location.href='jour.php?jour=$the_day&mois=$this_month&annee=$this_year'\" onMouseOver=\"this.style.backgroundColor='#FEFFBF';\" onMouseOut=\"this.style.backgroundColor='#FEFF97'\" bgcolor=#FEFF97><b>$the_day</b><br>";
}
else
{
echo "<td valign=\"top\" class=\"kaltexr\" onclick=\"window.location.href='jour.php?jour=$the_day&mois=$this_month&annee=$this_year'\" onMouseOver=\"this.style.backgroundColor='#E9ECEF';\" onMouseOut=\"this.style.backgroundColor='#CDD2D9'\" bgcolor=#CDD2D9><b>$the_day</b><br>";
}
$querytris="SELECT titre FROM agenda WHERE date='$the_day/$this_month/$this_year' and genre='jour férié' ORDER BY id";
$resulttris=mysql_query($querytris) or die(mysql_error());
if (mysql_num_rows($resulttris) >= 1)
{
echo "<font style=\"color:#404040; font-size:90%;\"><center><b>";
while ($rowtris = mysql_fetch_array($resulttris))
{
echo "".$rowtris['titre']."";
}
echo "</b></center></font><br>";
}
$queryquattro="SELECT titre FROM agenda WHERE date='$the_day/$this_month' and genre='jour férié' ORDER BY id";
$resultquattro=mysql_query($queryquattro) or die(mysql_error());
if (mysql_num_rows($resultquattro) >= 1)
{
echo "<font style=\"color:#404040;font-size:90%;\"><center><b>";
while ($rowquattro = mysql_fetch_array($resultquattro))
{
echo "".$rowquattro['titre']."";
}
echo "</b></center></font><br>";
}
$query="SELECT login FROM members WHERE annif='$the_day/$this_month' ORDER BY id";
$result=mysql_query($query) or die(mysql_error());
if (mysql_num_rows($result) >= 1)
{
echo "<font style=\"sidered\" style=\"font-size:90%;\">Verjaardag:</font>";
echo "<br><table padding=\"0\" spacing=\"0\" style=\"margin-left: 2px; line-height: 60% ;\">";
while ($row = mysql_fetch_array($result))
{
echo "<tr><td><font style=\"color: black; font-size:90%;\">» ".$row['login']."</font></td></tr>";
}
echo "</table>";
}
$querybis="SELECT titre FROM agenda WHERE date='$the_day/$this_month/$this_year' and genre='activité' ORDER BY id";
$resultbis=mysql_query($querybis) or die(mysql_error());
if (mysql_num_rows($resultbis) >= 1)
{
echo "<font style=\"sidered\" style=\"font-size:90%;\">Activiteiten:</font>";
echo "<br><table padding=\"0\" spacing=\"0\" style=\"margin-left: 2px; line-height: 60% ;\">";
while ($rowbis = mysql_fetch_array($resultbis))
{
echo "<tr><td><font style=\"color: black; font-size:90%;\">» ".$rowbis['titre']."</font></td></tr>";
}
echo "</table>";
}
echo "</td>";
}
else
{
echo "<td valign=\"top\" bgcolor=\"#DFDFDF\"></td>";
}
/* De volgende dag berekenen */
if ($the_day != " ")
$the_day++;
}
if ($week_num == 1) {
if ($first_day == 6) {
$the_day = 1;
if ($the_day == date(j) and $this_month == date("n") and $this_year == date("Y"))
{
echo "<td valign=\"top\" class=\"kaltexr\" onclick=\"window.location.href='jour.php?jour=$the_day&mois=$this_month&annee=$this_year'\" onMouseOver=\"this.style.backgroundColor='#FEFFBF';\" onMouseOut=\"this.style.backgroundColor='#FEFF97'\" bgcolor=#FEFF97><b>$the_day</b><br>";
}
else
{
echo "<td valign=\"top\" class=\"kaltexr\" onclick=\"window.location.href='jour.php?jour=$the_day&mois=$this_month&annee=$this_year'\" onMouseOver=\"this.style.backgroundColor='#E9ECEF';\" onMouseOut=\"this.style.backgroundColor='#C3C3C3'\" bgcolor=#C3C3C3><b>$the_day</b><br>";
}
$querytris="SELECT titre FROM agenda WHERE date='$the_day/$this_month/$this_year' and genre='jour férié' ORDER BY id";
$resulttris=mysql_query($querytris) or die(mysql_error());
if (mysql_num_rows($resulttris) >= 1)
{
echo "<font style=\"color:#404040; font-size:90%;\"><center><b>";
while ($rowtris = mysql_fetch_array($resulttris))
{
echo "".$rowtris['titre']."";
}
echo "</b></center></font><br>";
}
$queryquattro="SELECT titre FROM agenda WHERE date='$the_day/$this_month' and genre='jour férié' ORDER BY id";
$resultquattro=mysql_query($queryquattro) or die(mysql_error());
if (mysql_num_rows($resultquattro) >= 1)
{
echo "<font style=\"color:#404040;font-size:90%;\"><center><b>";
while ($rowquattro = mysql_fetch_array($resultquattro))
{
echo "".$rowquattro['titre']."";
}
echo "</b></center></font><br>";
}
$query="SELECT login FROM members WHERE annif='$the_day/$this_month' ORDER BY id";
$result=mysql_query($query) or die(mysql_error());
if (mysql_num_rows($result) >= 1)
{
echo "<font style=\"sidered\" style=\"font-size:90%;\">Verjaardag:</font>";
echo "<br><table padding=\"0\" spacing=\"0\" style=\"margin-left: 2px; line-height: 60% ;\">";
while ($row = mysql_fetch_array($result))
{
echo "<tr><td><font style=\"color: black; font-size:90%;\">» ".$row['login']."</font></td></tr>";
}
echo "</table>";
}
$querybis="SELECT titre FROM agenda WHERE date='$the_day/$this_month/$this_year' and genre='activité' ORDER BY id";
$resultbis=mysql_query($querybis) or die(mysql_error());
if (mysql_num_rows($resultbis) >= 1)
{
echo "<font style=\"sidered\" style=\"font-size:90%;\">Activiteiten:</font>";
echo "<br><table padding=\"0\" spacing=\"0\" style=\"margin-left: 2px; line-height: 60% ;\">";
while ($rowbis = mysql_fetch_array($resultbis))
{
echo "<tr><td><font style=\"color: black; font-size:90%;\">» ".$rowbis['titre']."</font></td></tr>";
}
echo "</table>";
}
echo "</td>";
$the_day++;
if ($the_day == date(j) and $this_month == date("n") and $this_year == date("Y"))
{
echo "<td valign=\"top\" class=\"kaltexr\" onclick=\"window.location.href='jour.php?jour=$the_day&mois=$this_month&annee=$this_year'\" onMouseOver=\"this.style.backgroundColor='#FEFFBF';\" onMouseOut=\"this.style.backgroundColor='#FEFF97'\" bgcolor=#FEFF97><b>$the_day</b><br>";
}
else
{
echo "<td valign=\"top\" class=\"kaltexr\" onclick=\"window.location.href='jour.php?jour=$the_day&mois=$this_month&annee=$this_year'\" onMouseOver=\"this.style.backgroundColor='#E9ECEF';\" onMouseOut=\"this.style.backgroundColor='#C3C3C3'\" bgcolor=#C3C3C3><b>$the_day</b><br>";
}
$querytris="SELECT titre FROM agenda WHERE date='$the_day/$this_month/$this_year' and genre='jour férié' ORDER BY id";
$resulttris=mysql_query($querytris) or die(mysql_error());
if (mysql_num_rows($resulttris) >= 1)
{
echo "<font style=\"color:#404040; font-size:90%;\"><center><b>";
while ($rowtris = mysql_fetch_array($resulttris))
{
echo "".$rowtris['titre']."";
}
echo "</b></center></font><br>";
}
$queryquattro="SELECT titre FROM agenda WHERE date='$the_day/$this_month' and genre='jour férié' ORDER BY id";
$resultquattro=mysql_query($queryquattro) or die(mysql_error());
if (mysql_num_rows($resultquattro) >= 1)
{
echo "<font style=\"color:#404040;font-size:90%;\"><center><b>";
while ($rowquattro = mysql_fetch_array($resultquattro))
{
echo "".$rowquattro['titre']."";
}
echo "</b></center></font><br>";
}
$query="SELECT login FROM members WHERE annif='$the_day/$this_month' ORDER BY id";
$result=mysql_query($query) or die(mysql_error());
if (mysql_num_rows($result) >= 1)
{
echo "<font style=\"sidered\" style=\"font-size:90%;\">Verjaardag:</font>";
echo "<br><table padding=\"0\" spacing=\"0\" style=\"margin-left: 2px; line-height: 60% ;\">";
while ($row = mysql_fetch_array($result))
{
echo "<tr><td><font style=\"color: black; font-size:90%;\">» ".$row['login']."</font></td></tr>";
}
echo "</table>";
}
$querybis="SELECT titre FROM agenda WHERE date='$the_day/$this_month/$this_year' and genre='activité' ORDER BY id";
$resultbis=mysql_query($querybis) or die(mysql_error());
if (mysql_num_rows($resultbis) >= 1)
{
echo "<font style=\"sidered\" style=\"font-size:90%;\">Activiteiten:</font>";
echo "<br><table padding=\"0\" spacing=\"0\" style=\"margin-left: 2px; line-height: 60% ;\">";
while ($rowbis = mysql_fetch_array($resultbis))
{
echo "<tr><td><font style=\"color: black; font-size:90%;\">» ".$rowbis['titre']."</font></td></tr>";
}
echo "</table>";
}
echo "</td>";
echo "</tr>";
$the_day++;
}
elseif ($first_day == 0) {
echo "<td valign=\"top\" bgcolor=\"#DFDFDF\"></td>";
$the_day = 1;
if ($the_day == date(j) and $this_month == date("n") and $this_year == date("Y"))
{
echo "<td valign=\"top\" class=\"kaltexr\" onclick=\"window.location.href='jour.php?jour=$the_day&mois=$this_month&annee=$this_year'\" onMouseOver=\"this.style.backgroundColor='#FEFFBF';\" onMouseOut=\"this.style.backgroundColor='#FEFF97'\" bgcolor=#FEFF97><b>$the_day</b><br>";
}
else
{
echo "<td valign=\"top\" class=\"kaltexr\" onclick=\"window.location.href='jour.php?jour=$the_day&mois=$this_month&annee=$this_year'\" onMouseOver=\"this.style.backgroundColor='#E9ECEF';\" onMouseOut=\"this.style.backgroundColor='#C3C3C3'\" bgcolor=#C3C3C3><b>$the_day</b><br>";
}
$querytris="SELECT titre FROM agenda WHERE date='$the_day/$this_month/$this_year' and genre='jour férié' ORDER BY id";
$resulttris=mysql_query($querytris) or die(mysql_error());
if (mysql_num_rows($resulttris) >= 1)
{
echo "<font style=\"color:#404040; font-size:90%;\"><center><b>";
while ($rowtris = mysql_fetch_array($resulttris))
{
echo "".$rowtris['titre']."";
}
echo "</b></center></font><br>";
}
$queryquattro="SELECT titre FROM agenda WHERE date='$the_day/$this_month' and genre='jour férié' ORDER BY id";
$resultquattro=mysql_query($queryquattro) or die(mysql_error());
if (mysql_num_rows($resultquattro) >= 1)
{
echo "<font style=\"color:#404040;font-size:90%;\"><center><b>";
while ($rowquattro = mysql_fetch_array($resultquattro))
{
echo "".$rowquattro['titre']."";
}
echo "</b></center></font><br>";
}
$query="SELECT login FROM members WHERE annif='$the_day/$this_month' ORDER BY id";
$result=mysql_query($query) or die(mysql_error());
if (mysql_num_rows($result) >= 1)
{
echo "<font style=\"sidered\" style=\"font-size:90%;\">Verjaardag:</font>";
echo "<br><table padding=\"0\" spacing=\"0\" style=\"margin-left: 2px; line-height: 60% ;\">";
while ($row = mysql_fetch_array($result))
{
echo "<tr><td><font style=\"color: black; font-size:90%;\">» ".$row['login']."</font></td></tr>";
}
echo "</table>";
}
$querybis="SELECT titre FROM agenda WHERE date='$the_day/$this_month/$this_year' and genre='activité' ORDER BY id";
$resultbis=mysql_query($querybis) or die(mysql_error());
if (mysql_num_rows($resultbis) >= 1)
{
echo "<font style=\"sidered\" style=\"font-size:90%;\">Activiteiten:</font>";
echo "<br><table padding=\"0\" spacing=\"0\" style=\"margin-left: 2px; line-height: 60% ;\">";
while ($rowbis = mysql_fetch_array($resultbis))
{
echo "<tr><td><font style=\"color: black; font-size:90%;\">» ".$rowbis['titre']."</font></td></tr>";
}
echo "</table>";
}
echo "</td>";
echo "</tr>";
$the_day++;
}
else {
if ($the_day == date(j) and $this_month == date("n") and $this_year == date("Y"))
{
echo "<td valign=\"top\" class=\"kaltexr\" onclick=\"window.location.href='jour.php?jour=$the_day&mois=$this_month&annee=$this_year'\" onMouseOver=\"this.style.backgroundColor='#FEFFBF';\" onMouseOut=\"this.style.backgroundColor='#FEFF97'\" bgcolor=#FEFF97><b>$the_day</b><br>";
}
else
{
echo "<td valign=\"top\" class=\"kaltexr\" onclick=\"window.location.href='jour.php?jour=$the_day&mois=$this_month&annee=$this_year'\" onMouseOver=\"this.style.backgroundColor='#E9ECEF';\" onMouseOut=\"this.style.backgroundColor='#C3C3C3'\" bgcolor=#C3C3C3><b>$the_day</b><br>";
}
$querytris="SELECT titre FROM agenda WHERE date='$the_day/$this_month/$this_year' and genre='jour férié' ORDER BY id";
$resulttris=mysql_query($querytris) or die(mysql_error());
if (mysql_num_rows($resulttris) >= 1)
{
echo "<font style=\"color:#404040; font-size:90%;\"><center><b>";
while ($rowtris = mysql_fetch_array($resulttris))
{
echo "".$rowtris['titre']."";
}
echo "</b></center></font><br>";
}
$queryquattro="SELECT titre FROM agenda WHERE date='$the_day/$this_month' and genre='jour férié' ORDER BY id";
$resultquattro=mysql_query($queryquattro) or die(mysql_error());
if (mysql_num_rows($resultquattro) >= 1)
{
echo "<font style=\"color:#404040;font-size:90%;\"><center><b>";
while ($rowquattro = mysql_fetch_array($resultquattro))
{
echo "".$rowquattro['titre']."";
}
echo "</b></center></font><br>";
}
$query="SELECT login FROM members WHERE annif='$the_day/$this_month' ORDER BY id";
$result=mysql_query($query) or die(mysql_error());
if (mysql_num_rows($result) >= 1)
{
echo "<font style=\"sidered\" style=\"font-size:90%;\">Verjaardag:</font>";
echo "<br><table padding=\"0\" spacing=\"0\" style=\"margin-left: 2px; line-height: 60% ;\">";
while ($row = mysql_fetch_array($result))
{
echo "<tr><td><font style=\"color: black; font-size:90%;\">» ".$row['login']."</font></td></tr>";
}
echo "</table>";
}
$querybis="SELECT titre FROM agenda WHERE date='$the_day/$this_month/$this_year' and genre='activité' ORDER BY id";
$resultbis=mysql_query($querybis) or die(mysql_error());
if (mysql_num_rows($resultbis) >= 1)
{
echo "<font style=\"sidered\" style=\"font-size:90%;\">Activiteiten:</font>";
echo "<br><table padding=\"0\" spacing=\"0\" style=\"margin-left: 2px; line-height: 60% ;\">";
while ($rowbis = mysql_fetch_array($resultbis))
{
echo "<tr><td><font style=\"color: black; font-size:90%;\">» ".$rowbis['titre']."</font></td></tr>";
}
echo "</table>";
}
echo "</td>";
$the_day++;
if ($the_day == date(j) and $this_month == date("n") and $this_year == date("Y"))
{
echo "<td valign=\"top\" class=\"kaltexr\" onclick=\"window.location.href='jour.php?jour=$the_day&mois=$this_month&annee=$this_year'\" onMouseOver=\"this.style.backgroundColor='#FEFFBF';\" onMouseOut=\"this.style.backgroundColor='#FEFF97'\" bgcolor=#FEFF97><b>$the_day</b><br>";
}
else
{
echo "<td valign=\"top\" class=\"kaltexr\" onclick=\"window.location.href='jour.php?jour=$the_day&mois=$this_month&annee=$this_year'\" onMouseOver=\"this.style.backgroundColor='#E9ECEF';\" onMouseOut=\"this.style.backgroundColor='#C3C3C3'\" bgcolor=#C3C3C3><b>$the_day</b><br>";
}
$querytris="SELECT titre FROM agenda WHERE date='$the_day/$this_month/$this_year' and genre='jour férié' ORDER BY id";
$resulttris=mysql_query($querytris) or die(mysql_error());
if (mysql_num_rows($resulttris) >= 1)
{
echo "<font style=\"color:#404040; font-size:90%;\"><center><b>";
while ($rowtris = mysql_fetch_array($resulttris))
{
echo "".$rowtris['titre']."";
}
echo "</b></center></font><br>";
}
$queryquattro="SELECT titre FROM agenda WHERE date='$the_day/$this_month' and genre='jour férié' ORDER BY id";
$resultquattro=mysql_query($queryquattro) or die(mysql_error());
if (mysql_num_rows($resultquattro) >= 1)
{
echo "<font style=\"color:#404040;font-size:90%;\"><center><b>";
while ($rowquattro = mysql_fetch_array($resultquattro))
{
echo "".$rowquattro['titre']."";
}
echo "</b></center></font><br>";
}
$query="SELECT login FROM members WHERE annif='$the_day/$this_month' ORDER BY id";
$result=mysql_query($query) or die(mysql_error());
if (mysql_num_rows($result) >= 1)
{
echo "<font style=\"sidered\" style=\"font-size:90%;\">Verjaardag:</font>";
echo "<br><table padding=\"0\" spacing=\"0\" style=\"margin-left: 2px; line-height: 60% ;\">";
while ($row = mysql_fetch_array($result))
{
echo "<tr><td><font style=\"color: black; font-size:90%;\">» ".$row['login']."</font></td></tr>";
}
echo "</table>";
}
$querybis="SELECT titre FROM agenda WHERE date='$the_day/$this_month/$this_year' and genre='activité' ORDER BY id";
$resultbis=mysql_query($querybis) or die(mysql_error());
if (mysql_num_rows($resultbis) >= 1)
{
echo "<font style=\"sidered\" style=\"font-size:90%;\">Activiteiten:</font>";
echo "<br><table padding=\"0\" spacing=\"0\" style=\"margin-left: 2px; line-height: 60% ;\">";
while ($rowbis = mysql_fetch_array($resultbis))
{
echo "<tr><td><font style=\"color: black; font-size:90%;\">» ".$rowbis['titre']."</font></td></tr>";
}
echo "</table>";
}
echo "</td>";
echo "</tr>";
$the_day++;
}
}
elseif ($the_day > $total_days) {
$the_day = " ";
echo "<td valign=\"top\" bgcolor=\"#DFDFDF\"></td>";
echo "<td valign=\"top\" bgcolor=\"#DFDFDF\"></td>";
echo "</tr>";
}
elseif ($the_day != " ") {
if ($the_day == date(j) and $this_month == date("n") and $this_year == date("Y"))
{
echo "<td valign=\"top\" class=\"kaltexr\" onclick=\"window.location.href='jour.php?jour=$the_day&mois=$this_month&annee=$this_year'\" onMouseOver=\"this.style.backgroundColor='#FEFFBF';\" onMouseOut=\"this.style.backgroundColor='#FEFF97'\" bgcolor=#FEFF97><b>$the_day</b><br>";
}
else
{
echo "<td valign=\"top\" class=\"kaltexr\" onclick=\"window.location.href='jour.php?jour=$the_day&mois=$this_month&annee=$this_year'\" onMouseOver=\"this.style.backgroundColor='#E9ECEF';\" onMouseOut=\"this.style.backgroundColor='#C3C3C3'\" bgcolor=#C3C3C3><b>$the_day</b><br>";
}
$querytris="SELECT titre FROM agenda WHERE date='$the_day/$this_month/$this_year' and genre='jour férié' ORDER BY id";
$resulttris=mysql_query($querytris) or die(mysql_error());
if (mysql_num_rows($resulttris) >= 1)
{
echo "<font style=\"color:#404040; font-size:90%;\"><center><b>";
while ($rowtris = mysql_fetch_array($resulttris))
{
echo "".$rowtris['titre']."";
}
echo "</b></center></font><br>";
}
$queryquattro="SELECT titre FROM agenda WHERE date='$the_day/$this_month' and genre='jour férié' ORDER BY id";
$resultquattro=mysql_query($queryquattro) or die(mysql_error());
if (mysql_num_rows($resultquattro) >= 1)
{
echo "<font style=\"color:#404040;font-size:90%;\"><center><b>";
while ($rowquattro = mysql_fetch_array($resultquattro))
{
echo "".$rowquattro['titre']."";
}
echo "</b></center></font><br>";
}
$query="SELECT login FROM members WHERE annif='$the_day/$this_month' ORDER BY id";
$result=mysql_query($query) or die(mysql_error());
if (mysql_num_rows($result) >= 1)
{
echo "<font style=\"sidered\" style=\"font-size:90%;\">Verjaardag:</font>";
echo "<br><table padding=\"0\" spacing=\"0\" style=\"margin-left: 2px; line-height: 60% ;\">";
while ($row = mysql_fetch_array($result))
{
echo "<tr><td><font style=\"color: black; font-size:90%;\">» ".$row['login']."</font></td></tr>";
}
echo "</table>";
}
$querybis="SELECT titre FROM agenda WHERE date='$the_day/$this_month/$this_year' and genre='activité' ORDER BY id";
$resultbis=mysql_query($querybis) or die(mysql_error());
if (mysql_num_rows($resultbis) >= 1)
{
echo "<font style=\"sidered\" style=\"font-size:90%;\">Activiteiten:</font>";
echo "<br><table padding=\"0\" spacing=\"0\" style=\"margin-left: 2px; line-height: 60% ;\">";
while ($rowbis = mysql_fetch_array($resultbis))
{
echo "<tr><td><font style=\"color: black; font-size:90%;\">» ".$rowbis['titre']."</font></td></tr>";
}
echo "</table>";
}
echo "</td>";
$the_day++;
if ($the_day > $total_days) {
$the_day = " ";
echo "<td valign=\"top\" bgcolor=\"#DFDFDF\"></td>";
echo "</tr>";
}
else
{
if ($the_day == date(j) and $this_month == date("n") and $this_year == date("Y"))
{
echo "<td valign=\"top\" class=\"kaltexr\" onclick=\"window.location.href='jour.php?jour=$the_day&mois=$this_month&annee=$this_year'\" onMouseOver=\"this.style.backgroundColor='#FEFFBF';\" onMouseOut=\"this.style.backgroundColor='#FEFF97'\" bgcolor=#FEFF97><b>$the_day</b><br>";
}
else
{
echo "<td valign=\"top\" class=\"kaltexr\" onclick=\"window.location.href='jour.php?jour=$the_day&mois=$this_month&annee=$this_year'\" onMouseOver=\"this.style.backgroundColor='#E9ECEF';\" onMouseOut=\"this.style.backgroundColor='#C3C3C3'\" bgcolor=#C3C3C3><b>$the_day</b><br>";
}
$querytris="SELECT titre FROM agenda WHERE date='$the_day/$this_month/$this_year' and genre='jour férié' ORDER BY id";
$resulttris=mysql_query($querytris) or die(mysql_error());
if (mysql_num_rows($resulttris) >= 1)
{
echo "<font style=\"color:#404040; font-size:90%;\"><center><b>";
while ($rowtris = mysql_fetch_array($resulttris))
{
echo "".$rowtris['titre']."";
}
echo "</b></center></font><br>";
}
$queryquattro="SELECT titre FROM agenda WHERE date='$the_day/$this_month' and genre='jour férié' ORDER BY id";
$resultquattro=mysql_query($queryquattro) or die(mysql_error());
if (mysql_num_rows($resultquattro) >= 1)
{
echo "<font style=\"color:#404040;font-size:90%;\"><center><b>";
while ($rowquattro = mysql_fetch_array($resultquattro))
{
echo "".$rowquattro['titre']."";
}
echo "</b></center></font><br>";
}
$query="SELECT login FROM members WHERE annif='$the_day/$this_month' ORDER BY id";
$result=mysql_query($query) or die(mysql_error());
if (mysql_num_rows($result) >= 1)
{
echo "<font style=\"sidered\" style=\"font-size:90%;\">Verjaardag:</font>";
echo "<br><table padding=\"0\" spacing=\"0\" style=\"margin-left: 2px; line-height: 60% ;\">";
while ($row = mysql_fetch_array($result))
{
echo "<tr><td><font style=\"color: black; font-size:90%;\">» ".$row['login']."</font></td></tr>";
}
echo "</table>";
}
$querybis="SELECT titre FROM agenda WHERE date='$the_day/$this_month/$this_year' and genre='activité' ORDER BY id";
$resultbis=mysql_query($querybis) or die(mysql_error());
if (mysql_num_rows($resultbis) >= 1)
{
echo "<font style=\"sidered\" style=\"font-size:90%;\">Activiteiten:</font>";
echo "<br><table padding=\"0\" spacing=\"0\" style=\"margin-left: 2px; line-height: 60% ;\">";
while ($rowbis = mysql_fetch_array($resultbis))
{
echo "<tr><td><font style=\"color: black; font-size:90%;\">» ".$rowbis['titre']."</font></td></tr>";
}
echo "</table>";
}
echo "</td>";
echo "</tr>";
$the_day++;
}
}
else {
$the_day = " ";
echo "<td valign=\"top\" bgcolor=\"#DFDFDF\"></td>";
echo "<td valign=\"top\" bgcolor=\"#DFDFDF\"></td>";
echo "</tr>";
}
$week_num++;
}
echo "</table>";
echo "</td></tr>";
echo "</table>";
?>
<br>
</center>
</body>
</html>
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
//verwijderen
if(isset($_GET['verwijder']) === true)
{
$id = $_GET['verwijder'];
$delete = "DELETE FROM agenda WHERE id ='$id'";
$query = mysql_query($delete) OR die(msql_error());
header('location:?page=agenda&maand=' . $_GET['maand'] . '&jaar=' . $_GET['jaar']);
}
//data weergeven voor komende maanden
$sql = "SELECT id,date,genre,titre,details FROM agenda ORDER BY date ASC";
$res = mysql_query($sql);
if (mysql_num_rows($res) >= 1)
{
echo "Activiteiten voor de komende maanden:\n";
echo "<ul>\n";
while ($row = mysql_fetch_array($res))
{
$datum = $row['date'];
list($jaar,$maand,$dag)=explode("-",$datum);
if (($datum >= date("Y-m-d")) and ($maand < (date("m")+ 3))) {
echo
//mail & naam & datum
"\t<li>" . $dag . "/" . $maand . "/" . $jaar . " : " . $row['titre'] ;
//verwijderlinks
echo "<a style=\"color:#FF0000" . "\" href=\"?page=agenda&maand=" . $maand . "&jaar=" . $jaar . "&verwijder=" . $row['id'] . "\">" . "Verwijder</a>
<a style=\"color:#FF0000" . "\" href=\"?page=dag&dag=" . $dag . "&maand=" . $maand . "&jaar=" . $jaar . "&aanpassen=" . $row['id'] . "\">" . "Aanpassen</a></li>\n";
}
}
echo "</ul>\n";
}
else
{
echo "Er zijn nog geen activiteiten toegevoegd.";
}
?>
In activok:
2
3
4
5
6
7
8
9
10
11
12
13
14
15
if(isset($_POST['aanpassen']))
{
$details = addslashes($_POST['details']);
$details = nl2br($details);
$titel = addslashes($_POST['titel']);
$sql = "UPDATE agenda SET details='$details', titre='$titel' WHERE id='$id'";
mysql_query($sql) or die (mysql_error());
header('location:?page=agenda&maand=' . $maand . '&jaar=' . $jaar);
}
?>
in dag:
2
3
4
5
6
7
8
9
//aanpassen: formulier weergeven
if(isset($_GET['aanpassen']) === true){
$id = $_GET['aanpassen'];
$Editquery = "SELECT titre,details FROM agenda WHERE id = $id";
$edit = mysql_query($Editquery) or die(mysql_error());
$resultaat = mysql_fetch_array($edit);
?>
<form id="Aanpas" method="post" action="">
<h2>Aanpassen</h2>
<table>
<tr>
<td valign="top">Datum:</td>
<td></td>
<tr>
<tr>
<td valign="top">Titel:</td>
<td><input type="text" maxlength="40" name="titel" style="width:320px;background-color:#D0D0D0; border:1px solid;" value ="
2
3
4
5
6
$text = $resultaat['titre'];
echo stripslashes(str_replace("<br />","",$text));
?>
<tr>
<td valign="top">Details :</td>
<td><textarea cols="50" rows="10" style="background-color:#D0D0D0; border:1px solid;" name="details"></textarea> <br /><br /><center>
<input type="submit" name="submit" value="Aanpassen" style="border:1px solid;" />
<input name="reset" type="reset" style="border:1px solid;" value="Wissen" />
<input type="hidden" name="aanpassen" />
</center></td>
</tr></table>
</form>
Ik wil deze agenda gaan gebruiken voor afspraken te maken. Ik heb nu een pagina gemaakt met afspraken. Maar als ik een datum wilt inserten in mijn db (mysql) voert hij het niet goed in: namelijk: 0000-00-00
En dit is mijn stukkie code voor het invoeren van de datum:
<input type="hidden" name="datum" value="
Maar die value is niet goed... wie weet hoe ik dit kan oplossen?
Je datum wordt al volgt in de DB gezet, bv. 2006 01 12, waardoor het veld deze niet herkent en 0000-00-00 zal geven.
Probeer het volgende eens...
<input type="hidden" name="datum" value="
Als het goed is moet de datum als volgt in de DB worden gezet, bv. 2006-12-01.
Gr. Peter
Ik heb er een zoekfunctie ingemaakt om een klant te selecteren in jour.php, dit doet die goed. Nu wil ik als ik een klant selecteer via de a href
(jour.php?dag=$the_day&maand=$this_month&jaar=$this_year&kl_klantennr="></a>)
een ID toevoegen aan de form zodat de kl_klantennr in de db wordt opgeslagen.
Maar ik krijg als ik op de link drukt de volgende fout:
Warning: date() [function.date]: Windows does not support dates prior to midnight (00:00:00), January 1, 1970 in c:\wamp\www\design\buitendienst\afspraak.php on line 81:
Het gaat dan om deze statement:
$jds = date("w", mktime(0, 0, 0, $maand, $dag, $jaar));
http://www.14-42.com/teamkroes/kalender/agenda.php
Wat doe ik fout?
@ Marcel: Wilt hij geen activiteit toevoegen voor de laatste week van de maand, of geeft hij de laatste week van elke maand gewoon niet weer ? Ik begrijp het probleem niet helemaal. Mss een link naar uw pagina zou handig zijn...
De eerste 3 weken van de maand voegt namelijk wel goed toe alleen de laatste week niet vind het zo vaag.
(script deels gecopieerd van hierboven)
-----laatste5.php-----
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
// Maak verbinding met server
mysql_connect ("localhost","Username", "pass");
// Selecteer database
mysql_select_db("database");
// Selecteer alle id's en titels van de tabel
$query = "SELECT id,date,genre,titre,details FROM agenda WHERE genre='activité' ORDER BY date DESC LIMIT 0, 5";
// Voer query uit
$resultaat = mysql_query($query) or die ("query mislukt");
echo "Komende activiteiten:\n";
// Maak OO van $resultaat
echo "<ul>\n";
while ($row = mysql_fetch_array($resultaat))
{
$datum = $row['date'];
list($jaar,$maand,$dag)=explode("-",$datum);
if (($datum >= date("Y-m-d")) and ($maand < (date("m")+ 3))) {
echo
//mail & naam & datum
"\t<li>" . $jaar . " : " . $row['titre'] ;
}
}
?>
Ook in mijn vorig script heb ik dat probleem. Dit komt denk ik doordat in de tabel niet gewerkt wordt met het type "DATE". Maar als je dit verandert moet gans het script aangepast worden...
Door
Joop Mol
newbie
20 posts
Re: php en mysql op 11.01.2006 15:12
Dank voor jullie informatie, maar ik ben er nog niet uit want......zie dit bericht:
You have an error in your SQL syntax etc.....near
'STR_TO_DATE(date,'%d/%m/%Y') AS isodate FROM agenda WHERE genre='activiteit' OR' at line 1
dit foutbericht verschijnt zowel op mijn "localhost" als wel bij mijn hostingprovider.
-------------------------------------
Wat nu wel lukt op m'n "localhost" is:
ORDER BY substr(date,4,7)
echter is dit een ordering van maand en jaar.
Maar probeer ik dit laatste bij mijn hostingprovider dan werkt dit niet.
Door
Willem vp
expert
274 posts
Re: php en mysql op 11.01.2006 15:28
order by str_to_date(enzovoort) zou dan op je localhost ook moeten lukken. Ik vrees echter dat je provider een andere (lees: oudere) MySQL-versie heeft en dat het dan lastig gaat worden om het toch aan de praat te krijgen, aangezien oudere versies niet kunnen sorteren op aliasen.
Wat je als paardemiddel nog zou kunnen doen is een extra datetime-veld toevoegen met daarin een "echte" timestamp die hetzelfde is als het date-veld. Daar kun je wel op sorteren.
Nog mooier zou zijn om het date-veld zelf te converteren naar een datetime-veld, dan kun je sorteren *en* heb je geen redundante data.
Door
Joop Mol
newbie
20 posts
Re: php en mysql op 11.01.2006 15:45
Jouw opmerking:
order by str_to_date(enzovoort) zou dan op je localhost ook moeten lukken. Dat is ook zo....neem mij niet kwalijk.
Misschien is toch de weg om een ander in te converteren. En ander.......het paardenmiddel.
Ik zal ook nog informeren bij mijn provider ......
In elke geval aan eenieder mijn dank.
Door
Joop Mol
newbie
20 posts
Re: php en mysql op 12.01.2006 13:08
Ter afsluiting:
1 Mijn provider werkt nog met MYSQL 4.1.... De latere versies zijn nog in de pilot. Vandaar...!!
2 Dus dan maar het paardenmiddel toegepast en dat werkt uiteraard. Niet fraai maar vooruit.
Nogmaals dank voor de ondersteuning.
Door
Willem vp
expert
274 posts
Re: php en mysql op 12.01.2006 13:36
Ach, troost je... op mijn eigen server heb ik nog 3.23.53 ;-)
Hier staan alle letters waar ze voor staan. die moet je veranderen in l, niet allemaal maar alleen de genen die ook met dagen te maken hebben. En hoe je weet hoe het dagen zijn kan je uit die lijst halen. Succes.
de nodige DBs aangemaakt,
de connectie lukt,
de kalender wordt mooi gegenereerd...
maar ik krijg juist nog een foutmelding:
Notice: Use of undefined constant j - assumed 'j' in c:\Inetpub\wwwroot\kljsite\agenda.php on line 167
ik krijg deze fout 31 keer (aantal dagen dus)
iemand enig idee waar de fout kan liggen?
het is nogal ene lang script om volledig uit te pluizen...
alvast bedankt
De zaterdagen weghalen is iets moeilijker omdat ge dan met de tellers moet gaan prutsen. Zou het wel kunnen doen, maar daar heb ik echt geen tijd voor, sorry....
feestdagen.sql
Heb hem ff tussen php tags gezet om copy past makkelijker te maken
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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
CREATE TABLE `agenda` (
`id` int(11) NOT NULL auto_increment,
`date` varchar(10) NOT NULL default '',
`genre` text NOT NULL,
`titre` text NOT NULL,
`details` text NOT NULL,
UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 PACK_KEYS=0 AUTO_INCREMENT=764 ;
--
-- Gegevens worden uitgevoerd voor tabel `agenda`
--
INSERT INTO `agenda` VALUES (1, '9/4/1950', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (2, '25/3/1951', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (3, '13/4/1952', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (4, '5/4/1953', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (5, '18/4/1954', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (6, '10/4/1955', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (7, '1/4/1956', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (8, '21/4/1957', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (9, '6/4/1958', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (10, '29/3/1959', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (11, '17/4/1960', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (12, '2/4/1961', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (13, '22/4/1962', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (14, '14/4/1963', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (15, '29/3/1964', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (16, '18/4/1965', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (17, '10/4/1966', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (18, '26/3/1967', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (19, '14/4/1968', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (20, '6/4/1969', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (21, '29/3/1970', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (22, '11/4/1971', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (23, '2/4/1972', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (24, '22/4/1973', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (25, '14/4/1974', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (26, '30/3/1975', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (27, '18/4/1976', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (28, '10/4/1977', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (29, '26/3/1978', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (30, '15/4/1979', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (31, '6/4/1980', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (32, '19/4/1981', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (33, '11/4/1982', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (34, '3/4/1983', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (35, '22/4/1984', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (36, '7/4/1985', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (37, '30/3/1986', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (38, '19/4/1987', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (39, '3/4/1988', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (40, '26/3/1989', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (41, '15/4/1990', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (42, '31/3/1991', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (43, '19/4/1992', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (44, '11/4/1993', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (45, '3/4/1994', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (46, '16/4/1995', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (47, '7/4/1996', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (48, '30/3/1997', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (49, '12/4/1998', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (50, '4/4/1999', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (51, '23/4/2000', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (52, '15/4/2001', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (53, '31/3/2002', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (54, '20/4/2003', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (55, '11/4/2004', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (56, '27/3/2005', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (57, '16/4/2006', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (58, '8/4/2007', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (59, '23/3/2008', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (60, '12/4/2009', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (61, '4/4/2010', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (62, '24/4/2011', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (63, '8/4/2012', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (64, '31/3/2013', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (65, '20/4/2014', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (66, '5/4/2015', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (67, '27/3/2016', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (68, '16/4/2017', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (69, '1/4/2018', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (70, '21/4/2019', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (71, '12/4/2020', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (72, '4/4/2021', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (73, '17/4/2022', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (74, '9/4/2023', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (75, '31/3/2024', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (76, '20/4/2025', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (77, '5/4/2026', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (78, '28/3/2027', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (79, '16/4/2028', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (80, '1/4/2029', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (81, '21/4/2030', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (82, '13/4/2031', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (83, '28/3/2032', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (84, '17/4/2033', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (85, '9/4/2034', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (86, '25/3/2035', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (87, '13/4/2036', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (88, '5/4/2037', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (89, '25/4/2038', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (90, '10/4/2039', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (91, '1/4/2040', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (92, '21/4/2041', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (93, '6/4/2042', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (94, '29/3/2043', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (95, '17/4/2044', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (96, '9/4/2045', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (97, '25/3/2046', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (98, '14/4/2047', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (99, '5/4/2048', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (100, '18/4/2049', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (101, '10/4/2050', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (102, '2/4/2051', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (103, '21/4/2052', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (104, '6/4/2053', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (105, '29/3/2054', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (106, '18/4/2055', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (107, '2/4/2056', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (108, '22/4/2057', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (109, '14/4/2058', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (110, '30/3/2059', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (111, '18/4/2060', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (112, '10/4/2061', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (113, '26/3/2062', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (114, '15/4/2063', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (115, '6/4/2064', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (116, '29/3/2065', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (117, '11/4/2066', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (118, '3/4/2067', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (119, '22/4/2068', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (120, '14/4/2069', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (121, '30/3/2070', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (122, '19/4/2071', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (123, '10/4/2072', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (124, '26/3/2073', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (125, '15/4/2074', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (126, '7/4/2075', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (127, '19/4/2076', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (128, '11/4/2077', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (129, '3/4/2078', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (130, '23/4/2079', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (131, '7/4/2080', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (132, '30/3/2081', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (133, '19/4/2082', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (134, '4/4/2083', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (135, '26/3/2084', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (136, '15/4/2085', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (137, '31/3/2086', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (138, '20/4/2087', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (139, '11/4/2088', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (140, '3/4/2089', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (141, '16/4/2090', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (142, '8/4/2091', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (143, '30/3/2092', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (144, '12/4/2093', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (145, '4/4/2094', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (146, '24/4/2095', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (147, '15/4/2096', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (148, '31/3/2097', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (149, '20/4/2098', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (150, '12/4/2099', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (151, '28/3/2100', 'jour férié', '1e Paasdag', '');
INSERT INTO `agenda` VALUES (152, '10/4/1950', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (153, '26/3/1951', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (154, '14/4/1952', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (155, '6/4/1953', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (156, '19/4/1954', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (157, '11/4/1955', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (158, '2/4/1956', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (159, '22/4/1957', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (160, '7/4/1958', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (161, '30/3/1959', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (162, '18/4/1960', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (163, '3/4/1961', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (164, '23/4/1962', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (165, '15/4/1963', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (166, '30/3/1964', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (167, '19/4/1965', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (168, '11/4/1966', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (169, '27/3/1967', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (170, '15/4/1968', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (171, '7/4/1969', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (172, '30/3/1970', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (173, '12/4/1971', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (174, '3/4/1972', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (175, '23/4/1973', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (176, '15/4/1974', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (177, '31/3/1975', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (178, '19/4/1976', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (179, '11/4/1977', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (180, '27/3/1978', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (181, '16/4/1979', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (182, '7/4/1980', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (183, '20/4/1981', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (184, '12/4/1982', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (185, '4/4/1983', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (186, '23/4/1984', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (187, '8/4/1985', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (188, '31/3/1986', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (189, '20/4/1987', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (190, '4/4/1988', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (191, '27/3/1989', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (192, '16/4/1990', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (193, '1/4/1991', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (194, '20/4/1992', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (195, '12/4/1993', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (196, '4/4/1994', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (197, '17/4/1995', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (198, '8/4/1996', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (199, '31/3/1997', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (200, '13/4/1998', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (201, '5/4/1999', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (202, '24/4/2000', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (203, '16/4/2001', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (204, '1/4/2002', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (205, '21/4/2003', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (206, '12/4/2004', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (207, '28/3/2005', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (208, '17/4/2006', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (209, '9/4/2007', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (210, '24/3/2008', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (211, '13/4/2009', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (212, '5/4/2010', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (213, '25/4/2011', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (214, '9/4/2012', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (215, '1/4/2013', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (216, '21/4/2014', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (217, '6/4/2015', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (218, '28/3/2016', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (219, '17/4/2017', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (220, '2/4/2018', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (221, '22/4/2019', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (222, '13/4/2020', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (223, '5/4/2021', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (224, '18/4/2022', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (225, '10/4/2023', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (226, '1/4/2024', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (227, '21/4/2025', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (228, '6/4/2026', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (229, '29/3/2027', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (230, '17/4/2028', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (231, '2/4/2029', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (232, '22/4/2030', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (233, '14/4/2031', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (234, '29/3/2032', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (235, '18/4/2033', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (236, '10/4/2034', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (237, '26/3/2035', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (238, '14/4/2036', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (239, '6/4/2037', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (240, '26/4/2038', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (241, '11/4/2039', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (242, '2/4/2040', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (243, '22/4/2041', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (244, '7/4/2042', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (245, '30/3/2043', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (246, '18/4/2044', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (247, '10/4/2045', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (248, '26/3/2046', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (249, '15/4/2047', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (250, '6/4/2048', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (251, '19/4/2049', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (252, '11/4/2050', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (253, '3/4/2051', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (254, '22/4/2052', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (255, '7/4/2053', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (256, '30/3/2054', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (257, '19/4/2055', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (258, '3/4/2056', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (259, '23/4/2057', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (260, '15/4/2058', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (261, '31/3/2059', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (262, '19/4/2060', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (263, '11/4/2061', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (264, '27/3/2062', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (265, '16/4/2063', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (266, '7/4/2064', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (267, '30/3/2065', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (268, '12/4/2066', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (269, '4/4/2067', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (270, '23/4/2068', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (271, '15/4/2069', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (272, '31/3/2070', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (273, '20/4/2071', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (274, '11/4/2072', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (275, '27/3/2073', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (276, '16/4/2074', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (277, '8/4/2075', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (278, '20/4/2076', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (279, '12/4/2077', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (280, '4/4/2078', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (281, '24/4/2079', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (282, '8/4/2080', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (283, '31/3/2081', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (284, '20/4/2082', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (285, '5/4/2083', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (286, '27/3/2084', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (287, '16/4/2085', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (288, '1/4/2086', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (289, '21/4/2087', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (290, '12/4/2088', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (291, '4/4/2089', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (292, '17/4/2090', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (293, '9/4/2091', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (294, '31/3/2092', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (295, '13/4/2093', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (296, '5/4/2094', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (297, '25/4/2095', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (298, '16/4/2096', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (299, '1/4/2097', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (300, '21/4/2098', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (301, '13/4/2099', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (302, '29/3/2100', 'jour férié', '2e Paasdag', '');
INSERT INTO `agenda` VALUES (303, '18/5/1950', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (304, '3/5/1951', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (305, '22/5/1952', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (306, '14/5/1953', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (307, '27/5/1954', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (308, '19/5/1955', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (309, '10/5/1956', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (310, '30/5/1957', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (311, '15/5/1958', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (312, '7/5/1959', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (313, '26/5/1960', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (314, '11/5/1961', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (315, '31/5/1962', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (316, '23/5/1963', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (317, '7/5/1964', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (318, '27/5/1965', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (319, '19/5/1966', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (320, '4/5/1967', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (321, '23/5/1968', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (322, '15/5/1969', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (323, '7/5/1970', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (324, '20/5/1971', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (325, '11/5/1972', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (326, '31/5/1973', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (327, '23/5/1974', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (328, '8/5/1975', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (329, '27/5/1976', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (330, '19/5/1977', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (331, '4/5/1978', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (332, '24/5/1979', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (333, '15/5/1980', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (334, '28/5/1981', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (335, '20/5/1982', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (336, '12/5/1983', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (337, '31/5/1984', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (338, '16/5/1985', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (339, '8/5/1986', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (340, '28/5/1987', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (341, '12/5/1988', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (342, '4/5/1989', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (343, '24/5/1990', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (344, '9/5/1991', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (345, '28/5/1992', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (346, '20/5/1993', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (347, '12/5/1994', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (348, '25/5/1995', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (349, '16/5/1996', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (350, '8/5/1997', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (351, '21/5/1998', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (352, '13/5/1999', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (353, '1/6/2000', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (354, '24/5/2001', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (355, '9/5/2002', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (356, '29/5/2003', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (357, '20/5/2004', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (358, '5/5/2005', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (359, '25/5/2006', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (360, '17/5/2007', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (361, '1/5/2008', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (362, '21/5/2009', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (363, '13/5/2010', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (364, '2/6/2011', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (365, '17/5/2012', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (366, '9/5/2013', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (367, '29/5/2014', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (368, '14/5/2015', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (369, '5/5/2016', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (370, '25/5/2017', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (371, '10/5/2018', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (372, '30/5/2019', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (373, '21/5/2020', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (374, '13/5/2021', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (375, '26/5/2022', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (376, '18/5/2023', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (377, '9/5/2024', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (378, '29/5/2025', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (379, '14/5/2026', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (380, '6/5/2027', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (381, '25/5/2028', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (382, '10/5/2029', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (383, '30/5/2030', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (384, '22/5/2031', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (385, '6/5/2032', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (386, '26/5/2033', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (387, '18/5/2034', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (388, '3/5/2035', 'jour férié', 'Hemelvaart', '');
INSERT INTO `agenda` VALUES (389, '22/5/2036',
PHP hulp
0 seconden vanaf nu