Changeset 338 for trunk/client/modules/Elezioni/gruppo.php
- Timestamp:
- Nov 11, 2020, 7:38:19 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/gruppo.php
r337 r338 184 184 list($num_circ)=$res_cir->fetch(PDO::FETCH_NUM); 185 185 $condcirc="and id_circ=$id_circ"; //variabile aggiunta nelle select per le circ. 186 $sql="SELECT count(t1.num_sez) from ".$prefix."_ele_sezioni as t1, ".$prefix."_ele_sede as t2 where t1.id_cons=$id_cons and t1.id_sede=t2.id_sede and t2.id_circ=$id_circ";186 $sql="SELECT count(t1.num_sez),min(t1.num_sez),max(t1.num_sez) from ".$prefix."_ele_sezioni as t1, ".$prefix."_ele_sede as t2 where t1.id_cons=$id_cons and t1.id_sede=t2.id_sede and t2.id_circ=$id_circ"; 187 187 $res_sez = $dbi->prepare("$sql"); 188 188 $res_sez->execute(); … … 376 376 ######## 377 377 # $diff=($offsetsez-$minsez); 378 if ($minsez>1 ){378 if ($minsez>1 and !$circo){ 379 379 $minsez_p= ($minsez-$diff)>1 ? $minsez-$diff:1; 380 380 $offsetsez_p=$offsetsez-$diff; … … 463 463 $datipdf="<b>"._COMUNE." $descr_comune</b> - "._RISULTATI.": $descr_cons<br/><b>$pagina</b><br/><br/> $list1 $list2 $list3 "; 464 464 # verificare la stampa sulle circoscrizioni 465 echo "<div style=\"text-align:right;width: 900px;margin-left:10px;margin-right:0px;font-size:12px; \">";465 echo "<div style=\"text-align:right;width:40%;margin-left:10px;margin-right:0px;font-size:12px; \">"; 466 466 echo "<table style=\"text-align:center;margin-right:0px;border-top : 1px solid Blue;width: 140px;\"><tr style=\" background:#eceff5;\"><td>"._ESPORTA."<br />"; 467 467 if($circo){ echo "<a href=\"modules.php?name=Elezioni&op=$op&id_cons_gen=$id_cons_gen&id_comune=$id_comune&csv=1&orvert=$orvert&min=$min&offset=$offset&minsez=$minsez&offsetsez=$offsetsez&perc=$perc&id_lista=$id_lista&id_circ=$id_circ&datipdf=$datipdf\" ><img class=\"image\" src=\"modules/Elezioni/images/printer.gif\" alt=\"Stampa\" /></a>";
Note:
See TracChangeset
for help on using the changeset viewer.