event_start && $event->event_start != '0000-00-00 00:00:00') ? date('d/m/Y H:i', strtotime($event->event_start)) : ''; $end_date = ($event->event_end && $event->event_end != '0000-00-00 00:00:00') ? date('d/m/Y H:i', strtotime($event->event_end)) : ''; if(isset($GLOBALS["BO_CONF"]["AGENCE"]["SIEGE"]["EVENTS_BY_AGENCY"]) && $GLOBALS["BO_CONF"]["AGENCE"]["SIEGE"]["EVENTS_BY_AGENCY"]) { //header("location:agcList.php"); $qa = "SELECT id_agence, nom_agence, code_agence, initiales FROM ca_agences WHERE is_active=:is_active AND supp=:supp AND siege = 1"; $va = array(':is_active' => 1, ':supp' => 0); $result = excuteQuery($qa, $va); $ra = $result['stmt']; $listAgc = ""; while ($oa = $ra->fetchObject()) { if($oa->id_agence == $event->id_agence){ $listAgc .= ""; }else{ $listAgc .= ""; } } } ?>