Menu Print

This commit is contained in:
Michael RICOIS 2016-06-08 15:20:58 +02:00
parent 32b9fa1193
commit 7cff717fdd

View File

@ -13,20 +13,25 @@
</ul>
</li>
<?php }?>
<?php if ($this->print) {?>
<?php if ($this->MenuPrint) {?>
<li class="dropdown">
<a href="#" class="dropdown-toggle sd-bgblue" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
<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">
<li><a title="Impression" href="/editer/ecran/<?=$this->print.'.html'?>"
target="_blank"><span class="glyphicon glyphicon-print" aria-hidden="true"></span> Papier</a></li>
<?php if ($this->pdf) {?>
<li><a title="Impression PDF" href="/editer/pdf/<?=$this->pdf.'.pdf'?>"
target="_blank"><span class="fa fa-file-pdf-o" aria-hidden="true"></span> PDF</a></li>
<?php if ($this->PrintHtml) {?>
<li><a title="Impression" href="<?=$this->url(array('module'=>'print', 'controller'=>'screen', 'action'=>'index',
'fichier'=> '.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">
<span class="fa fa-file-pdf-o" aria-hidden="true"></span> PDF</a></li>
<?php }?>
<?php if ($this->xml) {?>
<li><a title="Export XML" href="/editer/xml/<?=$this->xml.'.xml'?>"
target="_blank"><span class="fa fa-file-code-o" aria-hidden="true"></span> XML</a></li>
<?php if ($this->PrintXml) {?>
<li><a title="Export XML" href="<?=$this->url(array('module'=>'print', 'controller'=>'file', 'action'=>'xml',
'fichier'=> '.pdf'), 'default', true)?>" target="_blank"><span class="fa fa-file-code-o" aria-hidden="true">
</span> XML</a></li>
<?php }?>
</ul>
</li>
@ -60,7 +65,7 @@
<ul class="dropdown-menu">
<?php if (count($this->UserHisto) > 0) {?>
<?php foreach ($this->UserHisto as $item) {?>
<li><a href="<?=$this->url(array('module'=>'default', 'controller'=>'identite', 'action'=>'fiche',
<li><a href="<?=$this->url(array('module'=>'legal', 'controller'=>'identite', 'action'=>'fiche',
'siret'=>$item->CompanyId), 'default', true)?>" target="_blank">
<div class="clearfix">
<strong><?=$item->CompanyName?></strong> - <small><?=$item->CompanyId?></small>