summaryrefslogtreecommitdiff
path: root/pages/error.ecpp
diff options
context:
space:
mode:
authorSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-07 18:42:45 +0000
committerSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-07 18:42:45 +0000
commitab7a2112f96bb48ee2713ada4c9ce73322cf3cba (patch)
tree44f229f1c011fc135571849c386f78bbb5a9af48 /pages/error.ecpp
parent9508850d788d905b21cd2622b22cb76e80cf34ca (diff)
downloadvdr-plugin-live-ab7a2112f96bb48ee2713ada4c9ce73322cf3cba.tar.gz
vdr-plugin-live-ab7a2112f96bb48ee2713ada4c9ce73322cf3cba.tar.bz2
- simplified error handling
- moved error_widget to error.ecpp as subcomponent - introduced error handling where necessary - moved creation of timer settings string from page to code - added redirect to edit_timer.ecpp after saving a timer
Diffstat (limited to 'pages/error.ecpp')
-rw-r--r--pages/error.ecpp28
1 files changed, 19 insertions, 9 deletions
diff --git a/pages/error.ecpp b/pages/error.ecpp
index 241f1a6..196f147 100644
--- a/pages/error.ecpp
+++ b/pages/error.ecpp
@@ -1,10 +1,12 @@
+<%pre>
+#include <vdr/i18n.h>
+
+</%pre>
<%args>
-errorTitle;
-errorMessage;
+ pageTitle;
+ errorTitle = tr("Page error");
+ errorMessage;
</%args>
-<%request scope="global">
-std::string pageTitle;
-</%request>
<html>
<head>
<title>VDR-Live - <$ pageTitle $></title>
@@ -16,10 +18,18 @@ std::string pageTitle;
<& menu >
</div>
<div class="inhalt">
- <div class="head_box">
- <$ pageTitle $>
- </div>
- <& error_widget errorTitle=(errorTitle) errorMessage=(errorMessage) &>
+ <& pageelems.header_box content=(pageTitle) &>
+ <& error.error_widget errorTitle=(errorTitle) errorMessage=(errorMessage) &>
</div>
</body>
</html>
+<%def error_widget>
+ <%args>
+ errorTitle;
+ errorMessage;
+ </%args>
+ <table class="error" cellpadding="0" cellspacing="0">
+ <tr><td class="title"><$ errorTitle $></td></tr>
+ <tr><td class="message"><$ errorMessage $></td></tr>
+ </table>
+</%def>