Files
2025-02-20 14:59:35 +08:00

37 baris
1.4 KiB
Plaintext

${Scripts.src(zhiqim_uploadlarge.js)}
<script>
function doFileDownload(filetype,url){
if(filetype=='pdf'){
var fileName = ${mediaId} + ".pdf";
var element1 = document.createElement("a");
element1.href = url;
element1.setAttribute("download", fileName);
element1.click();
}else{
window.open(url);
}
}
</script>
<table class="z-table z-bordered z-pd10 z-bg-white">
<tr height="80">
<td width="15%">请选择:</td>
<td width="85%">
<#if Validates.isNotEmpty(urlMap.get("pdf"))>
<button type="button" class="z-button z-large ${zmr_color_class} zi-mg-l5" onclick="doFileDownload('pdf','${urlMap.get("pdf")}');">
PDF文件下载</button>
</#if>
<#if Validates.isNotEmpty(urlMap.get("cdr"))>
<button type="button" class="z-button z-large ${zmr_color_class} zi-mg-l5" onclick="doFileDownload('cdr','${urlMap.get("cdr")}');">
CDR文件下载</button>
</#if>
<#if Validates.isNotEmpty(urlMap.get("psd"))>
<button type="button" class="z-button z-large ${zmr_color_class} zi-mg-l5" onclick="doFileDownload('psd','${urlMap.get("psd")}')">
PSD文件下载</button>
</#if>
<#if Validates.isNotEmpty(urlMap.get("ai"))>
<button type="button" class="z-button z-large ${zmr_color_class} zi-mg-l5" onclick="doFileDownload('ai','${urlMap.get("ai")}');">
AI文件下载</button>
</#if>
</td>
</tr>
</table>