| |
1 |
1 |
ad_page_contract { |
| |
2 |
2 |
Page to upload files and generate new task for dpm/fpm |
| |
3 |
3 |
|
| |
4 |
4 |
@author Timo Hentschel (timo@timohentschel.de) |
| |
5 |
5 |
@creation-date 2006-01-13 |
| |
6 |
6 |
} { |
| |
7 |
7 |
file_name:notnull |
| |
8 |
8 |
file_path:notnull |
| |
9 |
|
{organization:array,multiple} |
| |
|
9 |
{organization:array,multiple,optional} |
| |
10 |
10 |
{person:array,multiple} |
| |
11 |
11 |
{contact_rels_employment:array,multiple,optional} |
| |
12 |
12 |
person_elements |
| |
13 |
13 |
organization_elements |
| |
14 |
14 |
contact_rels_employment_elements |
| |
15 |
15 |
{group_ids ""} |
| |
16 |
16 |
} -properties { |
| |
17 |
17 |
context:onevalue |
| |
18 |
18 |
page_title:onevalue |
| |
19 |
19 |
} |
| |
20 |
20 |
|
| |
21 |
21 |
# Get the number of elements |
| |
22 |
22 |
set organization_element_count [llength $organization_elements] |
| |
23 |
23 |
set person_element_count [llength $person_elements] |
| |
24 |
24 |
set contact_rels_employment_count [llength $contact_rels_employment_elements] |
| |
25 |
25 |
|
| |
26 |
26 |
set html "<table border=2><tr><td colspan=\"$person_element_count\">Person</td><td colspan=\"$organization_element_count\">Organisation</td>" |
| |
27 |
27 |
if {$contact_rels_employment_count > 0} { |
| |
28 |
28 |
append html "<td colspan=\"$contact_rels_employment_count\">Employee</td>" |
| |
29 |
29 |
} |