| | 366 | //Detacher une, plusieurs ou toutes les parties du camembert |
| | 367 | if ($option['camembert_detacher']) |
| | 368 | { |
| | 369 | $ecartement=20; |
| | 370 | if (isset($option['camembert_ecart'])) $ecartement=(int) $option['camembert_ecart']; |
| | 371 | if ($option['camembert_detacher']=='tout') $plot->ExplodeAll($ecartement); |
| | 372 | else |
| | 373 | { |
| | 374 | $detachement = explode(",", $option['camembert_detacher']); |
| | 375 | foreach ($donnee as $key => $value) |
| | 376 | { |
| | 377 | $secteur[$key]=0; |
| | 378 | foreach ($detachement as $key1 => $value1) {if ($key==((int)$value1-1)) $secteur[$key]=$ecartement;} |
| | 379 | } |
| | 380 | $plot->Explode($secteur); |
| | 381 | } |
| | 382 | } |
| | 413 | //Detacher une, plusieurs ou toutes les parties du camembert |
| | 414 | if ($option['camembert_detacher']) |
| | 415 | { |
| | 416 | $ecartement=20; |
| | 417 | if (isset($option['camembert_ecart'])) $ecartement=(int) $option['camembert_ecart']; |
| | 418 | if ($option['camembert_detacher']=='tout') $plot->ExplodeAll($ecartement); |
| | 419 | else |
| | 420 | { |
| | 421 | $detachement = explode(",", $option['camembert_detacher']); |
| | 422 | foreach ($donnee as $key => $value) |
| | 423 | { |
| | 424 | $secteur[$key]=0; |
| | 425 | foreach ($detachement as $key1 => $value1) {if ($key==((int)$value1-1)) $secteur[$key]=$ecartement;} |
| | 426 | } |
| | 427 | $plot->Explode($secteur); |
| | 428 | } |
| | 429 | } |