$report_start"; if (!empty($areamatch)) $sql .= " AND" . sql_syntax_caseless_contains("a.area_name", $areamatch); if (!empty($roommatch)) $sql .= " AND" . sql_syntax_caseless_contains("r.room_name", $roommatch); if (!empty($namematch)) $sql .= " AND" . sql_syntax_caseless_contains("e.name", $namematch); if (!empty($descrmatch)) $sql .= " AND" . sql_syntax_caseless_contains("e.description", $descrmatch); if (!empty($loginmatch)) $sql .= " AND" . sql_syntax_caseless_contains("e.create_by", $loginmatch); #Trié par: Area, room, debut, date/heure. $sql .= " ORDER BY 9,10,2"; $res = sql_query($sql); if (! $res) fatal_error(0, sql_error()); $nmatch = sql_count($res); if ($nmatch == 0) { echo "
" . unhtmlentities($vocab["nothing_found"]) . "\r\n"; sql_free($res); } else { echo unhtmlentities($vocab["summarize_by"]); if ($sumby=="c") echo unhtmlentities($vocab["sum_by_creator"])." : $day $month $year;"; else echo unhtmlentities($vocab["sum_by_descrip"])." : $day $month $year;"; if ($areamatch != null or $roommatch != null or $namematch != null or $descrmatch != null) { echo unhtmlentities($vocab["enrecherchant"]); echo "$areamatch $roommatch $namematch $descrmatch - $From_day/$From_month/$From_year -> $To_day/$To_month/$To_year"; } echo "\r\n"; echo unhtmlentities($vocab["createdby"]).";".unhtmlentities($vocab["areas"]).";".unhtmlentities($vocab["room"]).";".unhtmlentities($vocab["description"]).";".unhtmlentities($vocab["time"])." - ".unhtmlentities($vocab["duration"]).";".unhtmlentities($vocab["match_entry"]).";".unhtmlentities($vocab["match_descr"]).";".unhtmlentities($vocab["lastupdate"]).";\n"; } for ($i = 0; ($row = sql_row($res, $i)); $i++) { #Affichage de "crée par" et de la date de la dernière mise à jour echo htmlspecialchars($row[6]) . ";"; #Area echo htmlspecialchars($row[8]) . ";"; #Ressource echo htmlspecialchars($row[9]) . ";"; #Description de la ressource echo htmlspecialchars($row[10]) . ";"; #Affichage de l'heure et de la durée de réservation echo describe_span($row[1], $row[2],$dformat) . ";"; #Destination echo htmlspecialchars($row[3]) . ";"; #Description de la réservation $texte=str_replace(CHR(10)," ",$row[4]); $texte=str_replace(CHR(13)," ",$texte); echo ltrim(rtrim(htmlspecialchars($texte))) . ";"; #Date derniere modif echo date_time_string($row[7],$dformat) . ";"; echo "\r\n"; } ?>