buli
2023-06-05 e9b970ea36eea5dcf93fd5b965bf13d7010ce0ad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<apex:component controller="BatchFileUploadController"> 
    <apex:attribute name="parentId" description="The ID of the record uploaded documents will be attached to." type="String" required="true"/>
    
    <link rel="stylesheet" type="text/css" href="{!$Resource.FileUploadCSS}"/>
    <!-- <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"/> -->
    <script type="text/javascript" src="{!$Resource.FileUploadJS}"/>
    <apex:includeScript value="{! URLFOR($Resource.AWSService, 'AWSService.js') }" />
    <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
    
    <script type="text/javascript">
        var staticResource = JSON.parse('{!staticResource}');
        var newUrl = '{!newUrl}';
        var parentId = '{!parentId}';
    </script>
    
    <div class="uploadBox">
        <table cellpadding="0" cellspacing="0" class="uploadTable">
            <tr>
                <td style="padding-right:5px;">附件上传</td><!-- 20221128 ljh update end -->
                <!-- 20221128 ljh update end -->
                <!-- <td><input type="file" multiple="true" id="filesInput" name="file" /></td> -->
                <td><input type="file" multiple="true" id="filesInput" name="file" accept=".pdf"/></td>
                <!-- 20221128 ljh update end -->
                <td class="buttonTD">
                    <!-- 20221128 ljh update end -->
                    <!-- <input id="uploadButton" type="button" title="Upload" class="btn" value="Upload"/> -->
                    <input id="uploadButton" type="button" title="Upload" class="btn" value="上传"/>
                    <!-- 20221128 ljh update end -->
                    <!-- <input id="clear" type="button" title="Clear" class="btn" value=" Clear "/> -->
                </td>
                <!-- zhj 2022-12-17 start -->
                <td class="buttonTD">
                    <input id="removeFile" type="button" title="removeFile" class="btn" value="删除"/>
                </td>
                <!-- zhj 2022-12-17 end -->
            </tr>
        </table>
    </div>
</apex:component>