Rev 10489 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 10489 | Rev 11999 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | !! generate link for action on sheet in a class |
1 | !! generate link for action on sheet in a class |
2 | !! wims_read_parm=linkmodule,sheetnumber,statutsheet,flag(after action 1 return to home 0 stay in linkmodule) |
2 | !! wims_read_parm=linkmodule,sheetnumber,statutsheet,flag(after action 1 return to home 0 stay in linkmodule) |
3 | !distribute item $wims_read_parm into m_,sh_,st_,home_ |
3 | !distribute item $wims_read_parm into m_,sh_,st_,home_ |
4 | !let exocnt_=!recordcnt wimshome/log/classes/$wims_class/$(m_)s/.$(m_)$(sh_) |
4 | !let exocnt_=!recordcnt wimshome/log/classes/$wims_class/$(m_)s/.$(m_)$(sh_) |
5 | !if $home_=1 |
5 | !if $home_=1 |
6 | !let li_=cmd=new&$m_=$sh_&back=$home_&module=adm/class/$(m_) |
6 | !let li_=cmd=new&$m_=$sh_&back=$home_&module=adm/class/$(m_) |
7 | !else |
7 | !else |
8 | !let li_=cmd=reply |
8 | !let li_=cmd=reply |
9 | !endif |
9 | !endif |
- | 10 | ||
10 |
|
11 | !if $st_=0 |
11 | !if $exocnt_>0 |
12 | !if $exocnt_>0 |
12 | !set wims_ref_class=wims_button |
13 | !set wims_ref_class=wims_button |
13 | !href $li_&job=prep_activate $(wims_name_actionlist[1]) |
14 | !href $li_&job=prep_activate $(wims_name_actionlist[1]) |
14 | |
15 | |
15 | !endif |
16 | !endif |
16 | !if $erasable=yes or ($sh_>$(min_$(m_)_erasable) and $home_=1) |
17 | !if $erasable=yes or ($sh_>$(min_$(m_)_erasable) and $home_=1) |
17 | !set wims_ref_class=wims_button wims_warning |
18 | !set wims_ref_class=wims_button wims_warning |
18 | !href $li_&job=prep_erase $(wims_name_actionlist[6]) |
19 | !href $li_&job=prep_erase $(wims_name_actionlist[6]) |
19 | $ |
20 | $ |
20 | !endif |
21 | !endif |
21 |
|
22 | !else |
22 | !if $st_=1 |
23 | !if $st_=1 |
23 | !set wims_ref_class=wims_button |
24 | !set wims_ref_class=wims_button |
24 | !href $li_&job=expire $(wims_name_actionlist[2]) |
25 | !href $li_&job=expire $(wims_name_actionlist[2]) |
25 | $ |
26 | $ |
26 | !set wims_ref_class=wims_button wims_secondary_button |
27 | !set wims_ref_class=wims_button wims_secondary_button |
27 | !href $li_&job=deactivate $(wims_name_actionlist[3]) |
28 | !href $li_&job=deactivate $(wims_name_actionlist[3]) |
28 | !else |
29 | !else |
29 | !set wims_ref_class=wims_button |
30 | !set wims_ref_class=wims_button |
30 | !if $st_=2 |
31 | !if $st_=2 |
31 | !href $li_&job=hide $(wims_name_actionlist[4]) |
32 | !href $li_&job=hide $(wims_name_actionlist[4]) |
32 | !else |
33 | !else |
33 | !href $li_&job=expire $(wims_name_actionlist[5]) |
34 | !href $li_&job=expire $(wims_name_actionlist[5]) |
34 | !endif |
35 | !endif |
35 | $ |
36 | $ |
36 | !set wims_ref_class=wims_button |
37 | !set wims_ref_class=wims_button |
37 | !href $li_&job=reactivate $(wims_name_actionlist[1]) |
38 | !href $li_&job=reactivate $(wims_name_actionlist[1]) |
38 | $ |
39 | $ |
39 | !set wims_ref_class=wims_button wims_secondary_button |
40 | !set wims_ref_class=wims_button wims_secondary_button |
40 | !href $li_&job=deactivate $(wims_name_actionlist[3]) |
41 | !href $li_&job=deactivate $(wims_name_actionlist[3]) |
41 | !endif |
42 | !endif |
42 |
|
43 | !endif |
43 | - |