Changeset 20


Ignore:
Timestamp:
Feb 24, 2010, 1:01:47 PM (14 years ago)
Author:
roby
Message:

Correzione di alcuni bachi

Location:
trunk/client
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/footer.php

    r17 r20  
    1111piede();
    1212$PHP_SELF=$_SERVER['PHP_SELF'];
    13 if (stristr("footer.php",$PHP_SELF)) {
     13if (stristr($PHP_SELF,"footer.php")) {
    1414    Header("Location: index.php");
    1515    die();
  • trunk/client/header.php

    r17 r20  
    88/* ultima modfifica: aggiunta rotazione 18 marzo 2009 */
    99
    10 if (stristr("header.php",$PHP_SELF)) {
     10if (stristr($PHP_SELF,"header.php")) {
    1111    Header("Location: index.php");
    1212    die();
  • trunk/client/modules/Elezioni/foto.php

    r19 r20  
    4747
    4848// nessuno stemma immagine vuota
    49 if ($stemma==""){
    50  
    51 $stemma =  fread( fopen( 'images/vuoto.jpg', 'r' ), filesize( 'images/vuoto.jpg' ) );
    52 }
    53 
     49if ($stemma=="" && is_readable('modules/Elezioni/images/vuoto.jpg')){
     50        $stemma =  fread( fopen( 'modules/Elezioni/images/vuoto.jpg', 'r' ), filesize( 'modules/Elezioni/images/vuoto.jpg' ) );}
    5451echo $stemma;
    5552?>
  • trunk/client/modules/Elezioni/gruppo.php

    r17 r20  
    8787
    8888
    89         if (strstr('circo',$op)) { //$op=='gruppo_circo' or $op=='lista_circo') {
     89        if (strstr( $op,'circo')) { //$op=='gruppo_circo' or $op=='lista_circo') {
    9090                $tab1="circ";
    9191                $tab2="t5.num_circ,t5.descrizione";
     
    102102                $tipo3=_SEZIONE;
    103103        }
    104         if (strstr("gruppo",$op)){
     104        if (strstr( $op,"gruppo")){
    105105                $tab="gruppo";
    106         }elseif (strstr('lista',$op)) {
     106        }elseif (strstr( $op,'lista')) {       
    107107                $tab="lista";
    108108        }else{
     
    157157                $num_sez=$tot_sez;//mysql_data_seek($res_sez,0);
    158158                if ($circo) $offsetsez=$num_sez+$minsez-1;//setta offsetsez sull'ultima sezione della circoscrizione
    159                 if(strstr("circo", $op)) {
     159                if(strstr( $op,"circo")) {
    160160                                $res_sez = mysql_query("SELECT count(num_circ) from ".$prefix."_ele_circoscrizione where id_cons=$id_cons",$dbi);  //estrae il numero delle circoscrizioni
    161161                                list($num_sez)=mysql_fetch_row($res_sez);
     
    178178*/
    179179                        $visvot='';
    180                         if(strstr('candidato', $op)){
     180                        if(strstr( $op,'candidato')){
    181181//                      $numliste=mysql_num_rows($res_lis);
    182182                                $visvot="cand";
     
    330330                               
    331331                                echo "<tr>";
    332                                 if (!strstr('candidato',$op)) {
     332                                if (!strstr( $op,'candidato')) {
    333333                                        echo "<td>"._VIS_PERC.": <input type=\"checkbox\" name=\"perc\" value=\"true\"";
    334334                                        if($perc=='true') echo " checked=\"true\"";
     
    351351
    352352                                # liste e gruppi da.... a         
    353                                 if (!strstr('candidato',$op)) {
     353                                if (!strstr( $op,'candidato')) {
    354354                                      $res_cand2 = mysql_query("SELECT descrizione from ".$prefix."_ele_$tab15 where id_cons='$id_cons' and num_$tab15 ='$min'",$dbi);
    355355                                      list($descrizione)= mysql_fetch_row($res_cand2);
     
    365365
    366366                                # nome della lista
    367                                 if (strstr('candidato',$op)) {
     367                                if (strstr( $op,'candidato')) {
    368368                                        $res_lis2 = mysql_query("SELECT num_lista, descrizione from ".$prefix."_ele_lista where id_lista=$id_lista",$dbi);
    369369                                        list($num_lista2,$descr_lista2)= mysql_fetch_row($res_lis2);
     
    395395                                echo "</td></tr></table></div></form>";
    396396                               
    397                                 if (strstr('candidato',$op)) echo $list2;       
     397                                if (strstr( $op,'candidato')) echo $list2;     
    398398                               
    399399                               
Note: See TracChangeset for help on using the changeset viewer.