Changeset 199 for trunk/client


Ignore:
Timestamp:
Apr 23, 2014, 12:08:28 AM (10 years ago)
Author:
roby
Message:
  • aggiornamento consiglieri per comuni fino a 10.000 abitanti
  • inserita cancellazione voti di gruppi e liste (a caduta comprende le preferenze) per sezione
Location:
trunk/client
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/modules/Elezioni/consiglieri.php

    r198 r199  
    4747$res = mysql_query("SELECT t1.tipo_cons,t2.id_cons,t2.id_fascia,t2.id_conf FROM ".$prefix."_ele_consultazione as t1, ".$prefix."_ele_cons_comune as t2 where t1.id_cons_gen=t2.id_cons_gen and t2.id_cons_gen='$id_cons_gen' and t2.id_comune='$id_comune'" , $dbi);
    4848if (mysql_num_rows($res)){
    49 #       list($tipo_cons,$id_cons,$fascia,$conf) = mysql_fetch_row($res);
     49        list($tipo_cons,$id_cons,$fascia,$conf) = mysql_fetch_row($res);
    5050        $result = mysql_query("select capoluogo from ".$prefix."_ele_comuni where id_comune='$id_comune'", $dbi);
    5151        list($capoluogo) = mysql_fetch_row($result);
    52         if($fascia<6 and $capoluogo) {
    53         $resfascia = mysql_query("SELECT fascia_capoluogo from ".$prefix."_ele_conf where id_conf=$id_conf", $dbi);
    54         list ($fascia)= mysql_fetch_row($resfascia);
    55         }
     52        $result = mysql_query("select fascia_capoluogo from ".$prefix."_ele_conf where id_conf='$conf'", $dbi);
     53        list($fascia2) = mysql_fetch_row($result);
     54        if($fascia<$fascia2 and $capoluogo) $fascia=$fascia2;
    5655
    5756                $result = mysql_query("SELECT seggi from ".$prefix."_ele_fasce where id_fascia='$fascia' and id_conf=$id_conf",$dbi);
  • trunk/client/versione.php

    r198 r199  
    11<?php
    2 $versione="2.0 rev 198";
     2$versione="2.0 rev 199";
    33?>
Note: See TracChangeset for help on using the changeset viewer.