<?xml version="1.0" encoding="utf-8" ?>
<FacileFormsPackage id="Reserveringsaanvraag" type="autoincrement" version="1.7.2 Stable (build 733) [Trinity]">
	<name>Reservering</name>
	<title>Reserverings</title>
	<version>1</version>
	<creationDate>2011-02-03 09:19:44</creationDate>
	<author>Bo</author>
	<authorEmail>bo@fontijn.nl</authorEmail>
	<authorUrl>http://www.fontijn.nl</authorUrl>
	<description>Reserverings formulier</description>
	<copyright>This FacileForms package is released under the GNU/GPL license</copyright>
	<form id="1">
		<package>Reserveringsaanvraag</package>
		<name>Reserveringsaanvraag</name>
		<title>Reserveringsaanvraag</title>
		<class1>content_outline</class1>
		<width>400</width>
		<height>650</height>
		<script2cond>1</script2cond>
		<script2id>33</script2id>
		<script2name>ff_submittedhome</script2name>
		<piece1cond>2</piece1cond>
		<piece1code>// load the standard FacileForms library\r\n$this-\x3EexecPieceByName(\x27ff_InitLib\x27)\x3B\r\n\r\n// include the javascript functions for dates\r\necho (\x27\r\n  \x3Cscript language=\x22javascript\x22 src=\x22{mossite}/includes/js/mambojavascript.js\x22 type=\x22text/javascript\x22\x3E\x3C/script\x3E\r\n  \x3Cscript type=\x22text/javascript\x22 src=\x22{mossite}/includes/js/jscalendar-1.0/calendar_stripped.js\x22\x3E\x3C/script\x3E\r\n  \x3Cscript type=\x22text/javascript\x22 src=\x22{mossite}/includes/js/jscalendar-1.0/calendar-setup_stripped.js\x22\x3E\x3C/script\x3E\r\n  \x3Cscript type=\x22text/javascript\x22 src=\x22{mossite}/includes/js/jscalendar-1.0/lang/calendar-en.js\x22\x3E\x3C/script\x3E\r\n  \x3Clink rel=\x22stylesheet\x22 type=\x22text/css\x22 media=\x22all\x22 href=\x22{mossite}/includes/js/jscalendar-1.0/calendar-system.css\x22\x3E\r\n\x27)\x3B</piece1code>
		<piece2cond>2</piece2cond>
		<piece2code>// include to configure calendar behaviour\r\necho (\x27\r\n  \x3Cscript type=\x22text/javascript\x22\x3E\r\n    Calendar.setup(\r\n      {\r\n        inputField  : \x22ff_elem29\x22\x2C    // ID of the input field\r\n        ifFormat    : \x22%A\x2C %d %B\x2C %Y\x22\x2C // the date format\r\n        button      : \x22ff_elem50\x22\x2C    // ID of the button\r\n        singleClick : true\x2C            // close popup on single click\r\n        firstDay    : 1\x2C               // Monday as first day of the week\r\n        range       : [2005\x2C2020]      // min and max years allowed\r\n      }\r\n    )\x3B\r\n    Calendar.setup(\r\n      {\r\n        inputField  : \x22ff_elem30\x22\x2C    // ID of the input field\r\n        ifFormat    : \x22%A\x2C %d %B\x2C %Y\x22\x2C // the date format\r\n        button      : \x22ff_elem51\x22\x2C    // ID of the button\r\n        singleClick : true\x2C            // close popup on single click\r\n        firstDay    : 1\x2C               // Monday as first day of the week\r\n        range       : [2005\x2C2020]      // min and max years allowed\r\n      }\r\n    )\x3B\r\n  \x3C/script\x3E\r\n\x27)\x3B</piece2code>
		<piece3cond>2</piece3cond>
		<piece3code>// load the standard FacileForms library\r\n$this-\x3EexecPieceByName(\x27ff_InitLib\x27)\x3B\r\n\r\n// check attempt to post with invalid security code\r\nif (ff_getSubmit(\x27seccode\x27) != JFactory::getSession()-\x3Eget(\x27ff_seccode\x27\x2C\x27\x27)) {\r\n    $this-\x3Estatus = 1000\x3B // our custom error code\r\n    $this-\x3Emessage = \x22Invalid security code.\x22\x3B\r\n} // if\r\n\r\n// Get the date entered\r\n$startdate = \x27\x27\x3B\r\n$enddate   = \x27\x27\x3B\r\nforeach ($this-\x3Esubmitdata as $data)\r\n    switch ($data[1]) {\r\n        case \x27StartDate\x27 : $startdate = date(\x22l\x2C d F\x2C Y\x22\x2Cstrtotime($data[4]))\x3B\r\n                              break\x3B\r\n        case \x27EndDate\x27   : $enddate   = date(\x22l\x2C d F\x2C Y\x22\x2Cstrtotime($data[4]))\x3B\r\n                              break\x3B\r\n        default          : break\x3B\r\n    }\x3B // switch</piece3code>
		<element id="1">
			<name>algemene</name>
			<title>Algemene gegevens</title>
			<posx>0</posx>
			<posy>0</posy>
			<width>0</width>
			<height>0</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<data1>\x3Cstrong\x3EAlgemene gegevens\x3C/strong\x3E</data1>
		</element>
		<element id="2">
			<name></name>
			<title>Naam</title>
			<posx>0</posx>
			<posy>20</posy>
			<width>0</width>
			<height>0</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<data1>Naam *</data1>
		</element>
		<element id="3">
			<name>naam</name>
			<title>Naam</title>
			<type>Text</type>
			<class2>inputbox</class2>
			<posx>190</posx>
			<posy>20</posy>
			<width>30</width>
			<height>55</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<script3cond>1</script3cond>
			<script3id>43</script3id>
			<script3name>ff_valuenotempty</script3name>
			<script3msg>Vul uw naam in</script3msg>
		</element>
		<element id="4">
			<name></name>
			<title>Adres</title>
			<posx>0</posx>
			<posy>45</posy>
			<width>0</width>
			<height>0</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<data1>Adres</data1>
		</element>
		<element id="5">
			<name>adres</name>
			<title>Adres</title>
			<type>Text</type>
			<class2>inputbox</class2>
			<posx>190</posx>
			<posy>45</posy>
			<width>30</width>
			<height>55</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
		</element>
		<element id="6">
			<name></name>
			<title>Postcode</title>
			<posx>0</posx>
			<posy>70</posy>
			<width>0</width>
			<height>0</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<data1>Postcode *</data1>
		</element>
		<element id="7">
			<name>postcode</name>
			<title>Postcode</title>
			<type>Text</type>
			<class2>inputbox</class2>
			<posx>190</posx>
			<posy>70</posy>
			<width>30</width>
			<height>55</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<script3cond>1</script3cond>
			<script3id>43</script3id>
			<script3name>ff_valuenotempty</script3name>
			<script3msg>Vul uw postcode in</script3msg>
		</element>
		<element id="8">
			<name></name>
			<title>Plaats</title>
			<posx>0</posx>
			<posy>95</posy>
			<width>0</width>
			<height>0</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<data1>Plaats *</data1>
		</element>
		<element id="9">
			<name>plaats</name>
			<title>Plaats</title>
			<type>Text</type>
			<class2>inputbox</class2>
			<posx>190</posx>
			<posy>95</posy>
			<width>30</width>
			<height>55</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<script3cond>1</script3cond>
			<script3id>43</script3id>
			<script3name>ff_valuenotempty</script3name>
			<script3msg>Vul uw plaats in</script3msg>
		</element>
		<element id="10">
			<name></name>
			<title>Telefoon</title>
			<posx>0</posx>
			<posy>120</posy>
			<width>0</width>
			<height>0</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<data1>Telefoon</data1>
		</element>
		<element id="11">
			<name>telefoon</name>
			<title>Telefoon</title>
			<type>Text</type>
			<class2>inputbox</class2>
			<posx>190</posx>
			<posy>120</posy>
			<width>12</width>
			<height>45</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
		</element>
		<element id="12">
			<name></name>
			<title>Mijn E-mail adres</title>
			<posx>0</posx>
			<posy>145</posy>
			<width>0</width>
			<height>0</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<data1>Mijn E-mail adres *</data1>
		</element>
		<element id="13">
			<name>email</name>
			<title>Mijn E-mail adres</title>
			<type>Text</type>
			<class2>inputbox</class2>
			<posx>190</posx>
			<posy>145</posy>
			<width>30</width>
			<height>55</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<script3cond>1</script3cond>
			<script3id>41</script3id>
			<script3name>ff_validemail</script3name>
			<script3msg>vul uw email adres in</script3msg>
		</element>
		<element id="14">
			<name></name>
			<title>Aantal volwassenen</title>
			<posx>0</posx>
			<posy>170</posy>
			<width>0</width>
			<height>0</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<data1>Aantal volwassenen *</data1>
		</element>
		<element id="15">
			<name>volwassenen</name>
			<title>Aantal volwassenen</title>
			<type>Text</type>
			<class2>inputbox</class2>
			<posx>190</posx>
			<posy>170</posy>
			<width>6</width>
			<height>6</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<script3cond>1</script3cond>
			<script3id>12</script3id>
			<script3name>ff_integer</script3name>
			<script3msg>Vul het aantal volwassenen in</script3msg>
		</element>
		<element id="16">
			<name></name>
			<title>Aantal kinderen t/m 2 jaar</title>
			<posx>0</posx>
			<posy>195</posy>
			<width>0</width>
			<height>0</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<data1>Aantal kinderen t/m 2 jaar</data1>
		</element>
		<element id="19">
			<name>kinderen2jaar</name>
			<title>Aantal kinderen t/m 2 jaar</title>
			<type>Text</type>
			<class2>inputbox</class2>
			<posx>190</posx>
			<posy>195</posy>
			<width>6</width>
			<height>6</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
		</element>
		<element id="17">
			<name></name>
			<title>Aantal kinderen 3 t/m 12 jaar</title>
			<posx>0</posx>
			<posy>220</posy>
			<width>0</width>
			<height>0</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<data1>Aantal kinderen 3 t/m 12 jaar</data1>
		</element>
		<element id="18">
			<name>kinderen3jaar</name>
			<title>Aantal kinderen 3 t/m 12 jaar</title>
			<type>Text</type>
			<class2>inputbox</class2>
			<posx>190</posx>
			<posy>220</posy>
			<width>6</width>
			<height>6</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
		</element>
		<element id="20">
			<name></name>
			<title>verblijf</title>
			<posx>0</posx>
			<posy>250</posy>
			<width>0</width>
			<height>0</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<data1>\x3Cstrong\x3EVerblijf\x3C/strong\x3E</data1>
		</element>
		<element id="21">
			<name></name>
			<title>Accommodatie</title>
			<posx>0</posx>
			<posy>270</posy>
			<width>0</width>
			<height>0</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<data1>Accommodatie *</data1>
		</element>
		<element id="24">
			<name>Accommodatie</name>
			<title>Accommodatie</title>
			<type>Select List</type>
			<class2>inputbox</class2>
			<posx>190</posx>
			<posy>270</posy>
			<width>0</width>
			<height>0</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<data2>1\x3B---\x3B\r\n0\x3BHuurcaravan 4 persoons\x3BHuurcaravan 4 persoons\r\n0\x3BHuurcaravan 6 persoons\x3BHuurcaravan 6 persoons\r\n0\x3BKampeerplaats\x3BKampeerplaats\r\n0\x3BBoswachtershut\x3BBoswachtershut\r\n0\x3BHooikiep\x3BHooikiep\r\n0\x3BBoomhut\x3BBoomhut</data2>
			<script3cond>1</script3cond>
			<script3id>43</script3id>
			<script3name>ff_valuenotempty</script3name>
			<script3msg>Kies uw accommodatie</script3msg>
		</element>
		<element id="27">
			<name></name>
			<title>Datum aankomst</title>
			<posx>0</posx>
			<posy>320</posy>
			<width>0</width>
			<height>0</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<data1>Datum aankomst *</data1>
		</element>
		<element id="29">
			<name>aankomst</name>
			<title>Datum aankomst</title>
			<type>Text</type>
			<class2>inputbox</class2>
			<posx>190</posx>
			<posy>320</posy>
			<width>12</width>
			<height>12</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<data1>\x3C?php return date(\x27l\x2C d F\x2C Y\x27)\x3B ?\x3E</data1>
			<script3cond>1</script3cond>
			<script3id>43</script3id>
			<script3name>ff_valuenotempty</script3name>
			<script3msg>Vul uw aankomst datum in</script3msg>
		</element>
		<element id="28">
			<name></name>
			<title>Datum vertrek</title>
			<posx>0</posx>
			<posy>345</posy>
			<width>0</width>
			<height>0</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<data1>Datum vertrek *</data1>
		</element>
		<element id="30">
			<name>vertrek</name>
			<title>datum vertrek</title>
			<type>Text</type>
			<class2>inputbox</class2>
			<posx>190</posx>
			<posy>345</posy>
			<width>12</width>
			<height>12</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<data1>\x3C?php return date(\x27l\x2C d F\x2C Y\x27)\x3B ?\x3E</data1>
			<script3cond>1</script3cond>
			<script3id>43</script3id>
			<script3name>ff_valuenotempty</script3name>
			<script3msg>Vul uw datum vertrek in</script3msg>
		</element>
		<element id="31">
			<name>Caravan</name>
			<title>Caravan</title>
			<type>Checkbox</type>
			<posx>0</posx>
			<posy>375</posy>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<data1>Ja</data1>
			<data2>caravan</data2>
		</element>
		<element id="33">
			<name>tent</name>
			<title>tent</title>
			<type>Checkbox</type>
			<posx>120</posx>
			<posy>375</posy>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<data1>ja</data1>
			<data2>Tent</data2>
		</element>
		<element id="34">
			<name>camper</name>
			<title>camper</title>
			<type>Checkbox</type>
			<posx>220</posx>
			<posy>375</posy>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<data1>Ja</data1>
			<data2>camper</data2>
		</element>
		<element id="35">
			<name>stroom</name>
			<title>stroom</title>
			<type>Checkbox</type>
			<posx>0</posx>
			<posy>400</posy>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<data1>Ja</data1>
			<data2>stroom</data2>
		</element>
		<element id="36">
			<name>auto</name>
			<title>auto</title>
			<type>Checkbox</type>
			<posx>120</posx>
			<posy>400</posy>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<data1>auto</data1>
			<data2>auto</data2>
		</element>
		<element id="37">
			<name>bijzettentje</name>
			<title>bijzettentje</title>
			<type>Checkbox</type>
			<posx>220</posx>
			<posy>400</posy>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<data1>Ja</data1>
			<data2>bijzettentje</data2>
		</element>
		<element id="38">
			<name>ktvaansluiting</name>
			<title>KTV aansluiting</title>
			<type>Checkbox</type>
			<posx>0</posx>
			<posy>425</posy>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<data1>Ja</data1>
			<data2>KTV aansluiting</data2>
		</element>
		<element id="39">
			<name>wifi</name>
			<title>wifi</title>
			<type>Checkbox</type>
			<posx>120</posx>
			<posy>425</posy>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<data1>Ja</data1>
			<data2>Wifi</data2>
		</element>
		<element id="41">
			<name></name>
			<title>Overige opmerkingen</title>
			<posx>0</posx>
			<posy>460</posy>
			<width>0</width>
			<height>0</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<data1>\x3Cstrong\x3EOverige opmerkingen\x3C/strong\x3E</data1>
		</element>
		<element id="42">
			<name></name>
			<title>Eventuele vragen</title>
			<posx>0</posx>
			<posy>480</posy>
			<width>0</width>
			<height>0</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<data1>Vul hier eventuele vragen\x3Cbr/\x3E en opmerkingen in »</data1>
		</element>
		<element id="43">
			<name>opmerkingen</name>
			<title>Overige opmerkingen</title>
			<type>Textarea</type>
			<class2>inputbox</class2>
			<posx>195</posx>
			<posy>460</posy>
			<width>20</width>
			<height>5</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
		</element>
		<element id="44">
			<name>wissen</name>
			<title>Wissen</title>
			<type>Regular Button</type>
			<class2>button</class2>
			<posx>135</posx>
			<posy>560</posy>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<data2>Wissen</data2>
			<script2cond>1</script2cond>
			<script2id>22</script2id>
			<script2name>ff_resetForm</script2name>
			<script2flag1>1</script2flag1>
		</element>
		<element id="45">
			<name>verzenden</name>
			<title>verzenden</title>
			<type>Regular Button</type>
			<class2>button</class2>
			<posx>0</posx>
			<posy>560</posy>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<data2>Verzenden</data2>
			<script2cond>1</script2cond>
			<script2id>40</script2id>
			<script2name>ff_validate_submit</script2name>
			<script2flag1>1</script2flag1>
		</element>
		<element id="50">
			<name>SelectDate1</name>
			<title>Select arrival</title>
			<type>Regular Button</type>
			<class2>button</class2>
			<posx>310</posx>
			<posy>320</posy>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<data2>Selecteer</data2>
			<script2cond>2</script2cond>
			<script2code>// When button clicked\x2C call the javascript function to show the calendar\r\n// and pass the value back to the input text field.  \r\n// NB: the value \x22StartDate\x22 below must match the input text field name\r\n\r\nfunction ff_SelectDate1_action(element\x2C action)\r\n{\r\n    switch (action) {\r\n        case \x27click\x27:\r\n            return showCalendar(ff_getElementByName(\x27StartDate\x27).id\x2C \x27l\x2C d F\x2C Y\x27)\x3B\r\n            break\x3B\r\n        default:\x3B\r\n    } // switch\r\n}\x3B // ff_SelectDate1_action</script2code>
			<script2flag1>1</script2flag1>
		</element>
		<element id="51">
			<name>SelectDate2</name>
			<title>Select departure</title>
			<type>Regular Button</type>
			<class2>button</class2>
			<posx>310</posx>
			<posy>345</posy>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<data2>Selecteer</data2>
			<script2cond>2</script2cond>
			<script2code>// When button clicked\x2C call the javascript function to show the calendar\r\n// and pass the value back to the input text field.  \r\n// NB: the value \x22StartDate\x22 below must match the input text field name\r\n\r\nfunction ff_SelectDate2_action(element\x2C action)\r\n{\r\n    switch (action) {\r\n        case \x27click\x27:\r\n            return showCalendar(ff_getElementByName(\x27EndDate\x27).id\x2C \x27l\x2C d F\x2C Y\x27)\x3B\r\n            break\x3B\r\n        default:\x3B\r\n    } // switch\r\n} // ff_SelectDate2_action</script2code>
			<script2flag1>1</script2flag1>
		</element>
		<element id="52">
			<name>hond</name>
			<title>Hond</title>
			<type>Checkbox</type>
			<posx>220</posx>
			<posy>425</posy>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<data1>Ja</data1>
			<data2>Hond</data2>
		</element>
	</form>
</FacileFormsPackage>

