Latex za izvoze: IZVOZ-68: Ce anketa vsebuje znak: »&« izvoz v PDF ne deluje
This commit is contained in:
parent
ddafd55127
commit
eba0905fca
@ -925,7 +925,12 @@ class LatexAnalysisElement{
|
||||
$text = str_replace('^','\textasciicircum{} ',$text);
|
||||
//$text = str_replace('_','\_ ',$text);
|
||||
$text = str_replace('_','\_',$text);
|
||||
$text = str_replace('~','\textasciitilde{} ',$text);
|
||||
$text = str_replace('~','\textasciitilde{} ',$text);
|
||||
if(strpos($text, '&')){ //ce je prisotno v besedilu &'
|
||||
$text = str_replace('&','\& ',$text);
|
||||
}else{
|
||||
$text = str_replace('&','\& ',$text);
|
||||
}
|
||||
|
||||
$andSymbolPresent = 0;
|
||||
$posAndSymbolPresent = strpos($text,'&');
|
||||
|
@ -1364,8 +1364,11 @@ class LatexDocument{
|
||||
$text = str_replace('^','\textasciicircum{} ',$text);
|
||||
$text = str_replace('_','\_ ',$text);
|
||||
$text = str_replace('~','\textasciitilde{} ',$text);
|
||||
$text = str_replace('&','\&',$text);
|
||||
$text = str_replace('&','\&',$text);
|
||||
if(strpos($text, '&')){ //ce je prisotno v besedilu &'
|
||||
$text = str_replace('&','\& ',$text);
|
||||
}else{
|
||||
$text = str_replace('&','\& ',$text);
|
||||
}
|
||||
$text = str_replace(' ','~',$text);
|
||||
//$text = str_replace('<','\textless ',$text);
|
||||
$text = str_replace('<',' \textless ',$text);
|
||||
|
@ -898,9 +898,12 @@ class LatexSurveyElement{
|
||||
$text = str_replace('€','\euro',$text);
|
||||
$text = str_replace('^','\textasciicircum{} ',$text);
|
||||
$text = str_replace('_','\_ ',$text);
|
||||
$text = str_replace('~','\textasciitilde{} ',$text);
|
||||
$text = str_replace('&','\&',$text);
|
||||
$text = str_replace('&','\&',$text);
|
||||
$text = str_replace('~','\textasciitilde{} ',$text);
|
||||
if(strpos($text, '&')){ //ce je prisotno v besedilu &'
|
||||
$text = str_replace('&','\& ',$text);
|
||||
}else{
|
||||
$text = str_replace('&','\& ',$text);
|
||||
}
|
||||
$text = str_replace(' ','~',$text);
|
||||
//$text = str_replace('<','\textless ',$text);
|
||||
$text = str_replace('<',' \textless ',$text);
|
||||
@ -2172,10 +2175,12 @@ class LatexSurveyElement{
|
||||
$loop_id = $loop_id_raw;
|
||||
|
||||
#za pridobitev stevila vrstic
|
||||
//echo "SELECT id, naslov, naslov2, variable, other FROM srv_vrednost WHERE spr_id='".$spremenljivke['id']."' ORDER BY vrstni_red";
|
||||
//echo "SELECT id, naslov, naslov2, variable, other FROM srv_vrednost WHERE spr_id='".$spremenljivke['id']."' ORDER BY vrstni_red </br>";
|
||||
$sqlVrednostiKombo = sisplet_query("SELECT id, naslov, naslov2, variable, other FROM srv_vrednost WHERE spr_id='".$spremenljivke['id']."' ORDER BY vrstni_red");
|
||||
$numRowsSql = mysqli_num_rows($sqlVrednostiKombo);
|
||||
//echo $numRowsSql."</br>";
|
||||
//echo $spremenljivke['id']."</br>";
|
||||
|
||||
#za pridobitev stevila vrstic - konec
|
||||
|
||||
#za pridobitev stevila stolpcev
|
||||
@ -2184,6 +2189,7 @@ class LatexSurveyElement{
|
||||
$numColSql = $rowStVrednost['count(*)']; //stevilo vseh stolpcev
|
||||
//echo "stevilo stolpcev: ".$numColSql."</br>";
|
||||
#za pridobitev stevila stolpcev - konec
|
||||
|
||||
//echo "presirokaTabela: ".$presirokaTabela."</br>";
|
||||
if($presirokaTabela==0){ //ce tabela ni presiroka
|
||||
$sqlSubGrid = sisplet_query("SELECT m.spr_id, s.tip FROM srv_grid_multiple m, srv_spremenljivka s WHERE m.parent='".$spremenljivke['id']."' AND m.spr_id=s.id ORDER BY m.vrstni_red"); //pridobimo spr_id in tip podvprasanj, ki sestavljajo kombinirano tabelo
|
||||
@ -2217,9 +2223,12 @@ class LatexSurveyElement{
|
||||
|
||||
//echo $sqlVsehVrednostiString."</br>";
|
||||
//echo $rowVrednosti['tip']."</br>";
|
||||
//echo $rowVrednosti['other']."</br>";
|
||||
//echo "Vrednost: ".$rowVrednosti['spr_id']."</br>";
|
||||
$sqlVsehVrednosti = sisplet_query($sqlVsehVrednostiString);
|
||||
//echo mysqli_num_rows($sqlVsehVrednosti)."</br>";
|
||||
|
||||
|
||||
|
||||
$roletaZabelezena = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user