<%pre> #include #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; string prev_chan; string next_chan;
<$ caption $>
 <$ currentTime $>
<$ title $>
 <$ duration $>
><%cpp>if (!prev_chan.empty()) { <& ajax_action_href action=("switch_channel") param=(prev_chan) image=("one_downarrow.png") tip=(tr("previous channel")) &><%cpp> } if (!next_chan.empty()) { <& ajax_action_href action=("switch_channel") param=(next_chan) image=("one_uparrow.png") tip=(tr("next channel")) &><%cpp> }
% if (elapsed >= 0) {
<& pageelems.progressbar progress=(elapsed) &>
% }