diff options
author | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2007-02-18 22:22:35 +0000 |
---|---|---|
committer | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2007-02-18 22:22:35 +0000 |
commit | 4c0d3398fc6444169ee47935b9ab814eb3929e72 (patch) | |
tree | eed61c51a9c32ee726553d893567419d67b3bfdd /pages/whats_on.ecpp | |
parent | 55076f14be853cb7cb1c801484267214e98c4a5e (diff) | |
download | vdr-plugin-live-4c0d3398fc6444169ee47935b9ab814eb3929e72.tar.gz vdr-plugin-live-4c0d3398fc6444169ee47935b9ab814eb3929e72.tar.bz2 |
- Added status box with current channel, program and elapsed time in the
logo area.
- Added support for progress bars to display elapsed content.
- Extendend ajax.js to be usable for non xml requests.
- adapted styles for the new features.
Diffstat (limited to 'pages/whats_on.ecpp')
-rw-r--r-- | pages/whats_on.ecpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pages/whats_on.ecpp b/pages/whats_on.ecpp index 78a6347..555b6ed 100644 --- a/pages/whats_on.ecpp +++ b/pages/whats_on.ecpp @@ -38,7 +38,7 @@ if (type == "now") { <& tooltip.javascript var=("domTT_styleClass") value=("domTTepg") &> <& pageelems.ajax_js &> </head> - <body> + <body onload="LiveStatusAjaxRequest('infobox.html', 'infobox')"> <& pageelems.logo &> <& menu active=(type) &> <div class="inhalt"> @@ -54,7 +54,7 @@ if (type == "now") { if (Schedule) { const cEvent *Event = (type == "now" ? Schedule->GetPresentEvent() : Schedule->GetFollowingEvent()); if (Event) { - std::string evntId("eventId_"); + string evntId("eventId_"); evntId += lexical_cast<std::string, int>(++evntNr); EpgEventPtr epgEvent(new EpgEvent(evntId, Event, Channel->Name())); epgEvents.push_back(epgEvent); @@ -81,10 +81,12 @@ if (type == "now") { <div class="short"><$ (epgEvent->ShortDescr()) $></div> <div class="description"><$ (StringWordTruncate(epgEvent->LongDescr(), 150, truncated)) $></div> <div class="more"<& tooltip.hint text=(StringEscapeAndBreak(StringWordTruncate(epgEvent->LongDescr(), 300, truncated)) + string("<br />") + string(tr("Click to view details."))) &><& tooltip.display domId=(epgEvent->Id()) &>><$ (string(tr("more")) + string(" ...")) $></div> +% if (epgEvent->Elapsed() >= 0) { + <div class="progress"><div><& pageelems.progressbar progress=(epgEvent->Elapsed()) &></div></div> +% } </div> </div> </div> - <{ } } @@ -99,7 +101,7 @@ if (type == "now") { for (vector<EpgEventPtr>::iterator i = epgEvents.begin(); i != epgEvents.end(); ++i) { EpgEventPtr epg = *i; }> - <& pageelems.epg_tt_box boxId=(epg->Id()) caption=(epg->Caption()) time=(epg->StartTime(tr("%I:%M %p")) + string(" - ") + epg->EndTime(tr("%I:%M %p"))) title=(epg->Title()) short_descr=(epg->ShortDescr()) long_descr=(epg->LongDescr()) &> + <& pageelems.epg_tt_box boxId=(epg->Id()) caption=(epg->Caption()) time=(epg->StartTime(tr("%I:%M %p")) + string(" - ") + epg->EndTime(tr("%I:%M %p"))) title=(epg->Title()) short_descr=(epg->ShortDescr()) long_descr=(epg->LongDescr()) elapsed=(epg->Elapsed()) &> <{ } }> |