Changeset 369 for trunk/admin


Ignore:
Timestamp:
May 23, 2022, 12:44:20 PM (3 years ago)
Author:
roby
Message:

admin:
la consultazione iniziale per utente abilitato a gestire la singola sede non viene fissata correttamente. Risolto
la visualizzazione delle rilevazioni oraire mostra tutti gli orari ma deve mostrare solo il prossimo da inserire. Risolto

Location:
trunk/admin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/admin.php

    r361 r369  
    279279else {
    280280        $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
    282282        $rese = $dbi->prepare("$sql");
    283283        $rese->execute();
     
    455455#include("TEST tema: $tema--");
    456456#include("modules/Elezioni/language/lang-".$_SESSION['lang'].".php");
     457
    457458if(isset($id_cons_gen) and isset($id_comune)){
    458459        if(!isset($id_cons)){
     
    491492#
    492493#die("TEST: qui $aid $id_cons $id_sez ".$_SESSION['aid']);
     494
    493495if (isset($_SESSION['aid']) AND $_SESSION['remote']==$_SERVER['REMOTE_ADDR']) {
    494496        if($tema=='Futura2' and $op!='logout')
  • trunk/admin/header.php

    r360 r369  
    4545if($is_mobile && $nocell!=1){
    4646        global $id_sez;
    47 #####TEST sezione fissa da impostare iniziando con l'assegnazione del permesso all'operatore di sezione
    48 #$id_sez=3378;
    4947        $tema="Futura2";
    5048} elseif (isset($_SESSION['tema']))
  • trunk/admin/modules/Elezioni/ele_spoglio.php

    r366 r369  
    7272
    7373$riga=array();
    74 $rigat=array();
     74$rigat=array();
     75$uscita=0;
    7576while (list($ora,$giorno)= $res->fetch(PDO::FETCH_NUM)){
    7677        $y++;
     
    9596        $rigat[$y].= "</div>";
    9697        $errvot1=0;
     98        $numril=0;
     99
    97100        for ($i=1;$i<=$max;$i++){
    98101                $query="SELECT * FROM ".$prefix."_ele_voti_parziale as t1 left join ".$prefix."_ele_gruppo as t2
     
    112115                $resril = $dbi->prepare("$sql");
    113116                $resril->execute();
    114         list($numril)=$resril->fetch(PDO::FETCH_NUM);
     117        list($tmpril)=$resril->fetch(PDO::FETCH_NUM);
     118                if($tmpril>$numril) $numril=$tmpril;
    115119                if ($res2)
    116120                        list($gruppo)= $res2->fetch(PDO::FETCH_NUM);
     
    160164                ."<input type=\"hidden\" name=\"id_gruppo\" value=\"$id_gruppo\"/>";
    161165                $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>";}
    163167                else $riga[$y].= "<span class=\"td\" style=\"text-align: right;\" rowspan=\"1\" colspan=\"6\"><input type=\"hidden\" name=\"delete\" value=\"\"/></span>";
    164168                $riga[$y].= "<span class=\"td\" style=\"text-align: right;\" rowspan=\"1\" colspan=\"6\"><input type=\"submit\" name=\"update\" value=\""._OK."\"/></span>";
    165169                $riga[$y].= "</form>";
    166 
     170                if($numril>$uscita) $uscita=$numril;
    167171        }
    168172#               echo "</div>";
     
    179183                echo $rigat[$key];
    180184                echo $riga[$key];
     185                if($key>$uscita) { break;}
    181186        }
    182187        echo "</div></td></tr></table>";
  • trunk/admin/versione.php

    r368 r369  
    11<?php
    22
    3 $versione = "3.0 rev 368";
     3$versione = "3.0 rev 369";
    44$version_number = $versione;
    5 $datarel = "17 maggio 2022";
     5$datarel = "23 maggio 2022";
    66$version = "Eleonline $version_number (<i>Data Release: $datarel</i>)";
    77
Note: See TracChangeset for help on using the changeset viewer.