<%pre> #include #include #include #include "exception.h" #include "livefeatures.h" #include "i18n.h" #include "setup.h" #include "timers.h" #include "tools.h" using namespace std; using namespace vdrlive; <%session scope="global"> int update_status(1); <# ---------------------------------------------------------------------- #> <%def doc_type> <# ---------------------------------------------------------------------- #> <%def stylesheets> "/> <# ---------------------------------------------------------------------- #> <%def logo>
<# ---------------------------------------------------------------------- #> <%def infobox>
<$ tr("retrieving status ...") $>
--:--
--:--
<& ajax_action_href action=("switch_channel") id=("infobox_prevchan") image=("one_downarrow.png") tip=(tr("previous channel")) &> <& ajax_action_href action=("switch_channel") id=("infobox_nextchan") image=("one_uparrow.png") tip=(tr("next channel")) &>
<& progressbar id=("infobox_elapsed") &>
<$ tr("No server response!") $> <$ tr("Failed to update infobox!") $>
<# ---------------------------------------------------------------------- #> <%def hide_element> <%args> bool hide = true; <%cpp> if (hide) { style="visibility: hidden"<%cpp> } <# ---------------------------------------------------------------------- #> <%def progressbar> <%args> string progress = "0"; string id;
if (!id.empty()) { id="<$ id $>"<%cpp> } style="width: <$ progress $>px">
<# ---------------------------------------------------------------------- #> <%def event_timer> <%args> tChannelID channelid; tEventID eventid; <%cpp> const cTimer* timer = LiveTimerManager().GetTimer(eventid, channelid); if (timer) { " alt="" <& tooltip.hint text=(tr("Edit this")) &> /> <%cpp> } else { " alt="" <& tooltip.hint text=(tr("Record this")) &> /> <%cpp> } <# ---------------------------------------------------------------------- #> <%def ajax_js> <%cpp>if (LiveSetup().GetShowInfoBox()) { <%cpp> } <# ---------------------------------------------------------------------- #> <%def ajax_action_href> <%args> string action; string tip; string param; string image; string alt; string id; <%cpp> { if (!id.empty()) { id="<$ id $>" <%cpp> } <& hide_element hide=(!id.empty()) &> href="javascript:LiveSimpleAjaxRequest('<$ action $>.xml', 'param', '<$ param $>');" <%cpp>if (!tip.empty()) { <& tooltip.hint text=(tip) &> <%cpp> } >" alt="<$ alt $>"> <%cpp> } <# ---------------------------------------------------------------------- #> <%def epg_tt_box> <%args> string boxId; string caption; string tools_comp; string time; string title; string short_descr; string long_descr; string archived; int elapsed = -1;
<$ (caption) $><& tooltip.close domId=(boxId) &>
<& (tools_comp) id=(boxId) archived=(archived) &>
<%cpp> if (!archived.empty()) { <$ (archived + " ") $><%cpp> } <$ (time) $>
% if (elapsed >= 0) {
<& pageelems.progressbar progress=(elapsed) &>
% }
<$ (title) $>
<$ (short_descr) $>
<%cpp> reply.out() << StringEscapeAndBreak(long_descr);
<%def about_tt_box>
<$ tr(LIVESUMMARY) $><& tooltip.close domId=("aboutBox") &>
<$ tr("Authors") $>
<$ tr("Project leader") $>:
Thomas Keil (Thomas)
<$ tr("Webserver") $>:
Sascha Volkenandt (LordJaxom)
<$ tr("Content") $>:
Dieter Hametner (tadi)
<$ tr("Content") $>:
Christian Wieninger (winni)
<$ tr("Graphics") $>:
Michael Brückner (skiller2k1)
<$ tr("Information") $>
<$ tr("LIVE version") $>:
<$ LIVEVERSION $>
<$ tr("VDR version") $>:
<$ VDRVERSION $>
<$ tr("Features") $>:
<{ Features< features::epgsearch >& epgsearch = LiveFeatures< features::epgsearch >(); }> "/> EPGsearch % if ( epgsearch.Recent() ) { (<$ tr("active") $>: <$ epgsearch.Version() $>) % } else { (<$ tr("required") $>: <$ epgsearch.MinVersion() $>) % } (<$ tr("Homepage") $>)
<$ tr("Bugs and suggestions") $>
<$ tr("If you encounter any bugs or would like to suggest new features, please use our bugtracker") $>:
http://www.vdr-developer.org/mantisbt