IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Symfony PHP Discussion :

Probléme d'affichage de graphe et export pdf


Sujet :

Symfony PHP

  1. #1
    Nouveau membre du Club
    Inscrit en
    Mars 2011
    Messages
    65
    Détails du profil
    Informations forums :
    Inscription : Mars 2011
    Messages : 65
    Points : 30
    Points
    30
    Par défaut Probléme d'affichage de graphe et export pdf
    Bonjour à tous,
    J'ai essayé depuis quelques jours d'afficher des graphes à partir des données puis de les exporter dans un fichier pdf.
    Mon problème est que j'ai pas pu afficher mes graphes et aucune erreur ne s'est affichée(voir ci joint)d'une part.D'autre part,l'erreur :500 | Internal Server Error | JpGraphExceptionL
    Empty input data array specified for plot. Must have at least one data point.
    s'affiche lorsque je veux exporter le pdf.
    Mon fichier actions.class.php est le suivant:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
    580
    581
    582
    583
    584
    585
    586
    587
    588
    589
    590
    591
    592
    593
    594
    595
    596
    597
    598
    599
    600
    601
    602
    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
    636
    637
    638
    639
    640
    641
    642
    643
    644
    645
    646
    647
    648
    649
    650
    651
    652
    653
    654
    655
    656
    657
    658
    659
    660
    661
    662
    663
    664
    665
    666
    667
    668
    669
    670
    671
    672
    673
    674
    675
    676
    677
    678
    679
    680
    681
    682
    683
    684
    685
    686
    687
    688
    689
    690
    691
    692
    693
    694
    695
    696
    697
    698
    699
    700
    701
    702
    703
    704
    705
    706
    707
    708
    709
    710
    711
    712
    713
    714
    715
    716
    717
    718
    719
    720
    721
    722
    723
    724
    725
    726
    727
    728
    729
    730
    731
    732
    733
    734
    735
    736
    737
    738
    739
    740
    741
    742
    743
    744
    745
    746
    747
    748
    749
    750
    751
    752
    753
    754
    755
    756
    757
    758
    759
    760
    761
    762
    763
    764
    765
    766
    767
    768
    769
    770
    771
    772
    773
    774
    775
    776
    777
    778
    779
    780
    781
    782
    783
    784
    785
    786
    787
    788
    789
    790
    791
    792
    793
    794
    795
    796
    797
    798
    799
    800
    801
    802
    803
    804
    805
    806
    807
    808
    809
    810
    811
    812
    813
    814
    815
    816
    817
    818
    819
    820
    821
    822
    823
    824
    825
    826
    827
    828
    829
    830
    831
    832
    833
    834
    835
    836
    837
    838
    839
    840
    841
    842
    843
    844
    845
    846
    847
    848
    849
    850
    851
    852
    853
    854
    855
    856
    857
    858
    859
    860
    861
    862
    863
    864
    865
    866
    867
    868
    869
    870
    871
    872
    873
    874
    875
    876
    877
    878
    879
    880
    881
    882
    883
    884
    885
    886
    887
    888
    889
    890
    891
    892
    893
    894
    895
    896
    897
    898
    899
    900
    901
    902
    903
    904
    905
    906
    907
    908
    909
    910
    911
    912
    913
    914
    915
    916
    917
    918
    919
    920
    921
    922
    923
    924
    925
    926
    927
    928
    929
    930
    931
    932
    933
    934
    935
    936
    937
    938
    939
    940
    941
    942
    943
    944
    945
    946
    947
    948
    949
    950
    <?php
     
    /**
     * prostate_recap actions.
     *
     * @package    IMM
     * @subpackage prostate_recap
     * @author     Your name here
     * @version    SVN: $Id: actions.class.php 12479 2008-10-31 10:54:40Z fabien $
     */
    class prostate_recapActions extends sfActions
    {
    	/**
    	 * Executes index action
    	 *
    	 * @param sfRequest $request A request object
    	 */
    	public function executeIndex(sfWebRequest $request)
    	{
    		//$this->forward('default', 'module');
    		$this->patient = $this->getUser()->getAttribute('patient');
    		 $this->getUser()->setAttribute('menu', 2);
    		//$this->biopsies = $patient->getBiopsies();
    	}
     
    	public function executeLineChartData()
    	{
    		$chartData = array();
    		$date = array();
    		$patient = $this->getUser()->getAttribute('patient');
    		foreach ($patient->getProstateRecaps() as $preop)
    		{
    			$chartData[] = $preop->getPsa();
    			$date[] = $preop->getDate();
    		}
     
    		$Suivis = Doctrine::getTable('Suivi')
    		->createQuery('a')
    		->where('patient_id = ?', $patient->getId())
    		->orderBy('date ASC')
    		->execute();
     
    		foreach ($Suivis as $suivi)
    		{
    			$chartData[] = $suivi->getPsa();
    			$date[] = $suivi->getDate();
    		}
     
    		/*for( $i = 0; $i < 7; $i++ )
    		 {
    		 $chartData[] = rand(0, 50);
    		 }*/
     
     
     
    		//Create new stGraph object
    		$g = new stGraph();
     
    		// Chart Title
    		$g->title( 'Suivi PSA', '{font-size: 20px;}' );
    		$g->bg_colour = '#E4F5FC';
    		$g->set_inner_background( '#E3F0FD', '#CBD7E6', 90 );
    		$g->x_axis_colour( '#8499A4', '#E4F5FC' );
    		$g->y_axis_colour( '#8499A4', '#E4F5FC' );
     
    		//Use line_dot to set line dots diameter, text, color etc.
    		$g->line_dot(2, 3, '#3495FE', 'Evolution du PSA', 10);
     
    		//In case of line chart data should be passed to stGraph object
    		//unsing set_data
    		$g->set_data( $chartData );
     
    		$g->set_x_offset( false );
     
    		//Setting labels for X-Axis
    		$g->set_x_labels( $date );
     
    		//to set the format of labels on x-axis e.g. font, color, step
    		$g->set_x_label_style( 10, '#18A6FF', 0, 1 );
     
    		//set maximum value for y-axis
    		//we can fix the value as 20, 10 etc.
    		//but its better to use max of data
    		$g->set_y_max( max($chartData) );
     
    		$g->y_label_steps( 5 );
     
    		// display the data
    		echo $g->render();
     
    		echo $g->render();
     
    		return sfView::NONE;
    	}
    	//Image Line Chart
    	public function executeLineImage(sfWebRequest $request)
    	{
     
    		require_once sfConfig::get('sf_plugins_dir').'/stOfcPlugin/lib/jpgraph.php';
    		require_once sfConfig::get('sf_plugins_dir').'/stOfcPlugin/lib/jpgraph_line.php';
     
    		$chartData = array();
    		$date = array();
    		$patient = $this->getUser()->getAttribute('patient');
     
    		foreach ($patient->getProstateRecaps() as $preop)
    		{
    			$chartData[] = $preop->getPsa();
    			$date[] = $preop->getDate();
     
    		}
     
    		$Suivis = Doctrine::getTable('Suivi')
    		->createQuery('a')
    		->where('patient_id = ?', $patient->getId())
    		->orderBy('date ASC')
    		->execute();
     
    		foreach ($Suivis as $suivi)
    		{
    			$chartData[] = $suivi->getPsa();
    			$date[] = $suivi->getDate();
    		}
     
     
     
    		// Setup the graph
    		$graph = new Graph(300,250);
    		$graph->SetScale("textlin");
     
    		$theme_class=new OceanTheme;
    		$graph->SetTheme($theme_class);
    		$graph->img->SetAntiAliasing(false);
    		$graph->title->Set('Suivi PSA');
    		$graph->title->SetColor('#000');
    		$graph->SetBox(false);
     
    		$graph->img->SetAntiAliasing();
     
     
    		$graph->yaxis->HideZeroLabel();
    		$graph->yaxis->HideLine(false);
    		$graph->yaxis->HideTicks(1,false);
    		$graph->yaxis->SetColor('#000', '#000');
     
    		$graph->xgrid->Show();
    		$graph->xgrid->SetLineStyle("solid");
    		$graph->xaxis->SetTickLabels($date);
    		$graph->xgrid->SetColor('#E3E3E3');
    		$graph->xaxis->HideTicks(1,false);
    		// Create the first line
    		$p1 = new LinePlot($chartData);
     
    		$p1->mark->SetType(MARK_SQUARE,'',1.5);
    		$p1->mark->SetColor('#55bbdd');
    		$p1->mark->SetFillColor('#55bbdd');
    		$graph->Add($p1);
    		$p1->SetColor("#6495ED");
     
    		$graph->legend->SetFrameWeight(1);
     
    		// Output line
    		$url=sfConfig::get('sf_upload_dir');
     
    		if (file_exists($url.'/Graph/PSA.png'))
    		{
    			unlink($url.'/Graph/PSA.png');
    		}
    		$graph->Stroke($url.'/Graph/PSA.png');
     
    		return sfView::NONE;
     
    	}
     
     
    	public function executeGraphICS()
    	{
    		$chartData = array();
    		$date = array();
    		$patient = $this->getUser()->getAttribute('patient');
    		foreach ($patient->getProstateRecaps() as $preop)
    		{
    			$chartData[] = $preop->getIcs();
    			$date[] = $preop->getDate();
    		}
     
    		$Suivis = Doctrine::getTable('Suivi')
    		->createQuery('a')
    		->where('patient_id = ?', $patient->getId())
    		->orderBy('date ASC')
    		->execute();
    		foreach ($Suivis as $suivi)
    		{
    			$chartData[] = $suivi->getIcs();
    			$date[] = $suivi->getDate();
    		}
     
    		/*for( $i = 0; $i < 7; $i++ )
    		 {
    		 $chartData[] = rand(0, 50);
    		 }*/
     
     
     
    		//Create new stGraph object
    		$g = new stGraph();
     
    		// Chart Title
    		$g->title( 'Suivi ICS', '{font-size: 20px;}' );
    		$g->bg_colour = '#E4F5FC';
    		$g->set_inner_background( '#E3F0FD', '#CBD7E6', 90 );
    		$g->x_axis_colour( '#8499A4', '#E4F5FC' );
    		$g->y_axis_colour( '#8499A4', '#E4F5FC' );
     
    		//Use line_dot to set line dots diameter, text, color etc.
    		$g->line_dot(2, 3, '#3495FE', 'Evolution du ICS', 10);
     
    		//In case of line chart data should be passed to stGraph object
    		//unsing set_data
    		$g->set_data( $chartData );
     
    		$g->set_x_offset( false );
     
    		//Setting labels for X-Axis
    		$g->set_x_labels( $date );
     
    		//to set the format of labels on x-axis e.g. font, color, step
    		$g->set_x_label_style( 10, '#18A6FF', 0, 1 );
     
    		//set maximum value for y-axis
    		//we can fix the value as 20, 10 etc.
    		//but its better to use max of data
    		$g->set_y_max( max($chartData) );
     
    		$g->y_label_steps( 5 );
     
    		// display the data
    		echo $g->render();
     
    		echo $g->render();
     
    		return sfView::NONE;
    	}
     
     
    	//Image GraphIcs
     
    	public function executeGraphICSImage(sfWebRequest $request)
    	{
     
    		require_once sfConfig::get('sf_plugins_dir').'/stOfcPlugin/lib/jpgraph.php';
    		require_once sfConfig::get('sf_plugins_dir').'/stOfcPlugin/lib/jpgraph_line.php';
     
    		$chartData = array();
    		$date = array();
    		$patient = $this->getUser()->getAttribute('patient');
    		foreach ($patient->getProstateRecaps() as $preop)
    		{
    			$chartData[] = $preop->getIcs();
    			$date[] = $preop->getDate();
    		}
     
    		$Suivis = Doctrine::getTable('Suivi')
    		->createQuery('a')
    		->where('patient_id = ?', $patient->getId())
    		->orderBy('date ASC')
    		->execute();
    		foreach ($Suivis as $suivi)
    		{
    			$chartData[] = $suivi->getIcs();
    			$date[] = $suivi->getDate();
    		}
     
     
     
     
    		// Setup the graph
    		$graph = new Graph(300,250);
    		$graph->SetScale("textlin");
     
    		$theme_class=new OceanTheme;
    		$graph->SetTheme($theme_class);
    		$graph->img->SetAntiAliasing(false);
    		$graph->title->Set('Suivi ICS');
    		$graph->title->SetColor('#000');
    		$graph->SetBox(false);
     
    		$graph->img->SetAntiAliasing();
     
     
    		$graph->yaxis->HideZeroLabel();
    		$graph->yaxis->HideLine(false);
    		$graph->yaxis->HideTicks(1,false);
    		$graph->yaxis->SetColor('#000', '#000');
     
    		$graph->xgrid->Show();
    		$graph->xgrid->SetLineStyle("solid");
    		$graph->xaxis->SetTickLabels($date);
    		$graph->xgrid->SetColor('#E3E3E3');
    		$graph->xaxis->HideTicks(1,false);
    		// Create the first line
    		$p1 = new LinePlot($chartData);
     
    		$p1->mark->SetType(MARK_SQUARE,'',1.5);
    		$p1->mark->SetColor('#55bbdd');
    		$p1->mark->SetFillColor('#55bbdd');
    		$graph->Add($p1);
    		$p1->SetColor("#6495ED");
     
    		$graph->legend->SetFrameWeight(1);
     
    		// Output line
    		$url=sfConfig::get('sf_upload_dir');
     
    		if (file_exists($url.'/Graph/ICS.png'))
    		{
    			unlink($url.'/Graph/ICS.png');
    		}
    		$graph->Stroke($url.'/Graph/ICS.png');
     
    		return sfView::NONE;
     
    	}
     
     
     
    	public function executeGraphIPSS()
    	{
    		$chartData = array();
    		$date = array();
    		$patient = $this->getUser()->getAttribute('patient');
    		foreach ($patient->getProstateRecaps() as $preop)
    		{
    			$chartData[] = $preop->getIpss();
    			$date[] = $preop->getDate();
    		}
    		$Suivis = Doctrine::getTable('Suivi')
    		->createQuery('a')
    		->where('patient_id = ?', $patient->getId())
    		->orderBy('date ASC')
    		->execute();
    		foreach ($Suivis as $suivi)
    		{
    			$chartData[] = $suivi->getIpss();
    			$date[] = $suivi->getDate();
    		}
     
    		/*for( $i = 0; $i < 7; $i++ )
    		 {
    		 $chartData[] = rand(0, 50);
    		 }*/
     
     
     
    		//Create new stGraph object
    		$g = new stGraph();
     
    		// Chart Title
    		$g->title( 'Suivi IPSS', '{font-size: 20px;}' );
    		$g->bg_colour = '#E4F5FC';
    		$g->set_inner_background( '#E3F0FD', '#CBD7E6', 90 );
    		$g->x_axis_colour( '#8499A4', '#E4F5FC' );
    		$g->y_axis_colour( '#8499A4', '#E4F5FC' );
     
    		//Use line_dot to set line dots diameter, text, color etc.
    		$g->line_dot(2, 3, '#3495FE', 'Evolution du IPSS', 10);
     
    		//In case of line chart data should be passed to stGraph object
    		//unsing set_data
    		$g->set_data( $chartData );
     
    		$g->set_x_offset( false );
     
    		//Setting labels for X-Axis
    		$g->set_x_labels( $date );
     
    		//to set the format of labels on x-axis e.g. font, color, step
    		$g->set_x_label_style( 10, '#18A6FF', 0, 1 );
     
    		//set maximum value for y-axis
    		//we can fix the value as 20, 10 etc.
    		//but its better to use max of data
    		$g->set_y_max( max($chartData) );
     
    		$g->y_label_steps( 5 );
     
    		// display the data
    		echo $g->render();
     
    		echo $g->render();
     
    		return sfView::NONE;
    	}
     
    	//Image Graph Ipss
    	public function executeGraphIPSSImage(sfWebRequest $request)
    	{
     
    		require_once sfConfig::get('sf_plugins_dir').'/stOfcPlugin/lib/jpgraph.php';
    		require_once sfConfig::get('sf_plugins_dir').'/stOfcPlugin/lib/jpgraph_line.php';
     
    		$chartData = array();
    		$date = array();
    		$patient = $this->getUser()->getAttribute('patient');
    		foreach ($patient->getProstateRecaps() as $preop)
    		{
    			$chartData[] = $preop->getIpss();
    			$date[] = $preop->getDate();
    		}
    		$Suivis = Doctrine::getTable('Suivi')
    		->createQuery('a')
    		->where('patient_id = ?', $patient->getId())
    		->orderBy('date ASC')
    		->execute();
    		foreach ($Suivis as $suivi)
    		{
    			$chartData[] = $suivi->getIpss();
    			$date[] = $suivi->getDate();
    		}
     
     
     
     
    		// Setup the graph
    		$graph = new Graph(300,250);
    		$graph->SetScale("textlin");
     
    		$theme_class=new OceanTheme;
    		$graph->SetTheme($theme_class);
    		$graph->img->SetAntiAliasing(false);
    		$graph->title->Set('Suivi IPSS');
    		$graph->title->SetColor('#000');
    		$graph->SetBox(false);
     
    		$graph->img->SetAntiAliasing();
     
     
    		$graph->yaxis->HideZeroLabel();
    		$graph->yaxis->HideLine(false);
    		$graph->yaxis->HideTicks(1,false);
    		$graph->yaxis->SetColor('#000', '#000');
     
    		$graph->xgrid->Show();
    		$graph->xgrid->SetLineStyle("solid");
    		$graph->xaxis->SetTickLabels($date);
    		$graph->xgrid->SetColor('#E3E3E3');
    		$graph->xaxis->HideTicks(1,false);
    		// Create the first line
    		$p1 = new LinePlot($chartData);
     
    		$p1->mark->SetType(MARK_SQUARE,'',1.5);
    		$p1->mark->SetColor('#55bbdd');
    		$p1->mark->SetFillColor('#55bbdd');
    		$graph->Add($p1);
    		$p1->SetColor("#6495ED");
     
    		$graph->legend->SetFrameWeight(1);
     
    		// Output line
    		$url=sfConfig::get('sf_upload_dir');
     
    		if (file_exists($url.'/Graph/IPSS.png'))
    		{
    			unlink($url.'/Graph/IPSS.png');
    		}
    		$graph->Stroke($url.'/Graph/IPSS.png');
     
    		return sfView::NONE;
     
    	}
     
     
     
     
     
    	public function executeGraphEHS()
    	{
    		$chartData = array();
    		$date = array();
    		$patient = $this->getUser()->getAttribute('patient');
    		foreach ($patient->getProstateRecaps() as $preop)
    		{
    			$chartData[] = $preop->getEhs();
    			$date[] = $preop->getDate();
    		}
    		$Suivis = Doctrine::getTable('Suivi')
    		->createQuery('a')
    		->where('patient_id = ?', $patient->getId())
    		->orderBy('date ASC')
    		->execute();
    		foreach ($Suivis as $suivi)
    		{
    			$chartData[] = $suivi->getErectionscopeEhs();
    			$date[] = $suivi->getDate();
    		}
     
    		/*for( $i = 0; $i < 7; $i++ )
    		 {
    		 $chartData[] = rand(0, 50);
    		 }*/
     
     
     
    		//Create new stGraph object
    		$g = new stGraph();
     
    		// Chart Title
    		$g->title( 'Suivi EHS', '{font-size: 20px;}' );
    		$g->bg_colour = '#E4F5FC';
    		$g->set_inner_background( '#E3F0FD', '#CBD7E6', 90 );
    		$g->x_axis_colour( '#8499A4', '#E4F5FC' );
    		$g->y_axis_colour( '#8499A4', '#E4F5FC' );
     
    		//Use line_dot to set line dots diameter, text, color etc.
    		$g->line_dot(2, 3, '#3495FE', 'Evolution du EHS', 10);
     
    		//In case of line chart data should be passed to stGraph object
    		//unsing set_data
    		$g->set_data( $chartData );
     
    		$g->set_x_offset( false );
     
    		//Setting labels for X-Axis
    		$g->set_x_labels( $date );
     
    		//to set the format of labels on x-axis e.g. font, color, step
    		$g->set_x_label_style( 10, '#18A6FF', 0, 1 );
     
    		//set maximum value for y-axis
    		//we can fix the value as 20, 10 etc.
    		//but its better to use max of data
    		$g->set_y_max( max($chartData) );
     
    		$g->y_label_steps( 5 );
     
    		// display the data
    		echo $g->render();
     
    		echo $g->render();
     
    		return sfView::NONE;
    	}
     
     
     
    	//Image Graph EHS
    	public function executeGraphEHSImage(sfWebRequest $request)
    	{
     
    		require_once sfConfig::get('sf_plugins_dir').'/stOfcPlugin/lib/jpgraph.php';
    		require_once sfConfig::get('sf_plugins_dir').'/stOfcPlugin/lib/jpgraph_line.php';
     
    		$chartData = array();
    		$date = array();
    		$patient = $this->getUser()->getAttribute('patient');
    		foreach ($patient->getProstateRecaps() as $preop)
    		{
    			$chartData[] = $preop->getEhs();
    			$date[] = $preop->getDate();
    		}
    		$Suivis = Doctrine::getTable('Suivi')
    		->createQuery('a')
    		->where('patient_id = ?', $patient->getId())
    		->orderBy('date ASC')
    		->execute();
    		foreach ($Suivis as $suivi)
    		{
    			$chartData[] = $suivi->getErectionscopeEhs();
    			$date[] = $suivi->getDate();
    		}
     
     
     
    		// Setup the graph
    		$graph = new Graph(300,250);
    		$graph->SetScale("textlin");
     
    		$theme_class=new OceanTheme;
    		$graph->SetTheme($theme_class);
    		$graph->img->SetAntiAliasing(false);
    		$graph->title->Set('Suivi EHS');
    		$graph->title->SetColor('#000');
    		$graph->SetBox(false);
     
    		$graph->img->SetAntiAliasing();
     
     
    		$graph->yaxis->HideZeroLabel();
    		$graph->yaxis->HideLine(false);
    		$graph->yaxis->HideTicks(1,false);
    		$graph->yaxis->SetColor('#000', '#000');
     
    		$graph->xgrid->Show();
    		$graph->xgrid->SetLineStyle("solid");
    		$graph->xaxis->SetTickLabels($date);
    		$graph->xgrid->SetColor('#E3E3E3');
    		$graph->xaxis->HideTicks(1,false);
    		// Create the first line
    		$p1 = new LinePlot($chartData);
     
    		$p1->mark->SetType(MARK_SQUARE,'',1.5);
    		$p1->mark->SetColor('#55bbdd');
    		$p1->mark->SetFillColor('#55bbdd');
    		$graph->Add($p1);
    		$p1->SetColor("#6495ED");
     
    		$graph->legend->SetFrameWeight(1);
     
    		// Output line
    		$url=sfConfig::get('sf_upload_dir');
     
    		if (file_exists($url.'/Graph/EHS.png'))
    		{
    			unlink($url.'/Graph/EHS.png');
    		}
    		$graph->Stroke($url.'/Graph/EHS.png');
     
    		return sfView::NONE;
     
    	}
     
     
     
     
    	public function executeGraphIIEF5()
    	{
    		$chartData = array();
    		$date = array();
    		$patient = $this->getUser()->getAttribute('patient');
    		foreach ($patient->getProstateRecaps() as $preop)
    		{
    			$chartData[] = $preop->getIef5();
    			$date[] = $preop->getDate();
    		}
    		$Suivis = Doctrine::getTable('Suivi')
    		->createQuery('a')
    		->where('patient_id = ?', $patient->getId())
    		->orderBy('date ASC')
    		->execute();
    		foreach ($Suivis as $suivi)
    		{
    			$chartData[] = $suivi->getIefs();
    			$date[] = $suivi->getDate();
    		}
     
    		//Create new stGraph object
    		$g = new stGraph();
     
    		// Chart Title
    		$g->title( 'Suivi IIEF5', '{font-size: 20px;}' );
    		$g->bg_colour = '#E4F5FC';
    		$g->set_inner_background( '#E3F0FD', '#CBD7E6', 90 );
    		$g->x_axis_colour( '#8499A4', '#E4F5FC' );
    		$g->y_axis_colour( '#8499A4', '#E4F5FC' );
     
    		//Use line_dot to set line dots diameter, text, color etc.
    		$g->line_dot(2, 3, '#3495FE', 'Evolution du IIEF5', 10);
     
    		//In case of line chart data should be passed to stGraph object
    		//unsing set_data
    		$g->set_data( $chartData );
     
    		$g->set_x_offset( false );
    		//Setting labels for X-Axis
    		$g->set_x_labels( $date );
     
    		//to set the format of labels on x-axis e.g. font, color, step
    		$g->set_x_label_style( 10, '#18A6FF', 0, 1 );
     
    		//set maximum value for y-axis
    		//we can fix the value as 20, 10 etc.
    		//but its better to use max of data
    		$g->set_y_max( max($chartData) );
     
    		$g->y_label_steps( 5 );
     
    		// display the data
    		echo $g->render();
     
    		//echo $g->render();
    		return sfView::NONE;
    	}
     
    	//Image Graph IIEF
    	public function executeGraphIIEFImage(sfWebRequest $request)
    	{
     
    		require_once sfConfig::get('sf_plugins_dir').'/stOfcPlugin/lib/jpgraph.php';
    		require_once sfConfig::get('sf_plugins_dir').'/stOfcPlugin/lib/jpgraph_line.php';
     
    		$chartData = array();
    		$date = array();
    		$patient = $this->getUser()->getAttribute('patient');
    		foreach ($patient->getProstateRecaps() as $preop)
    		{
    			$chartData[] = $preop->getIef5();
    			$date[] = $preop->getDate();
    		}
    		$Suivis = Doctrine::getTable('Suivi')
    		->createQuery('a')
    		->where('patient_id = ?', $patient->getId())
    		->orderBy('date ASC')
    		->execute();
    		foreach ($Suivis as $suivi)
    		{
    			$chartData[] = $suivi->getIefs();
    			$date[] = $suivi->getDate();
    		}
     
     
     
     
    		// Setup the graph
    		$graph = new Graph(300,250);
    		$graph->SetScale("textlin");
     
    		$theme_class=new OceanTheme;
    		$graph->SetTheme($theme_class);
    		$graph->img->SetAntiAliasing(false);
    		$graph->title->Set('Suivi IIEF');
    		$graph->title->SetColor('#000');
    		$graph->SetBox(false);
     
    		$graph->img->SetAntiAliasing();
     
     
    		$graph->yaxis->HideZeroLabel();
    		$graph->yaxis->HideLine(false);
    		$graph->yaxis->HideTicks(1,false);
    		$graph->yaxis->SetColor('#000', '#000');
     
    		$graph->xgrid->Show();
    		$graph->xgrid->SetLineStyle("solid");
    		$graph->xaxis->SetTickLabels($date);
    		$graph->xgrid->SetColor('#E3E3E3');
    		$graph->xaxis->HideTicks(1,false);
    		// Create the first line
    		$p1 = new LinePlot($chartData);
     
    		$p1->mark->SetType(MARK_SQUARE,'',1.5);
    		$p1->mark->SetColor('#55bbdd');
    		$p1->mark->SetFillColor('#55bbdd');
    		$graph->Add($p1);
    		$p1->SetColor("#6495ED");
     
    		$graph->legend->SetFrameWeight(1);
     
    		// Output line
    		$url=sfConfig::get('sf_upload_dir');
     
    		if (file_exists($url.'/Graph/IIEF.png'))
    		{
    			unlink($url.'/Graph/IIEF.png');
    		}
    		$graph->Stroke($url.'/Graph/IIEF.png');
     
    		return sfView::NONE;
     
    	}
     
     
     
     
     
     
     
     
     
     
     
     
     
    	public function executeExportPdf(sfWebRequest $request)
    	{
    		$url=sfConfig::get('sf_upload_dir');
    		$this->executeGraphICSImage($request);
    		$this->executeLineImage($request);
    		$this->executeGraphEHSImage($request);
    		$this->executeGraphIIEFImage($request);
    		$this->executeGraphIPSSImage($request);
     
    		require_once sfConfig::get('sf_lib_dir').'/fpdf/fpdf.php';
    		$patient = $this->getUser()->getAttribute('patient');
     
     
    		  $this->pdf=new FPDF();
    		  $this->pdf->AddPage();
    		  $this->pdf->SetFont('Arial','B',12);
    		  $this->pdf->SetDrawColor(30, 136, 236);
    		  $this->pdf->Cell(0,10,'IPP : '.utf8_decode($patient->getIpp()).'    Nom : '.utf8_decode($patient->getName()).'    Prenom : '.utf8_decode($patient->getFirstname()).'    Date de naissance : '.utf8_decode(date('d-m-Y', strtotime($patient->getDateOfBirth()))),1,1,'C');
    		  $this->pdf->Cell(80,2,'',0,1);
    		  $this->pdf->Cell(40,8,'Biopsie',1,1);
    		  foreach ($patient->getBiopsies() as $biopsie)
    		  {
    		    $biopsie_total_droite = $biopsie->getBaseD() + $biopsie->getMoyenD() + $biopsie->getApexD();
    		    $biopsie_total_gauche = $biopsie->getBaseG() + $biopsie->getMoyenG() + $biopsie->getApexG();
     
    		    $this->pdf->SetFont('Arial','B',11);
    		    $this->pdf->Cell(50,6,date('d-m-Y', strtotime($biopsie->getDate())),0,1);
    		    $this->pdf->SetFont('Arial','',10);
    		    $this->pdf->Cell(60,5,'Score de gleason : '.$biopsie->getScoreGlobal(),0);
    		    $this->pdf->Cell(60,5,'Grade de gleason : '.$biopsie->getScorePremier(),0,1);
    		    $this->pdf->Cell(60,5,'% de biopsies positives : '.$biopsie->getRapportBP(),0);
    		    $this->pdf->Cell(60,5,'% de longueur de biopsies positives : '.$biopsie->getRapportLT(),0,1);
    		    $this->pdf->Cell(60,5,'Nombre de biopsies positives : '.$biopsie->getBiopsiePositive().' dont '.$biopsie_total_droite.' a droite et '.$biopsie_total_gauche.' a gauche',0,1);
     
    		  }
    		  $this->pdf->SetFont('Arial','B',12);
    		  $this->pdf->Cell(80,5,'',0,1);
    		  $this->pdf->Cell(40,8,'Pre-op',1,1);
    		  foreach ($patient->getProstateRecaps() as $preop)
    		  {
    		    $this->pdf->SetFont('Arial','B',11);
    		    $this->pdf->Cell(25,6,date('d-m-Y', strtotime($preop->getDate())),0);
    		    $this->pdf->SetFont('Arial','',10);
    		    $this->pdf->Cell(25,5,'PSA : '.$preop->getPsa(),0);
    		    $this->pdf->Cell(25,5,'Stade T : '.$preop->getStadeT(),0);
    		    $this->pdf->Cell(25,5,'Stade N : '.$preop->getStadeN(),0);
    		    $this->pdf->Cell(25,5,'Stade M : '.$preop->getStadeM(),0);
    		    if ($preop->getClassificationAmico() == 0)
    		    {
    		      $this->pdf->Cell(30,5,'Amico : Faible risque',0);
    		    }
    		    elseif ($preop->getClassificationAmico() == 1)
    		    {
    		      $this->pdf->Cell(30,5,'Amico : Risque intermediaire',0);
    		    }
    		    elseif ($preop->getClassificationAmico() == 2)
    		    {
    		      $this->pdf->Cell(30,5,'Amico : Haut risque',0);
    		    }
    		  }
    		  $this->pdf->SetFont('Arial','B',12);
    		  $this->pdf->Cell(0,10,'',0,1);
    		  $this->pdf->Cell(40,8,'Traitements',1,1);
    		  foreach ($patient->getTraitementFiches() as $traitement)
    		  {
    		    $this->pdf->SetFont('Arial','B',11);
    		    $this->pdf->Cell(25,6,date('d-m-Y', strtotime($traitement->getDate())),0);
    		    $this->pdf->SetFont('Arial','',10);
    		    $this->pdf->Cell(25,5,utf8_decode($traitement->getTraitement()),0,1);
    		  }
     
    		  $this->pdf->SetFont('Arial','B',12);
    		  //$pdf->Cell(0,6,'',0,1);
    		  $this->pdf->Cell(0,5,'',0,1);
    		  $this->pdf->Cell(40,8,'Anapath',1,1);
    		  foreach ($patient->getAnapaths() as $anapath)
    		  {
    		    $this->pdf->SetFont('Arial','B',11);
    		    $this->pdf->Cell(25,6,date('d-m-Y', strtotime($anapath->getDate())),0);
    		    $this->pdf->SetFont('Arial','',10);
    		    $this->pdf->Cell(30,5,'Stade pT : '.$anapath->getStadepT(),0);
                        $this->pdf->Cell(30,5,'Stade pN : '.$anapath->getStadepN(),0);
    		    $this->pdf->Cell(40,5,'Score Gleason : '.$anapath->getGleason(),0);
    		    $this->pdf->Cell(40,5,'Grade Gleason : '.$anapath->getGleasonMax(),0,1);
    		  }
     
    		  $this->pdf->SetFont('Arial','B',12);
    		  //$pdf->Cell(0,6,'',0,1);
    		  $this->pdf->Cell(0,5,'',0,1);
    		  $this->pdf->Cell(40,8,'Suivi',1,1);
    		  foreach ($patient->getSuivis() as $suivi)
    		  {
    		    $this->pdf->SetFont('Arial','B',11);
    		    $this->pdf->Cell(25,6,date('d-m-Y', strtotime($suivi->getDate())),0);
    		    $this->pdf->SetFont('Arial','',10);
    		    if ($suivi->getRecidive() == 0)
    		    {
    		      $this->pdf->Cell(50,5,utf8_decode('1ere récidive'),0,1);
    		    }
    		    if ($suivi->getRemission() == 0)
    		    {
    		      $this->pdf->Cell(50,5,utf8_decode('Rémission sans TTT'),0,1);
    		    }
    		    elseif ($suivi->getRemission() == 1)
    		    {
    		      $this->pdf->Cell(50,5,utf8_decode('Rémission avec TTT complémentaire'),0,1);
    		    }
    		    elseif ($suivi->getRemission() == 2)
    		    {
    		      $this->pdf->Cell(50,5,utf8_decode('Aucune rémission'),0,1);
    		    }
    		    elseif ($suivi->getRemission() == 3)
    		    {
    		      $this->pdf->Cell(50,5,utf8_decode('Rémission douteuse'),0,1);
    		    }
    		    if ($suivi->getTraitementComps()->count() > 0)
    		    {
    		      $this->pdf->Cell(50,5,utf8_decode('Traitements complémentaires : '),0);
     
    		      foreach ($suivi->getTraitementComps() as $test)
    		      {
    		        $this->pdf->Cell(30,5,utf8_decode($test),0);
    		      }
     
    		    }
    		    $this->pdf->Cell(0,6,'',0,1);
    		    if ($suivi->getMetastase() == 0)
    		    {
    		      $this->pdf->Cell(50,6,'Metastases : '.date('d-m-Y', strtotime($suivi->getDateMeta())),0,1);
    		      $this->pdf->Cell(20,5,'Type : ',0);
    		    if ($suivi->getOs() == 1)
    		    {
    		      $this->pdf->Cell(20,5,'OS',0);
    		    }
    		    if ($suivi->getGamma() == 1)
    		    {
    		      $this->pdf->Cell(20,5,'Gamma',0);
    		    }
    		    if ($suivi->getAutre() == 1)
    		    {
    		      $this->pdf->Cell(20,5,$suivi->getAutreComm(),0);
    		    }
     
    		    }
    		    $this->pdf->Cell(0,6,'',0,1);
    		  }
    		  $this->pdf->SetFont('Arial','B',12);
    		  $this->pdf->Cell(0,6,'',0,1);
    		  $this->pdf->Cell(0,5,'',0,1);
     
    		  if($patient->getDateOfDeath() <> NULL )
    		  {
    		    $this->pdf->Cell(40,8,utf8_decode('Décès'),1,1);
    		    $this->pdf->Cell(60,6,utf8_decode('Patient décédé le '.date('d-m-Y', strtotime($patient->getDateOfDeath()))),0);
    		    if($patient->getCauseOfDeath() == 0 )
    		    {
    		      $this->pdf->Cell(20,5,utf8_decode(', le décès est lié à la pathologie'),0);
    		    }
    		  }
     
                    $this->pdf->AddPage();
                    $this->pdf->SetFont('Arial','B',12);//définition de la police
                    $this->pdf->Cell(0,5,'',0,1);
    		$this->pdf->Cell(40,8,'Graphiques',1,1);
                    $this->pdf->Image($url.'/Graph/PSA.png',10,40,50,50);
    		$this->pdf->Image($url.'/Graph/ICS.png',60,40,50,50);
    		$this->pdf->Image($url.'/Graph/EHS.png',10,110,50,50);
    		$this->pdf->Image($url.'/Graph/IIEF.png',60,110,50,50);
    		$this->pdf->Image($url.'/Graph/IPSS.png',10,170,50,50);
    		$this->pdf->Ln(50);//Saut de ligne
     
    		$this->pdf->Output();
                    $this->setTemplate('pdf');
     
         }
     
     
    }
    et celui de mon template indexSuccess.php est le suivant:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    <script type="text/javascript">
    $(document).ready(function(){
        $(".cat").css({'margin-left':'-21px'});
    });
    </script>
    <h1>Fiche récapitulative</h1>
    <a href="<?php echo url_for('prostate_recap/ExportPdf') ?>">Exporter la fiche</a>
    <div id='graph'>
     
    <div class="cat"><div class="middle">Biopsies</div><div class="right"></div></div>
    <div style="text-align: left;">
    <?php foreach ($patient->getBiopsies() as $biopsie): ?>
    <?php 
    $biopsie_total_droite = $biopsie->getBaseD() + $biopsie->getMoyenD() + $biopsie->getApexD();
    $biopsie_total_gauche = $biopsie->getBaseG() + $biopsie->getMoyenG() + $biopsie->getApexG();
    ?>  
    <ul>
      <li><?php echo date('d-m-Y', strtotime($biopsie->getDate())); ?></li>
      <li>
      <ul>
      <li>Score de gleason : <?php echo $biopsie->getScoreGlobal(); ?></li>
      <li>Grade de gleason : <?php echo $biopsie->getScorePremier(); ?></li>
      <li>Nombre de biopsies positives :<?php echo $biopsie->getBiopsiePositive().' dont '.$biopsie_total_droite.' à droite et '.$biopsie_total_gauche.' à gauche';?></li>
      <li>% de biopsies positives : <?php echo $biopsie->getRapportBP(); ?></li>
      <li>% de longueur de biopsies positives : <?php echo $biopsie->getRapportLT(); ?></li>
      </ul>
      </li>
    </ul>  
    <br/>
    <?php endforeach;?>
     
    </div>
     
    <div class="cat"><div class="middle">Pré-op</div><div class="right"></div></div>
    <div style="text-align: left;">
    <?php foreach ($patient->getProstateRecaps() as $preop): ?>
      <?php echo date('d-m-Y', strtotime($preop->getDate())); ?><br></br>
      PSA : <?php echo $preop->getPsa(); ?><br></br>
      Stade T : <?php echo $preop->getStadeT(); ?><br></br>
      Stade N : <?php echo $preop->getStadeN(); ?><br></br>
      Stade M : <?php echo $preop->getStadeM(); ?><br></br>
    <?php endforeach;?>
    </div> 
     
    <div class="cat"><div class="middle">Score d'amico</div><div class="right"></div></div>
    <div style="text-align: left;">
    <?php foreach ($patient->getProstateRecaps() as $preop): ?>
      <?php if ($preop->getClassificationAmico() == 0): ?>
          Faible risque
      <?php elseif ($preop->getClassificationAmico() == 1): ?>
          Risque intermédiaire
      <?php elseif ($preop->getClassificationAmico() == 2): ?>
          Haut risque
      <?php endif;?>
    <br/>  
    <?php endforeach;?>
    </div>
     
     
    <div class="cat"><div class="middle">Traitements</div><div class="right"></div></div>
    <div style="text-align: left;">
    <?php foreach ($patient->getTraitementFiches() as $traitement): ?>
      <?php echo date('d-m-Y', strtotime($traitement->getDate())).'    '.$traitement->getTraitement(); ?><br></br>
    <?php endforeach;?>
    <br/>
    </div>
     
    <div class="cat"><div class="middle">Anapath</div><div class="right"></div></div>
    <div style="text-align: left;">
     
    <?php foreach ($patient->getAnapaths() as $anapath): ?>
     
      <?php echo date('d-m-Y', strtotime($anapath->getDate()));  ?><br><br>
      Stade pT : <?php $pT = ''; /*$pT =$anapath->getStadepT() ;*/ if(($anapath->getStadePt())) { echo $anapath->getStadepT(); }else{ echo "non renseigné" ;} //echo $anapath->getStadepT();?><br><br>
      Stade pN : <?php $pN = ''; /*$pN =$anapath->getStadepN() ;*/ if($anapath->getStadePn() != NULL) { echo $anapath->getStadepN(); }else{ echo "non renseigné" ;} //$anapath->getStadepN();   if($anapath->getStadepN()) {echo $anapath->getStadepN();}//if($pn == '0')  {echo 'toto';} else {echo $anapath->getStadepN();} ?><br></br>
      Score Gleason : <?php echo $anapath->getGleason(); ?><br><br>
      Grade Gleason : <?php echo $anapath->getGleasonMax(); ?><br><br>
    <?php endforeach;?>
    </div> 
     
     
     
     
    <div class="cat"><div class="middle">Suivi</div><div class="right"></div></div>
    <div style="text-align: left;">
    <?php foreach ($patient->getSuivis() as $suivi): ?>
     <?php echo date('d-m-Y', strtotime($suivi->getDate())) ?>
     
     <?php if ($suivi->getRecidive() == 0): ?>
      : 1ere récidive 
     <?php endif; ?>
     <?php if ($suivi->getRemission() == 0): ?>
        Rémission sans TTT
     <?php elseif ($suivi->getRemission() == 1): ?>
        Rémission avec TTT complémentaire
     <?php elseif ($suivi->getRemission() == 2): ?>
        Aucune rémission
     <?php elseif ($suivi->getRemission() == 3): ?>
        Rémission douteuse
     <?php endif;?>
      <br/>
     <?php if ($suivi->getTraitementComps()->count() > 0):?>
    Traitements complémentaires :
        <ul>
        <?php foreach ($suivi->getTraitementComps() as $test): ?>
          <li><?php print($test); ?></li>
        <?php endforeach;?>
        </ul>
     <?php endif;?>   
      <?php if ($suivi->getMetastase() == 0): ?>
      Metastases : <?php echo date('d-m-Y', strtotime($suivi->getDateMeta())) ?>
      Type :
      <?php if ($suivi->getOs() == 1): ?>
        OS, 
      <?php endif;?>   
      <?php if ($suivi->getGamma() == 1): ?>
        Gamma, 
      <?php endif;?> 
      <?php if ($suivi->getAutre() == 1): ?>
        <?php echo $suivi->getAutreComm(); ?>
      <?php endif;?>  
      <br/>
     <?php endif; ?>
    <br/> 
    <?php endforeach;?>
    </div>
     
     
    <div class="cat"><div class="middle">Décès</div><div class="right"></div></div>
     
     
    <div style="text-align: left;">
    <?php if($patient->getDateOfDeath() <> NULL ): ?>
      Patient décédé le <?php echo date('d-m-Y', strtotime($patient->getDateOfDeath())); ?>
      <?php if($patient->getCauseOfDeath() == 0 ): ?>
        , le décès est lié à la pathologie
      <?php endif;?>
    <?php endif;?>
    </div>
     
    <div class="cat"><div class="middle">Graphiques</div><div class="right"></div></div> 
     
    <br></br>
    <?php stOfc::createChart( 450, 250, 'prostate_recap/LineChartData', false ); ?>
     
    <?php stOfc::createChart( 450, 250, 'prostate_recap/graphICS', false ); ?>
     
    <br></br>
    <?php stOfc::createChart( 450, 250, 'prostate_recap/graphIPSS', false ); ?>
     
    <?php stOfc::createChart( 450, 250, 'prostate_recap/graphEHS', false ); ?>
     
    <br></br>
    <?php stOfc::createChart( 450, 250, 'prostate_recap/graphIIEF5', false ); ?>
    </div>
    Pourriez vous m'aider pour afficher les graphes et pour les exporter dans un fichier pdf.
    Images attachées Images attachées    

Discussions similaires

  1. [JpGraph] probléme d'affichage des graphes
    Par farhaenis dans le forum Bibliothèques et frameworks
    Réponses: 0
    Dernier message: 06/07/2011, 12h30
  2. [JpGraph] JPGraphe:Probléme d'affichage de graphe et export pdf
    Par farhaenis dans le forum Bibliothèques et frameworks
    Réponses: 0
    Dernier message: 06/07/2011, 10h44
  3. [DisplayTag] Problème d'affichage lors de l'export
    Par ABDOU1919 dans le forum Taglibs
    Réponses: 0
    Dernier message: 30/04/2010, 19h53
  4. Problème d'affichage de graphes !
    Par petitclem dans le forum C++Builder
    Réponses: 16
    Dernier message: 16/10/2009, 13h59
  5. Problème d'affichage des graphes avec Tomcat
    Par _Janu_ dans le forum BIRT
    Réponses: 11
    Dernier message: 20/09/2006, 15h30

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo