<%pre> #include #include #include "tools.h" using namespace std; using namespace vdrlive; <# ---------------------------------------------------------------------- #> <%def doc_type> <# ---------------------------------------------------------------------- #> <%def logo>
<# ---------------------------------------------------------------------- #> <%def progressbar> <%args> string progress;
<# ---------------------------------------------------------------------- #> <%def event_timer> <%args> tChannelID channelid; tEventID eventid; /> <# ---------------------------------------------------------------------- #> <%def ajax_js> <# ---------------------------------------------------------------------- #> <%def ajax_action_href> <%args> string action; string tip; string param; string image; string alt = ""; if (!tip.empty()) { <& tooltip.hint text=(tip) &> <%cpp> } ><$ alt $> <# ---------------------------------------------------------------------- #> <%def epg_tt_box> <%args> string boxId; string caption; string tools_comp; string time; string title; string short_descr; string long_descr; int elapsed = -1;
<$ (caption) $><& tooltip.close domId=(boxId) &>
<& (tools_comp) id=(boxId) &>
<$ (time) $>
% if (elapsed >= 0) {
<& pageelems.progressbar progress=(elapsed) &>
% }
<$ (title) $>
<$ (short_descr) $>
<{ reply.out() << StringEscapeAndBreak(long_descr); }>
<# ---------------------------------------------------------------------- #> <%def status_box> <%args> string type; string currentTime; string caption; string title; string duration; int elapsed;
<$ caption $>
 <$ currentTime $>
<$ title $>
 <$ duration $>
 
% if (elapsed >= 0) {
<& pageelems.progressbar progress=(elapsed) &>
% }