From 278fe609932e683ffc39786d1e9648cedd2295aa Mon Sep 17 00:00:00 2001 From: senator Date: Thu, 27 May 2010 16:20:21 +0000 Subject: initial release --- server/xml/macros/farvesynstest-1.0.xml | 594 +++++++++++++++++++++ .../macros/ref_behandling-oejendrypning-1.0.xml | 58 ++ server/xml/macros/tao_konklusion-1.0.xml | 84 +++ 3 files changed, 736 insertions(+) create mode 100644 server/xml/macros/farvesynstest-1.0.xml create mode 100644 server/xml/macros/ref_behandling-oejendrypning-1.0.xml create mode 100644 server/xml/macros/tao_konklusion-1.0.xml (limited to 'server') diff --git a/server/xml/macros/farvesynstest-1.0.xml b/server/xml/macros/farvesynstest-1.0.xml new file mode 100644 index 0000000..b3d8462 --- /dev/null +++ b/server/xml/macros/farvesynstest-1.0.xml @@ -0,0 +1,594 @@ + + + + transformation = '' + vanishing = '' + hidden = '' + diagnostic = '' + out = '' + + if ( getValue('farvesynstest.transformation.12.checkbox') == 'correct' ) + then + transformation = transformation .. '12 ' + else + transformation = transformation .. getValue('farvesynstest.transformation.12') .. ' ' + end + if ( getValue('farvesynstest.transformation.8.checkbox') == 'correct' ) + then + transformation = transformation .. '8 ' + else + transformation = transformation .. getValue('farvesynstest.transformation.8') .. ' ' + end + if ( getValue('farvesynstest.transformation.6.checkbox') == 'correct' ) + then + transformation = transformation .. '6 ' + else + transformation = transformation .. getValue('farvesynstest.transformation.6') .. ' ' + end + if ( getValue('farvesynstest.transformation.29.checkbox') == 'correct' ) + then + transformation = transformation .. '29 ' + else + transformation = transformation .. getValue('farvesynstest.transformation.29') .. ' ' + end + if ( getValue('farvesynstest.transformation.57.checkbox') == 'correct' ) + then + transformation = transformation .. '57 ' + else + transformation = transformation .. getValue('farvesynstest.transformation.57') .. ' ' + end + if ( getValue('farvesynstest.transformation.5.checkbox') == 'correct' ) + then + transformation = transformation .. '5 ' + else + transformation = transformation .. getValue('farvesynstest.transformation.5') .. ' ' + end + if ( getValue('farvesynstest.transformation.3.checkbox') == 'correct' ) + then + transformation = transformation .. '3 ' + else + transformation = transformation .. getValue('farvesynstest.transformation.3') .. ' ' + end + if ( getValue('farvesynstest.transformation.15.checkbox') == 'correct' ) + then + transformation = transformation .. '15 ' + else + transformation = transformation .. getValue('farvesynstest.transformation.15') .. ' ' + end + if ( getValue('farvesynstest.transformation.74.checkbox') == 'correct' ) + then + transformation = transformation .. '74 ' + else + transformation = transformation .. getValue('farvesynstest.transformation.74') .. ' ' + end + + if ( getValue('farvesynstest.vanishing.2.checkbox') == 'correct' ) + then + vanishing = vanishing .. '2 ' + else + vanishing = vanishing .. getValue('farvesynstest.vanishing.2') .. ' ' + end + if ( getValue('farvesynstest.vanishing.6.checkbox') == 'correct' ) + then + vanishing = vanishing .. '6 ' + else + vanishing = vanishing .. getValue('farvesynstest.vanishing.6') .. ' ' + end + if ( getValue('farvesynstest.vanishing.97.checkbox') == 'correct' ) + then + vanishing = vanishing .. '97 ' + else + vanishing = vanishing .. getValue('farvesynstest.vanishing.97') .. ' ' + end + if ( getValue('farvesynstest.vanishing.45.checkbox') == 'correct' ) + then + vanishing = vanishing .. '45 ' + else + vanishing = vanishing .. getValue('farvesynstest.vanishing.45') .. ' ' + end + if ( getValue('farvesynstest.vanishing.5.checkbox') == 'correct' ) + then + vanishing = vanishing .. '5 ' + else + vanishing = vanishing .. getValue('farvesynstest.vanishing.5') .. ' ' + end + if ( getValue('farvesynstest.vanishing.7.checkbox') == 'correct' ) + then + vanishing = vanishing .. '7 ' + else + vanishing = vanishing .. getValue('farvesynstest.vanishing.7') .. ' ' + end + if ( getValue('farvesynstest.vanishing.16.checkbox') == 'correct' ) + then + vanishing = vanishing .. '16 ' + else + vanishing = vanishing .. getValue('farvesynstest.vanishing.16') .. ' ' + end + if ( getValue('farvesynstest.vanishing.73.checkbox') == 'correct' ) + then + vanishing = vanishing .. '73 ' + else + vanishing = vanishing .. getValue('farvesynstest.vanishing.73') .. ' ' + end + + if ( getValue('farvesynstest.hidden.1.checkbox') == 'correct' ) + then + hidden = hidden .. '- ' + else + hidden = hidden .. getValue('farvesynstest.hidden.1') .. ' ' + end + if ( getValue('farvesynstest.hidden.2.checkbox') == 'correct' ) + then + hidden = hidden .. '- ' + else + hidden = hidden .. getValue('farvesynstest.hidden.2') .. ' ' + end + if ( getValue('farvesynstest.hidden.3.checkbox') == 'correct' ) + then + hidden = hidden .. '- ' + else + hidden = hidden .. getValue('farvesynstest.hidden.3') .. ' ' + end + if ( getValue('farvesynstest.hidden.4.checkbox') == 'correct' ) + then + hidden = hidden .. '- ' + else + hidden = hidden .. getValue('farvesynstest.hidden.4') .. ' ' + end + + if ( getValue('farvesynstest.diagnostic.26.checkbox') == 'correct' ) + then + diagnostic = diagnostic .. '26 ' + else + diagnostic = diagnostic .. getValue('farvesynstest.diagnostic.26') .. ' ' + end + if ( getValue('farvesynstest.diagnostic.42.checkbox') == 'correct' ) + then + diagnostic = diagnostic .. '42 ' + else + diagnostic = diagnostic .. getValue('farvesynstest.diagnostic.42') .. ' ' + end + if ( getValue('farvesynstest.diagnostic.35.checkbox') == 'correct' ) + then + diagnostic = diagnostic .. '35 ' + else + diagnostic = diagnostic .. getValue('farvesynstest.diagnostic.35') .. ' ' + end + if ( getValue('farvesynstest.diagnostic.96.checkbox') == 'correct' ) + then + diagnostic = diagnostic .. '96 ' + else + diagnostic = diagnostic .. getValue('farvesynstest.diagnostic.96') .. ' ' + end + + out = out .. "Transformation:" + for i = 0, string.len(transformation) - 15, 1 do + out = out .. ' ' + end + out = out .. "| Vanishing:\n" + out = out .. transformation .. ' | ' + out = out .. vanishing .. '\n' + out = out .. "Hidden:" + for i = 0, string.len(hidden) - 7, 1 do + out = out .. ' ' + end + out = out .. "| Diagnostic\n" + out = out .. hidden .. " | " + out = out .. diagnostic .. '\n' + + return out + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +