From be21111391e17e714ba6865cbb790c8028196ace Mon Sep 17 00:00:00 2001
From: Michael Wiebusch
Date: Thu, 4 Jul 2013 15:27:45 +0200
Subject: [PATCH] now checking if field values are in allowed range
---
layout/jtageditor.css | 5 +++
xml_spielwiese/cgitest.pl | 73 ++++++++++++++++++++++++++++++---------
2 files changed, 62 insertions(+), 16 deletions(-)
diff --git a/layout/jtageditor.css b/layout/jtageditor.css
index b19854f..dd5b8e0 100644
--- a/layout/jtageditor.css
+++ b/layout/jtageditor.css
@@ -99,6 +99,11 @@ table.registers>tbody>tr>td:nth-child(2) {
}
+.fieldError
+{
+background:red;
+}
+
.fileLevel
{
background:#CCFFCC;
diff --git a/xml_spielwiese/cgitest.pl b/xml_spielwiese/cgitest.pl
index dd97f5a..227fa0f 100755
--- a/xml_spielwiese/cgitest.pl
+++ b/xml_spielwiese/cgitest.pl
@@ -3,9 +3,6 @@ print "Content-type: text/html\n\n";
# TODO
# what happens when files are not writable?
-# delete button
-# field size information
-# check for maximum value
# DONE
# do not include wrong type, different specfile
@@ -14,6 +11,9 @@ print "Content-type: text/html\n\n";
# nested include graphic
# cannot inherit from files with the wrong specification!
# do not accept "..." as input file
+# delete button
+# field size information
+# check for maximum value
my $me = "cgitest.pl";
@@ -309,11 +309,13 @@ sub buildAncestry { # recursive
my $xmlfile = $confDir . "/" . $xmlfileName;
# check if all files in the ancestry really exist!
- unless (-e $xmlfile) {
+ unless ( -e $xmlfile ) {
print "
You are trying to include a file that does not exist