Changeset 346
- Timestamp:
- Mar 30, 2021, 11:16:34 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/versione.php
r345 r346 1 1 <?php 2 2 3 $versione = "3.0 rev 34 5";3 $versione = "3.0 rev 346"; 4 4 $version_number = $versione; 5 $datarel = " 28 gennaio 2021";5 $datarel = "30 marzo 2021"; 6 6 $version = "Eleonline $version_number (<i>Data Release: $datarel</i>)"; 7 7 -
trunk/client/modules/Elezioni/consiglieri.php
r320 r346 47 47 while (isset($param['num_lista'.$x])) { 48 48 if ($param['num_lista'.$x]==$gruppo) array_push($collegate,$_SESSION['num_lista'.$x]); 49 elseif ($param['num_lista'.$x]!=0) array_push($collperd,$_SESSION['num_lista'.$x]);49 # elseif ($param['num_lista'.$x]!=0) array_push($collperd,$_SESSION['num_lista'.$x]); 50 50 $x++; 51 51 } -
trunk/client/modules/Elezioni/grafici/gd_image.inc.php
r340 r346 109 109 } 110 110 else { 111 //JpGraphError::RaiseL(25128);//('The function imageantialias() is not available in your PHP installation. Use the GD version that comes with PHP and not the standalone version.')111 JpGraphError::RaiseL(25128);//('The function imageantialias() is not available in your PHP installation. Use the GD version that comes with PHP and not the standalone version.') 112 112 } 113 113 } … … 221 221 } 222 222 223 static function GetWidth($aImg=null) { 224 if( $aImg === null ) { 225 $aImg = $this->img; 226 } 223 static function GetWidth($aImg) { 227 224 return imagesx($aImg); 228 225 } 229 226 230 static function GetHeight($aImg=null) { 231 if( $aImg === null ) { 232 $aImg = $this->img; 233 } 227 static function GetHeight($aImg) { 234 228 return imagesy($aImg); 235 229 } … … 2271 2265 function GetAndStream($aImage,$aCacheFileName) { 2272 2266 if( $this->Isvalid($aCacheFileName) ) { 2273 $this->StreamImgFile($aImage,$aCacheFileName);2267 return $this->StreamImgFile($aImage,$aCacheFileName); 2274 2268 } 2275 2269 else { -
trunk/client/modules/Elezioni/grafici/jpgraph.php
r284 r346 20 20 21 21 // Version info 22 define('JPG_VERSION','4. 2.6');22 define('JPG_VERSION','4.3.4'); 23 23 24 24 // Minimum required PHP version … … 3643 3643 // to many gridlines 3644 3644 $i=0; 3645 $x=$aTicksPos[$i];3646 3645 while( $i<count($aTicksPos) && ($x=$aTicksPos[$i]) <= $limit ) { 3647 3646 if ( $aType == 'solid' ) $this->img->Line($x,$yl,$x,$yu); … … 5571 5570 function Clear() { 5572 5571 $this->isRunningClear = true; 5573 $this->__construct($this->inputValues['aDatay'], $this->inputValues['aDatax']);5572 Plot::__construct($this->inputValues['aDatay'], $this->inputValues['aDatax']); 5574 5573 $this->isRunningClear = false; 5575 5574 } -
trunk/client/modules/Elezioni/grafici/jpgraph_bar.php
r284 r346 310 310 } 311 311 312 313 /** 314 * @override 315 * Without overriding this method, $this->numpoints does not updated correctly. 316 */ 317 function Clear() { 318 $this->isRunningClear = true; 319 $this->__construct($this->inputValues['aDatay'], $this->inputValues['aDatax']); 320 $this->isRunningClear = false; 321 } 322 312 323 function Stroke($img,$xscale,$yscale) { 313 324 … … 717 728 for($i=0; $i < $n; ++$i) { 718 729 list($xm,$ym) = $this->plots[$i]->Min(); 719 $xmin = m ax($xmin,$xm);730 $xmin = min($xmin,$xm); 720 731 $ymin = min($ymin,$ym); 721 732 } -
trunk/client/modules/Elezioni/grafici/jpgraph_date.php
r284 r346 407 407 if( $aStartTime == $aEndTime ) { 408 408 // Special case when we only have one data point. 409 // Create a small artific al intervall to do the autoscaling409 // Create a small artificial interval to do the autoscaling 410 410 $aStartTime -= 10; 411 411 $aEndTime += 10; 412 } 413 if( abs($aEndTime - $aStartTime) <= 1 ) { 414 // Special case when we only have one second. 415 // Create a small artificial interval to do the autoscaling 416 $aStartTime -= 1; 417 $aEndTime += 1; 412 418 } 413 419 $done=false; -
trunk/client/modules/Elezioni/grafici/jpgraph_errhandler.inc.php
r284 r346 17 17 if( !defined('USE_IMAGE_ERROR_HANDLER') ) { 18 18 define('USE_IMAGE_ERROR_HANDLER',true); 19 } 20 21 if( !defined('IMG_PNG') ) { 22 define('IMG_PNG',true); 19 23 } 20 24 … … 156 160 $errobj->Raise($this->getMessage()); 157 161 } 158 static public function defaultHandler( Exception$exception) {162 static public function defaultHandler(Throwable $exception) { 159 163 global $__jpg_OldHandler; 160 164 if( $exception instanceof JpGraphException ) { -
trunk/client/modules/Elezioni/grafici/jpgraph_pie.php
r284 r346 335 335 336 336 if( $this->setslicecolors==null ) { 337 $graph->legend->Add($l,$colors[$ta[$i%$numcolors]],"",0,$this->csimtargets[$i],$alt,$wintarg); 337 $csimtarget = isset($this->csimtargets[$i]) ? $this->csimtargets[$i] : null; 338 $graph->legend->Add($l,$colors[$ta[$i%$numcolors]],"",0,$csimtarget,$alt,$wintarg); 338 339 } 339 340 else { 340 $graph->legend->Add($l,$this->setslicecolors[$i%$numcolors],"",0,$this->csimtargets[$i],$alt,$wintarg); 341 $csimtarget = isset($this->csimtargets[$i]) ? $this->csimtargets[$i] : null; 342 $graph->legend->Add($l,$this->setslicecolors[$i%$numcolors],"",0,$csimtarget,$alt,$wintarg); 341 343 } 342 344 } -
trunk/client/modules/Elezioni/grafici/votanti_graf.php
r105 r346 9 9 include ("jpgraph.php"); 10 10 include ("jpgraph_pie.php"); 11 11 require_once ('jpgraph_pie3d.php'); 12 12 $e=$_GET['e'];$f=$_GET['f'];$e1=$_GET['e1'];$f1=$_GET['f1']; 13 13 $titolo=$_GET['titolo']; 14 14 if (isset($_GET['cop'])) $cop=$_GET['cop'];else $cop=''; 15 if (isset($_GET['x'])) $dim_x=$_GET['x']; else $dim_x=' 350';16 if (isset($_GET['y'])) $dim_y=$_GET['y']; else $dim_y=' 200';15 if (isset($_GET['x'])) $dim_x=$_GET['x']; else $dim_x='450'; 16 if (isset($_GET['y'])) $dim_y=$_GET['y']; else $dim_y='300'; 17 17 if (isset($_GET['logo'])) $logo=$_GET['logo'];else $logo=''; 18 18 $data = array($e,$f); … … 20 20 $graph = new PieGraph($dim_x,$dim_y,"auto"); 21 21 $graph->SetShadow(); 22 22 $theme_class= new VividTheme; 23 $graph->SetTheme($theme_class); 23 24 $graph->title->Set($titolo); 24 25 $graph->title->SetFont(FF_FONT1,FS_BOLD); 25 $graph ->legend->Pos( 0.55,0.75,"left" ,"center");26 26 $graph->legend->Pos( 0,0.41,"left" ,"center"); 27 $graph->legend->SetColumns(1); 27 28 $graph->SetBackgroundImage("../images/$logo",BGIMG_COPY); 28 29 29 30 $graph->SetBackgroundGradient('red','yellow',GRAD_HOR,BGRAD_MARGIN); 30 31 31 $p1 = new PiePlot ($data);32 $p1 = new PiePlot3D($data); 32 33 $p1->value->SetFormat(''); 33 34 $p1->value->Show(); 34 35 $p1->SetLegends($legend); 35 $p1->SetCenter(0. 45,0.5);36 $p1->SetCenter(0.65,0.35); 36 37 37 38 $graph->Add($p1); 39 $p1->ExplodeSlice(1); 38 40 $graph->Stroke(); 39 41 -
trunk/client/modules/Elezioni/grafici/voti_graf.php
r105 r346 9 9 include ("jpgraph.php"); 10 10 include ("jpgraph_pie.php"); 11 11 require_once ('jpgraph_pie3d.php'); 12 12 $a=$_GET['a'];$b=$_GET['b'];$c=$_GET['c'];$d=$_GET['d']; 13 13 $a1=$_GET['a1'];$b1=$_GET['b1'];$c1=$_GET['c1'];$d1=$_GET['d1']; … … 17 17 $data = array($a,$b,$c,$d); 18 18 $legend = array("$a $a1","$b $b1", "$c $c1", "$d $d1"); 19 $graph = new PieGraph( 350,250,"auto");19 $graph = new PieGraph(450,300,"auto"); 20 20 $graph->SetShadow(); 21 22 23 21 $theme_class= new VividTheme; 22 $graph->SetTheme($theme_class); 24 23 $graph->title->Set($titolo); 25 24 $graph->title->SetFont(FF_FONT1,FS_BOLD); 26 $graph ->legend->Pos( 0.52,0.70,"left" ,"center"); 25 $graph->legend->Pos( 0.0,0.41,"left" ,"center"); 26 $graph->legend->SetColumns(1); 27 27 $graph->SetBackgroundGradient('white','yellow',GRAD_HOR,BGRAD_MARGIN); 28 28 … … 34 34 //$graph->AdjBackgroundImage(0.4,0.3,-1); 35 35 36 $p1 = new PiePlot ($data);36 $p1 = new PiePlot3D($data); 37 37 $p1->value->SetFormat(''); 38 38 $p1->value->Show(); 39 39 $p1->SetLegends($legend); 40 $p1->SetCenter(0. 25,0.65);40 $p1->SetCenter(0.65,0.35); 41 41 $graph->Add($p1); 42 $p1->ExplodeSlice(1); 42 43 $graph->Stroke(); 43 44 45 46 47 48 49 $graph->Add($p1);50 $graph->Stroke();51 52 53 54 55 44 56 45 ?> -
trunk/client/modules/Elezioni/gruppo.php
r344 r346 297 297 298 298 if ($circo) $condcirc="and t5.id_circ=$id_circ"; 299 if ($tab=="gruppo" or $genere==4 )299 if ($tab=="gruppo" or $genere==4 or ($genere==5 and $votog)) 300 300 $votigl=" sum(t3.validi),sum(t3.nulli),sum(t3.bianchi),sum(t3.contestati),sum(t3.voti_nulli)"; 301 301 else -
trunk/client/versione.php
r345 r346 1 1 <?php 2 2 3 $versione = "3.0 rev 34 5";3 $versione = "3.0 rev 346"; 4 4 $version_number = $versione; 5 $datarel = " 28 gennaio 2021";5 $datarel = "30 marzo 2021"; 6 6 $version = "Eleonline $version_number (<i>Data Release: $datarel</i>)"; 7 7 -
trunk/install/sql/eleonline.sql
r318 r346 416 416 `stemma` blob, 417 417 `id_circ` int(11) NOT NULL DEFAULT '0', 418 `num_circ` int(2) UNSIGNED NOT NULL ,418 `num_circ` int(2) UNSIGNED NOT NULL DEFAULT '0', 419 419 `prognome` text, 420 420 `programma` mediumblob
Note:
See TracChangeset
for help on using the changeset viewer.