Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
simple-survey
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
simple-survey
Commits
cab8bac8
Commit
cab8bac8
authored
May 15, 2009
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fixed simple-survey, now that there is a package_id parameter in acs_objects
parent
16ad5953
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
11 deletions
+22
-11
one.tcl
www/admin/one.tcl
+22
-11
No files found.
www/admin/one.tcl
View file @
cab8bac8
...
...
@@ -19,17 +19,28 @@ ad_require_permission $survey_id survsimp_admin_survey
set
package_id
[
ad_conn package_id
]
# Get the survey information.
db_1row survsimp_properties
"select name as survey_name,
short_name, description as survey_description,
first_names || ' ' || last_name as creator_name, creation_user,
creation_date, decode(enabled_p, 't', 'Enabled', 'f', 'Disabled') as survey_status, enabled_p,
decode(single_response_p, 't', 'One', 'f', 'Multiple') as survey_response_limit,
decode(single_editable_p, 't', 'Editable', 'f', 'Non-editable') as survey_editable_single, type, display_type
from survsimp_surveys, acs_objects, persons
where object_id = survey_id
and person_id = creation_user
and survey_id = :survey_id
and package_id= :package_id"
db_1row survsimp_info
"
select
ss.name as survey_name,
ss.short_name,
ss.description as survey_description,
im_name_from_user_id(o.creation_user) as creator_name,
o.creation_user,
o.creation_date,
(case when enabled_p = 't' then 'Enabled' when enabled_p = 'f' then 'Disabled' end) as survey_status,
(case when single_response_p = 't' then 'One' when single_response_p = 'f' then 'Multiple' end) as survey_response_limit,
(case when single_editable_p = 't' then 'Editable' when single_editable_p = 'f' then 'Non-editable' end) as survey_editable_single,
ss.enabled_p,
ss.type,
ss.display_type
from
survsimp_surveys ss,
acs_objects o
where
o.object_id = ss.survey_id
and ss.survey_id = :survey_id
and ss.package_id= :package_id
"
if
{
$survey
_response_limit ==
"One"
}
{
set response_limit_toggle
"allow Multiple"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment