File: /www/wwwroot/douyin.dsfnj.com/daoruxls/daoruxls/index.html
<!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" />
<title>演示:PHPexcel之excel导出和导入</title>
<meta name="keywords" content="excel导入,excel导出" />
<meta name="description" content="在网上找了很多excel导出和导入示例,代码不是很简洁,很多出错,自己在excel方法和控制器改了下。" />
<link rel="stylesheet" type="text/css" href="common.css" />
</head>
<body>
<div class="container">
<div class="demo">
<h2 class="title"><a >数据导入</a></h2>
<p style="margin:10px 0"><a href="export.php" class="btn">导出</a></p>
<form action="import.php" method="post" enctype="multipart/form-data">
<div class="control-group">
<label>Excel表格:</label>
<input type="file" name="file"/>
</div>
<div class="control-group">
<input type="submit" value="导入" />
</div>
</form>
</div>
</div>
</body>
</html>