Subversion Repositories wimsdev

Rev

Rev 13919 | Rev 13984 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13919 Rev 13975
Line 26... Line 26...
26
!default slib_cmd=resume
26
!default slib_cmd=resume
27
!default slib_detname=special_cmd
27
!default slib_detname=special_cmd
28
!set slib_detail=\$(\$slib_detname)
28
!set slib_detail=\$(\$slib_detname)
29
 
29
 
30
!if \$slib_detail!=\$empty
30
!if \$slib_detail!=\$empty
-
 
31
 
-
 
32
  !set box_head=<div class="field box"><h3 class="box_title">
-
 
33
  !set box_head_full=<div class="field box fullwidth"><h3 class="box_title">
-
 
34
  !set box_middle=</h3><div class="box_desc">
-
 
35
  !set box_middle_tt=</h3><div class="box_desc tt">
-
 
36
  !set box_foot=</div></div>
-
 
37
 
31
  !readproc slib/\$slib_detail slib_header
38
  !readproc slib/\$slib_detail slib_header
32
  !reset slib_lang_exists_tmp
39
  !reset slib_lang_exists_tmp
33
  !readproc help/\$lang/slib/\$slib_detail
40
  !readproc help/\$lang/slib/\$slib_detail
34
  !if \$slib_lang_exists_tmp!=yes
41
  !if \$slib_lang_exists_tmp!=yes
35
    !readproc help/en/slib/\$slib_detail
42
    !readproc help/en/slib/\$slib_detail
Line 39... Line 46...
39
    !set slpdflt\$i=!item 1 of \$(slp\$i)
46
    !set slpdflt\$i=!item 1 of \$(slp\$i)
40
    !set slp\$i=!item 2 to -1 of \$(slp\$i)
47
    !set slp\$i=!item 2 to -1 of \$(slp\$i)
41
  !next i
48
  !next i
42
  !readproc namewriting.phtml \$slib_author
49
  !readproc namewriting.phtml \$slib_author
43
  !set slib_author=\$script_out
50
  !set slib_author=\$script_out
44
  !reset table_center
51
  <fieldset class="property_fields blockcenter">
45
 \$table_header
-
 
46
 <caption>\$wims_name_slib</caption>
52
  <legend>\$wims_name_slib</legend>
47
 \$table_tr<th>\$wims_name_name</th><td class="tt">\$slib_detail</td></tr>
53
  \$box_head \$wims_name_name \$box_middle_tt \$slib_detail \$box_foot
48
 \$table_tr<th>\$wims_name_title</th><td>\$slib_title</td></tr>
54
  \$box_head \$wims_name_title \$box_middle \$slib_title \$box_foot
49
 \$table_tr<th>\$wims_name_Author</th><td>\$slib_author</td></tr>
55
  \$box_head \$wims_name_Author \$box_middle \$slib_author \$box_foot
50
 \$table_tr<th>\$wims_name_call1</th><td><code>!readproc slib/\$slib_detail [parameters]</code>
56
  \$box_head \$wims_name_call1 \$box_middle <code>!readproc slib/\$slib_detail [parameters]</code>
51
 <br />(\$wims_name_result <span class="tt">slib_out</span>)</td></tr>
57
  <br />(\$wims_name_result <span class="tt">slib_out</span>) \$box_foot
52
 \$table_tr<th>\$wims_name_call2</th><td><code>slib(\$slib_detail [parameters])</code></td></tr>
58
  \$box_head \$wims_name_call2 \$box_middle <code>slib(\$slib_detail [parameters])</code> \$box_foot
53
 \$table_tr<th>\$wims_name_Parameters</th><td>
59
  \$box_head_full \$wims_name_Parameters \$box_middle
54
  !if \$slpcnt>1
60
    !if \$slpcnt>1
55
    !if + isin \$slpcnt
61
      !if + isin \$slpcnt
56
      \$wims_name_variable_list
62
        \$wims_name_variable_list
-
 
63
      !else
-
 
64
        \$wims_name_upto
-
 
65
      !endif
57
    !else
66
    !else
58
    \$wims_name_upto
67
      \$slpcnt
59
    !endif
68
    !endif
60
  !else
-
 
61
    \$slpcnt
69
  \$box_foot
62
  !endif
-
 
63
  </td></tr>
-
 
64
  !for i=1 to \$slpcnt
70
  !for i=1 to \$slpcnt
65
    \$table_tr<th>\$wims_name_Parameter \$i
71
    \$box_head \$wims_name_Parameter \$i
66
    !ifval \$i=\$slpcnt and + isin \$slpcnt
72
    !ifval \$i=\$slpcnt and + isin \$slpcnt
67
      and up
73
      and up
68
    !endif
74
    !endif
69
    </th>
-
 
70
    <td>\$(slp\$i)
75
    \$box_middle \$(slp\$i)
71
    !if \$(slpdflt\$i)!=\$empty
76
    !if \$(slpdflt\$i)!=\$empty
72
      <div class="param_default"><em>(\$wims_name_default: <span class="tt">\$(slpdflt\$i)</span>)</em></div>
77
      <div class="param_default"><em>(\$wims_name_default: <span class="tt">\$(slpdflt\$i)</span>)</em></div>
73
    !endif
78
    !endif
74
    </td></tr>
79
     \$box_foot
75
  !next i
80
  !next i
76
  \$table_tr<th>\$wims_name_Output</th><td>\$slib_out</td></tr>
81
  \$box_head \$wims_name_Output \$box_middle \$slib_out \$box_foot
77
  !if \$slib_comment!=\$empty
82
  !if \$slib_comment!=\$empty
78
    \$table_tr<th>\$wims_name_comment</th><td>\$slib_comment</td></tr>
83
    \$box_head \$wims_name_comment \$box_middle \$slib_comment \$box_foot
79
  !endif
84
  !endif
80
  !if \$slib_require!=\$empty
85
  !if \$slib_require!=\$empty
81
    \$table_tr<th>\$wims_name_Required_Software</th><td class="tt">\$slib_require</td></tr>
86
    \$box_head \$wims_name_Required_Software \$box_middle_tt \$slib_require \$box_foot
82
  !endif
87
  !endif
83
  !if \$slib_example!=\$empty
88
  !if \$slib_example!=\$empty
84
    !set excnt=!linecnt \$slib_example
89
    !set excnt=!linecnt \$slib_example
85
    \$table_tr<th>\$wims_name_Example OEF </th><td>
90
    \$box_head \$wims_name_Example OEF \$box_middle
86
    !for i=1 to \$excnt
91
    !for i=1 to \$excnt
87
      !set slib_exemple=!line \$i of \$slib_example
92
      !set slib_exemple=!line \$i of \$slib_example
88
      <hr />
93
      <hr />
89
      <code>\text{A=slib(\$slib_detail \$slib_exemple)}</code>
94
      <code>\text{A=slib(\$slib_detail \$slib_exemple)}</code>
90
      !set slib_wims_backslash=\$wims_backslash_insmath
95
      !set slib_wims_backslash=\$wims_backslash_insmath
Line 98... Line 103...
98
      !endif
103
      !endif
99
      !set wims_backslash_insmath=\$slib_wims_backslash
104
      !set wims_backslash_insmath=\$slib_wims_backslash
100
      !reset slib_wims_backslash
105
      !reset slib_wims_backslash
101
      !next i
106
      !next i
102
      !reset slib_exemple
107
      !reset slib_exemple
103
      </td></tr>
108
      \$box_foot
104
    !endif
109
    !endif
105
 
110
 
106
    \$table_end
111
    </fieldset>
107
    !reset \$slib_detname
112
    !reset \$slib_detname
108
  !exit
113
  !exit
109
!endif
114
!endif
110
\$wims_name_instruction
115
\$wims_name_instruction
111
 
116