Subversion Repositories wimsdev

Rev

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