Subversion Repositories wimsdev

Rev

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

  1. !if \ isin $parm1
  2.   !for p in 1
  3.     !set parm$p=!slashsubst $(parm$p)
  4.   !next p
  5. !endif
  6. !set add=$parm1
  7. !if ? isin $add
  8.   !set add=!translate internal ? to , in $add
  9.   !set add=!item 2 of $add
  10. !endif
  11. !set eq==
  12. !if $eq notin $add and $wims_class>0 and / isin $add \
  13.     and $prim iswordof exercise tool
  14.   !set add=!translate internal / to $ $ in $add
  15.   !distribute words $add into sh_,ex_
  16.   !! ------------------------------------ ces 4 lignes sont à supprimées lorsqu-il est certain qu'elle ne sont plus indispensable lors des accès à primitive.phtml) le 23/11/2007 FG
  17.  !! !set l_=!record $ex_ of wimshome/log/classes/$wims_class/sheets/.sheet$sh_
  18.  !! !distribute lines $l_ into m_,p_,a_,b_,t_,d_
  19.  !! !set m_exotitle=$t_
  20.  !! !set m_exodescription=$d_
  21.  !! ------------------------------------------------
  22.  !distribute lines $(m_infoexo$ex_) into m_,p_,a_,b_,t_,d_
  23.  !set prompt=!item 2 to -1 of $parms
  24.  !default prompt=$t_
  25.  !href session=$wims_session&cmd=new&module=$m_&worksheet=$sh_&$p_ $prompt
  26.  !exit
  27. !endif
  28. !set add=!translate internal & to $ $ in $add
  29. !set n=!wordcnt $add
  30. !reset nadd,lmod,lses,lcmd
  31. !for i=1 to $n
  32.  !set l=!word $i of $add
  33.  !set ll=!translate = to , in $l
  34.  !distribute items $ll into l1,l2
  35.  !if $l1=cmd and $l2 iswordof intro help close
  36.    !set lcmd=$l2
  37.  !endif
  38.  !if $l1=module
  39.    !set lmod=$l2
  40.  !endif
  41.  !if $l1 notwordof module cmd session
  42.    !set nadd=$nadd $l
  43.  !endif
  44. !next i
  45. !default lmod=home
  46. !default lcmd=new
  47. !set nadd=!translate internal $ $ to & in $nadd
  48. !set prompt=!item 2 to -1 of $parms
  49. !default prompt=!module title $lmod
  50.  
  51. !default prompt=Unknown activity
  52.  
  53. !if $prim=tool
  54.  !href target=wims_tool module=$lmod&cmd=$lcmd$nadd $prompt
  55. !else
  56.  !href module=$lmod&cmd=$lcmd$nadd $prompt
  57. !endif
  58.