"> "/> "/> "/> "/> "/> "/> "/> "/> "/> "/>
date_format($c_date, 'U')){ $future = true; } ?>

-

\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; if (mysqli_num_rows($q_i) > 0){ echo "\n"; echo "
\n"; } echo "

\n"; if ($future == false && strlen($r['after']) > 0){ echo $r['after']; } else{ echo $r['text']; } echo "


\n"; if ($future){ echo("
\n"); echo("\n"); echo("\n"); echo "\n"; if ($r['price'] == 0){ echo "\n"; } else{ echo "\n"; if ($r['max_people'] != 0){ echo "\n"; } /*if ($r['inscription'] == 1){ echo "\n"; } else{ echo "\n"; }*/ } echo "
$lng[activities_date]" . formatDate($r['date'], $lang, false) . "
$lng[activities_city]$r[city]
$lng[activities_price]$lng[activities_price_0]
$lng[activities_price]$r[price]€
$lng[activities_maxpeople]$r[max_people]
$lng[activities_inscription]$lng[yes]
$lng[activities_inscription]$lng[no]
\n"; echo("

\n"); $q_it = mysqli_query($con, "SELECT activity_itinerary.name_$lang AS name, description_$lang AS description, place.name_$lang AS place_name, place.address_$lang AS place_address, DATE_FORMAT(start, '%H:%i') AS start, DATE_FORMAT(end, '%H:%i') AS end, DATE_FORMAT(start, '%Y-%m-%d') AS isostart, DATE_FORMAT(end, '%Y-%m-%d') AS isoend FROM activity_itinerary, place WHERE place.id = activity_itinerary.place AND activity = $r[id] ORDER BY start;"); if (mysqli_num_rows($q_it) > 0){ echo "

Itinerario

\n"; echo "\n"; echo "\n"; while ($r_it = mysqli_fetch_array($q_it)){ echo "\n"; echo "\n"; if (strlen($r_it['end']) > 0){ echo ""; } else{ echo ""; } echo "\n"; } else{ echo "$r_it[place_name]($r_it[place_address])\n"; } echo "\n"; } echo "
$lng[activities_when]$lng[activities_what]
$r_it[start] - $r_it[end]$r_it[start]
$r_it[name]

$r_it[description]


\n"; if ($r_it['place_name'] == $r_it['place_address']){ echo "$r_it[place_name]
"; } } ?>

"; echo(" $row_year[year]"); echo "
\n"; echo "
\n"; $res_month = mysqli_query($con, "SELECT month(date) AS month FROM activity WHERE visible = 1 AND year(date) = $row_year[year] GROUP BY month(date) ORDER BY month DESC;"); while($row_month = mysqli_fetch_array($res_month)){ echo "
"; echo(" " . $lng['months'][$row_month['month'] - 1] . ""); echo "
\n"; echo "
    \n"; $res_title = mysqli_query($con, "SELECT id, permalink, title_$lang AS title FROM activity WHERE visible = 1 AND year(date) = $row_year[year] AND month(date) = '$row_month[month]' ORDER BY date DESC;"); while($row_title = mysqli_fetch_array($res_title)) echo "
  • $row_title[title]
  • \n"; echo "
\n"; } echo "
\n"; } ?>