mirror of
https://github.com/shuchkin/simplexlsxgen.git
synced 2023-08-10 21:12:59 +03:00
Update SimpleXLSXGen.php
This commit is contained in:
parent
95da6b5c05
commit
4f3d09925c
@ -297,7 +297,7 @@ class SimpleXLSXGen
|
|||||||
$s = '';
|
$s = '';
|
||||||
for ($i = 0; $i < $cnt_sheets; $i++) {
|
for ($i = 0; $i < $cnt_sheets; $i++) {
|
||||||
$s .= '<Relationship Id="rId' . ($i + 2) . '" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"' .
|
$s .= '<Relationship Id="rId' . ($i + 2) . '" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"' .
|
||||||
' Target="worksheets/sheet' . ($i + 1) . ".xml\"/>\n";
|
' Target="worksheets/sheet' . ($i + 1) . ".xml\"/>\r\n";
|
||||||
}
|
}
|
||||||
$s .= '<Relationship Id="rId' . ($i + 2) . '" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/></Relationships>';
|
$s .= '<Relationship Id="rId' . ($i + 2) . '" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/></Relationships>';
|
||||||
$template = str_replace('{SHEETS}', $s, $template);
|
$template = str_replace('{SHEETS}', $s, $template);
|
||||||
|
Loading…
Reference in New Issue
Block a user