Changeset 369 for trunk/admin
- Timestamp:
- May 23, 2022, 12:44:20 PM (3 years ago)
- Location:
- trunk/admin
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/admin.php
r361 r369 279 279 else { 280 280 $oggi=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-3,date("Y"))); 281 $sql="select t1.id_cons_gen from ".$prefix."_ele_consultazione as t1, ".$prefix."_ele_cons_comune as t2 where t1.id_cons_gen=t2.id_cons_gen and t2.id_comune=$id_comune and t1.data_fine>'$oggi' and t2.id_cons in (select id_cons from ".$prefix."_ele_operatori where aid='$aid' and id_sez>0 and permessi>0) limit 0,1";281 $sql="select t1.id_cons_gen from ".$prefix."_ele_consultazione as t1, ".$prefix."_ele_cons_comune as t2 where t1.id_cons_gen=t2.id_cons_gen and t2.id_comune=$id_comune and t1.data_fine>'$oggi' and t2.id_cons in (select id_cons from ".$prefix."_ele_operatori where aid='$aid' and permessi>0) limit 0,1"; # TEST: and id_sez>0 282 282 $rese = $dbi->prepare("$sql"); 283 283 $rese->execute(); … … 455 455 #include("TEST tema: $tema--"); 456 456 #include("modules/Elezioni/language/lang-".$_SESSION['lang'].".php"); 457 457 458 if(isset($id_cons_gen) and isset($id_comune)){ 458 459 if(!isset($id_cons)){ … … 491 492 # 492 493 #die("TEST: qui $aid $id_cons $id_sez ".$_SESSION['aid']); 494 493 495 if (isset($_SESSION['aid']) AND $_SESSION['remote']==$_SERVER['REMOTE_ADDR']) { 494 496 if($tema=='Futura2' and $op!='logout') -
trunk/admin/header.php
r360 r369 45 45 if($is_mobile && $nocell!=1){ 46 46 global $id_sez; 47 #####TEST sezione fissa da impostare iniziando con l'assegnazione del permesso all'operatore di sezione48 #$id_sez=3378;49 47 $tema="Futura2"; 50 48 } elseif (isset($_SESSION['tema'])) -
trunk/admin/modules/Elezioni/ele_spoglio.php
r366 r369 72 72 73 73 $riga=array(); 74 $rigat=array(); 74 $rigat=array(); 75 $uscita=0; 75 76 while (list($ora,$giorno)= $res->fetch(PDO::FETCH_NUM)){ 76 77 $y++; … … 95 96 $rigat[$y].= "</div>"; 96 97 $errvot1=0; 98 $numril=0; 99 97 100 for ($i=1;$i<=$max;$i++){ 98 101 $query="SELECT * FROM ".$prefix."_ele_voti_parziale as t1 left join ".$prefix."_ele_gruppo as t2 … … 112 115 $resril = $dbi->prepare("$sql"); 113 116 $resril->execute(); 114 list($numril)=$resril->fetch(PDO::FETCH_NUM); 117 list($tmpril)=$resril->fetch(PDO::FETCH_NUM); 118 if($tmpril>$numril) $numril=$tmpril; 115 119 if ($res2) 116 120 list($gruppo)= $res2->fetch(PDO::FETCH_NUM); … … 160 164 ."<input type=\"hidden\" name=\"id_gruppo\" value=\"$id_gruppo\"/>"; 161 165 $riga[$y].= "</span>"; 162 if (chisei($id_cons_gen)>=64 and $y==$numril) $riga[$y].= "<span class=\"td\" style=\"text-align: right;\" rowspan=\"1\" colspan=\"6\">"._DELETE." <input type=\"checkbox\" name=\"delete\" value=\"true\"/></span>";166 if (chisei($id_cons_gen)>=64 and ($y==$numril and $voti_t!='')) { $riga[$y].= "<span class=\"td\" style=\"text-align: right;\" rowspan=\"1\" colspan=\"6\">"._DELETE." <input type=\"checkbox\" name=\"delete\" value=\"true\"/></span>";} 163 167 else $riga[$y].= "<span class=\"td\" style=\"text-align: right;\" rowspan=\"1\" colspan=\"6\"><input type=\"hidden\" name=\"delete\" value=\"\"/></span>"; 164 168 $riga[$y].= "<span class=\"td\" style=\"text-align: right;\" rowspan=\"1\" colspan=\"6\"><input type=\"submit\" name=\"update\" value=\""._OK."\"/></span>"; 165 169 $riga[$y].= "</form>"; 166 170 if($numril>$uscita) $uscita=$numril; 167 171 } 168 172 # echo "</div>"; … … 179 183 echo $rigat[$key]; 180 184 echo $riga[$key]; 185 if($key>$uscita) { break;} 181 186 } 182 187 echo "</div></td></tr></table>"; -
trunk/admin/versione.php
r368 r369 1 1 <?php 2 2 3 $versione = "3.0 rev 36 8";3 $versione = "3.0 rev 369"; 4 4 $version_number = $versione; 5 $datarel = " 17maggio 2022";5 $datarel = "23 maggio 2022"; 6 6 $version = "Eleonline $version_number (<i>Data Release: $datarel</i>)"; 7 7
Note:
See TracChangeset
for help on using the changeset viewer.