-- vim:set ft=lua: dofile(mg.script_name:gsub('[^\\/]*$','')..'util.lua') page=GetVarInt(mg.request_info.query_string,'page',0,100000) or 0 edcb.htmlEscape=15 r=edcb.GetReserveData(GetVarInt(mg.request_info.query_string,'id') or 0) ct={ title='予約情報', fixedTabs=true } if r then recording=edcb.GetRecFilePath(r.reserveID) ct.js='
\n' ct.reserve=r ct.searchlinks=true epgInfo, audio=ConvertEpgInfoText2(r.onid, r.tsid, r.sid, r.eid) ct.main='
\n' ..'
\n' ..'
\n' ..(#epgInfo>0 and epgInfo or '
\n

#### '..ConvertTitle(r.title) ..''..FormatTimeAndDuration(r.startTime, r.durationSecond)..'\n' ..''..r.stationName..'\n

\n
\n
') ..'
\n' ..'\n' ..'
\n' ..'
\n
プリセット
\n' ..'
\n' ..'\n' ..'\n' ..'\n' ..RecSettingTemplate(rs)..'
\n' ..'
\n' ..(recording and '
\n
\n' ..PlayerTemplate('preload="none"', audio) ..'
' ..'
\n
\n' or '') ..'
\n' ..'
\n' ..'
\n' ..'
\n' ..'\n' ..'
\n' ..'
\n' ..'
\n' ..'
\n
\n' if #epgInfo>0 or recording then ct.tab=(#epgInfo>0 and '番組詳細\n' or '') ..((#epgInfo>0 or recording) and '録画設定\n' or '') ..(recording and '再生\n' or '') end end ct=Template(ct) mg.write(ct:Pop(Response(200,'text/html','utf-8',ct.len,ct.gzip) ..'Cross-Origin-Embedder-Policy: require-corp\r\n' ..'Cross-Origin-Opener-Policy: same-origin\r\n' ..'\r\n'))