summaryrefslogtreecommitdiff
path: root/html/bloecke
diff options
context:
space:
mode:
Diffstat (limited to 'html/bloecke')
-rw-r--r--html/bloecke/event_links.tmpl28
-rw-r--r--html/bloecke/links.tmpl9
-rw-r--r--html/bloecke/percentbar.tmpl21
-rw-r--r--html/bloecke/stars.tmpl4
-rw-r--r--html/bloecke/tooltip.tmpl12
5 files changed, 74 insertions, 0 deletions
diff --git a/html/bloecke/event_links.tmpl b/html/bloecke/event_links.tmpl
new file mode 100644
index 0000000..b618f6b
--- /dev/null
+++ b/html/bloecke/event_links.tmpl
@@ -0,0 +1,28 @@
+<div id='icons'>
+ <?% IF with_display_button %?>
+<a href="?cmd=display&data=<?% epgId %?>" title='<?% gettext("Detailed program information") %?>'><img src="images/view_event.png" /></a><?% umbruch %?>
+ <?% END %?>
+<a href="?cmd=search&amp;data=<?% url( data.1 ) %?>"><img src="images/repeat.png" title="[<?% gettext("Rep") %?>]" /></a><?% umbruch %?>
+ <?% IF param.timers.${data.0}.Id && allow('tedit') %?>
+<a href="?cmd=tedit&amp;data=<?% param.timers.${data.0}.Id %?>"><img src="images/record_blue.png" title="[<?% gettext("Edit this timer") %?>]" /></a><?% umbruch %?>
+ <?% ELSIF allow('tnew') %?>
+<a href="?cmd=tnew&amp;data=<?% data.0 %?>"><img src="images/record.png" title="[<?% gettext("To record") %?>]" name='recordlink' id='<?% data.0 %?>' /></a><?% umbruch %?>
+ <?% END %?>
+<?% IF allow('switch') && switch %?>
+ <a href="?cmd=switch&amp;data=<?% url(data.4) %?>"><img src="images/switch.png" title="[<?% gettext("Swt") %?>]" /></a><?% umbruch %?>
+<?% END %?>
+<?% INCLUDE 'bloecke/stars.tmpl' eventid=data.0 %?>
+<?% IF data.-2;
+ vid = data.-2.split(' ');
+ video = (vid.3 == '16:9' ? '16_9Screen.png' : '4_3Screen.png');
+ videotext = (vid.3 == '16:9' ? '16:9' : '4:3') %?>
+ <img src="images/<?% video %?>" title="[<?% gettext("Videoformat: ") %?><?% videotext %?>]" /><?% umbruch %?>
+<?% END %?>
+<?% IF data.-1;
+ aud = data.-1.split("\n");
+ audio = (aud.size > 2 ? 'Dolby' : 'Stereo') %?>
+ <?% IF audio == 'Dolby' %?>
+ <img src="images/dolby.png" title="[<?% gettext("Audioformat: ") %?><?% audio %?>]" /><?% umbruch %?>
+ <?% END %?>
+<?% END %?>
+</div>
diff --git a/html/bloecke/links.tmpl b/html/bloecke/links.tmpl
new file mode 100644
index 0000000..67fdf8b
--- /dev/null
+++ b/html/bloecke/links.tmpl
@@ -0,0 +1,9 @@
+<?% BLOCK link %?>
+<div align="center" style='position:absolute'>
+ <img src="images/linkbg.png" width="<?% text.length * 5 %?>">
+ <div style='position:absolute; top:10px; left:10px;'>
+ <?% text %?>%
+ </div>
+ <?% END %?>
+</div>
+<?% END %?> \ No newline at end of file
diff --git a/html/bloecke/percentbar.tmpl b/html/bloecke/percentbar.tmpl
new file mode 100644
index 0000000..f8b17fe
--- /dev/null
+++ b/html/bloecke/percentbar.tmpl
@@ -0,0 +1,21 @@
+<?% barexp = barwidth / 100;
+ IF color_switch;
+ ground = "images/bar_green.png";
+ over = "images/bar_red.png";
+ ELSE;
+ ground = "images/bar_red.png";
+ over = "images/bar_green.png";
+ END;
+ %?>
+
+<div align="center" style='position:absolute'>
+ <img src="<?% ground %?>" width="<?% barwidth %?>" title='<?% percent | format "%02d" %?>%'>
+ <div style='position:absolute; top:0px; left:0px; clip:rect(0px, <?% percent * barexp | format "%d" %?>px, <?% percent * barexp | format "%d" %?>px, 0px)'>
+ <img src="<?% over %?>" width="<?% barwidth %?>" title='<?% percent | format "%02d" %?>%'>
+ </div>
+ <?% IF barwidth > 200 %?>
+ <div style='position:absolute; top:10px; left:<?% barwidth - 70 %?>px; color:#FFFFFF;font-weight:bold'>
+ <?% percent | format "%02d" %?>%
+ </div>
+ <?% END %?>
+</div>
diff --git a/html/bloecke/stars.tmpl b/html/bloecke/stars.tmpl
new file mode 100644
index 0000000..196da4e
--- /dev/null
+++ b/html/bloecke/stars.tmpl
@@ -0,0 +1,4 @@
+<?% level = getModule('SHARE').getEventLevel(eventid) %?>
+<?% IF level %?>
+<img class="stars" src="images/<?% level FILTER format('%d') %?>_stars.png" hspace=0 vspace=0 title="<?% level FILTER format('%d') %?> Stars"><?% umbruch %?>
+<?% END %?>
diff --git a/html/bloecke/tooltip.tmpl b/html/bloecke/tooltip.tmpl
new file mode 100644
index 0000000..44788fa
--- /dev/null
+++ b/html/bloecke/tooltip.tmpl
@@ -0,0 +1,12 @@
+ <?% IF cmd;
+ link="?cmd=${cmd}&amp;data=${linkid}";
+ END;
+ IF !ttp_offset;
+ ttp_offset = 0;
+ END;
+ IF !ttp_offset;ttp_offset = 0;END %?>
+ <a href="<?% IF link;link;ELSE;"#";END %?>"<?% IF eventid %?>
+ onmouseover="ttpreq(this, '<?% escape(title) %?>
+ <?% IF subtitle.length > 0 %?>~<?% escape(subtitle) %?>
+ <?% END %?>',<?% eventid %?>, <?% ttp_offset %?>);"
+ <?% END %?> >