Changeset 359 for trunk/admin/temi
- Timestamp:
- Feb 25, 2022, 9:32:36 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/temi/Futura2/index.php
r358 r359 15 15 if($key=='id_lista') $id_lista=$val; 16 16 } 17 17 18 include("header.php"); 18 19 $nometema=$tema; … … 49 50 50 51 list($descr_com) = $res->fetch(PDO::FETCH_NUM); 51 52 include_once("header.php"); 53 testata(); 52 54 53 55 #################################### … … 56 58 57 59 global $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 ;60 global $id_cons,$do,$id_circ,$id_sede,$id_sez,$ops,$ov,$mv,$gv,$msv,$av,$votog,$genere,$aid,$bgcolor1,$language; 59 61 include("temi/$tema/function_theme.php"); 60 62 #$op='informazioni'; … … 730 732 // if ($genere<4 or $votoc){ 731 733 // } 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=''; 733 738 $sql="select * from ".$prefix."_ele_controlli where tipo='lista' and id_sez='$id_sez' and id='$id_lista3'"; 734 739 $rese = $dbi->prepare("$sql"); 735 740 $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); 737 743 $errcolor=''; 738 744 if(isset($errgrulis[$rifgruppo])) $errcolor="style=\"background-color: rgb(255, 0, 0);\""; … … 743 749 #funzione non ritenuta utile 744 750 # 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);} 746 752 echo "<input type=\"hidden\" name=\"id_lista$i\" value=\"$id_lista3\"></td>"; 747 753 // echo "<td align=\"right\">$sgpl";
Note:
See TracChangeset
for help on using the changeset viewer.