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éminaires en ligne</b></a><font color='5B0100'><b> [$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;"> </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&zone=6"></script>
<noscript><a href="http://www.monsite.com/cgi-bin/pg-bannierespro.cgi?type=clic&zone=6" target="_blank"><img src="http://www.monsite.com/cgi-bin/pg-bannierespro.cgi?type=img&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>• 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é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é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'évé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 " • <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 "• $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;'>• $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è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è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;'> © 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"> 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> |
Partager