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