Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
23 reyssat 1
 
2
!if $cf_abandon!=$empty
3
 !reset cf_abandon
4
 job=home
5
 !read home.proc
6
 !exit
7
!endif
8
 
9
!if $cf_set!=$empty
10
 !reset cf_set
11
 cf_title=!trim $cf_title
12
 !if $cf_title=$empty
2130 bpr 13
  cf_title=$wims_name_cdt
23 reyssat 14
 !endif
15
 cf_description=!singlespace $cf_description
16
 cf_title=!singlespace $cf_title
17
 cf_title=!char 1 to 50 of $cf_title
18
 cf_link=!char 1 to 20 of $cf_link
6366 guerimand 19
 !bound cf_reversedate between 0 and 1 default $cdt_reversedate
9598 guerimand 20
 !bound cf_showyear between 0 and 1 default $cdt_showyear
23 reyssat 21
 test=!nospace $cf_link
22
 !if $test=$empty
23
  cf_link=$cdt_link
24
 !endif
25
 cf_description=!char 1 to 1024 of $cf_description
26
 !setdef !set cdt_title=$cf_title\
27
!set cdt_description=$cf_description\
6366 guerimand 28
!set cdt_link=$cf_link\
9598 guerimand 29
!set cdt_reversedate=$cf_reversedate\
30
!set cdt_showyear=$cf_showyear in wimshome/log/classes/$wims_class/cdt/.def
23 reyssat 31
 cdt_description=$cf_description
32
 cdt_title=$cf_title
33
 cdt_link=$cf_link
6366 guerimand 34
 cdt_reversedate=$cf_reversedate
9598 guerimand 35
 cdt_showyear=$cf_showyear
36
 !if $cdt_showyear=1
37
    dateoption=withyear
38
 !else
39
    dateoption=$empty
40
 !endif
23 reyssat 41
!else
9598 guerimand 42
 !for k in title,description,reversedate,showyear
23 reyssat 43
  cf_$k=$(cdt_$k)
44
 !next k
6366 guerimand 45
 !default cf_reversedate=0
9598 guerimand 46
 !default cf_showyear=0
23 reyssat 47
!endif