Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
751 bpr 1
!!##language independant
23 reyssat 2
!set parm1=!text select /$namechars in $parm1
3
!set parm1=!char 1 to $namelim of $parm1
4
 
5
!if $parm1=$block or $parm1=$empty
12490 bpr 6
  !default parm2=??
7
  !set parm2=!slashsubst $parm2
8
  !set pp=!item 3 to -1 of $parms
9
  !set pp=!slashsubst $pp
10
  <a id="primi$serial"></a>
11
  !if $doc/$block.$serial notitemof $foldlist and $printable!=yes
12
    !href cmd=reply&job=read&foldin=$block.$serial#primi$serial $parm2
13
  !else
14
    $pp
15
    !if $printable!=yes
16213 bpr 16
      !set wims_ref_class=wims_button small
12490 bpr 17
      !href cmd=reply&job=read&foldout=$block.$serial#primi$serial $n_foldout
18
    !endif
23 reyssat 19
  !endif
12490 bpr 20
  !exit
23 reyssat 21
!endif
22
 
23
!reset titb
24
!read $wims_priv_thisdoc/$parm1.def
25
!set prompt=!item 2 to -1 of $parms
26
!default prompt=$titb
27
!if $titb=$empty
12490 bpr 28
  !default prompt=<span class="tt">$parm1</span>
29
  $prompt
23 reyssat 30
  !if $editable=yes
16213 bpr 31
    !set wims_ref_class=wims_button small
12490 bpr 32
    !href cmd=reply&job=edit&block=$parm1 $n_create
33
  !else
34
    <span class="small">$n_nonavailable</span>
23 reyssat 35
  !endif
12490 bpr 36
!else
37
  <a id="primi$serial"></a>
38
  $prompt
39
  !if $printable=yes
40
    !goto alwaysin
41
  !endif
16213 bpr 42
  !set wims_ref_class=wims_button small
12490 bpr 43
  !if $doc/$block.$serial notitemof $foldlist and robot notin $session
44
    !href cmd=reply&job=read&foldin=$block.$serial#primi$serial $wims_name_detail
45
  !else
46
    !href cmd=reply&job=read&foldout=$block.$serial#primi$serial $n_foldout
47
    !if $editable=yes
16213 bpr 48
      !set wims_ref_class=wims_button small
12490 bpr 49
      !href cmd=reply&job=edit&doc=$doc&block=$parm1 $wims_name_Edit
50
    !endif
51
    :alwaysin
52
    !set blocksave=$blocksave $block
53
    !set block=$parm1
54
    !read $wims_priv_thisdoc/$parm1.def content
55
    !set block=!word -1 of $blocksave
56
    !set blocksave=!word 1 to -2 of $blocksave
57
    !set gotblock=!append item $parm1 to $gotblock
58
  !endif
23 reyssat 59
!endif