1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

Fix generali

This commit is contained in:
Thomas Zilio
2019-02-12 11:42:48 +01:00
parent 4db0150cbf
commit f5a91d5d6d
14 changed files with 246 additions and 126 deletions

22
plugins/importFE/view.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
include_once __DIR__.'/../../core.php';
$directory = Plugins\ImportFE\FatturaElettronica::getImportDirectory();
$filename = get('filename');
$content = file_get_contents($directory.'/'.$filename);
// XML
$xml = new DOMDocument();
$xml->loadXML($content);
// XSL
$xsl = new DOMDocument();
$xsl->load(DOCROOT.'/assets/src/xml/fe-stylesheet-1.2.1.xsl');
// XSLT
$xslt = new XSLTProcessor();
$xslt->importStylesheet($xsl);
echo $xslt->transformToXML($xml);