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

ASP Discussion :

Requete SQL et affichage page


Sujet :

ASP

  1. #1
    Membre du Club
    Profil pro
    Inscrit en
    Août 2007
    Messages
    8
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2007
    Messages : 8
    Par défaut Requete SQL et affichage page
    Bonjour,
    J'ai un souci avec l'affichage d'une page ASP. Dans cette page j'ai du contenu HTML puis une grosse requete qui prend une dizaine de secondes à s'éxecuter puis du html. Pourquoi la page s'affiche d'une seule coup une fois la requete réalisée? Le browser ne devrait il pas afficher le code html du haut puis le resultat de la requete puis le reste du html. N'y a t'il pas moyen de l'obliger a respecter ce timing car pour faire patienter le client autant avoir du contenu qu'une page vide. merci

  2. #2
    Membre expérimenté Avatar de gderenne
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Juillet 2007
    Messages
    250
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur .NET

    Informations forums :
    Inscription : Juillet 2007
    Messages : 250
    Par défaut
    Salut,

    La solution devrait se trouver dans les commandes
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    Response.Buffer
    Response.Flush

  3. #3
    Membre du Club
    Profil pro
    Inscrit en
    Août 2007
    Messages
    8
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2007
    Messages : 8
    Par défaut
    ok je vais tester et regarde sur google a koi servent ces 2 instructions
    Merci

  4. #4
    Membre du Club
    Profil pro
    Inscrit en
    Août 2007
    Messages
    8
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2007
    Messages : 8
    Par défaut
    apres moults tentatives, pas moyen d'avancer. la page est toujours affichee en une seule fois

    Si y a des motivés ...


    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
    <%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
    <% 
     
    dda=Request.Form("DD")
    dfa=Request.Form("DF")
    agence=Session("UtilisateurAppli")
    connect=""+Request.ServerVariables("REMOTE_USER")
    connecte=eliminedomaine(connect)
     
    %>
     
    <html><!-- InstanceBegin template="/Templates/accueil.dwt.asp" codeOutsideHTMLIsLocked="false" -->
    <head>
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Process Direct - Coupons</title>
    <!-- InstanceEndEditable -->
    <link href="style.css" rel="stylesheet" type="text/css">
    <script language="javascript" type="text/javascript"  src="javascript/detail.js"></script>
    <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
    </head>
     
    <body leftmargin="0" topmargin="0">
     
     
    <table width="97%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="t1">
      <tr> 
        <td width="33" height="112" valign="top" background="image/fond_accueil.gif"><img src="image/fond_accueil.gif" width="4" height="112"><br>    </td>
        <td width="693" height="112" valign="middle" background="image/fond_accueil.gif"><img src="image/logo_coupons.gif" width="279" height="63"></td>
    	<td width="150" background="image/fond_accueil.gif"><img src="image/cetelem.gif" width="120" height="36">&nbsp;&nbsp;<br>	  <br>	  <img src="image/bonhomme.gif" width="12" height="14" style="">&nbsp;<span class="Style5"><B><%=connecte%></B> 
    &nbsp;(CRC= <%=agence%>)</td>
     
     
      </tr>
        <tr valign="top" bgcolor="#FFFFFF">
          <td height="50"  colspan="3" align="center">
    	  	<table align="center">
    	      <tr class="Style5">
        		    <td><a href="accueil.asp">Accueil</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
    		        <td><a href="liste_coupons.asp?init=0">Liste Coupons</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td
        >
            		<td><a href="..\..\accueil.asp">D&eacute;connexion</a></td>
    	      </tr>
        	</table>	  </td>
      </tr>
        <tr bgcolor="#FFFFFF" valign="top">
          <td  colspan="3"><!-- InstanceBeginEditable name="Contenu" -->
     
     
     
      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
         <tr>
           <td><div align="center" class="Style1">Liste des coupons&nbsp;</div></td>
         </tr>
    	      <tr>
           <td><div align="center" class="Style1">&nbsp;</div></td>
         </tr>
     </table>
     <table align="center">
    	 <tr><TD>
    	 <form name="form1" method="post" action="liste_coupons.asp?init=2">
      <table width="500" border="0" align="center" cellpadding="0">
        <tr bgcolor="#CEE1DF" class="Style1">
          <td><div align="center">Date D&eacute;but : </div></td>
          <td><input name="DD" type="text" id="DD" size="10" maxlength="10" value="<%=dda%>"></td>
          <td><div align="center">Date Fin: </div></td>
          <td><input name="DF" type="text" id="DF" size="10" maxlength="10" value="<%=dfa%>"></td>
          <td><div align="center">
            <input type="submit" name="Submit" value="Envoyer" style="background-color:#ffffff">
          </div></td>
        </tr>
      </table>
    </form>
    	 </TD></tr>
        </table>
     
    <%
    // cas du CRC de Marseille
    if (agence=='269'){
    ////////////////////////////  Cas des chatel////////////////////////////////
    // calcul du nombre de coupons Chatel restant à traiter
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='CHATEL' and ResFamille1='KO' and  (codesociete='100' OR codesociete='700') and (etat='0' OR etat='2') and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	chatel_atraiter=objcomm.execute();
    // calcul du nombre de coupons Chatel traités
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='CHATEL' and ResFamille1='KO' and  (codesociete='100' OR codesociete='700') and etat='1' and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	chatel_traite=objcomm.execute();
    // calcul du nombre de coupons Chatel automatisés
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='CHATEL' and ResFamille1='OK' and  (codesociete='100' OR codesociete='700') and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	chatel_automatise=objcomm.execute();
     
    ////////////////////////////  Cas des R3////////////////////////////////
    // calcul du nombre de coupons R3 restant à traiter
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='REFLEXION 3' and ResFamille1='KO' and  (codesociete='100' OR codesociete='700') and (etat='0' OR etat='2') and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	r3_atraiter=objcomm.execute();
    // calcul du nombre de coupons Chatel traités
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='REFLEXION 3' and ResFamille1='KO' and  (codesociete='100' OR codesociete='700') and etat='1' and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	r3_traite=objcomm.execute();
    // calcul du nombre de coupons Chatel automatisés
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='REFLEXION 3' and ResFamille1='OK' and  (codesociete='100' OR codesociete='700') and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	r3_automatise=objcomm.execute();
     
     
    %>	
     
     
    <table width="70%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr bgcolor="CEE1DF">
        <td width="34%">&nbsp;</td>
        <td width="20%" bgcolor="CEE1DF"><div align="center" class="Style5">A traiter </div></td>
        <td width="23%"><div align="center" class="Style5">Trait&eacute;s</div></td>
        <td width="23%"><div align="center" class="Style5">Automatis&eacute;s</div></td>
      </tr>
    <tr onMouseOver="this.className='nouveau'" onmouseout="this.className='ancien'" onClick="document.location='detail.asp?agence=<%=agence%>&famille=CHATEL&dd=<%=dda%>&df=<%=dfa%>'">
        <td width="34%" class="Style1">Nombre de coupons Chatel </td>
        <td width="20%"><div align="center" class="Style5"><%=chatel_atraiter("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5"><%=chatel_traite("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5"><%=chatel_automatise("nb")%></div></td>
      </tr>
    <tr onMouseOver="this.className='nouveau'" onmouseout="this.className='ancien'" onClick="document.location='detail.asp?agence=<%=agence%>&famille=R3&dd=<%=dda%>&df=<%=dfa%>'">
        <td width="34%"><span class="Style1">Nombre de coupons R3 </span></td>
        <td width="20%"><div align="center" class="Style5"><%=r3_atraiter("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5"><%=r3_traite("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5"><%=r3_automatise("nb")%></div></td>
      </tr>
    </table>	 
    <%}
    et apres y a encore des blocs de requetes
    donc j'aimerais que l'entete s'affiche, puis le premier bloc de code, puis le second...

  5. #5
    Membre éprouvé Avatar de LineLe
    Inscrit en
    Septembre 2003
    Messages
    285
    Détails du profil
    Informations personnelles :
    Âge : 42

    Informations forums :
    Inscription : Septembre 2003
    Messages : 285
    Par défaut
    Il existe une balise [CODE] (bouton # dans l'éditeur)
    ce sera plus simple pour la lecture
    Merci

  6. #6
    Membre du Club
    Profil pro
    Inscrit en
    Août 2007
    Messages
    8
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2007
    Messages : 8
    Par défaut
    ok c corrigé
    c desormais + lisible

  7. #7
    Modérateur
    Avatar de roro06
    Profil pro
    Inscrit en
    Avril 2007
    Messages
    1 480
    Détails du profil
    Informations personnelles :
    Âge : 56
    Localisation : France

    Informations forums :
    Inscription : Avril 2007
    Messages : 1 480
    Par défaut
    Bonjour

    Il faut mettre en debut de page :
    Ensuite, a chaque fois qu'il rencontrera une instruction Il enverra le bout de page au navigateur

    Tu peux donc le mettre apres chaque </table> par exemple (le navigateur affichera le tableau, puis attendra la suite etc ...

    tu peux aussi le mettre apres chaque </td>, mais il faut savoir que IE attendra de toute façon la balise </table> (balise fermante) avant d'afficher le tableau. FF s'en fout


    N'oubliez pas de consulter les FAQ ASP et les cours et tutoriels ASP

    " La vie c'est quelque chose de très fort et de très beau.... La vie appartient a tous les vivants. It's both a dream and a feeling. C'est être ce que nous ne sommes pas sans le rester. La vie c'est mourir aussi....Et mourir c'est vraiment strong...c'est rester en vie au delà de la mort...Tous ceux qui sont morts n'ignorent pas de le savoir."
    (J.C. VanDamme, humoriste et philosophe belge . A moins que ce ne soit l'inverse ...)

    Chuck Norris comprend JC Van Damme.

  8. #8
    Membre du Club
    Profil pro
    Inscrit en
    Août 2007
    Messages
    8
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2007
    Messages : 8
    Par défaut
    j'ai fait ce que tu me dit mais ca ne fonctionne pas
    la page s'affiche d'une seule coup
    je ne comprends plus

    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
    <%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
    <!-- #INCLUDE file ="activeconnection.asp" -->
    <!-- #INCLUDE file ="functions.asp" -->
    <% 
     
    Response.Buffer=true;
     
    %>
     
    <html><!-- InstanceBegin template="/Templates/accueil.dwt.asp" codeOutsideHTMLIsLocked="false" -->
    <head>
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Process Direct - Coupons</title>
    <!-- InstanceEndEditable -->
    <link href="style.css" rel="stylesheet" type="text/css">
    <script language="javascript" type="text/javascript"  src="javascript/detail.js"></script>
    <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
    </head>
     
     
    <body leftmargin="0" topmargin="0">
     
     
    <table width="97%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="t1">
      <tr> 
        <td width="33" height="112" valign="top" background="image/fond_accueil.gif"><img src="image/fond_accueil.gif" width="4" height="112"><br>    </td>
        <td width="693" height="112" valign="middle" background="image/fond_accueil.gif"><img src="image/logo_coupons.gif" width="279" height="63"></td>
    	<td width="150" background="image/fond_accueil.gif"><img src="image/cetelem.gif" width="120" height="36">&nbsp;&nbsp;<br>	  <br>	  <img src="image/bonhomme.gif" width="12" height="14" style="">&nbsp;<span class="Style5"><B><%=connecte%></B> 
    &nbsp;(CRC= <%=agence%>)</td>
     
     
      </tr>
        <tr valign="top" bgcolor="#FFFFFF">
          <td height="50"  colspan="3" align="center">
    	  	<table align="center">
    	      <tr class="Style5">
        		    <td><a href="accueil.asp">Accueil</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
    		        <td><a href="liste_coupons.asp?init=0">Liste Coupons</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td
        >
            		<td><a href="..\..\accueil.asp">D&eacute;connexion</a></td>
    	      </tr>
        	</table>	  </td>
      </tr>
        <tr bgcolor="#FFFFFF" valign="top">
          <td  colspan="3"><!-- InstanceBeginEditable name="Contenu" -->
     
     
     
     
     
     
    // cas du CRC Facet
    if (agence=='465'){%>
     
    <table width="70%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr bgcolor="CEE1DF">
        <td width="34%">&nbsp;</td>
        <td width="20%"><div align="center" class="Style5">A traiter </div></td>
        <td width="23%"><div align="center" class="Style5">Trait&eacute;s</div></td>
        <td width="23%"><div align="center" class="Style5">Automatis&eacute;s</div></td>
      </tr>
    </table>
    <%Response.Flush()%>
    <%
    ////////////////////////////  Cas des AUG CR////////////////////////////////
    // calcul du nombre de coupons aug cr restant à traiter
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='AUG CR' and  (codeagence='465') and (etat='0' OR etat='2') and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_aug_atraiter=objcomm.execute();
    // calcul du nombre de coupons aug cr restant à traiter
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='AUG CR' and  (codeagence='465') and etat='1' and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_aug_traite=objcomm.execute();
    %>
    <table width="70%" border="0" align="center" cellpadding="0" cellspacing="0">
    	<tr onMouseOver="this.className='nouveau'" onmouseout="this.className='ancien'" onClick="document.location='detail.asp?agence=<%=agence%>&famille=AUG&dd=<%=dda%>&df=<%=dfa%>'">
        <td width="34%"><span class="Style1">Nombre de coupons AUG CR </span></td>
        <td width="20%"><div align="center" class="Style5"><%=facet_aug_atraiter("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5"><%=facet_aug_traite("nb")%></div></td>
          <td>&nbsp;</td>
        </tr>
    </table>
    <%Response.Flush()%>
      <%
      ////////////////////////////  Cas des chatel////////////////////////////////
    // calcul du nombre de coupons Chatel restant à traiter
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='CHATEL' and ResFamille1='KO' and  (codeagence='465')  and (etat='0' OR etat='2') and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_chatel_atraiter=objcomm.execute();
    // calcul du nombre de coupons Chatel traités
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='CHATEL' and ResFamille1='KO' and  (codeagence='465') and etat='1' and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_chatel_traite=objcomm.execute();
    // calcul du nombre de coupons Chatel automatisés
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='CHATEL' and ResFamille1='OK' and  (codeagence='465') and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_chatel_automatise=objcomm.execute();
     
      %>
    <table width="70%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr onMouseOver="this.className='nouveau'" onmouseout="this.className='ancien'" onClick="document.location='detail.asp?agence=<%=agence%>&famille=CHATEL&dd=<%=dda%>&df=<%=dfa%>'">
        <td width="34%" class="Style1">Nombre de coupons CHATEL </td>
        <td width="20%"><div align="center" class="Style5"><%=facet_chatel_atraiter("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5"><%=facet_chatel_traite("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5"><%=facet_chatel_automatise("nb")%></div></td>
      </tr>
    </table>
    <%Response.Flush()%>
    <%
    ////////////////////////////  Cas des FIN CR////////////////////////////////
    // calcul du nombre de coupons fin cr restant à traiter
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='FINANCEMENT CR' and  (codeagence='465') and (etat='0' OR etat='2') and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_fin_atraiter=objcomm.execute();
    // calcul du nombre de coupons fin cr restant à traiter
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='FINANCEMENT CR' and  (codeagence='465') and etat='1' and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_fin_traite=objcomm.execute();
    %>
    <table width="70%" border="0" align="center" cellpadding="0" cellspacing="0">  
    <tr onMouseOver="this.className='nouveau'" onmouseout="this.className='ancien'" onClick="document.location='detail.asp?agence=<%=agence%>&famille=FIN&dd=<%=dda%>&df=<%=dfa%>'">
        <td width="34%" class="Style1">Nombre de coupons FINANCEMENT CR </td>
        <td width="20%"><div align="center" class="Style5"><%=facet_fin_atraiter("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5"><%=facet_fin_traite("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5">--</div></td>
      </tr>
      </table>
    <%Response.Flush()%>
    <%
    ////////////////////////////  Cas des JOKER////////////////////////////////
    // calcul du nombre de coupons JOKER restant à traiter
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='JOKER' and ResFamille1='KO' and  (codeagence='465') and (etat='0' OR etat='2') and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_jok_atraiter=objcomm.execute();
    // calcul du nombre de coupons JOKER traités
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='JOKER' and ResFamille1='KO' and  (codeagence='465') and etat='1' and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_jok_traite=objcomm.execute();
    // calcul du nombre de coupons JOKER automatisés
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='JOKER' and ResFamille1='OK' and  (codeagence='465') and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_jok_automatise=objcomm.execute();
    %>  
    <table width="70%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr onMouseOver="this.className='nouveau'" onmouseout="this.className='ancien'" onClick="document.location='detail.asp?agence=<%=agence%>&famille=JOK&dd=<%=dda%>&df=<%=dfa%>'">
        <td width="34%"><span class="Style1">Nombre de coupons JOKER </span></td>
        <td width="20%"><div align="center" class="Style5"><%=facet_jok_atraiter("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5"><%=facet_jok_traite("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5"><%=facet_jok_automatise("nb")%></div></td>
      </tr>
     </table> 
     <%Response.Flush()%>
      <%
    ////////////////////////////  Cas des OUV CR////////////////////////////////
    // calcul du nombre de coupons ouv cr restant à traiter
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='OUV CR' and  (codeagence='465') and (etat='0' OR etat='2') and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_ouv_atraiter=objcomm.execute();
    // calcul du nombre de coupons ouv cr restant à traiter
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='OUV CR' and  (codeagence='465') and etat='1' and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_ouv_traite=objcomm.execute();
      %>
    <table width="70%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr onMouseOver="this.className='nouveau'" onmouseout="this.className='ancien'" onClick="document.location='detail.asp?agence=<%=agence%>&famille=OUV&dd=<%=dda%>&df=<%=dfa%>'">
        <td width="34%"><span class="Style1">Nombre de coupons OUV CR </span></td>
        <td width="20%"><div align="center" class="Style5"><%=facet_ouv_atraiter("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5"><%=facet_ouv_traite("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5">--</div></td>
      </tr>
    </table>  
    <%Response.Flush()%>
    <%
    ////////////////////////////  Cas des PP ////////////////////////////////
    // calcul du nombre de coupons pp restant à traiter
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='PP' and  (codeagence='465') and (etat='0' OR etat='2') and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_pp_atraiter=objcomm.execute();
    // calcul du nombre de coupons pp restant à traiter
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='PP' and  (codeagence='465') and etat='1' and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_pp_traite=objcomm.execute();
    %> 
    <table width="70%" border="0" align="center" cellpadding="0" cellspacing="0"> 
    <tr onMouseOver="this.className='nouveau'" onmouseout="this.className='ancien'" onClick="document.location='detail.asp?agence=<%=agence%>&famille=PP&dd=<%=dda%>&df=<%=dfa%>'">
        <td width="34%"><span class="Style1">Nombre de coupons PP</span></td>
        <td width="20%"><div align="center" class="Style5"><%=facet_pp_atraiter("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5"><%=facet_pp_traite("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5">--</div></td>
      </tr>
     </table> 
     <%Response.Flush()%>
    <%
    ////////////////////////////  Cas des R3////////////////////////////////
    // calcul du nombre de coupons R3 restant à traiter
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='REFLEXION 3' and ResFamille1='KO' and  (codeagence='465') and (etat='0' OR etat='2') and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_r3_atraiter=objcomm.execute();
    // calcul du nombre de coupons R3 traités
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='REFLEXION 3' and ResFamille1='KO' and  (codeagence='465') and etat='1' and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_r3_traite=objcomm.execute();
    // calcul du nombre de coupons R3 automatisés
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='REFLEXION 3' and ResFamille1='OK' and  (codeagence='465') and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_r3_automatise=objcomm.execute();
     
    %>
    <table width="70%" border="0" align="center" cellpadding="0" cellspacing="0"> 
    <tr onMouseOver="this.className='nouveau'" onmouseout="this.className='ancien'" onClick="document.location='detail.asp?agence=<%=agence%>&famille=R3&dd=<%=dda%>&df=<%=dfa%>'">
        <td width="34%"><span class="Style1">Nombre de coupons R3 </span></td>
        <td width="20%"><div align="center" class="Style5"><%=facet_r3_atraiter("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5"><%=facet_r3_traite("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5"><%=facet_r3_automatise("nb")%></div></td>
      </tr>
    </table>  
    <%Response.Flush()%>
    <%
    ////////////////////////////  Cas des SAV CR+PP ////////////////////////////////
    // calcul du nombre de coupons sav restant à traiter
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='SAV CR+PP' and  (codeagence='465') and (etat='0' OR etat='2') and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_sav_atraiter=objcomm.execute();
    // calcul du nombre de coupons sav restant à traiter
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='SAV CR+PP' and  (codeagence='465') and etat='1' and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_sav_traite=objcomm.execute();
    %>	
    <table width="70%" border="0" align="center" cellpadding="0" cellspacing="0">  
    <tr onMouseOver="this.className='nouveau'" onmouseout="this.className='ancien'" onClick="document.location='detail.asp?agence=<%=agence%>&famille=PP&dd=<%=dda%>&df=<%=dfa%>'">
        <td width="34%"><span class="Style1">Nombre de coupons SAV CR+PP </span></td>
        <td width="20%"><div align="center" class="Style5"><%=facet_sav_atraiter("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5"><%=facet_sav_traite("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5">--</div></td>
      </tr>
    </table>
    <%Response.Flush()%>
    <table width="70%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table>	 
    <%}	
     
     
     
     
     
     
          <!-- InstanceEndEditable --></td>
        </tr>
        <tr bgcolor="#FFFFFF">
        <td colspan="3">&nbsp; 
          </td>
      </tr>
    </table>
     
     
     
    </body>
    <!-- InstanceEnd --></html>

  9. #9
    Membre du Club
    Profil pro
    Inscrit en
    Août 2007
    Messages
    8
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2007
    Messages : 8
    Par défaut
    le pb vient peut etre du fait que je suis dans un template et que ma page est dans le table généré par le template dans ce cas il n'affiche pas le retour car il attend le /table du template je vais tester en supprimant le template

  10. #10
    Membre du Club
    Profil pro
    Inscrit en
    Août 2007
    Messages
    8
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2007
    Messages : 8
    Par défaut
    je confirme tu as raison roro06
    cela vient de mon encapsulage et pas du reste
    faut que je vire mon template avec le <table>
    Merci

    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
    <%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
    <!-- #INCLUDE file ="activeconnection.asp" -->
    <!-- #INCLUDE file ="functions.asp" -->
    <% 
    agence=465
     
    <table width="100%"  border="0" cellspacing="0" cellpadding="0">
         <tr>
           <td><div align="center" class="Style1">Liste des coupons&nbsp;</div></td>
         </tr>
    	      <tr>
           <td><div align="center" class="Style1">&nbsp;</div></td>
         </tr>
     </table>
     <table align="center">
    	 <tr><TD>
    	 <form name="form1" method="post" action="liste_coupons.asp?init=2">
      <table width="500" border="0" align="center" cellpadding="0">
        <tr bgcolor="#CEE1DF" class="Style1">
          <td><div align="center">Date D&eacute;but : </div></td>
          <td><input name="DD" type="text" id="DD" size="10" maxlength="10" value="<%=dda%>"></td>
          <td><div align="center">Date Fin: </div></td>
          <td><input name="DF" type="text" id="DF" size="10" maxlength="10" value="<%=dfa%>"></td>
          <td><div align="center">
            <input type="submit" name="Submit" value="Envoyer" style="background-color:#ffffff">
          </div></td>
        </tr>
      </table>
    </form>
    	 </TD></tr>
        </table>
    <%Response.Flush();%>
    <%
    // cas du CRC Facet
    if (agence=='465'){%>
     
    <table width="70%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr bgcolor="CEE1DF">
        <td width="34%">&nbsp;</td>
        <td width="20%"><div align="center" class="Style5">A traiter </div></td>
        <td width="23%"><div align="center" class="Style5">Trait&eacute;s</div></td>
        <td width="23%"><div align="center" class="Style5">Automatis&eacute;s</div></td>
      </tr>
    </table>
    <%Response.Flush()%>
    <%
    ////////////////////////////  Cas des AUG CR////////////////////////////////
    // calcul du nombre de coupons aug cr restant à traiter
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='AUG CR' and  (codeagence='465') and (etat='0' OR etat='2') and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_aug_atraiter=objcomm.execute();
    // calcul du nombre de coupons aug cr restant à traiter
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='AUG CR' and  (codeagence='465') and etat='1' and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_aug_traite=objcomm.execute();
    %>
    <table width="70%" border="0" align="center" cellpadding="0" cellspacing="0">
    	<tr onMouseOver="this.className='nouveau'" onmouseout="this.className='ancien'" onClick="document.location='detail.asp?agence=<%=agence%>&famille=AUG&dd=<%=dda%>&df=<%=dfa%>'">
        <td width="34%"><span class="Style1">Nombre de coupons AUG CR </span></td>
        <td width="20%"><div align="center" class="Style5"><%=facet_aug_atraiter("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5"><%=facet_aug_traite("nb")%></div></td>
          <td>&nbsp;</td>
        </tr>
    </table>
    <%Response.Flush()%>
      <%
      ////////////////////////////  Cas des chatel////////////////////////////////
    // calcul du nombre de coupons Chatel restant à traiter
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='CHATEL' and ResFamille1='KO' and  (codeagence='465')  and (etat='0' OR etat='2') and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_chatel_atraiter=objcomm.execute();
    // calcul du nombre de coupons Chatel traités
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='CHATEL' and ResFamille1='KO' and  (codeagence='465') and etat='1' and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_chatel_traite=objcomm.execute();
    // calcul du nombre de coupons Chatel automatisés
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='CHATEL' and ResFamille1='OK' and  (codeagence='465') and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_chatel_automatise=objcomm.execute();
     
      %>
    <table width="70%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr onMouseOver="this.className='nouveau'" onmouseout="this.className='ancien'" onClick="document.location='detail.asp?agence=<%=agence%>&famille=CHATEL&dd=<%=dda%>&df=<%=dfa%>'">
        <td width="34%" class="Style1">Nombre de coupons CHATEL </td>
        <td width="20%"><div align="center" class="Style5"><%=facet_chatel_atraiter("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5"><%=facet_chatel_traite("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5"><%=facet_chatel_automatise("nb")%></div></td>
      </tr>
    </table>
    <%Response.Flush()%>
    <%
    ////////////////////////////  Cas des FIN CR////////////////////////////////
    // calcul du nombre de coupons fin cr restant à traiter
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='FINANCEMENT CR' and  (codeagence='465') and (etat='0' OR etat='2') and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_fin_atraiter=objcomm.execute();
    // calcul du nombre de coupons fin cr restant à traiter
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='FINANCEMENT CR' and  (codeagence='465') and etat='1' and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_fin_traite=objcomm.execute();
    %>
    <table width="70%" border="0" align="center" cellpadding="0" cellspacing="0">  
    <tr onMouseOver="this.className='nouveau'" onmouseout="this.className='ancien'" onClick="document.location='detail.asp?agence=<%=agence%>&famille=FIN&dd=<%=dda%>&df=<%=dfa%>'">
        <td width="34%" class="Style1">Nombre de coupons FINANCEMENT CR </td>
        <td width="20%"><div align="center" class="Style5"><%=facet_fin_atraiter("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5"><%=facet_fin_traite("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5">--</div></td>
      </tr>
      </table>
    <%Response.Flush()%>
    <%
    ////////////////////////////  Cas des JOKER////////////////////////////////
    // calcul du nombre de coupons JOKER restant à traiter
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='JOKER' and ResFamille1='KO' and  (codeagence='465') and (etat='0' OR etat='2') and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_jok_atraiter=objcomm.execute();
    // calcul du nombre de coupons JOKER traités
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='JOKER' and ResFamille1='KO' and  (codeagence='465') and etat='1' and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_jok_traite=objcomm.execute();
    // calcul du nombre de coupons JOKER automatisés
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='JOKER' and ResFamille1='OK' and  (codeagence='465') and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_jok_automatise=objcomm.execute();
    %>  
    <table width="70%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr onMouseOver="this.className='nouveau'" onmouseout="this.className='ancien'" onClick="document.location='detail.asp?agence=<%=agence%>&famille=JOK&dd=<%=dda%>&df=<%=dfa%>'">
        <td width="34%"><span class="Style1">Nombre de coupons JOKER </span></td>
        <td width="20%"><div align="center" class="Style5"><%=facet_jok_atraiter("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5"><%=facet_jok_traite("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5"><%=facet_jok_automatise("nb")%></div></td>
      </tr>
     </table> 
     <%Response.Flush()%>
      <%
    ////////////////////////////  Cas des OUV CR////////////////////////////////
    // calcul du nombre de coupons ouv cr restant à traiter
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='OUV CR' and  (codeagence='465') and (etat='0' OR etat='2') and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_ouv_atraiter=objcomm.execute();
    // calcul du nombre de coupons ouv cr restant à traiter
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='OUV CR' and  (codeagence='465') and etat='1' and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_ouv_traite=objcomm.execute();
      %>
    <table width="70%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr onMouseOver="this.className='nouveau'" onmouseout="this.className='ancien'" onClick="document.location='detail.asp?agence=<%=agence%>&famille=OUV&dd=<%=dda%>&df=<%=dfa%>'">
        <td width="34%"><span class="Style1">Nombre de coupons OUV CR </span></td>
        <td width="20%"><div align="center" class="Style5"><%=facet_ouv_atraiter("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5"><%=facet_ouv_traite("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5">--</div></td>
      </tr>
    </table>  
    <%Response.Flush()%>
    <%
    ////////////////////////////  Cas des PP ////////////////////////////////
    // calcul du nombre de coupons pp restant à traiter
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='PP' and  (codeagence='465') and (etat='0' OR etat='2') and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_pp_atraiter=objcomm.execute();
    // calcul du nombre de coupons pp restant à traiter
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='PP' and  (codeagence='465') and etat='1' and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_pp_traite=objcomm.execute();
    %> 
    <table width="70%" border="0" align="center" cellpadding="0" cellspacing="0"> 
    <tr onMouseOver="this.className='nouveau'" onmouseout="this.className='ancien'" onClick="document.location='detail.asp?agence=<%=agence%>&famille=PP&dd=<%=dda%>&df=<%=dfa%>'">
        <td width="34%"><span class="Style1">Nombre de coupons PP</span></td>
        <td width="20%"><div align="center" class="Style5"><%=facet_pp_atraiter("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5"><%=facet_pp_traite("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5">--</div></td>
      </tr>
     </table> 
     <%Response.Flush()%>
    <%
    ////////////////////////////  Cas des R3////////////////////////////////
    // calcul du nombre de coupons R3 restant à traiter
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='REFLEXION 3' and ResFamille1='KO' and  (codeagence='465') and (etat='0' OR etat='2') and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_r3_atraiter=objcomm.execute();
    // calcul du nombre de coupons R3 traités
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='REFLEXION 3' and ResFamille1='KO' and  (codeagence='465') and etat='1' and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_r3_traite=objcomm.execute();
    // calcul du nombre de coupons R3 automatisés
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='REFLEXION 3' and ResFamille1='OK' and  (codeagence='465') and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_r3_automatise=objcomm.execute();
     
    %>
    <table width="70%" border="0" align="center" cellpadding="0" cellspacing="0"> 
    <tr onMouseOver="this.className='nouveau'" onmouseout="this.className='ancien'" onClick="document.location='detail.asp?agence=<%=agence%>&famille=R3&dd=<%=dda%>&df=<%=dfa%>'">
        <td width="34%"><span class="Style1">Nombre de coupons R3 </span></td>
        <td width="20%"><div align="center" class="Style5"><%=facet_r3_atraiter("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5"><%=facet_r3_traite("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5"><%=facet_r3_automatise("nb")%></div></td>
      </tr>
    </table>  
    <%Response.Flush()%>
    <%
    ////////////////////////////  Cas des SAV CR+PP ////////////////////////////////
    // calcul du nombre de coupons sav restant à traiter
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='SAV CR+PP' and  (codeagence='465') and (etat='0' OR etat='2') and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_sav_atraiter=objcomm.execute();
    // calcul du nombre de coupons sav restant à traiter
    	objcomm.commandtext="SELECT count(*) as nb FROM PROCESS_COUPONS WHERE Famille1='SAV CR+PP' and  (codeagence='465') and etat='1' and datenumerisation between '"+dateDebut+"' and '"+dateFin+"' " ;
    	facet_sav_traite=objcomm.execute();
    %>	
    <table width="70%" border="0" align="center" cellpadding="0" cellspacing="0">  
    <tr onMouseOver="this.className='nouveau'" onmouseout="this.className='ancien'" onClick="document.location='detail.asp?agence=<%=agence%>&famille=PP&dd=<%=dda%>&df=<%=dfa%>'">
        <td width="34%"><span class="Style1">Nombre de coupons SAV CR+PP </span></td>
        <td width="20%"><div align="center" class="Style5"><%=facet_sav_atraiter("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5"><%=facet_sav_traite("nb")%></div></td>
        <td width="23%"><div align="center" class="Style5">--</div></td>
      </tr>
    </table>
    <%Response.Flush()%>
    <table width="70%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table>	 
    <%}

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

Discussions similaires

  1. Réponses: 1
    Dernier message: 14/09/2012, 09h20
  2. info requete sql et affichage
    Par ousi64 dans le forum IHM
    Réponses: 6
    Dernier message: 14/06/2012, 11h11
  3. [MySQL] Requete SQL pour affichage de plusieurs résultats par rapport à un ID
    Par tyler94 dans le forum PHP & Base de données
    Réponses: 17
    Dernier message: 27/12/2011, 14h15
  4. Cohabité deux requetes SQL + Mise en page bizare
    Par C3DRIC49 dans le forum Langage
    Réponses: 30
    Dernier message: 16/06/2009, 22h41
  5. [phpBB] 16 Requêtes SQL sur la page index
    Par Heptaeon dans le forum EDI, CMS, Outils, Scripts et API
    Réponses: 8
    Dernier message: 21/09/2006, 17h12

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