Browse Source

fix W3C validator event

master
AmarOk 10 years ago
parent
commit
14d6f7729a
2 changed files with 10 additions and 3 deletions
  1. +7
    -0
      event.css
  2. +3
    -3
      event.php

+ 7
- 0
event.css View File

@ -43,4 +43,11 @@ h1 img
background-image: url("images/OSM.svg"); background-image: url("images/OSM.svg");
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center; background-position: center;
border: 0px;
overflow: hidden;
margin:0;
}
#image img {
width: 100%;
} }

+ 3
- 3
event.php View File

@ -30,7 +30,7 @@ $dtend = strtotime($event['event_dtend']);
<?php include('header.php'); ?> <?php include('header.php'); ?>
<div id="descEvent"> <div id="descEvent">
<h1><?php echo $event["event_title"]; ?> <h1><?php echo $event["event_title"]; ?>
<a href="<?php echo 'addEvent.php?id='.$_GET['id']; ?>"><img src="icons/ic_mode_edit_24px.svg"/></a></h1>
<a href="<?php echo 'addEvent.php?id='.$_GET['id']; ?>"><img src="icons/ic_mode_edit_24px.svg" alt="edit icon" /></a></h1>
<h2>Date et lieu</h2> <h2>Date et lieu</h2>
@ -44,7 +44,7 @@ $dtend = strtotime($event['event_dtend']);
$lng = $obj[0]["lon"]; $lng = $obj[0]["lon"];
$urlFrame = 'https://www.openstreetmap.org/export/embed.html?bbox='.$lng.','.$lat.','.$lng.','.$lat.'&layer=mapnik&floor&marker='.$lat.','.$lng; $urlFrame = 'https://www.openstreetmap.org/export/embed.html?bbox='.$lng.','.$lat.','.$lng.','.$lat.'&layer=mapnik&floor&marker='.$lat.','.$lng;
?> ?>
<iframe id="map" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="<?php echo $urlFrame; ?>"></iframe>
<iframe id="map" src="<?php echo $urlFrame; ?>"></iframe>
<?php <?php
if(!empty($event["event_urlImage"]) || !empty($event['event_description']) || !empty($event['event_site']) || !empty($event['event_contact'])) if(!empty($event["event_urlImage"]) || !empty($event['event_description']) || !empty($event['event_site']) || !empty($event['event_contact']))
{ {
@ -56,7 +56,7 @@ $dtend = strtotime($event['event_dtend']);
{ {
?> ?>
<div id="image"> <div id="image">
<img src="<?php echo $event["event_urlImage"];?>" width="100%">
<img src="<?php echo $event["event_urlImage"];?>" alt="image Evenement" />
</div> </div>
<?php <?php
} }


Loading…
Cancel
Save