<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="inputUser.aspx.cs" Inherits="ZYDN.Web.system.USER.inputUset" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link rel="stylesheet" type="text/css" href="../skins/css/main.css" />
	<link rel="stylesheet" type="text/css" href="../skins/css/Sys.css" />
	<link rel="stylesheet" type="text/css" href="../myWeb/css/myWeb.css" />
	<script language="javascript" src="../js/JFramework.js"></script>
	<script language="javascript" src="../js/Sys.js"></script>
	<script language="javascript" src="js/inputUser.js"></script>
	<script language="javascript">
		var objAjax=new JAjax();
		var input=new inputData();
		var outTab=readPar(location.href,"asTab");
		input.outTabName=outTab;
		var menuid=readPar(location.href,"menuid")
		input.menuid=menuid;
		function loadPage(){
		  input.setDiv();
		  input.step1start();
		}
	
		
	</script>
    <title>导入用户</title>
</head>
<body onLoad="setTimeout('loadPage()',20)" 	style="padding-left:2px;overflow:auto;">

<div id="step" name="step">
<form  target="upFileIframe" action="inputData.aspx?type=UpFile" name="form1" id="form1" method="post" enctype="multipart/form-data">

		第一步, 选择数据来源 : 

		<input type="radio"  value="SQL" name="R1" onClick="input.selectSource(this)"/>SQL Server<span style="width:20px"></span>
		<input type="radio" value="ACCESS" name="R1" onClick="input.selectSource(this)"/>ACCESS <span style="width:20px"></span>
		<input type="radio" value="EXCEL" checked name="R1" onClick="input.selectSource(this)"/>EXCEL 
		<br/><input type="radio" value="UPEXCEL" name="R1" onClick="input.selectSource(this)"/>FTP上传的 EXCEL 文件
		<input type="radio" value="UPACCESS"  name="R1" onClick="input.selectSource(this)"/>FTP上传的ACCESS文件
		
		<div id="source" style="display:none">
			数据库服务器参数<br>地&nbsp;&nbsp;址:<input type="text" id="Server" style="width:100px"> 
			库名:<input type="text" id="DataName" style="width:100px"><br>
			用户名:<input type="text" id="userName" style="width:100px">
			密码:<input type="text" id="userPass" style="width:100px">
		</div>
		<div  id="source">
			上传数据库文件<input type="file" id="UpFile" name="UpFile">
		</div>
		<div  id="source" style="display:none">
			请把EXCEL文件上传到 upFile/tempData/tempDB.xls,  注意文件名必须是 tempDB.xls
		</div>
		<div  id="source" style="display:none">
			请把Access文件上传到 upFile/tempData/tempDB.mdb,  注意文件名必须是 tempDB.mdb
		</div>
		<input type="button" id="button_1" value="下一步" onClick="input.step1();">
  </form>

</div>
<div id="step" name="step">

  第二步, 选择来源数据表:
	<form>
		<div id="tabList">
		
		
		</div>
		<input type="button" id="button_2" onClick="input.step1start();" value="上一步">
		<input type="button" id="button_2"  onclick="input.step2ok();"value="下一步" >
	</form>
</div>

<div id="step" name="step">
配置字段关系:
	<form id="form3" name="form3">
		<div>
			将配置保存为<input type="text" id="setupSave" style="width:100px;" />
			载入字段配置<select id="selectINI" onChange="input.loadIni(this.value)"><option value="">选择配置</option></select>
			<input  type="button" value="删除此配置" onClick="input.delIni()">
		</div>
		<div style="background-color:#efefef;color:#808080">
		来源密码类型, 如果来源密码为其它或没有密码时,系统将自动初始化用户密码为 123456<br>
		
		<input onclick="input.pwType=16" type="radio" checked="checked" id="passType" checked><label for="findType">16位MD5加密</label>
		<input onclick="input.pwType=32" type="radio" id="passType"><label for="findType">32位MD5加密</label>
		<input onclick="input.pwType=0" type="radio" id="passType"><label for="findType">未加密明码</label>
		<input onclick="input.pwType=1" type="radio" id="passType"><label for="findType">其它密码</label>
		
		</div>
		<div>
			<span style="width:250px;overflow:hidden">来源字段(数据示例)</span>
			<span style="width:150px">目标字段</span>
		</div>
		<div>
			<span id="inField"  style="width:250px;color:#808080">
			
			
			</span>
			<span id="outField" style="width:250px"> 
			
			
			</span>
		</div>
		<input type="button" id="button_2" onClick="input.step2start();" value="上一步">
		<input type="button" id="button_2"  onclick="input.step3ok();"value="开始导入" >
	</form>

</div>

<div id="step" name="step">
	  <div id="inputWord">数据导入开始.....</div>
  <input type="button" id="button_end" onClick="input.step3start();" style="display:none;" value="上一步">
  <br>
  <div> 
  <input type='button' value='停止' onclick='input.stopInput=1'>
 
  </div>
</div>

<div id="step" name="step">


</div>

<iframe name="upFileIframe" width="0" height="0" src=""></iframe>
</body>

</html>