Subversion Repositories wimsdev

Rev

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

  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.  
  11. !if $st_=0
  12.   !if $exocnt_>0
  13.     !set wims_ref_class=wims_button
  14.     !href $li_&job=prep_activate $(wims_name_actionlist[1])
  15.      
  16.   !endif
  17.   !if $erasable=yes or ($sh_>$(min_$(m_)_erasable) and $home_=1)
  18.     !set wims_ref_class=wims_button wims_warning
  19.     !href $li_&job=prep_erase $(wims_name_actionlist[6])
  20.     $
  21.   !endif
  22. !else
  23.   !if $st_=1
  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])
  29.   !else
  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])
  42.   !endif
  43. !endif
  44.