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