<%--
  Created by IntelliJ IDEA.
  User: Kane
  Date: 2017/3/27
  Time: 16:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=gb2312" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<html>
<head>
    <title>电销转介绍清单上传</title>
    <link rel="icon" href="../image/telephone.png" >
    <link rel="stylesheet" href="uploadPolicyData.css" >
</head>
<body>
<p>电销转介绍清单上传</p>
<hr>
<form name="telSalePolicyDataUpload" method="post" action="<%=path%>/upload-policy-data" enctype="multipart/form-data" >
    <label>文件路径：<input type="file" name="data-file-name" size="30"></label>
    <input type="submit" name="upload" value="上传">
    <input type="reset" name="reset" value="重置">
</form>
<a href="../doc/电销转介绍导入模板.xls" style="color:red;">导入模板下载</a>
<%--<p style="display: inline">备注：保单号、车牌号、被保人、经办人代码、车商代码为必填项！</p>--%>
<!--上传结果显示-->
<%
    int uploadCount = 0;
    int successedCount = 0;
    int failCount = 0;
    String resultText = "<p>保存日志</p>";

    Object result = session.getAttribute( "保存日志" );

   if ( result != null )
   {
       //uploadCount = (int)session.getAttribute( "上传记录数量" );
       //successedCount = (int)session.getAttribute( "保存成功记录数量" );
       //failCount = (int)session.getAttribute( "保存失败记录数量" );
       resultText = (String)session.getAttribute( "保存日志" );

       %><div id="resultDiv" ><%
   }
   else
   {
       %><div id="resultDiv" style="display:none;" ><%
   }
%>
    <%=resultText%>
</div>
<%
        session.removeAttribute( "保存日志" );
%>
</body>
</html>
