IMPORTANTE

Deve clicar num horário por cada pessoa. Se desejar marcar mais do que uma pessoa preencha o numero de horários que for necessário (1 para cada).

‘” . $now . “‘ and event_status='” . $OPEN . “‘ order by date”);

while($row = mysqli_fetch_array($result_event))
{
echo “

“;

echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

Data Local Info
” . $row[‘date’] . “ ” . $row[‘spot’] . “ ” . $row[‘comment’] . “

“;

echo “

“;

$midnight = strtotime(“0:00”);
$date_init = strtotime($row[‘date’]) + strtotime($row[‘init_event’]) – $midnight;
$date_end = strtotime($row[‘date’]) + strtotime($row[‘end_event’]) – $midnight;
$str_date_init = date(“Y-m-d H:i:s”, $date_init);
$str_date_end = date(“Y-m-d H:i:s”, $date_end);

$status_free = “FREE”;
$result_slot = mysqli_query($con,”SELECT * FROM slot where (slot_status=’FREE’ and time >= ‘” . $str_date_init . “‘ and time <= '" . $str_date_end . "') order by time, slot_order"); while($row = mysqli_fetch_array($result_slot)) { $count+=1; echo "

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
}
echo “

Data e Hora Slot Marcar
” . $row[‘time’] . “
” . $row[‘slot_order’] . “

“;
}

echo ““;
mysqli_close($con);
?>
User / E-mail:
Password: