File: embed.phtml

package info (click to toggle)
wims 2%3A4.29a%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 185,704 kB
  • sloc: xml: 366,687; javascript: 120,570; ansic: 62,341; java: 62,170; sh: 7,744; perl: 3,937; yacc: 3,217; cpp: 1,915; lex: 1,805; makefile: 1,084; lisp: 914; pascal: 601; python: 520; php: 318; asm: 7
file content (48 lines) | stat: -rw-r--r-- 1,340 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
!!##language independant
!if $parm1=$empty
  !exit
!endif
!if \ isin $parm1$parm2$parm3$parm4
  !for p in 1,2,3,4
    !set parm$p=!slashsubst $(parm$p)
  !next p
!endif
!if / isin $parm1
  !default parm4=style="width:90%;height:300px;"
  !set parm3=!replace internal &+ by ; in $parm3
  !set parm3=!replace internal & by ; in $parm3
  !set parm3=!replace internal &+ by ; in $parm3
  !set parm3=!replace internal & by ; in $parm3
  <iframe src="wims.cgi?module=adm/raw&amp;job=lightpopup&amp;emod=$parm1&amp;parm=$parm3;cmd=new;&amp;option=noabout" $parm4></iframe>
  !exit
!endif
!reset titb
!let p=!positionof item $parm1 in $filelist
!if $embed_file=$empty
  !set embed_file=$p
!else
 !set embed_file=$embed_file.$p
!endif
!read $docdir/$doc/$parm1.def
!set prompt=!item 2 to -1 of $parms
!default prompt=$titb
!if $titb=$empty
  !default prompt=<span class="tt">$parm1</span>
  $prompt
  <span class="small">$n_nonavailable</span>
!else
  !if $parm2!=.
    !! to embed something not visible
    <a id="$parm1"></a>
  !endif
  $prompt
  !read $docdir/$doc/$parm1.def content
  !set gotblock=!append item $parm1 to $gotblock
!endif
!if . isin $embed_file
  !let tmp=!replace internal . by , in $embed_file
  !let tmp=!item 1 to -2 of $tmp
  !let embed_file=!replace internal , by . in $embed_file
!else
  !reset embed_file
!endif