Subversion Repositories wimsdev

Rev

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