Subversion Repositories wimsdev

Rev

Rev 12626 | 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
12636 obado 53
    $
54
    !set wims_ref_class=wims_button_help
55
    !href cmd=help&special_parm=structure#course $wims_name_help
12616 bpr 56
  </caption>
12626 bpr 57
  <thead>
12616 bpr 58
  $table_hdtr
12636 obado 59
    <th scope="col">$name_code</th><th scope="col">$wims_name_name</th>
60
    <th scope="col" data-sort-method="none">$wims_name_action</th><th scope="col">$name_supervisor2</th>
61
    <th class="small" scope="col">$name_participant</th>
12616 bpr 62
  </tr>
12626 bpr 63
  </thead>
12616 bpr 64
  !for i=1 to $coursecnt
65
    !set l=!line $i of $courses
66
    !distribute items $l into l_,s_,t_,n_
67
    $table_tr<td>$l_</td>
68
    <td>
12636 obado 69
      !href cmd=reply&job=course&cparent=prog&course=$l_ $t_
12616 bpr 70
    </td><td>
12636 obado 71
      !set wims_ref_class=wims_button wims_warning
72
      !href cmd=reply&job=delcourse&cparent=prog&del=$l_ $wims_name_erase
12616 bpr 73
    </td><td>
12636 obado 74
      !if $s_!=$empty
75
        !if $s_=supervisor
76
          $wims_name_supervisor
77
        !else
78
          !default n_=$s_
79
          !href cmd=reply&job=modteacher&teacher=$s_ $n_
80
        !endif
12616 bpr 81
      !else
12636 obado 82
        $name_nonavailable
12616 bpr 83
      !endif
12636 obado 84
      !set c=!recordcnt $classdir1/$l_/.userlist
12616 bpr 85
    </td><td>$c</td>
86
    </tr>
87
  !next i
88
  $table_end
12626 bpr 89
  <script>
90
    new Tablesort(document.getElementById('TABLE_courselist'));
12636 obado 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>
23 reyssat 96
!endif
10349 bpr 97
</div>
98
<div id="wims_zone_icourse">
23 reyssat 99
!if $icoursecnt=0
12616 bpr 100
  $name_prog9
101
  !href cmd=reply&cparent=prog&job=addicourse $wims_name_addicourse
102
   $
103
  !set wims_ref_class=wims_button_help
104
  !href cmd=help&special_parm=structure#icourse $wims_name_help
23 reyssat 105
!else
12626 bpr 106
  !set table_id=TABLE_icourselist
107
  !set table_class=sortable
12616 bpr 108
  $table_header
109
   <caption>$wims_name_icourse
110
    $
111
  !set wims_ref_class=wims_button_help
112
  !href cmd=help&special_parm=structure#icourse $wims_name_help
10333 bpr 113
  $
12616 bpr 114
  !href cmd=reply&cparent=prog&job=addicourse $wims_name_addcourse
115
  </caption>
12626 bpr 116
  <thead>
12636 obado 117
    $table_hdtr
118
      <th scope="col">$name_code</th><th scope="col">$wims_name_name</th>
119
      <th scope="col">$wims_name_action</th><th scope="col">$name_supervisor2</th>
120
      <th class="small" scope="col">$name_participant</th>
121
    </tr>
12626 bpr 122
  </thead>
123
  <tbody>
12616 bpr 124
  !for i=1 to $icoursecnt
125
    !set l=!line $i of $icourses
126
    !distribute items $l into l_,s_,t_,n_
127
    $table_tr<td>$l_</td>
128
    <td>
12636 obado 129
      !href cmd=reply&job=icourse&cparent=prog&course=$l_ $t_
12616 bpr 130
    </td><td>
12636 obado 131
      !set wims_ref_class=wims_button wims_warning
132
      !href cmd=reply&job=delcourse&cparent=prog&del=$l_ $wims_name_erase
12616 bpr 133
    </td><td>
12636 obado 134
      !if $s_!=$empty
135
        !if $s_=supervisor
136
          $s_
137
        !else
138
          !default n_=$s_
139
          !href cmd=reply&job=modteacher&teacher=$s_ $n_
140
        !endif
12616 bpr 141
      !else
12636 obado 142
        $name_nonavailable
12616 bpr 143
      !endif
12636 obado 144
      !set c=!recordcnt $classdir1/$l_/.userlist
12616 bpr 145
    </td><td>$c</td>
146
  !next i
10349 bpr 147
  </tr>
12626 bpr 148
  </tbody>
12616 bpr 149
  $table_end
12626 bpr 150
  <script>
151
    new Tablesort(document.getElementById('TABLE_icourselist'));
152
  </script>
23 reyssat 153
!endif
10349 bpr 154
</div>
155
<div id="wims_zone_recsharable">
23 reyssat 156
!if $recsharable!=$empty
12626 bpr 157
  !set table_id=TABLE_programlist
158
  !set table_class=sortable
12616 bpr 159
  $table_header
160
  <caption>$name_prog6</caption>
12626 bpr 161
  <thead>
12636 obado 162
    $table_hdtr
163
      <th scope="col">Code</th>
164
      <th scope="col">$wims_name_level</th>
165
      <th scope="col">$wims_name_program</th>
166
    </tr>
12626 bpr 167
  </thead>
168
  <tbody>
12616 bpr 169
  !set n=!linecnt $recsharable
170
  !for i=1 to $n
171
    $table_tr
12636 obado 172
      !set l=!line $i of $recsharable
173
      !distribute items $l into add,name
174
      !set l_=!translate / to , in $add
175
      !set l_=!item 1 of $l_
176
      !set l_=!defof class_description in $classdir1/$l_/.def
177
      <td><span class="tt">$add</span></td>
178
      <td>$l_</td>
179
      <td style="text-align:left">
180
        !href cmd=reply&job=progshare&prog=$prog&shareprog=$add $name
181
      </td>
182
    </tr>
12616 bpr 183
  !next i
12626 bpr 184
  </tbody>
12616 bpr 185
  $table_end
12626 bpr 186
  <script>
187
    new Tablesort(document.getElementById('TABLE_programlist'));
188
  </script>
23 reyssat 189
!endif
190
!if $class_recshare!=$empty
12616 bpr 191
  <p>
192
  !if $class_recshare=main
193
    $name_prog7
194
  !else
195
    !set l_=!translate / to , in $class_recshare
196
    !set shareprog=!defof class_description in $classdir1/$class_recshare/.def
197
    !set sharelevel=!defof class_description in $classdir1/$(l_[1])/.def
198
    $name_prog8
199
    <em>$shareprog</em> ($name_level <em>$sharelevel</em>).
200
  !endif
201
  </p>
23 reyssat 202
!endif
10349 bpr 203
</div>
1336 bpr 204
!set wims_menu_items=!append line addcourse,1,cmd=reply&cparent=prog&job=addcourse\
1286 bpr 205
addicourse,1,cmd=reply&cparent=prog&job=addicourse\
1336 bpr 206
to $wims_menu_items
1286 bpr 207
 
23 reyssat 208
!reset title