Die Funktion Form::error(), die u.a. auch von Form::isblank() und Form::dberror(...
authorMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 15 Feb 2006 09:46:45 +0000 (09:46 +0000)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 15 Feb 2006 09:46:45 +0000 (09:46 +0000)
SL/Form.pm
templates/webpages/generic/error.html [new file with mode: 0644]
templates/webpages/generic/error_de.html [new file with mode: 0644]

index 241cf0b..90f4120 100644 (file)
@@ -245,17 +245,7 @@ sub error {
     $msg =~ s/\n/<br>/g;
 
     $self->header;
-
-    print qq|
-    <body>
-
-    <h2 class=error>Error!</h2>
-
-    <p><b>$msg</b>
-
-    </body>
-    </html>
-    |;
+    $self->show_generic_error($msg);
 
     die "Error: $msg\n";
 
diff --git a/templates/webpages/generic/error.html b/templates/webpages/generic/error.html
new file mode 100644 (file)
index 0000000..eb43ed7
--- /dev/null
@@ -0,0 +1,14 @@
+<body>
+ <table width=100%>
+  <tr>
+   <th class=listtop><TMPL_VAR NAME=title DEFAULT="Error!"></th>
+  </tr>
+  <tr height="5"></tr>
+
+  <tr><td><TMPL_VAR NAME=label_error></td></tr>
+ </table>
+
+ <TMPL_VAR NAME=DEBUG>
+
+</body>
+</html>
diff --git a/templates/webpages/generic/error_de.html b/templates/webpages/generic/error_de.html
new file mode 100644 (file)
index 0000000..838c706
--- /dev/null
@@ -0,0 +1,14 @@
+<body>
+ <table width=100%>
+  <tr>
+   <th class=listtop><TMPL_VAR NAME=title DEFAULT="Fehler!"></th>
+  </tr>
+  <tr height="5"></tr>
+
+  <tr><td><TMPL_VAR NAME=label_error></td></tr>
+ </table>
+
+ <TMPL_VAR NAME=DEBUG>
+
+</body>
+</html>