Rev 12626 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 12626 | Rev 12636 | ||
---|---|---|---|
Line 48... | Line 48... | ||
48 | !else |
48 | !else |
49 | !set table_id=TABLE_courselist |
49 | !set table_id=TABLE_courselist |
50 | !set table_class=sortable |
50 | !set table_class=sortable |
51 | $table_header |
51 | $table_header |
52 | <caption>$name_prog5 |
52 | <caption>$name_prog5 |
53 | $ |
53 | $ |
54 | !set wims_ref_class=wims_button_help |
54 | !set wims_ref_class=wims_button_help |
55 | !href cmd=help&special_parm=structure#course $wims_name_help |
55 | !href cmd=help&special_parm=structure#course $wims_name_help |
56 | $ |
- | |
57 | !href cmd=reply&cparent=prog&job=addcourse $wims_name_addcourse |
- | |
58 | </caption> |
56 | </caption> |
59 | <thead> |
57 | <thead> |
60 | $table_hdtr |
58 | $table_hdtr |
61 | <th scope="col">$name_code</th><th scope="col">$wims_name_name</th> |
59 | <th scope="col">$name_code</th><th scope="col">$wims_name_name</th> |
62 | <th scope="col" data-sort-method="none">$wims_name_action</th><th scope="col">$name_supervisor2</th> |
60 | <th scope="col" data-sort-method="none">$wims_name_action</th><th scope="col">$name_supervisor2</th> |
63 | <th class="small" scope="col">$name_participant</th> |
61 | <th class="small" scope="col">$name_participant</th> |
64 | </tr> |
62 | </tr> |
65 | </thead> |
63 | </thead> |
66 | !for i=1 to $coursecnt |
64 | !for i=1 to $coursecnt |
67 | !set l=!line $i of $courses |
65 | !set l=!line $i of $courses |
68 | !distribute items $l into l_,s_,t_,n_ |
66 | !distribute items $l into l_,s_,t_,n_ |
69 | $table_tr<td>$l_</td> |
67 | $table_tr<td>$l_</td> |
70 | <td> |
68 | <td> |
71 | !href cmd=reply&job=course&cparent=prog&course=$l_ $t_ |
69 | !href cmd=reply&job=course&cparent=prog&course=$l_ $t_ |
72 | </td><td> |
- | |
73 | !set wims_ref_class=wims_button wims_warning |
- | |
74 | !href cmd=reply&job=delcourse&cparent=prog&del=$l_ $wims_name_erase |
- | |
75 | </td><td> |
70 | </td><td> |
- | 71 | !set wims_ref_class=wims_button wims_warning |
|
- | 72 | !href cmd=reply&job=delcourse&cparent=prog&del=$l_ $wims_name_erase |
|
- | 73 | </td><td> |
|
76 | !if $s_!=$empty |
74 | !if $s_!=$empty |
77 | !if $s_=supervisor |
75 | !if $s_=supervisor |
78 | $wims_name_supervisor |
76 | $wims_name_supervisor |
- | 77 | !else |
|
- | 78 | !default n_=$s_ |
|
- | 79 | !href cmd=reply&job=modteacher&teacher=$s_ $n_ |
|
- | 80 | !endif |
|
79 | !else |
81 | !else |
80 |
|
82 | $name_nonavailable |
81 | !href cmd=reply&job=modteacher&teacher=$s_ $n_ |
- | |
82 | !endif |
83 | !endif |
83 | !else |
- | |
84 | $name_nonavailable |
- | |
85 | !endif |
- | |
86 | !set c=!recordcnt $classdir1/$l_/.userlist |
84 | !set c=!recordcnt $classdir1/$l_/.userlist |
87 | </td><td>$c</td> |
85 | </td><td>$c</td> |
88 | </tr> |
86 | </tr> |
89 | !next i |
87 | !next i |
90 | $table_end |
88 | $table_end |
91 | <script> |
89 | <script> |
92 | new Tablesort(document.getElementById('TABLE_courselist')); |
90 | new Tablesort(document.getElementById('TABLE_courselist')); |
93 | </script> |
91 | </script> |
- | 92 | <div class="wimscenter"> |
|
- | 93 | !set wims_ref_class=wims_button icon_button |
|
- | 94 | !href cmd=reply&cparent=prog&job=addcourse <span class="createnew">$wims_name_addcourse</span> |
|
- | 95 | </div> |
|
94 | !endif |
96 | !endif |
95 | </div> |
97 | </div> |
96 | <div id="wims_zone_icourse"> |
98 | <div id="wims_zone_icourse"> |
97 | !if $icoursecnt=0 |
99 | !if $icoursecnt=0 |
98 | $name_prog9 |
100 | $name_prog9 |
99 | !href cmd=reply&cparent=prog&job=addicourse $wims_name_addicourse |
101 | !href cmd=reply&cparent=prog&job=addicourse $wims_name_addicourse |
100 | $ |
102 | $ |
101 | !set wims_ref_class=wims_button_help |
103 | !set wims_ref_class=wims_button_help |
102 | !href cmd=help&special_parm=structure#icourse $wims_name_help |
104 | !href cmd=help&special_parm=structure#icourse $wims_name_help |
103 | !else |
105 | !else |
104 | !set table_id=TABLE_icourselist |
106 | !set table_id=TABLE_icourselist |
105 | !set table_class=sortable |
107 | !set table_class=sortable |
106 | $table_header |
108 | $table_header |
Line 110... | Line 112... | ||
110 | !href cmd=help&special_parm=structure#icourse $wims_name_help |
112 | !href cmd=help&special_parm=structure#icourse $wims_name_help |
111 | $ |
113 | $ |
112 | !href cmd=reply&cparent=prog&job=addicourse $wims_name_addcourse |
114 | !href cmd=reply&cparent=prog&job=addicourse $wims_name_addcourse |
113 | </caption> |
115 | </caption> |
114 | <thead> |
116 | <thead> |
115 | $table_hdtr |
117 | $table_hdtr |
116 | <th scope="col">$name_code</th><th scope="col">$wims_name_name</th> |
118 | <th scope="col">$name_code</th><th scope="col">$wims_name_name</th> |
117 | <th scope="col">$wims_name_action</th><th scope="col">$name_supervisor2</th> |
119 | <th scope="col">$wims_name_action</th><th scope="col">$name_supervisor2</th> |
118 | <th class="small" scope="col">$name_participant</th> |
120 | <th class="small" scope="col">$name_participant</th> |
119 | </tr> |
121 | </tr> |
120 | </thead> |
122 | </thead> |
121 | <tbody> |
123 | <tbody> |
122 | !for i=1 to $icoursecnt |
124 | !for i=1 to $icoursecnt |
123 | !set l=!line $i of $icourses |
125 | !set l=!line $i of $icourses |
124 | !distribute items $l into l_,s_,t_,n_ |
126 | !distribute items $l into l_,s_,t_,n_ |
125 | $table_tr<td>$l_</td> |
127 | $table_tr<td>$l_</td> |
126 | <td> |
128 | <td> |
127 | !href cmd=reply&job=icourse&cparent=prog&course=$l_ $t_ |
129 | !href cmd=reply&job=icourse&cparent=prog&course=$l_ $t_ |
128 | </td><td> |
130 | </td><td> |
129 | !set wims_ref_class=wims_button wims_warning |
131 | !set wims_ref_class=wims_button wims_warning |
130 | !href cmd=reply&job=delcourse&cparent=prog&del=$l_ $wims_name_erase |
132 | !href cmd=reply&job=delcourse&cparent=prog&del=$l_ $wims_name_erase |
131 | </td><td> |
133 | </td><td> |
132 | !if $s_!=$empty |
134 | !if $s_!=$empty |
133 | !if $s_=supervisor |
135 | !if $s_=supervisor |
134 | $s_ |
136 | $s_ |
- | 137 | !else |
|
- | 138 | !default n_=$s_ |
|
- | 139 | !href cmd=reply&job=modteacher&teacher=$s_ $n_ |
|
- | 140 | !endif |
|
135 | !else |
141 | !else |
136 |
|
142 | $name_nonavailable |
137 | !href cmd=reply&job=modteacher&teacher=$s_ $n_ |
- | |
138 | !endif |
143 | !endif |
139 | !else |
- | |
140 | $name_nonavailable |
- | |
141 | !endif |
- | |
142 | !set c=!recordcnt $classdir1/$l_/.userlist |
144 | !set c=!recordcnt $classdir1/$l_/.userlist |
143 | </td><td>$c</td> |
145 | </td><td>$c</td> |
144 | !next i |
146 | !next i |
145 | </tr> |
147 | </tr> |
146 | </tbody> |
148 | </tbody> |
147 | $table_end |
149 | $table_end |
Line 155... | Line 157... | ||
155 | !set table_id=TABLE_programlist |
157 | !set table_id=TABLE_programlist |
156 | !set table_class=sortable |
158 | !set table_class=sortable |
157 | $table_header |
159 | $table_header |
158 | <caption>$name_prog6</caption> |
160 | <caption>$name_prog6</caption> |
159 | <thead> |
161 | <thead> |
160 | $table_hdtr |
162 | $table_hdtr |
161 | <th scope="col">Code</th> |
163 | <th scope="col">Code</th> |
162 | <th scope="col">$wims_name_level</th> |
164 | <th scope="col">$wims_name_level</th> |
163 | <th scope="col">$wims_name_program</th> |
165 | <th scope="col">$wims_name_program</th> |
164 | </tr> |
166 | </tr> |
165 | </thead> |
167 | </thead> |
166 | <tbody> |
168 | <tbody> |
167 | !set n=!linecnt $recsharable |
169 | !set n=!linecnt $recsharable |
168 | !for i=1 to $n |
170 | !for i=1 to $n |
169 | $table_tr |
171 | $table_tr |
170 | !set l=!line $i of $recsharable |
172 | !set l=!line $i of $recsharable |
171 | !distribute items $l into add,name |
173 | !distribute items $l into add,name |
172 | !set l_=!translate / to , in $add |
174 | !set l_=!translate / to , in $add |
173 | !set l_=!item 1 of $l_ |
175 | !set l_=!item 1 of $l_ |
174 | !set l_=!defof class_description in $classdir1/$l_/.def |
176 | !set l_=!defof class_description in $classdir1/$l_/.def |
175 | <td><span class="tt">$add</span></td> |
177 | <td><span class="tt">$add</span></td> |
176 | <td>$l_</td> |
178 | <td>$l_</td> |
177 | <td style="text-align:left"> |
179 | <td style="text-align:left"> |
178 | !href cmd=reply&job=progshare&prog=$prog&shareprog=$add $name |
180 | !href cmd=reply&job=progshare&prog=$prog&shareprog=$add $name |
- | 181 | </td> |
|
179 |
|
182 | </tr> |
180 | !next i |
183 | !next i |
181 | </tbody> |
184 | </tbody> |
182 | $table_end |
185 | $table_end |
183 | <script> |
186 | <script> |
184 | new Tablesort(document.getElementById('TABLE_programlist')); |
187 | new Tablesort(document.getElementById('TABLE_programlist')); |