Ignore:
Timestamp:
May 6, 2012, 8:53:42 PM (12 years ago)
Author:
roby
Message:

Modifiche per gestione Legge regione Sicilia 2011

File:
1 edited

Legend:

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

    r105 r139  
    493493}
    494494
     495# funzione per verifica se esiste il voto disgunto tra sindaco e lista nelle amministrative siciliane
     496function isdisgiunto(){
     497global $prefix,$dbi,$id_cons,$limite,$fascia,$ops;
     498        #voti di lista e di gruppo completamente disgiunti
     499        $result = mysql_query("select infdisgiunto, supdisgiunto from ".$prefix."_ele_conf as t2 left join ".$prefix."_ele_cons_comune as t1 on t1.id_conf=t2.id_conf where id_cons = '$id_cons' ", $dbi);
     500        $glsep='';
     501        if ($result) {
     502                list($infdis,$supdis)=mysql_fetch_row($result);
     503                if((($fascia>$limite and $supdis) or ($fascia<$limite and $infdis)) and $ops==3)
     504                        $glsep='_lista';
     505        }
     506return $glsep;
     507}
     508
     509
    495510?>
Note: See TracChangeset for help on using the changeset viewer.