- Timestamp:
- Feb 10, 2018, 7:54:13 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_configurazione.php
r247 r270 224 224 if($files!=''){ 225 225 $sql = mysql_query("SELECT id FROM ".$prefix."_ele_temi where tema='$files'", $dbi); 226 list($idwid) = mysql_fetch_row($sql); 227 $id = intval($idwid); 226 if($sql){ 227 list($idwid) = mysql_fetch_row($sql); 228 $id = intval($idwid); 229 } 228 230 if (empty($id)) { // inserisce widget db se non esiste 229 231 $result = mysql_query("insert into ".$prefix."_ele_temi (id,tema) values ( NULL,'$files')", $dbi); -
trunk/admin/modules/Elezioni/ele_voti.php
r269 r270 80 80 81 81 function stato_rilevazione($id_sez,$solosede){ 82 global $id_cons, $prefix, $dbi, $id_cons_gen,$status,$genere,$votol, $votog, $votoc,$idrefgruppo,$num_ril,$circo,$dettnulli ;82 global $id_cons, $prefix, $dbi, $id_cons_gen,$status,$genere,$votol, $votog, $votoc,$idrefgruppo,$num_ril,$circo,$dettnulli,$tipo_cons; 83 83 84 84 if($idrefgruppo and $genere==0) $perref= "and id_gruppo='$idrefgruppo'"; … … 187 187 # list($votigs)=mysql_fetch_row($res4); 188 188 if($votigs>0||$sololista==$validi) { 189 if (($votigs+$sololista)==$validi && (!$ votisolog || $votisolog==$sologruppo))189 if (($votigs+$sololista)==$validi && (!$sologruppo || $votisolog==($sologruppo*$dettnulli) || ($sologruppo<$validi and $validilista+$contestatilista+$votinullilista==0))) 190 190 {$status=3;$ops=-3;$gru=1;} 191 191 else {$gru=-1; $stret=4;} … … 209 209 $sezscru=mysql_num_rows($res4); 210 210 if($sezscru) { 211 if($genere==4 or $votog) $contrlis= ($votisolols==$sololista || $votisolols==0) ? 1:0;211 if($genere==4 or $votog) {$contrlis= ($votisolols==$sololista || $votisolols==0) ? 1:0; } 212 212 ################# 213 213 else { 214 214 $contrlis=($sologruppo+$validilista+$contestatilista+$votinullilista)==$validi ? 1:0; 215 if($contrlis and $disgiunto )215 if($contrlis and $disgiunto and ($sologruppo+$validilista+$contestatilista+$votinullilista)==0) 216 216 $contrlis=($votisolols==$sololista || $votisolols==0) ? 1:0; 217 if($contrlis )217 if($contrlis and $tipo_cons==18 or $tipo_cons==19) 218 218 while ( list($id_gruppo)=mysql_fetch_row($resref)) 219 219 { … … 222 222 list($vgruppo)=mysql_fetch_row($res3); 223 223 list($vliste)=mysql_fetch_row($res4); 224 if($vliste>$vgruppo) $contrlis=0;224 if($vliste>$vgruppo) {$contrlis=0 ;} 225 225 } 226 226 } … … 556 556 $bgcolor2=$_SESSION['bgcolor2']; 557 557 //controlla se sono stati inseriti i votanti 558 $result = mysql_query("SELECT preferenze, id_fascia, id_conf, disgiunto from ".$prefix."_ele_cons_comune where id_cons='$id_cons'",$dbi);559 list($numprefs,$fascia,$id_conf,$ disgiunto)=mysql_fetch_row($result);558 $result = mysql_query("SELECT preferenze, id_fascia, id_conf,solo_gruppo, disgiunto from ".$prefix."_ele_cons_comune where id_cons='$id_cons'",$dbi); 559 list($numprefs,$fascia,$id_conf,$flagsg,$disgiunto)=mysql_fetch_row($result); 560 560 ####### 06-11-2014 - circoscrizionali - nello spostamento ad altra sezione resta sullo stesso numero di lista anche se sono sezioni di diverse circoscrizioni 561 561 if ($circo and $id_lista){ … … 600 600 list($votisezcand)=mysql_fetch_row($result); 601 601 if((($fascia>$limite or $disgiunto) or !$id_conf) or $genere==4) 602 $result = mysql_query("SELECT voti,solo_lista ,0from ".$prefix."_ele_voti_lista where id_sez='$id_sez' and id_lista='$id_rif'", $dbi);602 $result = mysql_query("SELECT voti,solo_lista from ".$prefix."_ele_voti_lista where id_sez='$id_sez' and id_lista='$id_rif'", $dbi); 603 603 else{ 604 604 605 605 $result = mysql_query("SELECT id_gruppo from ".$prefix."_ele_lista where id_lista='$id_rif'", $dbi); 606 606 list($id_gruppo)=mysql_fetch_row($result); 607 $result = mysql_query("SELECT sum(voti),0 ,0from ".$prefix."_ele_voti_gruppo where id_sez='$id_sez' and id_gruppo='$id_gruppo'", $dbi);607 $result = mysql_query("SELECT sum(voti),0 from ".$prefix."_ele_voti_gruppo where id_sez='$id_sez' and id_gruppo='$id_gruppo'", $dbi); 608 608 } 609 list($votisezlis,$sgpl ,$vnpl)=mysql_fetch_row($result);609 list($votisezlis,$sgpl)=mysql_fetch_row($result); 610 610 if($votisezcand>($votisezlis*$numprefs)) 611 611 {$segna="style=\"background-color: #dd0000;\"";} … … 630 630 if ((!$id_lista)){$tab="_ele_voti_lista";} else {$tab="_ele_voti_candidati";} 631 631 if(($genere==4 or ($genere==5 and $votog)) and !$id_lista) 632 $result = mysql_query("SELECT sum(t1.voti),t2.validi, t2.solo_gruppo,t2.contestati_lista,t2.voti_nulli,t2.bianchi,t2.nulli,0,0,0 ,0from ".$prefix."_ele_sezioni as t2 left join ".$prefix.$tab." as t1 on (t1.id_sez=t2.id_sez) where t2.id_sez=$id_sez group by t1.id_sez",$dbi);632 $result = mysql_query("SELECT sum(t1.voti),t2.validi, t2.solo_gruppo,t2.contestati_lista,t2.voti_nulli,t2.bianchi,t2.nulli,0,0,0 from ".$prefix."_ele_sezioni as t2 left join ".$prefix.$tab." as t1 on (t1.id_sez=t2.id_sez) where t2.id_sez=$id_sez group by t1.id_sez",$dbi); 633 633 else 634 $result = mysql_query("SELECT sum(t1.voti),t2.validi_lista, t2.solo_gruppo,t2.contestati_lista,t2.voti_nulli_lista,t2.bianchi,t2.nulli,t2.contestati,t2.voti_nulli,t2.solo_gruppo,t2.solo_lista from ".$prefix."_ele_sezioni as t2 left join ".$prefix.$tab." as t1 on (t1.id_sez=t2.id_sez) where t2.id_sez='$id_sez' group by t1.id_sez",$dbi); 635 636 // aggiunte le variabili $sgpl e $vnpl per la gestione dei voti 1) al solo presidente per singola lista - 2) al solo presidente per singola lista perché nullo o contestato quello di lista 637 list( $voti_sez, $validi2, $sg,$cont2,$vnulli2,$bia2,$nul2,$con2,$vnul2,$sgpl,$vnpl) = mysql_fetch_row($result); 634 $result = mysql_query("SELECT sum(t1.voti),t2.validi_lista, t2.solo_gruppo,t2.contestati_lista,t2.voti_nulli_lista,t2.bianchi,t2.nulli,t2.contestati,t2.voti_nulli,t2.solo_gruppo from ".$prefix."_ele_sezioni as t2 left join ".$prefix.$tab." as t1 on (t1.id_sez=t2.id_sez) where t2.id_sez='$id_sez' group by t1.id_sez",$dbi); 635 // aggiunte le variabili $sgpl e $vnulli2 per la gestione dei voti 1) al solo presidente per singola lista - 2) al solo presidente per singola lista perché nullo o contestato quello di lista 636 $isscr= mysql_num_rows($result); 637 list( $voti_sez, $validi2, $sg,$cont2,$vnulli2,$bia2,$nul2,$con2,$vnul2,$sgpl) = mysql_fetch_row($result); 638 if(($genere==5 and !$disgiunto and $voti_sez and $flagsg and ($tipo_cons==18 or $tipo_cons==19))){ 639 $resg = mysql_query("SELECT sum(solo_gruppo) from ".$prefix."_ele_voti_gruppo where id_cons=$id_cons and id_sez=$id_sez",$dbi); 640 list($sgpl)=mysql_fetch_row($resg); 641 if ($sg != $sgpl) echo "<table class=\"table-menu\" style=\"width: 50%;\"><tr><td style=\"background-color: rgb(255, 0, 0); color: black; text-align: center\"><img src=\"modules/Elezioni/images/alert.gif\" align=\"middle\" alt=\"\"><br><b> "._ATT_UNI." ".$sgpl." "._ATT_TOT_UNI." ".$sg."</b><br></td></table>"; 642 } 638 643 $valista=$validi2; 639 644 if(!$id_lista or $genere==3){ //controllo di congruenza … … 660 665 list($votisezlis)=mysql_fetch_row($result); 661 666 if($votisezcand>($votisezlis*$numprefs)) 667 { 662 668 echo "<table class=\"table-menu\" style=\"width: 50%;\"><tr><td style=\"background-color: rgb(255, 0, 0); color: black; text-align: center\"><img src=\"modules/Elezioni/images/alert.gif\" align=\"middle\" alt=\"\"><br/><b> ATTENZIONE!<BR/>I voti di preferenza $votisezcand <br/>superano i voti di lista $votisezlis</b><br></td></tr></table>"; 669 } 663 670 } 664 671 #controllo voti a liste collegate <= voto di gruppo per voto non disgiunto 665 if($genere==5 and !$disgiunto){ 672 $errgrulis=array(); 673 if($genere==5 and !$disgiunto and ($tipo_cons==18 or $tipo_cons==19)){ 666 674 $resref = mysql_query("SELECT id_gruppo FROM ".$prefix."_ele_gruppo where id_cons='$id_cons'", $dbi); 667 675 while ( list($id_gruppo)=mysql_fetch_row($resref)) … … 676 684 list($dgruppo)=mysql_fetch_row($result); 677 685 echo "<table class=\"table-menu\" style=\"width: 50%;\"><tr><td style=\"background-color: rgb(255, 0, 0); color: black; text-align: center\"><img src=\"modules/Elezioni/images/alert.gif\" align=\"middle\" alt=\"\"><br/><b> ATTENZIONE!<BR/>I voti delle liste collegate<br/> superano i voti assegnati al gruppo $dgruppo </b><br></td></tr></table>"; 686 $errgrulis[$id_gruppo]=1; 678 687 } 679 688 } … … 745 754 } 746 755 }else { 747 $result1 = mysql_query("select t2.voti,t1.id_lista, descrizione,simbolo,num_lista,t2.nulli_lista,t2.solo_lista 756 $result1 = mysql_query("select t2.voti,t1.id_lista, descrizione,simbolo,num_lista,t2.nulli_lista,t2.solo_lista,t1.id_gruppo 748 757 from ".$prefix."_ele_lista as t1, ".$prefix."_ele_voti_lista as t2 749 758 where t1.id_cons='$id_cons' … … 753 762 $num_lista=mysql_num_rows($result1); 754 763 if (!$num_lista){ 755 $result1 = mysql_query("select '', t1.id_lista, descrizione,simbolo,num_lista,'',''756 from ".$prefix."_ele_lista as t1 where t1.id_cons='$id_cons' $circo757 order by t1.num_lista", $dbi);758 } 759 while (list($pro['voti'],$id_lista3,$descr_lista,$simb_lista,$num_lista,$vnpl,$slpl )=mysql_fetch_row($result1)){764 $result1 = mysql_query("select '',id_lista, descrizione,simbolo,num_lista,'','',id_gruppo 765 from ".$prefix."_ele_lista where id_cons='$id_cons' $circo 766 order by num_lista", $dbi); 767 } 768 while (list($pro['voti'],$id_lista3,$descr_lista,$simb_lista,$num_lista,$vnpl,$slpl,$rifgruppo)=mysql_fetch_row($result1)){ 760 769 echo "<tr bgcolor=\"$bgcolor2\">"; 761 770 // if ($genere<4 or $votoc){ 762 771 // } 763 772 $errcolor=''; 773 if(isset($errgrulis[$rifgruppo])) $errcolor="style=\"background-color: rgb(255, 0, 0);\""; 764 774 echo "<td align=\"center\"><b> $num_lista </b></td>" 765 775 ."<td align=\"left\"><b> $descr_lista</b></td>"; 766 776 $cond_sele="and id_lista=$id_lista3"; 767 echo "<td align=\"right\" ><input name=\"voti$i\" value=\"".$pro['voti']."\" size=\"7\" style=\"text-align:right\">";777 echo "<td align=\"right\" $errcolor><input name=\"voti$i\" value=\"".$pro['voti']."\" size=\"7\" style=\"text-align:right\">"; 768 778 if($dettnulli && !$disgiunto) echo "</td><td align=\"right\"><input name=\"vnpl$i\" value=\"".$vnpl."\" size=\"7\" style=\"text-align:right\">"; 769 779 if($disgiunto) echo "</td><td align=\"right\"><input name=\"slpl$i\" value=\"".$slpl."\" size=\"7\" style=\"text-align:right\">"; … … 1211 1221 $tot_voti=$validi+$nulli+$bianchi+$contestati+$votinulli; 1212 1222 $sololista=$voti_t-$tot_voti; 1213 $result= mysql_query("select disgiunto from ".$prefix."_ele_cons_comune where id_cons='$id_cons' ", $dbi);1214 list($ disgiunto)=mysql_fetch_row($result);1223 $result= mysql_query("select solo_gruppo,disgiunto from ".$prefix."_ele_cons_comune where id_cons='$id_cons' ", $dbi); 1224 list($flagsg,$disgiunto)=mysql_fetch_row($result); 1215 1225 $result= mysql_query("select * from ".$prefix."_ele_sezioni where id_cons='$id_cons' and id_sez='$id_sez' ", $dbi); 1216 1226 $ar=mysql_fetch_array($result); … … 1298 1308 } 1299 1309 }else{ 1310 $result= mysql_query("select solo_gruppo,disgiunto from ".$prefix."_ele_cons_comune where id_cons='$id_cons' ", $dbi); 1311 list($flagsg,$disgiunto)=mysql_fetch_row($result); 1300 1312 $res = mysql_query("SELECT sum(voti) FROM ".$prefix."_ele_voti_gruppo where id_cons='$id_cons' and id_sez='$id_sez'", $dbi); 1301 1313 list($voti_parz) = mysql_fetch_row($res); … … 1310 1322 echo "<td style=\"background-color: rgb(255, 0, 0); text-align:center\"><img src=\"modules/Elezioni/images/alert.gif\" align=\"middle\" alt=\"\"><br><b> "._ATT_VOTANTI." ".$tot." "._NO_TOT_VOTI." ".($validi+$nulli+$bianchi+$contestati+$votinulli)."</b><br></td>"; 1311 1323 } 1324 $resg=mysql_query("SELECT sum(voti) from ".$prefix."_ele_voti_lista where id_cons=$id_cons and id_sez=$id_sez",$dbi); 1325 list($voti_sez)=mysql_fetch_row($resg); 1326 if(($genere==5 and !$disgiunto and $voti_sez and $flagsg and ($tipo_cons==18 or $tipo_cons==19))){ 1327 1328 $resg = mysql_query("SELECT sum(solo_gruppo) from ".$prefix."_ele_voti_gruppo where id_cons=$id_cons and id_sez=$id_sez",$dbi); 1329 list($sgpl)=mysql_fetch_row($resg); 1330 $resg = mysql_query("SELECT solo_gruppo from ".$prefix."_ele_sezioni where id_cons=$id_cons and id_sez=$id_sez",$dbi); 1331 list($sg)=mysql_fetch_row($resg); 1332 if ($sg != $sgpl) echo "<table class=\"table-menu\" style=\"width: 50%;\"><tr><td style=\"background-color: rgb(255, 0, 0); color: black; text-align: center\"><img src=\"modules/Elezioni/images/alert.gif\" align=\"middle\" alt=\"\"><br><b> "._ATT_UNI." ".$sgpl." "._ATT_TOT_UNI." ".$sg."</b><br></td></table>"; 1333 } 1312 1334 #controllo voti a liste collegate <= voto di gruppo per voto non disgiunto 1313 if($genere==5 and !$disgiunto ){1335 if($genere==5 and !$disgiunto and ($tipo_cons==18 or $tipo_cons==19)){ 1314 1336 $resref = mysql_query("SELECT id_gruppo FROM ".$prefix."_ele_gruppo where id_cons='$id_cons'", $dbi); 1337 $errgrulis=array(); 1315 1338 while ( list($id_gruppo)=mysql_fetch_row($resref)) 1316 1339 { … … 1319 1342 list($vgruppo)=mysql_fetch_row($res3); 1320 1343 list($vliste)=mysql_fetch_row($res4); 1321 if($vliste>$vgruppo )1344 if($vliste>$vgruppo and ($tipo_cons=18 or $tipo_cons=19)) 1322 1345 { 1346 $errgrulis[$id_gruppo]=1; 1323 1347 $result = mysql_query("SELECT descrizione FROM ".$prefix."_ele_gruppo where id_gruppo='$id_gruppo'", $dbi); 1324 1348 list($dgruppo)=mysql_fetch_row($result); … … 1406 1430 $res = mysql_query("SELECT * FROM ".$prefix."_ele_voti_gruppo where id_cons='$id_cons' and id_sez='$id_sez' and id_gruppo='$id_gruppo' ", $dbi); 1407 1431 $pro= mysql_fetch_array($res, 3); 1408 echo "</td><td align=\"right\"><input name=\"voti$i\" value=\"".$pro['voti']."\" size=\"7\" style=\"text-align:right\"></td>"; 1432 $errcolor=''; 1433 if(isset($errgrulis[$id_gruppo])) $errcolor="style=\"background-color: rgb(255, 0, 0);\""; 1434 echo "</td><td align=\"right\" $errcolor><input name=\"voti$i\" value=\"".$pro['voti']."\" size=\"7\" style=\"text-align:right\"></td>"; 1409 1435 if($dettnulli) echo "</td><td align=\"right\"><input name=\"solog$i\" value=\"".$pro['solo_gruppo']."\" size=\"7\" style=\"text-align:right\"></td>"; 1410 1436 $tot_pref += $pro['voti']; -
trunk/admin/modules/Elezioni/foto.php
r32 r270 53 53 $sql = "select stemma from ".$prefix."_ele_conf where id_com='0'"; 54 54 $res = mysql_query($sql,$dbi); 55 $dati = mysql_fetch_array($res); 56 $stemma = $dati['stemma']; 55 if($res) 56 { 57 $dati = mysql_fetch_array($res); 58 $stemma = $dati['stemma']; 59 } 57 60 } 58 61 echo $stemma; -
trunk/admin/modules/Elezioni/funzionidata.php
r192 r270 42 42 } 43 43 44 function ore( $min,$max)44 function ore() 45 45 { 46 46 $ora=''; -
trunk/admin/modules/Elezioni/language/lang-it.php
r269 r270 19 19 define("_GRUPPOLOGO","Logo del Presidente"); 20 20 define("_PRESI","Presidente"); 21 define("_LISTA","Lista"); 22 define("_CANDIDATO","Candidato"); 21 23 define("_CONSI","Consigliere"); 22 24 define("_DESCRCONS","PROVINCIALI"); … … 35 37 define("_PRESI","Sindaco"); 36 38 define("_CONSI","Consigliere"); 39 define("_LISTA","Lista"); 40 define("_CANDIDATO","Candidato"); 37 41 define("_SOLO_GRUPPO","Voti al solo candidato Sindaco"); 38 42 define("_DESCRCONS","COMUNALI"); … … 42 46 define("_SOLO_GRUPPO","Voti al solo candidato Presidente"); 43 47 define("_DESCRCONS","CIRCOSCRIZIONALI"); 48 define("_CANDIDATO","Candidato"); 49 define("_LISTA","Lista"); 44 50 break; 45 51 case 5: … … 48 54 define("_GRUPPOLOGO","Logo del Sindaco"); 49 55 define("_PRESI","Sindaco"); 56 define("_LISTA","Lista"); 57 define("_CANDIDATO","Candidato"); 50 58 define("_DESCRCONS","BALLOTTAGGIO"); 51 59 break; … … 53 61 define("_CONSULTAZIONE","Consultazione Camera"); //genere 2 54 62 define("_GRUPPO","Lista"); 63 define("_CANDIDATO","Candidato"); 55 64 define("_GRUPPOLOGO","Logo della Lista"); 56 65 define("_DESCRCONS","CAMERA SENZA GRUPPI"); … … 59 68 define("_CONSULTAZIONE","Consultazione Senato"); //genere 2 60 69 define("_GRUPPO","Lista"); 70 define("_CANDIDATO","Candidato"); 61 71 define("_GRUPPOLOGO","Logo della Lista"); 62 72 define("_DESCRCONS","SENATO SENZA GRUPPI"); … … 65 75 define("_CONSULTAZIONE","Consultazione Parlamentare Europea"); //genere 4 66 76 define("_GRUPPO","Lista"); 77 define("_CANDIDATO","Candidato"); 67 78 define("_GRUPPOLOGO","Logo della Lista"); 68 79 define("_CONSI","Candidato Lista"); … … 73 84 define("_GRUPPO","Candidato Presidente"); 74 85 define("_CONSI","Candidato Lista"); 86 define("_LISTA","Lista"); 87 define("_CANDIDATO","Candidato"); 75 88 define("_SOLO_GRUPPO","Voti al solo candidato Presidente"); 76 89 define("_DESCRCONS","REGIONALI"); … … 79 92 define("_CONSULTAZIONE","Consultazione Senato"); //genere 2 80 93 define("_GRUPPO","Coalizione"); 94 define("_LISTA","Lista"); 95 define("_CANDIDATO","Candidato"); 81 96 define("_DESCRCONS","SENATO CON GRUPPI"); 82 97 break; … … 84 99 define("_CONSULTAZIONE","Consultazione Camera"); //genere 2 85 100 define("_GRUPPO","Coalizione"); 101 define("_LISTA","Lista"); 102 define("_CANDIDATO","Candidato"); 86 103 define("_DESCRCONS","CAMERA CON GRUPPI"); 87 104 break; … … 92 109 define("_GRUPPOLOGO","Logo del Presidente"); 93 110 define("_PRESI","Presidente"); 111 define("_LISTA","Lista"); 112 define("_CANDIDATO","Candidato"); 94 113 define("_CONSI","Consigliere"); 95 114 define("_DESCRCONS","PROVINCIALI"); … … 100 119 define("_GRUPPOLOGO","Logo del Presidente"); 101 120 define("_PRESI","Presidente"); 121 define("_LISTA","Lista"); 122 define("_CANDIDATO","Candidato"); 102 123 define("_DESCRCONS","BALLOTTAGGIO"); 103 124 break; … … 107 128 define("_GRUPPOLOGO","Logo della Lista"); 108 129 define("_CONSI","Candidato Lista"); 130 define("_LISTA","Lista"); 131 define("_CANDIDATO","Candidato"); 109 132 define("_DESCRCONS","EUROPEE"); 110 133 break; … … 112 135 define("_CONSULTAZIONE","Consultazione Camera"); //genere 2 113 136 define("_GRUPPO","Coalizione"); 137 define("_LISTA","Lista"); 138 define("_CANDIDATO","Candidato"); 114 139 define("_DESCRCONS","CAMERA CON GRUPPI"); 115 140 break; … … 117 142 define("_CONSULTAZIONE","Consultazione Senato"); //genere 2 118 143 define("_GRUPPO","Coalizione"); 144 define("_LISTA","Lista"); 145 define("_CANDIDATO","Candidato"); 119 146 define("_DESCRCONS","SENATO CON GRUPPI"); 120 147 break; … … 122 149 define("_CONSULTAZIONE","Consultazione Elezioni Regionali"); //genere 5 123 150 define("_GRUPPO","Candidato Presidente"); 151 define("_LISTA","Lista"); 152 define("_CANDIDATO","Candidato"); 124 153 define("_DESCRCONS","REGIONALI"); 125 154 break; … … 130 159 define("_LISTA","Lista collegata"); 131 160 define("_CANDIDATO","Listino bloccato"); 132 161 define("_ATT_UNI","Attenzione! Il dettaglio dei voti"); 162 define("_ATT_TOT_UNI","non corrisponde al totale per il solo candidato uninominale"); 133 163 define("_DESCRCONS","CAMERA"); 134 164 break; … … 139 169 define("_LISTA","Lista collegata"); 140 170 define("_CANDIDATO","Listino bloccato"); 141 171 define("_ATT_UNI","Attenzione! Il dettaglio dei voti"); 172 define("_ATT_TOT_UNI","non corrisponde al totale per il solo candidato uninominale"); 142 173 define("_DESCRCONS","CAMERA"); 143 174 break; … … 195 226 define("_TESTATA","Immagine per la testata"); 196 227 define("_BLOCCO","Visualizzare il blocco laterale?"); 228 197 229 define("_MULTICOMUNE","Gestione multicomune?"); 198 230 define("_MOBILE","Usare il tema per il cellulare?"); … … 328 360 define("_SEZNOS","Sezioni non scrutinate"); 329 361 define("_SEZSCR","Sezioni scrutinate"); 330 define("_LISTA","Lista");331 362 define("_PREFLISTA","Preferenze di Lista"); 332 define("_CANDIDATO","Candidato");333 363 define("_GESAMMIN","Gestione Amministrativa "); 334 364 define("_DESCR","Denominazione"); -
trunk/admin/versione.php
r269 r270 1 1 <?php 2 $versione = "2.0 rev 2 69";2 $versione = "2.0 rev 270"; 3 3 $version_number = $versione; 4 $version = "Eleonline $version_number (<i>Ultimo aggiornamento: 3febbraio 2018</i>)";4 $version = "Eleonline $version_number (<i>Ultimo aggiornamento: 10 febbraio 2018</i>)"; 5 5 6 6 ?> -
trunk/client/modules/Elezioni/blocchi/cerca_candidato.php
r238 r270 40 40 '; 41 41 42 $cerca_cand=$_SESSION['cerca_cand']; 42 if(isset($_SESSION['cerca_cand'])) $cerca_cand=$_SESSION['cerca_cand']; else $cerca_cand=""; 43 43 echo $cerca_cand; 44 44 $_SESSION['cerca_cand']=''; -
trunk/client/modules/Elezioni/candidato.php
r2 r270 136 136 137 137 $res = mysql_query("SELECT id_cons FROM ".$prefix."_ele_candidati where id_cons='$id_cons' and cognome like \"$lettera%\" ", $dbi); 138 $max = mysql_num_rows($res);138 if($res) $max = mysql_num_rows($res); 139 139 140 140 } -
trunk/client/modules/Elezioni/gruppo.php
r266 r270 181 181 else 182 182 $res_sez = mysql_query("SELECT count(num_sez),min(num_sez),max(num_sez) from ".$prefix."_ele_sezioni where id_cons=$id_cons",$dbi); 183 list($tot_sez,$numsezmin,$numsezmax)=mysql_fetch_row($res_sez);183 if($res_sez) list($tot_sez,$numsezmin,$numsezmax)=mysql_fetch_row($res_sez); 184 184 $res_sez = mysql_query("SELECT count(num_sez) from ".$prefix."_ele_sezioni where id_cons=$id_cons",$dbi); 185 185 list($tuttelesez)=mysql_fetch_row($res_sez); -
trunk/client/modules/Elezioni/index.php
r267 r270 956 956 // funzione visualizzazione delle liste per camera e senato con raggruppamenti/coalizioni 957 957 function liste(){ 958 global $id_cons,$id_cons_gen,$prefix,$dbi,$min,$offset,$op,$tipo_cons,$prev,$next,$votog,$votol,$circo ;958 global $id_cons,$id_cons_gen,$prefix,$dbi,$min,$offset,$op,$tipo_cons,$prev,$next,$votog,$votol,$circo,$genere,$id_comune; 959 959 //dati(); 960 960 $offset=10; -
trunk/client/modules/Elezioni/language/lang-it.php
r269 r270 48 48 define("_SEZNOS","Sezioni non scrutinate"); 49 49 define("_SEZSCR","Sezioni scrutinate"); 50 define("_LISTA","Lista");51 50 define("_PREFLISTA","Preferenze di Lista"); 52 define("_CANDIDATO","Candidato");53 51 define("_GESAMMIN","Gestione Amministrativa "); 54 52 define("_DESCR","Denominazione"); … … 218 216 define("_IDCIRC","Id collegio "); 219 217 define("_CIRC_N","Collegio n. "); 218 define("_LISTA","Lista"); 219 define("_CANDIDATO","Candidato"); 220 220 }else{ 221 221 define("_CIRCS","Circoscrizioni"); … … 288 288 define("_CONSIGLIO","Consiglio Provinciale"); 289 289 define("_ASOLO_GRUPPO","Solo Presidente"); 290 define("_LISTA","Lista"); 291 define("_CANDIDATO","Candidato"); 290 292 break; 291 293 case 2: … … 297 299 define("_SIMBOLO","Scheda"); 298 300 define("_PRESI","Quesito"); 301 define("_LISTA","Lista"); 302 define("_CANDIDATO","Candidato"); 303 define("_CONSI","Consigliere"); 299 304 break; 300 305 case 3: … … 311 316 define("_VOTI_LISTA","Voti di lista"); 312 317 define("_ASOLO_GRUPPO","Solo Sindaco"); 313 break; 314 case 4: 318 define("_LISTA","Lista"); 319 define("_CANDIDATO","Candidato"); 320 break; 321 case 4: 315 322 define("_SCELTA_CIR","Scegli la Circoscrizione"); 316 323 define("_CONSULTAZIONE","Consultazione Elezioni Circoscrizione"); … … 320 327 define("_CONSI","Consigliere"); 321 328 define("_CONSIGLIO","Consiglio Circoscrizionale"); 322 break; 329 define("_LISTA","Lista"); 330 define("_CANDIDATO","Candidato"); 331 break; 323 332 case 5: 324 333 define("_CONSULTAZIONE","Sessione di Ballottaggio"); … … 328 337 define("_GRUPPOLOGO","Logo del Sindaco"); 329 338 define("_PRESI","Presidente"); 339 define("_LISTA","Lista"); 340 define("_CANDIDATO","Candidato"); 341 define("_CONSI","Consigliere"); 330 342 break; 331 343 case 6: … … 336 348 define("_GRUPPO","Lista"); 337 349 define("_GRUPPOLOGO","Logo della Lista"); 350 define("_LISTA","Lista"); 351 define("_CANDIDATO","Candidato"); 352 define("_CONSI","Consigliere"); 338 353 break; 339 354 case 7: … … 344 359 define("_GRUPPO","Lista"); 345 360 define("_GRUPPOLOGO","Logo della Lista"); 361 define("_LISTA","Lista"); 362 define("_CANDIDATO","Candidato"); 363 define("_CONSI","Consigliere"); 346 364 break; 347 365 case 8: … … 354 372 define("_CONSI","Candidato Lista"); 355 373 define("_CONSIGLIO","Consiglio Europeo"); 374 define("_LISTA","Lista"); 375 define("_CANDIDATO","Candidato"); 356 376 break; 357 377 case 9: … … 364 384 define("_CONSI","Candidato Lista"); 365 385 define("_CONSIGLIO","Consiglio Regionale"); 386 define("_LISTA","Lista"); 387 define("_CANDIDATO","Candidato"); 366 388 break; 367 389 … … 376 398 define("_GRUPPOLOGO","Logo della Lista"); 377 399 define("_CONSIGLIO","Senatori"); 400 define("_LISTA","Lista"); 401 define("_CANDIDATO","Candidato"); 402 define("_CONSI","Consigliere"); 378 403 break; 379 404 … … 387 412 define("_GRUPPOLOGO","Logo della Lista"); 388 413 define("_CONSIGLIO","Deputati"); 414 define("_LISTA","Lista"); 415 define("_CANDIDATO","Candidato"); 416 define("_CONSI","Consigliere"); 389 417 break; 390 418 case 12: … … 400 428 define("_VOTI_LISTA","Voti di lista"); 401 429 define("_CONSIGLIO","Consiglio Provinciale"); 430 define("_CONSI","Consigliere"); 402 431 break; 403 432 case 13: … … 408 437 define("_GRUPPOLOGO","Logo del Presidente"); 409 438 define("_PRESI","Presidente"); 439 define("_LISTA","Lista"); 440 define("_CANDIDATO","Candidato"); 441 define("_CONSI","Consigliere"); 410 442 break; 411 443 case 14: … … 422 454 define("_GRUPPO","Coalizione"); 423 455 define("_DESCRCONS","CAMERA CON GRUPPI"); 456 define("_CONSI","Consigliere"); 424 457 break; 425 458 case 16: … … 428 461 define("_GRUPPO","Coalizione"); 429 462 define("_DESCRCONS","SENATO CON GRUPPI"); 463 define("_CONSI","Consigliere"); 430 464 break; 431 465 case 17: … … 434 468 define("_GRUPPO","Candidato Presidente"); 435 469 define("_DESCRCONS","REGIONALI"); 470 define("_CONSI","Consigliere"); 436 471 break; 437 472 case 18: … … 440 475 define("_GRUPPI","Candidati Uninominali"); 441 476 define("_SOLO_GRUPPO","Voti al solo Candidato Uninominale"); 477 define("_ASOLO_GRUPPO","Voti al solo</br>Candidato Uninominale"); 442 478 define("_LISTA","Lista collegata"); 443 479 define("_CANDIDATO","Listino bloccato"); 444 480 define("_CONSIGLIO","Consiglio"); 481 define("_SIMBOLO","Candidato<br />Uninominale"); 445 482 define("_DESCRCONS","CAMERA"); 446 break; 447 case 19: 483 define("_CONSI","Candidato"); 484 break; 485 case 19: 448 486 define("_CONSULTAZIONE","Consultazione Senato della Repubblica"); //genere 5 449 487 define("_GRUPPO","Candidato Uninominale"); 450 488 define("_GRUPPI","Candidati Uninominali"); 451 489 define("_SOLO_GRUPPO","Voti al solo Candidato Uninominale"); 490 define("_ASOLO_GRUPPO","Voti al solo</br>Candidato Uninominale"); 452 491 define("_LISTA","Lista collegata"); 453 492 define("_CANDIDATO","Listino bloccato"); 454 493 define("_CONSIGLIO","Consiglio"); 494 define("_SIMBOLO","Candidato<br />Uninominale"); 455 495 define("_DESCRCONS","CAMERA"); 496 define("_CONSI","Candidato"); 456 497 break; 457 498 -
trunk/client/versione.php
r269 r270 1 1 <?php 2 2 3 $versione = "2.0 rev 2 69";3 $versione = "2.0 rev 270"; 4 4 $version_number = $versione; 5 $version = "Eleonline $version_number (<i>Ultimo aggiornamento: 3febbraio 2018</i>)";5 $version = "Eleonline $version_number (<i>Ultimo aggiornamento: 10 febbraio 2018</i>)"; 6 6 7 7 ?>
Note:
See TracChangeset
for help on using the changeset viewer.