| 12
 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
 
 | <?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundColor="#ffffff">
 
	<mx:Script>
        <![CDATA[
 
        import mx.controls.DateChooser;
        import mx.events.DateChooserEvent;
 
 
        private function onChangeMois(evt:DateChooserEvent):void {
 
            	var c_month:int=int(ChoixUser.displayedMonth+1);
 
            	moisRequete.send();
            }
 
        ]]>
    </mx:Script>
 
    <mx:HTTPService id="moisRequete" url="php/mois.php" useProxy="false" method="POST">
     <mx:request xmlns="">
     <c_month>{c_month.text}</c_month>
     </mx:request>
     </mx:HTTPService>    
 
   <mx:VBox>
 
  <mx:DateChooser id="ChoixUser" allowMultipleSelection="true" 
     showToday="true"
     yearNavigationEnabled="true"
     firstDayOfWeek = "1"
	 dayNames="['Dim', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam']" 
	 monthNames="['JANVIER', 'FEVRIER', 'MARS', 'AVRIL', 'MAI', 'JUIN', 'JUILLET', 'AOUT', 'SEPTEMBRE', 'OCTOBRE', 'NOVEMBRE', 'DECEMBRE']" 
	 scroll="onChangeMois(event);" />
 
	<mx:HBox>
	<mx:Text text="Origine :" fontWeight="bold"/>
	 <mx:Text id="c_month" text="{(ChoixUser.displayedMonth+1)}" color="#FE0903" fontWeight="bold"/>
	</mx:HBox>
	<mx:Spacer height="50"/>
	<mx:HBox>
	<mx:Text text="Test de retour php/xml (?) :" fontWeight="bold"/>
	<mx:Text text="{moisRequete.lastResult.date.resul}" color="#FE0903" fontWeight="bold"/>
 
	</mx:HBox>
	 </mx:VBox> 
</mx:Application> | 
Partager