impression PDF et Papier

(ajout de fichier print.css et print.js pour l'impression )
This commit is contained in:
Jean Vladimir TWAHIRWA 2016-11-16 15:12:54 +01:00
parent fa34b2caf4
commit 0f4458c91b
5 changed files with 1411 additions and 1388 deletions

View File

@ -26,9 +26,9 @@
<i class="fa fa-print fa-fw"></i> <span class="hidden-xs hidden-sm">Imprimer</span> <span class="caret"></span></a>
<ul class="dropdown-menu">
<?php if ($this->PrintHtml) {?>
<li><a title="Impression" href="<?=$this->url(array('module'=>'print', 'controller'=>'screen', 'action'=>'index',
'fichier'=>$this->MenuHtml. '.html'), 'default', true)?>" target="_blank">
<span class="glyphicon glyphicon-print" aria-hidden="true"></span> Papier</a></li>
<li><a title="Impression" target="_blank" onclick="myFunction()">
<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',
@ -143,4 +143,6 @@
<?php echo $this->render('menu.phtml')?>
<?php }?>
</nav>
</nav>

View File

@ -92,6 +92,7 @@ class Application_Controller_Plugin_Theme extends Zend_Controller_Plugin_Abstrac
$view->headLink()->appendStylesheet('/themes/default/styles/user-login.css', 'all');
} else {
$view->headLink()->appendStylesheet($paramsTheme->pathStyle.'/main.css', 'all');
$view->headLink()->appendStylesheet($paramsTheme->pathStyle.'/print.css', 'print');
}
/**
@ -105,6 +106,7 @@ class Application_Controller_Plugin_Theme extends Zend_Controller_Plugin_Abstrac
->appendFile('/libs/ui-1.11.4/jquery-ui.min.js', 'text/javascript')
->appendFile('/libs/ui-1.11.4/datepicker-fr.js', 'text/javascript')
->appendFile('/themes/default/scripts/bridge.js', 'text/javascript')
->appendFile('/themes/default/scripts/print.js', 'text/javascript')
->appendFile('/libs/bootstrap-3.3.7/js/bootstrap.min.js', 'text/javascript');
if ( ! $UserLogin ) {

View File

@ -0,0 +1,3 @@
function myFunction() {
window.print();
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,270 @@
/* Print
----------------------------------*/
@media print {
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
.col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
.col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
.col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
float: left;
}
.col-sm-12,
.col-md-12
.col-lg-12 {
width: 100%;
}
.col-sm-11,
.col-md-11,
.col-lg-11 {
width: 91.66666667%;
}
.col-sm-10,
.col-md-10,
.col-lg-10 {
width: 83.33333333%;
}
.col-sm-9,
.col-md-9,
.col-lg-9 {
width: 75%;
}
.col-sm-8,
.col-md-8,
.col-lg-8 {
width: 66.66666667%;
}
.col-sm-7,
.col-lg-7,
.col-md-7 {
width: 58.33333333%;
}
.col-lg-6,
.col-sm-6,
.col-md-6 {
width: 50%;
}
.col-lg-5,
.col-md-5,
.col-sm-5 {
width: 41.66666667%;
}
.col-lg-4,
.col-md-4,
.col-sm-4 {
width: 33.33333333%;
}
.col-lg-3,
.col-sm-3,
.col-md-3 {
width: 25%;
}
.col-lg-2,
.col-sm-2,
.col-md-2 {
width: 16.66666667%;
}
.col-lg-1,
.col-md-1,
.col-sm-1 {
width: 8.33333333%;
}
.col-lg-pull-12,
.col-md-pull-12,
.col-sm-pull-12 {
right: 100%;
}
.col-lg-pull-11,
.col-md-pull-11,
.col-sm-pull-11 {
right: 91.66666667%;
}
.col-lg-pull-10,
.col-sm-pull-10,
.col-md-pull-10 {
right: 83.33333333%;
}
.col-lg-pull-9,
.col-sm-pull-9,
.col-md-pull-9 {
right: 75%;
}
.col-lg-pull-8,
.col-sm-pull-8,
.col-md-pull-8 {
right: 66.66666667%;
}
.col-lg-pull-7,
.col-sm-pull-7,
.col-md-pull-7 {
right: 58.33333333%;
}
.col-lg-pull-6,
.col-sm-pull-6,
.col-md-pull-6 {
right: 50%;
}
.col-lg-pull-5,
.col-sm-pull-5,
.col-md-pull-5 {
right: 41.66666667%;
}
.col-lg-pull-4,
.col-sm-pull-4,
.col-md-pull-4 {
right: 33.33333333%;
}
.col-lg-pull-3,
.col-sm-pull-3,
.col-md-pull-3 {
right: 25%;
}
.col-lg-pull-2,
.col-sm-pull-2,
.col-md-pull-2 {
right: 16.66666667%;
}
.col-lg-pull-1,
.col-sm-pull-1,
.col-md-pull-1 {
right: 8.33333333%;
}
.col-lg-pull-0,
.col-sm-pull-0,
.col-md-pull-0 {
right: auto;
}
.col-lg-push-12,
.col-sm-push-12,
.col-md-push-12 {
left: 100%;
}
.col-lg-push-11,
.col-sm-push-11,
.col-md-push-11 {
left: 91.66666667%;
}
.col-lg-push-10,
.col-sm-push-10,
.col-md-push-10 {
left: 83.33333333%;
}
.col-lg-push-9,
.col-sm-push-9,
.col-md-push-9 {
left: 75%;
}
.col-lg-push-8,
.col-sm-push-8,
.col-md-push-8 {
left: 66.66666667%;
}
.col-lg-push-7,
.col-sm-push-7,
.col-md-push-7 {
left: 58.33333333%;
}
.col-lg-push-6 ,
.col-sm-push-6 ,
.col-md-push-6 {
left: 50%;
}
.col-lg-push-5,
.col-sm-push-5,
.col-md-push-5 {
left: 41.66666667%;
}
.col-lg-push-4,
.col-sm-push-4,
.col-md-push-4 {
left: 33.33333333%;
}
.col-lg-push-3,
.col-sm-push-3,
.col-md-push-3 {
left: 25%;
}
.col-lg-push-2,
.col-sm-push-2,
.col-md-push-2 {
left: 16.66666667%;
}
.col-lg-push-1,
.col-sm-push-1,
.col-md-push-1 {
left: 8.33333333%;
}
.col-lg-push-0,
.col-sm-push-0,
.col-md-push-0 {
left: auto;
}
.col-lg-offset-12,
.col-sm-offset-12,
.col-md-offset-12 {
margin-left: 100%;
}
.col-lg-offset-11,
.col-sm-offset-11,
.col-md-offset-11 {
margin-left: 91.66666667%;
}
.col-lg-offset-10,
.col-sm-offset-10,
.col-md-offset-10 {
margin-left: 83.33333333%;
}
.col-lg-offset-9,
.col-sm-offset-9,
.col-md-offset-9 {
margin-left: 75%;
}
.col-lg-offset-8
.col-sm-offset-8
.col-md-offset-8 {
margin-left: 66.66666667%;
}
.col-lg-offset-7,
.col-sm-offset-7
.col-md-offset-7 {
margin-left: 58.33333333%;
}
.col-lg-offset-6,
.col-sm-offset-6,
.col-md-offset-6 {
margin-left: 50%;
}
.col-lg-offset-5,
.col-sm-offset-5,
.col-md-offset-5 {
margin-left: 41.66666667%;
}
.col-lg-offset-4
.col-sm-offset-4
.col-md-offset-4 {
margin-left: 33.33333333%;
}
.col-lg-offset-3
.col-sm-offset-3
.col-md-offset-3 {
margin-left: 25%;
}
.col-lg-offset-2,
.col-sm-offset-2,
.col-md-offset-2 {
margin-left: 16.66666667%;
}
.col-lg-offset-1,
.col-sm-offset-1,
.col-md-offset-1 {
margin-left: 8.33333333%;
}
.col-lg-offset-0,
.col-sm-offset-0
.col-md-offset-0 {
margin-left: 0;
}
}