$nimi = $sarakkeet_px[1] . " - " . $sarakkeet_px[2]; } else { $nimi = $sarakkeet_px[2]; } if (isset($teexls) and $teexls == "OK") { $worksheet->writeString($excelrivi, $pi, $nimi, $format_bold); } if (isset($teepdf) and $teepdf == "OK") { $pdf->draw_text($sisennys, $bottom, $nimi, $firstpage, $b); } } elseif ($pi > 2) { if (isset($teexls) and $teexls == "OK") { $worksheet->writeNumber($excelrivi, $pi - 2, (double) str_replace(" ", "", str_replace(",", ".", $arvo))); } if (isset($teepdf) and $teepdf == "OK") { $oikpos = $pdf->strlen($arvo, $p); $pdf->draw_text($leveysarray[$pi - 3] - $oikpos, $bottom, $arvo, $firstpage, $p); } } $pi++; } if (isset($teexls) and $teexls == "OK") { $excelrivi++; } if (isset($teepdf) and $teepdf == "OK") { $bottom -= $rivikork; } } } if ($toim == "TASOMUUTOS") { echo "<br><input type='submit' value='" . t("Anna tileille taso") . "'></form><br><br>";