<?xml version="1.0" encoding="utf-8" ?>
<FacileFormsPackage id="PDFDownloadThankYouPage" type="autoincrement" version="1.7.5 Stable (build 751)">
	<name>PDFDownloadThankYouPage</name>
	<title>PDF Download of submissions in the thank you page</title>
	<version>1.0</version>
	<creationDate>2012-01-17 16:45:37</creationDate>
	<author>My Name</author>
	<authorEmail>markus.bopp@crosstec.de</authorEmail>
	<authorUrl>http://www.crosstec.de</authorUrl>
	<description>PDF In Thank You Page</description>
	<copyright>This BreezingForms package is released under the GNU/GPL license</copyright>
	<form id="2">
		<package>QuickModeForms</package>
		<name>pdfdownloadthankyou</name>
		<title>PDF Download In Thank You Page</title>
		<width>400</width>
		<height>500</height>
		<pages>2</pages>
		<emailxml>4</emailxml>
		<template_code>[encoded data, 8988 characters]</template_code>		<template_code_processed>UXVpY2tNb2Rl</template_code_processed>		<template_areas>[encoded data, 6728 characters]</template_areas>		<script2cond>2</script2cond>
		<script2code>function ff_pdfdownloadthankyou_submitted(status\x2C message){if(status==0){ff_switchpage(2)\x3B}else{alert(message)\x3B}}</script2code>
		<piece2cond>2</piece2cond>
		<piece2code>if( JRequest::getInt( \x27ff_status\x27\x2C -1 ) == 0 ){\r\n  echo \x27\x3Cscript type=\x22text/javascript\x22\x3E\r\n\x3C!--\r\ndocument.getElementById(\x22pdf_download\x22).innerHTML = \x5C\x27\x3Ca href=\x22\x27.JURI::root(true).\x27/components/com_breezingforms/exports/\x27.basename(JFactory::getSession()-\x3Eget(\x27breezingforms.pdf.download\x27\x2C \x27\x27)).\x27\x22\x3EDOWNLOAD PDF\x3C/a\x3E\x5C\x27\x3B  \r\n//-\x3E\r\n\x3C/script\x3E\x27\x3B\r\n}</piece2code>
		<piece4cond>2</piece4cond>
		<piece4code>global $ff_compath\x3B\r\n\r\n        $file = JPATH_SITE . \x27/administrator/components/com_breezingforms/pdftpl/\x27 . $this-\x3Eformrow-\x3Ename . \x27_pdf_attachment.php\x27\x3B\r\n        if (!JFile::exists($file)) {\r\n            $file = JPATH_SITE . \x27/administrator/components/com_breezingforms/pdftpl/pdf_attachment.php\x27\x3B\r\n        }\r\n\r\n        $processed = array()\x3B\r\n        $xmldata = array()\x3B\r\n\r\n        $_xmldata = $this-\x3Exmldata\x3B\r\n        \r\n        foreach ($_xmldata as $data) {\r\n            $xmldata[] = $data\x3B\r\n        }\r\n\r\n        ob_start()\x3B\r\n        require($file)\x3B\r\n        $c = ob_get_contents()\x3B\r\n        ob_end_clean()\x3B\r\n\r\n        require_once(JPATH_SITE . \x27/administrator/components/com_breezingforms/libraries/tcpdf/tcpdf.php\x27)\x3B\r\n        $pdf = new TCPDF()\x3B\r\n        $pdf-\x3EsetPrintHeader(false)\x3B\r\n        $pdf-\x3EAddPage()\x3B\r\n        $pdf-\x3EwriteHTML($c)\x3B\r\n        mt_srand()\x3B\r\n        $pdfname = $ff_compath . \x27/exports/download-pdf-\x27 . date(\x27YmdHis\x27) . \x27-\x27 . mt_rand(0\x2C mt_getrandmax()) . \x27.pdf\x27\x3B\r\n        $pdf-\x3ElastPage()\x3B\r\n        $pdf-\x3EOutput($pdfname\x2C \x22F\x22)\x3B\r\n\r\n        JFactory::getSession()-\x3Eset(\x27breezingforms.pdf.download\x27\x2C $pdfname)\x3B</piece4code>
		<element id="17">
			<name>bfFakeName</name>
			<title>bfFakeTitle</title>
			<type></type>
			<logging>0</logging>
			<posx>0</posx>
			<posy>120</posy>
			<width>20</width>
			<height>20</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<script2cond>1</script2cond>
			<script2id>40</script2id>
			<script2name>ff_validate_submit</script2name>
		</element>
		<element id="18">
			<name>bfFakeName2</name>
			<title>bfFakeTitle2</title>
			<type></type>
			<logging>0</logging>
			<posx>0</posx>
			<posy>160</posy>
			<width>20</width>
			<height>20</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<script2cond>1</script2cond>
			<script2id>22</script2id>
			<script2name>ff_resetForm</script2name>
		</element>
		<element id="19">
			<name>bfFakeName3</name>
			<title>bfFakeTitle3</title>
			<type></type>
			<logging>0</logging>
			<posx>0</posx>
			<posy>200</posy>
			<width>20</width>
			<height>20</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<script2cond>1</script2cond>
			<script2id>39</script2id>
			<script2name>ff_validate_prevpage</script2name>
		</element>
		<element id="20">
			<name>bfFakeName4</name>
			<title>bfFakeTitle4</title>
			<type></type>
			<logging>0</logging>
			<posx>0</posx>
			<posy>240</posy>
			<width>20</width>
			<height>20</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<script2cond>1</script2cond>
			<script2id>37</script2id>
			<script2name>ff_validate_nextpage</script2name>
		</element>
		<element id="14">
			<name>name</name>
			<title>Name</title>
			<type>Text</type>
			<posx>0</posx>
			<posy>0</posy>
			<width>20</width>
			<height>20</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<script3cond>1</script3cond>
			<script3id>43</script3id>
			<script3name>ff_valuenotempty</script3name>
			<script3msg>Please enter your name</script3msg>
		</element>
		<element id="15">
			<name>emai</name>
			<title>Email</title>
			<type>Text</type>
			<posx>0</posx>
			<posy>40</posy>
			<width>20</width>
			<height>20</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<script3cond>1</script3cond>
			<script3id>41</script3id>
			<script3name>ff_validemail</script3name>
			<script3msg>Please enter a valid email address</script3msg>
		</element>
		<element id="16">
			<name>message</name>
			<title>Message</title>
			<type>Textarea</type>
			<posx>0</posx>
			<posy>80</posy>
			<width>20</width>
			<height>20</height>
			<mailback>0</mailback>
			<mailbackfile></mailbackfile>
			<script3cond>1</script3cond>
			<script3id>43</script3id>
			<script3name>ff_valuenotempty</script3name>
			<script3msg>Please enter a message</script3msg>
		</element>
	</form>
</FacileFormsPackage>
