composerPHPword类
This commit is contained in:
1 parent
c392cc2c8b
commit
e48663718b
353 files changed
+60508
-9
No files matched your search
@@ -361,6 +361,11 @@ class Kaoshi extends Base
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 生成二维码基础信息
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -371,21 +376,19 @@ class Kaoshi extends Base
|
||||
ini_set("memory_limit", "-1");
|
||||
$spreadsheet = new Spreadsheet();
|
||||
$sheet = $spreadsheet->getActiveSheet();
|
||||
$sheet->setCellValue('A1', '考试号');
|
||||
$sheet->setCellValue('B1', '学科 ');
|
||||
$sheet->setCellValue('A1', '二维码信息');
|
||||
$i = 1;
|
||||
$datas = Chengji::where('kaoshi',$id)
|
||||
->field('id')
|
||||
->select();
|
||||
$xks = KS::get($id);
|
||||
$xks = $xks->Subjectids;
|
||||
$xks = db('subject')->where('id','in',$xks)->column('id,leiming');
|
||||
$xks = explode(',', $xks);
|
||||
foreach ($datas as $data)
|
||||
{
|
||||
foreach ($xks as $key => $value) {
|
||||
$i++;
|
||||
$sheet->setCellValue('A' . $i, $data['id']);
|
||||
$sheet->setCellValue('B' . $i, $value);
|
||||
$sheet->setCellValue('A' . $i, $data['id'].','.$value);
|
||||
}
|
||||
}
|
||||
// 保存文件
|
||||
@@ -402,9 +405,9 @@ class Kaoshi extends Base
|
||||
|
||||
|
||||
// 生成表格录入成绩表
|
||||
public function biaolubiao()
|
||||
public function biaolu()
|
||||
{
|
||||
return '表录表';
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
|
||||
|
||||
+2
-1
@@ -23,7 +23,8 @@
|
||||
"topthink/think-captcha": "^2.0",
|
||||
"whitehat101/apr1-md5": "^1.0",
|
||||
"topthink/think-helper": "^1.0",
|
||||
"phpoffice/phpspreadsheet": "^1.5"
|
||||
"phpoffice/phpspreadsheet": "^1.5",
|
||||
"phpoffice/phpword": "^0.15.0"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
||||
Generated
+271
-1
@@ -4,7 +4,7 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "2212be96ae70e6b28e3e2834f503d4fa",
|
||||
"content-hash": "f3fb1a993847f820c6463d651368ac06",
|
||||
"packages": [
|
||||
{
|
||||
"name": "markbaker/complex",
|
||||
@@ -107,6 +107,49 @@
|
||||
],
|
||||
"time": "2018-10-13T23:28:42+00:00"
|
||||
},
|
||||
{
|
||||
"name": "pclzip/pclzip",
|
||||
"version": "2.8.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/ivanlanin/pclzip.git",
|
||||
"reference": "19dd1de9d3f5fc4d7d70175b4c344dee329f45fd"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/ivanlanin/pclzip/zipball/19dd1de9d3f5fc4d7d70175b4c344dee329f45fd",
|
||||
"reference": "19dd1de9d3f5fc4d7d70175b4c344dee329f45fd",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"classmap": [
|
||||
"pclzip.lib.php"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"LGPL-2.1"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Vincent Blavet"
|
||||
}
|
||||
],
|
||||
"description": "A PHP library that offers compression and extraction functions for Zip formatted archives",
|
||||
"homepage": "http://www.phpconcept.net/pclzip",
|
||||
"keywords": [
|
||||
"php",
|
||||
"zip"
|
||||
],
|
||||
"time": "2014-06-05T11:42:24+00:00"
|
||||
},
|
||||
{
|
||||
"name": "php4world/auth",
|
||||
"version": "v1.0.3",
|
||||
@@ -149,6 +192,67 @@
|
||||
"description": "ThinkPHP5.1 Auth Class.",
|
||||
"time": "2018-06-30T09:39:06+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phpoffice/common",
|
||||
"version": "0.2.9",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/PHPOffice/Common.git",
|
||||
"reference": "edb5d32b1e3400a35a5c91e2539ed6f6ce925e4d"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/PHPOffice/Common/zipball/edb5d32b1e3400a35a5c91e2539ed6f6ce925e4d",
|
||||
"reference": "edb5d32b1e3400a35a5c91e2539ed6f6ce925e4d",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"pclzip/pclzip": "^2.8",
|
||||
"php": ">=5.3.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpdocumentor/phpdocumentor": "2.*",
|
||||
"phploc/phploc": "2.*",
|
||||
"phpmd/phpmd": "2.*",
|
||||
"phpunit/phpunit": "^4.8.36 || ^7.0",
|
||||
"sebastian/phpcpd": "2.*",
|
||||
"squizlabs/php_codesniffer": "2.*"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"PhpOffice\\Common\\": "src/Common/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"LGPL"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Mark Baker"
|
||||
},
|
||||
{
|
||||
"name": "Franck Lefevre",
|
||||
"homepage": "http://rootslabs.net"
|
||||
}
|
||||
],
|
||||
"description": "PHPOffice Common",
|
||||
"homepage": "http://phpoffice.github.io",
|
||||
"keywords": [
|
||||
"common",
|
||||
"component",
|
||||
"office",
|
||||
"php"
|
||||
],
|
||||
"time": "2018-07-13T14:12:34+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phpoffice/phpspreadsheet",
|
||||
"version": "1.5.0",
|
||||
@@ -242,6 +346,121 @@
|
||||
],
|
||||
"time": "2018-10-21T10:04:54+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phpoffice/phpword",
|
||||
"version": "0.15.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/PHPOffice/PHPWord.git",
|
||||
"reference": "dfa2f36cad2b632b7ab1c56473e4f5db9a7caf7f"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/PHPOffice/PHPWord/zipball/dfa2f36cad2b632b7ab1c56473e4f5db9a7caf7f",
|
||||
"reference": "dfa2f36cad2b632b7ab1c56473e4f5db9a7caf7f",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"ext-xml": "*",
|
||||
"php": "^5.3.3 || ^7.0",
|
||||
"phpoffice/common": "^0.2.9",
|
||||
"zendframework/zend-escaper": "^2.2"
|
||||
},
|
||||
"require-dev": {
|
||||
"dompdf/dompdf": "0.8.*",
|
||||
"ext-gd": "*",
|
||||
"ext-zip": "*",
|
||||
"friendsofphp/php-cs-fixer": "^2.2",
|
||||
"mpdf/mpdf": "5.7.4 || 6.* || 7.*",
|
||||
"php-coveralls/php-coveralls": "1.1.0 || ^2.0",
|
||||
"phploc/phploc": "2.* || 3.* || 4.*",
|
||||
"phpmd/phpmd": "2.*",
|
||||
"phpunit/phpunit": "^4.8.36 || ^7.0",
|
||||
"squizlabs/php_codesniffer": "^2.9",
|
||||
"tecnickcom/tcpdf": "6.*"
|
||||
},
|
||||
"suggest": {
|
||||
"dompdf/dompdf": "Allows writing PDF",
|
||||
"ext-gd2": "Allows adding images",
|
||||
"ext-xmlwriter": "Allows writing OOXML and ODF",
|
||||
"ext-xsl": "Allows applying XSL style sheet to headers, to main document part, and to footers of an OOXML template",
|
||||
"ext-zip": "Allows writing OOXML and ODF"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-develop": "0.16-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"PhpOffice\\PhpWord\\": "src/PhpWord"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"LGPL-3.0"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Mark Baker"
|
||||
},
|
||||
{
|
||||
"name": "Gabriel Bull",
|
||||
"email": "me@gabrielbull.com",
|
||||
"homepage": "http://gabrielbull.com/"
|
||||
},
|
||||
{
|
||||
"name": "Ivan Lanin",
|
||||
"homepage": "http://ivan.lanin.org"
|
||||
},
|
||||
{
|
||||
"name": "Roman Syroeshko",
|
||||
"homepage": "http://ru.linkedin.com/pub/roman-syroeshko/34/a53/994/"
|
||||
},
|
||||
{
|
||||
"name": "Franck Lefevre",
|
||||
"homepage": "https://rootslabs.net/blog/"
|
||||
},
|
||||
{
|
||||
"name": "Antoine de Troostembergh"
|
||||
}
|
||||
],
|
||||
"description": "PHPWord - A pure PHP library for reading and writing word processing documents (OOXML, ODF, RTF, HTML, PDF)",
|
||||
"homepage": "http://phpoffice.github.io",
|
||||
"keywords": [
|
||||
"ISO IEC 29500",
|
||||
"OOXML",
|
||||
"Office Open XML",
|
||||
"OpenDocument",
|
||||
"OpenXML",
|
||||
"PhpOffice",
|
||||
"PhpWord",
|
||||
"Rich Text Format",
|
||||
"WordprocessingML",
|
||||
"doc",
|
||||
"docx",
|
||||
"html",
|
||||
"odf",
|
||||
"odt",
|
||||
"office",
|
||||
"pdf",
|
||||
"php",
|
||||
"reader",
|
||||
"rtf",
|
||||
"template",
|
||||
"template processor",
|
||||
"word",
|
||||
"writer"
|
||||
],
|
||||
"time": "2018-07-14T16:59:43+00:00"
|
||||
},
|
||||
{
|
||||
"name": "psr/simple-cache",
|
||||
"version": "1.0.1",
|
||||
@@ -581,6 +800,57 @@
|
||||
"apr1"
|
||||
],
|
||||
"time": "2015-02-11T11:06:42+00:00"
|
||||
},
|
||||
{
|
||||
"name": "zendframework/zend-escaper",
|
||||
"version": "2.6.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/zendframework/zend-escaper.git",
|
||||
"reference": "31d8aafae982f9568287cb4dce987e6aff8fd074"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/zendframework/zend-escaper/zipball/31d8aafae982f9568287cb4dce987e6aff8fd074",
|
||||
"reference": "31d8aafae982f9568287cb4dce987e6aff8fd074",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"require": {
|
||||
"php": "^5.6 || ^7.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.2",
|
||||
"zendframework/zend-coding-standard": "~1.0.0"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "2.6.x-dev",
|
||||
"dev-develop": "2.7.x-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Zend\\Escaper\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"BSD-3-Clause"
|
||||
],
|
||||
"description": "Securely and safely escape HTML, HTML attributes, JavaScript, CSS, and URLs",
|
||||
"keywords": [
|
||||
"ZendFramework",
|
||||
"escaper",
|
||||
"zf"
|
||||
],
|
||||
"time": "2018-04-25T15:48:53+00:00"
|
||||
}
|
||||
],
|
||||
"packages-dev": [],
|
||||
|
||||
Loaded 3 of 353 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user