Importation de données depuis Intranet avec Password Javascript 1.1

zephirsoul

XLDnaute Nouveau
Bonjour a tous,

Chaque matin, depuis maintenant plusieurs mois, j'effectue manuellement une opération un peu longue...et je pense qu'il doit toujours avoir un moyen de l'automatiser. Du moins cela me ferait gagner pas mal de temps

En gros, je me connecte pour l'intranet de mon page a une application qui me demande me logguer, ensuite une série de list-box apparaisse qui me demande de choisir la date ainsi que le centre qui me concerne...
Une fois que j'ai selectionnée mes fois, cela m'envoie sur une page ou je telecharge soit un fichier excel tout fait, soit je peux ouvrir le fichie en HTM...

Le but est donc de zapper chaque jour l'étape de loggue / selectionner date/ site etc...Je souhaiter lancer une maccro qui m'automatise le tout...

Globalement, comment faire, pour recuperer toutes les infos que j'ai transmise (date / site concerné) et automatiser cela via un macro excel (ou acces si cela est plus simple)

Il doit surement vous manquer plein d'infos, mais une gentille ame, pourrait'elle m'aider a réaliser ce projet pas à pas ou m'orienter vers un début de code / m'expliquer par ou commencer.

Pour info je travaille sous Ecxel / Access 2002.

Pas à pas cela donne :

Adresse de Base :
Ce lien n'existe plus

Source Affiliée
Code:
<html lang="en">
<head>
<title>GEOPOST - SYGEP</title>

<SCRIPT LANGUAGE="Javascript1.1"> 
<!-- Begin 

	 var bCancel = false; 

	 function validateConnectionForm(form) {                                                                   
	      if (bCancel) 
	 	return true; 
	      else 
	 	return validateRequired(form); 
	 } 

	 function required () { 
	    this.aa = new Array("login", "Le champ Login est obligatoire.", new Function ("varName", " return this[varName];"));
	    this.ab = new Array("password", "Le champ Password est obligatoire.", new Function ("varName", " return this[varName];"));
	 } 


//  End -->
</SCRIPT>


<SCRIPT LANGUAGE="Javascript1.1" src="librairie/staticJavascript.jsp" ></script>



<link rel="stylesheet" href="css/Sygep.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000"  >

<form name="ConnectionForm" method="POST" action="/sygep/Authentifier.do;jsessionid=pisteur.colis.intra.laposte.fr-1d4%3A49d07616%3A4ff61ee3d4ffa77d" onsubmit="return validateConnectionForm(this)">
  <!-- Positionne la méthode a exécuter côté serveur -->
  <input type="hidden" name="methode" id="methode" value="connexion" >

 <center>
	 <table width="753" border="0" bgcolor="#0031B5" cellspacing="0"  >
	   <tr>
	     <td width="350" ><img src="http://www.excel-downloads.com/forum/images/LogoPoste2.gif"  ></td>
	     <td width="190" ><img src="http://www.excel-downloads.com/forum/images/LogoSYGEP.gif" width="109" height="26"></td>
	     <td width="130" class="titreVersion" >Version&nbsp;3.0.6</td>
	     <td>&nbsp;</td>
	   </tr>
	</table>

  

  

  <h1 class="titreApplication"  >Veuillez vous authentifier.</h1>
  <br>

  <table>
    <tr>
      <td>Login : </td>
      <td><input type="text" name="login" maxlength="12" size="12" value=""></td>
    </tr>

    <tr>
      <td>Password : </td>
      <td><input type="password" name="password" maxlength="12" size="12" value=""></td>
    </tr>
  </table>


  <p>
    <input type="image" src="http://www.excel-downloads.com/forum/images/boutons/Connexion_Ovale.gif"  border="0" >
  </p>
 <!-- input type="submit" name="btnValider" value="Connexion" -->
 </center>

</form>
<script language="JavaScript" type="text/javascript">
  <!--
    document.forms["ConnectionForm"].elements["login"].focus()
  // -->
</script>


</body>
</html>


Une fois le mot de passe rentré, j’arrive sur cette URL :

Ce lien n'existe plus

Bizarrement on retrouve la chaîne terminant par 77d…Je pense donc que nous devons rajouté a cette endroit ma valeur pass+ user

Par exemple :

Code:
ThisWorkbook.FollowHyperlink "http://pisteur.colis.intra.laposte.fr:8075/sygep/Authentifier.do;jsessionid=pisteur.colis.intra.laposte.fr-1d4%3A49d07616%3A4ff61ee3d4ffa77d?login=XXXXX&password=XXXXX", , True

Mais malheuresement cela ne fonctionne pas .Comment faire pour se logguer via VBA?

Voila pour la 1ere etape…


La seconde étape :

Voici le code de la page sur laquelle nous nous trouvons apres nous etes lidentifiés :

Code:
<html lang="fr">

<head>
  <title>
    GEOPOST - SYGEP
  </title>
  <!-- meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" -->
  <link rel="stylesheet" href="css/Sygep.css" type="text/css">
</head>
<script language="javascript" >
	
//  alert("Saisie en cours " + null);	
	
  	
	var blnSaisieEncours = false; // Flag indiquant une saisie en cours.
  

  function fcPositionneFlagSaisieEnCours(flag){
      blnSaisieEncours = flag;
  }

  function fcConfirmAbandonSaisieEnCours(){
 //   alert("dans la methode");
 //   alert(blnSaisieEncours);
        if(blnSaisieEncours){
      if(confirm("Attention, vous allez perdre vos modifications !\nEtes-vous sûr de vouloir continuer ?")){
        return true;
      }else{
        return false;
      }
    }else{
      return true;
    }
  }


 function fcAide(urlPageAide){
    newWindow = window.open (urlPageAide, 'SYGEP', 'scrollbars=yes,status=no,width=700,height=500');
  }
</script>

<body bgcolor="#FFFFFF" text="#000000"  >
<center>

  <table width="753" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" >
    <tr>
    <td colspan="2" width="753" >
      <!-- DEBUT BANDEAU -->
			

<table width="753" border="0" bgcolor="#0031B5" cellspacing="0"  >
  <tr>
    <td width="350" ><img src="http://www.excel-downloads.com/forum/images/LogoPoste2.gif"  ></td>
    <td width="190" ><img src="http://www.excel-downloads.com/forum/images/LogoSYGEP.gif" width="109" height="26"></td>
    <td width="130" class="titreVersion" >Version&nbsp;3.0.6</td>
    <td>&nbsp;<a href="aide.doc" ><img src="http://www.excel-downloads.com/forum/images/Aide.gif" border="0" alt="Aide en ligne" ></a></td>
   </tr>
</table>

      <!-- FIN BANDEAU -->
    </td>
  </tr>
  <tr >
      <td width="164" valign="top"  >
        <!-- DEBUT DU MENU -->
        







<table width="164" border="0"   >
  <!-- logic:notEqual name="utilisateur" property="convoyeurTypeUtilisateur.adminOk" value="true" scope="session" -->
 
 

  
    
  

  


 
  <tr>
          <td>
	   <!-- Debut MENU SAISIE -->
             <table width="164" border="0">
              <tr align="center">
                  <td colspan="2" width="164px" ><img src="http://www.excel-downloads.com/forum/images/Saisie.gif" width="59" height="20"></td>
              </tr>
              
              
              <tr>
                  <td width="17"  align="center" ><img src="http://www.excel-downloads.com/forum/images/puces/PucesJaunes.gif" width="10" height="10"></td>
                  <td width="147" class="itemMenu" ><a href="/sygep/GestionFeuillesPresences.do?methode=preparerRecherchePresences" onclick="return fcConfirmAbandonSaisieEnCours();">Pr&eacute;sence</a></td>
                  <!-- d width="147" class="itemMenu" ><a href="/sygep/GestionFeuillesPresences.do?methode=selectionSite" onclick="return fcConfirmAbandonSaisieEnCours();">Pr&eacute;sence</a></td -->
              </tr>
              <tr>
                  <td width="17"  align="center"  ><img src="http://www.excel-downloads.com/forum/images/puces/PucesJaunes.gif" width="10" height="10"></td>
                  <td width="147" class="itemMenu" ><a href="/sygep/GestionEntraidesJournaliere.do?methode=preparerRechercheEntraides" onclick="return fcConfirmAbandonSaisieEnCours();">Entraide</a></td>
              </tr>
              
			  <tr>
                  <td width="17"  align="center"  ><img src="http://www.excel-downloads.com/forum/images/puces/PucesJaunes.gif" width="10" height="10"></td>
                  <td width="147" class="itemMenu" ><a href="/sygep/GestionActivitesJournalieres.do?methode=preparerRechercheActivites" onclick="return fcConfirmAbandonSaisieEnCours();">Activit&eacute;s</a></td>
              </tr>
              
			  <tr>
                  <td width="17"  align="center"  ><img src="http://www.excel-downloads.com/forum/images/puces/PucesJaunes.gif" width="10" height="10"></td>
                  <td width="147" class="itemMenu" ><a href="/sygep/GestionRestesJournaliers.do?methode=initGestionRestes" onclick="return fcConfirmAbandonSaisieEnCours();">Restes</a></td>
              </tr>
              
              <tr>
                  <td width="17"  align="center"  ><img src="http://www.excel-downloads.com/forum/images/puces/PucesJaunes.gif" width="10" height="10"></td>
                  <td width="147" class="itemMenu"><a href="/sygep/GestionMotDePasse.do?methode=preparerSaisie" onclick="return fcConfirmAbandonSaisieEnCours();">Mot&nbsp;De&nbsp;Passe</a></td>
              </tr>
              
            </table>
           <!-- FIN MENU SAISIE -->
           </td>
  </tr>




   

    
    	<tr>
	    <td>
              <!-- DEBUT MENU STATISTIQUES -->
           <table width="164" border="0">
              <tr align="center">
                  <td colspan="2" width="164px"><img src="http://www.excel-downloads.com/forum/images/Statistiques.gif" width="112" height="21"></td>
              </tr>
              
              
              <tr>
                  <td width="17"  align="center" ><img src="http://www.excel-downloads.com/forum/images/puces/PucesJaunes.gif" width="10" height="10"></td>
                <td width="147" class="itemMenu" ><a href="/sygep/ControleCoherence.do?methode=preparer" onclick="return fcConfirmAbandonSaisieEnCours();">Contr&ocirc;le coh&eacute;rence</a></td>
              </tr>
              
              <tr>
                  <td width="17"  align="center" ><img src="http://www.excel-downloads.com/forum/images/puces/PucesJaunes.gif" width="10" height="10"></td>
                <td width="147" class="itemMenu" ><a href="/sygep/ProductiviteHorairExploitationSite.do?methode=preparer" onclick="return fcConfirmAbandonSaisieEnCours();">Productivit&eacute;&nbsp;par&nbsp;sites</a></td>
              </tr>
              
              <tr>
                  <td width="17"  align="center" ><img src="http://www.excel-downloads.com/forum/images/puces/PucesJaunes.gif" width="10" height="10"></td>
                <td width="147" class="itemMenu" ><a href="/sygep/ProductiviteHoraireParEquipe.do?methode=preparer" onclick="return fcConfirmAbandonSaisieEnCours();">Productivit&eacute; par &eacute;quipes</a></td>
              </tr>
              <tr>
                  <td width="17"  align="center" ><img src="http://www.excel-downloads.com/forum/images/puces/PucesJaunes.gif" width="10" height="10"></td>
                <td width="147" class="itemMenu" ><a href="/sygep/TraficGlobalTrieParPFC.do?methode=preparer" onclick="return fcConfirmAbandonSaisieEnCours();">Trafic tri&eacute; par sites</a></td>
              </tr>
              <tr>
                  <td width="17"  align="center" ><img src="http://www.excel-downloads.com/forum/images/puces/PucesJaunes.gif" width="10" height="10"></td>
                <td width="147" class="itemMenu" ><a href="/sygep/TraficGlobalEnTransitParPFC.do?methode=preparer" onclick="return fcConfirmAbandonSaisieEnCours();">Trafic en transit par sites</a></td>
              </tr>
              <tr>
                  <td width="17"  align="center" ><img src="http://www.excel-downloads.com/forum/images/puces/PucesJaunes.gif" width="10" height="10"></td>
                <td width="147" class="itemMenu" ><a href="/sygep/TauxSaisieDesRestes.do?methode=preparer" onclick="return fcConfirmAbandonSaisieEnCours();">Taux de saisie des restes</a></td>
              </tr>
              <tr>
                  <td width="17"  align="center" ><img src="http://www.excel-downloads.com/forum/images/puces/PucesJaunes.gif" width="10" height="10"></td>
                <td width="147" class="itemMenu" ><a href="/sygep/StatistiquesDesRestes.do?methode=preparer" onclick="return fcConfirmAbandonSaisieEnCours();">Statistiques des restes</a></td>
              </tr>
              
            </table>
            <!-- FIN MENU STATISTIQUES -->
	  </td>
      </tr>
    
</table>
        <!-- FIN DU MENU -->
      </td>
    <td width="589"  valign="top" >
      <!-- DEBUT CONTENU -->
	   		
<table width="580" border="0" >
   <tr>
    	<td>&nbsp;</td>
   </tr>
</table>


      <!-- FIN CONTENU -->
    </td>
  </tr>
  <tr>
    <td colspan="2" width="753" >
      <!-- DEBUT PIED DE PAGE -->
			
<table width="753" border="0" >
   <tr>
    	<td>&nbsp;</td>
   </tr>
</table>


      <!-- FIN PIED DE PAGE -->
    </td>
  </tr>
</table>

</center>
</body>
</html>

Ici, je dois betement cliquer sur « Productivité Par sites »

Ce qui nous emmene à

Ce lien n'existe plus

Ensuite, nous arrivons sur une page ou je dois cliquer sur un mini calendrier et selectionner les dates qui m’interesse (Valeur Haute + Basse) et cliquer sur rechercher Voici le code de la page :

Code:
<html lang="fr">

<head>
  <title>
    GEOPOST - SYGEP
  </title>
  <!-- meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" -->
  <link rel="stylesheet" href="css/Sygep.css" type="text/css">
</head>
<script language="javascript" >
	
//  alert("Saisie en cours " + null);	
	
  	
	var blnSaisieEncours = false; // Flag indiquant une saisie en cours.
  

  function fcPositionneFlagSaisieEnCours(flag){
      blnSaisieEncours = flag;
  }

  function fcConfirmAbandonSaisieEnCours(){
 //   alert("dans la methode");
 //   alert(blnSaisieEncours);
        if(blnSaisieEncours){
      if(confirm("Attention, vous allez perdre vos modifications !\nEtes-vous sûr de vouloir continuer ?")){
        return true;
      }else{
        return false;
      }
    }else{
      return true;
    }
  }


 function fcAide(urlPageAide){
    newWindow = window.open (urlPageAide, 'SYGEP', 'scrollbars=yes,status=no,width=700,height=500');
  }
</script>

<body bgcolor="#FFFFFF" text="#000000"  >
<center>

  <table width="753" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" >
    <tr>
    <td colspan="2" width="753" >
      <!-- DEBUT BANDEAU -->
			

<table width="753" border="0" bgcolor="#0031B5" cellspacing="0"  >
  <tr>
    <td width="350" ><img src="http://www.excel-downloads.com/forum/images/LogoPoste2.gif"  ></td>
    <td width="190" ><img src="http://www.excel-downloads.com/forum/images/LogoSYGEP.gif" width="109" height="26"></td>
    <td width="130" class="titreVersion" >Version&nbsp;3.0.6</td>
    <td>&nbsp;<a href="aide.doc" ><img src="http://www.excel-downloads.com/forum/images/Aide.gif" border="0" alt="Aide en ligne" ></a></td>
   </tr>
</table>

      <!-- FIN BANDEAU -->
    </td>
  </tr>
  <tr >
      <td width="164" valign="top"  >
        <!-- DEBUT DU MENU -->
        







<table width="164" border="0"   >
  <!-- logic:notEqual name="utilisateur" property="convoyeurTypeUtilisateur.adminOk" value="true" scope="session" -->
 
 

  
    
  

  


 
  <tr>
          <td>
	   <!-- Debut MENU SAISIE -->
             <table width="164" border="0">
              <tr align="center">
                  <td colspan="2" width="164px" ><img src="http://www.excel-downloads.com/forum/images/Saisie.gif" width="59" height="20"></td>
              </tr>
              
              
              <tr>
                  <td width="17"  align="center" ><img src="http://www.excel-downloads.com/forum/images/puces/PucesJaunes.gif" width="10" height="10"></td>
                  <td width="147" class="itemMenu" ><a href="/sygep/GestionFeuillesPresences.do?methode=preparerRecherchePresences" onclick="return fcConfirmAbandonSaisieEnCours();">Pr&eacute;sence</a></td>
                  <!-- d width="147" class="itemMenu" ><a href="/sygep/GestionFeuillesPresences.do?methode=selectionSite" onclick="return fcConfirmAbandonSaisieEnCours();">Pr&eacute;sence</a></td -->
              </tr>
              <tr>
                  <td width="17"  align="center"  ><img src="http://www.excel-downloads.com/forum/images/puces/PucesJaunes.gif" width="10" height="10"></td>
                  <td width="147" class="itemMenu" ><a href="/sygep/GestionEntraidesJournaliere.do?methode=preparerRechercheEntraides" onclick="return fcConfirmAbandonSaisieEnCours();">Entraide</a></td>
              </tr>
              
			  <tr>
                  <td width="17"  align="center"  ><img src="http://www.excel-downloads.com/forum/images/puces/PucesJaunes.gif" width="10" height="10"></td>
                  <td width="147" class="itemMenu" ><a href="/sygep/GestionActivitesJournalieres.do?methode=preparerRechercheActivites" onclick="return fcConfirmAbandonSaisieEnCours();">Activit&eacute;s</a></td>
              </tr>
              
			  <tr>
                  <td width="17"  align="center"  ><img src="http://www.excel-downloads.com/forum/images/puces/PucesJaunes.gif" width="10" height="10"></td>
                  <td width="147" class="itemMenu" ><a href="/sygep/GestionRestesJournaliers.do?methode=initGestionRestes" onclick="return fcConfirmAbandonSaisieEnCours();">Restes</a></td>
              </tr>
              
              <tr>
                  <td width="17"  align="center"  ><img src="http://www.excel-downloads.com/forum/images/puces/PucesJaunes.gif" width="10" height="10"></td>
                  <td width="147" class="itemMenu"><a href="/sygep/GestionMotDePasse.do?methode=preparerSaisie" onclick="return fcConfirmAbandonSaisieEnCours();">Mot&nbsp;De&nbsp;Passe</a></td>
              </tr>
              
            </table>
           <!-- FIN MENU SAISIE -->
           </td>
  </tr>




   

    
    	<tr>
	    <td>
              <!-- DEBUT MENU STATISTIQUES -->
           <table width="164" border="0">
              <tr align="center">
                  <td colspan="2" width="164px"><img src="http://www.excel-downloads.com/forum/images/Statistiques.gif" width="112" height="21"></td>
              </tr>
              
              
              <tr>
                  <td width="17"  align="center" ><img src="http://www.excel-downloads.com/forum/images/puces/PucesJaunes.gif" width="10" height="10"></td>
                <td width="147" class="itemMenu" ><a href="/sygep/ControleCoherence.do?methode=preparer" onclick="return fcConfirmAbandonSaisieEnCours();">Contr&ocirc;le coh&eacute;rence</a></td>
              </tr>
              
              <tr>
                  <td width="17"  align="center" ><img src="http://www.excel-downloads.com/forum/images/puces/PucesJaunes.gif" width="10" height="10"></td>
                <td width="147" class="itemMenu" ><a href="/sygep/ProductiviteHorairExploitationSite.do?methode=preparer" onclick="return fcConfirmAbandonSaisieEnCours();">Productivit&eacute;&nbsp;par&nbsp;sites</a></td>
              </tr>
              
              <tr>
                  <td width="17"  align="center" ><img src="http://www.excel-downloads.com/forum/images/puces/PucesJaunes.gif" width="10" height="10"></td>
                <td width="147" class="itemMenu" ><a href="/sygep/ProductiviteHoraireParEquipe.do?methode=preparer" onclick="return fcConfirmAbandonSaisieEnCours();">Productivit&eacute; par &eacute;quipes</a></td>
              </tr>
              <tr>
                  <td width="17"  align="center" ><img src="http://www.excel-downloads.com/forum/images/puces/PucesJaunes.gif" width="10" height="10"></td>
                <td width="147" class="itemMenu" ><a href="/sygep/TraficGlobalTrieParPFC.do?methode=preparer" onclick="return fcConfirmAbandonSaisieEnCours();">Trafic tri&eacute; par sites</a></td>
              </tr>
              <tr>
                  <td width="17"  align="center" ><img src="http://www.excel-downloads.com/forum/images/puces/PucesJaunes.gif" width="10" height="10"></td>
                <td width="147" class="itemMenu" ><a href="/sygep/TraficGlobalEnTransitParPFC.do?methode=preparer" onclick="return fcConfirmAbandonSaisieEnCours();">Trafic en transit par sites</a></td>
              </tr>
              <tr>
                  <td width="17"  align="center" ><img src="http://www.excel-downloads.com/forum/images/puces/PucesJaunes.gif" width="10" height="10"></td>
                <td width="147" class="itemMenu" ><a href="/sygep/TauxSaisieDesRestes.do?methode=preparer" onclick="return fcConfirmAbandonSaisieEnCours();">Taux de saisie des restes</a></td>
              </tr>
              <tr>
                  <td width="17"  align="center" ><img src="http://www.excel-downloads.com/forum/images/puces/PucesJaunes.gif" width="10" height="10"></td>
                <td width="147" class="itemMenu" ><a href="/sygep/StatistiquesDesRestes.do?methode=preparer" onclick="return fcConfirmAbandonSaisieEnCours();">Statistiques des restes</a></td>
              </tr>
              
            </table>
            <!-- FIN MENU STATISTIQUES -->
	  </td>
      </tr>
    
</table>
        <!-- FIN DU MENU -->
      </td>
    <td width="589"  valign="top" >
      <!-- DEBUT CONTENU -->
	   		







<link rel="STYLESHEET" type="text/css" href="css/calendar.css">
<script language="JavaScript" src="librairie/simplecalendar.js" type="text/javascript"></script>

<SCRIPT LANGUAGE="Javascript1.1"> 
<!-- Begin 

	 var bCancel = false; 

	 function validateProductiviteHoraireExploitationSitesForm(form) {                                                                   
	      if (bCancel) 
	 	return true; 
	      else 
	 	return validateRequired(form) && validateDate(form); 
	 } 

	 function required () { 
	    this.aa = new Array("dateDebut", "Le champ Date Du est obligatoire.", new Function ("varName", "this.datePatternStrict='dd/MM/yyyy';  return this[varName];"));
	    this.ab = new Array("dateFin", "Le champ Date Au est obligatoire.", new Function ("varName", "this.datePatternStrict='dd/MM/yyyy';  return this[varName];"));
	 } 

	 function DateValidations () { 
	    this.aa = new Array("dateDebut", "Le champ Date Du n'est pas une date.", new Function ("varName", "this.datePatternStrict='dd/MM/yyyy';  return this[varName];"));
	    this.ab = new Array("dateFin", "Le champ Date Au n'est pas une date.", new Function ("varName", "this.datePatternStrict='dd/MM/yyyy';  return this[varName];"));
	 } 


//  End -->
</SCRIPT>


<SCRIPT LANGUAGE="Javascript1.1" src="librairie/staticJavascript.jsp" ></script>

<script language="javascript" >
    var blnRechercheActive = false;

	function changeImage(obj,src){
		obj.src = src;
	}

	function fcForceRecherche(){
	  blnRechercheActive = false;
	}

	function fcAfficheAlerteRecherche(){
		alert("Veuillez lancer la recherche avec les nouveaux critères !");
	}

	// Lance la recherche des sites
	function fcRechercherSites(form){
	  if(validateProductiviteHoraireExploitationSitesForm(form)){
           form.methode.value="rechercherSites";
           form.submit();
          }
	}

	function fcSelectionnerToutesPFC(){
	  var form = document.ProductiviteHoraireExploitationSitesForm;


                if(blnRechercheActive){
                  var nbSite = form.idSelection.length;

                  if(nbSite>1){
                    for(i=0;i<nbSite;i++){
                      form.idSelection[i].checked = true;
                    }
                  }else{

                      form.idSelection.checked = true;
                  }

		}else{
			fcAfficheAlerteRecherche();
		}
	}


	function fcAnnulerSelection(){
	  var form = document.ProductiviteHoraireExploitationSitesForm;

                if(blnRechercheActive){
                  var nbSite = form.idSelection.length;

                  if(nbSite>1){
                    for(i=0;i<nbSite;i++){
                      form.idSelection[i].checked = false;
                    }
                  }else{

                      form.idSelection.checked = false;
                  }

		}else{
			fcAfficheAlerteRecherche();
		}
	}

	// Lance l'execution des statistiques.
	function fcCreerStatitistique(){
          var form = document.ProductiviteHoraireExploitationSitesForm;

        	if(blnRechercheActive){

                  // On vérifie que l'utilisateur a réalisé une sélection.
                  var nbSite = form.idSelection.length;
                  var blnSelection = false;

                  if(nbSite>1){

                    for(i=0;i<nbSite;i++){
                      blnSelection = form.idSelection[i].checked;
                      if(blnSelection)break;
                    }

                  }else{

                    blnSelection = form.idSelection.checked;

                  }

                  if(blnSelection){

                     form.methode.value="genererReport";
                     form.submit();

                  }else{
                     alert("Vous devez réaliser une sélection avant de créer les statistiques !");
                  }


		}else{
			fcAfficheAlerteRecherche();
		}
	}



</script>

<form name="ProductiviteHoraireExploitationSitesForm" method="POST" action="/sygep/ProductiviteHorairExploitationSite.do" onsubmit="return validateProductiviteHoraireExploitationSitesForm(this)">
<input type="hidden" name="methode" id="methode" value="" >


 

<table width="580" border="0"  >
   <tr>
    	<td align="center">

	<table width="569" border="0">
	  <tr>
          <td class="titrePage" > Productivit&eacute; par sites&nbsp;<a href="javascript:fcAide('statistiques/productivitehoraireexploitationsite/aide/recherche.htm')" ><img src="http://www.excel-downloads.com/forum/images/Aide.gif" border="0" alt="Aide en ligne" ></a></td>
	  </tr>
      <tr>
            <td align="center"></td>
	  </tr>

	<tr>
		<td align="center">
		    <table width="545px" cellpadding="1" cellspacing="0" border="0" >
              <tr class="lignePaire" >
                <td rowspan="3" width="299"  >
                  <table width="150" cellpadding="1" cellspacing="0" border="0" class="lignePaire"  >
                    <tr>
                      <td  class="celluleTitreDroite" >&nbsp;Du </td>
                      <td ><input type="text" name="dateDebut" maxlength="11" size="11" value="">&nbsp;<a href="javascript: void(0);" onmouseover="if (timeoutId) clearTimeout(timeoutId);window.status='Show Calendar';return true;" onmouseout="if (timeoutDelay) calendarTimeout();window.status='';" onclick="g_Calendar.show(event,'ProductiviteHoraireExploitationSitesForm.dateDebut',false,'dd/mm/yyyy'); fcForceRecherche(); return false;"><img src="http://www.excel-downloads.com/forum/images/calendar.gif" name="imgCalendar"  border="0" alt=""></a></td>
                    </tr>
                    <tr>
                      <td  class="celluleTitreDroite" >&nbsp;Au </td>
                      <td ><input type="text" name="dateFin" maxlength="11" size="11" value="">&nbsp;<a href="javascript: void(0);" onmouseover="if (timeoutId) clearTimeout(timeoutId);window.status='Show Calendar';return true;" onmouseout="if (timeoutDelay) calendarTimeout();window.status='';" onclick="g_Calendar.show(event,'ProductiviteHoraireExploitationSitesForm.dateFin',false,'dd/mm/yyyy'); fcForceRecherche(); return false;"><img src="http://www.excel-downloads.com/forum/images/calendar.gif" name="imgCalendar"  border="0" alt=""></a></td> 
                    </tr>
                    <tr>
                      <td colspan="2" align="center"><a href="javascript:fcRechercherSites(document.ProductiviteHoraireExploitationSitesForm);"  ><img src="http://www.excel-downloads.com/forum/images/boutons/Rechercher_Ovale.gif" border="0" ></a>
                      </td>
                    </tr>
                  </table>
                </td>
                
				
                	<td>&nbsp;</td>
				
			  </tr>
              <tr class="lignePaire" >
			  
			  
              	 <td>&nbsp;</td>
			   </tr>
              <tr class="lignePaire" >
              
			  
			  	<td>&nbsp;</td>
			  
              </tr>
            </table>


		</td>
	</tr>
	  <tr>
          <td align="center" >
            <table width="545px" border="0" cellpadding="0" cellspacing="5" >


              <tr>
                <td align="center" colspan="4">

           	
                </td>
              </tr>
            </table>

          </td>
	  </tr>
	</table>

	  <br>
      </td>
   </tr>
</table>

    

</form>

      <!-- FIN CONTENU -->
    </td>
  </tr>
  <tr>
    <td colspan="2" width="753" >
      <!-- DEBUT PIED DE PAGE -->
			
<table width="753" border="0" >
   <tr>
    	<td>&nbsp;</td>
   </tr>
</table>


      <!-- FIN PIED DE PAGE -->
    </td>
  </tr>
</table>

</center>
</body>
</html>

Le but étant sous VBA d'automatiser la saisi de la date du jour (ca je saurais faire par des boucles, c'est juste que j'ai aucune idée des parametre "Date", ou le rentrer etc...)

Et si j’arrive jusque la c’est déjà une énorme avancé :)
Je vous remercie grandement par avance
Si vous avez besoin de plus d'infos n'hésitez pas
 

Discussions similaires

Réponses
22
Affichages
2 K