Rev 6235 | Rev 7973 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
23 | reyssat | 1 | |
1726 | bpr | 2 | !set form_titlename=$wims_name_title |
3 | !set form_caption=$name_programproperties |
||
23 | reyssat | 4 | !set title=$class_description |
5 | !set sup=$class_Supervisor |
||
6 | !read scripts/progform.phtml |
||
5764 | bpr | 7 | <div class="wimscenter"> |
23 | reyssat | 8 | !if $hastest=yes |
3069 | bpr | 9 | $name_prog1 |
10 | |
||
11 | !set wims_ref_class=wims_button_help |
||
1545 | bpr | 12 | !href cmd=help&special_parm=structure#test $wims_name_help |
3070 | bpr | 13 | !set wims_ref_class=wims_button |
1726 | bpr | 14 | !href module=adm/class/classes&type=authsupervisor&class=$wims_superclass/$prog/0 $name_visit |
3070 | bpr | 15 | |
16 | !set wims_ref_class=wims_button |
||
3405 | bpr | 17 | !href cmd=reply&job=deltest $wims_name_erase |
23 | reyssat | 18 | !else |
3069 | bpr | 19 | $name_prog2 |
20 | |
||
21 | !set wims_ref_class=wims_button_help |
||
1545 | bpr | 22 | !href cmd=help&special_parm=structure#test $wims_name_help |
3069 | bpr | 23 | |
1726 | bpr | 24 | !href cmd=reply&job=addtest $name_prog3 |
23 | reyssat | 25 | . |
26 | !endif |
||
5764 | bpr | 27 | </div> |
23 | reyssat | 28 | !if $coursecnt=0 |
1726 | bpr | 29 | $name_prog4 |
1545 | bpr | 30 | !href cmd=reply&cparent=prog&job=addcourse $wims_name_addcourse |
3069 | bpr | 31 | |
32 | !set wims_ref_class=wims_button_help |
||
1545 | bpr | 33 | !href cmd=help&special_parm=structure#course $wims_name_help |
3069 | bpr | 34 | |
23 | reyssat | 35 | !else |
36 | $table_header |
||
3069 | bpr | 37 | <caption>$name_prog5 |
38 | |
||
39 | !set wims_ref_class=wims_button_help |
||
1545 | bpr | 40 | !href cmd=help&special_parm=structure#course $wims_name_help |
3069 | bpr | 41 | |
1545 | bpr | 42 | !href cmd=reply&cparent=prog&job=addcourse $wims_name_addcourse |
3069 | bpr | 43 | </caption> |
23 | reyssat | 44 | $table_hdtr |
5954 | bpr | 45 | <th>$name_code</th><th>$wims_name_name</th><th>$wims_name_action</th><th>$name_supervisor2</th> |
6146 | bpr | 46 | <th class="small">$name_participant</th> |
23 | reyssat | 47 | </tr> |
48 | !for i=1 to $coursecnt |
||
49 | !set l=!line $i of $courses |
||
50 | !distribute items $l into l_,s_,t_,n_ |
||
6374 | bpr | 51 | $table_tr<td style="text-align:center">$l_</td> |
52 | <td style="text-align:center"> |
||
23 | reyssat | 53 | !href cmd=reply&job=course&cparent=prog&course=$l_ $t_ |
6374 | bpr | 54 | </td><td style="text-align:center"> |
3070 | bpr | 55 | !set wims_ref_class=wims_button |
1545 | bpr | 56 | !href cmd=reply&job=delcourse&cparent=prog&del=$l_ $wims_name_erase |
6374 | bpr | 57 | </td><td style="text-align:center"> |
23 | reyssat | 58 | !if $s_!=$empty |
59 | !if $s_=supervisor |
||
1726 | bpr | 60 | $wims_name_supervisor |
23 | reyssat | 61 | !else |
62 | !default n_=$s_ |
||
63 | !href cmd=reply&job=modteacher&teacher=$s_ $n_ |
||
64 | !endif |
||
65 | !else |
||
1726 | bpr | 66 | $name_nonavailable |
23 | reyssat | 67 | !endif |
68 | !set c=!recordcnt $classdir1/$l_/.userlist |
||
6374 | bpr | 69 | </td><td style="text-align:center">$c</td> |
5954 | bpr | 70 | </tr> |
23 | reyssat | 71 | !next i |
72 | $table_end |
||
73 | !endif |
||
74 | |||
5953 | bpr | 75 | |
23 | reyssat | 76 | !if $icoursecnt=0 |
1726 | bpr | 77 | $name_prog9 |
78 | !href cmd=reply&cparent=prog&job=addicourse $wims_name_addicourse |
||
3069 | bpr | 79 | |
80 | !set wims_ref_class=wims_button_help |
||
1545 | bpr | 81 | !href cmd=help&special_parm=structure#icourse $wims_name_help |
3069 | bpr | 82 | |
23 | reyssat | 83 | !else |
84 | $table_header |
||
3069 | bpr | 85 | <caption>$wims_name_icourse |
86 | |
||
87 | !set wims_ref_class=wims_button_help |
||
1545 | bpr | 88 | !href cmd=help&special_parm=structure#icourse $wims_name_help |
3069 | bpr | 89 | |
1545 | bpr | 90 | !href cmd=reply&cparent=prog&job=addicourse $wims_name_addcourse |
3069 | bpr | 91 | </caption> |
23 | reyssat | 92 | $table_hdtr |
5954 | bpr | 93 | <th>$name_code</th><th>$wims_name_name</th><th>$wims_name_action</th><th>$name_supervisor2</th> |
6146 | bpr | 94 | <th class="small">$name_participant</th> |
23 | reyssat | 95 | </tr> |
96 | !for i=1 to $icoursecnt |
||
97 | !set l=!line $i of $icourses |
||
98 | !distribute items $l into l_,s_,t_,n_ |
||
6374 | bpr | 99 | $table_tr<td style="text-align:center">$l_</td> |
100 | <td style="text-align:center"> |
||
23 | reyssat | 101 | !href cmd=reply&job=icourse&cparent=prog&course=$l_ $t_ |
6374 | bpr | 102 | </td><td style="text-align:center"> |
3070 | bpr | 103 | !set wims_ref_class=wims_button |
1545 | bpr | 104 | !href cmd=reply&job=delcourse&cparent=prog&del=$l_ $wims_name_erase |
3070 | bpr | 105 | |
6374 | bpr | 106 | </td><td style="text-align:center"> |
23 | reyssat | 107 | !if $s_!=$empty |
108 | !if $s_=supervisor |
||
109 | $s_ |
||
110 | !else |
||
111 | !default n_=$s_ |
||
112 | !href cmd=reply&job=modteacher&teacher=$s_ $n_ |
||
113 | !endif |
||
114 | !else |
||
1726 | bpr | 115 | $name_nonavailable |
23 | reyssat | 116 | !endif |
117 | !set c=!recordcnt $classdir1/$l_/.userlist |
||
6374 | bpr | 118 | </td><td style="text-align:center">$c</td> |
23 | reyssat | 119 | !next i |
120 | $table_end |
||
121 | !endif |
||
122 | |||
123 | !if $recsharable!=$empty |
||
5954 | bpr | 124 | |
23 | reyssat | 125 | $table_header |
1726 | bpr | 126 | <caption>$name_prog6</caption> |
23 | reyssat | 127 | $table_hdtr |
128 | <th>Code</th> |
||
1726 | bpr | 129 | <th>$wims_name_level</th> |
130 | <th>$wims_name_program</th> |
||
23 | reyssat | 131 | </tr> |
132 | !set n=!linecnt $recsharable |
||
133 | !for i=1 to $n |
||
134 | $table_tr |
||
135 | !set l=!line $i of $recsharable |
||
136 | !distribute items $l into add,name |
||
137 | !set l_=!translate / to , in $add |
||
138 | !set l_=!item 1 of $l_ |
||
139 | !set l_=!defof class_description in $classdir1/$l_/.def |
||
6374 | bpr | 140 | <td style="text-align:center"><span class="tt">$add</span></td> |
141 | <td style="text-align:center">$l_</td> |
||
142 | <td style="text-align:left"> |
||
23 | reyssat | 143 | !href cmd=reply&job=progshare&prog=$prog&shareprog=$add $name |
144 | </td></tr> |
||
145 | !next i |
||
146 | $table_end |
||
147 | !endif |
||
148 | |||
149 | !if $class_recshare!=$empty |
||
150 | <p> |
||
151 | !if $class_recshare=main |
||
1726 | bpr | 152 | $name_prog7 |
23 | reyssat | 153 | !else |
154 | !set l_=!translate / to , in $class_recshare |
||
155 | !set shareprog=!defof class_description in $classdir1/$class_recshare/.def |
||
156 | !set sharelevel=!defof class_description in $classdir1/$(l_[1])/.def |
||
1726 | bpr | 157 | $name_prog8 |
158 | <em>$shareprog</em> ($name_level <em>$sharelevel</em>). |
||
23 | reyssat | 159 | !endif |
5954 | bpr | 160 | </p> |
23 | reyssat | 161 | !endif |
162 | |||
1336 | bpr | 163 | !set wims_menu_items=!append line addcourse,1,cmd=reply&cparent=prog&job=addcourse\ |
1286 | bpr | 164 | addicourse,1,cmd=reply&cparent=prog&job=addicourse\ |
1336 | bpr | 165 | to $wims_menu_items |
1286 | bpr | 166 | |
23 | reyssat | 167 | !reset title |
168 |