|
@@ -81,6 +81,20 @@ function getExcelDatas($filepath, $sheetIndex = 0) {
|
|
|
return $sheet->toArray();
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+/**
|
|
|
+ *
|
|
|
+ * @param type $title 标题
|
|
|
+ * @param type $data 数据
|
|
|
+ * @param type $detail 抬头内容 array(array(),array())
|
|
|
+ * @param string $filename 文件名
|
|
|
+ * @param type $format 数字格式化
|
|
|
+ * @param type $saveurl 输出方式
|
|
|
+ * @param type $author 作者
|
|
|
+ */
|
|
|
+function export($title, $data, $detail = null, $filename = "g2beauty", $freeze = null, $format = [], $saveurl = "php://output", $other_config = null, $author = "g2beauty.cn") {
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* 检查是不是excel格式,不确定是否都是可用文件,主要还是第一和最后一个比较常见
|
|
|
* @param type $mime
|