Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
4318 bpr 1
 
2
!if $special_parm1 iswordof namewriting
3
  !changeto help/$modu_lang/$special_parm1.phtml
4
  !exit
5
!endif
2740 bpr 6
!read lang/names.phtml.$modu_lang
2544 bpr 7
!if $wims_developer!=
12520 bpr 8
  !set wims_menu_items=!append line help,1,cmd=help \
14292 bpr 9
    to $wims_menu_items
12520 bpr 10
  !for EXO in QCM,TRUEFALSE,SELECTWORD, SELECTWORDA, GAP , ORDONNE, COMPOSE , CORRESP , QUIFAITQUOI, TONIC
11
    !set wims_menu_items=!append line help_$EXO,1,cmd=help&special_parm=$EXO\
14292 bpr 12
    to $wims_menu_items
12520 bpr 13
  !next
14
  !reset EXO
2544 bpr 15
!else
12520 bpr 16
  !goto intro
17
  !exit
2544 bpr 18
!endif
19
!set my_dir=lang/help.$modu_lang
20
!set hr=<hr style="color: #663366;\
21
background-color: #663366;\
6235 bpr 22
height: 5px;" />
2544 bpr 23
 
24
!set hh=<h2 style="color:$wims_ref_menucolor; \
25
background-color: $wims_ref_bgcolor;\
26
text-align:center;">
27
 
28
!set hh3=<h3 style="color:$wims_ref_menucolor; \
29
background-color: $wims_ref_bgcolor;\
30
text-align:left;">
31
 
32
!set pre=style="\
33
    background-color:white;\
34
    font-weight: bold ;\
35
        font-size: 12px;\
36
        border-style: solid;\
37
        border-width: 2pt;\
38
        margin: 3% 3% 3% 3%;\
39
        padding : 3%;"
40
 
41
!set tt=style="background-color:white;\
42
   font-weight: bold ;\
43
   padding : 0% 1% 0% 1%;"
12520 bpr 44
 
2544 bpr 45
!set desc = $hh3 $wims_name_Description</h3>
46
!set help_parm=$special_parm
47
!default help_parm=$parmhelp
48
!set help_cnt_parm=!itemcnt $help_parm
49
 
50
!if $special_parm!=$empty
12520 bpr 51
  !set EXO=$special_parm
52
  $hh $(wims_name_quick_$EXO)</h2>
53
  $desc
2544 bpr 54
 
12520 bpr 55
  !set a=!record 0 of lang/help.$modu_lang/$EXO
56
  $a
57
  $hh3 $name_format_data $(wims_name_quick_$EXO)</h3>
58
  !set a=!record 2 to -1 of lang/help.$modu_lang/$EXO
59
  !set b=!record 1 of lang/help.$modu_lang/$EXO
60
  !set b=!line 2 to -1 of $b
61
  $b
62
  !replace internal : by &#58; in :$a
2667 bpr 63
!endif
2544 bpr 64
 
2667 bpr 65
!if $special_parm1 !=$empty
66
  !read lang/help.$modu_lang/special_help.phtml
12520 bpr 67
  !exit
2667 bpr 68
!endif
2544 bpr 69
 
5894 bpr 70
<a id="commun"></a>
2667 bpr 71
<div $frame>
12520 bpr 72
!if $help_cnt_parm >1
73
  $desc
2544 bpr 74
 
12520 bpr 75
  !record 0 of lang/help.$modu_lang/commun
2667 bpr 76
!endif
2544 bpr 77
 
12520 bpr 78
!if $help_cnt_parm >1
2667 bpr 79
  !for t = 1 to $help_cnt_parm
12520 bpr 80
    !set EXO=!item $t of $help_parm
81
    <br />
82
    $hh $(wims_name_quick_$EXO)</h2>
83
    $desc
2544 bpr 84
 
12520 bpr 85
    !record 0 of lang/help.$modu_lang/$EXO
86
    $hh3 $name_format_data $(wims_name_quick_$EXO)</h3>
87
    !set a=!record 2 to -1 of lang/help.$modu_lang/$EXO
88
    !set b=!record 1 of lang/help.$modu_lang/$EXO
89
    !set b=!line 2 to -1 of $b
90
    <pre>
91
    $b
92
    !replace internal : by &#58; in :$a
93
    </pre>
2544 bpr 94
 
12520 bpr 95
  !next t
2667 bpr 96
!endif
2544 bpr 97
 
2667 bpr 98
!if $help_cnt_parm=1
12520 bpr 99
  $hh  $name_commun</h2>
100
  $desc
101
  !record 0 of lang/help.$modu_lang/commun
2544 bpr 102
!endif
2667 bpr 103
 
2544 bpr 104
</div>
105
!exit
106
 
107
:intro
5181 guerimand 108
!read adm/language lang/names.phtml
2544 bpr 109
!read values
12520 bpr 110
$table_header
111
$table_tr<th>$wims_name_Type</th><th>$wims_name_Description</th><th>$name_Example</th>
112
!set u = !linecnt $name
113
!for i = 1 to $u
14292 bpr 114
  $table_tr<td style="width:12%">
12520 bpr 115
  !set cnt=!itemcnt $(name[$i;])
116
  !for a =1 to $cnt
117
    <br />
118
    $(wims_name_quick_$(name[$i;$a]))
119
  !next a
14292 bpr 120
  </td><td style="width:25%">$(explication[$i;])</td>
12520 bpr 121
  <td>
14292 bpr 122
  <ul>
12520 bpr 123
  !for j = 1 to $(nb_example[$i])
14292 bpr 124
    !set ex_data = !getdef file in $example_dir/$(name_example[$i])/$j
125
    !set ex_title = !getdef title in $example_dir/$(name_example[$i])/$j
126
    !set ex_source = !getdef source in $example_dir/$(name_example[$i])/$j
127
    !set ex_data=!nospace $ex_data
128
    <li>
129
    !href target=wims_test module=$module_test&exo=$ex_source&cmd=new <i>$ex_title</i>
130
    $ $
131
    !href target=wims_mhelp cmd=help&special_parm=example&special_parm2=$(name_example[$i])/$ex_data $name_data
132
    $ $
133
    </li>
134
    !if $j = $(nb_example[$i])
135
      </ul>
136
    !endif
137
  !next j
138
  </td></tr>
139
!next i
2544 bpr 140
$table_end