Précédent   Forum des professionnels en informatique > Webmasters - Développement Web > Langages serveur > ASP
ASP Forum sur la programmation ASP. Avant de poster : Cours ASP, FAQ ASP
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 21/08/2007, 17h11   #1
Invité de passage
 
Inscription : août 2007
Messages : 8
Détails du profil
Informations forums :
Inscription : août 2007
Messages : 8
Points : 1
Points : 1
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
hommefitness est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 22/08/2007, 01h00   #2
Membre confirmé
 
Avatar de gderenne
 
Inscription : juillet 2007
Messages : 248
Détails du profil
Informations personnelles :
Âge : 39

Informations forums :
Inscription : juillet 2007
Messages : 248
Points : 217
Points : 217
Salut,

La solution devrait se trouver dans les commandes
Code :
1
2
Response.Buffer
Response.Flush
__________________
Cordialement,
Gil DERENNE
Ingénieur du Son
gderenne est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 22/08/2007, 09h45   #3
Invité de passage
 
Inscription : août 2007
Messages : 8
Détails du profil
Informations forums :
Inscription : août 2007
Messages : 8
Points : 1
Points : 1
ok je vais tester et regarde sur google a koi servent ces 2 instructions
Merci
hommefitness est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 22/08/2007, 10h34   #4
Invité de passage
 
Inscription : août 2007
Messages : 8
Détails du profil
Informations forums :
Inscription : août 2007
Messages : 8
Points : 1
Points : 1
apres moults tentatives, pas moyen d'avancer. la page est toujours affichee en une seule fois

Si y a des motivés ...


Code :
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...
hommefitness est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 22/08/2007, 12h26   #5
Membre actif
 
Avatar de LineLe
 
Inscription : septembre 2003
Messages : 285
Détails du profil
Informations personnelles :
Âge : 29

Informations forums :
Inscription : septembre 2003
Messages : 285
Points : 197
Points : 197
Il existe une balise [CODE] (bouton # dans l'éditeur)
ce sera plus simple pour la lecture
Merci
__________________
Ex Ingénieur Qualité

Ayez pitié de ma maigre boîte de réception, servez-vous du forum, pas des MP, je n'y répondrai pas.


Pomme dauphine Miss DVP 2007
LineLe est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 22/08/2007, 14h06   #6
Invité de passage
 
Inscription : août 2007
Messages : 8
Détails du profil
Informations forums :
Inscription : août 2007
Messages : 8
Points : 1
Points : 1
ok c corrigé
c desormais + lisible
hommefitness est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 22/08/2007, 15h46   #7
Modérateur
 
Avatar de roro06
 
Inscription : avril 2007
Messages : 1 364
Détails du profil
Informations personnelles :
Âge : 42

Informations forums :
Inscription : avril 2007
Messages : 1 364
Points : 1 551
Points : 1 551
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
roro06 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 22/08/2007, 17h23   #8
Invité de passage
 
Inscription : août 2007
Messages : 8
Détails du profil
Informations forums :
Inscription : août 2007
Messages : 8
Points : 1
Points : 1
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 :
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>
hommefitness est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 22/08/2007, 17h28   #9
Invité de passage
 
Inscription : août 2007
Messages : 8
Détails du profil
Informations forums :
Inscription : août 2007
Messages : 8
Points : 1
Points : 1
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
hommefitness est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 22/08/2007, 17h36   #10
Invité de passage
 
Inscription : août 2007
Messages : 8
Détails du profil
Informations forums :
Inscription : août 2007
Messages : 8
Points : 1
Points : 1
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 :
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>	 
<%}
hommefitness est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité Cette discussion est résolue.
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 14h14.


 
 
 
 
Partenaires

Hébergement Web