Latex za izvoze: IZVOZ-53: % v odgovoru - izvoz ne deluje
This commit is contained in:
parent
c68eabe467
commit
eb739d10ae
@ -600,6 +600,11 @@ class LatexSurveyElement{
|
||||
}
|
||||
|
||||
if( ($export_format=='pdf'&&$fillablePdf==0)||$export_format=='rtf'){//ce je navaden pdf ali rtf dokument (brez moznosti izbire ali vnosa v polja)
|
||||
|
||||
if($data){
|
||||
$data = $this->encodeText($data);
|
||||
}
|
||||
|
||||
if($tip==1||$tip==6){ //radio ali multigrid z radio
|
||||
if($data){ //ce je odgovor respondenta
|
||||
if($enota!=11&&$enota!=12){ //ce ni VAS ali slikovni tip
|
||||
@ -738,7 +743,8 @@ class LatexSurveyElement{
|
||||
if($export_format == 'pdf'){
|
||||
if($data!=''){
|
||||
$TextBoxWithText = ' \\textcolor{crta}{\footnotesize{'.$data.'}} ';
|
||||
$emptyTextBox = $TextBoxWithText;
|
||||
//$TextBoxWithText = ' \\textcolor{crta}{\footnotesize{'.$this->encodeText($data).'}} ';
|
||||
$emptyTextBox = $TextBoxWithText;
|
||||
}else{
|
||||
if($this->export_subtype == 'q_empty' || $this->export_subtype == 'q_comments'){
|
||||
$emptyTextBox = ' \fbox{\parbox{'.$textboxWidth.'\textwidth}{ \hphantom{\hspace{'.$textboxWidth.'\textwidth}} }} ';
|
||||
@ -910,6 +916,7 @@ class LatexSurveyElement{
|
||||
//if($numOfUl!=0){
|
||||
if($numOfUl!=0 && $posLi !== false){ //ce imamo ul in li
|
||||
$text = str_replace('<ul>','\begin{itemize} ', $text);
|
||||
$text = str_replace('<ul','\begin{itemize} ', $text);
|
||||
$text = str_replace('<li>','\item ', $text);
|
||||
$text = str_replace('</ul>','\end{itemize} \ ', $text);
|
||||
}
|
||||
@ -1556,6 +1563,7 @@ class LatexSurveyElement{
|
||||
|
||||
if($spremenljivke['tip']==24){ //ce je kombinirana tabela
|
||||
//echo "stevilo stolpcev za izpis kombinirane podan: ".$numColSql."</br>";
|
||||
//print_r($data);
|
||||
//if($presirokaKombo == 1 && count($data) != 0 && ($enota == 2 || $enota == 6)){
|
||||
if($presirokaKombo == 1 && count($data) != 0 && (($enota == 2 || $enota == 6) || $export_data_type == 2 && $vodoravniOdgovoriTip[0] == 6)){
|
||||
$numColSql = 1 + 1;
|
||||
@ -1755,7 +1763,7 @@ class LatexSurveyElement{
|
||||
|
||||
if($export_data_type==0 || $export_data_type==1 || ($export_data_type==2 && $vodoravniOdgovoriTip[$j-1] != 6)){ //ce je razsirjen izvoz ALI je skrcen izvoz IN ni klasicna tabela
|
||||
$tex .= "& ".$this->getAnswerSymbol($export_format, $fillablePdf, $vodoravniOdgovoriTip[$j-1], $numColSql, 0, $data[$userAnswerIndex[$spremenljivke['id']]]);
|
||||
$test = "& ".$this->getAnswerSymbol($export_format, $fillablePdf, $vodoravniOdgovoriTip[$j-1], $numColSql, 0, $data[$userAnswerIndex[$spremenljivke['id']]]);
|
||||
//$test = "& ".$this->getAnswerSymbol($export_format, $fillablePdf, $vodoravniOdgovoriTip[$j-1], $numColSql, 0, $data[$userAnswerIndex[$spremenljivke['id']]]);
|
||||
//echo "testna koda $test z enoto $enota</br>";
|
||||
//echo "tip exp: ".$export_data_type."</br>";
|
||||
//echo $vodoravniOdgovoriTip[$j-1]."</br>";
|
||||
|
Loading…
x
Reference in New Issue
Block a user