Changeset 282 for trunk/client


Ignore:
Timestamp:
Apr 21, 2019, 9:46:30 PM (5 years ago)
Author:
roby
Message:
 
Location:
trunk/client
Files:
15 edited

Legend:

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

    r265 r282  
    182182                        echo "<option value=\"gruppo_sezione\" ".$temp['gruppo_sezione'].">".substr(_GRUPPO." "._PER." "._SEZIONI,0,33)."</option>";
    183183                }
    184                 if (!$votol and $fascia>$limite){ // si vota per la lista
    185                         if ($genere>2) {
     184                if (!$votol and ($fascia>$limite || $limite==0)){ // si vota per la lista
     185                        if ($genere>2) { 
    186186                                if (!$circo and $num_circ>1)
    187187                                      echo "<option value=\"lista_circo\" ".$temp['lista_circo']." >".substr(_LISTA." "._PER." "._CIRCO,0,33)."</option>";
  • trunk/client/modules/Elezioni/rss.php

    r265 r282  
    160160               
    161161                                       
    162                                 $gruppinum=mysql_num_rows($res);
     162                                $gruppinum=$res->fetch(PDO::FETCH_NUM);
    163163                                $altrivoti=0;
    164164                                while (list($id,$num,$descrizione,$voti)  = $res->fetch(PDO::FETCH_NUM)){
  • trunk/client/temi/altro/menu.php

    r265 r282  
    134134          }
    135135
    136         if (!$votol and $fascia>$limite){ // si vota per la lista
     136        if (!$votol and ($fascia>$limite || $limite==0)){ // si vota per la lista
    137137                        if ($genere>2) {
    138138                                if (!$circo and $num_circ>1)
  • trunk/client/temi/blog/menu.php

    r265 r282  
    133133          }
    134134
    135         if (!$votol and $fascia>$limite){ // si vota per la lista
     135        if (!$votol and ($fascia>$limite || $limite==0)){ // si vota per la lista
    136136                        if ($genere>2) {
    137137                                if (!$circo and $num_circ>1)
  • trunk/client/temi/default/menu.php

    r265 r282  
    134134          }
    135135
    136         if (!$votol and $fascia>$limite){ // si vota per la lista
     136        if (!$votol and ($fascia>$limite || $limite==0)){ // si vota per la lista
    137137                        if ($genere>2) {
    138138                                if (!$circo and $num_circ>1)
  • trunk/client/temi/facebook/menu.php

    r265 r282  
    156156          }
    157157
    158         if (!$votol and $fascia>$limite){ // si vota per la lista
     158        if (!$votol and ($fascia>$limite || $limite==0)){ // si vota per la lista
    159159                        if ($genere>2) {
    160160                                if (!$circo and $num_circ>1)
  • trunk/client/temi/realistic/index.php

    r241 r282  
    1515global $tema,$file,$sitename,$blocco,$dbi,$prefix,$id_comune;
    1616
    17 $res = mysql_query("SELECT descrizione,simbolo FROM ".$prefix."_ele_comuni where id_comune='$id_comune' ", $dbi);
    18         list($descr_com,$simbolo) = mysql_fetch_row($res);
    19         $descr_com =stripslashes($descr_com);
     17$sql="SELECT descrizione,simbolo FROM ".$prefix."_ele_comuni where id_comune='$id_comune' ";
     18$res = $dbi->prepare("$sql");
     19$res->execute();
     20list($descr_com,$simbolo) = $res->fetch(PDO::FETCH_NUM);
     21$descr_com =stripslashes($descr_com);
    2022
    2123
  • trunk/client/temi/realistic/menu.php

    r265 r282  
    146146          }
    147147
    148         if (!$votol and $fascia>$limite){ // si vota per la lista
     148        if (!$votol and ($fascia>$limite || $limite==0)){ // si vota per la lista
    149149                        if ($genere>2) {
    150150                                if (!$circo and $num_circ>1)
  • trunk/client/temi/spectral/index.php

    r241 r282  
    1515global $tema,$file,$sitename,$blocco,$dbi,$prefix,$id_comune,$descr_cons,$op;
    1616
    17 $res = mysql_query("SELECT descrizione,simbolo FROM ".$prefix."_ele_comuni where id_comune='$id_comune' ", $dbi);
    18         list($descr_com,$simbolo) = mysql_fetch_row($res);
     17$sql="SELECT descrizione,simbolo FROM ".$prefix."_ele_comuni where id_comune='$id_comune' ";
     18$res = $dbi->prepare("$sql");
     19$res->execute();
     20
     21        list($descr_com,$simbolo) = $res->fetch(PDO::FETCH_NUM);
    1922        $descr_com =stripslashes($descr_com);
    2023
     
    148151        if($pos=="dx") $p=0; elseif($pos=="sx")$p=1;else $p='';
    149152       
    150         $resblk = mysql_query("SELECT * FROM ".$prefix."_ele_widget where pos_or='$p' and attivo='1' order by pos_ver asc", $dbi);
    151         if($resblk){
     153        $sql="SELECT * FROM ".$prefix."_ele_widget where pos_or='$p' and attivo='1' order by pos_ver asc";
     154$resblk = $dbi->prepare("$sql");
     155$resblk->execute();
     156        if($resblk->rowCount()){
    152157               
    153158                while ($row = mysql_fetch_array($resblk)) {
  • trunk/client/temi/spectral/menu.php

    r265 r282  
    146146          }
    147147
    148         if (!$votol and $fascia>$limite){ // si vota per la lista
     148        if (!$votol and ($fascia>$limite || $limite==0)){ // si vota per la lista
    149149                        if ($genere>2) {
    150150                                if (!$circo and $num_circ>1)
  • trunk/client/temi/stylized/menu.php

    r269 r282  
    134134          }
    135135
    136         if (!$votol and $fascia>$limite){ // si vota per la lista
     136        if (!$votol and ($fascia>$limite || $limite==0)){ // si vota per la lista
    137137                        if ($genere>2) {
    138138                                if (!$circo and $num_circ>1)
  • trunk/client/temi/tour/index.php

    r212 r282  
    6161if (isset($param['id_comune'])) $id_comune=intval($param['id_comune']); else $id_comune=$siteistat;
    6262
    63 $res = mysql_query("SELECT descrizione FROM ".$prefix."_ele_comuni where id_comune='$id_comune' ", $dbi);
    64         list($descr_com) = mysql_fetch_row($res);
     63$sql="SELECT descrizione FROM ".$prefix."_ele_comuni where id_comune='$id_comune' ";
     64$res = $dbi->prepare("$sql");
     65$res->execute();
     66list($descr_com) = $res->fetch(PDO::FETCH_NUM);
    6567
    6668
     
    163165// Blocco link
    164166
    165 $result = mysql_query("select mid, title, preamble, content,editimage from ".$prefix."_ele_link where id_cons='$id_cons' order by mid ", $dbi);
    166     if (mysql_num_rows($result) == 0) {
     167$sql="select mid, title, preamble, content,editimage from ".$prefix."_ele_link where id_cons='$id_cons' order by mid ";
     168$result = $dbi->prepare("$sql");
     169$result->execute();
     170   if ($result->rowCount() == 0) {
    167171        //echo "</div></td></tr></table>";
    168172       
     
    171175    } else {
    172176        echo "<h5>"._LINK."</h5><p>";
    173         while (list($mid, $title, $preamble,$content,  $editimage) = mysql_fetch_row($result)) {
     177        while (list($mid, $title, $preamble,$content,  $editimage) = $result->fetch(PDO::FETCH_NUM)) {
    174178                if ($title != "" && $content != "") {
    175179                        $content = stripslashes($content);
  • trunk/client/temi/tour/menu.php

    r265 r282  
    133133          }
    134134
    135         if (!$votol and $fascia>$limite){ // si vota per la lista
     135        if (!$votol and ($fascia>$limite || $limite==0)){ // si vota per la lista
    136136                        if ($genere>2) {
    137137                                if (!$circo and $num_circ>1)
  • trunk/client/temi/yellowblu/index.php

    r139 r282  
    1818if (isset($param['id_comune'])) $id_comune=intval($param['id_comune']); else $id_comune=$siteistat;
    1919
    20 $res = mysql_query("SELECT descrizione FROM ".$prefix."_ele_comuni where id_comune='$id_comune' ", $dbi);
    21         list($descr_com) = mysql_fetch_row($res);
     20$sql="SELECT descrizione FROM ".$prefix."_ele_comuni where id_comune='$id_comune' ";
     21$res = $dbi->prepare("$sql");
     22$res->execute();
     23        list($descr_com) = $res->fetch(PDO::FETCH_NUM);
    2224
    2325
  • trunk/client/temi/yellowblu/menu.php

    r265 r282  
    134134          }
    135135
    136         if (!$votol and $fascia>$limite){ // si vota per la lista
     136        if (!$votol and ($fascia>$limite || $limite==0)){ // si vota per la lista
    137137                        if ($genere>2) {
    138138                                if (!$circo and $num_circ>1)
Note: See TracChangeset for help on using the changeset viewer.