Subversion Repositories wimsdev

Rev

Rev 14732 | Rev 14975 | Go to most recent revision | 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
 
14
!if $quota=yes
15
  <p class="wims_msg warning">
16
    <span class="wims_warning">$wims_name_Error.</span>$name_over_quota
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>
25
        <input type="file" name="wims_deposit" id="wims_deposit" />
26
        <input type="submit" value="$wims_name_send" />
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
36
  <table class="wimstable wimsborder wimscenter" style="width:90%">
37
  <caption>$name_imglist</caption>
38
  <thead><tr>
39
    <th>$name_filename</th><th>$name_preview</th>
14972 bpr 40
    <th>$name_html_code</th><th>$name_oef_code $name_oncondition</th>
11204 obado 41
    <th>$name_Actions</th>
42
  </tr></thead>
43
  <tbody>
44
  !for i in $imglist
45
    <tr>
46
      !set file_url = cmd=getfile&+session=$wims_session&+special_parm=oefimg/$i
47
      <td>$i</td>
48
      !if .gif isin $i or .jpg isin $i or .png isin $i or .jpeg isin $i
49
        <td>
50
          <a href="$wims_ref_name?$file_url" target="_blank">
51
          <img src="$wims_ref_name?$file_url" style="height:4em;" alt="$name_img_default_alt" /></a>
52
        </td>
53
        <td class="code"><textarea readonly>&lt;img src="\imagedir/$i" alt="$name_img_accessibility_alt" /&gt;</textarea></td>
54
        <td class="code"><textarea readonly>\img{\imagedir/$i}{alt="$name_img_accessibility_alt"}</textarea></td>
55
      !else
56
        !if .mp3 isin $i
57
           <td><audio controls><source src="wims.mp3?$file_url" type="audio/mpeg"></audio></td>
58
           <td class="code"><textarea readonly>&lt;audio controls&gt;&lt;source src="\imagedir/$i" type="audio/mpeg"&gt;&lt;/audio&gt;</textarea></td><td>&nbsp;</td>
59
        !else
60
          !if .ogg isin $i
61
            <td><audio controls><source src="wims.ogg?$file_url" type="audio/ogg"></audio>
62
            <div class="formHelp">$wims_name_warning: <a href="//caniuse.com/#feat=ogg-vorbis" target="_blank">$name_some_browsers</a> $name_ogg_warning</div></td>
63
            <td class="code"><textarea readonly>&lt;audio controls&gt;&lt;source src="\imagedir/$i" type="audio/ogg"&gt;&lt;/audio&gt;</textarea></td><td>&nbsp;</td>
64
          !else
13446 obado 65
            <td><a class="text_icon download" href="$wims_ref_name?$file_url">$i</a></td>
66
            <td class="code"><textarea readonly>&lt;a class="text_icon download" href="\imagedir/$i"&gt;$i&lt;/a&gt;</textarea></td><td>&nbsp;</td>
11204 obado 67
          !endif
68
        !endif
69
      !endif
70
      <td>
71
        !set wims_ref_class=wims_button wims_warning
72
        !href cmd=reply&delfile=$i $wims_name_erase
73
      </td>
74
    </tr>
75
  !next i
76
  </tbody>
77
  </table>
78
 
79
  <p>$name_access_via_imagedir</p>
13446 obado 80
 
81
  <hr/>
11204 obado 82
  <div>$name_how_to_hide_help</div>
83
 
84
!endif
85
 
86
<hr/>
87
<p class="wims_msg warning"><span class="wims_warning">$wims_name_warning.</span> $name_save_exo_warning</p>
88