Subversion Repositories wimsdev

Rev

Rev 11773 | Rev 12626 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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