From a81fd2a780e59ab918d172d0b4cc08be8780ec68 Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 24 Jul 2009 11:28:37 +0000 Subject: Changed all names to something less magical. --- server/xml/macros/current-1.0.xml | 283 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 283 insertions(+) create mode 100644 server/xml/macros/current-1.0.xml (limited to 'server/xml/macros/current-1.0.xml') diff --git a/server/xml/macros/current-1.0.xml b/server/xml/macros/current-1.0.xml new file mode 100644 index 0000000..1bfd6ea --- /dev/null +++ b/server/xml/macros/current-1.0.xml @@ -0,0 +1,283 @@ + + + + + + + + + out = 'Aktuelle:\n' + + if ( getValue('current.symptoms.right') == '' and getValue('current.symptoms.left') == '' ) + then + out = out .. 'ingen\n' + end + + if ( getValue('current.symptoms.right') ~= '' ) + then + out = out .. 'På højre øje har der været\n' + out = out .. getValue('current.symptoms.right') .. '\n' + end + + if ( getValue('current.symptoms.left') ~= '' ) + then + out = out .. 'På venstre øje har der været\n' + out = out .. getValue('current.symptoms.left') .. '\n' + end + + if ( getValue('current.symptoms.right') ~= '' or getValue('current.symptoms.left') ~= '' ) + then + out = out .. 'Symptomerne er opstået ' .. getValue('current.when') + .. ' og efterfølgende ' .. getValue('current.then') + end + + return out + + + + + + -- Set date to now if no other data available within last 24 hours. + return os.time(), os.time() - 24*60*60, 'system' + + + + + + + + +