Commit ba67ea57 authored by Jerome Mariette's avatar Jerome Mariette
Browse files

No commit message

No commit message
parent 6102b193
......@@ -55,6 +55,11 @@ class tx_nG6_pi1 extends tslib_pibase {
$this->pi_USER_INT_obj=1; // Configuring so caching is not expected. This value means that no cHash params are ever set. We do this, because it's a USER_INT object!
$this->pi_loadLL(); // Loading the LOCAL_LANG values
$piFlexForm = $this->cObj->data['pi_flexform'];
print_r($piFlexForm);
if ($this->userIsAuthorized()) {
switch((string)$this->conf['view']) {
case 'project':
......@@ -611,8 +616,27 @@ class tx_nG6_pi1 extends tslib_pibase {
while (!feof($fp)) { //on parcourt toutes les lignes
$content .= fgets($fp, 4096); // lecture du contenu de la ligne
}
}
else {
} else if (file_exists($this->conf['data'].$this->internal['currentRow']['directory'].'/analyse.xml' )) {
$xml = new DomDocument;
$xml->load($this->conf['data'].$this->internal['currentRow']['directory'].'/analyse.xml');
// Find out the analyse class
$class = $xml->documentElement;
$class_value = "";
foreach ($class->childNodes AS $item) {
if ($item->nodeName == "class") { $class_value = $item->nodeValue; }
}
// If no class value : xml incorrect
if ($class_value == "") {
$content .= $this->getFieldHeader('uncorrect_xml');
} else {
$xslt = new XSLTProcessor();
$xsl = new DOMDocument();
$xsl->load( 'typo3conf/ext/nG6/res/xsl/'.$this->LLkey.'.'.$class_value.'.xsl', LIBXML_NOCDATA);
$xslt->importStylesheet( $xsl );
$content .= $xslt->transformToXML( $xml );
}
} else {
$content .= $this->getFieldHeader('not_synchro');
}
return $content;
......
......@@ -28,6 +28,7 @@
<label index="listFieldHeader_analyzes_done">Analyzes done :</label>
<label index="listFieldHeader_not_synchro">Results folder not synchronized yet</label>
<label index="listFieldHeader_not_authorized">Access denied - You are not authorized to access this page.</label>
<label index="listFieldHeader_uncorrect_xml">The xml analyse file is not well formated.</label>
<label index="back">Back</label>
<label index="pi_list_browseresults_prev">&lt; Previous</label>
<label index="pi_list_browseresults_page">Page</label>
......@@ -58,6 +59,7 @@
<label index="listFieldHeader_analyzes_done">Analyses r&amp;eacute;alis&amp;eacute;es :</label>
<label index="listFieldHeader_not_synchro">Le r&amp;eacute;pertoire de r&amp;eacute;sultats n'est pas encore synchronis&amp;eacute;</label>
<label index="listFieldHeader_not_authorized">Acc&amp;egrave;s refus&amp;eacute; - Vous n'avez pas les droits d'acc&amp;egrave;s &amp;agrave; cette page.</label>
<label index="listFieldHeader_uncorrect_xml">Le fichier xml est incorrect.</label>
<label index="back">Retour</label>
<label index="pi_list_browseresults_prev">&lt; Pr&amp;eacute;cedente</label>
<label index="pi_list_browseresults_page">Page</label>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment