[REF] surveys: Modernise database access in list_survey_questions and rename some vars

git-svn-id: file:///var/local/code.tiki.org/tikisvn/trunk@50495 b456876b-0849-0410-b77d-98878d47e9d5
[FIX] surveys: Propagate answers in survey form in case requirements not fully met (so you don't have to start again)

git-svn-id: file:///var/local/code.tiki.org/tikisvn/trunk@50496 b456876b-0849-0410-b77d-98878d47e9d5
[FIX] surveys: Use sefurl for take_survey links

git-svn-id: file:///var/local/code.tiki.org/tikisvn/trunk@50497 b456876b-0849-0410-b77d-98878d47e9d5
[ENH] surveys: Move types and type labels into lib, and make the types menu show relevant tip and inputs according to value

git-svn-id: file:///var/local/code.tiki.org/tikisvn/trunk@50498 b456876b-0849-0410-b77d-98878d47e9d5
[FIX] filegals: Fix parent gallery link logic

git-svn-id: file:///var/local/code.tiki.org/tikisvn/branches/12.x@50499 b456876b-0849-0410-b77d-98878d47e9d5
[MRG] Automatic merge, branches/12.x 50483 to 50499

git-svn-id: file:///var/local/code.tiki.org/tikisvn/trunk@50500 b456876b-0849-0410-b77d-98878d47e9d5
[FIX] fgal_browse: Don't show parent gallery link (only used in surveys thumbnail type questions)

git-svn-id: file:///var/local/code.tiki.org/tikisvn/trunk@50501 b456876b-0849-0410-b77d-98878d47e9d5