$$transferround="y"$$ $$if (transferonlynewround EQUALS "y")$$ $$if (roundindex > minroundindex)$$ $$transferround="y"$$ $$else$$ $$transferround="n"$$ $$endif$$ $$endif$$ $$if (transferround EQUALS "y")$$ $$openfile round_%%roundindex%%.html$$ $$include menu.html$$ $$loop row as roundvariable index as variableindex select * from roundvariables where roundidx='%%roundindex%%'$$ $$%%lowercase("round_",roundvariable.variable)%%=roundvariable.value$$ $$endloop roundvariable$$ $$loop row as temprow index as tempindex select count(*) from playerinround where roundindex='%%roundindex%%'$$ $$playercount=temprow.0$$ $$endloop temprow$$ $$loop row as temprow index as tempindex select count(*) from killdata where roundindex='%%roundindex%%' and killtype='KILL'$$ $$kills=temprow.0$$ $$endloop temprow$$ $$loop row as temprow index as tempindex select count(*) from killdata where roundindex='%%roundindex%%' and killtype='SUICIDE'$$ $$suicides=temprow.0$$ $$endloop temprow$$ $$loop row as temprow index as tempindex select count(*) from killdata where roundindex='%%roundindex%%' and killtype='TEAMKILL'$$ $$teamkills=temprow.0$$ $$endloop temprow$$ $$loop row as temprow index as tempindex select count(*) from actiondata where roundindex='%%roundindex%%'$$ $$objectivecount=temprow.0$$ $$endloop temprow$$ $$teamlosscount="0"$$ $$teamwincount="0"$$ $$awolcount="0"$$ $$loop row as temprow index as tempindex select count(*),teamwinidx from view_teamwindata where roundindex='%%roundindex%%'$$ $$teamwincount=temprow.0$$ $$endloop$$ $$loop row as temprow index as tempindex select count(*),teamlossidx from view_teamlossdata where roundindex='%%roundindex%%'$$ $$teamlosscount=temprow.0$$ $$endloop$$ $$loop row as temprow index as tempindex select count(*) from view_playerinround where roundindex='%%roundindex%%' and playerindex not in (select playerindex from view_teamwindata where roundindex='%%roundindex%%') and playerindex not in (select playerindex from view_teamlossdata where roundindex='%%roundindex%%')$$ $$awolcount=temprow.0$$ $$endloop$$ $$if ((teamwincount EQUALS "0") AND (teamlosscount EQUALS "0"))$$ $$if (awolcount !EQUALS "0")$$ $$teamtype="awol"$$ $$teamtitle="Players"$$ $$endif$$ $$else$$ $$if (teamwincount !EQUALS "0")$$ $$teamtype="win"$$ $$teamtitle="VICTORS"$$ $$endif$$ $$if (teamlosscount !EQUALS "0")$$ $$teamtype="loss"$$ $$teamtitle="VANQUISHED"$$ $$endif$$ $$if (awolcount !EQUALS "0")$$ $$teamtype="awol"$$ $$teamtitle="Leaving The Battlefield Early Soldiers?"$$ $$endif$$ $$endif$$
Round $$roundindex$$ $$gametypename$$
$$mapname$$ $$if (mapimage !EQUALS "")$$

$$endif$$
$$if (gametypeimage !EQUALS "")$$$$endif$$ $$if (objectivecount !EQUALS "0")$$ $$loop row as objectives index as objectiveindex select count(*),* from view_actiondata where roundindex='%%roundindex%%' group by playerindex,actionidx$$ $$endloop objectives$$ $$endif$$
Version$$round_shortversion$$
Time Played$$formatduration("%M:%S",round.duration)$$
Players$$playercount$$
Kills$$kills$$
Team Kills$$teamkills$$
Suicides$$suicides$$
Friendly Fire$$Case(round_scr_friendlyfire,scr_friendlyfire,scr_friendlyfire,"0","Off","1","On","2","Reflective","3","Shared")$$
Kill Cam
Anti Lag
Punkbuster$$image=Case(round_sv_punkbuster,"0","red.gif","1","punkbuster.gif")$$$$if (image !EQUALS "")$$$$endif$$
$$if (objectives.actionimage !EQUALS "")$$
$$endif$$ $$objectives.actionname$$
$$colouredtext2html(objectives.playername)$$
$$include roundteam.html$$
$$include roundteam.html$$
$$include roundteam.html$$
$$include roundteam.html$$
$$include roundawards.html$$ $$closefile$$ $$endif$$