Précédent   Forum des professionnels en informatique > PHP > PHP & SGBD > PHP & MySQL
PHP & MySQL Forum d'entraide sur les fonctions MySQL avec PHP. Avant de poster -> FAQ MySQL, Cours MySQL et Sources MySQL. Pour les questions concernant le moteur MySQL plutôt que les fonctions PHP, merci d'utiliser le forum MySQL.
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 27/01/2012, 18h19   #1
Invité de passage
 
Inscription : septembre 2007
Messages : 30
Détails du profil
Informations personnelles :
Localisation : France, Paris (Île de France)

Informations forums :
Inscription : septembre 2007
Messages : 30
Points : 2
Points : 2
Par défaut pb boucle while

Bonjour,

Il semble y avoir un probleme de boucle sur les deux requêtes suivantes:
Sous PHP 5.3:

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
 
 
//premiere boucle
 
<?php
//resultat de recherche
$now = date('Ymd'); // 20120104
$requete = "SELECT * FROM `evenement` WHERE  publication='oui'  AND `date_creation_ev` <=$now order by 'date_diff_ev'  DESC  LIMIT 5\n";  
 
 
   $resultat = ExecRequete ($requete, $connexion);
   while ($evenement = ObjetSuivant($resultat))
   {
   $id_evenement = $evenement->id_evenement;
   $sous_titre = $evenement->sous_titre;
   $date_debut = $evenement->date_debut;
   $date_fin = $evenement->date_fin;
     $titre = $evenement->titre;
   $titre = strtoupper($titre);
 
   $ville_ev = $evenement->ville_ev;
   $region = $evenement->region;
 
   if($region == 'Online') {
   $contenu_lieu = "Événement online";
   } else {
   $contenu_lieu = $ville_ev." - ".$region;
   }
 
   echo "<ul style='list-style:outside square;margin:2px 10px 1px -20px;'><li><a rel='nofollow'  style='text-indent: 5px; text-transform: lowercase; font-size: 7.5pt; font-weight: normal; ' href='http://www.monsite.com/agenda/resultat.php?id_evenement=$id_evenement' > $titre</a></li></ul>";
 
   }
     if ($num < 2) {
   echo " ";
   }
 
 
?>
 
// deuxieme boucle
 
<?php  
$now = date('Ymd'); // 20120104
 
     $requete = "SELECT * FROM `evenement` WHERE  publication='oui' AND une_ev='oui' AND `date_creation_ev` <=$now  order by 'date_diff_ev'  DESC  LIMIT 2\n";  
   $resultat = ExecRequete ($requete, $connexion);
   while ($evenement = ObjetSuivant($resultat))
   {
   $num = $num+1;
   $titre = $evenement->titre;
   $titre = strtoupper($titre);
   $theme = $evenement->theme;
   $region = $evenement->region;
   $id_evenement = $evenement->id_evenement;
 
   echo "<ul style='list-style:outside square;margin:2px 10px 1px -20px;'><li><a rel='nofollow'  style='text-indent: 5px; text-transform: lowercase; font-size: 7.5pt; font-weight: normal; ' href='http://www.monsite.com/agenda/resultat.php?id_evenement=$id_evenement' > $titre</a></li></ul>";
 
    }
   if ($num < 1) {
   echo "<br>";
   }
?>
Il s'agit d'un include

Le probleme c'est que c'est toujours le même article qui s'affiche sur la page principale (le dernier appelé par l'include)

Et si j'enlève la premiere boucle, toute la page foire

Pourriez vous m'éclairer à ce sujet

Merci d'avance
event est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/01/2012, 19h40   #2
Membre émérite
 
Avatar de vorace
 
Homme
Développeur
Inscription : août 2010
Messages : 587
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : France, Meurthe et Moselle (Lorraine)

Informations professionnelles :
Activité : Développeur

Informations forums :
Inscription : août 2010
Messages : 587
Points : 861
Points : 861
le problème vient peut être de ta fonction de parcours des résultats 'ObjetSuivant()'...on peut voire le code ?!
__________________
Développeur informatique contrarié...
vorace est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/01/2012, 19h49   #3
Invité de passage
 
Inscription : septembre 2007
Messages : 30
Détails du profil
Informations personnelles :
Localisation : France, Paris (Île de France)

Informations forums :
Inscription : septembre 2007
Messages : 30
Points : 2
Points : 2
Merci Vorace de ta visite bien qu'il soit déjà tard,

voici le code

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
 
<?php
 // Execution d'une requete avec MySQL
 
 function ExecRequete ($requete, $connexion)
 {
  $resultat = mysql_query ($requete, $connexion);
 
  if ($resultat)
   return $resultat;
  else 
  {  
    echo "<B>Erreur dans l'execution de la requete '$requete'.</B><BR>";
    echo "<B>Message de MySQL :</B> " .  mysql_error($connexion);
    exit;
  }  
 } // Fin de la fonction ExecRequete
 
 // Recherche de l'objet suivant
 function ObjetSuivant ($resultat)
 {
   return  mysql_fetch_object ($resultat);
 } 
 
 // Recherche de la ligne suivante (retourne un tableau)
 function LigneSuivante ($resultat)
 {
   return  mysql_fetch_assoc ($resultat);
 }
?>
event est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/01/2012, 19h55   #4
Membre émérite
 
Avatar de vorace
 
Homme
Développeur
Inscription : août 2010
Messages : 587
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : France, Meurthe et Moselle (Lorraine)

Informations professionnelles :
Activité : Développeur

Informations forums :
Inscription : août 2010
Messages : 587
Points : 861
Points : 861
et comme ça :
Code :
1
2
   while ($evenement = ObjetSuivant(&$resultat))
   {...}
__________________
Développeur informatique contrarié...
vorace est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/01/2012, 20h14   #5
Invité de passage
 
Inscription : septembre 2007
Messages : 30
Détails du profil
Informations personnelles :
Localisation : France, Paris (Île de France)

Informations forums :
Inscription : septembre 2007
Messages : 30
Points : 2
Points : 2
J'ai remplacé toutes les occurrences concernées, mais cela n'a pas corrigé le pb

je me permet de montrer le code de la page complète,

l'objectif étant d'implémenter des microdatas avec nécessité de passer au php 5.3 pour les pb de dépréciation, le code n'est pas forcément écrit dans les règles de l'art

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
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
 
<?php  
// //
  $connexion = Connexion (NOM, PASSE, BASE, SERVEUR);
 
    $requete = "SELECT *  FROM evenement, evenement_theme  WHERE  id_evenement= '$id_evenement' AND theme = id_theme_evenement";
   $resultat = ExecRequete ($requete, $connexion);
   while ($evenement = ObjetSuivant(&$resultat))
   {
   $titre = $evenement->titre;
   $sous_titre = $evenement->sous_titre;
$id_evenement = $evenement->id_evenement;
$sous_titre = sgml($sous_titre);
 $titre = sgml($titre);
   $keys_ev = $evenement->keys_ev;
   $meta_ev=$evenement->meta_ev;
   }
 ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- Update your html tag to include the itemscope and itemtype attributes -->
<html itemscope itemtype="http://schema.org/Event">
 
<!-- Add the following three tags inside head -->
<head>
	<title><?php echo $titre; ?> | Agenda monsite.com</title>
    <meta  content="<?php echo $titre; ?>">
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
	<meta name="keywords" content="<?php echo $keys_ev; ?> ">
	<meta name="description"  content="<?php echo $sous_titre; ?>">
	<meta name="ROBOTS" content="<?php 
if ($meta_ev == 'non') {
echo 'noindex,nofollow';
} else {
echo 'index,follow';
}
?>">
<meta http-equiv="Content-Language" content="fr" >
 
<style type="text/css" media="print">
<!--
/* It is common to set printer friendly styles such as a white background with black text. */
body {
  background-color: #FFF;
  background-image: none;
  border-color: #000; /* Sets the border color properties for an element using shorthand notation */
  color: #000;
}
 
-->
</style>
 
</head>
 
<body>
<?php  
$now = date('Ymd'); // 20120104
 $date_actuelle = date('Y') ."".date('m')."".date('d') ;
?>
 
<? include('../include/menu12.php')?>
 
<div id="cadre">
 <div class="main">
    <div style="padding: 4px 4px 0 15px;height: 28px; background-color:#903; background-color:#903;" class="droite1"><img  src=" " width="30" height="22"><h2 style="color:#FFF; line-height:22px; vertical-align: top;display: inline;">FIL D'ACTUALITES </h2>
 
</div>
    <div style="border-right: solid 3px #FFF; padding: 4px 4px 0 15px;height: 28px; background-color:#903;" class="content"><img  src=" " width="30" height="22">
      <h2  style="color: #FFF; line-height:22px; vertical-align: top;display: inline;"> </h2>
 
</div>
  </div>
  <div style=" background-color: #F7F7F7;" class="main">
 
    <div class="droite1">
    <span style="margin:O;padding:0;"></span>
 
 
<? include('../include/maxiNEW12.php')?>
 
 
 
<div  style="padding: 10px 10px 10px 10px; background-color: #FFF; margin: 10px 10px 10px 15px;"  class="arrondi">
<h4 style="padding: 0 5px 0 0;text-align:right;"> </h4>
<hr style="margin: 2px 10px 10px 0;border:0;color: #903;
background-color: #903;
height: 1px;" >
 
 
<?php  
    $select = "SELECT count(*) FROM evenement where publication = 'oui' AND date_fin > '$date_actuelle' AND region='online'";
    $result = mysql_query($select);
    $requete = "SELECT distinct region FROM evenement WHERE publication = 'oui' AND date_fin > '$date_actuelle' AND region='online'";
    $resultat = ExecRequete ($requete, $connexion);
    while ($nom_region = ObjetSuivant(&$resultat))
   {
   $region = $nom_region->region;
   $row = mysql_fetch_row($result);
   $total = $row[0];
   if ($total > 0) {
   echo "<span style='font-size: smaller;'><img style='vertical-align:middle;margin: 0 5px 3px 2px;width:14px;height:14px;border: 1px solid gray;' src='#' ><a href='http://www.monsite.com/agenda/webinars-conferences-web.php'><b>webinars, s&eacute;minaires en ligne</b></a><font color='5B0100'><b> &nbsp;[$total]</b></font></span>\n";
   echo "<br>";
   }
   }
 
    $select = "SELECT count(*) FROM evenement where region = region AND publication = 'oui' AND date_fin > '$date_actuelle' GROUP BY region";
    $result = mysql_query($select);
    $requete = "SELECT distinct region FROM evenement WHERE publication = 'oui'  AND date_fin > '$date_actuelle' order by region";
    $resultat = ExecRequete ($requete, $connexion);
    while ($nom_region = ObjetSuivant(&$resultat))
   {
   $region = $nom_region->region;
   $row = mysql_fetch_row($result);
   $total = $row[0];
   if ($region != 'Online') {
   echo "<ul style='list-style-type:square;diplay:inline;font-size: smaller;' >
   <li style='margin:0 10px 5px -20px;float:left;'>$region <font color='5B0100'>[$total]</font></li></ul><br>\n";
   }
   }
 
?>  
<br><br>
 
 
</div>
 
 
<div  style="padding: 10px 10px 10px 10px; background-color: #FFF; margin: 10px 10px 10px 15px;"  class="arrondi">
<h4 style="padding: 0 5px 0 0;text-align:right;">AGENDA PAR THEME</h4>
 
<hr style="margin: 2px 10px 10px 0;border:0;color: #903;background-color: #903;height: 1px;">
 
<?php  
 
    $select = "SELECT count(*) FROM evenement_theme, evenement where theme = id_theme_evenement AND publication = 'oui' AND date_fin >= '$date_actuelle' GROUP BY nomFR_theme";
    $result = mysql_query($select);
    $requete = "SELECT nomFR_theme, id_theme_evenement  FROM evenement_theme, evenement where theme = id_theme_evenement AND publication = 'oui' AND date_fin >= '$date_actuelle' GROUP BY nomFR_theme";
    $resultat = ExecRequete ($requete, $connexion);
    while ($themeSe = ObjetSuivant(&$resultat))
   {
   $nomFR_theme = $themeSe->nomFR_theme;
   $id_theme_evenement = $themeSe->id_theme_evenement;
   $row = mysql_fetch_row($result);
    $total = $row[0];
    echo "<ul style='list-style-type:square;diplay:inline;font-size: smaller;' >";
	echo"<li style='margin:0 10px 5px -20px;float:left;'>";
  echo"$nomFR_theme  <font color='5B0100'>[$total]</font></li></ul><br>\n";
    }
    ?>  
    <br><br>
    <div style="margin:0;">&nbsp;&nbsp;&nbsp;</div>
 
</div>
 
</div>
    <div style="padding: 10px 5px 10px 0 !important; background-color: #F7F7F7;" class="content">
    <div style="margin: 5px 0 10px 10px;">
    <!-- Debut code HTML PG-Bannieres PRO, zone 6, Standard -->
<script language="JavaScript" type="text/javascript" src="http://www.monsite.com/cgi-bin/pg-bannierespro.cgi?type=js&amp;zone=6"></script>
<noscript><a href="http://www.monsite.com/cgi-bin/pg-bannierespro.cgi?type=clic&amp;zone=6" target="_blank"><img src="http://www.monsite.com/cgi-bin/pg-bannierespro.cgi?type=img&amp;zone=6" alt="pub" border="0"></a></noscript>
<!-- Fin code HTML PG-Bannieres PRO, zone 6, Standard --><br>
    </div>
 
<div  itemscope itemtype="http://data-vocabulary.org/Organization" style="overflow: hidden;background-repeat: repeat-y;
 margin:0;padding: 5px 0 15px 5px;background-color: #FFF;" >
<!--j'ai 580px l'image fait 150px donc à -440 (en position relative avec 10 de marge)  DE LA DROITE reste à droite: 430 (420 avec 10 de marge)  -->
	<?php  
   $requete = "SELECT *  FROM evenement, evenement_theme  WHERE  id_evenement= '$id_evenement' AND theme = id_theme_evenement";
   $resultat = ExecRequete ($requete, $connexion);
   while ($evenement = ObjetSuivant(&$resultat))
   {
     $titre = $evenement->titre;
   $sous_titre = $evenement->sous_titre;
//$id_evenement = $evenement->id_evenement;
$sous_titre = sgml($sous_titre);
 $titre = sgml($titre);
 
       $titre = mb_strtoupper($titre);
 
 
   $descriptif = $evenement->descriptif;
   $descriptif = nl2br($descriptif);
   $descriptif = sgml($descriptif);
	 $form_agenda = $evenement->form_agenda;
   $pub_form_ag = $evenement->pub_form_ag;
   $adr_ev = $evenement->adr_ev;
   $adr_ev = nl2br($adr_ev);
   $adr_ev = sgml($adr_ev);
   $gratuit = $evenement->gratuit;
    if($gratuit == 'oui') {
   $gratuit = '<br>&#x2022; Inscription gratuite';
   }
   else{
   $gratuit = '<br>';
   }
 
   $nomFR_theme = $evenement->nomFR_theme;
   $type_ev = $evenement->type_ev;
 
   $www = $evenement->www;
   if(strlen($www) > 45) {
   $www2 = substr($evenement->www, 0,42);
   $www2 = $www2."...";
   } else {
   $www2 = $www;
   }
 
    $ville_ev = $evenement->ville_ev;
   $region = $evenement->region;
 
   if($region == 'Online') {
   $contenu_lieu = "[webinar - conf&eacute;rence web]";
   } else {
   $contenu_lieu = $ville_ev." - ".$region;
   }
 
 
   $nom_pdf = $evenement->nom_pdf;
   $email_ev = $evenement->email_ev;
   $organisateur = $evenement->organisateur;
 
   $modalite = $evenement->modalite;
   $modalite = sgml($modalite);
   $modalite = nl2br($modalite);
   $date_debut = $evenement->date_debut;
   $date_fin = $evenement->date_fin;
   $datedebut = DateTime::createFromFormat('Ymd', $date_debut)->format('Y-m-d');
$datefin = DateTime::createFromFormat('Ymd', $date_fin)->format('Y-m-d');
$fmt = MessageFormatter::create('fr', 'Du {0,date,full} au {1,date,full}')->format(
    array(
        strtotime($datedebut), 
        strtotime($datefin)
    )
);
 
 
$fmt1 = MessageFormatter::create('fr', '{0,date,full}')->format(
    array(
        strtotime($datedebut)));
 
$fmt2 = MessageFormatter::create('fr', '{0,date,short}')->format(
    array(
        strtotime($datedebut)));	
$fmt3 = MessageFormatter::create('fr', '{0,date,short}')->format(
    array(
        strtotime($datefin)));	
 
   $ville_ev = $evenement->ville_ev;
    if($region == 'Online') {
   $contenu_lieu = "[webinar - conf&eacute;rence web]";
   } else {
   $contenu_lieu = $ville_ev." - ".$region;
   }
 
 
 
 
echo "<div><H1 style='margin:10px 0 5px 10px;' itemprop='summary'>$titre</H1>
<hr style='width: 95%;margin: 5px 5px 10px 0;border:0;color: #903;
background-color: #903;
height: 2px;' >
</div>";
   }
 
echo "<div style='background-color: #FFF;";
echo "  border-left: solid 1px #FFFFFF; /* Sets the left border properties for an element using shorthand notation */
  float: right;
  padding: 5px; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */
  width: 375px;'><H2  itemprop='description' class='soustitre'><strong>$sous_titre</strong></H2>";
 
  echo " <p>";
   if ($datedebut == $datefin) {
   echo iconv("UTF-8", "ISO-8859-1", $fmt1);}
else {
  echo iconv("UTF-8", "ISO-8859-1", $fmt);}
 
  echo "</p>";
 
  echo" <p><span itemprop='locality' class='lieu' style='line-height:1.6em;'><strong>$contenu_lieu</strong></span> </p>";
 
 echo" <H3 style='color:#000; font-weight:normal;'>$descriptif</H3>";
 
 
   if($www != '') {
   echo "<br><br><br><img style='width:22px; height:14px; vertical-align:top;' src='#'><a href='$www' rel='nofollow' target='_blank'>site de l'&eacute;v&eacute;nement</a> ";
 
echo "   <br><br>";
     $filenamePdf = "#";
if (file_exists($filenamePdf)) {
 echo "<img src='.#' width='22' height='14'>";
 echo "<a href='#' target='_blank' 
 >$nom_pdf [.pdf]</a>";
}
 echo "</div>";
 
echo "<div style='background-color: #FFF;";
 
echo "margin: 0 420px 0 10px; /* Sets the margin properties for an element using shorthand notation (top, right, bottom, left) */
  padding: 5px; '>";
 
      $filename = "../bibliotheque_publication/evenement/logo/$id_evenement.jpg";
if (file_exists($filename)) {
 echo "<img itemprop='photo' alt='$titre' width='150' src='#'>";
} else {
 echo "<br>";
} 
 
echo "<div style='text-align:center;background-color:#eee;width: 50px;margin: 30px 0 0 0;border: solid 1px #gray;font-size:8px; color: gray; margin:15px 0 0 10px;'> <!-- ici la date en microdonnées-->";
echo "<span style='color: #903;'>agenda</span>";
echo"<br>";
echo " <time itemprop='startDate' datetime='$datedebut'>";
echo " $fmt2 </time>";
  echo "<time itemprop='endDate' datetime='$datefin'>";
if ($datedebut != $datefin) {
   echo " $fmt3)";
  }
else {
  echo "";
  }
 echo " </time>";
 
echo "</div>";
 
}
echo "</div>";
 echo "<div style='clear:right;'></div>";
 
 
 echo " <div style='background-color: #FFF;";
  echo "border-left: solid 1px #FFF; /* Sets the left border properties for an element using shorthand notation */
  float: right;
  padding: 5px; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */
  width: 375px;'>";
 if ($form_agenda != '' and  $pub_form_ag == 'oui') {
 
   echo "$form_agenda";
   }
	 else {
 echo "";
}  
 
echo "</div>";
 
echo "<div style='background-color: #FFF;
  margin: 0 420px 0 10px; /* Sets the margin properties for an element using shorthand notation (top, right, bottom, left) */
  padding: 5px; '>";
 
   if ($form_agenda != '' and  $pub_form_ag == 'oui') {
 
   echo "<hr style='margin: 0;border:0;color: #903;
background-color: #903;
height: 1px;' >
   Formulaire inscription";
   }
	 else {
 echo "";
} 
 
echo " </div>";
 echo " <div style='clear:right;'></div>";
 
 
 echo "<div style='background-color: #FFF;";
 echo " border-left: solid 1px #FFFFFF; /* Sets the left border properties for an element using shorthand notation */
  float: right;
  padding: 5px; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */
  width: 375px;'>";
  if ($adr_ev != '') {
echo "$adr_ev";
echo" </div>";
  }
echo "<div style='background-color: #FFF;";
echo "  margin: 0 420px 0 10px; /* Sets the margin properties for an element using shorthand notation (top, right, bottom, left) */
  padding: 5px; '>";
if ($adr_ev != '') {
echo "<hr style='margin: 0;border:0;color: #903;
background-color: #903;
height: 1px;' >
Adresse
 
";
echo "</div>";
}
 
 echo " <div style='clear:right;'></div>";
echo " <div style='background-color: #FFF;
  border-left: solid 1px #FFFF; /* Sets the left border properties for an element using shorthand notation */
  float: right;
  padding: 5px; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */
  width: 375px;'>";
 
 if ($email_ev != '') {
 
	 echo " &#x2022; <a href='mailto:$email_ev'class=detail>contacter l'organisateur</a> <br>";
 
 }
 echo "</div>";
 
echo "<div style='background-color: #FFF;
  margin: 0 420px 0 10px; /* Sets the margin properties for an element using shorthand notation (top, right, bottom, left) */
  padding: 5px; '>";
 
  if ($email_ev != '') {
 
	 echo " <hr style='margin: 0;border:0;color: #903;
background-color: #903;
height: 1px;' >";
echo " Email";
 
}
	 echo "</div>";
  echo "<div style='clear:right;'></div>";
 
 echo " <div style='background-color: #FFF;";
echo "  border-left: solid 1px #FFFFFF; /* Sets the left border properties for an element using shorthand notation */
  float: right;
  padding: 5px; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */
  width: 375px;'>";
  echo "&#x2022; $organisateur </div>";
 
echo "<div style='background-color: #FFF;
  margin: 0 420px 0 10px; /* Sets the margin properties for an element using shorthand notation (top, right, bottom, left) */
 padding: 5px; '> ";
  echo "  <hr style='margin: 0;border:0;color: #903;
background-color: #903;
height: 1px;' >";
    echo "  Organisateur</div>";
 
 echo " <div style='clear:right;'></div>";
 echo " <div style=' background-color: #FFF;";
 echo " border-left: solid 1px #FFFFFF; /* Sets the left border properties for an element using shorthand notation */
  float: right;
  padding: 5px; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */
  width: 375px;'>&#x2022; $type_ev $gratuit $modalite</div>";
echo "<div style='background-color: #FFF;";
echo "  margin: 0 420px 0 10px; /* Sets the margin properties for an element using shorthand notation (top, right, bottom, left) */
  padding: 5px; '><hr style='margin: 0;border:0;color: #903;
background-color: #903;
height: 1px;' >
  Conditions d'acc&egrave;s
  </div>";
 echo " <div style='clear:right;'></div>";
  echo "  <div style=' background-color: #FFF;";
 echo " border-left: solid 1px #FFFFFF; /* Sets the left border properties for an element using shorthand notation */
  float: right;
  padding: 5px; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */
  width: 375px;'> $nomFR_theme</div>";
echo "<div style='background-color: #FFF;";
echo "margin: 0 420px 0 10px; /* Sets the margin properties for an element using shorthand notation (top, right, bottom, left) */
  padding: 5px;'>";
echo "  <hr style='margin: 0;border:0;color: #903;background-color: #903;height: 1px;' >";
 echo "Th&egrave;mes</div>";
 echo " <div style='clear:right;'></div>";
 
 
 
 echo " <div style='clear:right;'></div>";
 
   echo "    <div style='background-color: #FFF;";
echo "border-left: solid 1px #FFFFFF; /* Sets the left border properties for an element using shorthand notation */
  float: right;
  padding: 5px; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */
  width: 375px;'>  </div>";
echo "<div style='background-color: #FFF;";
 echo" margin: 0 420px 0 10px; /* Sets the margin properties for an element using shorthand notation (top, right, bottom, left) */
  padding: 5px; '><hr style='margin: 0;border:0;color: #903;
background-color: #903;
height: 1px;' ><br>
<span style='color: #gray; font-size: smaller;'>  &copy; 2012 monsite </span><br><br>
</div>";
 echo " <div style='clear:right;'></div>";
 
  ?>
 
    <div style=" background-color: #FFF;
  border-left: solid 1px #FFF; /* Sets the left border properties for an element using shorthand notation */
  float: right;
  padding: 5px; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */
  width: 380px;"><div class="arrondi" style="position:relative;float:right; width: 40%;border: solid 1px gray;background-color:#ECEFFF; padding:2px;">
   <a rel="nofollow"  style="padding:5px;text-align:center;text-decoration:none;font-weight:normal; " href="http://www.monsite.com/publication/espace_publication.php">&nbsp;&nbsp;&nbsp;annoncer un salon</a></div></div>
<div style="background-color: #FFF;
  margin: 0 420px 0 10px; /* Sets the margin properties for an element using shorthand notation (top, right, bottom, left) */
  padding: 5px; "></div>
 
<div style="clear:right;margin: 5px 0 5px 0;">  </div>
 
</div>
 
 
</div>
  </div>
</div>
<? include('../include/foot12.php')?>
 
</body>
</html>
event est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/01/2012, 20h23   #6
Membre émérite
 
Avatar de vorace
 
Homme
Développeur
Inscription : août 2010
Messages : 587
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : France, Meurthe et Moselle (Lorraine)

Informations professionnelles :
Activité : Développeur

Informations forums :
Inscription : août 2010
Messages : 587
Points : 861
Points : 861
essaies d'abord avec ça :
Code :
while($evenement = mysql_fetch_object($resultat)){...}
__________________
Développeur informatique contrarié...
vorace est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/01/2012, 20h35   #7
Invité de passage
 
Inscription : septembre 2007
Messages : 30
Détails du profil
Informations personnelles :
Localisation : France, Paris (Île de France)

Informations forums :
Inscription : septembre 2007
Messages : 30
Points : 2
Points : 2
j'ai remplacé la formule dans toute la page + include, tout s'affiche , mais le pb persiste ...

cdmt
event est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/01/2012, 21h35   #8
Membre éclairé
 
Inscription : juin 2007
Messages : 337
Détails du profil
Informations forums :
Inscription : juin 2007
Messages : 337
Points : 393
Points : 393
sinon, c'est quoi cette fonction ObjetSuivant ?
je ne l'ai pas trouvé et suis curieux d'un

Code :
  while ($evenement = ObjetSuivant(&$resultat))
avec référence arrière, dont je ne me suis jamais servis mais qui certainement doit avoir ses raisons d'être
__________________
Conception / Dev
ascito est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/01/2012, 23h53   #9
Membre émérite
 
Avatar de vorace
 
Homme
Développeur
Inscription : août 2010
Messages : 587
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : France, Meurthe et Moselle (Lorraine)

Informations professionnelles :
Activité : Développeur

Informations forums :
Inscription : août 2010
Messages : 587
Points : 861
Points : 861
Citation:
Envoyé par ascito Voir le message
sinon, c'est quoi cette fonction ObjetSuivant ?
je ne l'ai pas trouvé et suis curieux d'un

Code :
  while ($evenement = ObjetSuivant(&$resultat))
avec référence arrière, dont je ne me suis jamais servis mais qui certainement doit avoir ses raisons d'être
Note: Il n'y a pas de signe de référence dans l'appel de la fonction, uniquement sur sa définition. La définition de la fonction est suffisante pour passer correctement des arguments par référence. Dans les versions récentes de PHP, vous devriez recevoir une alerte disant que "Call-time pass-by-reference" est obsolète lorsque vous utilisez un & dans foo(&$a);.
tout à fait c'est pas à cet endroit que je voulais mettre la référence, c'était plutôt dans la définition de la fonction et l'idée est la suivante :
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function afficheLigne($tableau){
	$row = current($tableau);
	next($tableau);
	return $row;
}
function afficheLigneBis(&$tableau){
	$row = current($tableau);
	next($tableau);
	return $row;
}
$resultat = array("aa","bb","cc","dd","ee","ff","gg","hh","ii");
echo "sans reference<br/>";
for($i = 0; $i < sizeof($resultat); $i++){
	echo afficheLigne($resultat)."<br/>";
}
echo "avec reference<br/>";
for($i = 0; $i < sizeof($resultat); $i++){
	echo afficheLigneBis($resultat)."<br/>";
}
pour la fonction objetSuivant regarde bien le post tu verras que c'est event qui l'a défini comme tel :
Code :
1
2
3
4
5
 // Recherche de l'objet suivant
 function ObjetSuivant ($resultat)
 {
   return  mysql_fetch_object ($resultat);
 }
d’où ma suggestion.
__________________
Développeur informatique contrarié...
vorace est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 28/01/2012, 00h19   #10
Membre éclairé
 
Inscription : juin 2007
Messages : 337
Détails du profil
Informations forums :
Inscription : juin 2007
Messages : 337
Points : 393
Points : 393
Code :
1
2
3
4
5
 // Recherche de l'objet suivant
 function ObjetSuivant ($resultat)
 {
   return  mysql_fetch_object ($resultat);
 }

tout à fait d'accord avec toi, enlever la réf, c'est bien, cela dit, une référence peu passer dans une fonction a priori, si la variable est déjà représentative de sa class ( elle même) , mais la, je peu encore me tromper...

pour le fait que la fonction Suivant ne fasse que retourner un tableau de valeur a 1 dimension, cela m'intrigue en fait...
__________________
Conception / Dev
ascito est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 28/01/2012, 00h28   #11
Membre émérite
 
Avatar de vorace
 
Homme
Développeur
Inscription : août 2010
Messages : 587
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : France, Meurthe et Moselle (Lorraine)

Informations professionnelles :
Activité : Développeur

Informations forums :
Inscription : août 2010
Messages : 587
Points : 861
Points : 861
Citation:
pour le fait que la fonction Suivant ne fait que retourner un tableau de valeur a 1 dimension, cela m'intrigue en fait...
c'est une hypothèse que j'ai fait au départ, j'ai pas regardé le reste du code donc ça peut venir d'ailleurs...mais pour le passage par référence : la ressource renvoyé par mysql à un curseur interne comme les array et le fait de la parcourir dans l'environnement d'une fonction déplace le curseur d'une copie de la ressource mais pas celui de la ressource...d'où l'affichage de la première ligne à chaque fois mais si ce que je dis est vrai il devrai boucler à l'infinie dans le while (du moins durant le max_execution_time) ?!
__________________
Développeur informatique contrarié...
vorace est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 28/01/2012, 00h54   #12
Membre éclairé
 
Inscription : juin 2007
Messages : 337
Détails du profil
Informations forums :
Inscription : juin 2007
Messages : 337
Points : 393
Points : 393
c codé en smarty ?
__________________
Conception / Dev
ascito est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 28/01/2012, 11h21   #13
Invité de passage
 
Inscription : septembre 2007
Messages : 30
Détails du profil
Informations personnelles :
Localisation : France, Paris (Île de France)

Informations forums :
Inscription : septembre 2007
Messages : 30
Points : 2
Points : 2
C'est pas du smarty juste du html + css

A priori c'est une erreur dans le code de la page principale, les champs sont renseignés que lorsque qu'il trouve des champs de l'include , lorsque j'enlève les deux modules de l'include, les champs de la page ne sont plus complétés sauf l'id de l'url. Bon, ça doit être une histoire de ou de mal placé
event est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 28/01/2012, 15h35   #14
Invité de passage
 
Inscription : septembre 2007
Messages : 30
Détails du profil
Informations personnelles :
Localisation : France, Paris (Île de France)

Informations forums :
Inscription : septembre 2007
Messages : 30
Points : 2
Points : 2
Bonjour,

Tout a été réécrit au propre, mais les requêtes ci-dessous n'affichent rien, même dans les balises meta, le programme ne trouve aucune valeur dans les champs

Vraiment je ne comprends pas vu que c'est le même code qui marche par ailleurs dans les includes de la même page


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
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
 
 
<?php  
require_once ("///Connect.php");
require_once ("///Connexion.php");
require_once ("///ExecRequete.php");
require_once("////fonction.php");
  $connexion = Connexion (NOM, PASSE, BASE, SERVEUR);
 
    $requete = "SELECT *  FROM evenement, evenement_theme  WHERE  id_evenement= '$id_evenement' AND theme = id_theme_evenement";
   $resultat = ExecRequete ($requete, $connexion);
   while ($agenda = ObjetSuivant($resultat))
   {
   $titre = $agenda->titre;
   $sous_titre = $agenda->sous_titre;
   $keys_ev = $agenda->keys_ev;
   $meta_ev=$agenda->meta_ev;
   }
 ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
<html itemscope itemtype="http://schema.org/Event">
 
<!-- Add the following three tags inside head -->
<head>
	<title><?php echo $titre; ?>  </title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
	<meta name="keywords" content="<?php echo $keys_ev; ?> C">
	<meta name="description" content="<?php echo $sous_titre; ?>">
	<meta name="ROBOTS" content="<?php 
if ($meta_ev == 'non') {
echo 'noindex,nofollow';
} else {
echo 'index,follow';
}
?>">
 
 
</head>
 
<body>
<?php  
$now = date('Ymd'); // 20120104
 $date_actuelle = date('Y') ."".date('m')."".date('d') ;
?>
 
<? include('../include/menu12.php')?>
 
<div id="cadre">
 <div class="main">
    <div style="padding: 4px 4px 0 15px;height: 28px; background-color:#903; background-color:#903;" class="droite1"><img  src= width="30" height="22"><h2 style="color:#FFF; line-height:22px; vertical-align: top;display: inline;">FIL D'ACTUALITES </h2>
 
</div>
    <div style="border-right: solid 3px #FFF; padding: 4px 4px 0 15px;height: 28px; background-color:#903;" class="content"><img   width="30" height="22">
      <h2  style="color: #FFF; line-height:22px; vertical-align: top;display: inline;"></h2>
 
</div>
  </div>
  <div style=" background-color: #F7F7F7;" class="main">
 
    <div class="droite1">
    <span style="margin:O;padding:0;"></span>
 
 
<? include('../include/maxiNEW12.php')?>
 
 
 
<div  style="padding: 10px 10px 10px 10px; background-color: #FFF; margin: 10px 10px 10px 15px;"  class="arrondi">
<h4 style="padding: 0 5px 0 0;text-align:right;"></h4>
<hr style="margin: 2px 10px 10px 0;border:0;color: #903;
background-color: #903;
height: 1px;" >
 
 
 
<br><br>
 
 
</div>
 
 
<div  style="padding: 10px 10px 10px 10px; background-color: #FFF; margin: 10px 10px 10px 15px;"  class="arrondi">
<h4 style="padding: 0 5px 0 0;text-align:right;">AGENDA PAR THEME</h4>
 
<hr style="margin: 2px 10px 10px 0;border:0;color: #903;background-color: #903;height: 1px;">
 
 
    <br><br>
    <div style="margin:0;">&nbsp;&nbsp;&nbsp;</div>
 
</div>
 
</div>
    <div style="padding: 10px 5px 10px 0 !important; background-color: #F7F7F7;" class="content">
    <div style="margin: 5px 0 10px 10px;">
    <!-- Debut code HTML PG-Bannieres PRO, zone 6, Standard -->
<script language="JavaScript" type="text/javascript" src="http://www.monsite.com/cgi-bin/pg-bannierespro.cgi?type=js&amp;zone=6"></script>
<noscript><a href="http://www.monsite.com/cgi-bin/pg-bannierespro.cgi?type=clic&amp;zone=6" target="_blank"><img src="http://www.monsite.com/cgi-bin/pg-bannierespro.cgi?type=img&amp;zone=6" border="0"></a></noscript>
<!-- Fin code HTML PG-Bannieres PRO, zone 6, Standard --><br>
    </div>
 
<div  itemscope itemtype="http://data-vocabulary.org/Organization" style="overflow: hidden;background-repeat: repeat-y;
 margin:0;padding: 5px 0 15px 5px;background-color: #FFF;" >
<!--j'ai 580px l'image fait 150px donc à -440 (en position relative avec 10 de marge)  DE LA DROITE reste à droite: 430 (420 avec 10 de marge)  -->
	<?php  
 
	$now = date('Ymd'); // 20120104
 
   $requete = "SELECT *  FROM evenement, evenement_theme  WHERE  id_evenement= '$id_evenement' AND theme = id_theme_evenement";
   $resultat = ExecRequete ($requete, $connexion);
   while ($evenement = mysql_fetch_object($resultat))
   {
//$id_evenement = $evenement->id_evenement;
 $titre = $evenement->titre;
 $sous_titre = $evenement->sous_titre;
 
$sous_titre = sgml($sous_titre);
$titre = sgml($titre);
 
       $titre = mb_strtoupper($titre);
 
 
   $descriptif = $evenement->descriptif;
   $descriptif = nl2br($descriptif);
   $descriptif = sgml($descriptif);
	 $form_agenda = $evenement->form_agenda;
   $pub_form_ag = $evenement->pub_form_ag;
   $adr_ev = $evenement->adr_ev;
   $adr_ev = nl2br($adr_ev);
   $adr_ev = sgml($adr_ev);
   $gratuit = $evenement->gratuit;
    if($gratuit == 'oui') { $gratuit = '<br>&#x2022; Inscription gratuite'; }
   else{ $gratuit = '<br>'; }
 
   $nomFR_theme = $evenement->nomFR_theme;
   $type_ev = $evenement->type_ev;
 
   $www = $evenement->www;
   if(strlen($www) > 45) {
   $www2 = substr($evenement->www, 0,42);
   $www2 = $www2."...";
   } else {
   $www2 = $www;
   }
 
    $ville_ev = $evenement->ville_ev;
   $region = $evenement->region;
 
   if($region == 'Online') {
   $contenu_lieu = "[webinar - conf&eacute;rence web]";
   } else {
   $contenu_lieu = $ville_ev." - ".$region;
   }
 
 
   $nom_pdf = $evenement->nom_pdf;
   $email_ev = $evenement->email_ev;
   $organisateur = $evenement->organisateur;
 
   $modalite = $evenement->modalite;
   $modalite = sgml($modalite);
   $modalite = nl2br($modalite);
   $date_debut = $evenement->date_debut;
   $date_fin = $evenement->date_fin;
   $datedebut = DateTime::createFromFormat('Ymd', $date_debut)->format('Y-m-d');
$datefin = DateTime::createFromFormat('Ymd', $date_fin)->format('Y-m-d');
$fmt = MessageFormatter::create('fr', 'Du {0,date,full} au {1,date,full}')->format(
    array( strtotime($datedebut),  strtotime($datefin) ));
 
 
$fmt1 = MessageFormatter::create('fr', '{0,date,full}')->format(
    array( strtotime($datedebut)));
 
$fmt2 = MessageFormatter::create('fr', '{0,date,short}')->format(
    array(  strtotime($datedebut)));	
$fmt3 = MessageFormatter::create('fr', '{0,date,short}')->format(
    array(  trtotime($datefin)));	
 
   $ville_ev = $evenement->ville_ev;
    if($region == 'Online') {
   $contenu_lieu = "[webinar - conf&eacute;rence web]";
   } else {
   $contenu_lieu = $ville_ev." - ".$region;
   }
 
   }
echo "<div>";
echo "<H1 style='margin:10px 0 5px 10px;' itemprop='summary'>$titre </H1>";
echo "<hr style='width: 95%;margin: 5px 5px 10px 0;border:0;color: #903;background-color: #903;height: 2px;' >";
echo "</div>";
 echo " <div style='background-color: #EBDFF3; border-left: solid 1px #FFFFFF; float: right; padding: 5px; width: 400px;'>";
echo " <H2  itemprop='description' ><strong>$sous_titre </strong></H2>";
    echo " <p>";
   if ($datedebut == $datefin) {
   echo iconv("UTF-8", "ISO-8859-1", $fmt1);}
else {
  echo iconv("UTF-8", "ISO-8859-1", $fmt);}
 
 
  echo "</p>";
 
  echo" <p><span itemprop='locality' class='lieu' style='line-height:1.6em;'><strong>$contenu_lieu </strong></span> </p>";
 
 echo " <H3 style='color:#000; font-weight:normal;'>$descriptif </H3>";
 
   if($www != '') {
   echo "<br><br><br><img style='width:22px; height:14px; vertical-align:top;' ><a href='$www' rel='nofollow' target='_blank'>site de l'&eacute;v&eacute;nement</a> ";
   }
echo " <br><br>";
if (file_exists($filenamePdf)) {
 echo "<img src='../img/agenda/detail/fleche.gif' width='22' height='14'>";
 echo "<a href='http://www.monsite.com/bibliotheque_publication/evenement/pdf/$id_evenement-monsite.pdf' target='_blank' 
 >$nom_pdf [.pdf]</a>";
     $filenamePdf = "../bibliotheque_publication/evenement/pdf/$id_evenement-monsite.pdf";
}
   else {
 echo "<br>";
} 
 echo "</div>";
echo "<div style='background-color: #FFF; margin: 0 440px 0 0; padding: 5px;'>";
 if (file_exists($filename)) {
 echo "<img itemprop='photo' alt='$titre' width='150' src='http://www.monsite.com/bibliotheque_publication/evenement/logo/$id_evenement.jpg'>";
 
      $filename = "../bibliotheque_publication/evenement/logo/$id_evenement.jpg";
  }
 else {
 echo "<br>";
} 
 
echo "<div style='text-align:center;background-color:#eee;width: 50px;margin: 30px 0 0 0;border: solid 1px #gray;font-size:8px; color: gray; margin:15px 0 0 10px;'> <!-- ici la date en microdonnées-->";
echo "<span style='color: #903;'>agenda</span>";
echo"<br>";
echo " <time itemprop='startDate' datetime='$datedebut'>";
echo " $fmt2 </time>";
  echo "<time itemprop='endDate' datetime='$datefin'>";
if ($datedebut != $datefin) {
   echo " $fmt3)";
  }
else {
  echo "";
  }
 echo " </time>";
 
echo "</div>";
 
echo "</div>";
 echo "<div style='clear:right;'></div>";
 
//echo "<div style='background-color: #FFF; border-left: solid 1px #FFFFFF;float: right; padding: 5px;width: 375px;'>";
 
 
// echo "</div>";
 
//echo "<div style='background-color: #FFF;margin: 0 420px 0 10px;padding: 5px; '>";
 
 
//echo "</div>";
 echo "<div style='clear:right;'></div>";
 
 
 echo " <div style='background-color: #FFF;border-left: solid 1px #FFF; float: right; padding: 5px; width: 375px;'>";
 if ($form_agenda != '' and  $pub_form_ag == 'oui') {
 
   echo "$form_agenda";
   }
	 else {
 echo "";
}  
 
echo "</div>";
 
echo "<div style='background-color: #FFF;  margin: 0 420px 0 10px;  padding: 5px; '>";
 
   if ($form_agenda != '' and  $pub_form_ag == 'oui') {
 
   echo "<hr style='margin: 0;border:0;color: #903;background-color: #903;height: 1px;'>Formulaire inscription";
   }
	 else {
 echo "";
} 
 
echo " </div>";
 echo " <div style='clear:right;'></div>";
 
 
 echo "<div style='background-color: #FFF; border-left: solid 1px #FFFFFF; float: right;  padding: 5px; width: 375px;'>";
  if ($adr_ev != '') {
echo "$adr_ev";}
echo" </div>";
 
echo "<div style='background-color: #FFF; margin: 0 420px 0 10px;  padding: 5px;'>";
if ($adr_ev != '') {
echo "<hr style='margin: 0;border:0;color: #903;background-color: #903;height: 1px;'>Adresse";}
 
echo "</div>";
 
 
 echo " <div style='clear:right;'></div>";
echo " <div style='background-color: #FFF;  border-left: solid 1px #FFFF; float: right; padding: 5px; width: 375px;'>";
 
 if ($email_ev != '') {
 
	 echo " &#x2022; <a href='mailto:$email_ev'class=detail>contacter l'organisateur</a> <br>";
 
 }
 echo "</div>";
 
echo "<div style='background-color: #FFF;margin: 0 420px 0 10px; padding: 5px; '>";
 
  if ($email_ev != '') {
 
 echo " <hr style='margin: 0;border:0;color: #903;background-color: #903;height: 1px;' >";
echo " Email";
 
}
echo "</div>";
  echo "<div style='clear:right;'></div>";
 
 echo " <div style='background-color: #FFF; border-left: solid 1px #FFFFFF;  float: right; padding: 5px; width: 375px;'>";
  echo "&#x2022; $organisateur </div>";
 
 echo "<div style='background-color: #FFF; margin: 0 420px 0 10px; padding: 5px; '> ";
 echo "  <hr style='margin: 0;border:0;color: #903;background-color: #903;height: 1px;' >";
 
 echo "Organisateur</div>";
 
 echo " <div style='clear:right;'></div>";
 echo " <div style=' background-color: #FFF;border-left: solid 1px #FFFFFF; float: right; padding: 5px;width: 375px;'>";
 echo "&#x2022; $type_ev $gratuit $modalite</div>";
echo "<div style='background-color: #FFF; margin: 0 420px 0 10px; padding: 5px; '>";
echo" <hr style='margin: 0;border:0;color: #903;background-color: #903;height: 1px;' >Conditions d'acc&egrave;s";
 echo " </div>";
 echo " <div style='clear:right;'></div>";
echo " <div style=' background-color: #FFF; border-left: solid 1px #FFFFFF; float: right; padding: 5px; width: 375px;'>";
echo " $nomFR_theme";
echo "</div>";
echo "<div style='background-color: #FFF;margin: 0 420px 0 10px; padding: 5px;'>";
echo "  <hr style='margin: 0;border:0;color: #903;background-color: #903;height: 1px;' >";
 echo "Th&egrave;mes</div>";
 echo " <div style='clear:right;'></div>";
 
 echo " <div style='clear:right;'></div>";
 
 echo " <div style='background-color: #FFF;border-left: solid 1px #FFFFFF; float: right; padding: 5px; width: 375px;'>  </div>";
echo "<div style='background-color: #FFF;margin: 0 420px 0 10px; padding: 5px; '>";
echo "<hr style='margin: 0;border:0;color: #903;background-color: #903;height: 1px;'>";
echo "<br><span style='color: #gray; font-size: smaller;'>  &copy; 2012 monsite </span><br><br></div>";
 echo " <div style='clear:right;'></div>";
 
  ?>
 
    <div style=" background-color: #FFF;
  border-left: solid 1px #FFF; /* Sets the left border properties for an element using shorthand notation */
  float: right;
  padding: 5px; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */
  width: 380px;"><div class="arrondi" style="position:relative;float:right; width: 40%;border: solid 1px gray;background-color:#ECEFFF; padding:2px;">
   <a rel="nofollow"  style="padding:5px;text-align:center;text-decoration:none;font-weight:normal; " href="http://www.monsite.com/publication/espace_publication.php">&nbsp;&nbsp;&nbsp;annoncer un salon</a></div></div>
<div style="background-color: #FFF;
  margin: 0 420px 0 10px; /* Sets the margin properties for an element using shorthand notation (top, right, bottom, left) */
  padding: 5px; "></div>
 
<div style="clear:right;margin: 5px 0 5px 0;">  </div>
 
</div>
 
 
</div>
  </div>
</div>
<? include('../include/foot12.php')?>
 
</body>
</html>
event est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 28/01/2012, 16h46   #15
Invité de passage
 
Inscription : septembre 2007
Messages : 30
Détails du profil
Informations personnelles :
Localisation : France, Paris (Île de France)

Informations forums :
Inscription : septembre 2007
Messages : 30
Points : 2
Points : 2
Re

Le pb est enfin résolu, en supprimant des mentions dans le fichier htaccess, hop, tout s'est bien affiché. Il semblerait qu'il y aurait à voir avec les magic-quote , ne me demandez pas ce que c'est
j'ai enlevé le passage suivant du fichier htaccess:

SetEnv REGISTER_GLOBALS 0
SetEnv ZEND_OPTIMIZER 1
SetEnv MAGIC_QUOTES 0

Bonne journée, et merci à tous
event 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 17h05.


 
 
 
 
Partenaires

Hébergement Web