You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
104 lines
5.1 KiB
104 lines
5.1 KiB
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<%@ page language="java" pageEncoding="UTF-8"%>
|
|
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
|
<%@ include file="/common/ctx.jsp"%>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
|
<title>导入</title>
|
|
<!-- jQuery -->
|
|
<script src="${ctx}/js/jquery.min.js"></script>
|
|
<script src="${ctx}/js/bootstrap.min.js"></script>
|
|
<script src="${ctx}/js/waves.js"></script>
|
|
<script src="${ctx}/js/wow.min.js"></script>
|
|
<script src="${ctx}/js/jquery.nicescroll.js" type="text/javascript"></script>
|
|
<script src="${ctx}/js/jquery.scrollTo.min.js"></script>
|
|
<script src="${ctx}/assets/jquery-detectmobile/detect.js"></script>
|
|
<script src="${ctx}/assets/fastclick/fastclick.js"></script>
|
|
<script src="${ctx}/assets/jquery-slimscroll/jquery.slimscroll.js"></script>
|
|
<script src="${ctx}/assets/jquery-blockui/jquery.blockUI.js"></script>
|
|
<!-- Base Css Files -->
|
|
<link href="${ctx}/css/bootstrap.min.css" rel="stylesheet" />
|
|
<!-- Font Icons -->
|
|
<link href="${ctx}/assets/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
|
|
<link href="${ctx}/assets/ionicon/css/ionicons.min.css" rel="stylesheet" />
|
|
<link href="${ctx}/css/material-design-iconic-font.min.css" rel="stylesheet">
|
|
|
|
<!-- animate css -->
|
|
<link href="${ctx}/css/animate.css" rel="stylesheet" />
|
|
|
|
<!-- Waves-effect -->
|
|
<link href="${ctx}/css/waves-effect.css" rel="stylesheet">
|
|
|
|
<!-- Custom Files -->
|
|
<link href="${ctx}/css/helper.css" rel="stylesheet" type="text/css" />
|
|
<link href="${ctx}/css/style.css" rel="stylesheet" type="text/css" />
|
|
|
|
<script src="${ctx}/js/modernizr.min.js"></script>
|
|
<script type="text/javascript">
|
|
//返回
|
|
function reback(){
|
|
location.href="${ctx}/tcdcreshighway/searchTcdcResHighwayList.do";
|
|
}
|
|
function import2(){
|
|
var s = document.getElementById("upfile").value;
|
|
if(s!=null&&s!=""){
|
|
if(s.indexOf("xls")!=-1){
|
|
document.mainForm.submit();
|
|
}else{
|
|
window.parent.customAlertTip("", "文件格式不正确!");
|
|
}
|
|
|
|
}else{
|
|
window.parent.customAlertTip("", "请选择excel文件!");
|
|
}
|
|
}
|
|
</script>
|
|
</head>
|
|
<body class="fixed-left">
|
|
<div id="wrapper">
|
|
<div style="overflow: hidden;position: relative; min-height: 940px;">
|
|
<!-- Start content -->
|
|
<div class="content">
|
|
<div class="container">
|
|
<!-- Form-validation -->
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<div class="panel panel-default">
|
|
<!-- <div class="panel-heading"><h3 class="panel-title">用户新增</h3></div> -->
|
|
<div class="panel-body">
|
|
<div class="form">
|
|
<form class="cmxform form-horizontal tasi-form" id="mainForm" name="mainForm" action="${ctx}/tcdcreshighway/daoru.do" method="post" enctype="multipart/form-data">
|
|
<br/><br/><br/>
|
|
<div class="form-group ">
|
|
<label for="logname" class="control-label col-sm-2">请选择EXCEL文件:
|
|
</label>
|
|
<div class="col-sm-8">
|
|
<input class="form-control " id="upfile" name="upfile" type="file">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-offset-2 col-sm-8">
|
|
<button class="btn btn-purple waves-effect waves-light" type="button" onclick="import2()" ><i class="md md-file-download"></i> 导入</button>
|
|
<button class="btn btn-info waves-effect waves-light" type="button"onclick="reback()"><i class="fa fa-reply"></i>返回</button>
|
|
</div>
|
|
</div>
|
|
|
|
</form>
|
|
</div> <!-- .form -->
|
|
</div> <!-- panel-body -->
|
|
</div> <!-- panel -->
|
|
</div> <!-- col -->
|
|
</div> <!-- End row -->
|
|
</div> <!-- container -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--form validation-->
|
|
<script type="text/javascript" src="${ctx}/assets/jquery.validate/jquery.validate.min.js"></script>
|
|
|
|
</body>
|
|
</html> |