Skip to content
Permalink
Browse files

feat(even): allow no logged users to submit an event and webmasters t…

…o process it
  • Loading branch information...
agilare committed Jun 2, 2019
1 parent 7e356ec commit 5756bae4a45bfd64916fe6e3877726ad6fe6ce62
@@ -970,14 +970,14 @@
<!--
<ul class="radio">
<?php
foreach ($statuts_evenement as $s)
foreach ($statuts_evenement as $s => $v)
{
$coche = '';
if (strcmp($s,$champs['statut']) == 0)
{
$coche = 'checked="1"';
}
echo '<li class="listehoriz"><input type="radio" name="statut" value="'.$s.'" '.$coche.' id="genre_'.$s.'" title="statut de l\'événement" class="radio_horiz" /><label class="continu" for="genre_'.$s.'">'.$s.'</label></li>';
echo '<li class="listehoriz"><input type="radio" name="statut" value="'.$s.'" '.$coche.' id="genre_'.$s.'" title="statut de l\'événement" class="radio_horiz" /><label class="continu" for="genre_'.$s.'">'.$v.'</label></li>';
}
?>
</ul>
@@ -324,13 +324,13 @@
echo afficher_debut_fin($tab_even['horaire_debut'], $tab_even['horaire_fin'], $tab_even['dateEvenement']);
echo "</td>
<td>".$tab_icones_statut[$tab_even['statut']]."</td>";
<td style='text-align: center;'>".$tab_icones_statut[$tab_even['statut']]."</td>";
$datetime_dateajout = date_iso2app($tab_even['dateAjout']);
$tab_datetime_dateajout = explode(" ", $datetime_dateajout);
echo "<td>".$tab_datetime_dateajout[1]." ".$tab_datetime_dateajout[0]."</td>";
$nom_auteur = "<i>Ancien membre</i>";
$nom_auteur = "-";
if ($tab_auteur = $connector->fetchArray($connector->query("SELECT pseudo FROM personne WHERE idPersonne=".$tab_even['idPersonne'])))
{
@@ -152,7 +152,7 @@
$sql_even = "SELECT idEvenement, idLieu, idSalle, statut, genre, nomLieu, adresse, quartier, localite.localite AS localite,
titre, idPersonne, dateEvenement, URL1, flyer, image, description, horaire_complement, horaire_debut, horaire_fin, price_type, prix, prelocations
FROM evenement, localite
WHERE evenement.localite_id=localite.id AND ".$sql_genre." dateEvenement ".$sql_date_evenement." AND statut!='inactif' AND ".$sql_region."
WHERE evenement.localite_id=localite.id AND ".$sql_genre." dateEvenement ".$sql_date_evenement." AND statut NOT IN ('inactif', 'propose') AND ".$sql_region."
ORDER BY ".$sql_tri_agenda;
$req_nb = $connector->query($sql_even);
@@ -175,7 +175,7 @@
$sql_dateEven = "
SELECT DISTINCT dateEvenement
FROM evenement
WHERE ".$sql_genre." dateEvenement ".$sql_date_evenement." AND statut!='inactif' AND ".$sql_region."
WHERE ".$sql_genre." dateEvenement ".$sql_date_evenement." AND NOT IN ('inactif', 'propose') AND ".$sql_region."
ORDER BY dateEvenement ASC";
$req_dateEven = $connector->query($sql_dateEven);

0 comments on commit 5756bae

Please sign in to comment.
You can’t perform that action at this time.