Subversion Repositories wimsdev

Rev

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