% ######################################################################## %?>
% BLOCK dur %?>
% height=6;d = d div 1 ; IF d >= 0 and d <= 100 %?>
% IF d >= 1 %?>


% ELSE %?>

% END %?>
% END %?>
% END %?>
% ######################################################################## %?>
% BLOCK RowButtons %?>
" />
% IF timerid && allow('tedit') %?>
" />
% ELSIF allow('tnew') %?>
" />
% END %?>
% END %?>
% ######################################################################## %?>
% BLOCK SetState %?>
% state = '' %?>
% IF running %?>
% state = "running" %?>
% ELSIF timerid %?>
% UNLESS recording %?>
% state = "deactive" %?>
% ELSE %?>
% state = "active" %?>
% END %?>
% END %?>
% END %?>
% ######################################################################## %?>
% BLOCK ItemAsArea %?>
% PROCESS SetState %?>
|
"> % chop(subtitle,32) %?>
% IF global.hideDescription != 1 %?>
% END %?>
|
">
% start %?> - % stop %?>
% IF pdc && pdc != start %?> (% gettext("PDC") %?>:% pdc %?>) % END %?>
% gettext("Duration") %?> : % duration %?>
|
% INCLUDE widgets/tooltip.inc cmd="display" eventid=id linkid=id ttp_offset=-200 %?>
% PROCESS RowButtons %?>
|
|
|
% END %?>
% ######################################################################################
channelpos=0;priorchannel=0;nextchannel=0;priortitle="";nexttitle="";
FOREACH ch IN param.channels;
IF cgi.param('data') == ch.1 || cgi.param('data') == ch.0 || param.current == ch.1;
channel = ch.0;
channelpos = ch.1;
ELSE;
IF channelpos==0;
priorchannel=ch.1;
priortitle=ch.0;
END;
END;
IF channelpos!=0 && channelpos != ch.1 && nextchannel==0;
nextchannel=ch.1;
nexttitle=ch.0;
LAST;
END;
END;
%?>
% IF data.size <= 1 %?>
% gettext("Program guide for") %?> % channel %?>
% ELSE %?>
% fields = data.shift %?>
% gettext("Program guide for") %?> % channel %?> - % data.first.6 %?>
% FOREACH zeile IN data %?>
% IF verbose;"";END %?>
% id=zeile.0;title=zeile.1;subtitle=zeile.2;start=zeile.3;stop=zeile.4;duration=zeile.5;day = zeile.6;
description=zeile.7;pdc=zeile.8;timerid=zeile.9;recording=zeile.10;running=zeile.11; %?>
% IF old.defined && day != old %?>
% day %?>
% END %?>
% PROCESS ItemAsArea %?>
% old = day %?>
% END %?>
% END %?>
% INCLUDE header.inc %?>