Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
17869 bpr 1
!! preparing variables when one wants to use a document
2
!! to make the presentation page of a sheet
201 guerimand 3
 
16913 guerimand 4
!! --- in case of use of file of the document in the presentation page
5
!if $sheet_docpage!=yes
6
  !let m_filedir=$wims_ref_name?session=$wims_session&+cmd=getfile&+special_parm=doc
7
  !let tmp=!replace internal / by , in $sheet_docpage
8
  !sh if [ -d $wims_home/log/classes/$wims_class/doc/$(tmp[1])/files ]; then\
9
         cd $wims_home/$wims_sesdir;\
10
         mkdir -p getfile;\
11
         cd getfile;\
12
         rm -f doc;\
13
         ln -s $wims_home/log/classes/$wims_class/doc/$(tmp[1])/files doc;\
14
      fi
15
!endif
201 guerimand 16
!let wims_prefix=$wims_prefix m
17
!let wims_trustfile=$wims_trustfile primitives/target.phtml primitives.phtml
18
!let wims_writable=$wims_writable serial prim parm1 parm2 parm3 parm4 parms anchor w gotcnt gotm p add eq sh_ ex_ l_ m_ p_ a_ b_ t_ d_ prompt n i nadd lmod lses lcmd l ll l1 l2 m_exotitle m_exodescription
19
!let wims_readable=$wims_readable wims_session wims_read_parm serial prim parm1 parm2 parm3 parm4 parms anchor w gotcnt gotm p add eq sh_ ex_ l_ m_ p_ a_ b_ t_ d_ prompt n i nadd lmod lses lcmd l ll l1 l2 wims_class m_exotitle m_exodescription
16915 guerimand 20
!! ------ TMP bugfix :
21
!! bugfix some variable value not correctly assigned in presentation sheet and main page of class
22
!! this is a temporary correctif (need to modify src/OefMsg2wims/msg2wims.c for a definitive correction (change
23
!! tmp$k variable name to tmp_$k variable to use wims_prefix instead of wims_writable/wims_readable)
24
!let t=!makelist tmp v for v=0 to 50
25
!let t=!nospace $t
26
!let t=!items2words $t
27
!let wims_writable=$wims_writable tmp $t
28
!let wims_readable=$wims_readable tmp $t
29
!! end of TMP bugfix ------------
201 guerimand 30
 
31
m_user_login=$wims_user
32
m_user_lastname=$wims_lastname
33
m_user_firstname=$wims_firstname
34
m_class_code=$wims_class
35
m_scorerequire=!words2items $requires
36
m_title=$sheet_title
37
m_desc=$sheet_desc
38
m_scoregot=!words2items $scores
39
m_scoremean=!words2items $means
16919 guerimand 40
m_scorebests=!words2items $bests
41
m_scorelevels=!words2items $levels
42
m_scorealltries=!words2items $alltries
201 guerimand 43
m_expiration=$sheet_expiration
44
m_today=!char 1 to 8 of $wims_now
17859 bpr 45
m_sheet=$sh
201 guerimand 46
 
16919 guerimand 47
m_nbexo=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheet$sh
48
!for k=1 to $m_nbexo
13267 bpr 49
  m_infoexo$k=!record $k of wimshome/log/classes/$wims_class/sheets/.sheet$sh
201 guerimand 50
!next k