<html xmlns="http://www.w3.org/1999/xhtml">
<!--#include file="../Inc/Conn.asp" -->
<!--#include file="../Inc/SK.Session.asp" -->
<!--#include file="../Inc/SK.Funtion.asp" -->
<%if Not (Getconfig("SK_Client")="0" AND (Session("Manager")="1" OR (JudgePopedomTF(Session("UserName"),"SK200000000") AND JudgePopedomTF(Session("UserName"),"SK200000400") AND JudgePopedomTF(Session("UserName"),"SK200000401")))) then Call ReturnError()%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
<title>导入客户信息</title>
<META http-equiv=Page-Enter content=SKCRM>
<META http-equiv=Page-Exit content=SKCRM>
<META content="MSHTML 6.00.3790.2858" name=GENERATOR>
<LINK href="../images/style.css" type=text/css rel=stylesheet>
<script language="javascript" src="../Inc/Check.js"></script>
<script language="javascript" src="../Inc/Calendar.js"></script>
<script language="JavaScript" type="text/javascript">
<!--
function Form1_Validator(theForm)
{ 
if (theForm.fj1.value == "")
{
alert("对不起,要导入的EXCEL文件不能为空!");
theForm.fj1.focus();
return (false);
}
return (true);
}

function showUploadDialog(s_Type, s_Link, s_Thumbnail){
var arr = showModalDialog("<%=getconfig("SK_EditorPath")%>/dialog/i_upload.htm?style=mini&type="+s_Type+"&link="+s_Link+"&thumbnail="+s_Thumbnail, window, "dialogWidth:0px;dialogHeight:0px;help:no;scroll:no;status:no");
}
//-->
</script>
<style type="text/css">
<!--
body {
margin: 5px 0px 5px 0px;
overflow-x: hidden;
}
-->
</style>
</head>
<body>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<TBODY>
<tr>
<td class="SK_Td_Top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="12" height="25"><img src="../images/tab_03.gif" width="12" height="25" /></td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="46%" valign="middle">导入客户信息</td>
<td width="54%"></td>
</tr>
</table></td>
<td width="16"><img src="../images/tab_07.gif" width="16" height="25" /></td>
</tr>
</table></td>
</tr>
<tr>
<td>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="8" background="../images/tab_12.gif"></td>
<td>

<form name="thisForm" id="form1" method="post" action="SK.InOKClient.asp?Action=Add" onSubmit="return Form1_Validator(this)"> 
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="b5d6e6">
<tr>
  <td width="14%" class="SK_Text2">上传EXCEL文件</td>
  <td width="86%" class="SK_Text1"><input type="text" name="fj1" id="fj1" size="40" /> <input type="button" value="上传" class="button1" onClick="showUploadDialog('file', 'thisForm.fj1', '')" /> 
  <font color=red>只允许上传Excel文档,存在同名客户时只更新数据,不新增,<a href="../ExcelMb/InClient.xls" target="_blank">下载模板</a></font></td>
</tr>
<tr>
  <td colspan="2" class="SK_Text"><INPUT class="button1" type="submit" value=" 导入 "></td>
  </tr>
</table>
</form>
</td>
<td width="8" background="../images/tab_15.gif"></td>
</tr>
</table></td>
</tr>
<tr>
<td class="SK_Td_Foot">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="1%" height="20"><img src="../images/tab_18.gif" width="12" height="20" /></td>
<td width="98%" class="SK_Td_Page"></td>
<td width="1%"><img src="../images/tab_20.gif" width="16" height="20" /></td>
</tr>
</table>
	
</td>
</tr>
</TBODY>
</table>
</body>
<%
Call CloseDB()
%>
</html>