Subversion Repositories wimsdev

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
18677 bpr 1
!! About window for a public sheet
2
 
3
!if $sh=
4
  !goto exit
5
!else
6
  !goto about
7
!endif
8
 
9
:about
10
!set data_dir=wimshome/public_html/bases/sheet
11
!set shinfo=!record 0 of $data_dir/$sh.def
12
!if $shinfo=
13
  !exit
14
!endif
15
!set sheetlink=$wims_ref_name?module=adm/sheet&sh=$sh
16
!read lang/names.$lang
17
!set embedabble_height= 600
18
!set embedabble_width= 100%
19
!set about_author=!line 8 of $shinfo
20
!distribute items $about_author into about_firstname,about_lastname
21
!set about_firstname=!trim $about_firstname
22
!set about_lastname=!trim $about_lastname
23
!set about_author=$about_firstname $about_lastname
24
!set about_title=!line 1 of $shinfo
25
!set about_keywords=!line 6 of $shinfo
26
!set about_keywords=!replace internal word no by in $about_keywords
27
!set about_keywords=!nonempty items $about_keywords
28
!set about_level=!line 5 of $shinfo
29
!read ./tabletheme
30
!reset table_center
31
$table_header
32
  <tbody>
33
        $table_tr
34
          <th>$wims_name_title</th>
35
          <td>$about_title</td>
36
    </tr>
37
    !if $about_author != $empty
38
          $table_tr
39
                <th>$wims_name_author</th>
40
                <td>$about_author</td>
41
                </tr>
42
    !if $about_level != $empty
43
          $table_tr
44
                <th>$wims_name_level</th>
45
                <td>
46
                !set levelcnt=!itemcnt $about_level
47
            !for ll=1 to $levelcnt
48
              !set level__=!words2items $(about_level[$ll])
49
              !read adm/levelname.phtml
50
              $(name_wims_level_$(level__[1])) $(level__[2..-1])
51
              !if $ll<$levelcnt
52
                ;
53
              !endif
54
            !next
55
                  </td></tr>
56
          !endif
57
    !if $about_keywords!=$empty
58
      $table_tr
59
        <th>$wims_name_Keywords</th>
60
        <td>$about_keywords</td>
61
      </tr>
62
    !endif
63
    $table_tr
64
      <th>$wims_name_permalink</th>
65
      <td>
66
      !!$wims_name_permalink_desc
67
        <p>$sheetlink</p>
68
      </td>
69
    </tr>
70
    $table_tr
71
  </tbody>
72
$table_end
73
 
74
:exit