PDF print

This commit is contained in:
Jean Vladimir TWAHIRWA 2016-11-15 10:09:31 +01:00
parent 348319609d
commit 49e2607cb6
7 changed files with 1191 additions and 23 deletions

View File

@ -26,6 +26,11 @@ class Legal_DirigeantController extends Zend_Controller_Action
$autrePage = $this->getRequest()->getParam('apage');
$siren = substr($this->siret, 0, 9);
//autorisation print
$this->view->Printable = true;
$this->view-> PrintHtml = true;
$this->view-> PrintPdf = true;
if (empty($autrePage)) {
$this->view->headTitle()->prepend('Liste des dirigeants');
@ -70,6 +75,11 @@ class Legal_DirigeantController extends Zend_Controller_Action
$this->view->headTitle()->prepend('Historique des dirigeants');
$this->view->headTitle()->prepend('Siret '.$this->siret);
//autorisation print
$this->view->Printable = true;
$this->view-> PrintHtml = true;
$this->view-> PrintPdf = true;
$ws = new WsScores();
$infos = $ws->getDirigeants($siren, true);
@ -103,6 +113,11 @@ class Legal_DirigeantController extends Zend_Controller_Action
'class' => 'dialog',
));
//autorisation print
$this->view->Printable = true;
$this->view-> PrintHtml = true;
$this->view-> PrintPdf = true;
$this->view->headTitle()->prepend('Liste des dirigeants opérationnels');
$this->view->headTitle()->prepend('Siret '.$this->siret);

View File

@ -203,10 +203,17 @@ class Legal_EvaluationController extends Zend_Controller_Action
{
$this->view->headScript()->appendFile($this->theme->pathScript.'/evaluation.js', 'text/javascript');
$this->view->InputLinks = array();
//autorisation print
$this->view->Printable = true;
$this->view-> PrintHtml = true;
$this->view-> PrintPdf = true;
$user = new Scores_Utilisateur();
if(!$user->checkPerm('INDISCORE') && !$user->checkPerm('INDISCOREP')) {
$this->forward('perms', 'error');
}
$request = $this->getRequest();
$autrePage = $request->getParam('apage');
@ -256,6 +263,11 @@ class Legal_EvaluationController extends Zend_Controller_Action
$this->view->headScript()->appendFile($this->theme->pathScript.'/finance.js', 'text/javascript');
$this->view->headTitle()->prepend("Rapport de synthèse");
$this->view->headTitle()->prepend("Siret ".$this->siret);
//autorisation print
$this->view->Printable = true;
$this->view-> PrintHtml = true;
$this->view-> PrintPdf = true;
$user = new Scores_Utilisateur();
if(!$user->checkPerm('INDISCORE2') && !$user->checkPerm('INDISCORE2P')) {
@ -427,6 +439,11 @@ class Legal_EvaluationController extends Zend_Controller_Action
$this->view->headTitle()->prepend("Rapport complet");
$this->view->headTitle()->prepend("Siret ".$this->siret);
//autorisation print
$this->view->Printable = true;
$this->view-> PrintHtml = true;
$this->view-> PrintPdf = true;
$user = new Scores_Utilisateur();
if(!$user->checkPerm('INDISCORE3') && !$user->checkPerm('INDISCORE3P'))
$this->forward('perms', 'error');
@ -1021,6 +1038,11 @@ class Legal_EvaluationController extends Zend_Controller_Action
$this->view->headTitle()->prepend("Valorisation");
$this->view->headTitle()->prepend("Siret ".$this->siret);
//autorisation print
$this->view->Printable = true;
$this->view-> PrintHtml = true;
$this->view-> PrintPdf = true;
$user = new Scores_Utilisateur();
if(!$user->checkPerm('INDISCORE3') && !$user->checkPerm('INDISCORE3P'))
$this->_forward('perms', 'error');

View File

@ -31,6 +31,11 @@ class Legal_FinanceController extends Zend_Controller_Action
{
$user = new Scores_Utilisateur();
$session = new Scores_Session_Entreprise($this->siret, $this->id);
//autorisation print
$this->view->Printable = true;
$this->view-> PrintHtml = true;
$this->view-> PrintPdf = true;
$request = $this->getRequest();
$typeBilan = $request->getParam('typeBilan', 'N');
@ -212,6 +217,11 @@ class Legal_FinanceController extends Zend_Controller_Action
$autrePage = $request->getParam('apage');
$typeBilan = $request->getParam('typeBilan', 'N');
$entreprise = new Scores_Session_Entreprise($this->siret, $this->id);
//autorisation print
$this->view->Printable = true;
$this->view-> PrintHtml = true;
$this->view-> PrintPdf = true;
//Récupération des informations
if (empty($autrePage)) {
@ -460,6 +470,11 @@ class Legal_FinanceController extends Zend_Controller_Action
{
$request = $this->getRequest();
$autrePage = $request->getParam('apage');
//autorisation print
$this->view->Printable = true;
$this->view-> PrintHtml = true;
$this->view-> PrintPdf = true;
//Récupération des informations
if (empty($autrePage)) {
@ -1033,6 +1048,11 @@ class Legal_FinanceController extends Zend_Controller_Action
$this->view->headTitle()->prepend("Bourse & Cotations");
$this->view->headTitle()->prepend("Siret ".$this->siret);
//autorisation print
$this->view->Printable = true;
$this->view-> PrintHtml = true;
$this->view-> PrintPdf = true;
require_once 'Scores/Logo.php';
$siren = substr($this->siret, 0, 9);
@ -1077,6 +1097,11 @@ class Legal_FinanceController extends Zend_Controller_Action
} else {
$infos = $this->getRequest()->getParam('infos');
}
//autorisation print
$this->view->Printable = true;
$this->view-> PrintHtml = true;
$this->view-> PrintPdf = true;
$entreprise = new Scores_Session_Entreprise($this->siret, $this->id);
$this->view->assign('banques', $infos->result->item);

View File

@ -71,6 +71,8 @@ class Legal_IdentiteController extends Zend_Controller_Action
{
$user = new Scores_Utilisateur();
$this->view->InputLinks = array();
//autorisation print
$this->view->Printable = true;
$this->view-> PrintHtml = true;
$this->view-> PrintPdf = true;
@ -240,6 +242,11 @@ class Legal_IdentiteController extends Zend_Controller_Action
$this->forward('perms', 'error');
}
//autorise l'impression
$this->view->Printable = true;
$this->view-> PrintHtml = true;
$this->view-> PrintPdf = true;
$siren = substr($this->siret,0,9);
//Modification du titre
if(empty($this->siret)){
@ -357,6 +364,11 @@ class Legal_IdentiteController extends Zend_Controller_Action
public function etablissementsAction()
{
$request = $this->getRequest();
//autorise l'impression
$this->view->Printable = true;
$this->view-> PrintHtml = true;
$this->view-> PrintPdf = true;
$siren = substr($this->siret,0,9);
$actif = $request->getParam('actif', -1);
@ -668,6 +680,11 @@ class Legal_IdentiteController extends Zend_Controller_Action
$request = $this->getRequest();
$autrePage = $this->getRequest()->getParam('apage');
$lienRef = $request->getParam('lienref', null);
//autorisation print
$this->view->Printable = true;
$this->view-> PrintHtml = true;
$this->view-> PrintPdf = true;
$nbMonthForRecentLien = 3;
@ -1200,6 +1217,11 @@ class Legal_IdentiteController extends Zend_Controller_Action
$nic = $request->getParam('nic', null);
$this->view->headTitle()->prepend('Evènements - Siren '.$siren);
//autorisation print
$this->view->Printable = true;
$this->view-> PrintHtml = true;
$this->view-> PrintPdf = true;
//Pagination
$page = $request->getParam('page', 1);
@ -1702,6 +1724,11 @@ class Legal_IdentiteController extends Zend_Controller_Action
$this->view->headScript()->appendFile($this->theme->pathScript.'/identite-groupe.js', 'text/javascript');
$this->view->headTitle()->prepend("Groupe");
$this->view->headTitle()->prepend("Siret ".$this->siret);
//autorisation print
$this->view->Printable = true;
$this->view-> PrintHtml = true;
$this->view-> PrintPdf = true;
$siren = substr($this->siret,0,9);

View File

@ -30,6 +30,12 @@ class Legal_JuridiqueController extends Zend_Controller_Action
$idAnn = $request->getParam('idAnn', null);
$siren = substr($this->siret, 0,9);
//autorisation print
$this->view->Printable = true;
$this->view-> PrintHtml = true;
$this->view-> PrintPdf = true;
$source = $request->getParam('source');
if (!empty($source)) {
@ -381,6 +387,11 @@ class Legal_JuridiqueController extends Zend_Controller_Action
$this->view->headTitle()->prepend("Informations Réglementées");
$this->view->headTitle()->prepend("Siret ".$this->siret);
//autorisation print
$this->view->Printable = true;
$this->view-> PrintHtml = true;
$this->view-> PrintPdf = true;
$request = $this->getRequest();
$idAnn = $request->getParam('idann', false);
$siren = substr($this->siret, 0,9);
@ -430,6 +441,11 @@ class Legal_JuridiqueController extends Zend_Controller_Action
{
$this->view->headTitle()->prepend("Compétences Territoriales");
$this->view->headTitle()->prepend("Siret ".$this->siret);
//autorisation print
$this->view->Printable = true;
$this->view-> PrintHtml = true;
$this->view-> PrintPdf = true;
$request = $this->getRequest();
$type = $request->getParam('type', '');

View File

@ -69,11 +69,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="../../../../extranet/public/',$html);
$content = preg_replace('@<link href="/@si','<link href="./',$html);
$content = preg_replace('@src="/@si','src="./',$content);
$c = Zend_Registry::get('config');
file_put_contents($c->profil->path->shared.'/temp/pages/'.$filename.'.html', $content);
}

File diff suppressed because it is too large Load Diff