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

JavaScript Discussion :

repeter plusieurs fois le meme script dans une page


Sujet :

JavaScript

  1. #1
    Membre habitué
    Inscrit en
    Septembre 2007
    Messages
    199
    Détails du profil
    Informations forums :
    Inscription : Septembre 2007
    Messages : 199
    Points : 148
    Points
    148
    Par défaut repeter plusieurs fois le meme script dans une page
    Salut,

    alors voila pour aider a remplir le champ date j´ai fait un calendrier tu clik et la date se met ds le champ.
    Ca marche bien c´est cool.

    Ce qui l´est moins c´est que si je veux le mettre deux fois dans ma page pour 2 champ differents, et bien ces 2 calendriers modifient le meme champ.

    Je vois pas pq...

    le code d´appel :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
     
    <a href="#"  onclick="window.open('calendar/calendarpopup.php','_blank','directories=0,height=150,width=300,top=220,left=15,location=0,menubar=0,titlebar=0,toolbar=0,status=0,scrollbars=0')" ><img src="design/images/calendar.png" align="top" border=0></a>

  2. #2
    Rédacteur/Modérateur

    Avatar de SpaceFrog
    Homme Profil pro
    Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Inscrit en
    Mars 2002
    Messages
    39 637
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 74
    Localisation : Royaume-Uni

    Informations professionnelles :
    Activité : Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Secteur : Industrie

    Informations forums :
    Inscription : Mars 2002
    Messages : 39 637
    Points : 66 662
    Points
    66 662
    Billets dans le blog
    1
    Par défaut
    évite un window.open et prends plutot le calendrier proposé par Le_Chomeur dans nos contributions ...
    Ma page Developpez - Mon Blog Developpez
    Président du CCMPTP (Comité Contre le Mot "Problème" dans les Titres de Posts)
    Deux règles du succès: 1) Ne communiquez jamais à quelqu'un tout votre savoir...
    Votre post est résolu ? Alors n'oubliez pas le Tag

    Venez sur le Chat de Développez !

  3. #3
    Rédacteur

    Avatar de Bovino
    Homme Profil pro
    Développeur Web
    Inscrit en
    Juin 2008
    Messages
    23 647
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 53
    Localisation : France, Gironde (Aquitaine)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Juin 2008
    Messages : 23 647
    Points : 91 220
    Points
    91 220
    Billets dans le blog
    20
    Par défaut
    Ce qui l´est moins c´est que si je veux le mettre deux fois dans ma page pour 2 champ differents, et bien ces 2 calendriers modifient le meme champ.
    Dire que personne n'a jamais pensé à inventer les paramètres pour une fonction !
    Pas de question technique par MP !
    Tout le monde peut participer à developpez.com, vous avez une idée, contactez-moi !
    Mes formations video2brain : La formation complète sur JavaScriptJavaScript et le DOM par la pratiquePHP 5 et MySQL : les fondamentaux
    Mon livre sur jQuery
    Module Firefox / Chrome d'intégration de JSFiddle et CodePen sur le forum

  4. #4
    Membre habitué
    Inscrit en
    Septembre 2007
    Messages
    199
    Détails du profil
    Informations forums :
    Inscription : Septembre 2007
    Messages : 199
    Points : 148
    Points
    148
    Par défaut
    euuuuuuu

    au risk de paraitre boulet, ou c´est qu´il est y stp ?
    Merci

  5. #5
    Rédacteur/Modérateur

    Avatar de SpaceFrog
    Homme Profil pro
    Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Inscrit en
    Mars 2002
    Messages
    39 637
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 74
    Localisation : Royaume-Uni

    Informations professionnelles :
    Activité : Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Secteur : Industrie

    Informations forums :
    Inscription : Mars 2002
    Messages : 39 637
    Points : 66 662
    Points
    66 662
    Billets dans le blog
    1
    Par défaut
    par là =>
    http://www.developpez.net/forums/sho...d.php?t=443310

    dans les contributions ...
    Ma page Developpez - Mon Blog Developpez
    Président du CCMPTP (Comité Contre le Mot "Problème" dans les Titres de Posts)
    Deux règles du succès: 1) Ne communiquez jamais à quelqu'un tout votre savoir...
    Votre post est résolu ? Alors n'oubliez pas le Tag

    Venez sur le Chat de Développez !

  6. #6
    Membre habitué
    Inscrit en
    Septembre 2007
    Messages
    199
    Détails du profil
    Informations forums :
    Inscription : Septembre 2007
    Messages : 199
    Points : 148
    Points
    148
    Par défaut
    Merci spacefrog,

    et j´avoue que j´ai cherche avant de commencer le mien et j´ai pas trouve ce topic :s

    Cependant, j´aimerai bien utilise le mien, donc si vous aviez une idee svp.
    Spacefrog tu dis que window.open c´est le probleme ?
    Bovin´?

  7. #7
    Rédacteur/Modérateur

    Avatar de SpaceFrog
    Homme Profil pro
    Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Inscrit en
    Mars 2002
    Messages
    39 637
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 74
    Localisation : Royaume-Uni

    Informations professionnelles :
    Activité : Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Secteur : Industrie

    Informations forums :
    Inscription : Mars 2002
    Messages : 39 637
    Points : 66 662
    Points
    66 662
    Billets dans le blog
    1
    Par défaut
    faut voir ce que contient calendarpopup.php ...
    fait il référence avec un paramètre au champs à modifier dans la page mère ????
    Ma page Developpez - Mon Blog Developpez
    Président du CCMPTP (Comité Contre le Mot "Problème" dans les Titres de Posts)
    Deux règles du succès: 1) Ne communiquez jamais à quelqu'un tout votre savoir...
    Votre post est résolu ? Alors n'oubliez pas le Tag

    Venez sur le Chat de Développez !

  8. #8
    Membre habitué
    Inscrit en
    Septembre 2007
    Messages
    199
    Détails du profil
    Informations forums :
    Inscription : Septembre 2007
    Messages : 199
    Points : 148
    Points
    148
    Par défaut
    Oui oui completement,

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    $calendar = isset($_GET['month'])?new htmlCalendar('box',$_GET['month'],$_GET['year'],1):new htmlCalendar('box',null,null,1);
    Mais comment je passe en parametre le nom, c´est a dire box dans notre exemple a calendarpopup.php ?

  9. #9
    Expert confirmé
    Avatar de Thes32
    Homme Profil pro
    Développeur PHP, .Net, T-SQL
    Inscrit en
    Décembre 2006
    Messages
    2 379
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations professionnelles :
    Activité : Développeur PHP, .Net, T-SQL

    Informations forums :
    Inscription : Décembre 2006
    Messages : 2 379
    Points : 4 853
    Points
    4 853
    Par défaut
    salut,
    Ce qui l´est moins c´est que si je veux le mettre deux fois dans ma page pour 2 champ differents, et bien ces 2 calendriers modifient le meme champ
    fait il référence avec un paramètre au champs à modifier dans la page mère ????
    je crois que les deux calendriers pointent vers le même champ!
    Développeur | Zend Certified Engineer

    Étapes Pour mieux se servir du forum:
    1. Commencez par lire les cours et tutoriels ;
    2. Faites une recherche;
    3. Faites un post si rien trouvé dans les deux étapes précédentes en respectant les règles;

    Nix>_Rien n'est plus pratique que la théorie

  10. #10
    Membre habitué
    Inscrit en
    Septembre 2007
    Messages
    199
    Détails du profil
    Informations forums :
    Inscription : Septembre 2007
    Messages : 199
    Points : 148
    Points
    148
    Par défaut
    oui oui ok,

    le nom de mon calendrier là, c´est box.
    Mais comment puis-je passer un argument la par la page php?

    Comme vous pouvez le constater lol, je rame qq peu mdr

  11. #11
    Rédacteur/Modérateur

    Avatar de SpaceFrog
    Homme Profil pro
    Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Inscrit en
    Mars 2002
    Messages
    39 637
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 74
    Localisation : Royaume-Uni

    Informations professionnelles :
    Activité : Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Secteur : Industrie

    Informations forums :
    Inscription : Mars 2002
    Messages : 39 637
    Points : 66 662
    Points
    66 662
    Billets dans le blog
    1
    Par défaut
    ben n'ayant rien vu du code de la page mère et en particulier des balises des champs à renseigner ...
    Ma page Developpez - Mon Blog Developpez
    Président du CCMPTP (Comité Contre le Mot "Problème" dans les Titres de Posts)
    Deux règles du succès: 1) Ne communiquez jamais à quelqu'un tout votre savoir...
    Votre post est résolu ? Alors n'oubliez pas le Tag

    Venez sur le Chat de Développez !

  12. #12
    Membre habitué
    Inscrit en
    Septembre 2007
    Messages
    199
    Détails du profil
    Informations forums :
    Inscription : Septembre 2007
    Messages : 199
    Points : 148
    Points
    148
    Par défaut
    Désolé pour la longueur....

    calendarpopup.php :

    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
     
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/    TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <link rel="stylesheet" type="text/css" href="calendar.css">
    </head>
    <body>
     
    <?php
    require_once 'calendar.php';
    $calendar = isset($_GET['month'])?new htmlCalendar('box',$_GET['month'],$_GET['year'],1):new htmlCalendar('box',null,null,1);
    $calendar->cssHeader='headertd';
    $calendar->cssWeekday='formtdcalendar';
    $calendar->cssSunday='cal_dimancheferies';
    $calendar->cssClosed='cal_feries';
    $calendar->cssToday='date_today';
    $calendar->cssLink='fld';
    $calendar->cssFooter='footer';
    $calendar->tdWidth='50';
    $calendar->MonthByMonth=true;
    $calendar->MonthPerLines=2;
    $calendar->target='opener';
    echo $calendar->getHtml();
    ?>
     
    </body>
    </html>
    et la page mère :

    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
    951
    952
    953
    954
    955
    956
    957
    958
    959
    960
    961
    962
    963
    964
    965
    966
    967
    968
    969
    970
    971
    972
    973
    974
    975
    976
    977
    978
    979
    980
    981
    982
    983
    984
    985
    986
    987
    988
    989
    990
    991
    992
    993
    
    <?php
    define ('MSG_WRONG_STYLE_TYPE','Style non paramètrable');
    
    /**
    * class myIterator  implements Iterator,Countable,Seekableiterator,ArrayAccess
    */
    class myIterator  implements Iterator,Countable,Seekableiterator,ArrayAccess
    {
      /**
      * property protected array $oItems:
      *
      * desc: tableau d'éléments .
      */
      protected $oItems=null;
      
      /**
      * property protected int $ipos
      *
      * desc: indice itérative de Position relative
      */
      protected $iPos=0;
      
      /**
      * property protected int $iMin
      *
      * desc: indice minimale de bornage
      */
      protected $iMin=0;
      
      /**
      * property protected int $iLimit
      *
      * desc: nombre limite d'occurences bornées
      */
      protected $iLimit;
      
      /**
      * property int  $iOffset
      *
      * desc: Indice itérative de Position absolue
      */
      protected $iOffset=0;
      
      /**
      * public function constructor
      *  
      * param int $iMin
      * param int $iLimit
      */  
      public function __construct($iMin,$iLimit)
      {
        $this->oItems=array();
        $this->iLimit=$iLimit;
        $this->iMin=$iMin;
      }
      
      /**
      * public function add
      *
      * desc: empile le tableau passé en paramètres sur la pile existante statique
      *
      * param int $iMin
      * param int $iLimit
      */  
      public function add($array)
      {
        $this->oItems[]=$array;
      }
      
      /**
      * public function setLimit
      *
      * desc: Définit un bornage $it => indice de départ , $l => longueur de la plage en occurences
      * 
      * param int $it 
      * param int $l 
      */  
      public function setLimit($it,$l)
      {
        if (is_int($it)&&is_int($l))
        {
          if ($l>0)
          {
            $this->iMin=$it;
            $this->iLimit=$l;
            $this->iOffset=$it;
          }
        }
      }
      
      /**
      * public function current 
      * 
      * desc: Methode itérative interface iterator 
      */
      public function current()
      {
        if ($this->valid())
          return current($this->oItems);
      }
      
      /**
      * public function valid 
      * 
      * desc: Methode itérative interface iterator 
      */
      public function valid()
      {
        return ( $this->iOffset >= $this->iMin && $this->iPos < ($this->iLimit) ) ;
        
      }
      
      /**
      * public function next 
      * 
      * desc: Methode itérative interface iterator 
      */
      public function next()
      {
        $this->iPos++;
        $this->iOffset++;      
        return next($this->oItems);
        
      }
      
      /**
      * public function key 
      * 
      * desc: Methode itérative interface iterator 
      */
      public function key()
      {
        if ($this->valid())
          return key($this->oItems);
      }
      
      /**
      * public function rewind 
      * 
      * desc: Methode itérative interface iterator 
      */
      public function rewind()
      {
        reset ($this->oItems);
        $position = 0;
        while($position < $this->iMin) 
        {
          next($this->oItems);
          $position++;
        }
        $this->iPos=0;
        $this->iOffset=$this->iMin;
        if (!$this->valid()) 
          throw new Exception('Invalid seek position');
        
      }
      
      /**
      * public function count 
      * 
      * desc: Methode de comptage interface countable 
      */
      public function count()
      {
        return count($this->oItems);
      }
      
      /**
      * public function seek 
      * 
      * desc: Methode itérative interface seekableIterator 
      */
      public function seek($index)
      {
        $this->rewind();
        $position = $this->iMin;
        while($position < $index && $this->valid()) 
        {
          $this->next();
          $position++;
        }
        if (!$this->valid()) 
        {
          throw new Exception('Invalid seek position');
        }
      }
      
      /**
      * public function OffsetExists 
      *
      * desc: Methode d' acces aux tableaux, interface arrayAccess 
      *
      * param $iOffset int 
      */
      public function OffsetExists($iOffset)
      {
        if ($iOffset < $this->iLimit && $iOffset >= $this->iMin)
          return true;
        else return false;
      }
      
      /**
      * public function OffsetGet 
      * 
      * desc: Methode itérative interface arrayAccess 
      */
      public function OffsetGet($iOffset)
      {
        if ($this->OffsetExists($iOffset))
          return $this->oItems[$iOffset];
      }
      
      /**
      * public function OffsetSet 
      * desc: Methode itérative interface arrayAccess 
      */
      public function OffsetSet($iOffset,$val)
      {
        throw new Exception ('Acces Impossible en écriture');
      }
      
      public function OffsetUnset($iOffset)
      {
        
      }
      
    }
    
    
    /**
    * class monthIterator extends myIterator
    */
    class monthIterator extends myIterator
    {
      /**
      * property int $startmonth 
      * indice minimale du bornage au mois 
      */
      private $startmonth;
      
      /**
      * property int $startyear 
      * indice minimale du bornage à l'année 
      */
      private $startyear;
      
      /**
      * property int $iM 
      * indice de position du mois 
      */
      private $iM;
      
      /**
      * property int $iM 
      * indice de position de l'année 
      */
      private $iY;
     
      /**
      * public function __construct
      * Constructeur.
      * 
      * @param string $start au format mm/yyyy  
      * @param int $period en mois
      */
      public function __construct($start,$period=100)
      {
        if (substr($start,2,1)!=='-')
          throw new Exception('Paramètre Invalide pour constructeur format mm/yyyy');
        
        $expl=explode('-',$start);
        
        if( ((int)$expl[0]) <= 12 && ((int)$expl[0]) > 0 )
          $this->startmonth=(int)$expl[0];
        else throw new Exception('Format du mois invalide') ;
        
        if ( ((int)$expl[1]) >= 1000 && ((int)$expl[1]) < 9999 )
          $this->startyear=(int)$expl[1];
        else throw new Exception('Format année invalide');
        
        parent::__construct(0,$period);
      }
      
      
      /**
      * public function 
      * 
      * desc: Getter
      * param: mixed $prop 
      * return object
      */
      public function __get ($prop)
      {
        if (isset($this->$prop))
        return $this->$prop;
      }
      
      /**
      * public Function nextM 
      *
      * desc: positionne les indices iM et iY (mois et année) de l'iterateur.   
      */
      public function NextM()
      {
        if( $this->iM < 12)
        {
          $this->iM++;
        }
        else
        {
          $this->iM = 1;
          $this->iY++;
        }
      }
      
      /**
      * public Function next 
      *
      * desc: methode iterative.   
      */
      public function next()
      {
        parent::next();
        $this->NextM();
      }
      
      /**
      * public Function rewind 
      *
      * desc: methode iterative.   
      */
      public function rewind()
      {
        parent::rewind();
        $this->iM = $this->startmonth;
        $this->iY = $this->startyear;
      }
    }
    
    /**
    * Class calendar
    */
    class calendar 
    {
      /**
      * property object $monthIterator
      */
      private $monthIterator;
      
      /**
      * property array $fixClosed
      * 
      * desc listing des jours fériés fixes 
      */
      private $fixClosed=array();
      /**
      * property array $variants
      * 
      * desc list modifiables des jours fériés variables
      */                         
      private $variants=array();
      
      /**
      * property array $settable
      * 
      * desc list des propriétés modifiables
      */
      private $settable=array(  );
      
      /**
      * function Constructor
      * 
      * param string $start format 'mm/yyyy'
      * param int $period  
      *
      */
      public function __construct ($start,$period)
      {
        $this->monthIterator=new monthIterator($start,$period);
        $i=$this->monthIterator->iMin;
        $this->monthIterator->rewind();
        while ( $i < $this->monthIterator->iLimit)
        { 
          $this->monthIterator->add(self::createmonth($this->monthIterator->iM,$this->monthIterator->iY));
          $this->monthIterator->NextM();
          $i++;
        }
      }
      
      /**
      * public function checkFormat 
      * 
      * desc: vérifie si une date est au format spécifié
      * 
      * param: string $val
      * param: $format dd/mm defaut
      * return: bool 
      */
      public function checkFormat($val,$format='dd/mm')
      {
        switch($format)
        {
          case 'dd/mm':
              if (substr($val,2,1)!=='-')
                return false;
              $expl=explode('-',$val);
              if (!( ((int)$expl[0]) > 0 && ((int)$expl[0]) < 32 ))
                return false;
              if( !(((int)$expl[1]) <= 12 && ((int)$expl[1]) > 0) )
                return false;
              return true;
              break;
          case 'mm/dd':
              if (substr($val,2,1)!=='-')
                return false;
              $expl=explode('-',$val);
              if (!( ((int)$expl[1]) > 0 && ((int)$expl[1]) < 32 ))
                return false;
              if( !(((int)$expl[0]) <= 12 && ((int)$expl[0]) > 0) )
                return false;
              return true;
              break;
          case 'dd-mm':
              if (substr($val,2,1)!=='-')
                return false;
              $expl=explode('-',$val);
              if (!( ((int)$expl[0]) > 0 && ((int)$expl[0]) < 32 ))
                return false;
              if( !(((int)$expl[1]) <= 12 && ((int)$expl[1]) > 0) )
                return false;
              return true;
              break;
           case 'mm-dd':
              if (substr($val,2,1)!=='-')
                return false;
              $expl=explode('-',$val);
              if (!( ((int)$expl[1]) > 0 && ((int)$expl[1]) < 32 ))
                return false;
              if( !(((int)$expl[0]) <= 12 && ((int)$expl[0]) > 0) )
                return false;
              return true;
              break;
           case 'dd/mm/yyyy':
              if (substr($val,2,1)!=='-')
                return false;
              if (substr($val,5,1)!=='-')
                return false;
              $expl=explode('-',$val);
              if (!( ((int)$expl[0]) > 0 && ((int)$expl[0]) < 32 ))
                return false;
              if( !(((int)$expl[1]) <= 12 && ((int)$expl[1]) > 0) )
                return false;
              if( !(((int)$expl[2]) < 1000 && ((int)$expl[2]) > 9999) )
                return false;
              return true;
              break;
           case 'dd-mm-yyyy':
              if (substr($val,2,1)!=='-')
                return false;
              if (substr($val,5,1)!=='-')
                return false;
              $expl=explode('-',$val);
              if (!( ((int)$expl[0]) > 0 && ((int)$expl[0]) < 32 ))
                return false;
              if( !(((int)$expl[1]) <= 12 && ((int)$expl[1]) > 0) )
                return false;
              if( !(((int)$expl[2]) < 1000 && ((int)$expl[2]) > 9999) )
                return false;
              return true;
              break;
            case 'yyyy/mm/dd':
              if (substr($val,2,1)!=='-')
                return false;
              if (substr($val,5,1)!=='-')
                return false;
              $expl=explode('-',$val);
              if (!( ((int)$expl[2]) > 0 && ((int)$expl[2]) < 32 ))
                return false;
              if( !(((int)$expl[1]) <= 12 && ((int)$expl[1]) > 0) )
                return false;
              if( !(((int)$expl[0]) < 1000 && ((int)$expl[0]) > 9999) )
                return false;
              return true;
              break;
            case 'yyyy-mm-dd':
              if (substr($val,2,1)!=='-')
                return false;
              if (substr($val,5,1)!=='-')
                return false;
              $expl=explode('-',$val);
              if (!( ((int)$expl[2]) > 0 && ((int)$expl[2]) < 32 ))
                return false;
              if( !(((int)$expl[1]) <= 12 && ((int)$expl[1]) > 0) )
                return false;
              if( !(((int)$expl[0]) < 1000 && ((int)$expl[0]) > 9999) )
                return false;
              return true;
              break;
            default:
            return false;
        }
      } 
      
      /**
      * public function isClosed 
      * 
      * desc: vérifie si un jour est ferié
      * 
      * param: string $daymth
      * return: bool 
      */
      public function isClosed($daymth)
      {
        $this->makeVariants();
        return (in_array($daymth,$this->fixClosed)||in_array($daymth,$this->variants) );
      }
      
      public function getClosed($daymth)
      {
        $closedkey=array_keys(array_merge($this->fixClosed,$this->variants),$daymth);
        if (count($closedkey)>0)
          return (array_pop($closedkey));
        //print_r ($closedkey);
      }
      
      /**
      * public function __get 
      * 
      * desc: Getter
      * 
      * param: mixed $prop
      * return: property object 
      */
      public function __get($prop)
      {
        if (isset($this->$prop))
          return $this->$prop;
        else if (array_key_exists($prop,$this->variants))
          return $this->variants[$prop];
        else return false;
      }
      
      /**
      * public function __set 
      * 
      * desc: setter si la propriété est 'paques' => autoset propriete 'ascenssion' 
      *                                                  et  propriete 'pentecote'
      * 
      * param: mixed $prop
      * param: mixed $val 
      */
      public function __set($prop,$val)
      {
        if (in_array($prop,$this->settable))
        {
          
        }
        else throw new Exception ('propriete invalide');    
      }
      
      /**
      * function getCurrentMonth
      * 
      * desc:renvoit le mois et l'année en cours
      * 
      * return string format ('mm/yyyy') 
      */
      public function getCurrentMonth()
      {
        return (($this->monthIterator->iM<10)?'0'.$this->monthIterator->iM.'-'.$this->monthIterator->iY:$this->monthIterator->iM.'-'.$this->monthIterator->iY);
      }
      
      /**
      * function getNextM
      * 
      * desc:renvoit le mois prochain ou l'année du prochain mois en cours
      * 
      * param char 'M' ou 'Y'
      * return int 
      */
      public function getNextM($mode,$numMonths=1)
      {
        if (is_int($numMonths)&&$numMonths>0)
        {
          switch ($mode)
          { 
          case 'M':
            return(date('m',mktime(0, 0, 0, $this->monthIterator->iM+$numMonths, 1, $this->monthIterator->iY)));
           break;
          case 'Y':
            return(date('Y',mktime(0, 0, 0, $this->monthIterator->iM+$numMonths, 1, $this->monthIterator->iY)));
          break;
          }
          
        }
        else return null;
      }
      
      /**
      * function getPrevM
      * 
      * desc:renvoit le mois précédent ou l'année du précédent mois en cours
      * 
      * param char 'M' ou 'Y'
      * return int 
      */
      public function getPrevM($mode,$numMonths=1)
      {
        if (is_int($numMonths)&&$numMonths>0)
        {
          switch ($mode)
          { 
            case 'M':
              return (date('m',mktime(0, 0, 0, $this->monthIterator->iM-$numMonths, 1, $this->monthIterator->iY)));
            break;
            case 'Y':
              return(date('Y',mktime(0, 0, 0, $this->monthIterator->iM-$numMonths, 1, $this->monthIterator->iY)));
            break;
          }
        }
        else return null;
      }
      
      /**
      * public function makeVariants
      * 
      * Desc: calcule paques,pentecote et jour feries algo de Oudin 
      */
      public function makeVariants()
      {
      /*
        //pâques
        $year=$this->monthIterator->iY;
        $G=$year%19;
        $C=floor($year/100);
        $C_4=floor($C/4);
        $E=floor((8*$C+13)/25);
        $H=(19*$G+$C-$C_4-$E+15)%30;
        $K=floor($H/28);
        $P=floor(29/($H+1));
        $Q=floor((21-$G)/11);
        $I=($K*$P*$Q -1)*$K+$H;
        $B=floor($year/4)+$year;
        $J1=$B+$I+2+$C_4-$C;
        $J2=$J1%7;
        $R=28+$I-$J2;
        $day=(int)date('d',(mktime(0,0,0,3,1+$R,$year)));
        $mth=(int)date('m',(mktime(0,0,0,3,1+$R,$year)));
        
        if ($day<10)
          $day='0'.$day;
        if ($mth<10)
          $mth='0'.$mth;
        
        $val=$this->variants['paques']=$day.'-'.$mth;
        
        //ascenssion
        $dasc=(int)date('d',(mktime(0,0,0,$mth,$day+38,$this->monthIterator->iY)));
        $masc=(int)date('m',(mktime(0,0,0,$mth,$day+38,$this->monthIterator->iY)));
        if ($dasc<10)
          $dasc='0'.$dasc;
        if ($masc<10)
          $masc='0'.$masc;    
        $this->variants['ascenssion']=$dasc.'-'.$masc;
        
        //pentecôte    
        $dasc=(int)date('d',(mktime(0,0,0,$mth,$day+49,$this->monthIterator->iY)));
        $masc=(int)date('m',(mktime(0,0,0,$mth,$day+49,$this->monthIterator->iY)));
        if ($dasc<10)
          $dasc='0'.$dasc;
        if ($masc<10)
          $masc='0'.$masc;
        $this->variants['Dans le cul']=$dasc.'-'.$masc;*/
      }
      
      /**
      * public Static function
      * 
      * desc: Methode de fabrication de calendrier de type tableau au mois
      * 
      * param int $month
      * param int $year
      * return array
      */
      public static function createmonth($month,$year)
      {
        // jour de la semaine du premier du mois
        $fom = date ("w",mktime(0, 0, 0, $month, 1, $year));
    	if ($fom == 0)
    	{
    		$fom = 6;
    	}
    	else
    	{
    	$fom=$fom-1;
    	}
        $day=1;
        $start=false;
        //combien de jours dans le mois?
        $max=date('t',mktime(0, 0, 0, $month, 1, $year));
        //formatage en chaine
        if ($month < 10)
          $month = '0'.$month;
        //init
        $d=0 ;
        //Le calendrier va occuper 6 lignes(semaines) de 7 colonnes(jours) pour le mois au maximum
        for ( $i=0 ; $i < 6 ; $i++ ) 
        {
          for ( $j=0 ; $j < 7 ;$j++ ) 
          {
            //début du comptage au 1er du mois pour la premiere semaine
            if ($i==0)
            {
              if ($fom == $d)
              {
                $start=true;
                $day=1;
              }
            }
            if ($day < $max+1) 
            {
              if ($start ==true)
              {
                if (($day<10))
    			{
    				$cal[$j][$i]='0'.$day;
    			}
    			else
    			{
    			 $cal[$j][$i]=$day;
    			}
                $day++;
              }
              else
                $cal[$j][$i]='';
            }
            else 
              $cal[$j][$i]='';
            $d++;
          }
        }
        return $cal;    
      }
    }
    
    /**
    * class htmlCalendar extends calendar
    */
    class htmlCalendar extends calendar
    {
      /**
      * private property string domTextBoxId
      * 
      * desc : l'id de la text box
      */
      private $domTextBoxId;
      
      /**
      * proprerty array settable
      * 
      * desc : les propriétés modifiables
      */
      private $settable=array('cssHeader',
                              'cssSunday',
                              'cssClosed',
                              'cssWeekday',
                              'cssToday',
                              'cssLink',
                              'cssFooter',
                              'MonthByMonth',
                              'MonthPerLines',
                              'tdWidth',
                              'tdHeight',
                              'target',
                              'clickable');
                              
      const CkAll = 0;
      const CkClosed = 1;
      const CkOpened = 2;
      const CksunDay = 4;
      /**
      * proprerty array style
      * 
      * desc: le tableau des propriétés de style 
      */
      private $style=array();
      
      /**
      * proprerty string html
      * 
      * desc: la chaine html stockant le calendrier au format html 
      */
      private $html;
      
      /**
      * public function __set 
      * 
      * desc: Setter
      * 
      * param:string $type
      * param string $strVal
      */
      public function __set($type,$strVal)
      {
        if (in_array($type,$this->settable))
        {
          $this->style[$type]=$strVal;
        }
        else parent::__set($type,$strVal); 
      }
      
      /**
      * public function __construct
      * 
      * desc: Initialisation et constrcution des objets parents
      */
      public function __construct($boxId=null,$month=null,$year=null,$period=1)
      {
        $this->domTextBoxId=$boxId;
        $this->MonthByMonth=false;
        $this->MonthPerLines=4;
        $this->clickable=self::CkOpened;
        $m=isset($month)?(int)$month:(int)date('m');
        $y=isset($year)?(int)$year:(int)date('Y');
        if ($m<10)
          $m='0'.$m;
        parent::__construct($m.'-'.$y,$period);
       }
      
      /**
      * public function __get 
      * 
      * desc: Getter
      * 
      * param: mixed $prop
      * return: mixed value 
      */
      
      public function __get($prop)
      {
        if (parent::__get($prop))
          return parent::__get($prop);
        if (array_key_exists($prop,$this->style))
          return $this->style[$prop];
      }
      
      public function isClikable($day)
      {
        if ($day<10)
          $day='0'.(int)$day;
        if ($this->monthIterator->iM<10)
          $mth='0'.$this->monthIterator->iM;
        else $mth=$this->monthIterator->iM;
        
        $ifclosed =(date('w',mktime(0,0,0,$this->monthIterator->iM,$day,$this->monthIterator->iY))==0 || $this->isClosed($day.'-'.$mth));
        switch($this->clickable)
        {
          case (self::CkAll): $if=true;break;
          case (self::CkClosed): $if=$ifclosed;break;
          case (self::CkOpened): $if=!$ifclosed;break;
          default:$if=false;
        }
        return $if;
      }
      
      /**
      * public function getHtml 
      * 
      * desc: Construit et récupére le tableau en chaine html
      * 
      * return: string  
      */
      public function getHtml()
      {
        $tdW=$this->tdWidth;
        $tdH=$this->tdHeight;
        
        if ($this->target=='opener')
          $close='self.close();';
        else $close='';
                
        $cnt=1;
        $this->html='';
        
        $this->html.='<table border="0" cellpadding="0" cellspacing="0" >
              <!--DWLayoutTable-->';
        
        //Le calendrier va occuper 5 lignes(semaines) de 7 colonnes(jours) pour le mois au maximum
        foreach ($this->monthIterator as $key=>$month)
        {
          if ($cnt%$this->MonthPerLines==$this->MonthPerLines)
            $this->html.='<tr><td valign="top">';
          else $this->html.='<td valign="top">';
          
          $MONTH=date('M',mktime(0, 0, 0, $this->monthIterator->iM, 1, $this->monthIterator->iY));
            
          if ($this->MonthByMonth!==false)
          {
            $prevm=$this->getPrevM('M');
            $prevprevm=$this->getPrevM('M',$this->monthIterator->iLimit);
            $prevy=$this->getPrevM('Y');
            $prevprevy=$this->getPrevM('Y',$this->monthIterator->iLimit);
            $nextm=$this->getNextM('M');
            $nextnextm=$this->getNextM('M',$this->monthIterator->iLimit);
            $nexty=$this->getNextM('Y');
            $nextnexty=$this->getNextM('Y',$this->monthIterator->iLimit);
            $chooseMonth='
            <a class="'.$this->cssLink.'" href="?month='.$prevprevm.'&year='.$prevprevy.'"><</a><a class="'.$this->cssLink.'" href="?month='.$prevm.'&year='.$prevy.'"></a>&nbsp;'.$MONTH.'&nbsp;&nbsp;'.$this->monthIterator->iY.'&nbsp;<a class="'.$this->cssLink.'" href="?month='.$nextm.'&year='.$nexty.'&box='.$this->domTextBoxId.'"></a><a class="'.$this->cssLink.'" href="?month='.$nextnextm.'&year='.$nextnexty.'&box='.$this->domTextBoxId.'">></a>';
          }
          else $chooseMonth='&nbsp;'.$MONTH.'&nbsp;&nbsp;'.$this->monthIterator->iY.'&nbsp;';
          
          $this->html.= '
            <table border="0" cellpadding="0" cellspacing="0" >
            <!--DWLayoutTable-->
              <tr>
                <td width="'.$tdW.'" height="'.$tdH.'" valign="middle" align="center" class="'.$this->cssHeader.'">Mon</td>
                <td width="'.$tdW.'" valign="middle" align="center" class="'.$this->cssHeader.'">Tue</td>
                <td width="'.$tdW.'" valign="middle" align="center" class="'.$this->cssHeader.'">Wed</td>
                <td width="'.$tdW.'" valign="middle" align="center" class="'.$this->cssHeader.'">Thu</td>
                <td width="'.$tdW.'" valign="middle" align="center" class="'.$this->cssHeader.'">Fri</td>
                <td width="'.$tdW.'" valign="middle" align="center" class="'.$this->cssHeader.'">Sat</td>
                <td width="'.$tdW.'" valign="middle" align="center" class="'.$this->cssHeader.'">Sun</td>
              </tr>';
          for ($j=0;$j<6;$j++)
          {
            $this->html.='<tr>';
            for ($k=0;$k<7;$k++)  
            {
              if ($this->monthIterator->iM < 10)
                $mth='0'.$this->monthIterator->iM;
              else $mth=$this->monthIterator->iM;
              
              $title =' title="click it to select in the box"';
              
              /**
              * Jour de la semaine ou jour ordinaire
              */
              if ($k!=5 AND $k!=6)
              {
                $class=$this->cssWeekday;
              }
              else
              {
                $class=$this->cssSunday;
              }
              
              /**
              * class css prioritaire sur jour de la semaine
              * Le jour est-il férié?
              */
              if ($this->isClosed($month[$k][$j].'-'.$mth))
              {
                $class=$this->cssClosed;
                $title='title="'.$this->getClosed($month[$k][$j].'-'.$mth).'"';
              }
              
              /**
              * class css prioritaire sur ferie
              * Si le jour est aujourd'hui:
              */
              if ( ($month[$k][$j] == (int)date('d')) and ($this->monthIterator->iM== (int)date('m')) and ($this->monthIterator->iY == (int)date('Y')) )
              {  
                $class = $this->cssToday;
              }
              
    
                $click='<a href = "#" class="'.$this->cssLink.'" onclick="'.$this->target.'.document.getElementById(\''.$this->domTextBoxId.'\').value=\''.$month[$k][$j].'-'.$mth.'-'.$this->monthIterator->iY.'\';'.$close.' " '.$title.'>';
                $endclick='</a>';
    
              if($month[$k][$j]!='')
                $this->html.= '<td width="'.$tdW.'" height="'.$tdH.'" valign="middle" align="center" class="'.$class.'">'.$click.(int)$month[$k][$j].$endclick.'</td>';
              else 
                $this->html.= '<td width="'.$tdW.'" height="'.$tdH.'" valign="middle" align="center" class="'.$class.'">&nbsp;</td>';
            }
            $this->html.= '</tr>';
          }
          $this->html.= '</table><center><table border="0" cellpadding="0" cellspacing="0" ><tr><td class="'.$this->cssFooter.'">'.$chooseMonth.'</td></tr></center></table>';
          
          if ($cnt%$this->MonthPerLines!=0)
            $this->html.= '</td>';
          else 
            if ($cnt!=1)
              $this->html.= '</td></tr>';
            else $this->html.= '</td>';
            $cnt++;
        }
        $this->html.= '</table>';
        return $this->html;
      }
    }
    ?>

  13. #13
    Membre habitué
    Inscrit en
    Septembre 2007
    Messages
    199
    Détails du profil
    Informations forums :
    Inscription : Septembre 2007
    Messages : 199
    Points : 148
    Points
    148
    Par défaut
    J´ai essayé avec 2 calendarpopup.php different et en utilisant 2 noms differents pour le boxId de la fonction __construct, mais rien...

    Je désespère

  14. #14
    Membre habitué
    Inscrit en
    Septembre 2007
    Messages
    199
    Détails du profil
    Informations forums :
    Inscription : Septembre 2007
    Messages : 199
    Points : 148
    Points
    148
    Par défaut
    Ceci est un SOS svp.

    La je coule !
    Merci beaucoup

  15. #15
    Rédacteur/Modérateur

    Avatar de SpaceFrog
    Homme Profil pro
    Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Inscrit en
    Mars 2002
    Messages
    39 637
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 74
    Localisation : Royaume-Uni

    Informations professionnelles :
    Activité : Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Secteur : Industrie

    Informations forums :
    Inscription : Mars 2002
    Messages : 39 637
    Points : 66 662
    Points
    66 662
    Billets dans le blog
    1
    Par défaut
    un seul calendar popup suffit, il faut juste passer en paramètre à la popup le champs cible de la page mère ...
    soit tu le fais à l'ouverture en concaténant un lien avec l'id du champs visé dans la mère

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    calendar.php?field=idchamp1
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    calendar.php?field=idchamp2
    et du coup dans la popup

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    self.opener.document.getELementById(field).value= ...
    en ayant recupéré le paramètre dans l'ur (cf FAQ)

    soit tu attends que la popup soit instanciée et tu converse avec ...

    la première solution me semble plus simple ...

    Quoi que la plus simple de toute soit de prendre le script proposé ...
    Et plus il est joli ^^
    Ma page Developpez - Mon Blog Developpez
    Président du CCMPTP (Comité Contre le Mot "Problème" dans les Titres de Posts)
    Deux règles du succès: 1) Ne communiquez jamais à quelqu'un tout votre savoir...
    Votre post est résolu ? Alors n'oubliez pas le Tag

    Venez sur le Chat de Développez !

  16. #16
    Membre habitué
    Inscrit en
    Septembre 2007
    Messages
    199
    Détails du profil
    Informations forums :
    Inscription : Septembre 2007
    Messages : 199
    Points : 148
    Points
    148
    Par défaut
    Merci Spacefrog !
    Je pense que je vais utiliser le script ressource oui, mais j´ai compris ce qui n´allait pas sur le mien et ca c´est cool :9

    Merci encore

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [Plugin] Utiliser plusieurs fois je même jqgrid dans une page
    Par Christophe Charron dans le forum jQuery
    Réponses: 0
    Dernier message: 06/10/2012, 17h26
  2. Réponses: 5
    Dernier message: 07/06/2010, 13h12
  3. Réponses: 2
    Dernier message: 12/01/2010, 12h00
  4. Réponses: 1
    Dernier message: 03/06/2008, 09h27
  5. Plusieurs fois la même donnée dans une liste
    Par BRUNO71 dans le forum IHM
    Réponses: 3
    Dernier message: 21/01/2008, 08h22

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