Ignore:
Timestamp:
Feb 25, 2022, 9:32:36 AM (2 years ago)
Author:
roby
Message:

admin: correzioni e aggiunta funzionalità per inserimento da cellulare, adeguata la funzione di aggiornamento del db per compatibilità con php7 e php5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/temi/Futura2/index.php

    r358 r359  
    1515        if($key=='id_lista') $id_lista=$val;
    1616}
     17
    1718include("header.php");
    1819$nometema=$tema;
     
    4950
    5051list($descr_com) = $res->fetch(PDO::FETCH_NUM);
    51 
     52include_once("header.php");
     53testata();
    5254
    5355####################################
     
    5658
    5759global $op,$tema,$dbi,$nometema,$file,$bgcolor,$sitename,$prefix,$blocco,$lang,$siteistat,$id_cons_gen,$descr_cons,$minsez,$offsetsez,$multicomune,$id_comune,$multicomune,$rss,$colortheme,$descr_com;
    58 global $id_cons,$do,$id_circ,$id_sede,$id_sez,$ops,$ov,$mv,$gv,$msv,$av,$votog,$genere,$aid,$bgcolor1;
     60global $id_cons,$do,$id_circ,$id_sede,$id_sez,$ops,$ov,$mv,$gv,$msv,$av,$votog,$genere,$aid,$bgcolor1,$language;
    5961include("temi/$tema/function_theme.php");
    6062#$op='informazioni';
     
    730732//                              if ($genere<4 or $votoc){
    731733//                              }
    732 
     734                                $sql="select t1.* from ".$prefix."_ele_voti_candidati as t1, ".$prefix."_ele_candidati as t2 where t1.id_cand=t2.id_cand and t1.id_sez='$id_sez' and t2.id_lista='$id_lista3' limit 0,1";
     735                                $rese = $dbi->prepare("$sql");
     736                                $rese->execute();
     737                                if($rese->rowCount()) $segna="style=\"background-color: #99CC33;\""; else $segna='';
    733738                                $sql="select * from ".$prefix."_ele_controlli where tipo='lista' and id_sez='$id_sez' and id='$id_lista3'";
    734739                                $rese = $dbi->prepare("$sql");
    735740                                $rese->execute();
    736                                 if($rese->rowCount()) $segna="style=\"background-color: #dd0000;\""; else $segna='';
     741                                if($rese->rowCount()) $segna="style=\"background-color: #dd0000;\"";
     742                                list($sezcol)=$rese->fetch(PDO::FETCH_NUM);
    737743                                $errcolor='';
    738744                                if(isset($errgrulis[$rifgruppo])) $errcolor="style=\"background-color: rgb(255, 0, 0);\"";
     
    743749#funzione non ritenuta utile
    744750#                               if($dettnulli && !$disgiunto  && $tipo_cons!=18 && $tipo_cons!=19) { echo "</td><td align=\"right\"><input  name=\"vnpl$i\" value=\"".$vnpl."\" size=\"7\"  style=\"text-align:right\">"; $tvnpl+=$vnpl;}
    745                                 if($disgiunto) {echo "</td><td align=\"right\"><input  name=\"slpl$i\" value=\"".$slpl."\" size=\"7\"  style=\"text-align:right\">"; $tslpl+=$slpl;}
     751                                if($disgiunto) {echo "</td><td align=\"right\"><input  name=\"slpl$i\" value=\"".$slpl."\" size=\"7\"  style=\"text-align:right\">"; $tslpl+=intval($slpl);}
    746752                                echo "<input type=\"hidden\" name=\"id_lista$i\" value=\"$id_lista3\"></td>";
    747753//                              echo "<td align=\"right\">$sgpl";
Note: See TracChangeset for help on using the changeset viewer.