1. html页面代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>导入数据</title>
</head>
<body>
<center>
<form class="form-horizontal" role="form" action="{:url('index.php/index/Index/save')}" method="post" enctype="multipart/form-data">
<div class="row cl">
<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>导入数据:</label>
<div class="formControls col-xs-8 col-sm-9">
<input type="file" name="excel" />
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" cl