<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>批量导入</title>
|
[#include "/business/pages/include/static.html" /]
|
</head>
|
<body>
|
<form id="uploadForm" action="${base}/business/pages/cmdb/propform/doUploadBatchCiInfo.html" method="post" enctype="multipart/form-data">
|
<table class="table_basic_info" style="width:100%;height:100%;">
|
<tr>
|
<td>
|
<input type="hidden" name="cate" value="${RequestParameters.cate}">
|
<input type="hidden" name="flowId" value="${RequestParameters.flowId}">
|
<input type="hidden" name="proId" value="${RequestParameters.proId}">
|
<div class="file-box">
|
请选择文件:
|
<input type="text" name="" id="textfield" class="txt">
|
<input type="button" name="" id="" class="btn" value="浏览">
|
<input type="file" name="file" id="file" class="file" size="28" onchange="document.getElementById('textfield').value=this.value"/>
|
</div>
|
|
</td>
|
</tr>
|
</table>
|
</form>
|
</body>
|
<script type="text/javascript">
|
function onDialogBtnClick(btnID, dialogID, config){
|
if(btnID){
|
if($.util.isEmpty($("#file").val())){
|
window.top.popupTips('请选择文件');
|
return ;
|
}
|
document.getElementById("uploadForm").target = window.top.openDialog("0","批量导入",
|
{},
|
{"width":40,"height":40,"noclose":true},
|
[{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
|
$("#uploadForm").submit();
|
}
|
}
|
</script>
|
</html>
|