files.tpl 719 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<script type="text/javascript">
    var {{$name}}_current = 0;
    var {{$name}}_newrefinput;
    var {{$name}}_newref;

    function {{$name}}_new() {
        {{$name}}_current++;
        {{$name}}_newrefinput = INPUT({'type': 'file', 'name': '{{$name}}_files_' + {{$name}}_current});
        var {{$name}}_newref = DIV(null,{{$name}}_newrefinput);

        appendChildNodes('{{$name}}_list', {{$name}}_newref);

        {{$name}}_newrefinput.focus();
    }
</script>
<div id="{{$name}}_list">
17
    {{if $maxfilesize}}
18
    <input type="hidden" name="MAX_FILE_SIZE" value="{{$maxfilesize}}">
19
    {{/if}}
20
    <input type="file" name="{{$name}}_files_0">
21
22
</div>
<a href="" onclick="{{$name}}_new(); return false;">[+]</a>