<?php
require_once('auth.php');
require_once('../config.php');
include("dateselect.php");
//verbinden met mysql server
if(!$link) {
}
//Select database
if(!$db) {
die("Unable to select database"); }
$eigenaar = $_SESSION['SESS_LOGIN'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Oliviercloud | agenda | afspraak maken</title>
<link href="../style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
maanden = new Array(12);
maanden[0] = 'januari';
maanden[1] = 'februari';
maanden[2] = 'maart';
maanden[3] = 'april';
maanden[4] = 'mei';
maanden[5] = 'juni';
maanden[6] = 'juli';
maanden[7] = 'augustus';
maanden[8] = 'september';
maanden[9] = 'oktober';
maanden[10] = 'november';
maanden[11] = 'december';
dagen = new Array(7);
dagen[0] = 'zondag';
dagen[1] = 'maandag';
dagen[2] = 'dinsdag';
dagen[3] = 'woensdag';
dagen[4] = 'donderdag';
dagen[5] = 'vrijdag';
dagen[6] = 'zaterdag';
function maakDatum(datum)
{
var dag = dagen[datum.getDay()];
var maand = maanden[datum.getMonth()];
var jaar = datum.getYear();
if (jaar < 100) {jaar = jaar + 2000};
if (jaar < 2000) {jaar = jaar + 1900};
var datumstring = dag + ' ' + datum.getDate() + ' ' + maand + ' ' + jaar;
return datumstring;
}
</script>
<script type="text/javascript">
var klokID=new Array();
var klokIN=-1;
var nu= new Date();
var uur=nu.getHours();
var min=nu.getMinutes();
var sec=nu.getSeconds();
if (eval(uur) <10) {uur="0"+uur};
if (eval(min) < 10) {min="0"+min};
if (sec < 10) {sec="0"+sec};
var nu = uur+":"+min+":"+sec;
function schrijfKlok() {
klokIN++
if (document.all || document.getElementById || document.layers) {
klokID[klokIN]="clock"+klokIN
document.write("<span id='"+klokID[klokIN]+"' style='position:relative'>"+nu+"</span>")
}
}
function startKlok() {
nu= new Date()
uur=nu.getHours()
min=nu.getMinutes()
sec=nu.getSeconds()
if (eval(uur) <10) {uur="0"+uur}
if (eval(min) < 10) {min="0"+min}
if (sec < 10) {sec="0"+sec}
nu = uur+":"+min+":"+sec
if (document.all) {
for (i=0;i<=klokID.length-1;i++) {
var dezeKlok=eval(klokID[i])
dezeKlok.innerHTML=nu
}
}
if (document.getElementById) {
for (i=0;i<=klokID.length-1;i++) {
document.getElementById(klokID[i]).innerHTML=nu
}
}
var timer=setTimeout("startKlok()",1000)
}
window.onload=startKlok;
</script>
</head>
<body>
<div id="top">
<h1>Agenda van
<?php echo $_SESSION['SESS_FIRST_NAME'];?
></h1>
</div>
<div id="links">
<h2>Afspraak toevoegen</h2><br />
<form method="post" action="afspraak_maken_exec.php">
Afspraak is op: <?php DateSelector('mySelect'); ?><br />
Om: <select name="tijd" id="tijd">
<option>hele dag</option>
<option>00:00</option>
<option>00:30</option>
<option>01:00</option>
<option>01:30</option>
<option>02:00</option>
<option>02:30</option>
<option>03:00</option>
<option>03:30</option>
<option>04:00</option>
<option>04:30</option>
<option>05:00</option>
<option>05:30</option>
<option>06:00</option>
<option>06:30</option>
<option>07:00</option>
<option>07:30</option>
<option>08:00</option>
<option>08:30</option>
<option>09:00</option>
<option>09:30</option>
<option>10:00</option>
<option>10:30</option>
<option>11:00</option>
<option>11:30</option>
<option>12:00</option>
<option>12:30</option>
<option>13:00</option>
<option>13:30</option>
<option>14:00</option>
<option>14:30</option>
<option>15:00</option>
<option>15:30</option>
<option>16:00</option>
<option>16:30</option>
<option>17:00</option>
<option>17:30</option>
<option>18:00</option>
<option>18:30</option>
<option>19:00</option>
<option>19:30</option>
<option>20:00</option>
<option>20:30</option>
<option>21:00</option>
<option>21:30</option>
<option>22:00</option>
<option>22:30</option>
<option>23:00</option>
<option>23:30</option>
</select><br />
Afspraak in het kort:
<input name="titel" type="text" class="textfield" id="titel" /><br />
Afspraak is in/op:
<input name="waar" type="text" class="textfield" id="waar" /><br />
Afspraak precies:
<textarea rows="10" cols="50" name="wat" id="wat"></textarea><br />
Afspraak is met:
<input name="wie" type="text" class="textfield" id="wie" /><br />
Opmerkingen:
<textarea rows="10" cols="50" name="opmerking" id="opmerking"></textarea><br />
<input type="submit" name="Submit" value="Plan afspraak" />
</div>
<div id="rechts">
<br />
<h2>Algemene info:</h2>
<script type="text/javascript">
document.write('Het is vandaag ');
document.write(maakDatum(new Date()));
document.write('.');
</script><br />
en het is nu: <script type="text/javascript">schrijfKlok()</script><br />
<br />
<h2>Profiel:</h2>
<a href="../member-index.php">Gebruiker home</a><br />
<a href="../member-profile.php">Profiel opties</a><br />
<a href="../logout.php">Uitloggen</a><br /><br />
<h2>Office:</h2>
<a href="../tiny_mce/full.html">nieuw tekstdocument maken</a><br />
<a href="../tiny_mce/documenten.php">tekstdocumenten bekijken</a><br /><br />
<h2>Bestanden:</h2>
<a href="../upload/file-upload.php">Bestand uploaden</a><br />
<a href="../upload/bestanden.php">Alle bestanden</a><br />
<a href="../upload/afbeeldingen.php">Afbeeldingen</a><br />
<a href="../upload/muziek.php">Muziek</a>
</div>
<div id="footer">
© Oliviercloud by Olivier.<br />
@2012 - NOW
</div>
</body>
</html>