issue #0001592 : Message at the end of document

This commit is contained in:
Michael RICOIS 2013-03-25 17:36:23 +00:00
parent b3cd6340b6
commit 8258e63c77

View File

@ -383,7 +383,7 @@ class EvaluationController extends Zend_Controller_Action
//Générer style particulier pour le rapport
$style.= 'body{background-color:#ffffff;}';
if($logo_background) {
$style.= '#global{background-image:url(./themes/default/images/customrapport/logo_ordertocash_background.jpg);background-repeat:repeat-y} ';
$style.= '#global{background-image:url(./themes/default/images/customrapport/logo_ordertocash_background.jpg);background-repeat:no-repeat;} ';
}
$style.= '#customRapport{display:none;}';
$style.= '.notvisible{display:none;}';
@ -435,12 +435,13 @@ class EvaluationController extends Zend_Controller_Action
$body = $doc->getElementsByTagName('body')->item(0);
$div = $body->getElementsByTagName('div');
foreach($div as $item){
if ($item->hasAttribute('id') && $item->getAttribute('id') == 'center'){
if ($item->hasAttribute('id') && $item->getAttribute('id') == 'global'){
break;
}
}
$item->parentNode->insertBefore($ajout, $item);
$item->appendChild($ajout);
//$item->parentNode->insertBefore($ajout, $item);
$xml = $doc->saveXML();
$c = Zend_Registry::get('config');