Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
1170 bpr 1
!!## load the css file of a class by a link in the header
2
!!distribute words $wims_read_parm into css_file
1127 bpr 3
!default module_title2=$module_title
1170 bpr 4
 
1176 bpr 5
!if $wims_class!=
6
  !set css_file=!sh cat $wims_home/log/classes/$wims_class/css
7
!endif
1170 bpr 8
 
9
!if $css_file=$empty
10
!exit
1127 bpr 11
!endif
12
!set css_file=!replace internal $$$wims_bgcolor by $$wims_bgcolor in $css_file
13
!set css_file=!replace internal $$$wims_ref_bgcolor by $$wims_ref_bgcolor in $css_file
14
!writefile getfile/css.css $css_file
15
 
16
!set wims_html_header=!append line <link href="$wims_ref_name?session=$session&+cmd=getfile&+special_parm=css.css" rel="stylesheet" title="$module_title2" type="text/css">\
17
to $wims_html_header