<%attr> ajax => 1 <%shared> my $switch = 'detach=false'; my $vdrstatus = vdr_status; my $fbLite = "/images/reel_FB3_imagemap_LITE.png"; my $fbLiteOff = "/images/reel_FB3_LITE_Schleier.png"; my $fbAVG = "/images/reel_FB3_imagemap_AVG.png"; my $fbAVGOff = "/images/reel_FB3_AVG_Schleier.png"; <%args> $classic => undef % if(defined $classic) { <& SELF:display_remote, %ARGS &> % } else { % # <& SELF:display_adv_remote, %ARGS &> <& SELF:fb_control, js_function => 'remoteCmd', %ARGS &> % } <%method display_remote> <%args> $detach => undef $lite => undef $classic => undef <%perl> if ( defined $detach && $detach eq 'true' ) { $switch = 'detach=true'; } if ( defined $classic && $classic eq 'true' ) { $switch .= '&classic=true'; }
% if(defined $lite) { Power % } else { Power % } AVG
<& '/include/reelbox:remote_link', link => '?'.$switch.'&remote_cmd=1', name => '1' &> <& '/include/reelbox:remote_link', link => '?'.$switch.'&remote_cmd=2', name => '2' &> <& '/include/reelbox:remote_link', link => '?'.$switch.'&remote_cmd=3', name => '3' &>
<& '/include/reelbox:remote_link', link => '?'.$switch.'&remote_cmd=4', name => '4' &> <& '/include/reelbox:remote_link', link => '?'.$switch.'&remote_cmd=5', name => '5' &> <& '/include/reelbox:remote_link', link => '?'.$switch.'&remote_cmd=6', name => '6' &>
<& '/include/reelbox:remote_link', link => '?'.$switch.'&remote_cmd=7', name => '7' &> <& '/include/reelbox:remote_link', link => '?'.$switch.'&remote_cmd=8', name => '8' &> <& '/include/reelbox:remote_link', link => '?'.$switch.'&remote_cmd=9', name => '9' &>
<& '/include/reelbox:remote_link', link => '?'.$switch.'&remote_cmd=0', name => '0' &>
<& '/include/reelbox:remote_link', link => '?'.$switch.'&remote_cmd=Setup', name => 'Setup' &> <& '/include/reelbox:remote_link', link => '?'.$switch.'&remote_cmd=Menu', name => 'Menu' &> <& '/include/reelbox:remote_link', link => '?'.$switch.'&remote_cmd=Back', name => 'Exit' &>
<& '/include/reelbox:remote_link', link => '?'.$switch.'&remote_cmd=Up', name => 'Up' &>
<& '/include/reelbox:remote_link', link => '?'.$switch.'&remote_cmd=Left', name => 'Left' &> <& '/include/reelbox:remote_link', link => '?'.$switch.'&remote_cmd=Ok', name => 'Ok' &> <& '/include/reelbox:remote_link', link => '?'.$switch.'&remote_cmd=Right', name => 'Right' &>
<& '/include/reelbox:remote_link', link => '?'.$switch.'&remote_cmd=Down', name => 'Down' &>
<& '/include/reelbox:remote_link', link => '?'.$switch.'&remote_cmd=TT', name => 'TXT' &> <& '/include/reelbox:remote_link', link => '?'.$switch.'&remote_cmd=Help', name => '?' &>
<& '/include/reelbox:remote_link', link => '?'.$switch.'&remote_cmd=Red', name => '' &> <& '/include/reelbox:remote_link', link => '?'.$switch.'&remote_cmd=Green', name => '' &> <& '/include/reelbox:remote_link', link => '?'.$switch.'&remote_cmd=Yellow', name => '' &> <& '/include/reelbox:remote_link', link => '?'.$switch.'&remote_cmd=Blue', name => '' &>
<%method display_adv_remote> <%args> $detach => undef $lite => undef $image => $fbAVG <%perl> if ( defined $detach && $detach eq 'true' ) { $switch = 'detach=true'; } if ( ! vdr_status ) { $image = $fbAVGOff; if ( defined $lite ) { $image = $fbLiteOff; } } else { if ( defined $lite ) { $image = $fbLite; } }
AVG Power % } else { href="?<% $switch %>&lite=1" title="Lite" alt="Lite" > Power % } % if ( vdr_status ) { % if(defined $lite) { $switch.="&lite=1";} Prog Down Prog Up Volume Down Volume Up Down Right Up Left OK Timer Record Stop Eject Forward Pause Play Rewind Blue D Yellow C Green B Red A Help Text EXIT PIP Menu Mute Setup > < AV 0 9 8 7 6 5 4 3 2 1 Code REEL DVB PVR DVB % }

<%method fb_control> <%attr> ajax => 1 <%args> $detach => undef $lite => undef $image => $fbAVG $switch => $switch $js_function => 'Cmd' <%perl> if ( defined $detach && $detach eq 'true' ) { $switch = 'detach=true'; } if ( ! vdr_status ) { $image = $fbAVGOff; }
Power % if ( vdr_status ) { Prog Down Prog Up Volume Down Volume Up Down Right Up Left OK Timer Record Stop Eject Forward Pause Play Rewind Blue D Yellow C Green B Red A Help Text EXIT PIP Menu Mute Setup > < AV 0 9 8 7 6 5 4 3 2 1 Code REEL DVB PVR DVB % } <& SELF:fb_script, %ARGS &> <%method fb_script>