$$transferonlynewround=ReadTemplateConfig("TransferOnlyNewRounds","n")$$ $$openfile roundlist.html$$ $$include menu.html$$
Rounds

$$loop row as roundall index as roundallindex select count(*),sum(duration),* from view_rounds group by gametype order by count(*) desc$$ $$gametype=roundall.gametype$$ $$gametypename=roundall.gametyperealname$$ $$gametypeimage=roundall.gametypeimage$$ $$roundcount=roundall.0$$ $$duration=roundall.1$$
$$if (gametypeimage !EQUALS "")$$
$$endif$$$$gametypename$$

$$roundcount$$ rounds
Time Played $$formatduration("%H:%M:%S",duration)$$
$$loop row as roundgametype index as roundgametypeindex select count(*),sum(duration),* from view_rounds where gametype='%%gametype%%' group by mapname order by count(*) desc$$ $$map=roundgametype.mapname$$ $$mapname=roundgametype.maprealname$$ $$mapimage=roundgametype.mapimage$$ $$roundcount=roundgametype.0$$ $$duration=roundgametype.1$$
Map Round List
$$if (mapimage !EQUALS "")$$
$$endif$$$$mapname$$

$$roundcount$$ rounds
Time Played $$formatduration("%H:%M:%S",duration)$$
$$minroundindex=ReadConfig("/tmp/lastroundtransferred_%%roundgametype.mapid%%_%%roundall.gametypeid%%","-1")$$ $$loop row as round index as index select * from view_rounds where gametype='%%gametype%%' and mapname='%%map%%'$$$$roundindex=round.roundidx$$$$include round.html$$ [$$formatinteger("%05d",round.roundidx)$$] $$endloop round$$$$WriteConfig("/tmp/lastroundtransferred_%%roundgametype.mapid%%_%%roundall.gametypeid%%",roundindex)$$
$$endloop roundgametype$$

$$endloop roundall$$ $$closefile$$