summaryrefslogtreecommitdiff
path: root/html/schema.tmpl
diff options
context:
space:
mode:
authoranbr <vdr07@deltab.de>2011-10-08 07:43:51 +0200
committeranbr <vdr07@deltab.de>2011-10-08 07:43:51 +0200
commit85d4bfa04ce28b5ec3eb0054306c43bc59c55128 (patch)
treed7878021068d70e2a4ab3044beb5f770a57fc980 /html/schema.tmpl
parenta71b70567ed73853367d972a95d2a346b2f93989 (diff)
downloadxxv-85d4bfa04ce28b5ec3eb0054306c43bc59c55128.tar.gz
xxv-85d4bfa04ce28b5ec3eb0054306c43bc59c55128.tar.bz2
Merge skins into common directory
Diffstat (limited to 'html/schema.tmpl')
-rw-r--r--html/schema.tmpl179
1 files changed, 0 insertions, 179 deletions
diff --git a/html/schema.tmpl b/html/schema.tmpl
deleted file mode 100644
index ba780ce..0000000
--- a/html/schema.tmpl
+++ /dev/null
@@ -1,179 +0,0 @@
-<?%-
-USE date;
-zeitformat = gettext("%A the %D at %H:%M o'clock");
-day = date.format(param.zeitvon, zeitformat, locale);
-
-width = 720; # Table width
-Duration = param.zeitbis - param.zeitvon;
-
--%?>
-<script language="javascript" type="text/javascript">
- var interval = 300
-
- function reload() {
- Now = new Date();
- location.href = '?cmd=schema';
- }
-
- inter = interval * 1000;
- aktiv = window.setTimeout("reload()", inter);
-</script>
-
-<form>
-<h1><?% gettext("What is running at") %?>&nbsp;<?% day %?><br/>
-<?% gettext('Display') %?>&nbsp;
-<?% gettext('from') %?>&nbsp;<?% date.format(param.zeitvon, '%H:%M', locale) %?>&nbsp;
-<?% gettext('to') %?>&nbsp;<?% date.format(param.zeitbis, '%H:%M', locale) %?>&nbsp;
-<?% gettext("o'clock") %?>
-</h1>
-
-<!-- TableTemplate -->
-<select name='cgroups' onChange="di(this.form.cgroups.options[this.form.cgroups.options.selectedIndex].value, '?cmd=schema&amp;data=<?% param.zeitvon %?>&amp;__cgrp=')">
-<?% FOREACH cgrp = param.cgroups %?>
- <option value='<?% cgrp.last %?>' <?% "selected" IF param.channelgroup == cgrp.last %?>><?% cgrp.first %?>
-<?% END %?>
-</select>
-
-<table width='<?% (width + 100) %?>' cellpadding="0" cellspacing="0">
-<tr>
- <td><img alt="" src='images/blank.png' width=100 height=1 border=0 /></td>
- <?% c = 0; colspan = 0; abstand = 15 * 60; # 15 Minuten %?>
- <?%- WHILE c < Duration -%?>
- <?%-
- c = c + abstand;
- percent = (abstand / Duration) * width
- colspan = colspan + 1;
- zeit = param.zeitvon + c;
- -%?>
- <td bgcolor="white" width="<?% offset = (c % 3600 ? 1 : 2);(percent - offset) div 1 %?>" align='right'>
- <?% IF c == abstand && zeit > date.now %?>
- &nbsp;<a href='?cmd=schema&amp;data=<?% (param.zeitvon - Duration) %?>&amp;__cgrp=<?% param.channelgroup %?>'><</a>
- <?% END %?>
- <font size='1'><?% date.format(zeit, '%H:%M', locale) %?>
- <?% IF c >= Duration %?>
- &nbsp;<a href='?cmd=schema&amp;data=<?% (param.zeitvon + Duration) %?>&amp;__cgrp=<?% param.channelgroup %?>'>></a>
- <?% END %?>
- </font></td>
- <?% END %?>
-</tr>
-
-<tr>
- <?% c = 0 %?>
- <?% abstand = abstand div 3 %?>
- <td>&nbsp;</td>
- <td bgcolor="white" colspan="<?% colspan %?>" style="white-space: nowrap">
- <?%- IF date.now > param.zeitvon && date.now < param.zeitbis -%?>
- <?% a = date.now - param.zeitvon;
- p = (a / Duration) * width;
- %?>
- <div style="position:absolute; z-index:1">
- <div style="position:relative; top:0px; left:0px; width:<?% p div 1 %?>px; height:10px; z-index:2; border:thin solid #804000; background-color:#FF0000; text-align: right; -moz-opacity:0.2; filter:Alpha(opacity=20)"><font size="1">&nbsp;</font></div>
- </div>
- <div style="position:absolute; z-index:1">
- <div style="position:relative; top:0px; left:<?% p div 1 %?>px; width:1px; height:100%; border-left:1px solid red; margin:0px; z-Index: 2;"><img alt="" src='images/blank.png' width='1' height='<?% data.keys.size * 23 %?>' border="0" hspace="0" vspace="0" /></div>
- </div>
- <?%- END -%?>
- <?%- WHILE c < Duration;
- c = c + abstand;
- percent = (abstand / Duration) * width
- -%?><img alt="" style="background:white" src='images/blank.png' width="<?%-
- offset = (c % 3600 ? 1 : 2);
- (percent - offset) div 1
- -%?>" height='10' /><img alt=""
- style="background:<?% c % 900 ? "gray" : "black" %?>"
- src='images/blank.png'
- width="<?% c % 3600 ? "1" : "2" %?>"
- height='<?% (c % 900 ? "5" : "10") %?>' />
- <?%- END -%?>
- </td>
-</tr>
-
-<?% x = -1 %?>
-<?% FOREACH cpos = data.keys.nsort %?>
-<tr><td colspan="<?% (colspan + 1) %?>"><img src='images/blank.png' width='10' height=1 border=0 align='left' /></td></tr>
-<?% x = x + 1;
- channelName = data.$cpos.first.3;
- channelId = data.$cpos.first.4;
-%?>
-<tr class="<?% myclass %?>" <?% IF (x mod 2) == 0 %?>bgcolor='#E5E5E5'<?% END %?>>
- <td>
- <a href="?cmd=program&amp;data=<?% channelId %?>"><?% chop(channelName,12) %?></a>
- </td>
- <td colspan="<?% colspan %?>" style="white-space: nowrap">
- <?%- ges = 0; oldend = param.zeitvon -%?>
- <?%-
- FOREACH event = data.$cpos;
- epgId = event.0;
- epgTitle = event.1;
- epgSubTitle = event.2;
- chName = event.3;
- chPos = event.4;
- epgStart = event.5;
- epgStop = event.6;
- epgPercent = event.7;
- epgDesc = event.8;
- second_start= event.9;
- second_stop = event.10;
- image = event.11;
- timerid = event.12;
- recording = event.13;
- running = event.14;
-
- IF second_start > oldend;
- laenge = second_start - oldend;
- percent = (laenge / Duration) * width;
- ges = ges + percent;
- -%?>
- <img alt="" src='images/blank.png' width='<?% percent div 1 %?>' height=8 border=0 align='left' />
- <?% END;
- IF second_start < oldend;
- dur = second_stop - oldend;
- ELSE;
- dur = second_stop - second_start;
- END;
- IF dur < 0; dur = 0; END;
- percent = (dur / Duration) * width;
- IF (ges + percent) > width;
- percent = width - ges;
- END;
- ges = ges + percent;
- trun = ( percent / 10 ) div 1;
- IF dur < 300;
- trun = 3;
-
- END;
- -%?>
- <?% d=[epgStart, " - ", epgStop ,"<br />", epgDesc ];desc=d.join("") %?>
-<?% IF trun <= 3 %?>
- <?% INCLUDE bloecke/tooltip.tmpl cmd="display" title=epgTitle subtitle=epgSubTitle eventid=epgId linkid=epgId ttp_offset=-200 %?><img alt="" src='images/blank.png' width='<?% percent div 1 %?>' height=8 border=0 hspace=0 vspace=0 align='left' /></a>
-<?% ELSE %?>
- <table class='<?% PROCESS getStatus e=event %?>' align="left" width="<?% percent div 1 %?>" cellpadding="0" cellspacing="0"><tr><td>
- <?% INCLUDE bloecke/tooltip.tmpl cmd="display" title=epgTitle subtitle=epgSubTitle eventid=epgId linkid=epgId ttp_offset=-200 %?>
- <?% chop(epgTitle,trun) %?></a></td></tr></table>
-<?% END %?>
- <?% oldend = second_stop %?>
- <?% END %?>
- </td>
-</tr>
-<?% END %?>
-</table>
-</form>
-
-<?% BLOCK title %?>
-<?% e.1 %?>&nbsp;
-<?% e.2 IF e.2 %?>&nbsp;
-<?% e.5 %?> - <?% e.6 %?>&nbsp;
-<?% END %?>
-
-<?%- BLOCK getStatus -%?>
-<?%-
- class = 'schema_normal';
- IF event.14 && event.15;
- class = 'schema_record_plan';
- END;
- IF event.14 && event.16;
- class = 'schema_record_now';
- END;
-class;
--%?>
-<?%- END -%?>