Subversion Repositories wimsdev

Rev

Rev 11078 | Rev 11144 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
23 reyssat 1
 
2
!set wims_form_method=post
1587 bpr 3
!read adm/title.phtml 1\
4
$classname\
5
$wims_name_csv
6
 
9125 bpr 7
!if $wims_user=supervisor and ($wims_typename iswordof course or \
8
($wims_typename iswordof class and $wims_supertype iswordof 0 2))
10744 guerimand 9
 <p class="wimscenter">
10
 !set wims_ref_class=wims_button
11
 !href cmd=reply $name_direct_score
12
 </p>
9125 bpr 13
!endif
23 reyssat 14
 
15
!if $error!=$empty
10228 bpr 16
 <div class="wims_msg alert">
9118 bpr 17
 !read lang/msg.phtml.$moduclass_lang
5874 bpr 18
 </div>
23 reyssat 19
 !if $error iswordof not_secure not_superclass
20
  !exit
21
 !endif
6235 bpr 22
<hr />
23 reyssat 23
!endif
24
 
25
!if $outfile!=$empty
10812 bpr 26
 <div class="wims_msg success">
5901 bpr 27
  $name_file <span class="tt wims_fname">
23 reyssat 28
 !getfile $outfile $outfile
5901 bpr 29
 </span> $name_download
10812 bpr 30
 </div>
23 reyssat 31
!endif
10744 guerimand 32
 
8452 guerimand 33
!if $processed=yes
23 reyssat 34
 !if $remark$change$added$missing$erased!=$empty or $manual=yes
10812 bpr 35
  <div class="wims_msg success">
10744 guerimand 36
  $name_deposit
37
  <ul>
23 reyssat 38
  !if $change!=$empty
5901 bpr 39
   <li>$name_infochanged: <span class="tt wims_login">
4952 bpr 40
   !replace internal , by ,$ $ in $change
5901 bpr 41
   </span></li>
23 reyssat 42
  !endif
43
  !if $added!=$empty
5901 bpr 44
   <li>$name_added: <span class="tt wims_login">
4952 bpr 45
   !replace internal , by ,$ $ in $added
5901 bpr 46
   </span></li>
23 reyssat 47
  !endif
10744 guerimand 48
  !if $bad_login!=$empty
5901 bpr 49
   <li>$name_badlogin: <span class="tt wims_login">
10561 bpr 50
    !replace internal , by ,$ $ in $bad_login
5901 bpr 51
   </span></li>
10744 guerimand 52
  !endif
53
  !if full iswordof $remark
10561 bpr 54
    <li>$name_warning1</li>
10744 guerimand 55
  !endif
56
  !if noprop iswordof $remark
10561 bpr 57
    <li>$name_warning2</li>
10744 guerimand 58
  !endif
59
  !if noauto iswordof $remark
10561 bpr 60
    <li>$name_warning3</li>
10744 guerimand 61
  !endif
62
  !if $erased!=$empty
10561 bpr 63
    <li>$name_warning4:
64
    <span class="tt wims_login">
65
    !replace internal , by ,$ $ in $erased
66
    </span></li>
10744 guerimand 67
  !endif
68
  !if $missing!=$empty
10561 bpr 69
    <li>
70
    !if full notwordof $remark
71
     $name_nologin1:
72
    !else
73
     $name_nologin2:
74
    !endif
75
    <span class="tt wims_login">$missing</span>.
76
    !if $pass_missing=yes
77
     $name_passwarning
78
    !endif
10744 guerimand 79
    </li>
23 reyssat 80
  !endif
81
  !if $manual=yes
2397 bpr 82
   <li>$name_manual1
83
   !href module=adm/class/grades $name_check
10744 guerimand 84
   .</li>
23 reyssat 85
  !endif
86
  </ul>
10812 bpr 87
  </div>
23 reyssat 88
 !else
10812 bpr 89
 <div class="wims_msg success">
10744 guerimand 90
  $name_data1
10812 bpr 91
  </div>
23 reyssat 92
 !endif
93
!endif
94
 
95
!form reply
6235 bpr 96
<input type="hidden" name="job" value="csv" />
97
<input type="hidden" name="csvtype" value="download" />
10744 guerimand 98
$name_data2
99
<ul>
2397 bpr 100
<li>$name_format
10744 guerimand 101
 !formselect csvformat list $csvformatlist
102
 &nbsp;
103
 !set wims_ref_class=wims_button_help
104
 !href module=$module&cmd=help&special_parm=csvformats $wims_name_help
3069 bpr 105
</li>
8452 guerimand 106
 
107
!! keywords of column
108
 
10744 guerimand 109
<li>
110
 $name_column
111
 &nbsp;
112
 !set wims_ref_class=wims_button_help
113
 !href module=$module&cmd=help&special_parm=csvfields $wims_name_help
8452 guerimand 114
 
10744 guerimand 115
 !readproc csv/keyword.proc
116
 <div class="field">
117
 <ul>
118
 !for bas in basic, basic2
9118 bpr 119
  !if $($bas)!=$empty
120
   <li>
121
   !let tmp=!replace password by in $($bas)
9139 guerimand 122
   !let tmp=!replace vars by in $($bas)
9118 bpr 123
   !let tmp=!words2items $tmp
124
   !for k in $tmp
125
    <input type="checkbox" name="csvdownload" id="csvdownload_$k" value="$k"/><label for="csvdownload_$k">$k</label>
126
   !next k
127
   </li>
128
  !endif
10744 guerimand 129
 !next bas
130
 !let list_type=sh,shexo,ex,exexo,examduration,ma
131
 !let list_name=$wims_name_Sheets,$name_indicateur,$wims_name_Examens,$wims_name_Examens ($wims_name_Exercices),\
132
 $wims_name_Examens ($name_Duration),$name_manualscore
11078 bpr 133
 !let list_keyword=sheets,sheetexo,exams,examexo,examduration,manual
10744 guerimand 134
 !if $($(list_type[1]))$($(list_type[2]))$($(list_type[3]))$($(list_type[4]))$($(list_type[5]))!=$empty
135
  <li><input type="checkbox" name="csvdownload" id="csvdownload_allscore" value="allscore"/><label for="csvdownload_allscore">$name_allscore</label></li>
136
 !endif
11138 bpr 137
 !for t from 1 to 6
8452 guerimand 138
    !if $($(list_type[$t]))!=$empty
9719 bpr 139
          !let tmp=!words2items $($(list_type[$t]))
140
          <li>
141
         <b>$(list_name[$t])</b>:
10978 bpr 142
         !if $t notwordof 2 4 5
143
         <input type="checkbox" name="csvdownload" id="csvdownload_$(list_keyword[$t])" value="$(list_keyword[$t])"/><label for="csvdownload_$(list_keyword[$t])">$name_all</label>
9719 bpr 144
         !endif
145
         !for k in $tmp
9118 bpr 146
          <input type="checkbox" name="csvdownload" id="csvdownload_$k" value="$k"/><label for="csvdownload_$k">$k</label>
9719 bpr 147
         !next k
8452 guerimand 148
        </li>
149
    !endif
10744 guerimand 150
 !next t
151
 !if $av!=$empty
9719 bpr 152
  !let tmp=!words2items $av
153
  <li><b>$name_Average</b>:
154
  !for k in $tmp
9120 bpr 155
    <input type="checkbox" name="csvdownload" id="csvdownload_$k" value="$k"/><label for="csvdownload_$k">$k</label>
9719 bpr 156
  !next k
157
  </li>
10744 guerimand 158
 !endif
159
 <li>
160
  <input type="checkbox" name="csvdownload" id="csvdownload_techvar" value="techvar"/>
161
  <label for="csvdownload_techvar">$name_techvar</label>
10812 bpr 162
 </li><li>
10744 guerimand 163
  <input type="checkbox" name="csvdownload" id="csvdownload_regvar" value="regvar"/>
164
  <label for="csvdownload_regvar">$name_regvar</label>
165
 </li>
10812 bpr 166
 </ul>
8452 guerimand 167
</li>
23 reyssat 168
</ul>
6235 bpr 169
<input type="submit" value="$wims_name_download" />
10744 guerimand 170
!formend
2397 bpr 171
 
10744 guerimand 172
 
173
 
9719 bpr 174
!! open the upload to the level supervisor alternative use user_supervise
5412 bpr 175
!if $classtype notin 13 or $typename iswordof class course  or\
176
   ($typename iswordof level and $wims_user=supervisor)
9719 bpr 177
  <hr />
1587 bpr 178
 !set wims_form_method=file
179
 !form reply
10744 guerimand 180
  <input type="hidden" name="job" value="csv" />
181
  <input type="hidden" name="csvtype" value="upload" />
182
  $name_data3
183
  &nbsp;
184
  !set wims_ref_class=wims_button_help
185
  !href module=$module&cmd=help&special_parm=upload $wims_name_help
186
  <ul>
187
   <li>$name_data <input type="file" size="30" name="wims_deposit" /> <br />
188
   $name_format2: <span class="tt">.csv</span>, <span class="tt">.tsv</span>, <span class="tt">.txt</span>
189
   &nbsp;
190
   !set wims_ref_class=wims_button_help
191
   !href module=$module&cmd=help&special_parm=csvformats2 $wims_name_help
192
   </li>
193
  </ul>
194
  <input type="submit" value="$wims_name_send" />
195
 !formend
196
!endif
9118 bpr 197
 
10334 bpr 198
!set wims_menu_items=!append line itemsep,0,$wims_name_manage\
199
usermanage,1,module=adm/class/usermanage\
10740 guerimand 200
techvar,1,module=adm/class/techvar\
10334 bpr 201
to $wims_menu_items
23 reyssat 202
 
9121 bpr 203
!if $wims_user=supervisor and ($wims_typename iswordof course or \
204
($wims_typename iswordof class and $wims_supertype iswordof 0 2))
10334 bpr 205
  !set wims_menu_items=!append line itemsep,0,$wims_name_Evaluation\
206
  Score1,1,cmd=resume\
9600 bpr 207
  livret,1,module=adm/class/livret\
1587 bpr 208
to $wims_menu_items
9121 bpr 209
!endif