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