Subversion Repositories wimsdev

Rev

Rev 3245 | Rev 10489 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3245 guerimand 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)
3
!distribute item $wims_read_parm into m_,sh_,st_,home_
4
!let exocnt_=!recordcnt wimshome/log/classes/$wims_class/$(m_)s/.$(m_)$(sh_)
5
!if $home_=1
6
 !let li_=cmd=new&$m_=$sh_&back=$home_&module=adm/class/$(m_)
7
!else
8
 !let li_=cmd=reply
9
!endif
10
 !if $st_=0
11
  !if $exocnt_>0
12
   !set wims_ref_class=wims_button
13
   !href $li_&job=prep_activate $(wims_name_actionlist[1])
14
    
15
  !endif
16
  !if $erasable=yes or ($sh_>$(min_$(m_)_erasable) and $home_=1)
9957 obado 17
   !set wims_ref_class=wims_button wims_warning
3245 guerimand 18
   !href $li_&job=prep_erase $(wims_name_actionlist[6])
19
    
20
  !endif
21
 !else
22
  !if $st_=1
23
   !set wims_ref_class=wims_button
24
   !href $li_&job=expire $(wims_name_actionlist[2])
25
    
26
   !set wims_ref_class=wims_button
27
   !href $li_&job=deactivate $(wims_name_actionlist[3])
28
  !else
29
   !set wims_ref_class=wims_button
30
   !if $st_=2
31
    !href $li_&job=hide $(wims_name_actionlist[4])
32
   !else
33
    !href $li_&job=expire $(wims_name_actionlist[5])
34
   !endif
35
    
36
   !set wims_ref_class=wims_button
37
   !href $li_&job=reactivate $(wims_name_actionlist[1])
38
    
39
   !set wims_ref_class=wims_button
40
   !href $li_&job=deactivate $(wims_name_actionlist[3])
41
  !endif
42
 !endif
43