| |
|
1 |
ad_include_contract { |
| |
|
2 |
Section Items |
| |
|
3 |
} { |
| |
|
4 |
assessment_id:object_type(as_assessments) |
| |
|
5 |
section_id:object_type(as_sections) |
| |
|
6 |
} |
| |
|
7 |
|
| |
1 |
8 |
set package_url [ad_conn package_url] |
| |
2 |
9 |
as::assessment::data -assessment_id $assessment_id |
| |
3 |
10 |
|
| |
4 |
11 |
set item_add_new_url [export_vars -base "item-add" {section_id assessment_id {after 0}}] |
| |
5 |
12 |
set catalog_search_url [export_vars -base "catalog-search" {section_id assessment_id {after 0}}] |
| |
6 |
13 |
|
| |
7 |
14 |
set item_add_top_url [export_vars -base item-add {as_item_id section_id assessment_id return_url {after 0}}] |
| |
8 |
15 |
|
| |
9 |
16 |
ad_form -name admin_section_${section_id} -form { |
| |
10 |
17 |
{section_id:text(hidden) {value $section_id}} |
| |
11 |
18 |
} -has_submit 1 |
| |
12 |
19 |
|
| |
13 |
20 |
db_multirow -extend { |
| |
14 |
21 |
checks_related |
| |
15 |
22 |
presentation_type |
| |
16 |
23 |
html |
| |
17 |
24 |
item_type |
| |
18 |
25 |
choice_orientation |
| |
19 |
26 |
allow_other_p |
| |
20 |
27 |
item_edit_url |