-- vim:set ft=lua: dofile(mg.script_name:gsub('[^\\/]*$','')..'util.lua') onid=GetVarInt(mg.request_info.query_string,'onid') tsid=GetVarInt(mg.request_info.query_string,'tsid') sid=GetVarInt(mg.request_info.query_string,'sid') edcb.htmlEscape=15 ServiceList=CustomServiceList() st=ServiceList[1] if onid and tsid and sid then for j,v in ipairs(ServiceList) do if onid==v.onid and tsid==v.tsid and sid==v.sid then st=v break end end end now=os.time() a=edcb.EnumEventInfo({{onid=(onid or st.onid), tsid=(tsid or st.tsid), sid=(sid or st.sid)}}, {startTime=os.date('*t',now-6*3600), durationSecond=24*3600}) or {} table.sort(a, function(a,b) return os.time(a.startTime)\n' ..'' ct.main='
\n' ..'
\n' ..'
\n' ..'
\n
\n' ..player('\n', {multi=true, dual=true}, false, true) ..'
\n
\n' ..'
\n' ..'
\n

'..(x.shortInfo and ConvertTitle(x.shortInfo.event_name) or '')..'' ..''..(x.startTime and FormatTimeAndDuration(x.startTime, x.durationSecond)..(x.durationSecond and '' or '~未定') or '未定') ..'' for i,v in ipairs(edcb.GetServiceList() or {}) do if x.onid==v.onid and x.tsid==v.tsid and x.sid==v.sid then ct.main=ct.main..v.service_name break end end ct.main=ct.main..'

\n

'..(x.shortInfo and DecorateUri(x.shortInfo.text_char):gsub('\r?\n', '
\n') or '') ..'

\n
\n' ..'
\n\n
:' ..'
\n
\n\n' ..'
\n
\n
' ct=template(ct) mg.write(ct:Pop(Response(200,'text/html','utf-8',ct.len)..(ct.gzip and 'Content-Encoding: gzip\r\n' or '')..'\r\n'))