Subversion Repositories wimsdev

Rev

Rev 12490 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !!##language independant
  2. !if $parm1=$empty
  3.   !exit
  4. !endif
  5. !if \ isin $parm1$parm2$parm3$parm4
  6.   !for p in 1,2,3,4
  7.     !set parm$p=!slashsubst $(parm$p)
  8.   !next p
  9. !endif
  10. !if / isin $parm1
  11.   !default parm4=style="width:90%;height:300px;"
  12.   !set parm3=!replace internal &+ by ; in $parm3
  13.   !set parm3=!replace internal & by ; in $parm3
  14.   !set parm3=!replace internal &+ by ; in $parm3
  15.   !set parm3=!replace internal & by ; in $parm3
  16.   <iframe src="wims.cgi?module=adm/raw&amp;job=lightpopup&amp;emod=$parm1&amp;parm=$parm3;cmd=new;&amp;option=noabout" $parm4></iframe>
  17.   !exit
  18. !endif
  19. !reset titb
  20. !if $embed_file=$empty
  21.   !set embed_file=$parm1
  22. !else
  23.  !set embed_file=$embed_file.$parm1
  24. !endif
  25. !read $wims_priv_thisdoc/$parm1.def
  26. !set prompt=!item 2 to -1 of $parms
  27. !default prompt=$titb
  28. !if $titb=$empty
  29.   !default prompt=<span class="tt">$parm1</span>
  30.   $prompt
  31.   !if $editable=yes
  32.     <span class="small">[
  33.     !href cmd=reply&job=edit&block=$parm1 $n_create
  34.     ]</span>
  35.  !else
  36.     <span class="small">$n_nonavailable</span>
  37.  !endif
  38. !else
  39.   <a id="$parm1"></a>
  40.   $prompt
  41.   !if $editable=yes
  42.     <span class="small">[
  43.     !href cmd=reply&job=edit&doc=$doc&block=$parm1 $wims_name_Edit
  44.     ]</span>
  45.   !endif
  46.   !read $wims_priv_thisdoc/$parm1.def content
  47.   !set gotblock=!append item $parm1 to $gotblock
  48. !endif
  49. !if . isin $embed_file
  50.   !let tmp=!replace internal . by , in $embed_file
  51.   !let tmp=!item 1 to -2 of $tmp
  52.   !let embed_file=!replace internal , by . in $embed_file
  53. !else
  54.   !reset embed_file
  55. !endif
  56.