<?php
include("CheckSession.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="馬戲團" />
<title>馬戲團</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<?php

$AId = $_GET["AId"];
$AName = $_GET["AName"];

?>
<SCRIPT language="JavaScript">
function validateForm(objThisUi) 
{
	return true;  
}
</SCRIPT>
<body>
<form name="FileForm" method="post" action="CustomerFileInUpdateDeal.php" id="FileForm"
 onSubmit="return validateForm(this);" enctype="multipart/form-data">
<input type="hidden" value="<?php echo $AId; ?>" name="AId" id="AId" />
<input type="hidden" value="<?php echo $AName; ?>" name="AName" id="AName" />
<table border="0" cellspacing="0" cellspadding="0" width="100%">
<tr>
<td align="left" colspan="2">
&nbsp;
</td>
</tr>
<tr>
<td align="left" colspan="2">
<span class="t14b"><b>資料匯入</b></span>
</td>
</tr>
<tr>
<td align="left" colspan="2">
<table border="3" cellspacing="2" cellspadding="2" width="100%">
<tr>
<td align="center" colspan="2">
<span class="t12"><?php echo $AName; ?></span>
</td>
</tr>
<tr>
<td align="left" width="20%">
<span class="t12">匯入檔案</span>
</td>
<td align="left" width="80%">
<span class="t12r">
<b>
1.請先使用Excel開啟客戶資料Excel檔案。<br>
2.請另存新檔，並於檔案類型選擇CSV(逗號分隔)(*.csv)，並按下儲存。<br>
3.請使用電腦記事本工具，開啟剛另存的客戶資料CSV檔。<br>
4.請另存新檔，並於存檔類型選擇所有檔案，於編碼選擇UTF-8。<br>
5.請使用以下瀏覽選擇剛另存的客戶資料檔案。<br>
6.選擇完檔案，按下確定匯入，進行客戶資料檔案匯入。<br>
</b>
</span>
<br>
<input type="file" name="myfile" id="myfile" size="50"/>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td  align="center" colspan="2">
<input type="submit" name="btnSub" id="btnSub" value="確定匯入" class="t12" />
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>
