Changeset 115
- Timestamp:
- Jun 2, 2011, 12:08:18 AM (13 years ago)
- Location:
- trunk/client
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/inc/hpdf403/html2pdf.class.php
r107 r115 5522 5522 // it msut take only one page 5523 5523 if ($this->_testTdInOnepage && $this->_subHtml->pdf->getPage()>1) { 5524 throw new HTML2PDF_exception(7);5524 // throw new HTML2PDF_exception(7); # tolto da eleonline 5525 5525 } 5526 5526 -
trunk/client/modules/Elezioni/crea_pagina.php
r114 r115 42 42 43 43 $datipdf=strip_tags($datipdf); 44 $cella=str_replace("</b>"," ",$cella);45 $cella=str_replace("<br />"," ",$cella);44 // $cella=str_replace("</b>"," ",$cella); 45 // $cella=str_replace("<br />"," ",$cella); 46 46 47 47 … … 101 101 { 102 102 103 $html .="< table style=\"margin: auto;\" cellspace=0 border=0 cellpadding=0><tr><td border=0>104 <img src=\"modules.php?name=Elezioni&file=foto&id_comune=".$id_comune."\" align=\"left\" alt=\"logo\" /> </td>";105 $html .= "< td border=0>$datipdf</td></tr></table><br/><br/>";103 $html .="<center><table><tr><td> 104 <img src=\"modules.php?name=Elezioni&file=foto&id_comune=".$id_comune."\" align=\"left\" alt=\"logo\" /> "; 105 $html .= "</td><td>$datipdf</td></td></table>"; 106 106 } 107 107 … … 148 148 $html .="<br/><span class=\"copy\"><i>Stampato: $data</i></span>"; 149 149 $html .="<br/><span class=\"copy\"><i>Eleonline by luciano apolito & roberto gigli - www.eleonline.it</i></span>"; 150 $html .="</ td></tr></table>";150 $html .="</center><br />"; 151 151 } 152 152 -
trunk/client/modules/Elezioni/gruppo.php
r113 r115 616 616 if (!isset($offsetsez)) $offsetsez=25; //lo 0 viene sostituito dal totale di sezioni presenti 617 617 if (!isset($minsez)) $minsez=1; 618 echo "<form id=\"voti\" method=\"post\" action=\"modules.php\">"; 619 echo "<div><input type=\"hidden\" name=\"name\" value=\"Elezioni\"></input>"; 620 echo "<input type=\"hidden\" name=\"op\" value=\"$op\"></input>"; 621 echo "<input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\"></input>"; 622 echo "<input type=\"hidden\" name=\"id_comune\" value=\"$id_comune\"></input>"; 623 echo "<table><tr><td>"._SCELTA." "._CONSULTAZIONE.": <select name=\"id_gruppo\">"; 624 while(list($id_rif,$descrizione,$num_lis) = mysql_fetch_row($res_lis)) { 625 if (!$id_gruppo) $id_gruppo=$id_rif; 626 $sel = ($id_rif == $id_gruppo) ? "selected=\"selected\"" : ""; 627 echo "<option value=\"$id_rif\" $sel>"; 628 for ($j=strlen($num_lis);$j<2;$j++) { echo " ";} 629 echo $num_lis.") ".strip_tags(substr($descrizione,0,50))."</option>"; 630 } 631 echo "</select></td></tr>"; 632 echo "<tr><td>"._VIS_PERC.": <input type=\"checkbox\" name=\"perc\" value=\"true\""; 633 if($perc=='true') echo " checked=\"true\""; 634 echo "></td>"; 635 echo "<td><input type=\"submit\" name=\"update\" value=\""._OK."\"></td></tr></table></form>"; 618 if (!$csv){ 619 echo "<div><h5>$pagina</h5></div>"; 620 echo "<form id=\"voti\" method=\"post\" action=\"modules.php\">"; 621 echo "<div style=\"text-align:left;width:700px;margin:auto;font-size:12px \"> 622 <input type=\"hidden\" name=\"name\" value=\"Elezioni\"></input>"; 623 echo "<input type=\"hidden\" name=\"op\" value=\"$op\"></input>"; 624 echo "<input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\"></input>"; 625 echo "<input type=\"hidden\" name=\"id_comune\" value=\"$id_comune\"></input>"; 626 echo ""._SCELTA." "._CONSULTAZIONE.": <select name=\"id_gruppo\">"; 627 while(list($id_rif,$descrizione,$num_lis) = mysql_fetch_row($res_lis)) { 628 if (!$id_gruppo) $id_gruppo=$id_rif; 629 $sel = ($id_rif == $id_gruppo) ? "selected=\"selected\"" : ""; 630 echo "<option value=\"$id_rif\" $sel>"; 631 for ($j=strlen($num_lis);$j<2;$j++) { echo " ";} 632 echo $num_lis.") ".strip_tags(substr($descrizione,0,50))."</option>"; 633 } 634 echo "</select>"; 635 echo "<br />"._VIS_PERC.": <input type=\"checkbox\" name=\"perc\" value=\"true\""; 636 if($perc=='true') echo " checked=\"true\""; 637 echo ">"; 638 echo "<br /><input type=\"submit\" name=\"update\" value=\""._RICARICA."\"></form></div>"; 639 640 641 642 } 643 636 644 $res_ref= mysql_query("select num_gruppo,descrizione from ".$prefix."_ele_gruppo where id_gruppo=$id_gruppo", $dbi); 637 645 $res = mysql_query("select $tab2, t1.num_gruppo, t1.descrizione , t1.simbolo, … … 648 656 $num_sez=mysql_num_rows($res); 649 657 list($num_gruppo,$descr)= mysql_fetch_row($res_ref); 650 echo "<table><tr><td><b>Referendum n. ".$num_gruppo.") </b></td><td>".$descr."</td></tr></table></form>"; 658 659 if (!$csv){ 660 # stampa 661 662 $datipdf="<b>"._COMUNE." $descr_comune</b> - "._RISULTATI.": $descr_cons<br/><b>$pagina</b><br/><br/> "; 663 $datipdf .="<br/><b>Referendum n. ".$num_gruppo." </b><br/>".$descr.""; 664 echo "<div style=\"text-align:right;width:900px;margin-left:10px;margin-right:20px;font-size:12px \">"._ESPORTA."<br />"; 665 666 echo "<a href=\"modules.php?name=Elezioni&op=$op&id_cons_gen=$id_cons_gen&id_comune=$id_comune&csv=1&perc=$perc&id_gruppo=$id_gruppo&datipdf=$datipdf\" ><img class=\"image\" src=\"modules/Elezioni/images/printer.gif\" alt=\"Stampa\" /></a>"; 667 echo "<a href=\"modules.php?name=Elezioni&op=$op&id_cons_gen=$id_cons_gen&id_comune=$id_comune&csv=1&perc=$perc&id_gruppo=$id_gruppo&xls=1&datipdf=$datipdf\" ><img class=\"image\" src=\"modules/Elezioni/images/csv.gif\" alt=\"Export Csv\" /></a>"; 668 669 echo "<a href=\"modules.php?name=Elezioni&op=$op&id_cons_gen=$id_cons_gen&id_comune=$id_comune&csv=1&perc=$perc&id_gruppo=$id_gruppo&pdf=1&datipdf=$datipdf\" ><img class=\"image\" src=\"modules/Elezioni/images/pdf.gif\" alt=\"Export Pdf\" /></a>"; 670 671 echo "</div>"; 672 673 674 // numero sezioni scrutinate 675 $res4 = mysql_query("select t3.* from ".$prefix."_ele_voti_ref as t3 left join ".$prefix."_ele_sezioni as t1 on t3.id_sez=t1.id_sez left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t3.id_cons='$id_cons' group by t3.id_sez ",$dbi); 676 $numero=mysql_num_rows($res4); 677 $res5 = mysql_query("select t1.* from ".$prefix."_ele_sezioni as t1 left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t1.id_cons='$id_cons' ",$dbi); 678 $sezioni=mysql_num_rows($res5); 679 680 if ($numero!=0) echo "<h5><i> "._SEZSCRU." $numero "._SU." $sezioni </i></h5>"; 681 682 } 683 684 685 686 687 688 if (!$csv)echo "<b>Referendum n. ".$num_gruppo." </b><br />".$descr.""; 689 651 690 $y=1; 652 691 $ar[0][0]=$tipo2; … … 681 720 $ar[$num_circ][0]=$num_circ."<br />".$desc_circ; 682 721 if($validi){ 683 $ar[$num_circ][$i++]= $perc=='true' ? $si."<br /><span class=\"red\"> ".number_format($si*100/$validi,2)."%</span>":$si;684 $ar[$num_circ][$i++]= $perc=='true' ? $no."<br /><span class=\"red\"> ".number_format($no*100/$validi,2)."%</span>":$no;722 $ar[$num_circ][$i++]= $perc=='true' ? $si."<br /><span class=\"red\"><i>".number_format($si*100/$validi,2)."%</i></span>":$si; 723 $ar[$num_circ][$i++]= $perc=='true' ? $no."<br /><span class=\"red\"><i>".number_format($no*100/$validi,2)."%</i></span>":$no; 685 724 }else{ 686 $ar[$num_circ][$i++]= $perc=='true' ? $si."<br /><span class=\"red\"> 0.00%</span>":$si;687 $ar[$num_circ][$i++]= $perc=='true' ? $no."<br /><span class=\"red\"> 0.00%</span>":$no;725 $ar[$num_circ][$i++]= $perc=='true' ? $si."<br /><span class=\"red\"><i>0.00%</i></span>":$si; 726 $ar[$num_circ][$i++]= $perc=='true' ? $no."<br /><span class=\"red\"><i>0.00%</i></span>":$no; 688 727 } 689 728 if($votanti){ 690 $ar[$num_circ][$i++]= $perc=='true' ? $validi."<br /><span class=\"red\"> ".number_format($validi*100/$votanti,2)."%</span>":$validi;691 $ar[$num_circ][$i++]= $perc=='true' ? $nulli."<br /><span class=\"red\"> ".number_format($nulli*100/$votanti,2)."%</span>":$nulli;692 $ar[$num_circ][$i++]= $perc=='true' ? $bianchi."<br /><span class=\"red\"> ".number_format($bianchi*100/$votanti,2)."%</span>":$bianchi;693 $ar[$num_circ][$i++]= $perc=='true' ? $contestati."<br /><span class=\"red\"> ".number_format($contestati*100/$votanti,2)."%</span>":$contestati;729 $ar[$num_circ][$i++]= $perc=='true' ? $validi."<br /><span class=\"red\"><i>".number_format($validi*100/$votanti,2)."%</i></span>":$validi; 730 $ar[$num_circ][$i++]= $perc=='true' ? $nulli."<br /><span class=\"red\"><i>".number_format($nulli*100/$votanti,2)."%</i></span>":$nulli; 731 $ar[$num_circ][$i++]= $perc=='true' ? $bianchi."<br /><span class=\"red\"><i>".number_format($bianchi*100/$votanti,2)."%</i></span>":$bianchi; 732 $ar[$num_circ][$i++]= $perc=='true' ? $contestati."<br /><span class=\"red\"><i>".number_format($contestati*100/$votanti,2)."%</i></span>":$contestati; 694 733 }else{ 695 $ar[$num_circ][$i++]= $perc=='true' ? $validi."<br /><span class=\"red\"> 0.00%</span>":$validi;696 $ar[$num_circ][$i++]= $perc=='true' ? $nulli."<br /><span class=\"red\"> 0.00%</span>":$nulli;697 $ar[$num_circ][$i++]= $perc=='true' ? $bianchi."<br /><span class=\"red\"> 0.00%</span>":$bianchi;698 $ar[$num_circ][$i++]= $perc=='true' ? $contestati."<br /><span class=\"red\"> 0.00%</span>":$contestati;734 $ar[$num_circ][$i++]= $perc=='true' ? $validi."<br /><span class=\"red\"><i>0.00%</i></span>":$validi; 735 $ar[$num_circ][$i++]= $perc=='true' ? $nulli."<br /><span class=\"red\"><i>0.00%</i></span>":$nulli; 736 $ar[$num_circ][$i++]= $perc=='true' ? $bianchi."<br /><span class=\"red\"><i>0.00%</i></span>":$bianchi; 737 $ar[$num_circ][$i++]= $perc=='true' ? $contestati."<br /><span class=\"red\"><i>0.00%</i></span>":$contestati; 699 738 } 700 739 }
Note:
See TracChangeset
for help on using the changeset viewer.