blue-mouse
Member
Hi,
I have my own Front-end-template for list:
/com_fabrik/views/list/tmpl/default-2015-12-14-table-zlicz-pakiety-pdf1
this works as i need
I created also small modification of this template:
/com_fabrik/views/list/tmpl/default-2015-12-14-table-zlicz-pakiety-pdf1-printout
that i use as PDF-template
I have problem for lines with fabrik calculations, that are in default.php
one sample of this code is:
This generates lines for device-pieces called:
Pakiet przetwornika
...
Pakiet Backplane
as you can see on screenshoots.
I use custom_css.php
and css stylling for those calculations:
This what works nice for list-view, doesn't work for PDF template.
I need:
(calclabel), color:blue ----> on the left
(values=numbers), color:red ---->on the right
Have no idea how to do this.
Please help with any advice.
I have my own Front-end-template for list:
/com_fabrik/views/list/tmpl/default-2015-12-14-table-zlicz-pakiety-pdf1
this works as i need
I created also small modification of this template:
/com_fabrik/views/list/tmpl/default-2015-12-14-table-zlicz-pakiety-pdf1-printout
that i use as PDF-template
I have problem for lines with fabrik calculations, that are in default.php
one sample of this code is:
PHP:
<?php $j=0;
foreach ($this->calculations as $cal) {
if($j>=3 and $j<= 7) {
echo '<tr class="fabrik_calculations fab1_danka" >';
echo "<td>";
echo array_key_exists($groupedby, $cal->grouped) ? $cal->grouped[$groupedby] : $cal->calc;
echo "</td>";
echo "</tr>";
}
$j++;
}
echo " <div class='podkr1' style='margin-top: -7px; margin-bottom: -13px; text-align:right;'> </div>";
Pakiet przetwornika
...
Pakiet Backplane
as you can see on screenshoots.
I use custom_css.php
and css stylling for those calculations:
HTML:
.fabrikForm dt, .fabrikForm dd.splittotal {
clear:left;
width:282px;
font-weight: bold !important;
text-decoration: underline !important;
color: red !important;
text-align: left;
padding: 3px;
margin-bottom: -2px;
float:left;
}
.fabrikForm dd {
/* dankam width:350px; */
/* width:475px; */
width: 100%;
color: red !important;
font-weight: bold;
padding: 0px;
margin-top: -60px;
/* dankam testy tu sa pogrubione ilosci w kolorze czerwonym margin-left: -50px; */
}
.fabrikForm dd span.calclabel {
color: blue !important;
font-weight: normal !important;
}
.fabrikForm dd.splittotal {
font-weight: normal !important;
font-style: italic;
}
.fabrikForm td {
margin-top: -60px !important;
}
.fab1_danka
{
text-align: right;
}
.fab1_danka .calclabel {
float: left !important;
text-align: left !important;
}
This what works nice for list-view, doesn't work for PDF template.
I need:
(calclabel), color:blue ----> on the left
(values=numbers), color:red ---->on the right
Have no idea how to do this.
Please help with any advice.