Changeset 30 for trunk


Ignore:
Timestamp:
Mar 17, 2010, 8:11:46 PM (15 years ago)
Author:
roby
Message:

Eliminati ulteriori messaggi notice di php

Location:
trunk/client/modules/Elezioni
Files:
4 edited

Legend:

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

    r21 r30  
    6767                // numero sezioni scrutinate
    6868                //if ($circo)$circos="and id_circ='$id_circ'";
     69        if (!isset($data1)) $data1='';
     70        if (!isset($ora_ril)) $ora_ril='';
    6971                $res1 = mysql_query("SELECT count(data) FROM ".$prefix."_ele_voti_parziale as t3 left join ".$prefix."_ele_sezioni as t1 on t3.id_sez=t1.id_sez left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t1.id_cons='$id_cons' and data='$data1' and orario='$ora_ril' $circos group by t3.id_gruppo", $dbi);
    7072# mysql_query("select *  from ".$prefix."_ele_voti_parziale where id_cons='$id_cons' $circos  group by id_sez ",$dbi);
     
    217219         */
    218220        $res = mysql_query("select t1.*  from ".$prefix."_ele_voti_".$tab." as t1 left join ".$prefix."_ele_$tab as t2 on t1.id_gruppo=t2.id_gruppo where t1.id_cons='$id_cons' $circos group by t1.id_sez ",$dbi);
    219         $numero=mysql_num_rows($res);
     221        if($res)
     222                $numero=mysql_num_rows($res);
     223        else
     224                $numero=0;
    220225        $res = mysql_query("select t1.*  from ".$prefix."_ele_sezioni as t1 left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t1.id_cons='$id_cons' $circos",$dbi);
    221226        $sezioni=mysql_num_rows($res);
  • trunk/client/modules/Elezioni/gruppo.php

    r20 r30  
    365365
    366366                                # nome della lista
     367                                if (!isset($list2)) $list2='';
    367368                                if (strstr( $op,'candidato')) {
    368369                                        $res_lis2 = mysql_query("SELECT num_lista, descrizione from ".$prefix."_ele_lista where id_lista=$id_lista",$dbi);
     
    426427                                        $pos[$z]=$res[0];
    427428                                }
     429                        if (!isset($pos)) $pos[0]=0;
    428430                        $minpos=min($pos);
    429431                        $maxpos=max($pos);
  • trunk/client/modules/Elezioni/language/lang-en.php

    r2 r30  
    153153define("_LISTE","Lists");
    154154define("_TEST","If you wont to test Eleonline start inserting username \"suser\" and password \"test\"");
    155 define("_GESTIONE","managing vote counting and publishing results");
     155#define("_GESTIONE","managing vote counting and publishing results");
    156156define("_TUTTESEDI","All electoral centers");
    157157define("_ATT_VOTI","Warning! ballots");
     
    265265define("_SEZNOS","Sections to be counted");
    266266define("_SEZSCR","Counted Sections");
    267 define("_LISTA","List");
     267#define("_LISTA","List");
    268268define("_PREFLISTA","Ballots to the list");
    269269define("_CANDIDATO","Candidate");
     
    402402define("_EDIFICIO","Building");
    403403define("_MAPPA","Map");
    404 define("_LINK","Link");
     404#define("_LINK","Link");
    405405define("_NUMERITEL","Telephon");
    406406define("_DESCRAPP","Deep Description");
     
    410410define("_ADMIN","A<br/>D<br/>M<br/>I<br/>N<br/>I<br/>S<br/>T<br/>R<br/>A<br/>T<br/>O<br/>R");
    411411define("_OPER","O<br/>P<br/>E<br/>R<br/>A<br/>T<br/>O<br/>R");
    412 define("_SCELTA_CONS","Choose an Election");
     412#define("_SCELTA_CONS","Choose an Election");
    413413define("_GESRIS","managing elections");
    414414define("_INVIOSEGN","To contact us for signallings, demands or suggestions");
  • trunk/client/modules/Elezioni/votanti.php

    r11 r30  
    224224                }
    225225        }
     226        $righet='';
    226227        if($num_scr){
    227228        $righet = "<tr class=\"bggray\">
Note: See TracChangeset for help on using the changeset viewer.