Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
13446 obado 1
!! Level 6 happens when submitting binary files into the exercice
2
 
14732 bpr 3
<style>
11204 obado 4
  .code textarea{font-family: monospace,'Courier';font-size:75%;width:100%;min-width:25em;height:3em;color:#555}
5
  .wims_form>.property_fields{margin:1em auto;}
6
</style>
7
 
8
!read lang/level6.phtml.$modu_lang
9
 
10
!read adm/title.phtml 3\
11
\
12
$name_subtitle
13
 
14981 obado 14
!if $quota_free<=1
11204 obado 15
  <p class="wims_msg warning">
14981 obado 16
    <span class="wims_warning">$wims_name_Error.</span> $name_over_quota
11204 obado 17
  </p>
18
!else
19
  !set wims_form_method=file
20
  !form reply
21
    <fieldset class="property_fields">
22
      <legend>$name_add_file</legend>
23
      <div class="wimsform">
24
        <label for="wims_deposit" >$name_add_file_label</label>
17230 bpr 25
        <input type="file" name="wims_deposit" id="wims_deposit" required="required">
26
        <input type="submit" value="$wims_name_send">
11204 obado 27
        <div class="formHelp">$name_add_file_help</div>
28
      </div>
29
    </fieldset>
30
  !formend
31
!endif
32
 
33
!if $imglist=$empty
34
  $name_empty_imglist
35
!else
14975 bpr 36
  <p class="wims_msg warning"><span class="wims_warning">$wims_name_warning.</span> $name_save_exo_warning</p>
11204 obado 37
  <table class="wimstable wimsborder wimscenter" style="width:90%">
38
  <caption>$name_imglist</caption>
39
  <thead><tr>
40
    <th>$name_filename</th><th>$name_preview</th>
14972 bpr 41
    <th>$name_html_code</th><th>$name_oef_code $name_oncondition</th>
11204 obado 42
    <th>$name_Actions</th>
43
  </tr></thead>
44
  <tbody>
45
  !for i in $imglist
46
    <tr>
47
      !set file_url = cmd=getfile&+session=$wims_session&+special_parm=oefimg/$i
48
      <td>$i</td>
49
      !if .gif isin $i or .jpg isin $i or .png isin $i or .jpeg isin $i
50
        <td>
51
          <a href="$wims_ref_name?$file_url" target="_blank">
17230 bpr 52
          <img src="$wims_ref_name?$file_url" style="height:4em;" alt="$name_img_default_alt"></a>
11204 obado 53
        </td>
54
        <td class="code"><textarea readonly>&lt;img src="\imagedir/$i" alt="$name_img_accessibility_alt" /&gt;</textarea></td>
55
        <td class="code"><textarea readonly>\img{\imagedir/$i}{alt="$name_img_accessibility_alt"}</textarea></td>
56
      !else
57
        !if .mp3 isin $i
14975 bpr 58
          <td><audio controls><source src="wims.mp3?$file_url" type="audio/mpeg"></audio></td>
59
          <td class="code"><textarea readonly>&lt;audio controls&gt;&lt;source src="\imagedir/$i" type="audio/mpeg"&gt;&lt;/audio&gt;</textarea></td>
60
          <td class="code"><textarea readonly>\audio{\imagedir/$i}</textarea></td>
11204 obado 61
        !else
62
          !if .ogg isin $i
63
            <td><audio controls><source src="wims.ogg?$file_url" type="audio/ogg"></audio>
64
            <div class="formHelp">$wims_name_warning: <a href="//caniuse.com/#feat=ogg-vorbis" target="_blank">$name_some_browsers</a> $name_ogg_warning</div></td>
14975 bpr 65
            <td class="code"><textarea readonly>&lt;audio controls&gt;&lt;source src="\imagedir/$i" type="audio/ogg"&gt;&lt;/audio&gt;</textarea></td>
66
            <td class="code"><textarea readonly>\audio{\imagedir/$i}</textarea></td>
11204 obado 67
          !else
15054 bpr 68
            <td><a class="text_icon download" href="$wims_ref_name?$file_url" download="$i">$i</a></td>
69
            <td class="code"><textarea readonly>&lt;a class="text_icon download" href="\imagedir/$i" download="$i"&gt;$i&lt;/a&gt;</textarea></td>
14975 bpr 70
            <td>&nbsp;</td>
11204 obado 71
          !endif
72
        !endif
73
      !endif
74
      <td>
75
        !set wims_ref_class=wims_button wims_warning
76
        !href cmd=reply&delfile=$i $wims_name_erase
77
      </td>
78
    </tr>
79
  !next i
80
  </tbody>
81
  </table>
82
 
83
  <p>$name_access_via_imagedir</p>
13446 obado 84
 
17230 bpr 85
  <hr>
11204 obado 86
  <div>$name_how_to_hide_help</div>
87
 
88
!endif
14981 obado 89
 
17230 bpr 90
<hr>
14981 obado 91
 
92
!read adm/class/quotafree.proc html