print liens params 2

This commit is contained in:
Jean Vladimir TWAHIRWA 2016-11-07 10:16:25 +01:00
parent 987ccfba1c
commit 348319609d
4 changed files with 45 additions and 7 deletions

View File

@ -27,12 +27,12 @@
<ul class="dropdown-menu">
<?php if ($this->PrintHtml) {?>
<li><a title="Impression" href="<?=$this->url(array('module'=>'print', 'controller'=>'screen', 'action'=>'index',
'fichier'=> '.html'), 'default', true)?>" target="_blank">
'fichier'=>$this->MenuHtml. '.html'), 'default', true)?>" target="_blank">
<span class="glyphicon glyphicon-print" aria-hidden="true"></span> Papier</a></li>
<?php }?>
<?php if ($this->PrintPdf) {?>
<li><a title="Impression PDF" href="<?=$this->url(array('module'=>'print', 'controller'=>'file', 'action'=>'pdf',
'fichier'=> '.pdf'), 'default', true)?>" target="_blank">
'fichier'=>$this->MenuPdf. '.pdf'), 'default', true)?>" target="_blank">
<span class="fa fa-file-pdf-o" aria-hidden="true"></span> PDF</a></li>
<?php }?>
<?php if ($this->PrintXml) {?>

View File

@ -71,7 +71,11 @@ class Legal_IdentiteController extends Zend_Controller_Action
{
$user = new Scores_Utilisateur();
$this->view->InputLinks = array();
$this->view->Printable = true;
$this->view-> PrintHtml = true;
$this->view-> PrintPdf = true;
$autrePage = $this->getRequest()->getParam('apage');
//Récupération des informations

View File

@ -70,7 +70,8 @@ class Application_Controller_Plugin_Print extends Zend_Controller_Plugin_Abstrac
$page = new Scores_Export_Print($controller, $action);
$filename = $page->filename('pdf', $request->getParams());
$content = preg_replace('@<link href="/@si','<link href="./',$html);
//$content = preg_replace('@<link href="/@si','<link href="./',$html);
$content = preg_replace('@<link href="/@si','<link href="../../../../extranet/public/',$html);
$content = preg_replace('@src="/@si','src="./',$content);
$c = Zend_Registry::get('config');

View File

@ -480,18 +480,51 @@ div.submit{ clear:both; text-align:center; }
size: portrait;
margin: 1cm;
};
html {
background-color: #ffffff;
}
h1 {
page-break-before: always;
/* page-break-before: always;
*/ page-break-after: avoid;
}
table {
page-break-before: avoid;
page-break-inside: avoid;
}
body { font-family:Verdana, Arial, sans-serif; font-size:11px; }
/* body { font-family:Verdana, Arial, sans-serif; font-size:11px; }
global { width:19cm !important; margin:0 auto; }
div#menu { display:none; }
#content { float:none; clear:none; width:19cm !important; padding:0; margin:0; }
#center { padding:0; }
#footer { clear:both; text-align:center; margin-top:15px; }
#footer { clear:both; text-align:center; margin-top:15px; } */
body {
font-family:Verdana, Arial, sans-serif;
font-size:11px;
}
global {
width:19cm !important;
margin:0 auto;
}
div#menu {
display:none;
}
#content {
float:none;
clear:none;
width:auto;
padding:0;
margin:0;
}
#center {
padding:0;
}
#footer {
clear:both;
text-align:center;
margin-top:15px;
}
}