Changeset 394 for trunk/admin/modules/Elezioni/ele_spoglio.php
- Timestamp:
- May 21, 2023, 1:46:40 AM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_spoglio.php
r392 r394 670 670 671 671 function finale($id_cons,$do,$id_circ,$id_sede,$id_sez,$ops){ 672 global $aid, $prefix, $dbi,$id_cons_gen,$genere,$votog,$fascia,$limite ;672 global $aid, $prefix, $dbi,$id_cons_gen,$genere,$votog,$fascia,$limite,$scrtest; 673 673 //////////////////////////////////////////// 674 674 // da qua va la sezione per i voti finali … … 676 676 $bgcolor1="#7777ff"; 677 677 $bgcolor2=$_SESSION['bgcolor2']; 678 679 680 681 echo "<form name=\"spogliovoti\" data-ajax=\"false\" action=\"modules/Elezioni/salva_voti.php\">" 682 ."<input type=\"hidden\" name=\"op\" value=\"rec_finale\">"; 683 echo "<input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\">" 684 ."<input type=\"hidden\" name=\"id_cons\" value=\"$id_cons\">" 685 ."<input type=\"hidden\" name=\"id_sez\" value=\"$id_sez\">" 686 ."<input type=\"hidden\" name=\"id_circ\" value=\"$id_circ\">" 687 ."<input type=\"hidden\" name=\"id_sede\" value=\"$id_sede\">"; 678 echo "<SCRIPT type=\"text/javascript\">\n\n<!--\n" 679 ."//-->\n"; 680 echo "function setsez() {\n"; 681 echo "document.getElementById('spogliovoti').submit(); }\n"; 682 echo "</script>\n"; 683 684 $sql="select * from ".$prefix."_ele_voti_lista where id_cons=$id_cons and id_sez=$id_sez and id_lista=0"; 685 $res = $dbi->prepare("$sql"); 686 $res->execute(); 687 $stato=$res->rowCount(); 688 if($stato) $stato='checked'; else $stato=''; 689 echo "<form name=\"spogliovoti\" id=\"spogliovoti\" data-ajax=\"false\" action=\"modules/Elezioni/salva_voti.php\">" 690 ."<input type=\"hidden\" name=\"op\" value=\"rec_finale\">"; 691 echo "<input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\">" 692 ."<input type=\"hidden\" name=\"id_cons\" value=\"$id_cons\">" 693 ."<input type=\"hidden\" name=\"id_sez\" value=\"$id_sez\">" 694 ."<input type=\"hidden\" name=\"id_circ\" value=\"$id_circ\">" 695 ."<input type=\"hidden\" name=\"id_sede\" value=\"$id_sede\">"; 696 if($scrtest) 697 echo "<div style=\"text-align:right;\">Considerare la sezione come scrutinata? <input type=\"checkbox\" name=\"scrutinata\" id=\"scrutinata\" value=\"true\" $stato onclick=\"setsez()\";> <br></div>"; 688 698 689 699 echo "<table border=\"0\" width=\"100%\" align=\"center\"><tr bgcolor=\"$bgcolor1\" align=\"center\">"; … … 750 760 751 761 function preferenze_gruppi($id_cons,$do,$id_circ,$id_sede,$id_sez,$ops){ 752 global $aid, $prefix, $dbi, $tipo_cons, $genere,$id_cons_gen,$sezi,$circo,$dettnulli ;762 global $aid, $prefix, $dbi, $tipo_cons, $genere,$id_cons_gen,$sezi,$circo,$dettnulli,$scrtest; 753 763 //////////////////////////////////////////// 754 764 // da qua va la sezione per le preferenze ai gruppi … … 938 948 ."<td colspan=\"2\"><b>"._VOTANTI."</b></td></tr>"; 939 949 }else{ 940 echo "<br><br> 950 echo "<br><br><table class=\"table-menu\" style=\"width: 100%; color: black\"><tr align=\"center\" bgcolor=\"$bgcolor1\">" 941 951 ."<td width=\"3%\"><b>"._NUM."</b></td>" 942 952 ."<td width=\"50%\"><b>"._GRUPPO."</b></td>"; … … 956 966 $tot_pref=0; 957 967 $totsg=0; 958 $pro=array();959 $pro['voti']='';960 $pro['solo_gruppo']='';961 968 while(list($id_cons2,$id_gruppo,$num_gruppo, $descr_gruppo, $simbolo) = $result->fetch(PDO::FETCH_NUM)){ 962 969 echo "<SCRIPT type=\"text/javascript\">\n\n<!--\n" … … 1012 1019 $res = $dbi->prepare("$sql"); 1013 1020 $res->execute(); 1014 if($res->rowCount())1015 $pro= $res->fetch(PDO::FETCH_BOTH);1021 $pro= $res->fetch(PDO::FETCH_BOTH); 1022 if(!$res->rowCount()) {$pro['voti']=''; $pro['solo_gruppo']='';} 1016 1023 $errcolor=''; 1017 1024 if(isset($errgrulis[$id_gruppo])) {$errcolor="style=\"background-color: rgb(255, 0, 0);\"";} … … 1046 1053 } 1047 1054 echo "</td></tr></table></center>"; 1048 } 1055 $scrtest=0; 1056 }else{$scrtest=1;} 1049 1057 if ($genere!=0){ 1050 1058 finale($id_cons,$do,$id_circ,$id_sede,$id_sez,$ops);
Note:
See TracChangeset
for help on using the changeset viewer.