...
|
...
|
@@ -55,6 +55,16 @@ class Excel |
|
|
}
|
|
|
|
|
|
//excel
|
|
|
|
|
|
/**
|
|
|
* @param $letter
|
|
|
* @param $title
|
|
|
* @param $list 数据
|
|
|
* @param $name
|
|
|
* @throws \PHPExcel_Exception
|
|
|
* @throws \PHPExcel_Reader_Exception
|
|
|
* @throws \PHPExcel_Writer_Exception
|
|
|
*/
|
|
|
public function excel($letter,$title,$list,$name){
|
|
|
// 导出Exl
|
|
|
import("Org.Util.PHPExcel");
|
...
|
...
|
@@ -79,8 +89,6 @@ class Excel |
|
|
// 垂直居中
|
|
|
$objPHPExcel->getActiveSheet()->getStyle($v)->getAlignment()->setVertical(\PHPExcel_Style_Alignment::VERTICAL_CENTER);
|
|
|
}
|
|
|
|
|
|
|
|
|
foreach($list as $k=>$v){
|
|
|
$k +=2;
|
|
|
foreach ($letter as $key=>$val){
|
...
|
...
|
|