• Payment Plugins Poll

    We need your feedback on the need for updated payment plugins. Please go here and give us your feedback.

  • Joomla 5.1

    For running J!5.1 you must install Fabrik 4.1
    See also Announcements

  • Subscription and download (Fabrik 4.1 for J!4.2+ and J!5.1) are working now

    See Announcement
    Please post subscription questions and issues here

    We have resolved the issue with the J! updater and this will be fixed in the next release.

How to delete from custom PDF-template "ugly grey box"?

Status
Not open for further replies.
Hi,
I have my own PDF-template that produce something like on screenshoot.
I need to delete somethig what i have on top of printout "grey box"
I have also "table-label" on the top but this i can delete.

I have problem with "grey box".
What i really need is to start on the top of page with text:
echo "<strong><font color='blue'> Numer zam?wienia: $zam1 </font></strong><br/>";


The beginning of default.php in my custom pdf-template directory is:
PHP:
<?php
/**
* Fabrik List Template: Default
*
* @package     Joomla
* @subpackage  Fabrik
* @copyright   Copyright (C) 2005 Fabrik. All rights reserved.
* @license     http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
*/

// header('Content-type: text/plain; charset=utf-8');

// No direct access
defined('_JEXEC') or die;

$pageClass = $this->params->get('pageclass_sfx', '');
if ($pageClass !== '') :
        echo '<div class="' . $pageClass . '">';
endif;

if ($this->tablePicker != '') : ?>
        <div style="text-align:right"><?php echo JText::_('COM_FABRIK_LIST') ?>: <?php echo $this->tablePicker; ?></div>
<?php
endif;
if ($this->params->get('show_page_heading')) :
        echo '<h4>' . $this->params->get('page_heading') . '</h4>';
endif;
if ($this->getModel()->getParams()->get('show-title', 1)) :?>
        <h4><?php

echo $this->table->label; 
echo "Alter tittle - test";
?></h4>
<?php endif;?>

<?php echo $this->table->intro;?>

<form class="fabrikForm" action="<?php echo $this->table->action;?>" method="post" id="<?php echo $this->formid;?>" name="fabrikList">

<?php echo $this->loadTemplate('buttons');
if ($this->showFilters) :
        echo $this->loadTemplate('filter');
endif;

/*
* For some really ODD reason loading the headings template inside the group
* template causes an error as $this->_path['template'] doesnt cotain the correct
* path to this template - go figure!
*/

$this->headingstmpl = $this->loadTemplate('headings');
$this->showGroup = true;
?>

<div class="fabrikDataContainer <?php
echo $this->tableEmptyClass;

?>">
<?php foreach ($this->pluginBeforeList as $c) :
        echo $c;
endforeach;?>
        <div class="boxflex">
                <table class="fabrikList" id="list_<?php
echo $this->table->renderid;


?>" >
                 <tfoot>
                        <tr class="fabrik___heading">
                                <td colspan="<?php
echo count($this->headings);


?>">


                                        <?php
echo $this->nav;


?>
                                </td>
                        </tr>
                 </tfoot>

                        <?php
               
                $gCounter = 0;
                foreach ($this->rows as $groupedby => $group) :
                 if ($this->hasCalculations) : ?>
<tr class="fabrik_calculations">
                                       
<td colspan="6"><table class="rysio1"> 
                     <?php  $j=0;

echo '<tr class="fabrik_calculations">';
                                        echo "<td>"; 
$db =& JFactory::getDBO();
$order1 =FabrikHelperElement::filterValue(11356); //with 81
if (isset($order1)) {
$query = "SELECT  `ip2_zamowienie_symbol1` FROM  `ccjom_cc_kk_ip2_zamowienie`  WHERE  `id`= ".$order1."  ";
$db->setQuery($query);
$result = $db->loadResult();
$zam1 = $result;
}
if($order1==0){
$zam1 = "Razem wszystkie zam?wienia";
}

echo "<br/><br/>";
echo "<br/><br/>";
echo "<br/><br/>";
echo "<br/><br/>";
echo "<br/><br/>";


echo "<strong><font color='blue'> Numer zam?wienia: $zam1 </font></strong><br/>";
echo "<br/><br/>";
echo "<br/><br/>";


  echo "</td>";  
  echo "</tr>";  


  foreach ($this->calculations as $cal) {
if($j>0 and $j<= 1)  {
  echo '<tr class="fabrik_calculations fab1_danka">';
 

Attachments

  • Zaznaczenie_140.png
    Zaznaczenie_140.png
    103.8 KB · Views: 502
I assume this is some h4 CSS.
Do you have a link to the list and the name of your PDF layout?
 
List is here
I have my own Front-end-template for list:
/com_fabrik/views/list/tmpl/default-2015-12-14-table-zlicz-pakiety-pdf1
this works OK

Small modification of this template:
/com_fabrik/views/list/tmpl/default-2015-12-14-table-zlicz-pakiety-pdf1-printout
i use as PDF-template

Now, i have something a bit modified - my PDF-printout like on current screenshoot, but this "grey box" still is present - i need remove this
 

Attachments

  • Zaznaczenie_141.png
    Zaznaczenie_141.png
    89 KB · Views: 489
It is good advice.
I removed all the code:
PHP:
<tfoot>
                        <tr class="fabrik___heading">
                                <td colspan="<?php
echo count($this->headings);


?>">
                                        <?php
echo $this->nav;


?>
                                </td>
                        </tr>
                 </tfoot>

And now i don't have those "grey box".
My current PDF-printout is on screenshoot.

Very thanks Troester!
SOLVED
 

Attachments

  • Zaznaczenie_142.png
    Zaznaczenie_142.png
    91.3 KB · Views: 503
Last edited:
Status
Not open for further replies.
Back
Top