Aidez moi svp calendrier dans une page PHP

emi -  
 emi -
slt je réalise une application en php je veux une calendrier qui s affiche dans un champ text pour choisir une date
svp si quelqu'un peut m'aider

1 réponse

  1. allyson77 Messages postés 24 Statut Membre 2
     
    Installe un datepicker de jquery.

    Liens : https://jqueryui.com/datepicker/

    Rajoute ca entre tes balises <head>

    <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/themes/base/jquery-ui.css" type="text/css" media="all" />
    			<link rel="stylesheet" href="http://static.jquery.com/ui/css/demo-docs-theme/ui.theme.css" type="text/css" media="all" />
    			<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
    			<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js" type="text/javascript"></script>
    			<script src="http://jquery-ui.googlecode.com/svn/tags/latest/external/jquery.bgiframe-2.1.1.js" type="text/javascript"></script>
    			<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/i18n/jquery-ui-i18n.min.js" type="text/javascript"></script>
    


    Puis à l'endroit ou tu as ton input tu rajoute ca :
    <input type="text" id="datepicker" />
    <script type="text/javascript">
    	$(function() {
    		$("#datepicker").datepicker();
    	});
    </script>
    0
    1. emi
       
      Merci bcp ca marche tres bien ^^
      comment je peux ajouter l'heure aussi
      prés de la date ??????
      0