Subversion Repositories wimsdev

Rev

Rev 16915 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
33 reyssat 1
!set m_scores=!words2items $percents
2
!distribute lines $wims_firstname\
3
$wims_lastname\
4
$newmsgcnt\
5
into\
6
m_firstname,m_lastname,m_newmsgcnt
7
 
16914 guerimand 8
!! --- in case of use of file of the document in the presentation page
9
!if $class_homepage!=yes
10
  !let m_filedir=$wims_ref_name?session=$wims_session&+cmd=getfile&+special_parm=doc
11
  !let tmp=!replace internal / by , in $class_homepage
12
  !sh if [ -d $wims_home/log/classes/$wims_class/doc/$(tmp[1])/files ]; then\
13
         cd $wims_home/$wims_sesdir;\
14
         mkdir -p getfile;\
15
         cd getfile;\
16
         rm -f doc;\
17
         ln -s $wims_home/log/classes/$wims_class/doc/$(tmp[1])/files doc;\
18
      fi
19
!endif
20
 
17794 bpr 21
!! ce qui suit peut servir dans un document mis comme page d'accueil
22
!! doit être redéfini dans public_html/modules/adm/doc/var.proc
23
!! pour un document de la classe (voir public_html/modules/adm/doc/var.proc)
33 reyssat 24
!set m_today=!char 1 to 8 of $wims_now
25
!set m_sheets=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheets
26
!set m_exams=!recordcnt wimshome/log/classes/$wims_class/exams/.exams
27
!set m_user_login=$wims_user
28
!set m_user_lastname=$wims_lastname
29
!set m_user_firstname=$wims_firstname
30
!set m_class_code=$wims_class
722 guerimand 31
!set m_daymessage=!record 0 of wimshome/log/classes/$wims_class/.motd
17794 bpr 32
!set m_userdaymessage=!record 0 of wimshome/log/classes/$wims_class/motd/$wims_user
33 reyssat 33
 
34
!for i=1 to $m_sheets
12821 bpr 35
  !set l_=!record $i of wimshome/log/classes/$wims_class/sheets/.sheets
36
  !distribute lines $l_ into m_status$i,m_expiration$i,m_title$i,m_desc$i
16914 guerimand 37
!next i
33 reyssat 38
!for i=1 to $m_exams
12821 bpr 39
  !set l_=!record $i of wimshome/log/classes/$wims_class/exams/.exams
40
  !distribute lines $l_ into m_statusE$i,m_expirationE$i,m_titleE$i,m_descE$i
33 reyssat 41
!next i
53 guerimand 42
!let save_trustfile=$wims_trustfile
43
!let save_writable=$wims_writable
44
!let save_readable=$wims_readable
45
!let wims_trustfile=$wims_trustfile primitives/target.phtml primitives.phtml
46
!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
47
!let wims_readable=$wims_readable 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
16915 guerimand 48
 
49
!! ------ TMP bugfix :
50
!! bugfix some variable value not correctly assigned in presentation sheet and main page of class
51
!! this is a temporary correctif (need to modify src/OefMsg2wims/msg2wims.c for a definitive correction (change
52
!! tmp$k variable name to tmp_$k variable to use wims_prefix instead of wims_writable/wims_readable)
53
!let t=!makelist tmp v for v=0 to 50
54
!let t=!nospace $t
55
!let t=!items2words $t
56
!let wims_writable=$wims_writable tmp $t
57
!let wims_readable=$wims_readable tmp $t
58
!! end of TMP bugfix ------------
59
 
60
 
33 reyssat 61
!read $deffile content
53 guerimand 62
!let wims_trustfile=$save_trustfile
63
!let wims_writable=$save_writable
64
!let wims_readable=$save_readable