1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <%@ page contentType="text/html;charset=UTF-8" language="java"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
- <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/admin/manage/h-ui/css/H-ui.min.css" />
- <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/admin/manage/h-ui.admin/css/H-ui.admin.css" />
- <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/admin/manage/Hui-iconfont/1.0.7/iconfont.css" />
- <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/admin/manage/icheck/icheck.css" />
- <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/admin/manage/h-ui.admin/skin/default/skin.css" id="skin" />
- <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/admin/manage/h-ui.admin/css/style.css" />
- <script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/manage/js/jquery.min.js"></script>
- <script type="text/javascript" src="${pageContext.request.contextPath}/static/js/ajaxfileupload.js"></script>
- <script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/js/layer.js"></script>
- <title>签到导入</title>
- </head>
- <body>
- <nav class="breadcrumb">
- <i class="Hui-iconfont"></i> 信息导入
- <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont"></i></a>
- </nav>
- <div class="page-container">
- <div style="width:1120px;height:80px;margin:5px auto;">
- <span style="color:red;">注意:* 为了防止操作不当,请您在导入数据前先下载我们规定表格格式,然后将您的数据复制到规定表格中再导入!</span><br/>
- <a href="${pageContext.request.contextPath}/upload/luru.xls" style="color:#0066CC;text-decoration:underline;"><h3>下载表格 <i class="Hui-iconfont"></i></h3></a>
- </div>
- <form action="signload.html" method="post" enctype="multipart/form-data" class="form form-horizontal" id="banneradd">
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">选择表格:</label>
- <div class="formControls col-xs-8 col-sm-4">
- <input type="file" id="fileToUpload" class="input-text" name="fileToUpload">
- </div>
- <div class="formControls col-xs-8 col-sm-4">
- <input type="text" class="input-text" readonly name="url" id="url">
- </div>
- </div>
- <div class="row cl">
- <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
- <button onClick="$('#banneradd').submit()" class="btn btn-primary radius" type="button"><i class="Hui-iconfont"></i> 保存</button>
- </div>
- </div>
- </form>
- </div>
- <script type="text/javascript">
- $("#fileToUpload").change(function(){
- var index = layer.load(0, {shade: false});
- var f = document.getElementById('fileToUpload').files[0];
- $.ajaxFileUpload({
- fileElementId : 'fileToUpload',
- url : 'uploadImage',
- dataType : 'text',
- data : {},
- async : true,
- error : function(data) {
- alert("网络异常,请重试");
- },
- success : function(message) {
- $("#url").val(message);
- chen();
- layer.close(index);
- }
- });
- });
- function chen(){
- $("#fileToUpload").change(function(){
- var index = layer.load(0, {shade: false});
- var f = document.getElementById('fileToUpload').files[0];
- $.ajaxFileUpload({
- fileElementId : 'fileToUpload',
- url : 'uploadImage',
- dataType : 'text',
- data : {},
- async : true,
- error : function(data) {
- alert("网络异常,请重试");
- },
- success : function(message) {
- $("#url").val(message);
- chen();
- layer.close(index);
- }
- });
- });
- }
- </script>
- </body>
- </html>
|