-- vim:set ft=lua:
PAGE_COUNT=30
dofile(mg.script_name:gsub('[^\\/]*$','')..'util.lua')
ct=CreateContentBuilder(GZIP_THRESHOLD_BYTE)
ct:Append([=[
]=])
edcb.htmlEscape=15
a=edcb.GetRecFileInfoBasic()
table.sort(a, function(a,b) return os.time(a.startTime) > os.time(b.startTime) end)
pageIndex=GetVarInt(mg.request_info.query_string,'page',0,100000) or 0
for i=1,(#a+PAGE_COUNT-1)/PAGE_COUNT do
ct:Append((i-1==pageIndex and ((i-1)*PAGE_COUNT+1)..'~ ' or '
'..((i-1)*PAGE_COUNT+1)..'~ '))
end
ct:Append([=[