Changeset 118 for trunk/client/modules/Elezioni/gruppo.php
- Timestamp:
- Jun 6, 2011, 11:29:13 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/gruppo.php
r115 r118 35 35 if (isset($param['id_gruppo'])) $id_gruppo=intval($param['id_gruppo']); else $id_gruppo=''; 36 36 #if (isset($param['tipo_cons'])) $tipo_cons=intval($param['tipo_cons']); else $tipo_cons=''; 37 37 if (isset($param['pdf'])) $pdf=intval($param['pdf']); else $pdf=''; 38 if (isset($param['orienta'])) get_magic_quotes_gpc() ? $orienta=$param['orienta']:$orienta=addslashes($param['orienta']); else $orienta=''; 39 if (isset($param['datipdf'])) get_magic_quotes_gpc() ? $datipdf=$param['datipdf']:$datipdf=addslashes($param['datipdf']); else $datipdf=''; 40 if (isset($param['formato'])) get_magic_quotes_gpc() ? $formato=$param['formato']:$formato=addslashes($param['formato']); else $formato=''; 38 41 # anti-xss nov. 2009 39 42 $id_comune=htmlentities($id_comune); … … 46 49 $files=htmlentities($files); 47 50 $lettera=htmlentities($lettera); 48 49 51 $orienta=htmlentities($orienta); 52 $formato=htmlentities($formato); 50 53 51 54 … … 54 57 55 58 include("crea_pagina.php"); 59 56 60 $res = mysql_query("SELECT descrizione from ".$prefix."_ele_comuni where id_comune='$id_comune'" , $dbi); 57 61 list($descr_comune) = mysql_fetch_row($res); … … 117 121 $colonne=''; 118 122 } 123 124 if ($orienta) { 125 $land=''; 126 $port='checked'; 127 }else{ 128 $land='checked'; 129 $port=''; 130 } 131 132 if ($formato) { 133 $A3=''; 134 $A4='checked'; 135 }else{ 136 $A3='checked'; 137 $A4=''; 138 } 139 140 141 119 142 if ($genere>0) { //se non e' un referendum 120 143 … … 181 204 182 205 if (!$csv) echo "<div><h5>$pagina</h5></div>"; 183 if (!$csv) echo "<div style=\" text-align:left; margin-left:20px;\">";206 if (!$csv) echo "<div style=\" text-align:left; margin-left:20px;\">"; 184 207 185 208 if(strstr( $op,'candidato')){ … … 404 427 405 428 # verificare la stampa sulle circoscrizioni 406 echo "<div style=\"text-align:right;width:900px;margin-left:10px;margin-right:20px;font-size:12px \">"._ESPORTA."<br />"; 407 if($circo) echo "<a href=\"modules.php?name=Elezioni&op=$op&id_cons_gen=$id_cons_gen&id_comune=$id_comune&csv=1&orvert=$orvert&min=$min&offset=$offset&minsez=$minsez&offsetsez=$offsetsez&perc=$perc&id_lista=$id_lista&id_circ=$id_circ&datipdf=$datipdf\" ><img class=\"image\" src=\"modules/Elezioni/images/printer.gif\" alt=\"Stampa\" /></a>"; 408 else{ 429 430 echo "<div style=\"text-align:right;width:900px;margin-left:10px;margin-right:20px;font-size:12px; \">"; 431 echo "<table style=\"margin-right:10px;\"><tr><td>"._ESPORTA."<br />"; 432 if($circo){ echo "<a href=\"modules.php?name=Elezioni&op=$op&id_cons_gen=$id_cons_gen&id_comune=$id_comune&csv=1&orvert=$orvert&min=$min&offset=$offset&minsez=$minsez&offsetsez=$offsetsez&perc=$perc&id_lista=$id_lista&id_circ=$id_circ&datipdf=$datipdf\" ><img class=\"image\" src=\"modules/Elezioni/images/printer.gif\" alt=\"Stampa\" /></a>"; 433 }else{ 409 434 echo "<a href=\"modules.php?name=Elezioni&op=$op&id_cons_gen=$id_cons_gen&id_comune=$id_comune&csv=1&orvert=$orvert&min=$min&offset=$offset&minsez=$minsez&offsetsez=$offsetsez&perc=$perc&id_lista=$id_lista&datipdf=$datipdf\" ><img class=\"image\" src=\"modules/Elezioni/images/printer.gif\" alt=\"Stampa\" /></a>"; 410 435 echo "<a href=\"modules.php?name=Elezioni&op=$op&id_cons_gen=$id_cons_gen&id_comune=$id_comune&csv=1&orvert=$orvert&min=$min&offset=$offset&minsez=$minsez&offsetsez=$offsetsez&perc=$perc&id_lista=$id_lista&xls=1&datipdf=$datipdf\" ><img class=\"image\" src=\"modules/Elezioni/images/csv.gif\" alt=\"Export Csv\" /></a>"; 411 echo "<a href=\"modules.php?name=Elezioni&op=$op&id_cons_gen=$id_cons_gen&id_comune=$id_comune&csv=1&orvert=$orvert&min=$min&offset=$offset&minsez=$minsez&offsetsez=$offsetsez&perc=$perc&id_lista=$id_lista&pdf=1&datipdf=$datipdf\" ><img class=\"image\" src=\"modules/Elezioni/images/pdf.gif\" alt=\"Export Pdf\" /></a>"; 412 } 413 echo "</div>"; 436 //echo "<a href=\"modules.php?name=Elezioni&op=$op&id_cons_gen=$id_cons_gen&id_comune=$id_comune&csv=1&orvert=$orvert&min=$min&offset=$offset&minsez=$minsez&offsetsez=$offsetsez&perc=$perc&id_lista=$id_lista&pdf=1&datipdf=$datipdf\" ><img class=\"image\" src=\"modules/Elezioni/images/pdf.gif\" alt=\"Export Pdf\" /></a>"; 437 echo "<img class=\"image\" src=\"modules/Elezioni/images/rss.png\" alt=\"Export rss\" />"; 438 439 echo " </td></tr></table></form> "; 440 441 442 echo "<form id=\"pdf\" method=\"post\" action=\"modules.php\">"; 443 444 echo "<input type=\"hidden\" name=\"id_circ\" value=\"$id_circ\"></input>"; 445 echo "<input type=\"hidden\" name=\"op\" value=\"$op\"></input>"; 446 echo "<input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\"></input>"; 447 echo "<input type=\"hidden\" name=\"id_comune\" value=\"$id_comune\"></input>"; 448 echo "<input type=\"hidden\" name=\"csv\" value=\"1\"></input>"; 449 echo "<input type=\"hidden\" name=\"overt\" value=\"$overt\"></input>"; 450 echo "<input type=\"hidden\" name=\"min\" value=\"$min\"></input>"; 451 echo "<input type=\"hidden\" name=\"offset\" value=\"$id_offset\"></input>"; 452 echo "<input type=\"hidden\" name=\"minsez\" value=\"$minsez\"></input>"; 453 echo "<input type=\"hidden\" name=\"offsetsez\" value=\"$offsetsez\"></input>"; 454 echo "<input type=\"hidden\" name=\"perc\" value=\"$perc\"></input>"; 455 echo "<input type=\"hidden\" name=\"id_lista\" value=\"$id_lista\"></input>"; 456 echo "<input type=\"hidden\" name=\"pdf\" value=\"1\"></input>"; 457 echo "<input type=\"hidden\" name=\"datipdf\" value=\"$datipdf\"></input>"; 458 echo "<input type=\"hidden\" name=\"name\" value=\"$elezioni\"></input>"; 459 echo "<input type=\"hidden\" name=\"name\" value=\"Elezioni\"></input>"; 460 461 echo "<table style=\"margin-right:10px;\"><tr><td>"; 462 echo "<input type=\"image\" name=\"submit\" src=\"modules/Elezioni/images/pdf.gif\">"; 463 echo "</td><td>"; 464 echo "L <input type=\"radio\" name=\"orienta\" $land value=\"L\"></input>P <input 465 type=\"radio\" name=\"orienta\" $port value=\"P\"></input><br />"; 466 echo "A3<input type=\"radio\" name=\"formato\" $A3 value=\"A3\"></input>A4<input 467 type=\"radio\" name=\"formato\" $A4 value=\"A4\"></input>"; 468 469 470 echo " </td></tr></table></form> "; 471 472 473 } 474 475 476 477 echo "</div></br />"; 414 478 /* 479 415 480 if (!$circo) 416 481 echo "dalla $tipo3 n. <b>$minsez</b> alla $tipo3 n. <b>$offsetsez</b> di <b>$num_sez</b> $tipo2<br/><br/>"; … … 423 488 424 489 if (!$csv){ 425 echo "< div style=\"text-align:right;width:900px;margin-left:10px;margin-right:2px;font-size:12px \"><h5> Sezioni scrutinate";490 echo "<h5> Sezioni scrutinate"; 426 491 if ($tipo_cons!=4) echo ": $tot_scr su $tot_sez "; 427 echo "</h5> </div>";492 echo "</h5> "; 428 493 } 429 494 … … 662 727 $datipdf="<b>"._COMUNE." $descr_comune</b> - "._RISULTATI.": $descr_cons<br/><b>$pagina</b><br/><br/> "; 663 728 $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 />"; 729 echo "<div style=\"text-align:right;width:900px;margin-left:10px;margin-right:20px;font-size:12px \">"; 730 echo "<table style=\"margin-right:10px;\"><tr><td>"._ESPORTA."<br />"; 665 731 666 732 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 733 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 734 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 735 //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>"; 736 737 738 echo "<img class=\"image\" src=\"modules/Elezioni/images/rss.png\" alt=\"Export rss\" />"; 739 740 echo " </td></tr></table></form> "; 741 742 743 echo "<form id=\"pdf\" method=\"post\" action=\"modules.php\">"; 744 745 echo "<input type=\"hidden\" name=\"id_circ\" value=\"$id_circ\"></input>"; 746 echo "<input type=\"hidden\" name=\"op\" value=\"$op\"></input>"; 747 echo "<input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\"></input>"; 748 echo "<input type=\"hidden\" name=\"id_comune\" value=\"$id_comune\"></input>"; 749 echo "<input type=\"hidden\" name=\"csv\" value=\"1\"></input>"; 750 echo "<input type=\"hidden\" name=\"overt\" value=\"$overt\"></input>"; 751 echo "<input type=\"hidden\" name=\"min\" value=\"$min\"></input>"; 752 echo "<input type=\"hidden\" name=\"offset\" value=\"$id_offset\"></input>"; 753 echo "<input type=\"hidden\" name=\"minsez\" value=\"$minsez\"></input>"; 754 echo "<input type=\"hidden\" name=\"offsetsez\" value=\"$offsetsez\"></input>"; 755 echo "<input type=\"hidden\" name=\"perc\" value=\"$perc\"></input>"; 756 echo "<input type=\"hidden\" name=\"id_gruppo\" value=\"$id_gruppo\"></input>"; 757 echo "<input type=\"hidden\" name=\"pdf\" value=\"1\"></input>"; 758 echo "<input type=\"hidden\" name=\"datipdf\" value=\"$datipdf\"></input>"; 759 echo "<input type=\"hidden\" name=\"name\" value=\"$elezioni\"></input>"; 760 echo "<input type=\"hidden\" name=\"name\" value=\"Elezioni\"></input>"; 761 762 echo "<table style=\"margin-right:10px;\"><tr><td>"; 763 echo "<input type=\"image\" name=\"submit\" src=\"modules/Elezioni/images/pdf.gif\">"; 764 echo "</td><td>"; 765 echo "L <input type=\"radio\" name=\"orienta\" $land value=\"L\"></input>P <input 766 type=\"radio\" name=\"orienta\" $port value=\"P\"></input><br />"; 767 echo "A3<input type=\"radio\" name=\"formato\" $A3 value=\"A3\"></input>A4<input 768 type=\"radio\" name=\"formato\" $A4 value=\"A4\"></input>"; 769 770 771 echo " </td></tr></table></form> "; 772 773 774 775 776 777 778 779 780 671 781 echo "</div>"; 672 782
Note:
See TracChangeset
for help on using the changeset viewer.