blue-mouse
Member
Hi,
I have my own list template:
/com_fabrik/views/list/tmpl/default-2015-12-14-table-zlicz-pakiety-pdf1
that i use as:
- Front-end-template
and
-PDF template ( PDF Orientation: Portrait, PDF Paper size: a2)
This is very customized template - list view include only:
-box for searching (field: ccjom_cc_kk_karta_rejestr___zamow_symbol) --
Szukaj:
Nr zam.
- calculations ( some calculations are fabrik calculations for columns, some calculations are my own advanced calculations with code in file:
/com_fabrik/views/list/tmpl/default-2015-12-14-table-zlicz-pakiety-pdf1/default.php
A piece of list view is in screenshoot: Zaznaczenie_127.png
My own code in default.php is for example this piece of code:
I have a problem with line like this:
echo " <div class='tyt1'> Pakiety wej?? analogowych: - - - - - Add2 </div><br/>";
"wej??" - include polish characters : ?, ? that are well displayed on list_view but wrong on PDF-printout.
I try also add at the beginning of file default.php - line with code:
but this doesn't change nothing
On PDF-printout i get line:
echo " <div class='tyt1'> Pakiety wej?? analogowych: - - - - - Add2 </div><br/>";
without polish characters, i get instead them: "??".
Sample of PDF-output i have on screenshoot: Zaznaczenie_128.png.
I can copy directory:
/com_fabrik/views/list/tmpl/default-2015-12-14-table-zlicz-pakiety-pdf1
to directory:
/com_fabrik/views/list/tmpl/default-2015-12-14-table-zlicz-pakiety-pdf1-printout
And can do independent template for PDF-output.
But what and how to change code to get in PDF polish characters?
Now need to solve problem with lines like:
echo " <div class='tyt1'> Pakiety wej?? analogowych: - - - - - Add2 </div><br/>";
that are only in default.php file.
Link to list
Neccessary is login to site.
I have my own list template:
/com_fabrik/views/list/tmpl/default-2015-12-14-table-zlicz-pakiety-pdf1
that i use as:
- Front-end-template
and
-PDF template ( PDF Orientation: Portrait, PDF Paper size: a2)
This is very customized template - list view include only:
-box for searching (field: ccjom_cc_kk_karta_rejestr___zamow_symbol) --
Szukaj:
Nr zam.
- calculations ( some calculations are fabrik calculations for columns, some calculations are my own advanced calculations with code in file:
/com_fabrik/views/list/tmpl/default-2015-12-14-table-zlicz-pakiety-pdf1/default.php
A piece of list view is in screenshoot: Zaznaczenie_127.png
My own code in default.php is for example this piece of code:
PHP:
<?php $n=0;
foreach ($this->calculations as $cal) {
if($n >=7 and $n<8) {
echo '<tr class="fabrik_calculations">';
echo "<td>";
echo " <div class='podkr1' style='margin-top: -7px; margin-bottom: -13px; text-align:right;'> </div><br/>";
echo " <div class='tyt1'> Pakiety wej?? analogowych: - - - - - Add2 </div><br/>";
$db =& JFactory::getDBO();
for ($i=1; $i<=5; $i++){
if ($order1==0){
$query = "SELECT `is_pak_xxxx`, `field_pakiety_analogowe` FROM `ccjom_cc_kk_karta_rejestr` WHERE ( `rodzaj_karty_np_wzorzec`= '2' and `field_pakiety_analogowe`="$
}
else {
$query = "SELECT `is_pak_xxxx`, `field_pakiety_analogowe` FROM `ccjom_cc_kk_karta_rejestr` WHERE ( `zamow_symbol`=".$order1." and `field_pakiety_analogowe`=".$i$
}
I have a problem with line like this:
echo " <div class='tyt1'> Pakiety wej?? analogowych: - - - - - Add2 </div><br/>";
"wej??" - include polish characters : ?, ? that are well displayed on list_view but wrong on PDF-printout.
I try also add at the beginning of file default.php - line with code:
PHP:
header('Content-type: text/plain; charset=utf-8');
On PDF-printout i get line:
echo " <div class='tyt1'> Pakiety wej?? analogowych: - - - - - Add2 </div><br/>";
without polish characters, i get instead them: "??".
Sample of PDF-output i have on screenshoot: Zaznaczenie_128.png.
I can copy directory:
/com_fabrik/views/list/tmpl/default-2015-12-14-table-zlicz-pakiety-pdf1
to directory:
/com_fabrik/views/list/tmpl/default-2015-12-14-table-zlicz-pakiety-pdf1-printout
And can do independent template for PDF-output.
But what and how to change code to get in PDF polish characters?
Now need to solve problem with lines like:
echo " <div class='tyt1'> Pakiety wej?? analogowych: - - - - - Add2 </div><br/>";
that are only in default.php file.
Link to list
Neccessary is login to site.
Attachments
Last edited: