event_end_date>=date("Y-m-d")) $PgTit=$row_events->event_title." - live results "; else $PgTit=$row_events->event_title." - results"; ?> <? echo $PgTit; ?> race_id],$racecolor2[$row_races->race_id])=explode(",",$row_races->race_colors); $TStartTime=str_replace(" ","T",$row_races->race_realstart); echo ""; } ?>
event_title; ?>
"; if ($row_races->race_dplus) echo "race_id\">
$row_races->race_title
race_id],"; padding: 5px;\">",$row_races->race_distance/10," km / $row_races->race_dplus D+
"; else echo "
race_id\">
$row_races->race_title
race_id],"; padding: 5px;\">",$row_races->race_distance/10," km
"; $c_all=$c_run=$c_fem=$c_men=$c_fin=$c_dnf=$c_dsq=$c_dns=$c_stp=$c_fot=0; $sql_r="SELECT status,final,final_time,sex FROM results_".$row_events->event_results_table." WHERE status<9 and race_id='".$row_races->race_id."'"; $result_r = mysql_query($sql_r); while($row_r = mysql_fetch_object($result_r)) { $c_all++; if ($row_r->sex=="F") $c_fem++; if ($row_r->sex=="M") $c_men++; if ($row_r->final<"9000") $c_fin++; if ($row_r->final>"9000" && $row_r->status==0) $c_run++; if ($row_r->final<"9000" && $row_r->final_time>$row_races->racetimelimit) $c_fot++; if ($row_r->status==1) $c_stp++; if ($row_r->status==2) $c_dnf++; if ($row_r->status==3) $c_dsq++; if ($row_r->status==4) $c_dns++; } $c_sta=$c_all-$c_dns; if ($row_races->race_realstart>date("Y-m-d H:i:s")) { $c_run=$c_sta=$c_fin=$c_dnf=$c_dsq=$c_dns=$c_stp=$c_fot="-"; } if ($teamrace) echo "
Teams: $c_all
Running: $c_run · Started: $c_sta · Finished: $c_fin · DNS: $c_dns · DNF: $c_dnf · DSQ: $c_dsq
"; else echo "
Runners: $c_all · Men: $c_men · Women: $c_fem
Running: $c_run · Started: $c_sta · Finished: $c_fin · DNS: $c_dns · DNF: $c_dnf · DSQ: $c_dsq
"; list($racetimelimit)=explode(":",$row_races->race_timelimit); if (date ("Y-m-d H:i:s",time()-3600*($racetimelimit+2))<$row_races->race_realstart) echo "
race_id class=t2w>-
"; else echo "
Race Finished
"; if (file_exists("../i/profiles/".$row_races->race_id."-b.png")) echo "
race_id,"-b.png\" width=300 height=40 border=0 style=\"opacity:0.4;filter:alpha(opacity=40);\">
"; else echo "
race_id\" width=300 height=40 border=0 style=\"opacity:0.4;filter:alpha(opacity=40);\">
"; echo "

Powered by Race-Tracking.com