summaryrefslogtreecommitdiff
path: root/skins/stone_flat
diff options
context:
space:
mode:
authorAndreas Brachold <vdr07@deltab.de>2008-01-13 12:51:22 +0000
committerAndreas Brachold <vdr07@deltab.de>2008-01-13 12:51:22 +0000
commite9d8133b5d78e4021acfb9b040cdc274e94b7fbc (patch)
treebe84aa4b605dc57dbfbc719f4053fb1a7b9516e5 /skins/stone_flat
parenta56ba431ded17e508543542fbf5ff87c0ef42ff6 (diff)
downloadxxv-e9d8133b5d78e4021acfb9b040cdc274e94b7fbc.tar.gz
xxv-e9d8133b5d78e4021acfb9b040cdc274e94b7fbc.tar.bz2
* Update translations
* RECORDS: use File::stat * MOVETIMER: Add redirect if move timer updated * TIMER: tnew with fast=1 create timer from event, without prompt * Skins/search: program timer from selected events by joined list * Skins/redirect: close frame automated after 3 seconds * xstyle: Fix searchbox+cancel => call command <undef>
Diffstat (limited to 'skins/stone_flat')
-rw-r--r--skins/stone_flat/alist.tmpl2
-rw-r--r--skins/stone_flat/clist.tmpl6
-rw-r--r--skins/stone_flat/display.tmpl2
-rw-r--r--skins/stone_flat/movetimerlist.tmpl6
-rw-r--r--skins/stone_flat/rdisplay.tmpl2
-rw-r--r--skins/stone_flat/rlist.tmpl10
-rw-r--r--skins/stone_flat/search.tmpl35
-rw-r--r--skins/stone_flat/tlist.tmpl8
-rw-r--r--skins/stone_flat/ulist.tmpl2
9 files changed, 53 insertions, 20 deletions
diff --git a/skins/stone_flat/alist.tmpl b/skins/stone_flat/alist.tmpl
index e6a509d..2a849a6 100644
--- a/skins/stone_flat/alist.tmpl
+++ b/skins/stone_flat/alist.tmpl
@@ -31,7 +31,7 @@
</a>
<?% END %?>
<?% IF allow('adelete') %?>
- <a href="javascript:sureandreload('<?% gettext("You will delete this autotimer") %?>','<?% escape(title) %?>','adelete','<?% id %?>')">
+ <a href="javascript:sureandreload('<?% gettext("Would you like to delete this autotimer?") %?>','<?% escape(title) %?>','adelete','<?% id %?>')">
<img src="images/delete.<?% global.imagetyp %?>" alt="" title="<?% gettext("Delete autotimer") %?>" />
</a>
<?% END %?>
diff --git a/skins/stone_flat/clist.tmpl b/skins/stone_flat/clist.tmpl
index 5d0dbee..d28b11f 100644
--- a/skins/stone_flat/clist.tmpl
+++ b/skins/stone_flat/clist.tmpl
@@ -23,7 +23,7 @@
</a>
<?% END %?>
<?% IF allow('cdelete') %?>
- <a href="javascript:surecmd('<?% gettext("You will delete this channel") %?>','<?% escape(name) %?>','cdelete','<?% POS %?>',620,670)">
+ <a href="javascript:surecmd('<?% gettext("Would you like to delete this channel?") %?>','<?% escape(name) %?>','cdelete','<?% POS %?>',620,670)">
<img src="images/delete.<?% global.imagetyp %?>" alt="" title="<?% gettext("Delete channel") %?>" />
</a>
<?% END %?>
@@ -230,8 +230,8 @@
<tr>
<td class="sidetext">
<?% IF allow('cdelete') %?>
- <a href="javascript:DeleteSelected('<?% gettext("You would delete follow channels?") %?>','<?% gettext("Nothing selected!") %?>','cdelete',document.clist,620,670)"><img src="images/delete.<?% global.imagetyp %?>" alt="" /></a>&nbsp;
- <a href="javascript:DeleteSelected('<?% gettext("You would delete follow channels?") %?>','<?% gettext("Nothing selected!") %?>','cdelete',document.clist,620,670)"><?% gettext("Delete channels",20) %?></a><br />
+ <a href="javascript:DoitReally('<?% gettext("Would you like to delete these channels?") %?>','<?% gettext("Nothing selected!") %?>','cdelete',document.clist,620,670,'delete')"><img src="images/delete.<?% global.imagetyp %?>" alt="" /></a>&nbsp;
+ <a href="javascript:DoitReally('<?% gettext("Would you like to delete these channels?") %?>','<?% gettext("Nothing selected!") %?>','cdelete',document.clist,620,670,'delete')"><?% gettext("Delete channels",20) %?></a><br />
<?% END %?>
</td>
</tr>
diff --git a/skins/stone_flat/display.tmpl b/skins/stone_flat/display.tmpl
index 14880f5..e4c804e 100644
--- a/skins/stone_flat/display.tmpl
+++ b/skins/stone_flat/display.tmpl
@@ -86,7 +86,7 @@ END %?>
<td>
<div class="description" style="white-space: nowrap">
<?% IF allow('switch') %?>
- <a href="javascript:post('switch','<?% channel %?>')">
+ <a href="javascript:post('switch','<?% channelid %?>')">
<img src="images/watch.<?% global.imagetyp %?>" alt="" title="<?% gettext("Switch") %?>" /></a>&nbsp;
<?% END %?>
<?% IF allow('livestream') %?>
diff --git a/skins/stone_flat/movetimerlist.tmpl b/skins/stone_flat/movetimerlist.tmpl
index 703793a..7a988f3 100644
--- a/skins/stone_flat/movetimerlist.tmpl
+++ b/skins/stone_flat/movetimerlist.tmpl
@@ -11,7 +11,7 @@
</a>
<?% END %?>
<?% IF allow('movetimerdelete') %?>
- <a href="javascript:surecmd('<?% gettext("You will delete this rule") %?>','<?% escape(source) %?> - <?% escape(destination) %?>','movetimerdelete','<?% id %?>',620,670)">
+ <a href="javascript:surecmd('<?% gettext("Would you like to delete this rule?") %?>','<?% escape(source) %?> - <?% escape(destination) %?>','movetimerdelete','<?% id %?>',620,670)">
<img src="images/delete.<?% global.imagetyp %?>" alt="" title="<?% gettext("Delete rule to move timer") %?>" />
</a>
<?% END %?>
@@ -121,8 +121,8 @@
<tr>
<td class="sidetext">
<?% IF allow('movetimerdelete') %?>
- <a href="javascript:DeleteSelected('<?% gettext("You would delete follow rules?") %?>','<?% gettext("Nothing selected!") %?>','movetimerdelete',document.movetimerlist,620,670)"><img src="images/delete.<?% global.imagetyp %?>" alt="" /></a>&nbsp;
- <a href="javascript:DeleteSelected('<?% gettext("You would delete follow rules?") %?>','<?% gettext("Nothing selected!") %?>','movetimerdelete',document.movetimerlist,620,670)"><?% gettext("Delete rules to move timer",20) %?></a><br />
+ <a href="javascript:DoitReally('<?% gettext("Would you like to delete these rules?") %?>','<?% gettext("Nothing selected!") %?>','movetimerdelete',document.movetimerlist,620,670,'delete')"><img src="images/delete.<?% global.imagetyp %?>" alt="" /></a>&nbsp;
+ <a href="javascript:DoitReally('<?% gettext("Would you like to delete these rules?") %?>','<?% gettext("Nothing selected!") %?>','movetimerdelete',document.movetimerlist,620,670,'delete')"><?% gettext("Delete rules to move timer",20) %?></a><br />
<?% END %?>
</td>
</tr>
diff --git a/skins/stone_flat/rdisplay.tmpl b/skins/stone_flat/rdisplay.tmpl
index f99f439..7a2e323 100644
--- a/skins/stone_flat/rdisplay.tmpl
+++ b/skins/stone_flat/rdisplay.tmpl
@@ -92,7 +92,7 @@
</a>
<?% END %?>
<?% IF allow('rdelete') %?>
- <a href="javascript:sure('<?% gettext("Do you want to delete the following recordings?") %?>','<?% escape(title) %?><?% IF subtitle.length > 0 %?>~<?% escape(subtitle) %?><?% END %?>','rdelete','<?% id %?>')">
+ <a href="javascript:sure('<?% gettext("Would you like to delete this recording?") %?>','<?% escape(title) %?><?% IF subtitle.length > 0 %?>~<?% escape(subtitle) %?><?% END %?>','rdelete','<?% id %?>')">
<img src="images/delete.<?% global.imagetyp %?>" alt="" title="<?% gettext("Delete recording") %?>" />
</a>
<?% END %?>
diff --git a/skins/stone_flat/rlist.tmpl b/skins/stone_flat/rlist.tmpl
index 6004fc5..2d9922a 100644
--- a/skins/stone_flat/rlist.tmpl
+++ b/skins/stone_flat/rlist.tmpl
@@ -96,7 +96,7 @@
</a>
<?% END %?>
<?% IF allow('rdelete') %?>
- <a href="javascript:surecmd('<?% gettext("Do you want to delete the following recordings?") %?>','<?% escape(fulltitle) %?>','rdelete','<?% id %?>',620,670)">
+ <a href="javascript:surecmd('<?% gettext("Would you like to delete this recording?") %?>','<?% escape(fulltitle) %?>','rdelete','<?% id %?>',620,670)">
<img src="images/delete.<?% global.imagetyp %?>" alt="" title="<?% gettext("Delete recording") %?>" />
</a>
<?% END %?>
@@ -228,8 +228,8 @@
<?% IF allow('rrecover') %?>
<tr>
<td class="sidetext">
- <a title="<?% gettext("Recover deleted recordings") %?>" href="javascript:popup('rrecover',620,670,1)"><img src="images/recover.<?% global.imagetyp %?>" alt="" /></a>&nbsp;
- <a title="<?% gettext("Recover deleted recordings") %?>" href="javascript:popup('rrecover',620,670,1)"><?% gettext("Recover deleted recordings",20) %?></a>
+ <a title="<?% gettext("Recover deleted recordings") %?>" href="javascript:popupcmd('rrecover',620,670,1)"><img src="images/recover.<?% global.imagetyp %?>" alt="" /></a>&nbsp;
+ <a title="<?% gettext("Recover deleted recordings") %?>" href="javascript:popupcmd('rrecover',620,670,1)"><?% gettext("Recover deleted recordings",20) %?></a>
</td>
</tr>
<?% END %?>
@@ -305,8 +305,8 @@
<tr>
<td class="sidetext">
<?% IF allow('rdelete') %?>
- <a href="javascript:DeleteSelected('<?% gettext("Do you want to delete the following recordings?") %?>','<?% gettext("Nothing selected!") %?>','rdelete',document.rlist,620,670)"><img src="images/delete.<?% global.imagetyp %?>" alt="" /></a>&nbsp;
- <a href="javascript:DeleteSelected('<?% gettext("Do you want to delete the following recordings?") %?>','<?% gettext("Nothing selected!") %?>','rdelete',document.rlist,620,670)"><?% gettext("Delete recordings",20) %?></a><br />
+ <a href="javascript:DoitReally('<?% gettext("Would you like to delete these recordings?") %?>','<?% gettext("Nothing selected!") %?>','rdelete',document.rlist,620,670,'delete')"><img src="images/delete.<?% global.imagetyp %?>" alt="" /></a>&nbsp;
+ <a href="javascript:DoitReally('<?% gettext("Would you like to delete these recordings?") %?>','<?% gettext("Nothing selected!") %?>','rdelete',document.rlist,620,670,'delete')"><?% gettext("Delete recordings",20) %?></a><br />
<?% END %?>
</td>
</tr>
diff --git a/skins/stone_flat/search.tmpl b/skins/stone_flat/search.tmpl
index 6d8685f..4757b9b 100644
--- a/skins/stone_flat/search.tmpl
+++ b/skins/stone_flat/search.tmpl
@@ -2,6 +2,8 @@
<?% USE date %?>
<body class="frame">
<div id="body">
+<?% enableform = ( allow('tnew') ) && data.size > 1 %?>
+<?% activeform = 0 %?>
<?% ######################################################################## %?>
<?% BLOCK RowButtons %?>
<a href="?cmd=search&amp;data=<?% url( title ) %?>">
@@ -45,6 +47,11 @@
<?% IF subtitle.length > 0 %?><font class="subtitle<?% IF state != "";" ";state;END %?>">&nbsp;-&nbsp;<?% chop(subtitle,55) %?></font><?% END %?>
</a>
</td>
+ <td valign="middle" align="left" style="white-space: nowrap">
+ <?% IF enableform && !param.timers.exists(id); activeform = 1 %?>
+ <input class="push" type="checkbox" value="<?% id %?>" name="<?% title %?><?% IF subtitle != "";"~";subtitle;END %?>" />
+ <?% END %?>
+ </td>
<td class="fieldinline<?% IF state != "";" ";state;END %?>" style="white-space: nowrap; text-align: right;">
<?% IF pdc && pdc != start %?> (<?% gettext("PDC") %?>:<?% pdc %?>) <?% END %?>
<?% start %?>&nbsp;-&nbsp;<?% stop %?>
@@ -57,7 +64,7 @@
<?% IF global.hideDescription != 1 && description.length > 0 %?>
<tr<?% ' class="two"' IF z mod 2 == 0 %?>>
<td class="fieldinline" >&nbsp;</td>
- <td class="fieldinline" colspan="4">
+ <td class="fieldinline" colspan="5">
<a href="javascript:popup('display','<?% id %?>',620,670,0)" class="fieldinline">
<font class="description<?% IF state != "";" ";state;END %?>"><?% chop(description,100,1) %?></font>
</a>
@@ -69,6 +76,7 @@
<h1><?% gettext("Search text") %?> : <?% cgi.param('data') %?></h1>
<?% IF data.size > 1 %?>
<?% fields = data.shift %?>
+<form name="searchlist" action="">
<?% FOREACH zeile = data %?>
<?% IF debug;"<!-- Item: ";FOREACH x = zeile;loop.count - 1;":";x.replace("-"," ");"|";END;"-->";END %?>
<?% id=zeile.0;title=zeile.1;subtitle=zeile.2;sender=zeile.3;channel=zeile.4;start=zeile.5;stop=zeile.6;description=zeile.8;pdc=zeile.9 %?>
@@ -98,6 +106,7 @@
</tr>
<tr><td class="largebottom"></td></tr>
</table>
+</form>
<?% END %?>
</div>
<!-- ###### Seite ###### -->
@@ -147,6 +156,30 @@
<td class="sidebottom"></td>
</tr>
</table>
+<?% IF activeform %?>
+ <table summary="">
+ <tr><td class="sidehead"><?% gettext("To record") %?></td></tr>
+ <tr>
+ <td class="sidetext">
+ <a href="javascript:selAll(document.searchlist,1)"><img src="images/select.<?% global.imagetyp %?>" alt="" /></a>&nbsp;
+ <a href="javascript:selAll(document.searchlist,1)"><?% gettext("Select all",20) %?></a><br />
+ <a href="javascript:selAll(document.searchlist,0)"><img src="images/deselect.<?% global.imagetyp %?>" alt="" /></a>&nbsp;
+ <a href="javascript:selAll(document.searchlist,0)"><?% gettext("Unselect all",20) %?></a><br />
+ <a href="javascript:reverse(document.searchlist)"><img src="images/invers.<?% global.imagetyp %?>" alt="" /></a>&nbsp;
+ <a href="javascript:reverse(document.searchlist)"><?% gettext("Reverse select",20) %?></a>
+ </td>
+ </tr>
+ <tr>
+ <td class="sidetext">
+ <a href="javascript:DoitReally('<?% gettext("Would you like to record these events?") %?>','<?% gettext("Nothing selected!") %?>','tnew&__fast=1',document.searchlist,620,670,'record')"><img src="images/record.<?% global.imagetyp %?>" alt="" /></a>&nbsp;
+ <a href="javascript:DoitReally('<?% gettext("Would you like to record these events?") %?>','<?% gettext("Nothing selected!") %?>','tnew&__fast=1',document.searchlist,620,670,'record')"><?% gettext("Record selected events",20) %?></a><br />
+ </td>
+ </tr>
+ <tr>
+ <td class="sidebottom"></td>
+ </tr>
+ </table>
+<?% END %?>
<p id="sidefooter">&nbsp;</p>
</div>
<?% INCLUDE header.inc %?>
diff --git a/skins/stone_flat/tlist.tmpl b/skins/stone_flat/tlist.tmpl
index c034bad..4f591c5 100644
--- a/skins/stone_flat/tlist.tmpl
+++ b/skins/stone_flat/tlist.tmpl
@@ -21,7 +21,7 @@
min = total div 60 mod 60;
hour = total div 3600;
%?>
-<?% IF hour > 0 %?><?% hour FILTER format('%02d') %?>:<?% END %?><?% min FILTER format('%02d') %?>
+<?% hour FILTER format('%02d') %?>:<?% min FILTER format('%02d') %?>
<?% END %?>
</p>
<?% END %?>
@@ -57,7 +57,7 @@
</a>
<?% END %?>
<?% IF allow('tdelete') %?>
- <a href="javascript:surecmd('<?% gettext("Would You like to delete the following timer(s)?") %?>','<?% escape(title) %?><?% IF subtitle != "";"~";escape(subtitle);END %?>','tdelete','<?% id %?>',620,670)">
+ <a href="javascript:surecmd('<?% gettext("Would you like to delete this timer?") %?>','<?% escape(title) %?><?% IF subtitle != "";"~";escape(subtitle);END %?>','tdelete','<?% id %?>',620,670)">
<img src="images/delete.<?% global.imagetyp %?>" alt="" title="<?% gettext("Delete timer") %?>" />
</a>
<?% END %?>
@@ -242,8 +242,8 @@
<a href="javascript:selToggle('<?% gettext("Nothing selected!") %?>',document.tlist)"><?% gettext("Toggle timer",20) %?></a><br />
<?% END %?>
<?% IF allow('tdelete') %?>
- <a href="javascript:DeleteSelected('<?% gettext("Would You like to delete the following timer(s)?") %?>','<?% gettext("Nothing selected!") %?>','tdelete',document.tlist,620,670)"><img src="images/delete.<?% global.imagetyp %?>" alt="" /></a>&nbsp;
- <a href="javascript:DeleteSelected('<?% gettext("Would You like to delete the following timer(s)?") %?>','<?% gettext("Nothing selected!") %?>','tdelete',document.tlist,620,670)"><?% gettext("Delete timer",20) %?></a><br />
+ <a href="javascript:DoitReally('<?% gettext("Would you like to delete these timers?") %?>','<?% gettext("Nothing selected!") %?>','tdelete',document.tlist,620,670,'delete')"><img src="images/delete.<?% global.imagetyp %?>" alt="" /></a>&nbsp;
+ <a href="javascript:DoitReally('<?% gettext("Would you like to delete these timers?") %?>','<?% gettext("Nothing selected!") %?>','tdelete',document.tlist,620,670,'delete')"><?% gettext("Delete timer",20) %?></a><br />
<?% END %?>
</td>
</tr>
diff --git a/skins/stone_flat/ulist.tmpl b/skins/stone_flat/ulist.tmpl
index 21d2f96..4d82cc0 100644
--- a/skins/stone_flat/ulist.tmpl
+++ b/skins/stone_flat/ulist.tmpl
@@ -9,7 +9,7 @@
</a>
<?% END %?>
<?% IF allow('udelete') %?>
- <a href="javascript:sureandreload('<?% gettext("Do you really want to delete this user account?") %?>','<?% escape(user) %?>','udelete','<?% id %?>')">
+ <a href="javascript:sureandreload('<?% gettext("Would you like to delete this account?") %?>','<?% escape(user) %?>','udelete','<?% id %?>')">
<img src="images/delete.<?% global.imagetyp %?>" alt="" title="<?% gettext("Delete user account") %?>" />
</a>
<?% END %?>