Changeset 447


Ignore:
Timestamp:
Apr 1, 2025, 5:21:19 PM (8 months ago)
Author:
roby
Message:
  • ADMIN

-- modifiche alla funzione di impord da dait

  • CLIENT

-- modifiche ai grafici

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/modules/Elezioni/dait_politiche.php

    r446 r447  
    9696#               echo "<br>TEST: --- :".print_r($collegipluri);
    9797#       echo "TEST:".var_dump($collegicamera);
    98 if(!isset($filtrato)) {
     98if(!isset($filtrato) or (isset($filtrato) and count($filtrato)==0)) {
    9999        $linesuni=$csvData[0];
    100100        $linespluri=$csvData[1];
     
    113113                                        $flag=0;
    114114#                                       $collegiorif=substr($tmpcollegio,0,strlen($lineuni[1]))
    115                                         foreach($collegipluri as $tmpcollegio)
     115                                        foreach($collegipluri as $tmpcollegio) {
    116116                                                if($linepluri[1]==$tmpcollegio and $lineuni[2]==$linepluri[2]) { $flag=1;}
    117 # echo "<br>TEST:$flag:$tmpcollegio::".$linepluri[1];
     117# echo "<br>TEST:$flag:$tmpcollegio::".$linepluri[1]." - ".$lineuni[2]." - ".$linepluri[2];
     118                                        }
    118119                                        if(!$flag) continue;
    119120                                        if(isset($lineuni[2]) and isset($linepluri[2])){ # and strrpos($lineuni[2],$linepluri[2],0)
  • trunk/admin/versione.php

    r446 r447  
    11<?php
    22
    3 $versione = "3.0 rev 446";
     3$versione = "3.0 rev 447";
    44$version_number = $versione;
    55$datarel = "01 aprile 2025";
  • trunk/client/temi/bootstrap/pagine/grafici/affluenza.php

    r443 r447  
    44$row=totale_iscritti(0);
    55$tot=$row[0][2];
     6$row=scrutinio_affluenze();
     7$scrutinate=$row[0][0];
     8$sezionitotali=sezioni_totali();
    69$row=affluenze_totali(0);
    710$labels=array();
     
    2932                $voti_prec[]=number_format($val[2],0,'','.');
    3033        }
     34}else{
     35        foreach($voti as $val){
     36                $voti_prec_percentuali[]='';
     37                $voti_prec[]='';
     38        }
    3139}
    3240
     
    5563    }
    5664</style>
    57 
    5865<div class="container">
    5966    <div class="row text-center">
    6067        <h4 class="fw-semibold text-primary mobile-expanded mt-2">Affluenza</h4>
    6168    </div>
     69        <div class="table-responsive overflow-x">
     70        <table class="table  mb-0">
     71                <thead class="title-content">
     72                        <tr>
     73                                <th>Affluenza</th>
     74                                <?php if ($scrutinate == $sezionitotali) {?>
     75                                        <th class="text-end">Dati finali</th>
     76                                <?php } else {?>
     77                                        <th class="text-end"><span>Sezioni scrutinate: <?php echo $scrutinate; ?> su <?php echo $sezionitotali; ?></span></th>
     78                                <?php }?>
     79                        </tr>
     80                </thead>
     81        </table>
     82</div>
    6283    <div id="chartContainer">
    6384        <canvas id="affluenzaChart"></canvas>
     
    95116                    backgroundColor: 'rgba(240,128,128)',  // Rosso brillante
    96117                    borderWidth: 1
    97                 },
     118                } <?php if(count($rowpre)) { ?>,
    98119                {
    99120                    label: 'Affluenza Precedente',
     
    102123                    borderWidth: 1
    103124                }
     125                                <?php } ?>
    104126            ]
    105127        },
  • trunk/client/temi/bootstrap/pagine/grafici/votanti.php

    r444 r447  
    3939    <div class="row text-center">
    4040        <h4 class="fw-semibold text-primary mobile-expanded mt-2">Distribuzione dei Voti<br>
    41                         <?php if ($scrutinate == $sezionitotali) {?>
    42                                 <th class="text-end">Dati finali</th>
    43                         <?php } else {?>
    44                                 <th class="text-end"><span>Sezioni scrutinate: <?php echo $scrutinate; ?> su <?php echo $sezionitotali; ?></span></th>
    45                         <?php }?>
    4641                </h4>
    4742    </div>
     43        <div class="table-responsive overflow-x">
     44        <table class="table  mb-0">
     45                <thead class="title-content">
     46                        <tr>
     47                                <th>Votanti</th>
     48                                <?php if ($scrutinate == $sezionitotali) {?>
     49                                        <th class="text-end">Dati finali</th>
     50                                <?php } else {?>
     51                                        <th class="text-end"><span>Sezioni scrutinate: <?php echo $scrutinate; ?> su <?php echo $sezionitotali; ?></span>
     52                                        </th>
     53                                <?php }?>
     54                        </tr>
     55                </thead>
     56        </table>
     57</div>
    4858    <div id="chartContainer">
    4959        <canvas id="votiChart"></canvas>
  • trunk/client/temi/bootstrap/pagine/grafici/votidigruppo.php

    r444 r447  
    4242<div class="container">
    4343    <div class="row text-center">
    44         <h4 class="fw-semibold text-primary mobile-expanded mt-2">Voti per i
    45                         <?php if ($tipo_cons==3 or $tipo_cons==5) echo "Candidati a Sindaco";
    46                                 elseif ($tipo_cons==1 or $tipo_cons==4 or $tipo_cons==9 or $tipo_cons==12 or $tipo_cons==13 or $tipo_cons==17 ) echo "Candidati a Presidente";
     44        <h4 class="fw-semibold text-primary mobile-expanded mt-2">Voti per
     45                        <?php if ($tipo_cons==3 or $tipo_cons==5) echo _GRUPPO;
     46                                elseif ($tipo_cons==1 or $tipo_cons==4 or $tipo_cons==9 or $tipo_cons==12 or $tipo_cons==13 or $tipo_cons==17 ) echo _GRUPPO;
    4747                                else echo "Raggruppamenti";
    4848                                echo "<br>";
  • trunk/client/temi/bootstrap/pagine/grafici/votidilista.php

    r444 r447  
    3737    #chartContainer {
    3838        width: 100%;
    39         height: <?php echo min(500 + count($labels) * 20, 900); ?>px; /* L'altezza si adatta al numero di liste */
     39        height: <?php echo min(300 + count($labels) * 30, 900); ?>px; /* L'altezza si adatta al numero di liste */
    4040        margin: 0 auto;
    4141    }
     
    5353    <div class="row text-center">
    5454        <h4 class="fw-semibold text-primary mobile-expanded mt-2">Voti di Lista<br>
    55                         <?php if ($scrutinate == $sezionitotali) {?>
    56                                 <th class="text-end">Dati finali</th>
    57                         <?php } else {?>
    58                                 <th class="text-end"><span>Sezioni scrutinate: <?php echo $scrutinate; ?> su <?php echo $sezionitotali; ?></span></th>
    59                         <?php }?>
    6055                </h4>
    6156    </div>
    62 
     57<div class="table-responsive overflow-x">
     58        <table class="table  mb-0">
     59                <thead class="title-content">
     60                        <tr>
     61                                <th><?php echo _LISTE;?></th>
     62                                <?php if ($scrutinate == $sezionitotali) {?>
     63                                        <th class="text-end">Dati finali</th>
     64                                <?php } else {?>
     65                                        <th class="text-end"><span>Sezioni scrutinate: <?php echo $scrutinate; ?> su <?php echo $sezionitotali; ?></span></th>
     66                                <?php }?>
     67                        </tr>
     68                </thead>
     69        </table>
     70</div> 
    6371    <!-- Legenda sopra il grafico -->
    6472    <div class="row mb-3">
  • trunk/client/versione.php

    r446 r447  
    11<?php
    2 $versione = "3.0 rev 446";
     2$versione = "3.0 rev 447";
    33$version_number = $versione;
    44$datarel = "01 aprile 2025";
Note: See TracChangeset for help on using the changeset viewer.