Subversion Repositories wimsdev

Rev

Rev 12636 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
23 reyssat 1
 
1726 bpr 2
!set form_titlename=$wims_name_title
3
!set form_caption=$name_levelproperties
23 reyssat 4
!set title=$class_description
5
!set sup=$class_Supervisor
6
!set alevel=$class_level
10349 bpr 7
<div id="widget_zone_list">
8
!if $jquery_defined=yes
9
  !read adm/tabscript zone_list
10
!endif
12638 obado 11
 
10349 bpr 12
<ul>
13
 <li><a href="#wims_levelform">$wims_name_properties</a></li>
10598 bpr 14
 <li><a href="#wims_othergestion">$name_othergestion</a></li>
10349 bpr 15
 <li><a href="#wims_zone_class">$wims_name_class</a></li>
16
 <li><a href="#wims_zone_program">$wims_name_program</a></li>
10598 bpr 17
 
10349 bpr 18
</ul>
19
<div id="wims_levelform">
23 reyssat 20
!read scripts/levelform.phtml
10349 bpr 21
</div>
22
<div id="wims_zone_class">
5954 bpr 23
!if $classcnt=0
12616 bpr 24
  <p>
25
  $name_level1
26
  !href cmd=reply&job=addclass $wims_name_addclass
27
  !!/
28
  !! !href cmd=reply&job=addcsvclass $name_addcsvclass
29
  !!.
30
  !! $
31
  !set wims_ref_class=wims_button_help
32
  !href cmd=help&special_parm=structure#class $wims_name_help
33
  </p>
23 reyssat 34
!else
12626 bpr 35
  !set table_id=TABLE_classlist
36
  !set table_class=sortable
12616 bpr 37
  $table_header
38
  <caption>$name_level4
12638 obado 39
    $
40
    !set wims_ref_class=wims_button_help
41
    !href cmd=help&special_parm=structure#class $wims_name_help
42
    !! !href cmd=reply&job=addclass $wims_name_addclass
43
    !! /
44
    !! !href cmd=reply&job=addcsvclass $name_addcsvclass
12616 bpr 45
  </caption>
12626 bpr 46
  <thead>
12616 bpr 47
  $table_hdtr
12626 bpr 48
  <th scope="col">$name_code</th><th scope="col">$wims_name_name</th>
49
  <th scope="col">$wims_name_action</th><th scope="col">$name_supervisor2</th>
50
  <th class="small" scope="col">$wims_name_course</th>
51
  <th class="small" scope="col">$name_participant</th>
12616 bpr 52
  </tr>
12626 bpr 53
  </thead>
54
  <tbody>
12616 bpr 55
  !for i=1 to $classcnt
56
    !set l=!line $i of $classes
57
    !distribute items $l into l_,s_,t_,n_
58
    !set c=!record 0 of $classdir1/$l_/courses
59
    !set c=!nonempty lines $c
60
    !set c=!linecnt $c
61
    $table_tr<td>$l_</td>
62
    <td>
63
    !href cmd=reply&job=class&class=$l_ $t_
64
    </td><td>
65
    !set wims_ref_class=wims_button wims_warning
1545 bpr 66
    !href cmd=reply&job=delclass&del=$l_ $wims_name_erase
12616 bpr 67
    </td><td>
68
    !if $s_!=$empty
69
      !if $s_=supervisor
70
        $wims_name_supervisor
71
      !else
72
        !default n_=$s_
73
        !href cmd=reply&job=modteacher&teacher=$s_ $n_
74
      !endif
23 reyssat 75
    !else
12616 bpr 76
      $name_nonavailable
23 reyssat 77
    !endif
12616 bpr 78
    </td><td>$c</td>
79
    !set c=!recordcnt $classdir1/$l_/.userlist
80
    <td>$c</td>
81
    </tr>
82
  !next i
12626 bpr 83
  </tbody>
12616 bpr 84
  $table_end
12638 obado 85
  !read tablesort.phtml
23 reyssat 86
!endif
10349 bpr 87
</div>
88
<div id="wims_zone_program">
5954 bpr 89
!if $progcnt=0
12616 bpr 90
  <p>
91
  $name_level2
92
  !href cmd=reply&job=addprog $wims_name_addprog
93
  . $
94
  !set wims_ref_class=wims_button_help
95
  !href cmd=help&special_parm=structure#program $wims_name_help
96
  </p>
23 reyssat 97
!else
12626 bpr 98
  !set table_id=TABLE_programlist
99
  !set table_class=sortable
12616 bpr 100
  $table_header
101
  <caption>$name_level3
10137 bpr 102
  $
12616 bpr 103
  !set wims_ref_class=wims_button_help
104
  !href cmd=help&special_parm=structure#program $wims_name_help
105
  !! <span class="small">
106
  !! !href cmd=reply&job=addprog $wims_name_addprog
12626 bpr 107
  !! </span>
108
  </caption>
109
  <thead>
12616 bpr 110
  $table_hdtr
12626 bpr 111
  <th scope="col">$name_code</th><th  scope="col">$wims_name_name</th>
112
  <th scope="col" data-sort-method="none">$wims_name_action</th><th  scope="col">$name_supervisor2</th>
113
  <th class="small" scope="col">$wims_name_course</th>
12616 bpr 114
  </tr>
12626 bpr 115
  </thead>
116
  <tbody>
12616 bpr 117
  !for i=1 to $progcnt
118
    !set l=!line $i of $programs
119
    !distribute items $l into l_,s_,t_,n_
120
    !set c=!record 0 of $classdir1/$l_/courses
121
    !set c=!nonempty lines $c
122
    !set c=!linecnt $c
123
    $table_tr<td>$l_</td>
124
    <td>
125
    !href cmd=reply&job=prog&prog=$l_ $t_
126
    </td><td>
12636 obado 127
    !set wims_ref_class=wims_button wims_warning
1545 bpr 128
    !href cmd=reply&job=delprog&del=$l_ $wims_name_erase
12616 bpr 129
    </td><td>
130
    !if $s_!=$empty
131
      !if $s_=supervisor
132
        $wims_name_supervisor
133
      !else
134
        !default n_=$s_
135
        !href cmd=reply&job=modteacher&teacher=$s_ $n_
136
      !endif
23 reyssat 137
    !else
12616 bpr 138
      $name_nonavailable
23 reyssat 139
    !endif
12616 bpr 140
    </td><td>$c</td>
141
    </tr>
142
  !next i
12626 bpr 143
  </tbody>
12616 bpr 144
  $table_end
12638 obado 145
  !read tablesort.phtml
11211 guerimand 146
!endif
1336 bpr 147
!set wims_menu_items=!append line addclass,1,cmd=reply&job=addclass\
11309 bpr 148
addcsvclass,1,cmd=reply&job=addcsvclass\
11214 guerimand 149
itemsep,0,\
1290 bpr 150
addprog,1,cmd=reply&job=addprog\
1336 bpr 151
to $wims_menu_items
10597 bpr 152
</div>
153
!! div id="widget_zone_list" is closed in main.phtml
23 reyssat 154
!reset title