summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.cvsignore4
-rw-r--r--i18n.cpp23
-rw-r--r--pages/Makefile4
-rw-r--r--pages/menu.ecpp3
-rw-r--r--pages/recordings.ecpp56
5 files changed, 86 insertions, 4 deletions
diff --git a/.cvsignore b/.cvsignore
new file mode 100644
index 0000000..53f675a
--- /dev/null
+++ b/.cvsignore
@@ -0,0 +1,4 @@
+.git
+.gitignore
+.libs
+debian \ No newline at end of file
diff --git a/i18n.cpp b/i18n.cpp
index 0c1b32e..b319be7 100644
--- a/i18n.cpp
+++ b/i18n.cpp
@@ -113,7 +113,28 @@ const tI18nPhrase Phrases[] = {
"", // Dansk
"", //Czech
},
-
+ { "Recordings", // English
+ "Aufnahmen", // Deutsch
+ "", // Slovenski
+ "", // Italiano
+ "", // Nederlands
+ "", // Português
+ "", // Français
+ "", // Norsk
+ "", // Finnish
+ "", // Polski
+ "", // Español
+ "", // Greek
+ "", // Svenska
+ "", // Românã
+ "", // Magyar
+ "", // Català
+ "", // Russian
+ "", // Hrvatski
+ "", // Eesti
+ "", // Dansk
+ "", //Czech
+ },
/*
{ "", // English
"", // Deutsch
diff --git a/pages/Makefile b/pages/Makefile
index 9024106..d55b4a5 100644
--- a/pages/Makefile
+++ b/pages/Makefile
@@ -15,8 +15,8 @@ VDRDIR ?= ../../../..
### The object files (add further files here):
-OBJS = menu.o event_widget.o channels.o schedule.o whats_on_now.o whats_on_next.o timers.o \
- screenshot.o
+OBJS = menu.o event_widget.o channels.o recordings.o schedule.o \
+ screenshot.o timers.o whats_on_now.o whats_on_next.o
### Default rules:
diff --git a/pages/menu.ecpp b/pages/menu.ecpp
index 07921b9..8fc6b5e 100644
--- a/pages/menu.ecpp
+++ b/pages/menu.ecpp
@@ -6,5 +6,6 @@
<a href="whats_on_now.html"><$ tr("What's on now?") $></a><br/>
<a href="whats_on_next.html"><$ tr("What's on next?") $></a><br/>
<a href="schedule.html"><$ tr("Schedule") $></a><br />
- <a href="timers.html"><$ tr("Timers") $></a>
+ <a href="timers.html"><$ tr("Timers") $></a><br />
+ <a href="recordings.html"><$ tr("Recordings") $></a>
</div> \ No newline at end of file
diff --git a/pages/recordings.ecpp b/pages/recordings.ecpp
new file mode 100644
index 0000000..b51b232
--- /dev/null
+++ b/pages/recordings.ecpp
@@ -0,0 +1,56 @@
+<%pre>
+#include <vdr/plugin.h>
+#include <vdr/recording.h>
+#include <vdr/config.h>
+#include <vdr/i18n.h>
+#include "tools.h"
+
+using namespace vdrlive;
+
+</%pre>
+<%args>
+</%args>
+<{
+
+
+}>
+<html>
+ <head>
+ <title>VDR-Live - <$ tr("Recordings") $></title>
+ <link rel="stylesheet" type="text/css" href="/styles.css" />
+ </head>
+ <body>
+ <div class="left_area">
+ <img src="logo.png" alt="VDR Live!" border="0" />
+<& menu >
+ </div>
+ <div class="inhalt">
+ <div class="head_box">
+ <$ tr("Recordings") $>
+ </div>
+% if (Recordings.Count() == 0) {
+ Keine Aufnahmen vorhanden
+% } else {
+ <table class="recordings" cellspacing="0" cellpadding="0">
+ <tr>
+ <td class="head"><$ tr("Date") $></td>
+ <td class="head"><$ tr("Time") $></td>
+ <td class="head"><$ tr("Name") $></td>
+ </tr>
+<{
+ for (cRecording* recording = Recordings.First(); recording != 0; recording = Recordings.Next( recording ) ) {
+ const cRecordingInfo* recInfo = recording->Info();
+}>
+ <tr class="recording">
+ <td><$ FormatDateTime(tr("%a, %b %d"), recording->start) $></td>
+ <td><$ FormatDateTime(tr("%I:%M %p"), recording->start) $></td>
+ <td><$ recording->Name() $></td>
+ </tr>
+<{
+ }
+ }
+}>
+ </table>
+ </div>
+ </body>
+</html>