diff options
| author | Andreas Brachold <vdr07@deltab.de> | 2007-08-13 18:41:27 +0000 |
|---|---|---|
| committer | Andreas Brachold <vdr07@deltab.de> | 2007-08-13 18:41:27 +0000 |
| commit | bcbf441e09fb502cf64924ff2530fa144bdf52c5 (patch) | |
| tree | f377707a2dac078db8cd0c7d7abfe69ac1006d71 /wml | |
| download | xxv-bcbf441e09fb502cf64924ff2530fa144bdf52c5.tar.gz xxv-bcbf441e09fb502cf64924ff2530fa144bdf52c5.tar.bz2 | |
* Move files to trunk
Diffstat (limited to 'wml')
47 files changed, 553 insertions, 0 deletions
diff --git a/wml/images/apply.wbm b/wml/images/apply.wbm Binary files differnew file mode 100644 index 0000000..138dc3a --- /dev/null +++ b/wml/images/apply.wbm diff --git a/wml/images/back.wbm b/wml/images/back.wbm Binary files differnew file mode 100644 index 0000000..4ac8324 --- /dev/null +++ b/wml/images/back.wbm diff --git a/wml/images/delete.wbm b/wml/images/delete.wbm Binary files differnew file mode 100644 index 0000000..bf37cb5 --- /dev/null +++ b/wml/images/delete.wbm diff --git a/wml/images/edit.wbm b/wml/images/edit.wbm Binary files differnew file mode 100644 index 0000000..cdafaec --- /dev/null +++ b/wml/images/edit.wbm diff --git a/wml/images/find.wbm b/wml/images/find.wbm Binary files differnew file mode 100644 index 0000000..8955777 --- /dev/null +++ b/wml/images/find.wbm diff --git a/wml/images/forward.wbm b/wml/images/forward.wbm Binary files differnew file mode 100644 index 0000000..b04acb0 --- /dev/null +++ b/wml/images/forward.wbm diff --git a/wml/images/home.wbm b/wml/images/home.wbm Binary files differnew file mode 100644 index 0000000..081d5cb --- /dev/null +++ b/wml/images/home.wbm diff --git a/wml/images/movie.wbm b/wml/images/movie.wbm Binary files differnew file mode 100644 index 0000000..f0e8545 --- /dev/null +++ b/wml/images/movie.wbm diff --git a/wml/images/new.wbm b/wml/images/new.wbm Binary files differnew file mode 100644 index 0000000..17adc67 --- /dev/null +++ b/wml/images/new.wbm diff --git a/wml/images/off.wbm b/wml/images/off.wbm Binary files differnew file mode 100644 index 0000000..1ff46c7 --- /dev/null +++ b/wml/images/off.wbm diff --git a/wml/images/on.wbm b/wml/images/on.wbm Binary files differnew file mode 100644 index 0000000..55bb389 --- /dev/null +++ b/wml/images/on.wbm diff --git a/wml/images/onoff.wbm b/wml/images/onoff.wbm Binary files differnew file mode 100644 index 0000000..be31cb7 --- /dev/null +++ b/wml/images/onoff.wbm diff --git a/wml/images/record.wbm b/wml/images/record.wbm Binary files differnew file mode 100644 index 0000000..59edd73 --- /dev/null +++ b/wml/images/record.wbm diff --git a/wml/images/refresh.wbm b/wml/images/refresh.wbm Binary files differnew file mode 100644 index 0000000..8f1b8cb --- /dev/null +++ b/wml/images/refresh.wbm diff --git a/wml/images/watch.wbm b/wml/images/watch.wbm Binary files differnew file mode 100644 index 0000000..bae0692 --- /dev/null +++ b/wml/images/watch.wbm diff --git a/wml/images/xxv.wbm b/wml/images/xxv.wbm Binary files differnew file mode 100644 index 0000000..96bb728 --- /dev/null +++ b/wml/images/xxv.wbm diff --git a/wml/next.tmpl b/wml/next.tmpl new file mode 120000 index 0000000..dc903f9 --- /dev/null +++ b/wml/next.tmpl @@ -0,0 +1 @@ +now.tmpl
\ No newline at end of file diff --git a/wml/now.tmpl b/wml/now.tmpl new file mode 100644 index 0000000..9aa2caa --- /dev/null +++ b/wml/now.tmpl @@ -0,0 +1,49 @@ +<?% BLOCK item %?> + <?% "<i>" IF param.timers.${id} %?> + <?% IF global.ShowCardTitle %?> + <a href="?cmd=p&data=<?% channel %?>"> + <?% channel %?>. <?% sender | truncate(20) | html %?> + </a><br /> + <?% END %?> + <?% start %?> - <?% stop %?><br /> + <b><?% title | truncate(20) | html %?></b><?% IF subtitle %?><br /><?% subtitle | truncate(20) | html%?><?% END %?> + <br /> + <?% IF global.ShowDescription %?> + <?% desc | truncate(50) | html %?><br /> + <?% END %?> + <?% "</i>" IF param.timers.${id} %?> + <a href="?cmd=s&data=<?% title | uri | html | replace ('~','%7E') %?>"><img src="images/find.wbm" alt="<?% gettext("Search") %?>" /></a> + <?% IF param.timers.${id} && allow('tedit') %?> + <a href="?cmd=te&data=<?% param.timers.${id}.Id %?>"><img src="images/onoff.wbm" alt="<?% gettext("Edit this timer") %?>" /></a> + <?% ELSIF allow('tnew') %?> + <a href="?cmd=tn&data=<?% id %?>"><img src="images/record.wbm" alt="<?% gettext("To record") %?>" /></a> + <?% END %?> +<?% END %?> +<?% ######################################################################## %?> +<?% skip = cgi.param('offset') || 1 %?> +<?% offset = skip + global.MaxCards %?> +<?% IF data.size > skip %?> +<?% fields = data.shift %?> + <?% FOREACH zeile = data %?> + <?% IF loop.count < skip;NEXT;END %?> + <?% title=zeile.1;subtitle=zeile.2;sender=zeile.3;channel=zeile.4;start=zeile.5;stop=zeile.6;duration=zeile.7;desc=zeile.8 %?> + <?% IF id.defined %?> + <a href="#n<?% loop.count %?>"><img src="images/forward.wbm" alt="<?% gettext("Forward") %?>" /></a> + <a href="#index"><img src="images/home.wbm" alt="<?% gettext("Menu") %?>" /></a> + </p> +</card> + <?% END %?> +<card id="<?% IF loop.count > 1 %?>n<?% loop.count;ELSE %?>first<?% END %?>" title="<?% channel %?>.<?% sender | truncate(10)| html %?>"> + <?% id=zeile.0 %?> + <p> + <?% PROCESS item %?> + <?% count = loop.count + 1 %?> + <?% IF count >= offset;LAST;END %?> + <?% END %?> + <?% IF count < data.size %?> + <a href="?cmd=<?% cgi.param('cmd') %?>&offset=<?% offset %?>#n<?% offset %?>"><img src="images/forward.wbm" alt="<?% gettext("Forward") %?>" /></a> + <?% END %?> + <a href="#index"><img src="images/home.wbm" alt="<?% gettext("Menu") %?>" /></a> + </p> +</card> +<?% END %?> diff --git a/wml/program.tmpl b/wml/program.tmpl new file mode 100644 index 0000000..d3dcd37 --- /dev/null +++ b/wml/program.tmpl @@ -0,0 +1,80 @@ +<?% USE date %?> +<?% ###################################################################################### + channelpos=0;; + FOREACH ch = param.channels; + IF cgi.param('data') == ch.1 || cgi.param('data') == ch.0 || param.current == ch.1; + channel = ch.0; + channelpos = ch.1; + channelitem = loop.count; + LAST; + END; + END; +%?> +<card id="first" title="<?% channel | truncate(32)| html %?>"> + <p> + <select name="channel" ivalue="<?% channelitem %?>" > + <?% FOREACH ch = param.channels %?> + <option value="<?% ch.1 %?>"><?% ch.0 | html %?></option> + <?% IF loop.count >= global.MaxChannelsProgram;LAST;END %?> + <?% END %?> + </select><br /> + <a href="?cmd=<?% cgi.param('cmd') %?>&data=\$channel"><img src="images/apply.wbm" alt="<?% gettext("Apply") %?>" /></a> +<?% IF data.size > 1 %?> + <a href="#p1"><img src="images/forward.wbm" alt="<?% gettext("Forward") %?>" /></a> +<?% END %?> + <a href="#index"><img src="images/home.wbm" alt="<?% gettext("Menu") %?>" /></a> + </p> +</card> +<?% ######################################################################## %?> +<?% BLOCK item %?> + <?% "<i>" IF param.timers.${id} %?> + <?% IF global.ShowCardTitle %?> + <?% channelpos %?>.<?% channel | truncate(15)| html %?> + <br /> + <?% END %?> + <?% date.format(datum, "%a, %x") | html %?><br /> + <?% start %?> - <?% stop %?><br /> + <b><?% title | truncate(20) | html %?></b><?% IF subtitle %?><br /><?% subtitle | truncate(20) | html%?><?% END %?> + <br /> + <?% IF global.ShowDescription %?> + <?% desc | truncate(50) | html %?><br /> + <?% END %?> + <?% "</i>" IF param.timers.${id} %?> + <a href="?cmd=s&data=<?% title | uri | html | replace ('~','%7E') %?>"><img src="images/find.wbm" alt="<?% gettext("Search") %?>" /></a> + <?% IF allow('switch') %?> + <a href="?cmd=sw&data=<?% channel %?>"><img src="images/watch.wbm" alt="<?% gettext("Switch") %?>" /></a> + <?% END %?> + <?% IF param.timers.${id} && allow('tedit') %?> + <a href="?cmd=te&data=<?% param.timers.${id}.Id %?>"><img src="images/onoff.wbm" alt="<?% gettext("Edit this timer") %?>" /></a> + <?% ELSIF allow('tnew') %?> + <a href="?cmd=tn&data=<?% id %?>"><img src="images/record.wbm" alt="<?% gettext("To record") %?>" /></a> + <?% END %?> +<?% END %?> +<?% ######################################################################## %?> +<?% skip = cgi.param('offset') || 1 %?> +<?% offset = skip + global.MaxCards %?> +<?% IF data.size > skip %?> +<?% fields = data.shift %?> + <?% FOREACH zeile = data %?> + <?% IF loop.count < skip;NEXT;END %?> + <?% title=zeile.1;subtitle=zeile.2;start=zeile.3;stop=zeile.4;datum=zeile.5;desc=zeile.6 %?> + <?% IF id.defined %?> + <a href="#p<?% loop.count %?>"><img src="images/forward.wbm" alt="<?% gettext("Forward") %?>" /></a> + <a href="#index"><img src="images/home.wbm" alt="<?% gettext("Menu") %?>" /></a> + </p> +</card> + <?% END %?> +<card id="p<?% loop.count %?>" title="<?% channelpos %?>.<?% channel | truncate(15)| html %?>"> + <?% id=zeile.0 %?> + <p> + <?% PROCESS item %?> + <?% count = loop.count + 1 %?> + <?% IF count >= offset;LAST;END %?> + <?% END %?> + <?% IF count < data.size %?> + <a href="?cmd=<?% cgi.param('cmd') %?>&data=<?% cgi.param('data') %?>&offset=<?% offset %?>#p<?% offset %?>"><img src="images/forward.wbm" alt="<?% gettext("Forward") %?>" /></a> + <?% END %?> + <a href="#index"><img src="images/home.wbm" alt="<?% gettext("Menu") %?>" /></a> + </p> +</card> +<?% END %?> diff --git a/wml/search.tmpl b/wml/search.tmpl new file mode 100644 index 0000000..e1dd782 --- /dev/null +++ b/wml/search.tmpl @@ -0,0 +1,51 @@ +<?% USE date %?> +<?% BLOCK item %?> + <?% "<i>" IF param.timers.${id} %?> + <?% IF global.ShowCardTitle %?> + <a href="?cmd=p&data=<?% channel %?>"> + <?% channel %?>. <?% sender | truncate(20) | html %?> + </a><br /> + <?% END %?> + <?% date.format(datum, "%a, %x") | html %?><br /> + <?% start %?> - <?% stop %?><br /> + <b><?% title | truncate(20) | html %?></b><?% IF subtitle %?><br /><?% subtitle | truncate(20) | html%?><?% END %?> + <br /> + <?% IF global.ShowDescription %?> + <?% desc | truncate(50) | html %?><br /> + <?% END %?> + <?% "</i>" IF param.timers.${id} %?> + <a href="?cmd=s&data=<?% title | uri | html | replace ('~','%7E') %?>"><img src="images/find.wbm" alt="<?% gettext("Search") %?>" /></a> + <?% IF param.timers.${id} && allow('tedit') %?> + <a href="?cmd=te&data=<?% param.timers.${id}.Id %?>"><img src="images/onoff.wbm" alt="<?% gettext("Edit this timer") %?>" /></a> + <?% ELSIF allow('tnew') %?> + <a href="?cmd=tn&data=<?% id %?>"><img src="images/record.wbm" alt="<?% gettext("To record") %?>" /></a> + <?% END %?> +<?% END %?> +<?% ######################################################################## %?> +<?% skip = cgi.param('offset') || 1 %?> +<?% offset = skip + global.MaxCards %?> +<?% IF data.size > skip %?> +<?% fields = data.shift %?> + <?% FOREACH zeile = data %?> + <?% IF loop.count < skip;NEXT;END %?> + <?% title=zeile.1;subtitle=zeile.2;sender=zeile.3;channel=zeile.4;start=zeile.5;stop=zeile.6;desc=zeile.8 %?> + <?% IF id.defined %?> + <a href="#s<?% loop.count %?>"><img src="images/forward.wbm" alt="<?% gettext("Forward") %?>" /></a> + <a href="#index"><img src="images/home.wbm" alt="<?% gettext("Menu") %?>" /></a> + </p> +</card> + <?% END %?> + <?% id=zeile.0 %?> +<card id="<?% IF loop.count > 1 %?>s<?% loop.count;ELSE %?>first<?% END %?>" title="<?% channel %?>.<?% sender | truncate(10)| html %?>"> + <p> + <?% PROCESS item %?> + <?% count = loop.count + 1 %?> + <?% IF count >= offset;LAST;END %?> + <?% END %?> + <?% IF count < data.size %?> + <a href="?cmd=<?% cgi.param('cmd') %?>&data=<?% cgi.param('data') %?>&offset=<?% offset %?>#s<?% offset %?>"><img src="images/forward.wbm" alt="<?% gettext("Forward") %?>" /></a> + <?% END %?> + <a href="#index"><img src="images/home.wbm" alt="<?% gettext("Menu") %?>" /></a> + </p> +</card> +<?% END %?> diff --git a/wml/skin.cfg b/wml/skin.cfg new file mode 100644 index 0000000..bc2b5e7 --- /dev/null +++ b/wml/skin.cfg @@ -0,0 +1,15 @@ +<?% ######################################################################## %?> +<?% # Limit Cards to transfer (Minimum 1...) %?> +<?% SET global.MaxCards = 5 %?> +<?% ######################################################################## %?> +<?% # Limit Selectable channels (program) %?> +<?% SET global.MaxChannelsProgram = 25 %?> +<?% ######################################################################## %?> +<?% # Limit Selectable channels (tnew/tedit) %?> +<?% SET global.MaxChannelsTimer = 100 %?> +<?% ######################################################################## %?> +<?% # Include card title inside card %?> +<?% SET global.ShowCardTitle = 0 %?> +<?% ######################################################################## %?> +<?% # Include EPG description inside card %?> +<?% SET global.ShowDescription = 0 %?> diff --git a/wml/tlist.tmpl b/wml/tlist.tmpl new file mode 100644 index 0000000..91668fc --- /dev/null +++ b/wml/tlist.tmpl @@ -0,0 +1,79 @@ +<?% ######################################################################## %?> +<card id="first" title="XXV <?% gettext("Timers") %?>"> +<p> +<?% IF allow('tl') %?> +<a href="?cmd=tl#t1"><img src="images/forward.wbm" alt="<?% gettext("List timers") %?>" /><?% gettext("List timers",12) %?></a><br /> +<?% END %?> +<?% IF allow('tn') %?> +<a href="?cmd=tn"><img src="images/new.wbm" alt="<?% gettext("Create a new timer") %?>" /><?% gettext("Create a new timer",12) %?></a><br /> +<?% END %?> +<?% IF allow('tu') %?> +<a href="?cmd=tu"><img src="images/refresh.wbm" alt="<?% gettext("Update timers") %?>" /><?% gettext("Update timers",12) %?></a><br /> +<?% END %?> +<a href="#index"><img src="images/home.wbm" alt="<?% gettext("Menu") %?>" /></a> +</p> +</card> +<?% ######################################################################## %?> +<?% BLOCK time %?> + <?% tt = t FILTER format('%04d') %?><?% tt.chunk(-2).join(':') %?> +<?% END %?> +<?% ######################################################################## %?> +<?% BLOCK item %?> + <?% IF global.ShowCardTitle %?> + <?% IF allow('tedit') %?> + <a href="?cmd=te&data=<?% id %?>"> + <?% END %?> + <?% gettext("Timer") %?> <?% id %?> + <?% "</a>" IF allow('tedit') %?> + <br /> + <?% END %?> +<?% IF allow('ttoggle') %?> + <a href="?cmd=tt&data=<?% id %?>"> +<?% END %?> + <img src="images/<?% aktiv ? 'on.wbm' : 'off.wbm'%?>" alt="<?% aktiv ? gettext("On") : gettext("Off") %?>" /> + <?% "</a>" IF allow('ttoggle') %?> + <?% datum %?><br /> + <?% PROCESS time t = start %?>-<?% PROCESS time t = stop %?><br /> + <?% ## sender | html %?< <br />%?> +<?% IF allow('tedit') %?> + <a href="?cmd=te&data=<?% id %?>"> +<?% END %?> + <?% title | html | replace('~','<br />') %?> + <?% "</a>" IF allow('tedit') %?> + + <?% IF allow('tedit') %?> + <br /> + <a href="?cmd=te&data=<?% id %?>"><img src="images/edit.wbm" alt="<?% gettext("Edit") %?>" /></a> + <?% END %?> + <?% IF allow('tdelete') %?> + <a href="?cmd=td&data=<?% id %?>"><img src="images/delete.wbm" alt="<?% gettext("Del") %?>" /></a> + <?% END %?> +<?% END %?> +<?% ######################################################################## %?> +<?% skip = cgi.param('offset') || 1 %?> +<?% offset = skip + global.MaxCards %?> +<?% IF data.size > skip %?> +<?% fields = data.shift %?> + <?% FOREACH zeile = data %?> + <?% IF loop.count < skip;NEXT;END %?> + <?% aktiv=zeile.1;sender=zeile.2;channel=zeile.3;datum=zeile.4;start=zeile.5;stop=zeile.6;title=zeile.7;day = zeile.8;conflict=zeile.9 %?> + <?% IF id.defined %?> + <a href="#t<?% loop.count %?>"><img src="images/forward.wbm" alt="<?% gettext("Forward") %?>" /></a> + <a href="#index"><img src="images/home.wbm" alt="<?% gettext("Menu") %?>" /></a> + </p> +</card> + <?% END %?> + <?% id=zeile.0 %?> +<card id="t<?% loop.count %?>" title="<?% gettext("Timer") %?> <?% id %?>"> + <p> + <?% PROCESS item %?> + <?% count = loop.count + 1 %?> + <?% IF count >= offset;LAST;END %?> + <?% END %?> + <?% IF count < data.size %?> + <a href="?cmd=<?% cgi.param('cmd') %?>&offset=<?% offset %?>#t<?% offset %?>"><img src="images/forward.wbm" alt="<?% gettext("Forward") %?>" /></a> + <?% END %?> + <a href="#index"><img src="images/home.wbm" alt="<?% gettext("Menu") %?>" /></a> + </p> +</card> +<?% END %?> diff --git a/wml/tsearch.tmpl b/wml/tsearch.tmpl new file mode 120000 index 0000000..d1d3655 --- /dev/null +++ b/wml/tsearch.tmpl @@ -0,0 +1 @@ +tlist.tmpl
\ No newline at end of file diff --git a/wml/wapd.tmpl b/wml/wapd.tmpl new file mode 100644 index 0000000..fead042 --- /dev/null +++ b/wml/wapd.tmpl @@ -0,0 +1,2 @@ +<?% INCLUDE 'widgets/start.tmpl' %?> +<?% INCLUDE 'widgets/footer.tmpl' %?> diff --git a/wml/widgets/checkbox.tmpl b/wml/widgets/checkbox.tmpl new file mode 100644 index 0000000..703d8b4 --- /dev/null +++ b/wml/widgets/checkbox.tmpl @@ -0,0 +1,17 @@ +<?% ############################################################################ + val = cgi.param(data.NAME) || data.def; + selectitem = 1; + FOREACH wert = data.choices; + IF wert == val; + selectitem = loop.count; + LAST; + END; + END; + ######################################################################### %?> +<?% data.msg | truncate(15) %?> : +<select name="<?% data.NAME | replace('__','var') %?>" ivalue="<?% selectitem %?>"> + <?% FOREACH wert = data.choices %?> + <option value="<?% entities(wert) %?>"><?% entities(wert) %?></option> + <?% END %?> +</select><br/> +<?% global.fomularfield.push(data.NAME) %?> diff --git a/wml/widgets/confirm.tmpl b/wml/widgets/confirm.tmpl new file mode 100644 index 0000000..0190cd6 --- /dev/null +++ b/wml/widgets/confirm.tmpl @@ -0,0 +1,13 @@ +<?% ############################################################################ + val = cgi.param(data.NAME) || data.def; + selectitem = 1; + IF val == 'n'; + selectitem = 2; + END; + ######################################################################### %?> +<?% data.msg | truncate(15) %?> : +<select name="<?% data.NAME | replace('__','var') %?>" ivalue="<?% selectitem %?>"> + <option value="y"><?% gettext("yes") %?></option> + <option value="n"><?% gettext("no") %?></option> +</select><br/> +<?% global.fomularfield.push(data.NAME) %?> diff --git a/wml/widgets/date.tmpl b/wml/widgets/date.tmpl new file mode 120000 index 0000000..8ea271d --- /dev/null +++ b/wml/widgets/date.tmpl @@ -0,0 +1 @@ +string.tmpl
\ No newline at end of file diff --git a/wml/widgets/dir.tmpl b/wml/widgets/dir.tmpl new file mode 100644 index 0000000..ca00351 --- /dev/null +++ b/wml/widgets/dir.tmpl @@ -0,0 +1,12 @@ +<?% data.msg | truncate(15) %?> : +<?% val = cgi.param(data.NAME) || data.def %?> +<?% TRY %?> + <?% USE File(val, root => realbin) %?> +<input type="text" name="<?% data.NAME | replace('__','var') %?>" value="<?% entities(val) %?>" /><br/> + <?% CATCH File %?> + <?% UNLESS File.isdir %?> +<i><?% gettext("Directory '%s' is doesn't exist!") | replace('%s',val)%?></i><br/> +<input type="text" name="<?% data.NAME | replace('__','var') %?>" value="<?% entities(val) %?>" /><br/> + <?% END %?> + <?% END %?> +<?% global.fomularfield.push(data.NAME) %?> diff --git a/wml/widgets/err.tmpl b/wml/widgets/err.tmpl new file mode 100644 index 0000000..202e0e5 --- /dev/null +++ b/wml/widgets/err.tmpl @@ -0,0 +1,21 @@ +<?% trimmed = data FILTER trim %?> +<?% IF data.size > 1 || trimmed != "" %?> +<?% IF global.wml_card.defined %?> +<card id="message<?% global.wml_card %?>" title="<?% gettext("Error") %?>"> +<?% global.wml_card = global.wml_card + 1 %?> +<?% ELSE %?> +<card id="first" title="<?% gettext("Error") %?>"> +<?% global.wml_card = 1 %?> +<?% END %?> +<p> + <?% IF data.size <= 0 %?> + <?% data | html %?> + <?% ELSE %?> + <?% FOREACH zeile = data %?> + <?% zeile %?><br /> + <?% END %?> + <?% END %?> +<a href="#index"><img src="images/home.wbm" alt="<?% gettext("Menu") %?>" /></a> +</p> +</card> +<?% END %?> diff --git a/wml/widgets/file.tmpl b/wml/widgets/file.tmpl new file mode 100644 index 0000000..1734d78 --- /dev/null +++ b/wml/widgets/file.tmpl @@ -0,0 +1,10 @@ +<?% data.msg | truncate(15) %?> : +<?% val = cgi.param(data.NAME) || data.def %?> +<?% TRY %?> + <?% USE File(val, root => realbin) %?> +<input type="text" name="<?% data.NAME | replace('__','var') %?>" value="<?% entities(val) %?>" /><br/> + <?% CATCH File %?> +<input type="text" name="<?% data.NAME | replace('__','var') %?>" value="<?% entities(val) %?>" /><br/> +<i><?% gettext("File '%s' is doesn't exist!") | replace('%s',val)%?></i><br/> + <?% END %?> +<?% global.fomularfield.push(data.NAME) %?> diff --git a/wml/widgets/footer.tmpl b/wml/widgets/footer.tmpl new file mode 100644 index 0000000..2f1b643 --- /dev/null +++ b/wml/widgets/footer.tmpl @@ -0,0 +1,22 @@ +<?% ######################################################################## %?> +<card id="index" title="XXV <?% gettext("Menu") %?>"> +<p><img src="images/xxv.wbm" width="32" height="32" alt="xxv" /></p> +<p> +<?% IF allow('n') %?> +<a title="<?% gettext("Running now") %?>" href="?cmd=n#first"><?% gettext("Running now") %?></a><br /> +<?% END %?> +<?% IF allow('nx') %?> +<a title="<?% gettext("Next") %?>" href="?cmd=nx#first"><?% gettext("Next") %?></a><br /> +<?% END %?> +<?% IF allow('p') %?> +<a title="<?% gettext("Program guide") %?>" href="?cmd=p#first"><?% gettext("Program guide") %?></a><br /> +<?% END %?> +<?% IF allow('tl') %?> +<a title="<?% gettext("Timers") %?>" href="?cmd=tl#first"><?% gettext("Timers") %?></a><br /> +<?% END %?> +<?% #<a title="#?% gettext("Autotimer") %?#" href="?cmd=al#first"><?% gettext("Autotimer") %?#</a><br /> %?> +<?% #<a title="#?% gettext("Recordings") %?#" href="?cmd=rl#first">#?% gettext("Recordings") %?#</a><br /> %?> +<?% #<a title="#?% gettext("Remote") %?#" href="?cmd=remote#first">#?% gettext("Remote") %?#</a><br /> %?> +</p> +</card> +</wml> diff --git a/wml/widgets/formEnd.tmpl b/wml/widgets/formEnd.tmpl new file mode 100644 index 0000000..5a3967c --- /dev/null +++ b/wml/widgets/formEnd.tmpl @@ -0,0 +1,7 @@ +<a href="?<?% global.hiddenfield.join('&') %?><?% FOREACH field = global.fomularfield %?>&<?% field %?>=\$(<?% field | replace('__','var') %?>)<?% END %?>"> +<img src="images/apply.wbm" alt="<?% gettext("Apply") %?>" /> +</a> +<anchor><img src="images/refresh.wbm" alt="<?% gettext("Reset") %?>" /><refresh/></anchor> +<a href="#index"><img src="images/home.wbm" alt="<?% gettext("Menu") %?>" /></a> +</p> +</card> diff --git a/wml/widgets/formStart.tmpl b/wml/widgets/formStart.tmpl new file mode 100644 index 0000000..4728d06 --- /dev/null +++ b/wml/widgets/formStart.tmpl @@ -0,0 +1,18 @@ +<?% global.hiddenfield = [] %?> +<?% h = ['cmd',cgi.param('cmd')] %?> +<?% global.hiddenfield.push( h.join('=') ) %?> +<?% IF cgi.param('data') %?> + <?% h = ['data',cgi.param('data')] %?> + <?% global.hiddenfield.push( h.join('=') ) %?> +<?% END %?> +<?% h = ['__action','save'] %?> +<?% global.hiddenfield.push( h.join('=') ) %?> +<?% global.fomularfield = [] %?> +<?% IF global.wml_card.defined %?> +<card title="<?% data %?>" newcontext="true"> +<?% global.wml_card = global.wml_card + 1 %?> +<?% ELSE %?> +<card title="<?% data %?>" newcontext="true"> +<?% global.wml_card = 1 %?> +<?% END %?> +<p> diff --git a/wml/widgets/hidden.tmpl b/wml/widgets/hidden.tmpl new file mode 100644 index 0000000..e60221e --- /dev/null +++ b/wml/widgets/hidden.tmpl @@ -0,0 +1,3 @@ +<?% val = cgi.param(data.NAME) || data.def %?> +<?% h = [data.NAME , val ] %?> +<?% global.hiddenfield.push( h.join('=') ) %?> diff --git a/wml/widgets/host.tmpl b/wml/widgets/host.tmpl new file mode 100644 index 0000000..f305059 --- /dev/null +++ b/wml/widgets/host.tmpl @@ -0,0 +1,4 @@ +<?% data.msg | truncate(15) %?> : +<?% val = cgi.param(data.NAME) || data.def %?> +<input type="text" name="<?% data.NAME | replace('__','var') %?>" value="<?% entities(val) %?>" /><br/> +<?% global.fomularfield.push(data.NAME) %?> diff --git a/wml/widgets/integer.tmpl b/wml/widgets/integer.tmpl new file mode 100644 index 0000000..f9a4060 --- /dev/null +++ b/wml/widgets/integer.tmpl @@ -0,0 +1,4 @@ +<?% data.msg | truncate(15) %?> : +<?% val = cgi.param(data.NAME) || data.def %?> +<input type="text" name="<?% data.NAME | replace('__','var') %?>" value="<?% val %?>" /><br/> +<?% global.fomularfield.push(data.NAME) %?> diff --git a/wml/widgets/link.tmpl b/wml/widgets/link.tmpl new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/wml/widgets/link.tmpl @@ -0,0 +1 @@ + diff --git a/wml/widgets/list.tmpl b/wml/widgets/list.tmpl new file mode 100644 index 0000000..f24e568 --- /dev/null +++ b/wml/widgets/list.tmpl @@ -0,0 +1,27 @@ +<?% data.msg | truncate(15) %?> : +<?% val = cgi.param(data.NAME) || data.def %?> +<?% UNLESS val.max %?> +<?% values = val.join(',').split(',') %?> +<?% ELSE %?> +<?% values = val %?> +<?% END %?> +<?% select = [] %?> +<?% FOREACH valch = values; + FOREACH l = data.choices; + IF valch == l.1; + select.push(loop.count); + LAST; + END; + END; + END %?> +<?% IF data.options == 'multi' %?> +<select name="<?% data.NAME | replace('__','var') %?>" multiple="true" ivalue="<?% select.join(';') %?>" > +<?% ELSE %?> +<select name="<?% data.NAME | replace('__','var') %?>" ivalue="<?% select.join(';') %?>"> +<?% END %?> +<?% FOREACH l = data.choices %?> + <option value='<?% l.1 %?>'><?% entities(l.0) %?></option> + <?% IF data.NAME == "__ChannelID" && loop.count >= global.MaxChannelsTimer;LAST;END %?> +<?% END %?> +</select><br/> +<?% global.fomularfield.push(data.NAME) %?> diff --git a/wml/widgets/littlemenu.tmpl b/wml/widgets/littlemenu.tmpl new file mode 100644 index 0000000..89aa392 --- /dev/null +++ b/wml/widgets/littlemenu.tmpl @@ -0,0 +1,10 @@ +<?% IF data.title %?> +<big><?% data.title %?></big> +<?% END %?> + +<?% FOREACH l = data.links %?> +<?% "<b>" IF data.highlight == l.key %?> +<a href="<?% l.value.link %?>"><?% l.value.text %?></a> +<?% "</b>" IF data.highlight == l.key %?> +<?% END %?> +<p> diff --git a/wml/widgets/menu.tmpl b/wml/widgets/menu.tmpl new file mode 100644 index 0000000..e73f5a8 --- /dev/null +++ b/wml/widgets/menu.tmpl @@ -0,0 +1,18 @@ +<?% message = data.shift %?> +<card id="first" title="MenuTemplate"> +<p> +<?% IF message %?> +Fehler: <?% message %?><br /> +<?% END %?> +<?% FOREACH field = data %?> + <?% group = field.0; short = field.1; name = field.2; descr = field.3 %?> + <?% IF ! oldgroup.defined %?> + <b><?% group | html %?></b><br /> + <?% ELSIF oldgroup != group && oldgroup.defined %?> + <b><?% group %?></b><br /> + <?% END %?> + <a href="?cmd=<?% name %?>"><?% name | uri | html %?></a><br /> + <?% oldgroup = group %?> +<?% END %?> +</p> +</card> diff --git a/wml/widgets/message.tmpl b/wml/widgets/message.tmpl new file mode 100644 index 0000000..3ccbae0 --- /dev/null +++ b/wml/widgets/message.tmpl @@ -0,0 +1,21 @@ +<?% trimmed = data FILTER trim %?> +<?% IF data.size > 1 || trimmed != "" %?> +<?% IF global.wml_card.defined %?> +<card id="message<?% global.wml_card %?>" title="<?% gettext("Message") %?>"> +<?% global.wml_card = global.wml_card + 1 %?> +<?% ELSE %?> +<card id="first" title="<?% gettext("Message") %?>"> +<?% global.wml_card = 1 %?> +<?% END %?> +<p> + <?% IF data.size <= 0 %?> + <?% data | html %?> + <?% ELSE %?> + <?% FOREACH zeile = data %?> + <?% zeile %?><br /> + <?% END %?> + <?% END %?> +<a href="#index"><img src="images/home.wbm" alt="<?% gettext("Menu") %?>" /></a> +</p> +</card> +<?% END %?> diff --git a/wml/widgets/password.tmpl b/wml/widgets/password.tmpl new file mode 100644 index 0000000..e1978db --- /dev/null +++ b/wml/widgets/password.tmpl @@ -0,0 +1,4 @@ +<?% data.msg | truncate(15) %?> : +<?% val = cgi.param(data.NAME) || data.def %?> +<input type="password" name="<?% data.NAME | replace('__','var') %?>" value="<?% entities(val) %?>" /><br/> +<?% global.fomularfield.push(data.NAME) %?> diff --git a/wml/widgets/radio.tmpl b/wml/widgets/radio.tmpl new file mode 100644 index 0000000..703d8b4 --- /dev/null +++ b/wml/widgets/radio.tmpl @@ -0,0 +1,17 @@ +<?% ############################################################################ + val = cgi.param(data.NAME) || data.def; + selectitem = 1; + FOREACH wert = data.choices; + IF wert == val; + selectitem = loop.count; + LAST; + END; + END; + ######################################################################### %?> +<?% data.msg | truncate(15) %?> : +<select name="<?% data.NAME | replace('__','var') %?>" ivalue="<?% selectitem %?>"> + <?% FOREACH wert = data.choices %?> + <option value="<?% entities(wert) %?>"><?% entities(wert) %?></option> + <?% END %?> +</select><br/> +<?% global.fomularfield.push(data.NAME) %?> diff --git a/wml/widgets/redirect.tmpl b/wml/widgets/redirect.tmpl new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/wml/widgets/redirect.tmpl @@ -0,0 +1 @@ + diff --git a/wml/widgets/start.tmpl b/wml/widgets/start.tmpl new file mode 100644 index 0000000..c5046df --- /dev/null +++ b/wml/widgets/start.tmpl @@ -0,0 +1,5 @@ +<?xml version="1.0"?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" + "http://www.wapforum.org/DTD/wml13.dtd"> +<wml> +<?% INCLUDE 'skin.cfg' %?> diff --git a/wml/widgets/string.tmpl b/wml/widgets/string.tmpl new file mode 100644 index 0000000..f305059 --- /dev/null +++ b/wml/widgets/string.tmpl @@ -0,0 +1,4 @@ +<?% data.msg | truncate(15) %?> : +<?% val = cgi.param(data.NAME) || data.def %?> +<input type="text" name="<?% data.NAME | replace('__','var') %?>" value="<?% entities(val) %?>" /><br/> +<?% global.fomularfield.push(data.NAME) %?> diff --git a/wml/widgets/table.tmpl b/wml/widgets/table.tmpl new file mode 100644 index 0000000..a184f6f --- /dev/null +++ b/wml/widgets/table.tmpl @@ -0,0 +1,35 @@ +<?% IF param.headingText %?> +<b><?% param.headingText %?></b> +<?% END %?> +<table> +<?% IF type == 'HASH' %?> + <?% IF ! param.hide_HeadRow %?> + <td>Name</td><td>Value</td> + <?% END %?> + <?% FOREACH name = data.keys.sort %?> + <tr> + <td width="50%"><?% name %?></td><td><?% data.$name.replace('\|', '<p>').replace('\n', '<br>') %?></td> + </tr> + <?% END %?> +<?% ELSE %?> + <?% fields = data.shift %?> + <tr> + <?% FOREACH field = fields %?> + <?% NEXT IF field.match('^__') %?> + <td> + <?% field | html %?> + </td> + <?% END %?> + </tr> + <?% FOREACH zeile = data %?> + <tr> + <?% c = -1 %?> + <?% FOREACH field = zeile %?> + <?% c = c + 1 %?> + <?% NEXT IF fields.$c.match('^__') %?> + <td><?% field.replace('\|', '<p>').replace('\n', '<br>') %?></td> + <?% END %?> + </tr> + <?% END %?> +<?% END %?> +</table> |
