ontarget
Active Member
Hi i have a standard template for pdf output i have used on loads of projects - see below:
However i just updated to j385 and Fabrik 381 and the output on the pdf ignores <br> <p> tags leaving a squashed looking output! Any ideas why. Thanks
However i just updated to j385 and Fabrik 381 and the output on the pdf ignores <br> <p> tags leaving a squashed looking output! Any ideas why. Thanks
PHP:
<?php
/**
* Bootstrap List Template - Default
*
* @package Joomla
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
* @since 3.1
*/
// No direct access
defined('_JEXEC') or die('Restricted access');
$pageClass = $this->params->get('pageclass_sfx', '');
// Hannes
echo "<img src='logo.png' /><br/>";
echo "<h1>CPD Course Attendance Certificate </h1>";
echo $this->newv; // Get var from view
foreach ($this->rows as $group) {
// print_r($group);
echo "<br />";
echo '<h2>' . $group[0]->data->aed_reg_list2___first_name_raw." ";
echo $group[0]->data->aed_reg_list2___last_name_raw."<br />";
echo "Teaching Council Number: ".$group[0]->data->aed_reg_list2___school_tn_raw . '</h2>';
echo "<br />";
echo "<p><strong>COURSE:</strong> ".$group[0]->data->aed_reg_list2___course_title_raw."</p>";
echo "<p><strong>DATE:</strong> ".$group[0]->data->aed_reg_list2___course_date_raw."</p>";
echo "<p><strong>HOURS:</strong> ".$group[0]->data->aed_reg_list2___hours_raw."</p>";
echo "<p><strong>STATUS:</strong> ".$group[0]->data->aed_reg_list2___attended."</p>";
}
?>