Mr Marcel,
I am a newbie in lua script.
I am trying translate the wado server main page to my language and I have some problems.
My file script is teste.lua and I have settings in dicom.ini to it.
Whe I use http://mysite.com/cgi-bin/dgate.exe?mode=teste, the main page appears ok in Broswse.
The problems:
1. After I click to "Listar Pacientes Locais" (List Local Patients), the part of this script
if CGI('mode') == 'querypatients' then -- is never executed after I click to submit querypatients by input button
It was calling the default english hander to this action, and I have a listing of patients in English
2. I have also an error in this part:
query = CGI('query_string');
if (query) then -- Here I have an error why?
if CGI('mode') == 'querypatients' then -- is never executed after I click to submit querypatients by input button
Any help will be appreciated.
Thanks in advance,
Luiz