|
|
@ -84,28 +84,35 @@ |
|
|
|
<#-- 输入下载地址预览文件 --> |
|
|
|
<#-- 输入下载地址预览文件 --> |
|
|
|
<div class="panel panel-success"> |
|
|
|
<div class="panel panel-success"> |
|
|
|
<div class="panel-heading"> |
|
|
|
<div class="panel-heading"> |
|
|
|
<h3 class="panel-title">输入下载地址预览文件</h3> |
|
|
|
<h3 class="panel-title">输入下载地址预览</h3> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="panel-body"> |
|
|
|
<div class="panel-body"> |
|
|
|
<form> |
|
|
|
<form> |
|
|
|
|
|
|
|
<div class="row"> |
|
|
|
|
|
|
|
<div class="col-md-10"> |
|
|
|
<div class="form-group"> |
|
|
|
<div class="form-group"> |
|
|
|
<label>文件下载地址</label> |
|
|
|
<input type="url" class="form-control" id="_url" placeholder="请输入预览文件 url"> |
|
|
|
<input type="url" class="form-control" id="_url" placeholder="请输入下载地址"> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="col-md-2"> |
|
|
|
|
|
|
|
<button id="previewByUrl" type="button" class="btn btn-success">预览</button> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="alert alert-danger alert-dismissable hide" role="alert" id="previewCheckAlert"> |
|
|
|
<div class="alert alert-danger alert-dismissable hide" role="alert" id="previewCheckAlert"> |
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close"> |
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close"> |
|
|
|
<span aria-hidden="true">×</span> |
|
|
|
<span aria-hidden="true">×</span> |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
<strong>请输入正确的url</strong> |
|
|
|
<strong>请输入正确的url</strong> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<button id="previewByUrl" type="button" class="btn btn-success">预览</button> |
|
|
|
|
|
|
|
</form> |
|
|
|
</form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<#-- 预览测试 --> |
|
|
|
<#-- 预览测试 --> |
|
|
|
<div class="panel panel-success"> |
|
|
|
<div class="panel panel-success"> |
|
|
|
<div class="panel-heading"> |
|
|
|
<div class="panel-heading"> |
|
|
|
<h3 class="panel-title">预览测试</h3> |
|
|
|
<h3 class="panel-title">上传本地文件预览</h3> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="panel-body"> |
|
|
|
<div class="panel-body"> |
|
|
|
<#if fileUploadDisable == false> |
|
|
|
<#if fileUploadDisable == false> |
|
|
@ -113,9 +120,19 @@ |
|
|
|
<form enctype="multipart/form-data" id="fileUpload"> |
|
|
|
<form enctype="multipart/form-data" id="fileUpload"> |
|
|
|
<div class="form-group"> |
|
|
|
<div class="form-group"> |
|
|
|
<p id="fileName"></p> |
|
|
|
<p id="fileName"></p> |
|
|
|
|
|
|
|
<div class="row"> |
|
|
|
|
|
|
|
<div class="col-md-2"> |
|
|
|
<button type="button" class="btn btn-default" id="fileSelectBtn" style="margin-bottom:8px"> |
|
|
|
<button type="button" class="btn btn-default" id="fileSelectBtn" style="margin-bottom:8px"> |
|
|
|
<span class="glyphicon glyphicon-cloud-upload" aria-hidden="true"></span> 选择文件 |
|
|
|
<span class="glyphicon glyphicon-cloud-upload" aria-hidden="true"></span> 选择文件 |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="col-md-1"> |
|
|
|
|
|
|
|
<button id="btnSubmit" type="button" class="btn btn-success">上 传</button> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="col-md-9"> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<input type="file" name="file" style="display: none" id="fileSelect" |
|
|
|
<input type="file" name="file" style="display: none" id="fileSelect" |
|
|
|
onchange="onFileSelected()"/> |
|
|
|
onchange="onFileSelected()"/> |
|
|
|
<div class="alert alert-danger alert-dismissable hide" role="alert" id="postFileAlert"> |
|
|
|
<div class="alert alert-danger alert-dismissable hide" role="alert" id="postFileAlert"> |
|
|
@ -125,7 +142,7 @@ |
|
|
|
<strong>请选择需要上传的文件!</strong> |
|
|
|
<strong>请选择需要上传的文件!</strong> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<button id="btnSubmit" type="button" class="btn btn-success">上 传</button> |
|
|
|
|
|
|
|
</form> |
|
|
|
</form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</#if> |
|
|
|
</#if> |
|
|
|