Compare commits
214 Commits
SD-32
...
wip-2.9-de
Author | SHA1 | Date | |
---|---|---|---|
|
5c432157ce | ||
|
3be1c2bdf3 | ||
|
a901bfee8e | ||
|
1d3074812e | ||
|
ae0197dbd5 | ||
|
af483e6532 | ||
|
4e0cf4d99b | ||
|
f338f6a1ed | ||
|
c8ceb9d4d6 | ||
|
f6f03bf098 | ||
|
7d24c57771 | ||
|
0f4458c91b | ||
|
fa34b2caf4 | ||
|
49e2607cb6 | ||
|
348319609d | ||
|
a4b9d87913 | ||
|
987ccfba1c | ||
|
390f7339c9 | ||
|
7a81292a18 | ||
|
8b74ed20f7 | ||
|
45b7bbf225 | ||
|
052ceae44d | ||
|
b57e391ed6 | ||
|
49a44becc8 | ||
|
316a8396c6 | ||
|
37bc4ffe89 | ||
|
b6ad1a5988 | ||
|
158b18ac66 | ||
|
726293c4ec | ||
|
b3d7731325 | ||
|
dccf25ea3e | ||
|
5ad4dc2cc1 | ||
|
ea3f8b9c62 | ||
|
15759b99e6 | ||
|
0a28b03369 | ||
|
b65d7dfcab | ||
|
9af3626ce4 | ||
|
42741435c2 | ||
|
05ed9c3178 | ||
|
8efee47092 | ||
|
9abba3298e | ||
|
c45cf43356 | ||
|
3e3504f384 | ||
|
d223a1566d | ||
|
de3f6be953 | ||
|
d71cfbfddd | ||
|
068dd67941 | ||
|
ef497f71c1 | ||
|
5e8d809e09 | ||
|
64bbf76075 | ||
|
86cf3d9611 | ||
|
11dfca7a5a | ||
|
351b4cce4a | ||
|
68c10b466a | ||
|
7024af77ac | ||
|
d6c48cb150 | ||
|
24e25b7e93 | ||
|
2d6eafc297 | ||
|
c8334aa101 | ||
|
25775f2921 | ||
|
84c269b14d | ||
|
49e7934ffb | ||
|
132907e39f | ||
|
9beb98a970 | ||
|
64a096d0b3 | ||
|
b73146ad37 | ||
|
2669865101 | ||
|
b646b4c669 | ||
|
506dc9a589 | ||
|
93db4adcea | ||
|
2f54607d92 | ||
|
62ddc67c2d | ||
|
2aaf0de974 | ||
|
387e906522 | ||
|
71c809c55f | ||
|
247dc126fc | ||
|
76c5e49b92 | ||
|
db8af5c492 | ||
|
acd1358bc0 | ||
|
4827b09d7a | ||
|
71ed59896e | ||
|
2dac8dcd1e | ||
|
18343841ff | ||
|
90817abb3a | ||
|
91bc8403f6 | ||
|
7fa85f3f28 | ||
|
528f028ccc | ||
|
37b0b06e59 | ||
|
7ce068f0ff | ||
|
c80b75373a | ||
|
8c61ea806a | ||
|
b614d79b36 | ||
|
11ddb2fd15 | ||
|
b9c7f81757 | ||
|
733dc59234 | ||
|
f8b17dcc4c | ||
|
067c41821e | ||
|
6c9989f936 | ||
|
3694bd6515 | ||
|
fe70284b6e | ||
|
58a27588ce | ||
|
15157dc9e7 | ||
|
7e1ccc1bf9 | ||
|
ddead1404d | ||
|
4eb3e053ed | ||
|
a93379f5d5 | ||
|
0bfd53d9b1 | ||
|
67cab71f1f | ||
|
7cff717fdd | ||
|
32b9fa1193 | ||
|
d083af279d | ||
|
c30ba3a96b | ||
|
735d95c1b6 | ||
|
436c570cf2 | ||
|
2665f8e7eb | ||
|
575fece3e9 | ||
|
2f2ed3e5f3 | ||
|
14995f61c4 | ||
|
ed2c7727db | ||
|
fabc376200 | ||
|
1e6845f1f5 | ||
|
c8789d4a98 | ||
|
8713459938 | ||
|
82998ff6d5 | ||
|
cebc71bb73 | ||
|
b00946e418 | ||
|
e130a76dd6 | ||
|
6cd0c20981 | ||
|
b9ef026268 | ||
|
4164fe61e6 | ||
|
75699f9752 | ||
|
f8a7945902 | ||
|
2be0eeda34 | ||
|
96fceb4186 | ||
|
5524796ed0 | ||
|
f5b5e93660 | ||
|
8552b93784 | ||
|
9ef7b5b099 | ||
|
e28596635d | ||
|
ec9a52b38f | ||
|
d66b109bed | ||
|
0c256360b6 | ||
|
5c2dc69e83 | ||
|
fe3771da08 | ||
|
5e87967441 | ||
|
3b3a0568a9 | ||
|
399d6caf32 | ||
|
d2174d00c6 | ||
|
248cef6ffd | ||
|
3dc15579b8 | ||
|
09992794c8 | ||
|
f78b64f59c | ||
|
033d01ed62 | ||
|
735cc014ba | ||
|
f794a2493f | ||
|
746f786116 | ||
|
b6901709a5 | ||
|
95548b1196 | ||
|
f4d7dd4aa4 | ||
|
3074968746 | ||
|
eef2069000 | ||
|
3ad5f1e797 | ||
|
3315b8d5d7 | ||
|
54ec7a262c | ||
|
8aa4676825 | ||
|
e76c02113c | ||
|
54c13411e8 | ||
|
75191b3569 | ||
|
4ed8584867 | ||
|
e86916e5e2 | ||
|
2a10623fce | ||
|
071423d07b | ||
|
090b63ae34 | ||
|
b8bf4f5217 | ||
|
6bd4f90890 | ||
|
4c01f3fd5c | ||
|
5bb6c1e24e | ||
|
03e015b877 | ||
|
2fbddfbb77 | ||
|
443eebca00 | ||
|
6ea1905c74 | ||
|
7b51bd31b5 | ||
|
58a5d93f60 | ||
|
6186227939 | ||
|
693357fe1f | ||
|
e1a91000f8 | ||
|
d900029708 | ||
|
cc5abea478 | ||
|
1b9c4554f4 | ||
|
1f2f0f4364 | ||
|
dff71e9172 | ||
|
ab8666c938 | ||
|
2edd863849 | ||
|
907222be18 | ||
|
bd4fc76509 | ||
|
25b1e33dff | ||
|
63881ef165 | ||
|
d1065a927d | ||
|
75f1327771 | ||
|
555964c2fe | ||
|
8b28c609fa | ||
|
a8e36fe7b5 | ||
|
e336c7919d | ||
|
cbc6bc50d7 | ||
|
752d405001 | ||
|
962330f1c3 | ||
|
ab45879b83 | ||
|
f572996df4 | ||
|
cfa0c26de1 | ||
|
1dec9d5b20 | ||
|
ad41fcfcd5 | ||
|
6db0fafa7f | ||
|
227668d903 | ||
|
3d1c28b534 |
@ -19,9 +19,16 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
||||
$this->bootstrap('frontController');
|
||||
$front = $this->getResource('frontController');
|
||||
$front->setControllerDirectory(array(
|
||||
'default' => __DIR__ . '/modules/default/controllers',
|
||||
'admin' => __DIR__ . '/modules/admin/controllers',
|
||||
'auth' => __DIR__ . '/modules/auth/controllers',
|
||||
'default' => __DIR__ . '/modules/default/controllers',
|
||||
'file' => __DIR__ . '/modules/file/controllers',
|
||||
'help' => __DIR__ . '/modules/help/controllers',
|
||||
'input' => __DIR__ . '/modules/input/controllers',
|
||||
'legal' => __DIR__ . '/modules/legal/controllers',
|
||||
'print' => __DIR__ . '/modules/print/controllers',
|
||||
'search' => __DIR__ . '/modules/search/controllers',
|
||||
'user' => __DIR__ . '/modules/user/controllers',
|
||||
));
|
||||
|
||||
return $front;
|
||||
@ -49,13 +56,6 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
||||
$front = $this->getResource('frontController');
|
||||
$router = $front->getRouter();
|
||||
|
||||
$localauthRoute = new Zend_Controller_Router_Route('localauth/', array(
|
||||
'module' => 'default',
|
||||
'controller' => 'user',
|
||||
'action' => 'login'
|
||||
));
|
||||
$router->addRoute('localauth', $localauthRoute);
|
||||
|
||||
$printRoute = new Zend_Controller_Router_Route('editer/:action/:fichier', array(
|
||||
'module' => 'default',
|
||||
'controller' => 'print',
|
||||
@ -64,8 +64,8 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
||||
$router->addRoute('print', $printRoute);
|
||||
|
||||
$ssoRoute = new Zend_Controller_Router_Route('sso/:partner/', array(
|
||||
'module' => 'default',
|
||||
'controller' => 'auth',
|
||||
'module' => 'auth',
|
||||
'controller' => 'sso',
|
||||
'action' => 'index',
|
||||
));
|
||||
$router->addRoute('sso', $ssoRoute);
|
||||
@ -77,9 +77,9 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
||||
{
|
||||
//Firebug
|
||||
$writer = new Zend_Log_Writer_Firebug();
|
||||
if(APPLICATION_ENV=='production') {
|
||||
/*if(APPLICATION_ENV=='production') {
|
||||
$writer->setEnabled(false);
|
||||
}
|
||||
}*/
|
||||
$logger = new Zend_Log($writer);
|
||||
Zend_Registry::set('firebug', $logger);
|
||||
|
||||
|
15
application/configs/menu.admin.php
Normal file
15
application/configs/menu.admin.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
return array(
|
||||
array(
|
||||
'label' => "Compte client",
|
||||
'module' => 'admin',
|
||||
'controller' => 'client',
|
||||
'action' => 'index',
|
||||
),
|
||||
array(
|
||||
'label' => "Services",
|
||||
'module' => 'admin',
|
||||
'controller' => 'service',
|
||||
'action' => 'index',
|
||||
),
|
||||
);
|
15
application/configs/menu.help.php
Normal file
15
application/configs/menu.help.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
return array(
|
||||
array(
|
||||
'label' => "Index",
|
||||
'module' => 'help',
|
||||
'controller' => 'index',
|
||||
'action' => 'index',
|
||||
),
|
||||
array(
|
||||
'label' => "A propos",
|
||||
'module' => 'help',
|
||||
'controller' => 'index',
|
||||
'action' => 'about',
|
||||
),
|
||||
);
|
17
application/configs/menu.input.php
Normal file
17
application/configs/menu.input.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
return array(
|
||||
array(
|
||||
'label' => "Retour à la fiche d'identite",
|
||||
'uri' => "#",
|
||||
'pages' => array(
|
||||
array(
|
||||
'label' => "Fiche",
|
||||
'module' => 'legal',
|
||||
'controller' => 'identite',
|
||||
'action' => 'fiche',
|
||||
),
|
||||
|
||||
),
|
||||
),
|
||||
|
||||
);
|
267
application/configs/menu.legal.php
Normal file
267
application/configs/menu.legal.php
Normal file
@ -0,0 +1,267 @@
|
||||
<?php
|
||||
return array(
|
||||
array(
|
||||
'label' => "Identite",
|
||||
'uri' => "#",
|
||||
'pages' => array(
|
||||
array(
|
||||
'label' => "Fiche",
|
||||
'module' => 'legal',
|
||||
'controller' => 'identite',
|
||||
'action' => 'fiche',
|
||||
),
|
||||
array(
|
||||
'label' => "Fiche Procédure Collective",
|
||||
'module' => 'legal',
|
||||
'controller' => 'identite',
|
||||
'action' => 'fichepc',
|
||||
),
|
||||
array(
|
||||
'label' => "Etablissements",
|
||||
'module' => 'legal',
|
||||
'controller' => 'identite',
|
||||
'action' => 'etablissements',
|
||||
),
|
||||
array(
|
||||
'label' => "Liens inter-entreprises",
|
||||
'module' => 'legal',
|
||||
'controller' => 'identite',
|
||||
'action' => 'liens',
|
||||
),
|
||||
array(
|
||||
'label' => "Informations Groupes",
|
||||
'module' => 'legal',
|
||||
'controller' => 'identite',
|
||||
'action' => 'groupe',
|
||||
),
|
||||
array(
|
||||
'label' => "Modifications Insee",
|
||||
'module' => 'legal',
|
||||
'controller' => 'identite',
|
||||
'action' => 'evenements',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'label' => "Dirigeants",
|
||||
'uri' => "#",
|
||||
'pages' => array(
|
||||
array(
|
||||
'label' => "Liste",
|
||||
'module' => 'legal',
|
||||
'controller' => 'dirigeant',
|
||||
'action' => 'liste',
|
||||
),
|
||||
array(
|
||||
'label' => "Opérationnels",
|
||||
'module' => 'legal',
|
||||
'controller' => 'dirigeant',
|
||||
'action' => 'op',
|
||||
),
|
||||
array(
|
||||
'label' => "Historique",
|
||||
'module' => 'legal',
|
||||
'controller' => 'dirigeant',
|
||||
'action' => 'histo',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'label' => "Eléments Financiers",
|
||||
'uri' => "#",
|
||||
'pages' => array(
|
||||
array(
|
||||
'label' => "Synthèse",
|
||||
'module' => 'legal',
|
||||
'controller' => 'finance',
|
||||
'action' => 'synthese',
|
||||
),
|
||||
array(
|
||||
'label' => "Bilans, Compte de résultat",
|
||||
'module' => 'legal',
|
||||
'controller' => 'finance',
|
||||
'action' => 'bilan',
|
||||
),
|
||||
array(
|
||||
'label' => "Ratios",
|
||||
'module' => 'legal',
|
||||
'controller' => 'finance',
|
||||
'action' => 'ratios',
|
||||
),
|
||||
array(
|
||||
'label' => "Flux de trésorerie",
|
||||
'module' => 'legal',
|
||||
'controller' => 'finance',
|
||||
'action' => 'flux',
|
||||
),
|
||||
array(
|
||||
'label' => "Liasse fiscale",
|
||||
'module' => 'legal',
|
||||
'controller' => 'finance',
|
||||
'action' => 'liasselist',
|
||||
'pages' => array(
|
||||
array(
|
||||
'module' => 'legal',
|
||||
'controller' => 'finance',
|
||||
'action' => 'liasse',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'label' => "Bourses & Cotations",
|
||||
'module' => 'legal',
|
||||
'controller' => 'finance',
|
||||
'action' => 'bourse',
|
||||
),
|
||||
array(
|
||||
'label' => "Relations bancaires",
|
||||
'module' => 'legal',
|
||||
'controller' => 'finance',
|
||||
'action' => 'banque',
|
||||
),
|
||||
array(
|
||||
'label' => "Subventions",
|
||||
'module' => 'legal',
|
||||
'controller' => 'finance',
|
||||
'action' => 'subventions',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'label' => "Eléments Juridiques",
|
||||
'uri' => "#",
|
||||
'pages' => array(
|
||||
array(
|
||||
'label' => "Annonces légales",
|
||||
'module' => 'legal',
|
||||
'controller' => 'juridique',
|
||||
'action' => 'annonces',
|
||||
),
|
||||
array(
|
||||
'label' => "Contentieux judiciaires",
|
||||
'module' => 'legal',
|
||||
'controller' => 'juridique',
|
||||
'action' => 'ctx',
|
||||
'pages' => array(
|
||||
array(
|
||||
'module' => 'legal',
|
||||
'controller' => 'juridique',
|
||||
'action' => 'ctxdetail',
|
||||
),
|
||||
)
|
||||
),
|
||||
array(
|
||||
'label' => "Information réglementée",
|
||||
'module' => 'legal',
|
||||
'controller' => 'juridique',
|
||||
'action' => 'infosreg',
|
||||
),
|
||||
array(
|
||||
'label' => "Compétences territoriales",
|
||||
'module' => 'legal',
|
||||
'controller' => 'juridique',
|
||||
'action' => 'competences',
|
||||
),
|
||||
array(
|
||||
'label' => "Conventions collectives",
|
||||
'module' => 'legal',
|
||||
'controller' => 'juridique',
|
||||
'action' => 'conventions',
|
||||
),
|
||||
array(
|
||||
'label' => "Marques déposées",
|
||||
'module' => 'legal',
|
||||
'controller' => 'juridique',
|
||||
'action' => 'marques',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'label' => "Evaluation",
|
||||
'uri' => "#",
|
||||
'pages' => array(
|
||||
array(
|
||||
'label' => "IndiScore",
|
||||
'module' => 'legal',
|
||||
'controller' => 'evaluation',
|
||||
'action' => 'indiscore',
|
||||
'pages' => array(
|
||||
array(
|
||||
'label' => "Rapport de synthèse",
|
||||
'module' => 'legal',
|
||||
'controller' => 'evaluation',
|
||||
'action' => 'scoreshisto',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'label' => "Rapport de synthèse",
|
||||
'module' => 'legal',
|
||||
'controller' => 'evaluation',
|
||||
'action' => 'indiscore2',
|
||||
),
|
||||
array(
|
||||
'label' => "Rapport complet",
|
||||
'module' => 'legal',
|
||||
'controller' => 'evaluation',
|
||||
'action' => 'indiscore3',
|
||||
),
|
||||
array(
|
||||
'label' => "Valorisation",
|
||||
'module' => 'legal',
|
||||
'controller' => 'evaluation',
|
||||
'action' => 'valorisation',
|
||||
),
|
||||
array(
|
||||
'label' => "Enquête commerciale",
|
||||
'module' => 'legal',
|
||||
'controller' => 'evaluation',
|
||||
'action' => 'enquetec',
|
||||
),
|
||||
array(
|
||||
'label' => "Cadastre",
|
||||
'module' => 'legal',
|
||||
'controller' => 'evaluation',
|
||||
'action' => 'cadastre',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'label' => "Pièces Officielles",
|
||||
'uri' => "#",
|
||||
'pages' => array(
|
||||
array(
|
||||
'label' => "Commande de pièces",
|
||||
'module' => 'legal',
|
||||
'controller' => 'pieces',
|
||||
'action' => 'commande',
|
||||
),
|
||||
array(
|
||||
'label' => "Comptes annuels",
|
||||
'module' => 'legal',
|
||||
'controller' => 'pieces',
|
||||
'action' => 'bilans',
|
||||
),
|
||||
array(
|
||||
'label' => "Actes & statuts",
|
||||
'module' => 'legal',
|
||||
'controller' => 'pieces',
|
||||
'action' => 'actes',
|
||||
),
|
||||
array(
|
||||
'label' => "Suivi privilèges",
|
||||
'module' => 'legal',
|
||||
'controller' => 'pieces',
|
||||
'action' => 'privileges',
|
||||
'pages' => array(
|
||||
array(
|
||||
'visible' => false,
|
||||
'module' => 'legal',
|
||||
'controller' => 'pieces',
|
||||
'action' => 'privilegedetail',
|
||||
)
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
42
application/configs/menu.search.php
Normal file
42
application/configs/menu.search.php
Normal file
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
return array(
|
||||
array(
|
||||
'label' => "Entreprise",
|
||||
'module' => 'search',
|
||||
'controller' => 'entreprise',
|
||||
'action' => 'index',
|
||||
'pages' => array(
|
||||
array(
|
||||
'visible' => false,
|
||||
'label' => "Liste",
|
||||
'module' => 'search',
|
||||
'controller' => 'entreprise',
|
||||
'action' => 'list',
|
||||
),
|
||||
)
|
||||
),
|
||||
array(
|
||||
'label' => "Dirigeant",
|
||||
'module' => 'search',
|
||||
'controller' => 'dirigeant',
|
||||
'action' => 'index',
|
||||
),
|
||||
array(
|
||||
'label' => "Actionnaire",
|
||||
'module' => 'search',
|
||||
'controller' => 'actionnaire',
|
||||
'action' => 'index',
|
||||
),
|
||||
array(
|
||||
'label' => "Annonce",
|
||||
'module' => 'search',
|
||||
'controller' => 'annonce',
|
||||
'action' => 'index',
|
||||
),
|
||||
array(
|
||||
'label' => "Surveillance",
|
||||
'module' => 'search',
|
||||
'controller' => 'surveillance',
|
||||
'action' => 'index',
|
||||
),
|
||||
);
|
39
application/configs/menu.user.php
Normal file
39
application/configs/menu.user.php
Normal file
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
return array(
|
||||
array(
|
||||
'label' => "Paramètres",
|
||||
'module' => 'user',
|
||||
'controller' => 'identity',
|
||||
'action' => 'index',
|
||||
),
|
||||
array(
|
||||
'label' => "Commandes",
|
||||
'module' => 'user',
|
||||
'controller' => 'order',
|
||||
'action' => 'index',
|
||||
),
|
||||
array(
|
||||
'label' => "Surveillances",
|
||||
'module' => 'user',
|
||||
'controller' => 'portfolio',
|
||||
'action' => 'index',
|
||||
),
|
||||
array(
|
||||
'label' => "Portefeuille",
|
||||
'module' => 'user',
|
||||
'controller' => 'portfolio',
|
||||
'action' => 'score',
|
||||
),
|
||||
array(
|
||||
'label' => "Consultation",
|
||||
'module' => 'user',
|
||||
'controller' => 'log',
|
||||
'action' => 'index',
|
||||
),
|
||||
array(
|
||||
'label' => "Historique des connexions",
|
||||
'module' => 'user',
|
||||
'controller' => 'log',
|
||||
'action' => 'auth',
|
||||
),
|
||||
);
|
@ -1,7 +1,10 @@
|
||||
<p>© 2006-<?php echo date('Y')?> Scores & Décisions SAS -
|
||||
<div class="container">
|
||||
<p class="text-muted credit">
|
||||
© 2006-<?php echo date('Y')?> <a href="http://www.scores-decisions.com">Scores & Décisions SAS</a> -
|
||||
<?=$this->translate("Tous droits réservés")?> -
|
||||
<a href="http://www.scores-decisions.com/mentions.php" target="_blank">
|
||||
<?=$this->translate("Mentions légales")?></a> -
|
||||
<img class='flag' id="fr" src="/themes/default/images/drapeaux/fr.png"/>
|
||||
<img class='flag' id="en" src="/themes/default/images/drapeaux/en.png"/>
|
||||
</p>
|
||||
<img class="flag" id="fr" src="/themes/default/images/drapeaux/fr.png"/>
|
||||
<img class="flag" id="en" src="/themes/default/images/drapeaux/en.png"/>
|
||||
</p>
|
||||
</div>
|
@ -1,43 +1,152 @@
|
||||
<?php if ($this->navigation()->menu()->hasPages()) { ?>
|
||||
<div id="menu">
|
||||
<div id="logo">
|
||||
<img src="/themes/default/images/logos/logo_sd.gif" width="200" height="65" />
|
||||
<nav class="navbar navbar-default">
|
||||
<div id="logo" class="navbar-header">
|
||||
<a class="navbar-brand" href="<?=$this->url(array('module'=>'default', 'controller'=>'index', 'action'=>'index'),
|
||||
'default', true)?>">Scores & Décisions</a>
|
||||
</div>
|
||||
<?=$this->navigation()->menu();?>
|
||||
<div class="icones">
|
||||
<?php if ($this->print) {?>
|
||||
<a target="_blank" title="Impression" href="/editer/ecran/<?=$this->print.'.html'?>">
|
||||
<img alt="<?=$this->translate("Impression")?>" src="/themes/default/images/interfaces/printer.png">
|
||||
</a>
|
||||
<?php }?>
|
||||
|
||||
<?php if ($this->pdf) {?>
|
||||
<a target="_blank" title="Impression PDF" href="/editer/pdf/<?=$this->pdf.'.pdf'?>">
|
||||
<img alt="<?=$this->translate("Impression en PDF")?>" src="/themes/default/images/interfaces/pdf.png">
|
||||
</a>
|
||||
<?php }?>
|
||||
|
||||
<?php if ($this->xml) {?>
|
||||
<a target="_blank" title="Export XML" href="/editer/xml/<?=$this->xml.'.xml'?>">
|
||||
<img alt="<?=$this->translate("Export en XML")?>" src="/themes/default/images/interfaces/xml.png">
|
||||
</a>
|
||||
<?php }?>
|
||||
|
||||
<?php if ($this->aide) {?>
|
||||
<a id="aideLigne" title="Aide en ligne" href="#">
|
||||
<img alt="<?=$this->translate("Activer l'aide en ligne")?>" src="/themes/default/images/interfaces/aideligne.png">
|
||||
</a>
|
||||
<?php }?>
|
||||
|
||||
<div id="navbar" class="navbar-collapse collapse">
|
||||
<ul class="nav navbar-nav navbar-right navbar-top-links">
|
||||
<?php if ($this->UserModeEdit == 1) {?>
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle sd-edit" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
|
||||
Mode Edition <span class="caret"></span></a>
|
||||
<?php if (count($this->MenuInput) > 0) {?>
|
||||
<ul class="dropdown-menu">
|
||||
<?php foreach ($this->MenuInput as $item) {?>
|
||||
<li><a <?php if (array_key_exists('class', $item)) {?>class="<?=$item['class']?>"<?php }?>
|
||||
<?php if (array_key_exists('title', $item)) {?>title="<?=$item['title']?>"<?php }?>
|
||||
href="<?=$item['href']?>"><?=$item['label']?></a></li>
|
||||
<?php }?>
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php }?>
|
||||
<?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">
|
||||
<?php if ($this->PrintHtml) {?>
|
||||
<li><a title="Impression" target="_blank" id="print-page">
|
||||
<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'=>$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) {?>
|
||||
<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>
|
||||
<?php }?>
|
||||
<?php if ($this->MenuSuivi !== null) {?>
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle sd-bgblue" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
|
||||
Suivi
|
||||
<?php if (count($this->Suivi) > 0) {?> <span class="badge"><?=count($this->Suivi)?></span>
|
||||
<?php } else {?> <span class="badge">-</span><?php }?>
|
||||
<span class="caret"></span></a>
|
||||
<ul class="dropdown-menu">
|
||||
<?php if ($this->SuiviMsg) {?>
|
||||
<li><a href="#"><?=$this->SuiviMsg?></a></li>
|
||||
<?php } else {?>
|
||||
<?php if (count($this->Suivi) == 0) {?>
|
||||
<li><a href="#">Aucun suivi</a></li>
|
||||
<?php } else {?>
|
||||
<?php foreach ($this->Suivi as $item) {?>
|
||||
<li><a href="#"><?=$item->label?></a></li>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
<li class="divider"></li>
|
||||
<li><a href="#" data-toggle="modal" data-target="#dialog" data-url="<?=$this->url(array('module'=>'user',
|
||||
'controller'=>'portfolio', 'action'=>'ajouter', 'siret' => $this->siret), 'default', true)?>" >Ajouter au portefeuille</a></li>
|
||||
</li>
|
||||
<li><a href="#">Voir le portefeuille</a></li>
|
||||
<?php }?>
|
||||
</ul>
|
||||
</li>
|
||||
<?php }?>
|
||||
<?php if ($this->MenuHisto !== null) {?>
|
||||
<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-history fa-fw"></i> <span class="hidden-xs hidden-sm">Mon historique</span> <span class="caret"></span></a>
|
||||
<ul class="dropdown-menu">
|
||||
<?php if (count($this->UserHisto) > 0) {?>
|
||||
<?php foreach ($this->UserHisto as $item) {?>
|
||||
<li><a href="<?=$this->url(array('module'=>'legal', 'controller'=>'identite', 'action'=>'fiche',
|
||||
'siret'=>$item->CompanyId), 'default', true)?>" target="_blank">
|
||||
<div><strong><?=$item->CompanyName?></strong></div>
|
||||
<div>
|
||||
<small><?=$item->CompanyId?></small> -
|
||||
<span class="text-muted"><small><em><?=$item->Date?></em></small></span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li class="divider"></li>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
<li><a class="text-center" href="<?=$this->url(array('module'=>'user',
|
||||
'controller'=>'log', 'action'=>'index'), 'default', true)?>">
|
||||
<strong>Voir plus</strong> <i class="fa fa-angle-right"></i></a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<?php }?>
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle sd-bgblue" data-toggle="dropdown"
|
||||
role="button" aria-haspopup="true" aria-expanded="false" title="Tableau de bord">
|
||||
<i class="fa fa-dashboard fa-fw"></i> <span class="hidden-xs hidden-sm">Tableau de bord</span> <span class="caret"></span></a>
|
||||
<ul class="dropdown-menu">
|
||||
<?php if (in_array($this->UserProfil, array('Administrateur', 'SuperAdministrateur'))) {?>
|
||||
<li><a href="<?=$this->url(array('module'=>'admin', 'controller'=>'client', 'action'=>'index'),
|
||||
'default', true)?>">Administration</a></li>
|
||||
<?php }?>
|
||||
<li><a href="<?=$this->url(array('module'=>'help', 'controller'=>'news', 'action'=>'liste'),
|
||||
'default', true)?>">Nouveautés</a></li>
|
||||
<li><a href="<?=$this->url(array('module'=>'help', 'controller'=>'index', 'action'=>'index'),
|
||||
'default', true)?>">Aide</a></li>
|
||||
<li><a href="<?=$this->url(array('module'=>'help', 'controller'=>'index', 'action'=>'about'),
|
||||
'default', true)?>">A propos</a></li>
|
||||
<li role="separator" class="divider"></li>
|
||||
<li><a href="<?=$this->url(array('module'=>'user', 'controller'=>'order', 'action'=>'index'),
|
||||
'default', true)?>">Commandes</a></li>
|
||||
<li><a href="<?=$this->url(array('module'=>'user', 'controller'=>'portfolio', 'action'=>'index'),
|
||||
'default', true)?>">Surveillances</a></li>
|
||||
<li><a href="<?=$this->url(array('module'=>'user', 'controller'=>'portfolio', 'action'=>'score'),
|
||||
'default', true)?>">Portefeuille</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<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-user fa-fw"></i> <?=$this->profileLink()?> <span class="caret"></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li class="dropdown-header">Outils Métier</li>
|
||||
<li><a href="/" target="_blank" title="Données légales">Extranet</a></li>
|
||||
<li><a href="http://ws.scores-decisions.com" target="_blank" title="Web Service API">WebService</a></li>
|
||||
<li><a href="<?=$this->url(array('module'=>'default', 'controller'=>'index', 'action'=>'odea'), 'default', true)?>"
|
||||
target="_blank" title="Données et prospection">ODEA</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="<?=$this->url(array('module'=>'user', 'controller'=>'identity', 'action'=>'index'),
|
||||
'default', true)?>"><i class="fa fa-cogs fa-fw"></i> Paramètres</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="<?=$this->url(array('module'=>'auth', 'controller'=>'user', 'action'=>'logout'),
|
||||
'default', true)?>"><span class="glyphicon glyphicon-log-out" aria-hidden="true"></span> Déconnexion</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$('div#menu ul.navigation').accordion({
|
||||
header: '.header',
|
||||
autoHeight: false,
|
||||
collapsible: true,
|
||||
heightStyle: "content",
|
||||
active: <?=$this->menuId?>
|
||||
});
|
||||
</script>
|
||||
<?php }?>
|
||||
|
||||
<?php if ($this->MenuAdvanced) { ?>
|
||||
<?php echo $this->render('menu-advanced.phtml')?>
|
||||
<?php } else {?>
|
||||
<?php echo $this->render('menu.phtml')?>
|
||||
<?php }?>
|
||||
|
||||
</nav>
|
||||
|
||||
<div id="dialog" class="modal"><div class="modal-dialog"><div class="modal-content"></div></div></div>
|
||||
|
||||
|
@ -1,21 +1,18 @@
|
||||
<?php echo $this->doctype()?>
|
||||
<html>
|
||||
<head>
|
||||
<?php echo $this->headMeta()?>
|
||||
<?php echo $this->headTitle()?>
|
||||
<?php echo $this->headLink()?>
|
||||
<?php echo $this->headScript()?>
|
||||
<?php echo $this->headMeta()?>
|
||||
<?php echo $this->headTitle()?>
|
||||
<?php echo $this->headLink()?>
|
||||
<?php echo $this->headScript()?>
|
||||
</head>
|
||||
<body>
|
||||
<div id="global">
|
||||
<?php echo $this->render('header.phtml')?>
|
||||
<div id="content">
|
||||
<?php echo $this->layout()->content?>
|
||||
<div id="footer">
|
||||
<?php echo $this->render('footer.phtml')?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo $this->inlineScript()?>
|
||||
<div id="wrap">
|
||||
<?php echo $this->render('header.phtml')?>
|
||||
<div id="page-wrap">
|
||||
<?php echo $this->layout()->content?>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo $this->inlineScript(); ?>
|
||||
</body>
|
||||
</html>
|
24
application/layouts/default/menu-advanced.phtml
Normal file
24
application/layouts/default/menu-advanced.phtml
Normal file
@ -0,0 +1,24 @@
|
||||
<div id="menu" role="navigation" class="navbar-default sidebar">
|
||||
<div class="sidebar-nav navbar-collapse">
|
||||
<ul id="side-menu" class="nav in">
|
||||
<li class="sidebar-head"><strong><?=$this->MenuLabel?></strong></li>
|
||||
<?php foreach ($this->navigation()->getContainer() as $p) {?>
|
||||
<?php $pageVisibleNb = count($p->findAllBy('visible', true));?>
|
||||
<li class="<?php if ($p->isActive(true)) { echo 'active'; } ?>">
|
||||
<a href="<?=$p->getHref()?>" class="<?php if ($p->isActive(true)) { echo 'active'; } ?>">
|
||||
<?=$p->label?><?php if ($pageVisibleNb > 0) {?><span class="fa arrow"></span><?php }?></a>
|
||||
<?php if ($pageVisibleNb > 0) {?>
|
||||
<ul class="nav nav-second-level collapse" aria-expanded="false">
|
||||
<?php foreach ( $p->getPages() as $child ) {?>
|
||||
<?php if ($child->isVisible()) {?>
|
||||
<li><a class="<?php if ($child->isActive(true)) { echo 'active'; } ?>" href="<?=$child->getHref()?>">
|
||||
<?=$child->label?></a></li>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
</ul>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php }?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
14
application/layouts/default/menu.phtml
Normal file
14
application/layouts/default/menu.phtml
Normal file
@ -0,0 +1,14 @@
|
||||
<?php if ($this->navigation()->menu()->hasPages()) {?>
|
||||
<div id="menu">
|
||||
<?=$this->navigation()->menu();?>
|
||||
</div>
|
||||
<script>
|
||||
$('div#menu ul.navigation').accordion({
|
||||
header: '.header',
|
||||
autoHeight: false,
|
||||
collapsible: true,
|
||||
heightStyle: "content",
|
||||
active: <?=$this->menuId?>
|
||||
});
|
||||
</script>
|
||||
<?php }?>
|
13
application/layouts/helpers/ProfileLink.php
Normal file
13
application/layouts/helpers/ProfileLink.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
class Zend_View_Helper_ProfileLink extends Zend_View_Helper_Abstract
|
||||
{
|
||||
public function profileLink()
|
||||
{
|
||||
$auth = Zend_Auth::getInstance();
|
||||
if ($auth->hasIdentity()) {
|
||||
$username = $auth->getIdentity()->username;
|
||||
return '<span class="hidden-xs hidden-sm">' . $username . '</span>';
|
||||
}
|
||||
}
|
||||
}
|
10
application/modules/admin/controllers/ClientController.php
Normal file
10
application/modules/admin/controllers/ClientController.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
class Admin_ClientController extends Zend_Controller_Action
|
||||
{
|
||||
public function indexAction()
|
||||
{
|
||||
$ws = new Scores_Ws_Client('account', '0.1');
|
||||
$responses = $ws->getClient();
|
||||
$this->view->Info = $responses;
|
||||
}
|
||||
}
|
11
application/modules/admin/controllers/RootController.php
Normal file
11
application/modules/admin/controllers/RootController.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
class Admin_RootController extends Zend_Controller_Action
|
||||
{
|
||||
public function indexAction(){}
|
||||
public function clientsAction(){}
|
||||
public function clientAction(){}
|
||||
public function servicesAction(){}
|
||||
public function serviceAction(){}
|
||||
public function usersAction(){}
|
||||
public function userAction(){}
|
||||
}
|
75
application/modules/admin/controllers/ServiceController.php
Normal file
75
application/modules/admin/controllers/ServiceController.php
Normal file
@ -0,0 +1,75 @@
|
||||
<?php
|
||||
class Admin_ServiceController extends Zend_Controller_Action
|
||||
{
|
||||
protected $theme;
|
||||
|
||||
public function init()
|
||||
{
|
||||
// --- Theme
|
||||
$this->theme = Zend_Registry::get('theme');
|
||||
}
|
||||
|
||||
public function indexAction()
|
||||
{
|
||||
$ws = new Scores_Ws_Client('account', '0.1');
|
||||
$responses = $ws->getServiceList();
|
||||
$this->view->List = $responses->item;
|
||||
}
|
||||
|
||||
public function detailAction()
|
||||
{
|
||||
$this->view->headScript()
|
||||
->appendFile($this->theme->pathScript.'/service.js', 'text/javascript');
|
||||
|
||||
$request = $this->getRequest();
|
||||
$code = $request->getParam('code');
|
||||
|
||||
$ws = new Scores_Ws_Client('account', '0.1');
|
||||
$params = new stdClass();
|
||||
$params->code = $code;
|
||||
$responses = $ws->getService($params);
|
||||
$this->view->Info = $responses;
|
||||
|
||||
$responses = $ws->getCategory();
|
||||
$this->view->Categories = $responses->item;
|
||||
|
||||
$responses = $ws->getAccess();
|
||||
$this->view->Access = array();
|
||||
foreach ($responses->item as $item) {
|
||||
$this->view->Access[$item->Code] = $item->Label;
|
||||
}
|
||||
}
|
||||
|
||||
public function accessAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$request = $this->getRequest();
|
||||
$id = $request->getParam('id');
|
||||
$this->view->id = $id;
|
||||
$name = $request->getParam('name');
|
||||
$this->view->name = $name;
|
||||
$delete = $request->getParam('delete', 0);
|
||||
$this->view->delete = $delete;
|
||||
|
||||
$params = new stdClass();
|
||||
$params->type = 'acces';
|
||||
$params->value = $name;
|
||||
$params->id = $id;
|
||||
if ($delete == 1) {
|
||||
$params->delete = true;
|
||||
} else {
|
||||
$params->delete = false;
|
||||
}
|
||||
|
||||
$ws = new Scores_Ws_Client('account', '0.1');
|
||||
$response = $ws->setServiceParam($params);
|
||||
Zend_Registry::get('firebug')->info($response);
|
||||
if ($response === true) {
|
||||
// Do nothing
|
||||
}
|
||||
else {
|
||||
$this->view->error = true;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
103
application/modules/admin/controllers/UserController.php
Normal file
103
application/modules/admin/controllers/UserController.php
Normal file
@ -0,0 +1,103 @@
|
||||
<?php
|
||||
class Admin_UserController extends Zend_Controller_Action
|
||||
{
|
||||
public function indexAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$serviceCode = $request->getParam('service');
|
||||
|
||||
$this->view->UserSearch = false;
|
||||
|
||||
// Pas de service sélectionner
|
||||
if ($serviceCode === null) {
|
||||
$this->view->UserSearch = true;
|
||||
}
|
||||
// Affichage des utilisateurs
|
||||
else {
|
||||
// Get Service Name
|
||||
// Ne pas créer d'utilisateur lorsque Service Editable = 0
|
||||
$ws = new Scores_Ws_Client('account', '0.1');
|
||||
$params = new stdClass();
|
||||
$params->code = $serviceCode;
|
||||
$serviceResponse = $ws->getService($params);
|
||||
$this->view->Service = $serviceResponse;
|
||||
|
||||
// Get Users
|
||||
$ws = new Scores_Ws_Client('account', '0.1');
|
||||
$params = new stdClass();
|
||||
$params->actif = 1;
|
||||
$params->service = $serviceCode;
|
||||
$responses = $ws->getUserList($params);
|
||||
$this->view->List = $responses->item;
|
||||
}
|
||||
}
|
||||
|
||||
public function detailAction()
|
||||
{
|
||||
$this->view->headLink()
|
||||
->appendStylesheet('/libs/bootstrap3-editable/css/bootstrap-editable.css', 'all');
|
||||
$this->view->headScript()
|
||||
->appendFile('/libs/bootstrap3-editable/js/bootstrap-editable.min.js', 'text/javascript');
|
||||
|
||||
$request = $this->getRequest();
|
||||
$id = $request->getParam('id');
|
||||
|
||||
$ws = new Scores_Ws_Client('account', '0.1');
|
||||
$params = new stdClass();
|
||||
$params->id = $id;
|
||||
$response = $ws->getUser($params);
|
||||
$this->view->Item = $response;
|
||||
|
||||
$responses = $ws->getCategory();
|
||||
$this->view->Categories = $responses->item;
|
||||
|
||||
$responses = $ws->getAccess();
|
||||
$this->view->Access = array();
|
||||
foreach ($responses->item as $item) {
|
||||
$this->view->Access[$item->Code] = $item->Label;
|
||||
}
|
||||
}
|
||||
|
||||
public function formAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
|
||||
if ( $request->isPost() ) {
|
||||
$this->view->FormIsPost = true;
|
||||
$this->_helper->layout()->disableLayout();
|
||||
|
||||
$data = array();
|
||||
$data['status'] = 0;
|
||||
|
||||
$values = $request->getPost();
|
||||
|
||||
if ( $values['id']===null ) {
|
||||
$data['dateInsert'] = date('Y-m-d H:i:s');
|
||||
try {
|
||||
$params = new stdClass();
|
||||
$params->data = json_encode($values);
|
||||
$ws = new Scores_Ws_Client('account', '0.1');
|
||||
$response = $ws->setUser($params);
|
||||
$data['status'] = 1;
|
||||
$data['login'] = $values['login'];
|
||||
$data['email'] = $values['email'];
|
||||
$data['civilite'] = $values['civilite'];
|
||||
$data['nom'] = $values['nom'];
|
||||
$data['prenom'] = $values['prenom'];
|
||||
} catch(Exception $e) {
|
||||
$data['status'] = 0;
|
||||
$data['msg'] = "Erreur lors de la création de l'utilisateur ! ".$e->getMessage();
|
||||
}
|
||||
}
|
||||
$this->view->data = $data;
|
||||
} else {
|
||||
$serviceCode = $request->getParam('service');
|
||||
|
||||
$ws = new Scores_Ws_Client('account', '0.1');
|
||||
$params = new stdClass();
|
||||
$params->code = $serviceCode;
|
||||
$serviceResponse = $ws->getService($params);
|
||||
$this->view->Service = $serviceResponse;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
<div id="content">
|
||||
|
||||
<div class="page-header">
|
||||
<h1>Informations</h1>
|
||||
</div>
|
||||
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">Nom</th>
|
||||
<td><?=$this->Info->Nom?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Siren</th>
|
||||
<td><?=$this->Info->Siren?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
@ -0,0 +1,23 @@
|
||||
<?php if ($this->error === true) {?>
|
||||
<span class="bg-danger">Erreur !</span>
|
||||
<?php } else {?>
|
||||
<?php if ($this->delete === 1) {?>
|
||||
<span class="label label-warning">Désactivé</span>
|
||||
<script>
|
||||
$('div#<?=$this->name?>-action span')
|
||||
.data('url', "<?=$this->url(array('module'=>'admin', 'controller'=>'service', 'action'=>'access', 'id'=>$this->id, 'name'=>$this->name), 'default', true)?>")
|
||||
.removeClass('glyphicon-remove').addClass('glyphicon-plus');
|
||||
</script>
|
||||
<?php } else {?>
|
||||
<span class="label label-success">Activé</span>
|
||||
<script>
|
||||
$('div#<?=$this->name?>-action span')
|
||||
.data('url', "<?=$this->url(array('module'=>'admin', 'controller'=>'service', 'action'=>'access', 'id'=>$this->id, 'name'=>$this->name, 'delete'=>1), 'default', true)?>")
|
||||
.removeClass('glyphicon-plus').addClass('glyphicon-remove');
|
||||
</script>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,109 @@
|
||||
<div id="content">
|
||||
|
||||
<div class="page-header">
|
||||
<h1>Service : <?=$this->Info->Label?></h1>
|
||||
</div>
|
||||
|
||||
<table class="table table-hover">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">Nom</th>
|
||||
<td><?=$this->Info->Label?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Type de score</th>
|
||||
<td><?=$this->Info->TypeScore?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Type d'acces</th>
|
||||
<td><?=$this->Info->TypeAcces?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Modifiable</th>
|
||||
<td>
|
||||
<?php if ($this->Info->Editable == 1) {?>Oui<?php } else {?>Non<?php }?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Actif</th>
|
||||
<td><?php if ($this->Info->Active == 1) {?>Oui<?php } else {?>Non<?php }?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Crée le</th>
|
||||
<td><small><?=$this->Info->DateInsert?></small></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Mise à jour le</th>
|
||||
<td><small><?=$this->Info->DateUpdate?></small></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<h2>Droits d'accès</h2>
|
||||
<?php if (count($this->Info->Acces->item) == 0) {?>
|
||||
<p class="bg-classes bg-danger"><strong>Attention !</strong> Aucun paramètre d'accès défini.
|
||||
Les utilisateurs ne pourront pas accèder au service.</p>
|
||||
<?php }?>
|
||||
<?php foreach ($this->Categories as $c => $item) {?>
|
||||
<div class="panel panel-info">
|
||||
<div class="panel-heading"><?=$item->Label?></div>
|
||||
<ul class="list-group">
|
||||
<?php foreach ($item->Acces->item as $a) {?>
|
||||
<?php foreach ($this->Info->Acces->item as $Access) {
|
||||
$exist = 0;
|
||||
if ($Access->Code == $a) {
|
||||
$exist = 1;
|
||||
break;
|
||||
}
|
||||
} ?>
|
||||
<li class="list-group-item<?php if ($exist == 1) { echo " list-group-item-success"; }?>">
|
||||
<div class="row" id="<?=$a?>-row">
|
||||
<div class="col-md-6">
|
||||
<?php if (array_key_exists($a, $this->Access)) {?>
|
||||
<?=$this->Access[$a]?>
|
||||
<?php } else {?>
|
||||
<?=$a?>
|
||||
<?php }?>
|
||||
</div>
|
||||
<div id="<?=$a?>-status" class="col-md-3">
|
||||
<?php if ($exist == 0) {?>
|
||||
<span class="label label-warning">Désactivé</span>
|
||||
<?php }?>
|
||||
</div>
|
||||
<div id="<?=$a?>-action" class="col-md-3 access-action">
|
||||
<?php if ($exist == 0) {?>
|
||||
<?php if ($this->Info->Editable == 1) {?>
|
||||
<span data-name="<?=$a?>" data-url="<?=$this->url(array(
|
||||
'module'=>'admin', 'controller'=>'service', 'action'=>'access',
|
||||
'id'=>$this->Info->id, 'name'=>$a), 'default', true)?>"
|
||||
class="glyphicon glyphicon-plus"></span>
|
||||
<?php }?>
|
||||
<?php } else {?>
|
||||
<?php if ($this->Info->Editable == 1) {?>
|
||||
<span data-name="<?=$a?>" data-url="<?=$this->url(array(
|
||||
'module'=>'admin', 'controller'=>'service', 'action'=>'access',
|
||||
'id'=>$this->Info->id, 'name'=>$a, 'delete'=>1), 'default', true)?>"
|
||||
class="glyphicon glyphicon-remove"></span>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<?php }?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
|
||||
<h2>Restriction IPs</h2>
|
||||
<?php if (count($this->Info->IP->item) > 0) {?>
|
||||
<ul class="list-unstyled">
|
||||
<?php foreach ($this->Info->IP->item as $ip) {?>
|
||||
<li><?=$ip?></li>
|
||||
<?php }?>
|
||||
</ul>
|
||||
<?php } else {?>
|
||||
<p class="bg-classes bg-warning">Aucune restriction.</p>
|
||||
<?php }?>
|
||||
|
||||
</div>
|
@ -0,0 +1,48 @@
|
||||
<div id="content">
|
||||
|
||||
<div class="page-header">
|
||||
<h1>Liste des services</h1>
|
||||
</div>
|
||||
|
||||
<?php if (count($this->List) > 0) {?>
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<th>Type d'accès</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($this->List as $l) {?>
|
||||
|
||||
<?php
|
||||
$class = 'active';
|
||||
if ($l->Editable == 0) { $class = ''; }
|
||||
?>
|
||||
<tr class="<?=$class?>">
|
||||
<td><?=$l->Label?></td>
|
||||
<td><?=$l->TypeAcces?></td>
|
||||
<td>
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-xs btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true"
|
||||
aria-expanded="false">Action <span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu dropdown-menu-right">
|
||||
<li><a href="<?=$this->url(array('module'=>'admin', 'controller'=>'service', 'action'=>'detail', 'code'=>$l->Code),
|
||||
'default', true)?>">Paramètres</a></li>
|
||||
<li><a href="<?=$this->url(array('module'=>'admin', 'controller'=>'user', 'action'=>'index', 'service'=>$l->Code),
|
||||
'default', true)?>">Utilisateurs</a></li>
|
||||
<li><a href="#">Consommation</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php } else {?>
|
||||
<p class="bg-warning">Aucun service ! Veuillez contacter le support.</p>
|
||||
<?php }?>
|
||||
|
||||
</div>
|
@ -0,0 +1,40 @@
|
||||
<div id="content">
|
||||
<h1>Historique des connexions</h1>
|
||||
<div class="paragraph">
|
||||
<form action="<?=$this->url(array('module'=>'user', 'controller'=>'log', 'action'=>'auth'), 'default', true)?>">
|
||||
<select name="y" >
|
||||
<?php foreach($this->Years as $year) { ?>
|
||||
<option value="<?=$year?>" <?php if($year==$this->year) echo 'selected';?>><?=$year?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<select name="m">
|
||||
<?php foreach($this->Months as $month) { ?>
|
||||
<option value="<?=$month?>" <?php if($month==$this->month) echo 'selected';?>><?=$month?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
|
||||
<input type="submit" value="OK"/>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<h2>Détail</h2>
|
||||
<?php if (count($this->List) > 0) {?>
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>IP</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($this->List as $item) {?>
|
||||
<tr>
|
||||
<td><?=$item->Date?></td>
|
||||
<td><?=$item->IP?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php }?>
|
||||
|
||||
</div>
|
@ -0,0 +1,108 @@
|
||||
<div id="content">
|
||||
|
||||
<div class="page-header">
|
||||
<h1>Utilisateur : <?=$this->Item->Login?></h1>
|
||||
</div>
|
||||
|
||||
<h2>Identite</h2>
|
||||
<?php if ($this->Item->Delete == 1) {?>
|
||||
<p class="bg-classes bg-danger">Utilisateur supprimé.</p>
|
||||
<?php }?>
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">Login</th>
|
||||
<td><?=$this->Item->Login?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Nom / Prénom</th>
|
||||
<td>
|
||||
<span class="editable" data-type="select" data-name="civilite" data-value="<?=$this->Item->Civilite?>"
|
||||
data-source="[{value: 'M', text: 'M'}, {value: 'Mme', text: 'Mme'}, {value: 'Mlle', text: 'Mlle'}]"
|
||||
data-pk="<?=$this->Item->id?>" data-url="<?=$this->url(array('module'=>'user', 'controller'=>'identity',
|
||||
'action'=>'gender'), 'default', true)?>"><?=$this->Item->Civilite?></span>.
|
||||
<span class="editable" data-type="text" data-name="nom" data-pk="<?=$this->Item->id?>"
|
||||
data-url="<?=$this->url(array('module'=>'user', 'controller'=>'identity', 'action'=>'lastname'),
|
||||
'default', true)?>"><?=$this->Item->Nom?></span>
|
||||
<span class="editable" data-type="text" data-name="prenom" data-pk="<?=$this->Item->id?>"
|
||||
data-url="<?=$this->url(array('module'=>'user', 'controller'=>'identity', 'action'=>'firstname'),
|
||||
'default', true)?>"><?=$this->Item->Prenom?></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Courriel</th>
|
||||
<td><span class="editable" data-type="text" data-name="email" data-pk="<?=$this->Item->id?>"
|
||||
data-url="<?=$this->url(array('module'=>'user', 'controller'=>'identity', 'action'=>'email'),
|
||||
'default', true)?>"><?=$this->Item->Email?></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Actif</th>
|
||||
<td>
|
||||
<?php if ($this->Item->Enable == 0) {?>
|
||||
<span class="label label-warning">Inactif</span>
|
||||
<?php } else {?>
|
||||
<span class="label label-success">Actif</span>
|
||||
<?php }?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Action</th>
|
||||
<td>
|
||||
<button type="button" class="btn btn-sm btn-primary">Modifier le mot de passe</button>
|
||||
<button type="button" class="btn btn-sm btn-primary">Paramétrage emails</button>
|
||||
<button type="button" class="btn btn-sm btn-primary">Suivi connexion</button>
|
||||
<button type="button" class="btn btn-sm btn-primary">Suivi consultation</button>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<h2>Paramètres</h2>
|
||||
<p class="bg-classes bg-info"><strong>Service :</strong> <a href="<?=$this->url(array('module'=>'admin',
|
||||
'controller'=>'service', 'action'=>'detail', 'code'=>$this->Item->ServiceCode),
|
||||
'default', true)?>"><?=$this->Item->ServiceLabel?></a></p>
|
||||
|
||||
<?php if ($this->Item->AccesOverride === true) {?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<strong>Attention !</strong> Cet utilisateur posséde des paramètres d'accès spécifiques, différent du service auquel il appartient.</div>
|
||||
<?php }?>
|
||||
|
||||
<?php if (count($this->Item->Acces->item) > 0) {?>
|
||||
<?php foreach ($this->Categories as $c => $item) {?>
|
||||
<div class="panel panel-info">
|
||||
<div class="panel-heading"><?=$item->Label?></div>
|
||||
<ul class="list-group">
|
||||
<?php foreach ($item->Acces->item as $a) {?>
|
||||
<?php foreach ($this->Item->Acces->item as $Access) {
|
||||
$add = 1;
|
||||
if ($Access->Code == $a) {
|
||||
$add = 0;
|
||||
break;
|
||||
}
|
||||
} ?>
|
||||
<li class="list-group-item<?php if ($add == 0) { echo " list-group-item-success"; }?>">
|
||||
<?php if (array_key_exists($a, $this->Access)) {?>
|
||||
<?=$this->Access[$a]?>
|
||||
<?php } else {?>
|
||||
<?=$a?>
|
||||
<?php }?>
|
||||
<?php if ($add == 1) {?>
|
||||
<span class="label label-warning pull-right">Non autorisé</span>
|
||||
<?php }?>
|
||||
</li>
|
||||
<?php }?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php }?>
|
||||
<?php } else {?>
|
||||
<p class="bg-classes bg-danger">Aucun paramètre d'accès défini, vérifier les paramètres du service.</p>
|
||||
<?php }?>
|
||||
|
||||
<h2>Préférences</h2>
|
||||
|
||||
</div>
|
||||
<script>
|
||||
$(function() {
|
||||
$('.editable').editable();
|
||||
});
|
||||
</script>
|
@ -0,0 +1,99 @@
|
||||
<?php if ($this->FormIsPost) {?>
|
||||
|
||||
<?=json_encode($this->data)?>
|
||||
|
||||
<?php } else {?>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<div class="page-header">
|
||||
<h1>Ajout d'utilisateurs - <small><?=$this->Service->Label?></small></h1>
|
||||
</div>
|
||||
|
||||
<a class="btn btn-sm btn-default" href="<?=$this->url(array('module'=>'admin', 'controller'=>'user',
|
||||
'action'=>'index', 'service'=>$this->Service->Code), 'default', true)?>">
|
||||
Retour à la liste des utilisateurs</a>
|
||||
|
||||
<table id="users" class="table table-hover table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Identifiant</th>
|
||||
<th>Email</th>
|
||||
<th>Civilité</th>
|
||||
<th>Nom</th>
|
||||
<th>Prénom</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div id="user-msg"></div>
|
||||
|
||||
<form name="user" class="form-inline" role="form" action="<?=$this->url(array('module'=>'admin', 'controller'=>'user',
|
||||
'action'=>'form'), 'default', true)?>" method="post">
|
||||
<input type="hidden" name="idClient" value="<?=$this->Service->IdClient?>" />
|
||||
<input type="hidden" name="idService" value="<?=$this->Service->id?>" />
|
||||
<div class="form-group">
|
||||
<input class="form-control" type="text" name="login" value="" placeholder="Login" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input class="form-control" type="text" name="email" value="" placeholder="nom@domain.fr" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<select name="civilite" class="form-control">
|
||||
<option value="M">M</option>
|
||||
<option value="Mme">Mme</option>
|
||||
<option value="Mlle">Mlle</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input class="form-control" type="text" name="nom" value="" placeholder="Nom" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input class="form-control" type="text" name="prenom" value="" placeholder="Prénom" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button id="btnUserSubmit" type="submit" class="btn btn-primary btn-sm" data-submit-text="Création...">Valider</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$('form[name=user]').submit(function(e){
|
||||
e.preventDefault();
|
||||
var btn = $('button#btnUserSubmit');
|
||||
var btnText = btn.html();
|
||||
btn.html(btn.data('submit-text'));
|
||||
$('#user-msg').html('').removeClass('alert alert-info');
|
||||
var obj = $(this);
|
||||
var url = obj.attr('action');
|
||||
$.post(url, obj.serialize(), function(data){
|
||||
if(data.status==0) {
|
||||
$('#user-msg').html(data.msg).addClass('alert alert-info');
|
||||
} else if (data.status==1) {
|
||||
$('table#users tbody').append(
|
||||
'<tr>' +
|
||||
'<td>' + data.login +'</td>' +
|
||||
'<td>' + data.email +'</td>' +
|
||||
'<td>' + data.civilite +'</td>' +
|
||||
'<td>' + data.nom +'</td>' +
|
||||
'<td>' + data.prenom +'</td>' +
|
||||
'<td></td>'+
|
||||
'</tr>'
|
||||
);
|
||||
$('form[name=user]').reset();
|
||||
}
|
||||
}, 'json').fail(function(){
|
||||
$('#user-msg').html("<p>Error</p>").addClass('alert alert-info');
|
||||
}).always(function(){
|
||||
btn.html(btnText);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<?php }?>
|
@ -0,0 +1,95 @@
|
||||
<div id="content">
|
||||
|
||||
<?php if ($this->UserSearch) {?>
|
||||
|
||||
<div class="page-header">
|
||||
<h1>Recherche d'utilisateurs</h1>
|
||||
</div>
|
||||
|
||||
<p class="bg-classes bg-info">Pour consulter la liste des utilisateurs d'un service,
|
||||
veuillez sélectionner un service.</p>
|
||||
|
||||
<pre>Formulaire de recherche des utilisateurs</pre>
|
||||
|
||||
<?php } else {?>
|
||||
|
||||
<div class="page-header">
|
||||
<h1>Utilisateurs - <small><?=$this->Service->Label?></small></h1>
|
||||
</div>
|
||||
|
||||
<?php if ($this->Service->Editable == 1) {?>
|
||||
|
||||
<div class="btn-group">
|
||||
<a href="#" class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown">
|
||||
Filtre <span class="caret"></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="<?=$this->url(array('module'=>'admin', 'controller'=>'user', 'action'=>'index', 'filtre'=>'enable'))?>">Actif</a></li>
|
||||
<li><a href="<?=$this->url(array('module'=>'admin', 'controller'=>'user', 'action'=>'index', 'filtre'=>'disable'))?>">Inactif</a></li>
|
||||
<li><a href="<?=$this->url(array('module'=>'admin', 'controller'=>'user', 'action'=>'index', 'filtre'=>'deleted'))?>">Supprimé</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<a href="<?=$this->url(array('module'=>'admin', 'controller'=>'user', 'action'=>'form',
|
||||
'service'=>$this->Service->Code), 'default', true)?>"
|
||||
class="btn btn-sm btn-default">Création d'utilisateurs</a>
|
||||
|
||||
<?php } else {?>
|
||||
<p class="bg-classes bg-warning">Les utilisateurs de ce service ne sont pas éditable.</p>
|
||||
<?php }?>
|
||||
|
||||
<?php if (count($this->List) > 0) {?>
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Login</th>
|
||||
<th>Identité</th>
|
||||
<th>Courriel</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($this->List as $l) {?>
|
||||
<?php if ($l->Enable == 1) {?>
|
||||
<tr class="active">
|
||||
<?php } else {?>
|
||||
<tr>
|
||||
<?php }?>
|
||||
<td><?=$l->Login?></td>
|
||||
<td><?=$l->Civilite . ". " . $l->Nom . " " . $l->Prenom?></td>
|
||||
<td><?=$l->Email?></td>
|
||||
<td>
|
||||
<?php if ($l->Delete == 0) {?>
|
||||
<?php if ($l->Enable == 1) {?>
|
||||
<span class="label label-success">Actif</span>
|
||||
<?php } else {?>
|
||||
<span class="label label-warning">Inactif</span>
|
||||
<?php }?>
|
||||
<?php } else {?>
|
||||
<span class="label label-danger">Supprimé</span>
|
||||
<?php }?>
|
||||
</td>
|
||||
<td>
|
||||
<?php if ($this->Service->Editable == 1) {?>
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-xs btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true"
|
||||
aria-expanded="false">Action <span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu dropdown-menu-right">
|
||||
<li><a href="<?=$this->url(array('module'=>'admin', 'controller'=>'user', 'action'=>'detail',
|
||||
'id'=>$l->id), 'default', true)?>">Paramètres</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php }?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php } else {?>
|
||||
<p class="bg-classes bg-warning">Aucun utilisateur.</p>
|
||||
<?php }?>
|
||||
|
||||
<?php }?>
|
||||
</div>
|
246
application/modules/auth/controllers/SsoController.php
Normal file
246
application/modules/auth/controllers/SsoController.php
Normal file
@ -0,0 +1,246 @@
|
||||
<?php
|
||||
class Auth_SsoController extends Zend_Controller_Action
|
||||
{
|
||||
protected $theme;
|
||||
|
||||
protected $partnerConfig = array(
|
||||
'inextenso' => array(
|
||||
'logo' => 'logo-in-extenso.gif',
|
||||
'clientId' => 195,
|
||||
'serviceCode' => 'SSO',
|
||||
'authType' => 'userSSO',
|
||||
'login' => 'mail',
|
||||
'token' => 'token',
|
||||
)
|
||||
);
|
||||
|
||||
public function init()
|
||||
{
|
||||
// --- Theme
|
||||
$this->theme = Zend_Registry::get('theme');
|
||||
}
|
||||
|
||||
/**
|
||||
* Point d'entrée pour les connexions partenaires.
|
||||
* L'utilisateur s'identifie sur son portail habituel.
|
||||
*/
|
||||
public function indexAction()
|
||||
{
|
||||
// --- Désactiver le layout
|
||||
$this->_helper->layout()->disableLayout();
|
||||
|
||||
$this->view->headLink()
|
||||
->appendStylesheet($this->theme->pathStyle.'/inexweb.css', 'all')
|
||||
->appendStylesheet($this->theme->pathStyle.'/user.css', 'all');
|
||||
|
||||
$request = $this->getRequest();
|
||||
|
||||
/**
|
||||
* Get partner name - see route in bootstrap
|
||||
*/
|
||||
$partner = $request->getParam('partner');
|
||||
if ( array_key_exists($partner, $this->partnerConfig) ) {
|
||||
$config = $this->partnerConfig[$partner];
|
||||
$this->view->logo = $config['logo'];
|
||||
$params = $request->getParams();
|
||||
$objectParams = array();
|
||||
foreach ($params as $label => $value) {
|
||||
if (in_array($label, array('module', 'controller', 'action'))) continue;
|
||||
$object = new stdClass();
|
||||
$object->label = $label;
|
||||
$object->value = $value;
|
||||
$objectParams[] = $object;
|
||||
}
|
||||
$this->view->Params = $objectParams;
|
||||
|
||||
$login = $params[$config['login']];
|
||||
$part = strstr($login, '@', true);
|
||||
if ($part !== false) {
|
||||
$login = $part;
|
||||
}
|
||||
$token = $params[$config['token']];
|
||||
|
||||
try {
|
||||
$ws = new Scores_Ws_Client('account', '0.1');
|
||||
$parameters = new stdClass();
|
||||
$parameters->client = $config['clientId'];
|
||||
$parameters->login = $login;
|
||||
$parameters->token = $token;
|
||||
$parameters->params = $objectParams;
|
||||
$hash = $ws->ssoAuthenticate($parameters);
|
||||
// --- Utilisateur inexistant
|
||||
if ( $hash === 'false' || $hash === false ) {
|
||||
$this->view->NoUser = true;
|
||||
$urlParams = array('module'=>'auth', 'controller'=>'sso', 'action'=>'userform');
|
||||
$urlParams = array_merge($params, $urlParams);
|
||||
$this->view->FormUrlParams = $urlParams;
|
||||
}
|
||||
// --- Redirection
|
||||
else {
|
||||
|
||||
$auth = Zend_Auth::getInstance();
|
||||
|
||||
// --- Set partial identity
|
||||
$identity = new stdClass();
|
||||
$identity->username = $login;
|
||||
$identity->password = $hash;
|
||||
$auth->getStorage()->write($identity);
|
||||
// --- End Set partial identity
|
||||
|
||||
// --- Get InfosLogin
|
||||
$adressIp = $_SERVER['REMOTE_ADDR'];
|
||||
$parameters = new stdClass();
|
||||
$parameters->login = $login;
|
||||
$parameters->ipUtilisateur = $adressIp;
|
||||
$parameters->from = 'auth';
|
||||
try {
|
||||
$ws = new Scores_Ws_Client('gestion', '0.3');
|
||||
$InfosLogin = $ws->getInfosLogin($parameters);
|
||||
Zend_Registry::get('firebug')->info($InfosLogin);
|
||||
if ( is_string($InfosLogin) || $InfosLogin->error->errnum != 0 ) {
|
||||
$this->view->Error = true;
|
||||
} else {
|
||||
$user = new Scores_Utilisateur();
|
||||
$identity = $user->updateProfil($InfosLogin);
|
||||
$auth->getStorage()->write($identity);
|
||||
// --- Redirect
|
||||
$this->redirect('/');
|
||||
}
|
||||
} catch ( Exception $e ) {
|
||||
switch ( $e->getCode() ) {
|
||||
case 'MSG':
|
||||
$this->view->Message = $e->getMessage();
|
||||
break;
|
||||
default:
|
||||
$this->view->Error = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
// --- End Get InfosLogin
|
||||
}
|
||||
} catch ( Exception $e ) {
|
||||
switch ( $e->getCode() ) {
|
||||
case 'MSG':
|
||||
$this->view->Message = $e->getMessage();
|
||||
break;
|
||||
default:
|
||||
$this->view->Error = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$this->view->Message = "Erreur dans les paramètres.";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Affichage du formulaire pour l'inscription des utilisateurs
|
||||
*/
|
||||
public function userformAction()
|
||||
{
|
||||
// --- Désactiver le layout
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$this->view->headLink()->appendStylesheet($this->theme->pathStyle.'/user.css', 'all');
|
||||
$request = $this->getRequest();
|
||||
|
||||
/**
|
||||
* Get partner name - see route in bootstrap
|
||||
*/
|
||||
$partner = $request->getParam('partner');
|
||||
if ( array_key_exists($partner, $this->partnerConfig) ) {
|
||||
$config = $this->partnerConfig[$partner];
|
||||
$this->view->logo = $config['logo'];
|
||||
$params = $request->getParams();
|
||||
$objectParams = array();
|
||||
foreach ($params as $label => $value) {
|
||||
if (in_array($label, array('module', 'controller', 'action'))) continue;
|
||||
$object = new stdClass();
|
||||
$object->label = $label;
|
||||
$object->value = $value;
|
||||
$objectParams[] = $object;
|
||||
}
|
||||
$this->view->Params = $objectParams;
|
||||
|
||||
$login = $params[$config['login']];
|
||||
$part = strstr($login, '@', true);
|
||||
if ($part !== false) {
|
||||
$login = $part;
|
||||
}
|
||||
$token = $params[$config['token']];
|
||||
|
||||
$this->view->NoUser = true;
|
||||
// --- Set form value
|
||||
$this->view->FormPartner = $partner;
|
||||
$this->view->FormIdentifiant = $login;
|
||||
$this->view->FormCourriel = $request->getParam('mail');
|
||||
$this->view->FormSiret = $request->getParam('siret');
|
||||
$this->view->FormNom = $request->getParam('lastname');
|
||||
$this->view->FormPrenom = $request->getParam('name');
|
||||
}
|
||||
else {
|
||||
$this->view->Message = "Erreur dans les paramètres.";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Creation d'un utilisateur en SSO
|
||||
*/
|
||||
public function usercreateAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
|
||||
$request = $this->getRequest();
|
||||
|
||||
$partner = $request->getParam('partner');
|
||||
if ( array_key_exists($partner, $this->partnerConfig) ) {
|
||||
$config = $this->partnerConfig[$partner];
|
||||
$this->view->logo = $config['logo'];
|
||||
$data = array(
|
||||
'idClient' => $config['clientId'],
|
||||
'login' => $request->getParam('login'),
|
||||
'email' => $request->getParam('email', ''),
|
||||
'actif' => 1,
|
||||
'nom' => $request->getParam('nom', ''),
|
||||
'prenom' => $request->getParam('prenom', ''),
|
||||
'siret' => str_replace(' ', '', $request->getParam('siret', '')),
|
||||
'tel' => str_replace(array(' ','.'), array('',''), $request->getParam('tel', '')),
|
||||
'Service' => $config['serviceCode'],
|
||||
);
|
||||
|
||||
try {
|
||||
$ws = new Scores_Ws_Client('account', '0.1');
|
||||
$parameters = new stdClass();
|
||||
$parameters->data = json_encode($data);
|
||||
$created = $ws->setUserSSO($parameters);
|
||||
if ($created === false ) {
|
||||
$this->view->Message = "Erreur lors de la création de votre compte.";
|
||||
} else {
|
||||
$this->view->UserCreated = true;
|
||||
// --- Data to go back
|
||||
$params = $request->getParams();
|
||||
$urlArgs = array();
|
||||
foreach ($params as $label => $value) {
|
||||
if (in_array($label, array('module', 'controller', 'action'))) continue;
|
||||
if (substr($label, 0, 2) == 'P-') {
|
||||
$urlArgs[substr($label, 2)] = $value;
|
||||
}
|
||||
}
|
||||
$urlArgs['partner'] = 'inextenso';
|
||||
$this->view->UrlArgs = $urlArgs;
|
||||
}
|
||||
} catch ( Exception $e ) {
|
||||
switch ( $e->getCode() ) {
|
||||
case 'MSG':
|
||||
$this->view->Message = $e->getMessage();
|
||||
break;
|
||||
default:
|
||||
$this->view->Error = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
$this->view->Message = "Erreur dans les paramètres.";
|
||||
}
|
||||
}
|
||||
}
|
180
application/modules/auth/controllers/UserController.php
Normal file
180
application/modules/auth/controllers/UserController.php
Normal file
@ -0,0 +1,180 @@
|
||||
<?php
|
||||
class Auth_UserController extends Zend_Controller_Action
|
||||
{
|
||||
public function init()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
}
|
||||
|
||||
/**
|
||||
* Authentication
|
||||
*/
|
||||
public function loginAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$this->view->headTitle()->append('Connexion');
|
||||
$form = new Application_Form_Login();
|
||||
$this->view->form = $form;
|
||||
$request = $this->getRequest();
|
||||
if ( $request->isPost() ) {
|
||||
$formData = $request->getPost();
|
||||
if ($form->isValid($formData)) {
|
||||
$login = $form->getValue('login');
|
||||
$pass = $form->getValue('pass');
|
||||
|
||||
$auth = Zend_Auth::getInstance();
|
||||
$authAdapter = new Scores_Auth_Adapter_Ws($login, $pass);
|
||||
$result = $auth->authenticate($authAdapter);
|
||||
|
||||
// Auth is valid
|
||||
if ( $result->isValid() ) {
|
||||
Zend_Registry::get('firebug')->info('Authentification valid');
|
||||
// Save browser information
|
||||
$screenSize = $request->getParam('screenSize', 'unknow');
|
||||
$user = new Scores_Utilisateur();
|
||||
$info = get_browser();
|
||||
$isMobile = ($info->ismobiledevice==1) ? 1 : 0;
|
||||
$user->setBrowserInfo($info->platform, $info->browser, $info->version, $isMobile, $screenSize);
|
||||
|
||||
// Get previous url if user has been disconnected
|
||||
$url = '';
|
||||
if (Zend_Session::namespaceIsset('login')){
|
||||
$session = new Zend_Session_Namespace('login');
|
||||
if (isset($session->url)) {
|
||||
$url = $session->url;
|
||||
}
|
||||
}
|
||||
if (!empty($url) && $url!='/auth/user/login' && $url!='/auth/user/logout' ) {
|
||||
$this->redirect($url);
|
||||
}
|
||||
$this->redirect('/');
|
||||
}
|
||||
// Auth error
|
||||
else {
|
||||
Zend_Registry::get('firebug')->info('Authentification invalid');
|
||||
$this->view->message = '';
|
||||
Zend_Registry::get('firebug')->info($result);
|
||||
foreach ($result->getMessages() as $message) {
|
||||
$this->view->message.= $message."<br/>";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Déconnexion
|
||||
*/
|
||||
public function logoutAction()
|
||||
{
|
||||
Zend_Auth::getInstance()->clearIdentity();
|
||||
$session = new Zend_Session_Namespace('wcheck');
|
||||
$session->unsetAll();
|
||||
$this->_helper->layout()->disableLayout();
|
||||
|
||||
$request = $this->getRequest();
|
||||
$message = $request->getParam('message');
|
||||
$this->view->assign('message', $message);
|
||||
|
||||
$ajax = $request->getParam('ajax', 0);
|
||||
$this->view->assign('ajax', $ajax);
|
||||
|
||||
$refresh = 5;
|
||||
|
||||
$url = 'http://'.$_SERVER['SERVER_NAME'].$this->view->url(array('module'=>'auth', 'controller' => 'user',
|
||||
'action' => 'login',), 'default', true);
|
||||
|
||||
$this->view->assign('url', $url);
|
||||
|
||||
if ( $ajax == 0 ) {
|
||||
$this->view->assign('refresh', $refresh);
|
||||
$this->view->headMeta()->appendHttpEquiv('refresh', $refresh.'; url='.$url);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Oubli du mot de passe
|
||||
*/
|
||||
public function forgetAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$name = 'Identifiants oubliés ?';
|
||||
$params = array(
|
||||
'identifiant' => '',
|
||||
'telephone' => '',
|
||||
'email' => '',
|
||||
'nom' => '',
|
||||
'prenom' => '',
|
||||
'fonction' => '',
|
||||
'service' => '',
|
||||
'rsociale' => '',
|
||||
);
|
||||
|
||||
$this->_helper->layout()->disableLayout();
|
||||
if ( $request->isPost() ) {
|
||||
$params = $request->getParams();
|
||||
$message = '';
|
||||
|
||||
$paramlist = array(
|
||||
'telephone' => 'Numéro de téléphone direct',
|
||||
'email' => 'Adresse email',
|
||||
'nom' => 'Nom',
|
||||
'prenom' => 'Prénom',
|
||||
'fonction' => 'Fonction',
|
||||
'service' => 'Service',
|
||||
'rsociale' => 'Sociale',
|
||||
);
|
||||
|
||||
foreach ($paramlist as $item => $val) {
|
||||
if (!isset($params[$item])) {
|
||||
$message .= "Champs $val vide !<br/>";
|
||||
}
|
||||
}
|
||||
|
||||
$validator = new Zend_Validate_EmailAddress();
|
||||
if (isset($params['email'])){
|
||||
if (!$validator->isValid($params['email'])) {
|
||||
$message .="Adresse email invalide ! <br/>";
|
||||
}
|
||||
}
|
||||
|
||||
if ($message == '') {
|
||||
|
||||
$mailbody = '<style type="text/css">table {font-family:Arial, Helvetica, sans-serif; font-size: 12px; width: 550px; border: none;}table td{padding: 4px 8px;}</style>';
|
||||
$mailbody .= "Demande d'envoi des identifiants.<br /><br />";
|
||||
$mailbody .= "L'un de nos clients a égaré son(ses) identifiant(s).<br />";
|
||||
$mailbody .= "Via notre lien -identifiants oubliés- il a effectué une demande de transmission de ces codes.<br />";
|
||||
$mailbody .= "<p>A l'aide des informations ci-dessous, merci de retrouver ces codes et les lui envoyer par email.</p>";
|
||||
$mailbody .= "<table><tr bgcolor='#eeeeee'><td width='200px'><strong>Identifiant :</strong></td><td>".$params['identifiant']."</td></tr>";
|
||||
$mailbody .= "<tr><td><strong>Adresse email:</strong></td><td>".$params['email']."</td></tr>";
|
||||
$mailbody .= "<tr bgcolor='#eeeeee'><td><strong>Numéro de téléphone direct:</strong></td><td>".$params['telephone']."</td></tr>";
|
||||
$mailbody .= "<tr><td><strong>Nom:</strong></td><td>".$params['nom']."</td></tr>";
|
||||
$mailbody .= "<tr bgcolor='#eeeeee'><td><strong>Prénom:</strong></td><td>".$params['prenom']."</td></tr>";
|
||||
$mailbody .= "<tr><td><strong>Fonction:</strong></td><td>".$params['fonction']."</td></tr>";
|
||||
$mailbody .= "<tr bgcolor='#eeeeee'><td><strong>Service:</strong></td><td>".$params['service']."</td></tr>";
|
||||
$mailbody .= "<tr><td><strong>Dénomination Sociale:</strong></td><td>".$params['rsociale']."</td></tr></table>";
|
||||
$mailbody .= "<p>Si les informations fournies ne permettent pas d'identifier correctement l'utilisateur, ";
|
||||
$mailbody .= "merci d'émettre un message sur le mail communiquer en précisant que \"Les éléments confiés ne permettent pas d'identifier l'utilisateur ";
|
||||
$mailbody .= "et par conséquence de vous délivrer les codes d'accès demandés\".<br />";
|
||||
$mailbody .= "Aussi nous vous invitons à vous rapprocher de votre interlocuteur commercial habituel ";
|
||||
$mailbody .= "ou de votre responsable suivi relations Scores & Décisions au sein de votre société.</p>";
|
||||
|
||||
$mail = new Scores_Mail_Method();
|
||||
$mail->setSubject("Demande d'envoi des identifiants");
|
||||
$mail->setBodyHtmlC($mailbody);
|
||||
$mail->setFromKey('support');
|
||||
$mail->addToKey('support');
|
||||
$mail->setReplyTo($params['email']);
|
||||
try {
|
||||
$mail->execute();
|
||||
$this->view->assign('sendEmail' , true);
|
||||
}
|
||||
catch ( Zend_Mail_Transport_Exception $e ){
|
||||
$message = $e->getMessage();
|
||||
}
|
||||
|
||||
}
|
||||
$this->view->assign('message', $message);
|
||||
}
|
||||
}
|
||||
}
|
101
application/modules/auth/views/default/scripts/sso/index.phtml
Normal file
101
application/modules/auth/views/default/scripts/sso/index.phtml
Normal file
@ -0,0 +1,101 @@
|
||||
<?php echo $this->doctype(); ?>
|
||||
<html>
|
||||
<head>
|
||||
<?php echo $this->headMeta(); ?>
|
||||
<?php echo $this->headTitle(); ?>
|
||||
<?php echo $this->headStyle(); ?>
|
||||
<?php echo $this->headLink(); ?>
|
||||
<?php echo $this->headScript(); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="wrap">
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
|
||||
<h1 class="text-center">Scores & Decisions</h1>
|
||||
<br/>
|
||||
|
||||
<p>
|
||||
Scores & Decisions est l'éditeur d'une base de données de référence sur toutes les entreprises de France.
|
||||
Scores & Decisions est licencié officiel depuis 2008 pour la rediffusion du répertoire Sirène (INSEE), du RNCS
|
||||
Registre National du Commerce et des Sociétés (INPI) et des Journaux Officiels (DILA). Scores & Decisions est
|
||||
un service privé distinct des services publics cités.
|
||||
</p>
|
||||
<br/>
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<p class="text-primary">Spécialiste de l'information légales et financières sur les entreprises, Scores & Décisions vous permet par
|
||||
confirmation des éléments ci-contre d'accéder à toute sa base de données.</p>
|
||||
|
||||
<ul class="list-group">
|
||||
<li class="list-group-item">
|
||||
Télécharger nos Conditions Générales de Services
|
||||
<a href="<?=$this->baseUrl()?>/documents/inextenso_cgs.pdf" target="_blank">
|
||||
<span class="glyphicon glyphicon-file pull-right" aria-hidden="true"></span></a>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
Télécharger nos Conditions Tarifaires
|
||||
<a href="#" target="_blank">
|
||||
<span class="glyphicon glyphicon-file pull-right" aria-hidden="true"></span></a>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
Télécharger les coordonnées de vos contacts
|
||||
<a href="<?=$this->baseUrl()?>/documents/inextenso_contacts.pdf" target="_blank">
|
||||
<span class="glyphicon glyphicon-file pull-right" aria-hidden="true"></span></a>
|
||||
</li>
|
||||
</ul>
|
||||
<p class="text-danger">Ce service est actuellement en beta. La consultation vous est offerte durant cette période.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
|
||||
<h2>Trouvez les réponses à vos questions !</h2>
|
||||
|
||||
<ul class="arguments">
|
||||
|
||||
<li><strong>Disposez de certitudes sur l'identité de vos interlocuteurs, les liens financiers et les liens
|
||||
dirigeants... ></strong> Mon client a t il une existence légale ? Quels sont les derniers événements qui ont touché l'entreprise ?</li>
|
||||
|
||||
<li><strong>Évitez les mauvais payeurs ></strong>
|
||||
Ce prospect paye t'il rapidement, est-il en procédure collective ? Quel est sa rentabilité, son niveau de
|
||||
trésorerie ?</li>
|
||||
|
||||
<li><strong>Surveillez la solvabilité de vos partenaires, clients et fournisseurs ou concurrents ></strong>
|
||||
Mes clients sont ils viables dans la durée, puis je continuer et développer les ventes ?</li>
|
||||
|
||||
<li><strong>Découvrez la valeur de votre entreprises ou celles de vos concurrents ></strong> Mon entreprise a t elle de la
|
||||
valeur ? combien me coûterait le rachat d'un concurrent ?</li>
|
||||
|
||||
<li><strong>Trouvez vos futurs clients ></strong> Où sont et qui sont mes prospects ?</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<p>Les données agrégées sont officielles, exhaustives, fraîches et opposables aux tiers. Elles sont utilisées
|
||||
par des grands groupes et institutionnels dans des cadres contentieux, de conformité, de fraude...</p>
|
||||
|
||||
<a type="button" class="btn btn-success btn-lg" href="<?=$this->url($this->FormUrlParams, 'default', true)?>">Accédez au site</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<p class="inexweb text-center"><img src="/themes/default/images/partner/logo-inexweb.png"/> <strong>vous offre 60 jours de gratuité, et la surveillance de votre portefeuille clients !</strong></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php echo $this->inlineScript(); ?>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -34,7 +34,7 @@
|
||||
<div>
|
||||
<p class="text-success">
|
||||
<span>Votre compte a été crée avec succès.</span>
|
||||
<a href="<?=$this->url(array_merge(array('controller'=> 'auth', 'action' => 'index'), $this->UrlArgs))?>">
|
||||
<a href="<?=$this->url(array_merge(array('module'=>'auth', 'controller'=> 'sso', 'action' => 'index'), $this->UrlArgs))?>">
|
||||
Cliquez ici pour être redirigé vers la page d'accueil.</a>
|
||||
</p>
|
||||
</div>
|
@ -0,0 +1,127 @@
|
||||
<?php echo $this->doctype(); ?>
|
||||
<html>
|
||||
<head>
|
||||
<?php echo $this->headMeta(); ?>
|
||||
<?php echo $this->headTitle(); ?>
|
||||
<?php echo $this->headStyle(); ?>
|
||||
<?php echo $this->headLink(); ?>
|
||||
<?php echo $this->headScript(); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="wrap">
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<p><img src="/themes/default/images/partner/<?=$this->logo?>"/></p>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<p class="text-primary">Spécialiste de l'information légales et financières sur les entreprises, Scores & Décisions vous permet par
|
||||
confirmation des éléments ci-contre d'accéder à toute sa base de données.</p>
|
||||
|
||||
<ul class="list-group">
|
||||
<li class="list-group-item">
|
||||
Télécharger nos Conditions Générales de Services
|
||||
<a href="<?=$this->baseUrl()?>/documents/inextenso_cgs.pdf" target="_blank">
|
||||
<span class="glyphicon glyphicon-file pull-right" aria-hidden="true"></span></a>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
Télécharger nos Conditions Tarifaires
|
||||
<a href="#" target="_blank">
|
||||
<span class="glyphicon glyphicon-file pull-right" aria-hidden="true"></span></a>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
Télécharger les coordonnées de vos contacts
|
||||
<a href="<?=$this->baseUrl()?>/documents/inextenso_contacts.pdf" target="_blank">
|
||||
<span class="glyphicon glyphicon-file pull-right" aria-hidden="true"></span></a>
|
||||
</li>
|
||||
</ul>
|
||||
<p class="text-danger">Ce service est actuellement en beta. La consultation vous est offerte durant cette période.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
|
||||
<form method="post" action="<?=$this->url(array('module'=>'auth', 'controller'=>'sso', 'action'=>'usercreate'), 'default', true)?>">
|
||||
<h2 class="form-signin-heading">Extranet <small>Scores & Décisions</small></h2>
|
||||
<?php
|
||||
//Error
|
||||
if ($this->Error) {?>
|
||||
<div style="text-align:center;"><p class="text-danger"><span>Une erreur est survenue</span></p></div>
|
||||
<?php
|
||||
}
|
||||
//Message
|
||||
else if ($this->Message) {?>
|
||||
<div style="text-align:center;"><p class="text-danger"><span><?=$this->Message?></span></p></div>
|
||||
<?php
|
||||
}
|
||||
//NoUser
|
||||
else if ($this->NoUser) {?>
|
||||
<div><p class="text-warning"><span>
|
||||
Votre compte n'existe pas encore. Compléter le formulaire puis valider pour créer votre compte.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
<?php foreach ($this->Params as $item) {?>
|
||||
<input type="hidden" name="P-<?=$item->label?>" value="<?=$item->value?>"/>
|
||||
<?php }?>
|
||||
|
||||
<input type="hidden" name="partner" value="<?=$this->FormPartner?>"/>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="identifiant">Identifiant</label>
|
||||
<input type="text" id="identifiant" value="<?=$this->FormIdentifiant?>" class="form-control" disabled>
|
||||
<input type="hidden" name="login" value="<?=$this->FormIdentifiant?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="email">Email</label>
|
||||
<input type="text" class="form-control" value="<?=$this->FormCourriel?>" disabled>
|
||||
<input type="hidden" name="email" value="<?=$this->FormCourriel?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="siret">SIRET</label>
|
||||
<input type="text" class="form-control" name="siret" value="<?=$this->FormSiret?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="nom">Nom</label>
|
||||
<input type="text" class="form-control" name="nom" value="<?=$this->FormNom?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="prenom">Prénom</label>
|
||||
<input type="text" class="form-control" name="prenom" value="<?=$this->FormPrenom?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="tel">Téléphone</label>
|
||||
<input type="text" class="form-control" name="tel" value="<?=$this->FormTel?>">
|
||||
</div>
|
||||
|
||||
<button class="btn btn-lg btn-primary btn-block clearfix" type="submit">Valider</button>
|
||||
|
||||
<?php }?>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
<div class="container">
|
||||
<p class="text-muted credit"> © <?=date('Y')?> <a href="http://www.scores-decisions.com">Scores & Décisions SAS</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php echo $this->inlineScript(); ?>
|
||||
</body>
|
||||
</html>
|
||||
|
184
application/modules/auth/views/default/scripts/user/forget.phtml
Normal file
184
application/modules/auth/views/default/scripts/user/forget.phtml
Normal file
@ -0,0 +1,184 @@
|
||||
<style>
|
||||
div#dlg input#frm {
|
||||
border-radius:0;
|
||||
font-size:95%;
|
||||
margin:0;
|
||||
padding:0em 0em 0em 0.2em;
|
||||
background: none;
|
||||
box-shadow: none;
|
||||
width: 20em;
|
||||
height:1.5em;
|
||||
}
|
||||
label#frm {
|
||||
font-family: arial;
|
||||
font-size:0.9em;
|
||||
cursor: default;
|
||||
clear: both;
|
||||
float: left;
|
||||
width: 20em;
|
||||
margin-right: 1em;
|
||||
text-align: right;
|
||||
}
|
||||
.brsr {
|
||||
border-style:solid;
|
||||
border-width:1px;
|
||||
border-color:red;
|
||||
}
|
||||
.loading
|
||||
{
|
||||
background-color: silver;
|
||||
height: 450px;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
position: absolute;
|
||||
width: 720px;
|
||||
opacity: 0.3;
|
||||
display:none;
|
||||
z-index: 1;
|
||||
}
|
||||
.message {
|
||||
font-size: 0.8em;
|
||||
width: 96%;
|
||||
background-color: #FFFFDD;
|
||||
border: 1px solid #FCEFA1;
|
||||
border-radius: 4px;
|
||||
padding: 10px 15px 10px 15px;
|
||||
}
|
||||
.stl {
|
||||
height:25px;
|
||||
}
|
||||
|
||||
#htxt, #ftxt {
|
||||
margin-top: 10px;
|
||||
margin-bottom:20px;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<?php if ($this->sendEmail) {?>
|
||||
<div class='message'><p id='<?=$this->bt_fermer;?>'>
|
||||
Votre demande a été envoyée. Nous vous contacterons prochainement.
|
||||
</p></div>
|
||||
|
||||
<script>
|
||||
$('#dlg').dialog({ buttons: [
|
||||
{ text: "Fermer", click: function() { $(this).dialog('close'); }}
|
||||
] });
|
||||
</script>
|
||||
|
||||
<?php } else {?>
|
||||
|
||||
<?php if ($this->message!='') {?>
|
||||
<div class='message'><p id='<?=$this->bt_fermer;?>'><?=$this->message; ?></p></div>
|
||||
<?php }?>
|
||||
|
||||
<div id='htxt'>
|
||||
Pour recevoir votre mot de passe et/ou votre identifiant oubliés, nous vous invitons à saisir les informations ci-dessous et cliquer sur valider.
|
||||
A réception de ces données, nous vous informerons par e-mail.
|
||||
<p>Tous les champs (*) sont obligatoires : en cas de données manquantes ou erronées, votre demande ne pourra pas être prise en compte par nos services. * = champ obligatoire.</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<form>
|
||||
<div class="stl">
|
||||
<label id="frm">Votre Identifiant :</label>
|
||||
<input id="frm" type="text" name="identifiant"/>
|
||||
</div>
|
||||
<div class="stl">
|
||||
<label id="frm">Votre Adresse email* :</label>
|
||||
<input id="frm" type="text" name="email" required/>
|
||||
</div>
|
||||
<div class="stl">
|
||||
<label id="frm">Votre Numéro de téléphone* :</label>
|
||||
<input id="frm" type="text" name="telephone" required/>
|
||||
</div>
|
||||
<div class="stl">
|
||||
<label id="frm">Votre Nom* :</label>
|
||||
<input id="frm" type="text" name="nom" required/>
|
||||
</div>
|
||||
<div class="stl">
|
||||
<label id="frm">Votre Prénom* :</label>
|
||||
<input id="frm" type="text" name="prenom" required/>
|
||||
</div>
|
||||
<div class="stl">
|
||||
<label id="frm">Votre Fonction* :</label>
|
||||
<input id="frm" type="text" name="fonction" required/>
|
||||
</div>
|
||||
<div class="stl">
|
||||
<label id="frm">Votre Service* :</label>
|
||||
<input id="frm" type="text" name="service" required/>
|
||||
</div>
|
||||
<div class="stl">
|
||||
<label id="frm">Dénomination Sociale* :</label>
|
||||
<input id="frm" type="text" name="rsociale" required/>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div id="ftxt">
|
||||
<p>Ces informations sont destinées exclusivement au traitement de votre demande et à l'émission d'une réponse personnalisée.</p>
|
||||
</div>
|
||||
|
||||
<div class="loading"><center><img style="padding-top:25%" src="/themes/default/images/giant/19-1.gif" /></center></div>
|
||||
|
||||
<script>
|
||||
function validate() {
|
||||
var allvals = true;
|
||||
$('div#dlg input[required]').each(function() {
|
||||
if(!$(this).val()) {
|
||||
allvals = false;
|
||||
$(this).addClass('brsr');
|
||||
}
|
||||
else { $(this).removeClass('brsr'); }
|
||||
});
|
||||
return allvals;
|
||||
}
|
||||
|
||||
function isEmail(email) {
|
||||
var emailval = true;
|
||||
var regex = /^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
|
||||
if (!regex.test(email.val())) {
|
||||
emailval = false;
|
||||
$(email).addClass('brsr');
|
||||
}
|
||||
else {
|
||||
$(email).removeClass('brsr');
|
||||
}
|
||||
return emailval;
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
validate();
|
||||
});
|
||||
|
||||
$('div#dlg input[required]').blur(function(){
|
||||
if(!$(this).val()) { $(this).addClass('brsr'); }
|
||||
else { $(this).removeClass('brsr'); }
|
||||
});
|
||||
|
||||
$('#dlg').dialog({ buttons: [
|
||||
{ text: "Valider", click: function() {
|
||||
var values = $(this).find('form').serialize();
|
||||
if (validate() && isEmail($('div#dlg input[name=email]'))) {
|
||||
if ($('.loading').css('display')=='none') {
|
||||
$('.loading').css('display', 'block');
|
||||
$('.ui-dialog-content').css('overflow','hidden');
|
||||
$(".ui-dialog-buttonpane button:contains('Valider')").button("disable");
|
||||
} else {
|
||||
$('.loading').css('display', 'none');
|
||||
}
|
||||
$.post('/auth/user/forget', values, function(data) {
|
||||
$('#dlg').html(data);
|
||||
$('#htxt').height(50);
|
||||
$('input#frm').attr("disabled", "disabled");
|
||||
$(".ui-dialog-buttonpane button:contains('Valider')").hide();
|
||||
});
|
||||
}
|
||||
}},
|
||||
{ text: "Annuler", click: function() { $(this).dialog('close'); }}
|
||||
] });
|
||||
</script>
|
||||
|
||||
<?php }?>
|
@ -0,0 +1,72 @@
|
||||
<?php echo $this->doctype(); ?>
|
||||
<html>
|
||||
<head>
|
||||
<?php echo $this->headMeta(); ?>
|
||||
<?php echo $this->headTitle(); ?>
|
||||
<?php echo $this->headStyle(); ?>
|
||||
<?php echo $this->headLink(); ?>
|
||||
<?php echo $this->headScript(); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="wrap">
|
||||
|
||||
<div class="container">
|
||||
|
||||
<form class="form-signin" method="post" action="<?=$this->url(array('module'=>'auth', 'controller'=>'user',
|
||||
'action'=>'login'), 'default', true)?>">
|
||||
|
||||
<h2 class="form-signin-heading">Extranet <small>Scores & Décisions</small></h2>
|
||||
<div style="text-align:center;"><p class="text-danger"><span><?=$this->message?></span></p></div>
|
||||
<input name="login" value="" type="text" class="form-control" placeholder="Identifiant" autofocus autocomplete="off" required />
|
||||
<input name="pass" value="" type="password" class="form-control" placeholder="Mot de passe" required/>
|
||||
<script>document.write('<input name="screenSize" type="hidden" value="'+ screen.width +'x'+screen.height + '">');</script>
|
||||
|
||||
<button class="btn btn-lg btn-primary btn-block clearfix" type="submit">Connexion</button>
|
||||
|
||||
</form>
|
||||
|
||||
<div class="form-signin">
|
||||
<a class="dlg pull-right" title="<?=$this->translate("Identifiants oubliés ?")?>" href="<?=$this->url(array(
|
||||
'module'=>'auth', 'controller'=>'user', 'action'=>'forget'))?>">
|
||||
<?=$this->translate("Identifiants oubliés ?")?></a>
|
||||
<script>
|
||||
$('a.dlg').on('click', function(e){
|
||||
e.preventDefault();
|
||||
var title = $(this).attr('title');
|
||||
var href = $(this).attr('href');
|
||||
var dlgOpts = {
|
||||
bgiframe: true,
|
||||
title: title,
|
||||
width: 710,
|
||||
height: 530,
|
||||
modal: true,
|
||||
resizable: false,
|
||||
open: function(event, ui) {
|
||||
$(this).html('Chargement...');
|
||||
$(this).load(href);
|
||||
},
|
||||
buttons: {'Fermer': function() { $(this).dialog('close'); }},
|
||||
close: function() { $('#dlg').remove(); }};
|
||||
$('<div id="dlg"></div>').dialog(dlgOpts);
|
||||
return false;
|
||||
});
|
||||
var bootstrapButton = $.fn.button.noConflict();
|
||||
$.fn.bootstrapBtn = bootstrapButton;
|
||||
</script>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
<div class="container">
|
||||
<p class="text-muted credit"> © <?=date('Y')?> <a href="http://www.scores-decisions.com">Scores & Décisions SAS</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php echo $this->inlineScript(); ?>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,40 @@
|
||||
<?php if ($this->ajax) {?>
|
||||
|
||||
<h4 class="logout"><?=$this->translate("Vous avez été déconnecté.")?></h4>
|
||||
<h5 class="logout"><?=$this->translate("Veuillez cliquer")?> <a href="<?=$this->url?>"><?=$this->translate("ici")?></a>
|
||||
</h5>
|
||||
|
||||
<?php } else {?>
|
||||
|
||||
<?php echo $this->doctype(); ?>
|
||||
<html>
|
||||
<head>
|
||||
<?php echo $this->headMeta(); ?>
|
||||
<?php echo $this->headTitle(); ?>
|
||||
<?php echo $this->headStyle(); ?>
|
||||
<?php echo $this->headLink(); ?>
|
||||
</head>
|
||||
<body>
|
||||
<div id="wrap">
|
||||
|
||||
<div class="container">
|
||||
<h4><?=$this->translate("Vous avez été déconnecté.")?></h4>
|
||||
<p><?=$this->message?></p>
|
||||
<h5 class="logout">
|
||||
<?=$this->translate("Si cette page ne disparait pas au bout de %1\$s seconde(s)", $this->refresh)?>,
|
||||
<?=$this->translate("veuillez cliquer ")?><a href="<?=$this->url?>"><?=$this->translate("ici")?></a>
|
||||
</h5>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
<div class="container">
|
||||
<p class="text-muted credit"> © <?=date('Y')?> <a href="http://www.scores-decisions.com">Scores & Décisions SAS</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<?php }?>
|
@ -1,108 +0,0 @@
|
||||
<?php
|
||||
class AideController extends Zend_Controller_Action
|
||||
{
|
||||
protected $theme;
|
||||
|
||||
public function init()
|
||||
{
|
||||
// --- Theme
|
||||
$this->theme = Zend_Registry::get('theme');
|
||||
}
|
||||
|
||||
/**
|
||||
* Afficher bulle pour les nouveautés
|
||||
*/
|
||||
public function newAction()
|
||||
{
|
||||
$nbNewsMax = 5;
|
||||
$nbJourGlisssant = 5;
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
$date = $user->getDateDerniereConnexion();
|
||||
$nouveautes = array();
|
||||
if ( $date!=null || $date!='0000-00-00 00:00:00' )
|
||||
{
|
||||
$time = mktime(0, 0, 0, date('m'), date('d')-$nbJourGlisssant, date('Y'));
|
||||
$dateglissant = date('Y-m-d', $time);
|
||||
$now = date('Y-m-d');
|
||||
|
||||
$nouveautesM = new Application_Model_Nouveautes();
|
||||
$sql = $nouveautesM->select()
|
||||
->where("date>='".$dateglissant."' AND date<='".$now."'")
|
||||
->order('date DESC')
|
||||
->limit($nbNewsMax);
|
||||
$nouveautes = $nouveautesM->fetchAll($sql);
|
||||
}
|
||||
$this->view->assign('nouveautes', $nouveautes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Afficher la liste des nouveautés
|
||||
*/
|
||||
public function newlisteAction()
|
||||
{
|
||||
$this->view->headTitle()->prepend('Nouveautés');
|
||||
|
||||
$request = $this->getRequest();
|
||||
|
||||
//Selection
|
||||
$nouveautesM = new Application_Model_Nouveautes();
|
||||
$sql = $nouveautesM->select()
|
||||
->from('nouveautes', array('categorie', 'intitule', "date", 'fichier'))
|
||||
->order('date DESC');
|
||||
$nouveautes = $nouveautesM->fetchAll($sql);
|
||||
$this->view->assign('nouveautes', $nouveautes);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Affichage et validation de "cgu"
|
||||
* Conditions d’accès à l'extranet
|
||||
*/
|
||||
public function cguAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$request = $this->getRequest();
|
||||
|
||||
$accept = $request->getParam('accept', 0);
|
||||
|
||||
if ( $accept == 1 ) {
|
||||
require_once 'Scores/WsScores.php';
|
||||
$ws = new WsScores();
|
||||
$accept = $ws->setCGU();
|
||||
Zend_Registry::get('firebug')->info($accept);
|
||||
if ($accept) {
|
||||
//Put in session
|
||||
$auth = Zend_Auth::getInstance();
|
||||
$identity = $auth->getIdentity();
|
||||
$identity->acceptationCGU = date('Y-m-d H:i:s');
|
||||
$auth->getStorage()->write($identity);
|
||||
//Redirect
|
||||
$this->redirect('/');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Afficher des propriétés du navigateur
|
||||
* Compatibilités et version
|
||||
*/
|
||||
public function navinfoAction()
|
||||
{
|
||||
$bootstrap = $this->getInvokeArg('bootstrap');
|
||||
$userAgent = $bootstrap->getResource('useragent');
|
||||
|
||||
$device = $userAgent->getDevice();
|
||||
|
||||
echo $device->getFeature('browser_compatibility').'<br/>';
|
||||
echo $device->getFeature('browser_version').'<br/>';
|
||||
|
||||
echo "<pre>";
|
||||
print_r($device);
|
||||
echo "</pre>";
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,188 +0,0 @@
|
||||
<?php
|
||||
class BdfController extends Zend_Controller_Action
|
||||
{
|
||||
protected $theme;
|
||||
|
||||
public function init()
|
||||
{
|
||||
// --- Theme
|
||||
$this->theme = Zend_Registry::get('theme');
|
||||
}
|
||||
|
||||
public function indexAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
|
||||
//Type de module
|
||||
$module = $request->getParam('module', '');
|
||||
$siret = $request->getParam('siret', '');
|
||||
$req = $request->getParam('req', '');
|
||||
$denom = $request->getParam('denom', '');
|
||||
$type = $request->getParam('type', '');
|
||||
$code = $request->getParam('code', '');
|
||||
$rechet = $request->getParam('rechet', '');
|
||||
$ape = $request->getParam('ape', '');
|
||||
$service = $request->getParam('service', '');
|
||||
|
||||
if ($siret != '' && $req != '' && substr($siret, 0, 9) != $req) {
|
||||
$siret = '';
|
||||
} else if (substr($siret, 0, 9) == $req || empty($req)) {
|
||||
$req = substr($siret, 0, 9);
|
||||
}
|
||||
|
||||
if (is_array($module)){
|
||||
$session = new Zend_Session_Namespace('BDF');
|
||||
$session->module = $module;
|
||||
}
|
||||
|
||||
//Titre
|
||||
$title = 'Banque De France - '.strtoupper($service);
|
||||
if ($siret == '') {
|
||||
$title .= ' - '.$req;
|
||||
} else {
|
||||
$title .= substr($siren,0,9);
|
||||
}
|
||||
$this->view->headTitle()->prepend('Banque de France - '.$titre);
|
||||
|
||||
|
||||
require_once 'Scores/Bdf.php';
|
||||
$bdf = new BDF();
|
||||
|
||||
$this->view->assign('siret', $siret);
|
||||
$this->view->assign('req', $req);
|
||||
$this->view->assign('module', $session->module);
|
||||
|
||||
//Liste module FIBEN
|
||||
$listModulesFiben = $bdf->bdf_modules_fiben();
|
||||
$this->view->assign('listModulesFiben', $listModulesFiben);
|
||||
|
||||
//Liste module FCC
|
||||
$listModulesFcc = $bdf->bdf_modules_fcc();
|
||||
$this->view->assign('listModulesFcc', $listModulesFcc);
|
||||
|
||||
}
|
||||
|
||||
public function moduleAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
|
||||
//Type de module
|
||||
$module = $request->getParam('bdfmodule', '');
|
||||
$siret = $request->getParam('siret', '');
|
||||
$req = $request->getParam('req', '');
|
||||
$denom = $request->getParam('denom', '');
|
||||
$type = $request->getParam('type', 'u');
|
||||
$code = $request->getParam('code', '');
|
||||
$rechet = $request->getParam('rechet', '');
|
||||
$ape = $request->getParam('ape', '');
|
||||
$service = $request->getParam('service', '');
|
||||
|
||||
if ($siret != '' && $req != '' && substr($siret, 0, 9) != $req) {
|
||||
$siret = '';
|
||||
} else if (substr($siret, 0, 9) == $req || empty($req)) {
|
||||
$req = substr($siret, 0, 9);
|
||||
}
|
||||
|
||||
Zend_Registry::get('firebug')->info($module);
|
||||
|
||||
$content = array();
|
||||
|
||||
require_once 'Scores/Bdf.php';
|
||||
$bdf = new BDF();
|
||||
|
||||
//Mode multi module
|
||||
if ($type=='u') {
|
||||
if (is_array($module)) {
|
||||
foreach($module as $m) {
|
||||
if (array_key_exists($m, $bdf->bdf_modules_fiben())){
|
||||
$service = 'fiben';
|
||||
} elseif ($service=='ficp' && array_key_exists($m, $bdf->bdf_modules_ficp())){
|
||||
$service = 'ficp';
|
||||
} elseif (array_key_exists($m, $bdf->bdf_modules_fcc())){
|
||||
$service = 'fcc';
|
||||
}
|
||||
$func_module = 'bdf_modules_'.$service;
|
||||
$listModules = $bdf->{$func_module}();
|
||||
$retour['html'] = $bdf->displayModule($req, $m, $service, $listModules);
|
||||
$retour['titre'] = $req.' - Module '.$listModules[$m]['titre'];
|
||||
$content[] = $retour;
|
||||
}
|
||||
} else {
|
||||
if (array_key_exists($module, $bdf->bdf_modules_fiben())){
|
||||
$service = 'fiben';
|
||||
} elseif ($service=='ficp' && array_key_exists($module, $bdf->bdf_modules_ficp())){
|
||||
$service = 'ficp';
|
||||
} elseif (array_key_exists($module, $bdf->bdf_modules_fcc())){
|
||||
$service = 'fcc';
|
||||
}
|
||||
$func_module = 'bdf_modules_'.$service;
|
||||
$listModules = $bdf->{$func_module}();
|
||||
$content[]['html'] = $bdf->displayModule($req, $module, $service, $listModules);
|
||||
$content[]['titre'] = $req.' - Module '.$listModules[$module]['titre'];
|
||||
}
|
||||
}
|
||||
//Mode multi-identifiant
|
||||
elseif ($type=='m') {
|
||||
if (is_array($module))
|
||||
{
|
||||
foreach($module as $m)
|
||||
{
|
||||
if (array_key_exists($module, $bdf->bdf_modules_fiben())){
|
||||
$service = 'fiben';
|
||||
} elseif ($service=='ficp' && array_key_exists($module, $bdf->bdf_modules_ficp())){
|
||||
$service = 'ficp';
|
||||
} elseif (array_key_exists($module, $bdf->bdf_modules_fcc())){
|
||||
$service = 'fcc';
|
||||
}
|
||||
$func_module = 'bdf_modules_'.$service;
|
||||
$listModules = $bdf->{$func_module}();
|
||||
$content[]['html'] = $bdf->displayModule($req, $module, $service, $listModules);
|
||||
$content[]['titre'] = 'Module '.$listModules[$module]['titre'];
|
||||
}
|
||||
}
|
||||
}
|
||||
$this->view->assign('content', $content);
|
||||
}
|
||||
|
||||
public function module27Action()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$params['siret'] = $request->getParam('siret');
|
||||
$params['bdfmodule'] = array(27);
|
||||
$this->_forward('module', null, null, $params);
|
||||
}
|
||||
|
||||
public function module28Action()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$params['siret'] = $request->getParam('siret');
|
||||
$params['bdfmodule'] = array(28);
|
||||
$this->_forward('module', null, null, $params);
|
||||
}
|
||||
|
||||
public function module29Action()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$params['siret'] = $request->getParam('siret');
|
||||
$params['bdfmodule'] = array(29);
|
||||
$this->_forward('module', null, null, $params);
|
||||
}
|
||||
|
||||
public function module40Action()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$params['siret'] = $request->getParam('siret');
|
||||
$params['bdfmodule'] = array(40);
|
||||
$this->_forward('module', null, null, $params);
|
||||
}
|
||||
|
||||
public function module51Action()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$params['siret'] = $request->getParam('siret');
|
||||
$params['bdfmodule'] = array(51);
|
||||
$this->_forward('module', null, null, $params);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -49,15 +49,15 @@ class FinanceController extends Zend_Controller_Action
|
||||
}
|
||||
|
||||
$tabRatio = array(
|
||||
'r5' => array('evol'=>'r6', 'op' => 1000, 'titre'=>'CHIFFRE D\'AFFAIRES'),
|
||||
'r7' => array('evol'=>'r8', 'op' => 1000, 'titre'=>'RESULTAT COURANT AVANT IMPOTS'),
|
||||
'r10' => array('evol'=>'r11', 'op' => 1000, 'titre'=>'RESULTAT NET'),
|
||||
'r18' => array('evol'=>'r19', 'op' => 1000, 'titre'=>'FONDS PROPRES'),
|
||||
'r22' => array('evol'=>'r23', 'op' => 1000, 'titre'=>'TOTAL BILAN'),
|
||||
'r231' => array('evol'=>'r235', 'op' => 1000, 'titre'=>'FONDS DE ROULEMENT'),
|
||||
'r232' => array('evol'=>'r236', 'op' => 1000, 'titre'=>'BESOIN EN FONDS DE ROULEMENT'),
|
||||
'r249' => array('evol'=>'r254', 'op' => 1000, 'titre'=>'TRESORERIE'),
|
||||
'r24' => array('evol'=>'r24', 'op' => 1, 'titre'=>'EFFECTIF', 'unite' => 1),
|
||||
'r5' => array('evol'=>'r6', 'op' => 1000, 'titre'=>"CHIFFRE D'AFFAIRES"),
|
||||
'r7' => array('evol'=>'r8', 'op' => 1000, 'titre'=>"RESULTAT COURANT AVANT IMPOTS"),
|
||||
'r10' => array('evol'=>'r11', 'op' => 1000, 'titre'=>"RESULTAT NET"),
|
||||
'r18' => array('evol'=>'r19', 'op' => 1000, 'titre'=>"FONDS PROPRES"),
|
||||
'r22' => array('evol'=>'r23', 'op' => 1000, 'titre'=>"TOTAL BILAN"),
|
||||
'r231' => array('evol'=>'r235', 'op' => 1000, 'titre'=>"FONDS DE ROULEMENT"),
|
||||
'r232' => array('evol'=>'r236', 'op' => 1000, 'titre'=>"BESOIN EN FONDS DE ROULEMENT"),
|
||||
'r249' => array('evol'=>'r254', 'op' => 1000, 'titre'=>"TRESORERIE"),
|
||||
'r24' => array('evol'=>'r24', 'op' => 1, 'titre'=>"EFFECTIF", 'unite' => 1),
|
||||
);
|
||||
|
||||
$tabRatioGraph = array(
|
||||
|
@ -1,438 +0,0 @@
|
||||
<?php
|
||||
require_once 'Giant/WSgiant.php';
|
||||
require_once 'Giant/Controllers.lib.php';
|
||||
require_once 'Giant/RequestDatabase.lib.php';
|
||||
require_once 'Giant/Functions.lib.php';
|
||||
|
||||
class GiantController extends Zend_Controller_Action
|
||||
{
|
||||
protected $theme;
|
||||
protected $TestIndication = false;
|
||||
protected $config = array();
|
||||
|
||||
protected $TestCompanies = array(
|
||||
'BE' => array(
|
||||
'0439546194', '0436576412', '0430459076', '0430000604', '0404869783', '0404869783',
|
||||
'0406952018'
|
||||
),
|
||||
'ES' => array(
|
||||
'A00000000', 'A80192727'
|
||||
),
|
||||
'GB' => array(
|
||||
'00000086', '00082932', '98888888', '214436', '1777777', '991581', '1800000'
|
||||
),
|
||||
'NL' => array(
|
||||
'533885', '1383988', '1383989', '891962239', '891974008', '892130032', '896614719',
|
||||
'896614735', '896614735', '896615243'
|
||||
),
|
||||
'FR' => array(
|
||||
'55214450300018', '49496793800031', '47997411500012', '48765114300017',
|
||||
'43235433000040', '39435613300022', '39504742600014', '76980020200020',
|
||||
'35379698000020', '56202109700018', '70204756400068', '70204756400068'
|
||||
),
|
||||
);
|
||||
|
||||
protected $Companies = array(
|
||||
'FR' =>'France',
|
||||
'BE' => 'Belgium',
|
||||
'ES' => 'Spain',
|
||||
'GB' => 'United Kingdom',
|
||||
'NL' => 'The Netherlands',
|
||||
);
|
||||
|
||||
|
||||
public function init()
|
||||
{
|
||||
// --- Theme
|
||||
$this->theme = Zend_Registry::get('theme');
|
||||
|
||||
$this->view->headLink()->appendStylesheet($this->theme->pathStyle.'/giant.css', 'all');
|
||||
$this->view->headScript()->appendFile($this->theme->pathScript.'/giant.js', 'text/javascript');
|
||||
$this->view->debug = false;
|
||||
$this->config = new Zend_Config_Ini( APPLICATION_PATH.'/../library/Giant/giant.ini' );
|
||||
$this->TestIndication = $this->config->test->TestIndication;
|
||||
}
|
||||
|
||||
public function searchAction()
|
||||
{
|
||||
$user = new Scores_Utilisateur();
|
||||
$params = $this->getRequest()->getParams();
|
||||
$search = new GiantRechercheController($params['pays'], $this->TestIndication);
|
||||
$result = $search->Liste($params, $this->getRequest()->getParam('page'));
|
||||
$this->view->TestIndication= $this->TestIndication;
|
||||
$this->view->TestCompanies = $this->TestCompanies[$params['pays']];
|
||||
$this->view->label = $search->getObjet()->getLabelDesc();
|
||||
$this->view->labelResults = $search->getObjet()->getLabelResults();
|
||||
$this->view->pays = $params['pays'];
|
||||
$this->view->currentPage = $search->getObjet()->getCurrentPage();
|
||||
$this->view->userMaxResult = $user->getNbRep();
|
||||
$this->view->resultats = $result;
|
||||
$this->view->page = $this->getRequest()->getParam('page');
|
||||
$this->view->referer = $search->getObjet()->getQuery();
|
||||
$this->view->lienReferer = $search->getQueryLink($params);
|
||||
if($this->view->debug)
|
||||
$this->view->soap = $search->soapG;
|
||||
}
|
||||
|
||||
public function identiteAction()
|
||||
{
|
||||
$rechercheParams = new Scores_Session_Recherche();
|
||||
$giantFunction = new GiantFunction();
|
||||
$test = $this->getRequest()->getParam('test');
|
||||
if($test == true){
|
||||
$this->TestIndication = true;
|
||||
}
|
||||
if (count($rechercheParams->liste()) > 0)
|
||||
{
|
||||
$recherche = $rechercheParams->item(0);
|
||||
$type = $recherche['type'];
|
||||
$params = $recherche['params'];
|
||||
}
|
||||
$Commande = new Commandes();
|
||||
$user = new Scores_Utilisateur();
|
||||
$listeCommandes = $Commande->getCommandesByLogin($user->getLogin());
|
||||
$total = 0;
|
||||
$liste = $giantFunction->divCommande($listeCommandes, $total);
|
||||
$ListeRapport = new GiantRechercheController($params['pays'], $this->TestIndication);
|
||||
$giantController = new GiantControllerLib($this->getRequest()->getParam('CompanyId'));
|
||||
$result = $giantController->commandePays($this->getRequest()->getParam('CompanyId'),$params['pays'], $this->TestIndication);
|
||||
$this->view->TestIndication = $this->TestIndication;
|
||||
$this->view->total = $total;
|
||||
$this->view->listeCommandes = $liste;
|
||||
$this->view->modification = (isset($result->MonitoringOptions))?($ListeRapport->getModification($result->MonitoringOptions->MonitoringOption[0])):null;
|
||||
$this->view->description = $ListeRapport->getDescription();
|
||||
$this->view->raisonSociale = $this->getRequest()->getParam('raisonSociale');
|
||||
$this->view->listeRapport = $result;
|
||||
$this->view->telephone = $this->getRequest()->getParam('telephone');
|
||||
$this->view->CompanyId = $this->getRequest()->getParam('CompanyId');
|
||||
$this->view->raisonSociale = $this->getRequest()->getParam('raisonSociale');
|
||||
$this->view->CompanyRegisterNumber = $this->getRequest()->getParam('CompanyRegisterNumber');
|
||||
$this->view->Pays = $this->getRequest()->getParam('Pays');
|
||||
$this->view->Adresse = explode(':', $this->getRequest()->getParam('Adresse'));
|
||||
if($this->view->debug)
|
||||
$this->view->soap = $ListeRapport->soapG;
|
||||
}
|
||||
|
||||
public function creditrecommendationAction()
|
||||
{
|
||||
$test = $this->getRequest()->getParam('test');
|
||||
if($test == true){
|
||||
$this->TestIndication = true;
|
||||
}
|
||||
$giantController = new GiantControllerLib($this->getRequest()->getParam('CompanyId'));
|
||||
$id = $giantController->commande($this->getRequest()->getParam('CompanyId'),
|
||||
$this->getRequest()->getParam('Type'),
|
||||
$this->getRequest()->getParam('Pays'),
|
||||
$this->getRequest()->getParam('Language'),
|
||||
$this->TestIndication
|
||||
);
|
||||
$creditrecommendationAction = array('getAvisDeCredit' => 'CreditRecommendation');
|
||||
$creditrecommendation = unserialize(base64_decode($id));
|
||||
$identiteController = new GiantIdentiteController($creditrecommendation);
|
||||
$giantConstroller = new GiantControllerLib($this->getRequest()->getParam('CompanyId').'-'.$this->getRequest()->getParam('Type'));
|
||||
$identiteController->ficheAction();
|
||||
$fiche = $identiteController->getObjet('fiche');
|
||||
|
||||
foreach($creditrecommendationAction as $action => $val) {
|
||||
if(isset($creditrecommendation->DataSet->Company->$val)) {
|
||||
$creditrecommendation = $giantConstroller->$action($creditrecommendation);
|
||||
}
|
||||
}
|
||||
$fiche = $giantConstroller->getInformationGenerale($creditrecommendation);
|
||||
$this->view->carte = $this->getRequest()->getParam('Pays');
|
||||
$this->view->reportType = $this->getRequest()->getParam('Type');
|
||||
$this->view->report = $fiche;
|
||||
$this->view->Type = $this->getRequest()->getParam('Type');
|
||||
$this->view->assign('exportObjet', $creditrecommendation);
|
||||
}
|
||||
|
||||
public function compactAction()
|
||||
{
|
||||
$test = $this->getRequest()->getParam('test');
|
||||
if($test == true){
|
||||
$this->TestIndication = true;
|
||||
}
|
||||
$giantController = new GiantControllerLib($this->getRequest()->getParam('CompanyId'));
|
||||
$id = $giantController->commande($this->getRequest()->getParam('CompanyId'),
|
||||
$this->getRequest()->getParam('Type'),
|
||||
$this->getRequest()->getParam('Pays'),
|
||||
$this->getRequest()->getParam('Language'),
|
||||
$this->TestIndication
|
||||
);
|
||||
$compactAction = array('getAvisDeCredit' => 'CreditRecommendation', 'getPositionFinanciere' => 'FinancialSummary',
|
||||
'getStructureEntreprise' => 'Associated', 'getDirigeant' => 'Position'
|
||||
);
|
||||
$compact = unserialize(base64_decode($id));
|
||||
$identiteController = new GiantIdentiteController($compact);
|
||||
$giantConstroller = new GiantControllerLib($this->getRequest()->getParam('CompanyId').'-'.$this->getRequest()->getParam('Type'));
|
||||
$identiteController->ficheAction();
|
||||
$fiche = $identiteController->getObjet('fiche');
|
||||
foreach($compactAction as $action => $val) {
|
||||
if(isset($compact->DataSet->Company->$val)) {
|
||||
$compact = $giantConstroller->$action($compact);
|
||||
}
|
||||
}
|
||||
$fiche = $giantConstroller->getInformationGenerale($compact);
|
||||
$this->view->carte = $this->getRequest()->getParam('Pays');
|
||||
$this->view->reportType = $this->getRequest()->getParam('Type');
|
||||
$this->view->report = $fiche;
|
||||
$this->view->Type = $this->getRequest()->getParam('Type');
|
||||
$this->view->assign('exportObjet', $compact);
|
||||
}
|
||||
|
||||
public function fullAction()
|
||||
{
|
||||
$test = $this->getRequest()->getParam('test');
|
||||
if($test == true){
|
||||
$this->TestIndication = true;
|
||||
}
|
||||
$giantController = new GiantControllerLib($this->getRequest()->getParam('CompanyId').'-'.$this->getRequest()->getParam('Type'));
|
||||
$id = $giantController->commande($this->getRequest()->getParam('CompanyId'),
|
||||
$this->getRequest()->getParam('Type'),
|
||||
$this->getRequest()->getParam('Pays'),
|
||||
$this->getRequest()->getParam('Language'),
|
||||
$this->TestIndication
|
||||
);
|
||||
$fullAction = array('getAvisDeCredit' => 'CreditRecommendation', 'getComptesAnnuels' => 'AnnualAccounts', 'getPositionFinanciere' => 'FinancialSummary',
|
||||
'getComportementPaiement' => 'PaymentBehaviour', 'getStructureEntreprise' => 'Associated', 'getDirigeant' => 'Position',
|
||||
'getComparaisonValeurs'=> 'PeerGroup', 'getHistoriques' => 'Event'
|
||||
);
|
||||
$full = unserialize(base64_decode($id));
|
||||
$full->DataSet->Company->CompanyId= $this->getRequest()->getParam('CompanyId');
|
||||
$identiteController = new GiantIdentiteController($full);
|
||||
$giantConstroller = new GiantControllerLib($this->getRequest()->getParam('CompanyId').'-'.$this->getRequest()->getParam('Type'));
|
||||
$identiteController->ficheAction();
|
||||
$fiche = $identiteController->getObjet('fiche');
|
||||
|
||||
foreach($fullAction as $action => $val) {
|
||||
if(isset($full->DataSet->Company->$val))
|
||||
$full = $giantConstroller->$action($full);
|
||||
}
|
||||
$fiche = $giantConstroller->getInformationGenerale($full);
|
||||
$this->view->carte = $this->getRequest()->getParam('Pays');
|
||||
$this->view->reportType = $this->getRequest()->getParam('Type');
|
||||
$this->view->report = $fiche;
|
||||
$this->view->Type = $this->getRequest()->getParam('Type');
|
||||
$this->view->assign('exportObjet', $full);
|
||||
}
|
||||
|
||||
public function getForm()
|
||||
{
|
||||
$form = new Zend_Form();
|
||||
$form->setMethod('post')
|
||||
->setAction('investigation');
|
||||
|
||||
$reference = $form->createElement('text', 'reference', array('label' => 'Votre Reference'));
|
||||
$reference->setRequired(true);
|
||||
$elements[] = $reference;
|
||||
|
||||
$telephone = $form->createElement('text', 'telephone', array('label' => 'Votre téléphone'));
|
||||
$telephone->setRequired(true);
|
||||
$elements[] = $telephone;
|
||||
|
||||
$mail = $form->createElement('text', 'mail', array('label' => 'Adresse Email'));
|
||||
$mail->setRequired(true);
|
||||
$elements[] = $mail;
|
||||
|
||||
$elements[] = $form->createElement('textarea', 'remarque', array('label' => 'Remarque ou commentaire à destination de l\'enquêteur :'));
|
||||
$elements[] = $form->createElement('text', 'domiciliation', array('label' => 'Domiciliation Bancaire :'));
|
||||
$elements[] = $form->createElement('text', 'Encours', array('label' => 'Encours demandé :'));
|
||||
$elements[] = $form->createElement('text', 'nbEcheance', array('label' => 'Nombre d\'échéances :'));
|
||||
|
||||
$form->addElements($elements)
|
||||
->addElement('submit', 'Envoyer', array('label' => 'Envoyer'));
|
||||
return ($form);
|
||||
}
|
||||
|
||||
public function investigationAction()
|
||||
{
|
||||
|
||||
if($this->getRequest()->isPost()) {
|
||||
$data = $this->getRequest()->getPost();
|
||||
if($this->getForm()->isValid($data))
|
||||
$this->view->form = $this->getRequest()->getParam('reference');
|
||||
else {
|
||||
return ($this->view->form = $this->getForm());
|
||||
}
|
||||
} else
|
||||
$this->view->form = $this->getForm();
|
||||
}
|
||||
public function startmonitoringAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$this->view->headLink()->appendStylesheet($this->theme->pathStyle.'/giant.css', 'all');
|
||||
$this->view->headScript()->appendFile($this->theme->pathScript.'/giant.js', 'text/javascript');
|
||||
$this->view->lang = $this->getRequest()->getParam('lang');
|
||||
$this->view->CompanyId = $this->getRequest()->getParam('CompanyId');
|
||||
$this->view->Pays = $this->getRequest()->getParam('Pays');
|
||||
$this->view->CompanyName = $this->getRequest()->getParam('CompanyName');
|
||||
$this->view->action = $this->getRequest()->getParam('action');
|
||||
$this->view->values = $this->getRequest()->getParams();
|
||||
$result = new GiantControllerLib();
|
||||
foreach($this->Companies as $key=>$pays){
|
||||
if(($value = $result->getCache($key)) === false || empty($value->MonitoringOptions->MonitoringOption[0]->LanguageCodes->LanguageCode)) {
|
||||
unset($this->Companies[$key]);
|
||||
}
|
||||
}
|
||||
$this->view->countries = $this->Companies;
|
||||
if ($this->getRequest()->isPost()) {
|
||||
$giantController = new GiantControllerLib($this->getRequest()->getParam('CompanyId'));
|
||||
$result = $giantController->startmonitoring($this->getRequest()->getParam('CompanyId'),
|
||||
$this->getRequest()->getParam('CategoryName'),
|
||||
$this->getRequest()->getParam('EventType'),
|
||||
$this->getRequest()->getParam('StartDate'),
|
||||
$this->getRequest()->getParam('EndDate'),
|
||||
$this->getRequest()->getParam('Version'),
|
||||
$this->getRequest()->getParam('LanguageCode'),
|
||||
$this->getRequest()->getParam('Pays'),
|
||||
$this->TestIndication,
|
||||
$this->getRequest()->getParam('CompanyName')
|
||||
);
|
||||
$this->view->result = $result;
|
||||
}
|
||||
|
||||
}
|
||||
public function stopmonitoringAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$this->view->headLink()->appendStylesheet($this->theme->pathStyle.'/giant.css', 'all');
|
||||
$this->view->CompanyId = $this->getRequest()->getParam('CompanyId');
|
||||
$this->view->InternalOrderId = $this->getRequest()->getParam('InternalOrderId');
|
||||
$this->view->Pays = $this->getRequest()->getParam('Pays');
|
||||
$this->view->InternalOrderId = $this->getRequest()->getParam('InternalOrderId');
|
||||
$this->view->CompanyName = $this->getRequest()->getParam('CompanyName');
|
||||
$this->view->action = $this->getRequest()->getParam('action');
|
||||
$this->view->values = $this->getRequest()->getParams();
|
||||
|
||||
if ($this->getRequest()->isPost()) {
|
||||
$giantController = new GiantControllerLib($this->getRequest()->getParam('CompanyId'));
|
||||
$result = $giantController->stopmonitoring($this->getRequest()->getParam('CompanyId'),
|
||||
$this->getRequest()->getParam('EndDate'),
|
||||
$this->getRequest()->getParam('InternalOrderId'),
|
||||
$this->getRequest()->getParam('Pays'),
|
||||
$this->TestIndication
|
||||
);
|
||||
$this->view->result = $result;
|
||||
}
|
||||
}
|
||||
public function updatemonitoringAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$this->view->headLink()->appendStylesheet($this->theme->pathStyle.'/giant.css', 'all');
|
||||
$this->view->lang = $this->getRequest()->getParam('lang');
|
||||
$this->view->CompanyId = $this->getRequest()->getParam('CompanyId');
|
||||
$this->view->InternalOrderId = $this->getRequest()->getParam('InternalOrderId');
|
||||
$this->view->Pays = $this->getRequest()->getParam('Pays');
|
||||
$this->view->CompanyName = $this->getRequest()->getParam('CompanyName');
|
||||
$this->view->action = $this->getRequest()->getParam('action');
|
||||
$this->view->values = $this->getRequest()->getParams();
|
||||
|
||||
if ($this->getRequest()->isPost()) {
|
||||
$giantController = new GiantControllerLib($this->getRequest()->getParam('CompanyId'));
|
||||
$result = $giantController->updatemonitoring($this->getRequest()->getParam('CompanyId'),
|
||||
$this->getRequest()->getParam('InternalOrderId'),
|
||||
$this->getRequest()->getParam('CategoryName'),
|
||||
$this->getRequest()->getParam('EventType'),
|
||||
$this->getRequest()->getParam('StartDate'),
|
||||
$this->getRequest()->getParam('Version'),
|
||||
$this->getRequest()->getParam('LanguageCode'),
|
||||
$this->getRequest()->getParam('Pays'),
|
||||
$this->TestIndication
|
||||
);
|
||||
$this->view->result = $result;
|
||||
}
|
||||
|
||||
}
|
||||
public function retriveAction()
|
||||
{
|
||||
$this->view->headScript()->appendFile($this->theme->pathScript.'/giant_monitoring.js', 'text/javascript');
|
||||
$giantController = new GiantControllerLib();
|
||||
$auth = Zend_Auth::getInstance();
|
||||
if ( $auth->hasIdentity() ) {
|
||||
$identity = $auth->getIdentity();
|
||||
}
|
||||
$result = $auth->getStorage()->read($identity);
|
||||
if(!empty($result->result->mon_result)){
|
||||
$result = $result->result->mon_result;
|
||||
}
|
||||
else{
|
||||
$result = $giantController->retrive(1,$this->TestIndication,'RetrieveMonitoringEventsForCustomer');
|
||||
$sess = new stdClass();
|
||||
$sess->mon_result = $result;
|
||||
$identity->result = $sess;
|
||||
$auth->getStorage()->write($identity);
|
||||
}
|
||||
$resultDB = $giantController->retrivDB();
|
||||
$this->view->resultDB = $resultDB;
|
||||
$this->view->result = $result;
|
||||
$merged =Array();
|
||||
foreach ($result->MonitoringEvents->MonitoringEvent as $MonitoringEvent):
|
||||
if ($merged[$MonitoringEvent->ProviderOrderId]){
|
||||
array_push($merged[$MonitoringEvent->ProviderOrderId],$MonitoringEvent) ;
|
||||
} else {
|
||||
$merged[$MonitoringEvent->ProviderOrderId][]=$MonitoringEvent;
|
||||
}
|
||||
endforeach;
|
||||
$this->view->val = $merged;
|
||||
|
||||
$merged_siren =Array();
|
||||
foreach ($result->MonitoringEvents->MonitoringEvent as $MonitoringEvent):
|
||||
if ($merged_siren[$MonitoringEvent->Company->CompanyId]){
|
||||
array_push($merged_siren[$MonitoringEvent->Company->CompanyId],$MonitoringEvent) ;
|
||||
} else {
|
||||
$merged_siren[$MonitoringEvent->Company->CompanyId][]=$MonitoringEvent;
|
||||
}
|
||||
endforeach;
|
||||
$this->view->val_siren = $merged_siren;
|
||||
|
||||
|
||||
}
|
||||
public function retAction()
|
||||
{
|
||||
$giantController = new GiantControllerLib();
|
||||
$resultDB = $giantController->retrivDB($this->getRequest()->getParam('date_st'));
|
||||
print_r(serialize($resultDB[0]));
|
||||
}
|
||||
public function getpaysAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$pays = $this->getRequest()->getParam('Pays');
|
||||
$result = new GiantControllerLib();
|
||||
if(($value = $result->getCache($pays)) === false || empty($value->MonitoringOptions->MonitoringOption[0]->LanguageCodes->LanguageCode)) {
|
||||
print_r(array('no'));
|
||||
}
|
||||
else {
|
||||
print_r(json_encode($value->MonitoringOptions->MonitoringOption[0]->LanguageCodes->LanguageCode));
|
||||
}
|
||||
}
|
||||
public function reteventsAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$this->view->headScript()->appendFile($this->theme->pathScript.'/giant_monitoring.js', 'text/javascript');
|
||||
$this->view->headScript()->appendFile$this->theme->pathScript.'/giant.js', 'text/javascript');
|
||||
$auth = Zend_Auth::getInstance();
|
||||
$identity = $auth->getIdentity();
|
||||
$result = $auth->getStorage()->read($identity);
|
||||
$result = $result->result->mon_result;
|
||||
$merged_siren = Array();
|
||||
foreach ($result->MonitoringEvents->MonitoringEvent as $MonitoringEvent):
|
||||
if ($merged_siren[$MonitoringEvent->Company->CompanyId]){
|
||||
array_push($merged_siren[$MonitoringEvent->Company->Event[0]->EventCode],$MonitoringEvent) ;
|
||||
} else {
|
||||
$merged_siren[$MonitoringEvent->Company->Event[0]->EventCode][]=$MonitoringEvent;
|
||||
}
|
||||
endforeach;
|
||||
$type = $this->getRequest()->getParam('Type');
|
||||
$id = $this->getRequest()->getParam('Id');
|
||||
|
||||
$merged = Array();
|
||||
foreach ($merged_siren[$type] as $MonitoringEvent):
|
||||
if ($merged[$MonitoringEvent->ProviderOrderId]){
|
||||
array_push($merged[$MonitoringEvent->ProviderOrderId],$MonitoringEvent) ;
|
||||
} else {
|
||||
$merged[$MonitoringEvent->ProviderOrderId][]=$MonitoringEvent;
|
||||
}
|
||||
endforeach;
|
||||
$this->view->result = $merged[$id];
|
||||
}
|
||||
}
|
@ -24,9 +24,8 @@ class IndexController extends Zend_Controller_Action
|
||||
{
|
||||
//Afficher le menu pour la version mobile
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->_forward('entreprise', 'recherche');
|
||||
else {
|
||||
$this->redirect($this->view->url(array('module'=>'search', 'controller'=>'entreprise', 'action'=>'index')));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -213,7 +213,7 @@ class RechercheController extends Zend_Controller_Action
|
||||
'annee' => $annonce->Annee,
|
||||
'code' => $code,
|
||||
'text' => $texte,
|
||||
'file' => $this->view->url(array('controller'=>'telechargement', 'action'=>'histopdf',
|
||||
'file' => $this->view->url(array('module'=>'file', 'controller'=>'dl', 'action'=>'histopdf',
|
||||
'q' => $fichier, 'host' => base64_encode($host)), 'default', true
|
||||
),
|
||||
);
|
||||
|
@ -1,332 +0,0 @@
|
||||
<?php
|
||||
class WorldcheckController extends Zend_Controller_Action
|
||||
{
|
||||
protected $theme;
|
||||
protected $wcConfig;
|
||||
|
||||
public function init()
|
||||
{
|
||||
// --- Theme
|
||||
$this->theme = Zend_Registry::get('theme');
|
||||
|
||||
require_once 'WorldCheck/WsWorldCheck.php';
|
||||
require_once 'Scores/Cache.php';
|
||||
|
||||
$configWC = new Zend_Config_Ini(APPLICATION_PATH . '/../library/WorldCheck/applicationWC.ini');
|
||||
$this->wcConfig = $configWC->worldcheck->toArray();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get nameIdentifier and set all data into the session
|
||||
*/
|
||||
public function indexAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$param = new stdClass();
|
||||
$dirNom = $request->getParam('dirNom');
|
||||
$param->dirNom = ($dirNom)?$dirNom:$request->getParam('dirSociete');
|
||||
$param->dirPrenom = $request->getParam('dirPrenom');
|
||||
$param->dirType = $request->getParam('dirType');
|
||||
|
||||
$entityId = $request->getParam('entityId', null);
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
$wc = new WsWorldCheck();
|
||||
$wcLocal = new Application_Model_Worldcheck();
|
||||
|
||||
$param->idClient = $user->getIdClient();
|
||||
$param->login = $user->getLogin();
|
||||
$localDBParams = $wcLocal->getScreenerId($param);
|
||||
$param->matchCount = $localDBParams->matchCount;
|
||||
$param->nameIdentifier = $localDBParams->nameIdentifier;
|
||||
|
||||
if ($entityId===null) {
|
||||
//$this->_redirect('/worldcheck/list');
|
||||
$params = array(
|
||||
'nameIdentifier' => $param->nameIdentifier,
|
||||
'matchCount' => $param->matchCount
|
||||
);
|
||||
$this->forward('list', null, null, $params);
|
||||
} else {
|
||||
$id = $request->getParam('id', null);
|
||||
|
||||
$data = new stdClass();
|
||||
$data->nameIdentifier = $param->nameIdentifier;
|
||||
$data->matchType = 'WATCHLIST';
|
||||
$matchArr = $wc->getMatchesArrName($data);
|
||||
|
||||
$paramAssoc = new stdClass();
|
||||
$paramAssoc->matchIdentifier = $matchArr[$entityId];
|
||||
$paramAssoc->nameType = $param->dirType;
|
||||
|
||||
$nodeParam = $wc->getAssociates($paramAssoc);
|
||||
$wcLocal->setTree($nodeParam);
|
||||
|
||||
$this->redirect('/worldcheck/orgchildren/entityid/'.$entityId.'/id/'.$id);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* List results of WorldCheck search
|
||||
*/
|
||||
public function listAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
|
||||
$wc = new WsWorldCheck();
|
||||
$param = new stdClass();
|
||||
|
||||
$nameIdentifier = $request->getParam('nameIdentifier');
|
||||
$matchCount = $request->getParam('matchCount');
|
||||
$dirNom = $request->getParam('dirNom');
|
||||
$param->dirNom = ($dirNom)?$dirNom:$request->getParam('dirSociete');
|
||||
$param->dirPrenom = $request->getParam('dirPrenom');
|
||||
$param->dirType = $request->getParam('dirType');
|
||||
print_r($param);
|
||||
if ($matchCount!==0)
|
||||
{
|
||||
$summary = new stdClass();
|
||||
$summary->nameIdentifier = $nameIdentifier;
|
||||
$summary->matchType = 'WATCHLIST';
|
||||
|
||||
$cache = new Cache();
|
||||
$unfilteredWC = $cache->wcCache($this->wcConfig['cachedir'], $wc, "getSummariesArr", $summary, $nameIdentifier);
|
||||
|
||||
//check if display all results (search by lastName), or filtered results (search by fullName)
|
||||
$filtre = $request->getParam('filtre', 'tout');
|
||||
$resultWC = $unfilteredWC;
|
||||
if ($filtre=='filtered')
|
||||
{
|
||||
//get results by fullName (lastName and givenName)
|
||||
$filteredWC = array();
|
||||
foreach ($unfilteredWC as $entityId=>$shortData)
|
||||
{
|
||||
if (stripos($shortData->lastName, $param->dirNom)!==false || stripos($param->dirNom, $shortData->lastName)!==false) {
|
||||
if (stripos($shortData->givenName, $param->dirPrenom)!==false || stripos($param->dirPrenom, $shortData->givenName)!==false) {
|
||||
$filteredWC[$entityId] = $shortData;
|
||||
}
|
||||
}
|
||||
}
|
||||
//end
|
||||
$resultWC = $filteredWC;
|
||||
}
|
||||
|
||||
$filtres = array(
|
||||
'tout' => array(
|
||||
'txt'=>'Résultats par Nom',
|
||||
'select'=>'',
|
||||
'value' => 2,
|
||||
),
|
||||
'filtered' => array(
|
||||
'txt'=>'Résultats précis',
|
||||
'select'=>'',
|
||||
'value' => 1,
|
||||
)
|
||||
);
|
||||
|
||||
$filtres[$filtre]['select'] = ' selected';
|
||||
|
||||
$this->view->assign('filtres', $filtres);
|
||||
//end
|
||||
|
||||
//paginate results list
|
||||
Zend_View_Helper_PaginationControl::setDefaultViewPartial('worldcheck/controls.phtml');
|
||||
$paginator = Zend_Paginator::factory($resultWC);
|
||||
$this->view->paginator = $paginator;
|
||||
$itemCount = $this->wcConfig['page']['items'];
|
||||
$page = $this->_getParam('page', 1);
|
||||
$ol_number = ($page-1)*$itemCount+1;
|
||||
|
||||
$paginator->setCurrentPageNumber($page);
|
||||
$paginator->setItemCountPerPage($itemCount);
|
||||
|
||||
$this->view->assign('ol_number', $ol_number);
|
||||
$this->view->assign('itemCount', $itemCount);
|
||||
//end
|
||||
|
||||
$this->view->assign('resultWC', $resultWC);
|
||||
$this->view->assign('allMatches', $wc->getMatchesArrName($summary));
|
||||
$this->view->assign('param', $param);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Affichage le quantite des occurences de la bdd en popup.
|
||||
*/
|
||||
public function occurenceAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
|
||||
if ( $request->isXmlHttpRequest() ) {
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$data = new stdClass();
|
||||
if ($request->getParam('dirType')) $data->Type = $request->getParam('dirType');
|
||||
if ($request->getParam('dirNom')) $data->Nom = $request->getParam('dirNom');
|
||||
if ($request->getParam('dirPrenom')) $data->Prenom = $request->getParam('dirPrenom');
|
||||
if ($request->getParam('dirSociete')) $data->Societe = $request->getParam('dirSociete');
|
||||
|
||||
$data->Soc = new stdClass();
|
||||
if ($request->getParam('dirSocNom2')) $data->Soc->Nom2 = $request->getParam('dirSocNom2');
|
||||
if ($request->getParam('dirSocNomLong')) $data->Soc->NomLong = $request->getParam('dirSocNomLong');
|
||||
if ($request->getParam('dirSocCommercial')) $data->Soc->NomCommercial = $request->getParam('dirSocCommercial');
|
||||
if ($request->getParam('dirSocSigle')) $data->Soc->Sigle = $request->getParam('dirSocSigle');
|
||||
if ($request->getParam('dirSocSigleLong')) $data->Soc->SigleLong = $request->getParam('dirSocSigleLong');
|
||||
if ($request->getParam('dirSocEnseigne')) $data->Soc->Enseigne = $request->getParam('dirSocEnseigne');
|
||||
if ($request->getParam('dirSocEnseigneLong')) $data->Soc->EnseigneLong = $request->getParam('dirSocEnseigneLong');
|
||||
|
||||
$wcLocal = new Application_Model_Worldcheck();
|
||||
$this->view->assign('occurrence', $wcLocal->getCount($data));
|
||||
$this->view->assign('data', $data);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Affichage le resultat de recherche en WorldCheck
|
||||
*/
|
||||
public function matchcontentAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
|
||||
$param = new stdClass();
|
||||
$param->matchIdentifier = $request->getParam('matchIdentifier');
|
||||
$param->nameType = $request->getParam('nameType');
|
||||
|
||||
$wc = new WsWorldCheck();
|
||||
$nodeParam = $wc->getAssociates($param);
|
||||
|
||||
$db = new Application_Model_Worldcheck();
|
||||
$db->setTree($nodeParam);
|
||||
|
||||
$cache = new Cache();
|
||||
$content = $cache->wcCache($this->wcConfig['cachedir'], $wc, "getDetailsContent", $param, $param->matchIdentifier);
|
||||
|
||||
$this->view->assign('content', $content[0]);
|
||||
$this->view->assign('nameType', $param->nameType);
|
||||
$this->view->assign('exportObjet', $content[0]);
|
||||
}
|
||||
|
||||
/**
|
||||
* le Parent de l'organigramme des associés
|
||||
*/
|
||||
public function organigrammeAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$wc = new WsWorldCheck();
|
||||
|
||||
$request = $this->getRequest();
|
||||
$entityId = $request->getParam('entityid', null);
|
||||
|
||||
$wcLocal = new Application_Model_Worldcheck();
|
||||
$currentBranch = $wcLocal->getTree($entityId);
|
||||
|
||||
$primary = $currentBranch['primary'];
|
||||
|
||||
$parent = array();
|
||||
|
||||
$data = new stdClass();
|
||||
$data->title = $primary['fullName'];
|
||||
$data->icon = "/themes/default/images/worldcheck/".strtolower($primary['nameType']).".png";
|
||||
|
||||
$attr = new stdClass();
|
||||
$attr->id = uniqid('wc_');
|
||||
$attr->entityId = $primary['entityId'];
|
||||
$attr->nameType = $primary['nameType'];
|
||||
$attr->lastName = $primary['lastName'];
|
||||
$attr->givenName = $primary['givenName'];
|
||||
|
||||
$parent[] = array(
|
||||
"data" => $data,
|
||||
"attr" => $attr,
|
||||
"state" => "closed",
|
||||
"parent" => "#"
|
||||
);
|
||||
|
||||
$jData = json_encode($parent);
|
||||
$this->view->assign('data', $jData);
|
||||
}
|
||||
|
||||
/**
|
||||
* les associés du parent de l'organigramme
|
||||
*/
|
||||
public function orgchildrenAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$wc = new WsWorldCheck();
|
||||
|
||||
$request = $this->getRequest();
|
||||
$entityId = $request->getParam('entityid', null);
|
||||
$id = $request->getParam('id', null);
|
||||
|
||||
$wcLocal = new Application_Model_Worldcheck();
|
||||
$currentBranch = $wcLocal->getTree($entityId);
|
||||
|
||||
$associates = $currentBranch['associates'];
|
||||
|
||||
$children = array();
|
||||
|
||||
foreach ($associates as $associate) {
|
||||
|
||||
$data = new stdClass();
|
||||
$data->title = $associate['fullName'];
|
||||
$data->icon = "/themes/default/images/worldcheck/".strtolower($associate['nameType']).".png";
|
||||
|
||||
$attr = new stdClass();
|
||||
$attr->id = uniqid('wc_');
|
||||
$attr->entityId = $associate['entityId'];
|
||||
$attr->nameType = $associate['nameType'];
|
||||
$attr->lastName = $associate['lastName'];
|
||||
$attr->givenName = $associate['givenName'];
|
||||
|
||||
$children[] = array(
|
||||
"data" => $data,
|
||||
"attr" => $attr,
|
||||
"state" => "closed",
|
||||
"parent" => $id,
|
||||
);
|
||||
}
|
||||
|
||||
$jData = json_encode($children);
|
||||
$this->view->assign('data', $jData);
|
||||
}
|
||||
|
||||
/**
|
||||
* Affichage de l'information courte de chaque node dans le popup
|
||||
*/
|
||||
public function popupAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$request = $this->getRequest();
|
||||
$entityId = $request->getParam('entityId', null);
|
||||
$entityIdP = $request->getParam('entityIdP', null);
|
||||
|
||||
$wc = new WsWorldCheck();
|
||||
$user = new Scores_Utilisateur();
|
||||
|
||||
$paramP = new stdClass();
|
||||
$paramP->idClient = $user->getIdClient();
|
||||
$paramP->dirNom = $request->getParam('dirNomP');
|
||||
$paramP->dirPrenom = $request->getParam('dirPrenomP');
|
||||
$paramP->dirType = $request->getParam('dirTypeP');
|
||||
|
||||
$wcLocal = new Application_Model_Worldcheck();
|
||||
$result = $wcLocal->getScreenerId($paramP);
|
||||
|
||||
$data = new stdClass();
|
||||
$data->nameIdentifier = $result->nameIdentifier;
|
||||
$data->matchType = "WATCHLIST";
|
||||
$matches = $wc->getMatchesArrName($data);
|
||||
|
||||
$param = new stdClass();
|
||||
$param->matchIdentifier = $matches[$entityIdP];
|
||||
$param->nameType = $paramP->dirType;
|
||||
$associates = $wc->getAssociates($param);
|
||||
|
||||
foreach($associates['associates'] as $assoc)
|
||||
{
|
||||
if ($assoc['entityId']==$entityId)
|
||||
break;
|
||||
}
|
||||
|
||||
$this->view->assign('data', $assoc);
|
||||
}
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
<h1 class="titre"><?=$this->titre?></h1>
|
||||
<div class="paragraph">
|
||||
<?php if ( !empty($this->html) ) {?>
|
||||
<?=$this->html?>
|
||||
<?php } else {?>
|
||||
ERREUR
|
||||
<?php }?>
|
||||
</div>
|
@ -1,42 +0,0 @@
|
||||
<style>
|
||||
#identifiant {
|
||||
float:left;
|
||||
width:40%;
|
||||
}
|
||||
#modules {
|
||||
float:left;
|
||||
width:40%;
|
||||
}
|
||||
|
||||
#listeModules {
|
||||
position:absolute;
|
||||
width:500px;
|
||||
display:none;
|
||||
background-color:#FBF7AA;
|
||||
border:1px solid #000000;
|
||||
z-index:3;
|
||||
}
|
||||
|
||||
#closelisteModules {
|
||||
float:right;
|
||||
padding:0.4em 1em;
|
||||
}
|
||||
|
||||
#listeModules ul {
|
||||
width:100%;
|
||||
margin-left:-10px;
|
||||
list-style-type:none;
|
||||
}
|
||||
|
||||
#listeModules ul li {
|
||||
display:inline;
|
||||
float:left;
|
||||
width:50%;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div id="center">
|
||||
<?php foreach ( $this->content as $item ) {?>
|
||||
<?=$this->partial('bdf/module-content.phtml', array('titre'=>$item['titre'],'html'=>$item['html']))?>
|
||||
<?php }?>
|
||||
</div>
|
@ -82,9 +82,7 @@ Aucun bilan disponible.
|
||||
<tbody>
|
||||
<?php foreach($this->tabRatio as $ratio => $info) { ?>
|
||||
<tr>
|
||||
<td class="head">
|
||||
<a class="tooltip" title="<?=$info['comment']?>"><?=$info['titre']?></a>
|
||||
</td>
|
||||
<td class="head qtip-tooltip" data-tooltip="<?=$info['comment']?>"><?=$info['titre']?></td>
|
||||
<td class="right"><?=$this->tabResult[0]['entrep'][$ratio]?></td>
|
||||
<td class="right"><?=$this->tabResult[0]['entrepEvol'][$ratio]?></td>
|
||||
<td class="right"><?=$this->tabResult[1]['entrep'][$ratio]?></td>
|
||||
@ -92,24 +90,14 @@ Aucun bilan disponible.
|
||||
<td class="right"><?=$this->tabResult[2]['entrep'][$ratio]?></td>
|
||||
<td class="right"><?=$this->tabResult[2]['entrepEvol'][$ratio]?></td>
|
||||
<td>
|
||||
<?php if ($this->graph): ?>
|
||||
<a href="<?=$this->url(array(
|
||||
'controller' => 'finance',
|
||||
'action' => 'synthese',
|
||||
'siret' => $this->siret,
|
||||
'id' => $this->id,
|
||||
'ratio' => $ratio,
|
||||
))?>">
|
||||
<img class="sTip" rel="<?=$this->url(array(
|
||||
'controller' => 'finance',
|
||||
'action' => 'synthesegraphevol',
|
||||
'siret' => $this->siret,
|
||||
'id' => $this->id,
|
||||
'ratio' => $ratio,
|
||||
))?>" title="<?=$info['titre']?>" src="/themes/default/images/finance/char_bar.png" alt="Visionner le graphique">
|
||||
<?php endif;?>
|
||||
<?php if ($this->graph) { ?>
|
||||
<a class="sTip" data-url="<?=$this->url(array('controller'=>'finance', 'action'=>'synthesegraphevol',
|
||||
'siret'=>$this->siret, 'id'=>$this->id, 'ratio'=>$ratio), 'default', true)?>" data-title="<?=$info['titre']?>"
|
||||
href="<?=$this->url(array('controller'=>'finance', 'action'=>'synthese', 'siret'=>$this->siret,
|
||||
'id'=>$this->id, 'ratio'=>$ratio), 'default', true)?>">
|
||||
<img src="/themes/default/images/finance/char_bar.png" alt="Visionner le graphique">
|
||||
</a>
|
||||
|
||||
<?php }?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
@ -118,11 +106,11 @@ Aucun bilan disponible.
|
||||
</div>
|
||||
|
||||
<div class="paragraph">
|
||||
<?php if ($this->graph):?>
|
||||
<?php if ($this->graph) {?>
|
||||
<?=$this->action('synthesegraphcompare', 'finance', null, array('siret'=>$this->siret, 'id'=>$this->id, 'typeBilan'=>$this->typeBilan))?>
|
||||
<?php else:?>
|
||||
<?php } else {?>
|
||||
<b>Les informations sont insuffisantes pour générer le graphique de synthèse.</b>
|
||||
<?php endif;?>
|
||||
<?php }?>
|
||||
</div>
|
||||
|
||||
<?php }?>
|
||||
|
@ -1,18 +0,0 @@
|
||||
<div id="center">
|
||||
<h2>1. Informations d'entreprise générales</h2>
|
||||
<div id="break">
|
||||
<?php echo $this->partial('giant/partials/rapports/InformationEntreprise.phtml', null, array('report' => $this->report, 'carte' => $this->carte)); ?>
|
||||
</div>
|
||||
<h2>2. Avis de crédit</h2>
|
||||
<div id="break">
|
||||
<?php echo $this->partial('giant/partials/rapports/AvisDeCredit.phtml', null, array('report' => $this->report, 'Type' => $this->Type)); ?>
|
||||
</div>
|
||||
<h2>4. Position financiére</h2>
|
||||
<div id="break">
|
||||
<?php echo $this->partial('giant/partials/rapports/PositionFinanciere.phtml', null, array('report' => $this->report, 'Type' => $this->Type)); ?>
|
||||
</div>
|
||||
<h2>7. Dirigeants</h2>
|
||||
<div id="break">
|
||||
<?php echo $this->partial('giant/partials/rapports/Dirigeant.phtml', null, array('report' => $this->report)); ?>
|
||||
</div>
|
||||
</div>
|
@ -1,6 +0,0 @@
|
||||
<div id="center">
|
||||
<h2>2. Avis de crédit</h2>
|
||||
<div id="break">
|
||||
<?php echo $this->partial('giant/partials/rapports/AvisDeCredit.phtml', null, array('report' => $this->report, 'Type' => $this->Type)); ?>
|
||||
</div>
|
||||
</div>
|
@ -1,40 +0,0 @@
|
||||
<div id="center">
|
||||
<h2>1. Informations d'entreprise générales</h2>
|
||||
<div id="break">
|
||||
<?php echo $this->partial('giant/partials/rapports/InformationEntreprise.phtml', null, array('report' => $this->report)); ?>
|
||||
</div>
|
||||
<a name="6"></a>
|
||||
<h2>2. Avis de crédit</h2>
|
||||
<div id="break">
|
||||
<?php echo $this->partial('giant/partials/rapports/AvisDeCredit.phtml', null, array('report' => $this->report, 'Type' => $this->Type)); ?>
|
||||
</div>
|
||||
<h2>3. Compte Annuels</h2>
|
||||
<div id="break">
|
||||
<?php echo $this->partial('giant/partials/rapports/ComptesAnnuels.phtml', null, array('report' => $this->report, 'Type' => $this->Type)); ?>
|
||||
</div>
|
||||
<h2>4. Position financiére</h2>
|
||||
<div id="break">
|
||||
<?php echo $this->partial('giant/partials/rapports/PositionFinanciere.phtml', null, array('report' => $this->report, 'Type' => $this->Type)); ?>
|
||||
</div>
|
||||
<h2>5. Comportement de paiement</h2>
|
||||
<div id="break">
|
||||
<?php echo $this->partial('giant/partials/rapports/ComportementDePaiement.phtml', null, array('report' => $this->report, 'Type' => $this->Type)); ?>
|
||||
</div>
|
||||
<h2>6. Structure de l'entreprise</h2>
|
||||
<div id="break">
|
||||
<?php echo $this->partial('giant/partials/rapports/StructureEntreprise.phtml', null, array('report' => $this->report)); ?>
|
||||
</div>
|
||||
<h2>7. Dirigeants</h2>
|
||||
<div id="break">
|
||||
<?php echo $this->partial('giant/partials/rapports/Dirigeant.phtml', null, array('report' => $this->report)); ?>
|
||||
</div>
|
||||
<h2>8. Comparaison avec valeurs similaires</h2>
|
||||
<div id="break">
|
||||
<?php echo $this->partial('giant/partials/rapports/ComparaisonValeurs.phtml', null, array('report' => $this->report, 'Type' => $this->Type)); ?>
|
||||
</div>
|
||||
<h2>9. Historiques</h2>
|
||||
<div id="break">
|
||||
<?php echo $this->partial('giant/partials/rapports/Historiques.phtml', null, array('report' => $this->report)); ?>
|
||||
</div>
|
||||
<?php echo $this->partial('giant/partials/sommaire.phtml', null, array('carte' => $this->carte)); ?>
|
||||
</div>
|
@ -1,121 +0,0 @@
|
||||
<div id="center">
|
||||
|
||||
<h1>Identite</h1>
|
||||
<div class="paragraph">
|
||||
<div id="identite">
|
||||
<table>
|
||||
<tr id="info">
|
||||
<td width="30px"></td>
|
||||
<td class="StyleInfoLib" width="250px">CompanyId</td>
|
||||
<td class="StyleInfoData" width="300px"><?php echo $this->CompanyId;?></td>
|
||||
</tr>
|
||||
<tr id="info">
|
||||
<td width="30px"></td>
|
||||
<td class="StyleInfoLib" width="250px">CompanyRegisterNumber</td>
|
||||
<td class="StyleInfoData" width="300px"><?php echo $this->CompanyRegisterNumber;?></td>
|
||||
</tr>
|
||||
<tr id="info">
|
||||
<td width="30px"></td>
|
||||
<td valign="top" class="StyleInfoLib" width="250px">RegisteredName</td>
|
||||
<td class="StyleInfoData" width="300px"><?php echo $this->raisonSociale;?></td>
|
||||
</tr>
|
||||
<tr id="info">
|
||||
<td width="30px"></td>
|
||||
<td valign="top" class="StyleInfoLib" width="250px">Adresse</td>
|
||||
<td class="StyleInfoData" width="300px"><?php echo $this->Adresse[0].' '.$this->Adresse[1];?><br />
|
||||
<?php echo $this->Adresse[2].' '.$this->Adresse[3]?></td>
|
||||
</tr>
|
||||
<tr id="info">
|
||||
<td width="30px"></td>
|
||||
<td valign="top" class="StyleInfoLib" width="250px">Téléphone</td>
|
||||
<td class="StyleInfoData" width="300px"><?php echo $this->telephone;?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<?php if(!empty($this->listeRapport)):?>
|
||||
<h1>Liste des rapports</h1>
|
||||
<div class="paragraph">
|
||||
<div id="radio">
|
||||
<table>
|
||||
<?php $i=1; foreach ($this->listeRapport->DataSetOptions->DataSetOption as $rapport):?>
|
||||
<tr id="info">
|
||||
<td class="StyleInfoLib" style="float:left;" >
|
||||
<?$t = $rapport->DataSetType->_;?>
|
||||
<img style="cursor:help" title="<?php echo htmlentities($this->description->$t);?>" class="tooltip" src="/themes/default/images/giant/tag_blue.png" /><input type="radio" class="radio" id="radio<?php echo $i; ?>" value="<?php echo $rapport->DataSetType->_?>" name="radio" /><label class="radio_but" for="radio<?php echo $i; ?>">Rapport de Type <?php echo $rapport->DataSetType->_?></label>
|
||||
</td>
|
||||
<td align="center" class="StyleInfoData lang_img <?=strtolower($rapport->DataSetType->_);?>">
|
||||
<div class="lang_select">
|
||||
<select class="lang_val">
|
||||
<?php foreach ($rapport->LanguageCodes->LanguageCode as $key=>$language):?>
|
||||
<option class="lang<?=$key;?>" value=<?=$language;?>><?=$language;?></option>
|
||||
<?php endforeach;?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="lang_select">
|
||||
<img class='lang'src="/themes/default/images/drapeaux/<?=$rapport->LanguageCodes->LanguageCode[0]?>.png" />
|
||||
</div>
|
||||
</td>
|
||||
<td class="StyleInfoData lang_img <?=strtolower($rapport->DataSetType->_);?>">
|
||||
<a id="r<?php echo $i?>" class="idpr id_cr" href="/giant/<?=strtolower($rapport->DataSetType->_)?>/Pays/test/<?=$this->TestIndication?>/<?=$this->Pays; ?>/Type/<?php echo $rapport->DataSetType->_?>/CompanyId/<?php echo $this->CompanyId;?>/Language/<?=$rapport->LanguageCodes->LanguageCode[0];?>" >Consulter le rapport en immédiat</a>
|
||||
<div id="pr<?php echo $i?>" class="hide" style="display:none;z-index: 1;margin-left: -340px;">
|
||||
<center><img style="padding-top:30%" src="/themes/default/images/giant/19-1.gif" /></center>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++;?>
|
||||
<?php endforeach;?>
|
||||
</table>
|
||||
</div></div>
|
||||
<?php endif; ?>
|
||||
<?php if(!empty($this->listeRapport->InvestigationOptions1)): ?>
|
||||
<h1>Liste des investigations<img style="margin-top:4px;float:right" src="/themes/default/images/giant/expanded.gif" ></h1>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30px"></td>
|
||||
<!--<td></td>!-->
|
||||
<td></td>
|
||||
<td style="word-spacing: 2px;" align="center">
|
||||
<input disabled="disabled" type="radio" name="langI1" /><input type="radio" name="langI2" checked="true" />
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<?php foreach ($this->listeRapport->InvestigationOptions->InvestigationOption as $investigation):?>
|
||||
<?php foreach ($investigation->ServiceLevels->ServiceLevel as $service):?>
|
||||
<tr id="info">
|
||||
<td width="30px"></td>
|
||||
<td class="StyleInfoLib" width="460px">
|
||||
<img style="cursor:help" title="" class="tooltip" src="/themes/default/images/giant/tag_blue.png" /> - Investigation <?php echo $service->Name.' ( '.$service->Duration.' '.$service->DurationMetric.' ) ';?>
|
||||
</td>
|
||||
<!--<td class="StyleInfoData" width="150px">
|
||||
150€ <?php /*@TODO reste a deteminer les données BDD ou fichier.*/ ?>
|
||||
</td>!-->
|
||||
<td align="center" class="StyleInfoData" width="100px">
|
||||
<?php foreach ($investigation->LanguageCodes->LanguageCode as $language):?>
|
||||
<img src="/themes/default/images/drapeaux/<?php echo $language;?>.png" />
|
||||
<?php endforeach;?>
|
||||
</td>
|
||||
<td class="StyleInfoData" width="300px">
|
||||
<a id="r<?php echo $i?>" class="idpr" href="">Commander l'investigation</a>
|
||||
<div id="pr<?php echo $i?>" class="hide" style="display:none;z-index: 1; margin-left: -457px;">
|
||||
<center><img style="padding-top:30%" src="/themes/default/images/giant/19-1.gif" /></center>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++; endforeach;?>
|
||||
<?php endforeach;?>
|
||||
<?php if($this->debug):?>
|
||||
<tr>
|
||||
<td width="30px"></td>
|
||||
<td colspan="5">
|
||||
<?php echo $this->action('identite', 'debug', null, array('resultat'=> $this->listeRapport, 'soap' => $this->soap));?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif;?>
|
||||
</table>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
|
||||
|
||||
</div>
|
@ -1,9 +0,0 @@
|
||||
<div id="center">
|
||||
<div class="paragraph">
|
||||
<h2>Investigation</h2>
|
||||
<fieldset>
|
||||
<legend>Formulaire d'investigation</legend>
|
||||
<?php echo $this->form;?>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
@ -1,70 +0,0 @@
|
||||
<div class="paragraph">
|
||||
<?php if(isset($this->report->CreditRecommendation)):?>
|
||||
<?php foreach($this->report->CreditRecommendation as $credit):?>
|
||||
<table id="AvisDeCredit">
|
||||
<tr>
|
||||
<td><b>Date</b></td>
|
||||
<td class="float"><?php echo (empty($credit->Date->_))?'NC':$credit->Date->_; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><hr/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Recommandation</b></td>
|
||||
<td class="float"><?php echo (empty ($credit->AmountAdvised))?'NC':$credit->AmountAdvised->_ . ' '.$credit->AmountAdvised->currency; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><hr style="border:1px dotted silver" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><br /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Evaluation</b></td>
|
||||
<td class="float"><?php echo (empty($credit->RiskClasses->CommonRiskClass->RatingValue))?'NC':$credit->RiskClasses->CommonRiskClass->RatingValue ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><hr style="border:1px dotted silver" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><img src="/file/image/cache/q/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.str_replace(' ', '_', $credit->RiskClasses->CommonRiskClass->RatingName->_);?>.png" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<i><?php echo (empty($credit->RiskClasses->CommonRiskClass->Description[0]))?'NC':$credit->RiskClasses->CommonRiskClass->Description[0]->_;?></i>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><hr /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><br /></td>
|
||||
</tr>
|
||||
<?php foreach ($credit->RiskClasses->ProviderRiskClass as $ProviderRiskClass):?>
|
||||
<tr>
|
||||
<td><b><?php echo (empty($ProviderRiskClass->RatingName->_))?'NC':$ProviderRiskClass->RatingName->_; ?></b></td>
|
||||
<td class="float"><?php echo (empty($ProviderRiskClass->RatingValue))?'NC':$ProviderRiskClass->RatingValue; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><img src="/file/image/cache/q/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.str_replace(' ', '_', $ProviderRiskClass->RatingName->_);?>.png" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><i><?php echo (empty($ProviderRiskClass->Description[0]->_))?'NC':$ProviderRiskClass->Description[0]->_; ?></i></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><hr /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><br /></td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
</table>
|
||||
<?php endforeach; ?>
|
||||
<?php else :?>
|
||||
<div class="ui-state-error ui-corner-all">
|
||||
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
|
||||
Aucun Credit de Recommendation
|
||||
</p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
@ -1,55 +0,0 @@
|
||||
<div class="paragraph" id="ComparisonValeurs">
|
||||
<a name="20"></a>
|
||||
<span>Comparaison des valeurs</span><br /><br />
|
||||
<?php if(isset($this->report->ComparaisonValeurs)):?>
|
||||
|
||||
<table id="giant_synthese">
|
||||
<thead>
|
||||
<tr>
|
||||
<th> </th>
|
||||
<?php $date = explode('/', $this->report->ComparaisonValeurs[key($this->report->ComparaisonValeurs)]['date']);?>
|
||||
<th align="right" class="date"><?php echo $date[2];?></th>
|
||||
<th align="right" class="date">Secteur</th>
|
||||
<th align="right" class="date">Variation</th>
|
||||
<th> </th>
|
||||
<?php if(isset($this->report->ComparaisonValeurs[key($this->report->ComparaisonValeurs)]['old'])):?>
|
||||
<?php foreach($this->report->ComparaisonValeurs[key($this->report->ComparaisonValeurs)]['old'] as $date => $valeur):?>
|
||||
<th align="right" class="date"><?php echo substr($date, 0,4);?></th>
|
||||
<?php endforeach;?>
|
||||
<?php endif;?>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<?php $i=0;foreach($this->report->ComparaisonValeurs as $name => $ComparaisonValeurs):$i++;?>
|
||||
<?php ($ComparaisonValeurs['current'] != 0 and $ComparaisonValeurs['entreprise'] != 0)?
|
||||
$val = round((($ComparaisonValeurs['current']/$ComparaisonValeurs['entreprise'])*100)-100):'NC';
|
||||
?>
|
||||
<tr class="<?php echo ($val)? 'red':'green'; ?>">
|
||||
<td class="head">
|
||||
<a class="tooltip" title="<?php echo str_replace('_', ' ', $ComparaisonValeurs['name']);?>"><?php echo str_replace('_', ' ', $ComparaisonValeurs['name']);?></a>
|
||||
</td>
|
||||
<td class="right"><?php echo round($ComparaisonValeurs['current']); ?></td>
|
||||
<td class="right"><?php echo round($ComparaisonValeurs['entreprise']); ?></td>
|
||||
<td class="right"><?php echo $val; ?> %</td>
|
||||
<td align="center"><img class="tooltip" title="<center><b>Evolution années précédentes</b></center><br /><img src='/file/image/cache/q/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.$name;?>.png' />" alt="icone" src="/themes/default/images/giant/<?php echo ($val > 0)? 'up': 'down';?>.png" /></td>
|
||||
<?php if(!empty($ComparaisonValeurs['old'])):?>
|
||||
<?php $i=0;foreach($ComparaisonValeurs['old'] as $valeur):$i++?>
|
||||
<?php if($i == 4) break;?>
|
||||
<td align="right"><?php echo round($valeur[0]->SubjectValue);?></td>
|
||||
<?php endforeach;?>
|
||||
<?php endif;?>
|
||||
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php else:?>
|
||||
<div class="ui-state-error ui-corner-all">
|
||||
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
|
||||
Aucun Comportement de paiement.
|
||||
</p>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
</div>
|
@ -1,118 +0,0 @@
|
||||
<div class="paragraph">
|
||||
<?php if(isset($this->report->PaymentBehaviour)):?>
|
||||
<?php if(isset($this->report->ComportementPaiement)):?>
|
||||
<span class="title">Analyse par année</span><br /><br />
|
||||
<table id="giant_synthese">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="date">Jours</th>
|
||||
<?php foreach(current($this->report->ComportementPaiement) as $dates => $valeurs):?>
|
||||
<? if($dates=='000030'){$dates='1000030';}else if($dates=='900000'){$dates='+90';}else if($dates=='910000'){$dates='+91';}else if($dates=='1510000'){$dates='+151';}?>
|
||||
<?$dates = str_replace('0000', ' - ', $dates)?>
|
||||
<th align="right" class="date"><?=$dates?></th>
|
||||
<?php endforeach; ?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<?php foreach($this->report->ComportementPaiement as $dates => $valeurs):?>
|
||||
<?(strlen($dates)==12)?$len=6:$len=8;preg_match('/(\d{'.$len.'})(\d{'.$len.'})/', $dates,$matches);$s = $matches[1];$e = $matches[2];?>
|
||||
<?php $date = explode(':', $dates);?>
|
||||
<?php $date1 = new Zend_Date($s,yyyymmdd);$date2 = new Zend_Date($e,yyyymmdd);?>
|
||||
<tr>
|
||||
<td class="head">
|
||||
<a><?php echo $date1->toString('dd/mm/yyyy');?> - <?php echo $date2->toString('dd/mm/yyyy');?></a>
|
||||
</td>
|
||||
<?php $i=0;foreach($valeurs as $valeur): $i++; ?>
|
||||
<td class="right"><?php echo $valeur;?> %</td>
|
||||
<?php endforeach; ?>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br />
|
||||
<center>
|
||||
<span class="title">Graphique Analyse par année</span><br /><br />
|
||||
<img src="/file/image/cache/q/<?php echo $this->report->CompanyId.'-'.$this->Type.'-';?>ComportementPaiement.png" />
|
||||
</center>
|
||||
<br />
|
||||
<?php endif;?>
|
||||
<a name="13"></a>
|
||||
<span class="title">Qualification de paiement</span><br /><br />
|
||||
<table id="giant_synthese">
|
||||
<tbody>
|
||||
<tr>
|
||||
<tr >
|
||||
<td class="head">
|
||||
<a class="tooltip tooltipFont">PaymentQualification</a>
|
||||
</td>
|
||||
<td class="right"><?php echo (isset($this->report->PaymentBehaviour[0]->PaymentQualification))?$this->report->PaymentBehaviour[0]->PaymentQualification->Qualification:'NC';?></td>
|
||||
</tr>
|
||||
<tr >
|
||||
<td class="head">
|
||||
<a class="tooltip tooltipFont">DebtorDays</a>
|
||||
</td>
|
||||
<td class="right"><?php echo (isset($this->report->PaymentBehaviour[0]->DebtorDays))?$this->report->PaymentBehaviour[0]->DebtorDays:'NC';?></td>
|
||||
</tr>
|
||||
<tr >
|
||||
<td class="head">
|
||||
<a class="tooltip tooltipFont">CreditorDays</a>
|
||||
</td>
|
||||
<td class="right"><?php echo (isset($this->report->PaymentBehaviour[0]->DebtorDays))?$this->report->PaymentBehaviour[0]->CreditorDays:'NC';?></td>
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br />
|
||||
<a name="14"></a>
|
||||
<span class="title">Analyse par sommes</span><br /><br />
|
||||
<?php if(isset($this->report->ByAmount)):?>
|
||||
|
||||
<table id="giant_synthese">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="date">Jours</th>
|
||||
<?php foreach(current($this->report->ByAmount) as $dates => $valeurs):?>
|
||||
<? if($dates=='000030'){$dates='1000030';}else if($dates=='900000'){$dates='+90';}else if($dates=='1510000'){$dates='+151';}?>
|
||||
<?$dates = str_replace('0000', ' - ', $dates)?>
|
||||
<th align="right" class="date"><?=$dates?></th>
|
||||
<?php endforeach; ?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<?php foreach($this->report->ByAmount as $sommes => $valeurs):?>
|
||||
<?php $somme = explode('1111', $sommes);?>
|
||||
<tr>
|
||||
<td class="head">
|
||||
<a class="tooltip" title="<?php echo $date[0];?> - <?php echo $date[1];?>">entre : <?php echo (!empty($somme[0]))?$somme[0].'€':'0';?></b> et <b><?php echo (!empty($somme[1]))?$somme[1].'€':'plus';?></a>
|
||||
</td>
|
||||
<?php $i=0;foreach($valeurs as $valeur): $i++; ?>
|
||||
<td class="right"><?php echo $valeur;?> %</td>
|
||||
<?php endforeach; ?>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
<center>
|
||||
<a name="15"></a>
|
||||
<span class="title">Graphique Analyse par année</span><br />
|
||||
<img src="/file/image/cache/q/<?php echo $this->report->CompanyId.'-'.$this->Type.'-';?>ComportementPaiementByAmount.png" />
|
||||
</center>
|
||||
<?php else: ?>
|
||||
<div style="padding:0.7em;" class="ui-state-error ui-corner-all">
|
||||
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
|
||||
Aucunes informations.
|
||||
</p>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<?php else : ?>
|
||||
<div style="padding:0.7em;" class="ui-state-error ui-corner-all">
|
||||
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
|
||||
Aucun Comportement de paiement.
|
||||
</p>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
</div>
|
@ -1,219 +0,0 @@
|
||||
<div class="paragraph compteAnnuels">
|
||||
<?php if(!empty($this->report->AnnualAccounts)):?>
|
||||
<table id="giant_synthese">
|
||||
<tbody>
|
||||
<tr>
|
||||
<tr >
|
||||
<td class="head">
|
||||
<a class="tooltip tooltipFont">Date de clôture</a>
|
||||
</td>
|
||||
<?php foreach($this->report->AnnualAccounts as $AnnualAccounts):$i++?>
|
||||
<td class="right"><?php if(empty($AnnualAccounts->AccountsDate->_))echo'NC';else {$date = new Zend_Date($AnnualAccounts->AccountsDate->_,yyyymmdd);echo $date->toString('dd/mm/yyyy');}?></td>
|
||||
<?php endforeach; ?>
|
||||
</tr>
|
||||
<tr >
|
||||
<td class="head">
|
||||
<a class="tooltip tooltipFont">Etat de compte</a>
|
||||
</td>
|
||||
<?php foreach($this->report->AnnualAccounts as $AnnualAccounts):$i++?>
|
||||
<td class="right"><?php echo (empty($AnnualAccounts->AccountsStatus))?'NC':$AnnualAccounts->AccountsStatus;?></td>
|
||||
<?php endforeach; ?>
|
||||
</tr>
|
||||
<tr >
|
||||
<td class="head">
|
||||
<a class="tooltip tooltipFont">Type de compte</a>
|
||||
</td>
|
||||
<?php foreach($this->report->AnnualAccounts as $AnnualAccounts):$i++?>
|
||||
<td class="right"><?php echo (empty($AnnualAccounts->AccountsType))?'NC':$AnnualAccounts->AccountsType;?></td>
|
||||
<?php endforeach; ?>
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br />
|
||||
<a name="7"></a>
|
||||
<span class="title" >Actif</span><br />
|
||||
<table id="giant_synthese">
|
||||
<thead>
|
||||
<tr>
|
||||
<th align="center">
|
||||
</th>
|
||||
<?php $i=0; foreach($this->report->AnnualAccounts as $AnnualAccounts): $i++?>
|
||||
<?php $date = new Zend_Date($AnnualAccounts->AccountsDate->_,yyyymmdd);?>
|
||||
<th align="right" class="date"><?php echo $date->toString('dd/mm/yyyy'); ?></th>
|
||||
<?php endforeach; ?>
|
||||
<th> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<?php foreach($this->report->Assets as $name => $Assets):?>
|
||||
<?php if(!empty($this->report->Assets->{$name})){$end = end($this->report->Assets->{$name});reset($this->report->Assets->{$name});}else{$end = 0;}?>
|
||||
<?php if(!empty($this->report->Assets->{$name})){$key = $this->report->Assets->{$name}[key($this->report->Assets->{$name})];}else{$key = 0;}?>
|
||||
<?php $val = ($key < $end)?true:false;?>
|
||||
<tr class="<?php echo ($val)? 'red':'green'; ?>">
|
||||
<td class="head">
|
||||
<a class="tooltip" title="<?php echo $name;?>"><?php echo $name;?></a>
|
||||
</td>
|
||||
<?php foreach($this->report->AnnualAccounts as $AnnualAccounts): ?>
|
||||
<?php (empty($firstAsset))?$firstAsset = $this->report->Assets->{$name}[$AnnualAccounts->AccountsDate->_]:EOF;?>
|
||||
<td class="right"><?php echo number_format($this->report->Assets->{$name}[$AnnualAccounts->AccountsDate->_], 0, '', ' ');?> K€</td>
|
||||
<?php endforeach; ?>
|
||||
<td align="center">
|
||||
<?php if($end > $firstAsset):?>
|
||||
<img class="tooltip IMGprint" title="<center><b><?php echo $name;?></b></center><br /><img src='/file/image/cache/q/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.$name;?>-line.png' />" src="/themes/default/images/giant/down.png" />
|
||||
<?php else: ?>
|
||||
<img class="tooltip IMGprint" title="<center><b><?php echo $name;?></b></center><br /><img src='/file/image/cache/q/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.$name;?>-line.png' />" src="/themes/default/images/giant/up.png" />
|
||||
<?php endif;unset($firstAsset);?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br />
|
||||
<div class="center">
|
||||
<span class="title">Graphique des actifs</span>
|
||||
<img src="/file/image/cache/q/<?php echo $this->report->CompanyId.'-'.$this->Type.'-';?>actifs.png" />
|
||||
</div>
|
||||
<br />
|
||||
<a name="8"></a>
|
||||
<span class="title">Passif</span><br />
|
||||
<table id="giant_synthese">
|
||||
<thead>
|
||||
<tr>
|
||||
<th align="center">
|
||||
</th>
|
||||
<?php $i=0; foreach($this->report->AnnualAccounts as $AnnualAccounts): $i++?>
|
||||
<?php $date = new Zend_Date($AnnualAccounts->AccountsDate->_,yyyymmdd);?>
|
||||
<th align="right" class="date"><?php echo $date->toString('dd/mm/yyyy'); ?></th>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<th> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<?php foreach($this->report->Liabilities as $name => $Liabilities):?>
|
||||
<?php if(!empty($this->report->Liabilities->{$name})){$end = end($this->report->Liabilities->{$name});reset($this->report->Liabilities->{$name});}else{$end = 0;}?>
|
||||
<?php if(!empty($this->report->Liabilities->{$name})){$key = $this->report->Liabilities->{$name}[key($this->report->Liabilities->{$name})];}else{$key = 0;}?>
|
||||
<?php $val = ($key < $end)?true:false;?>
|
||||
<tr class="<?php echo ($val)? 'red':'green'; ?>">
|
||||
<td class="head">
|
||||
<a class="tooltip" title="<?php echo $name;?>"><?php echo $name;?></a>
|
||||
</td>
|
||||
<?php foreach($this->report->AnnualAccounts as $AnnualAccounts): ?>
|
||||
<?php (empty($firstLiabilities))?$firstLiabilities = $this->report->Liabilities->{$name}[$AnnualAccounts->AccountsDate->_]:EOF;?>
|
||||
<td class="right"><?php echo number_format($this->report->Liabilities->{$name}[$AnnualAccounts->AccountsDate->_], 0, '', ' ');?> K€</td>
|
||||
<?php endforeach; ?>
|
||||
<td align="center">
|
||||
<?php if($end > $firstLiabilities):?>
|
||||
<img class="tooltip IMGprint" title="<center><b><?php echo $name;?></b></center><br /><img src='/file/image/cache/q/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.$name;?>-line.png' />" src="/themes/default/images/giant/down.png" />
|
||||
<?php else: ?>
|
||||
<img class="tooltip IMGprint" title="<center><b><?php echo $name;?></b></center><br /><img src='/file/image/cache/q/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.$name;?>-line.png' />" src="/themes/default/images/giant/up.png" />
|
||||
<?php endif;unset($firstLiabilities);?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br />
|
||||
<div class="center">
|
||||
<span class="title">Graphique des passifs</span>
|
||||
<img src="/file/image/cache/q/<?php echo $this->report->CompanyId.'-'.$this->Type.'-';?>passifs.png" />
|
||||
</div>
|
||||
<br />
|
||||
<a name="9"></a>
|
||||
<span class="title">Compte de résultats</span><br />
|
||||
<table id="giant_synthese">
|
||||
<thead>
|
||||
<tr>
|
||||
<th align="center">
|
||||
</th>
|
||||
<?php $i=0; foreach($this->report->AnnualAccounts as $AnnualAccounts): $i++?>
|
||||
<?php $date = new Zend_Date($AnnualAccounts->AccountsDate->_,yyyymmdd);?>
|
||||
<th align="right" class="date"><?php echo $date->toString('dd/mm/yyyy'); ?></th>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<th> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<?php foreach($this->report->ProfitAndLoss as $name => $ProfitAndLoss):?>
|
||||
<?php if(!empty($this->report->ProfitAndLoss->{$name})){$end = end($this->report->ProfitAndLoss->{$name});reset($this->report->ProfitAndLoss->{$name});}else{$end = 0;}?>
|
||||
<?php if(!empty($this->report->ProfitAndLoss->{$name})){$key = $this->report->ProfitAndLoss->{$name}[key($this->report->ProfitAndLoss->{$name})];}else{$key = 0;}?>
|
||||
<?php $val = ($key < $end)?true:false;?>
|
||||
<tr class="<?php echo ($val)? 'red':'green'; ?>">
|
||||
<td class="head">
|
||||
<a class="tooltip" title="<?php echo $name;?>"><?php echo $name;?></a>
|
||||
</td>
|
||||
<?php foreach($this->report->AnnualAccounts as $AnnualAccounts): ?>
|
||||
<?php (empty($firstProfitAndLoss))?$firstProfitAndLoss = $this->report->ProfitAndLoss->{$name}[$AnnualAccounts->AccountsDate->_]:EOF;?>
|
||||
<td class="right"><?php echo number_format($this->report->ProfitAndLoss->{$name}[$AnnualAccounts->AccountsDate->_], 0, '', ' ');?> K€</td>
|
||||
<?php endforeach; ?>
|
||||
<td align="center">
|
||||
<?php if($end > $firstProfitAndLoss):?>
|
||||
<img class="tooltip IMGprint" title="<center><b><?php echo $name;?></b></center><br /><img src='/file/image/cache/q/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.$name;?>-line.png' />" src="/themes/default/images/giant/down.png" />
|
||||
<?php else: ?>
|
||||
<img class="tooltip IMGprint" title="<center><b><?php echo $name;?></b></center><br /><img src='/file/image/cache/q/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.$name;?>-line.png' />" src="/themes/default/images/giant/up.png" />
|
||||
<?php endif;unset($firstProfitAndLoss);?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br />
|
||||
<div class="center">
|
||||
<span class="title">Compte de resultats</span>
|
||||
<img src="/file/image/cache/q/<?php echo $this->report->CompanyId.'-'.$this->Type.'-';?>profitandloss.png" />
|
||||
</div>
|
||||
<br />
|
||||
<br />
|
||||
<a name="10"></a>
|
||||
<span class="title">KeyCreditRatios</span><br />
|
||||
<table id="giant_synthese">
|
||||
<thead>
|
||||
<tr>
|
||||
<th align="center">
|
||||
</th>
|
||||
<?php $i=0; foreach($this->report->AnnualAccounts as $AnnualAccounts): $i++?>
|
||||
<?php $date = new Zend_Date($AnnualAccounts->AccountsDate->_,yyyymmdd);?>
|
||||
<th align="right" class="date"><?php echo $date->toString('dd/mm/yyyy'); ?></th>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<th> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<?php foreach($this->report->KeyCreditRatios as $name => $KeyCreditRatios):?>
|
||||
<?php if(!empty($this->report->KeyCreditRatios->{$name})){$end = end($this->report->KeyCreditRatios->{$name});reset($this->report->KeyCreditRatios->{$name});}else{$end = 0;}?>
|
||||
<?php if(!empty($this->report->KeyCreditRatios->{$name})){$key = $this->report->KeyCreditRatios->{$name}[key($this->report->KeyCreditRatios->{$name})];}else{$key = 0;}?>
|
||||
<?php $val = ($key < $end)?true:false;?>
|
||||
<tr class="<?php echo ($val)? 'red':'green'; ?>">
|
||||
<td class="head">
|
||||
<a class="tooltip" title="<?php echo $name;?>"><?php echo $name;?></a>
|
||||
</td>
|
||||
<?php foreach($this->report->AnnualAccounts as $AnnualAccounts): ?>
|
||||
<?php (empty($firstKeyCreditRatios))?$firstKeyCreditRatios = $this->report->KeyCreditRatios->{$name}[$AnnualAccounts->AccountsDate->_]:EOF;?>
|
||||
<td class="right"><?php echo (!empty($this->report->KeyCreditRatios->{$name}[$AnnualAccounts->AccountsDate->_]))?$this->report->KeyCreditRatios->{$name}[$AnnualAccounts->AccountsDate->_].' %':'NC'?></td>
|
||||
<?php endforeach; ?>
|
||||
<td align="center">
|
||||
<?php if($end > $firstKeyCreditRatios):?>
|
||||
<img class="tooltip IMGprint" title="<center><b><?php echo $name;?></b></center><br /><img src='/file/image/cache/q/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.$name;?>-line.png' />" src="/themes/default/images/giant/down.png" />
|
||||
<?php else: ?>
|
||||
<img class="tooltip IMGprint" title="<center><b><?php echo $name;?></b></center><br /><img src='/file/image/cache/q/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.$name;?>-line.png' />" src="/themes/default/images/giant/up.png" />
|
||||
<?php endif;unset($firstKeyCreditRatios);?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php else:?>
|
||||
<div style="padding:0.7em;" class="ui-state-error ui-corner-all">
|
||||
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
|
||||
Aucun Comptes Annuels (bilans, etc..)
|
||||
</p>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
</div>
|
@ -1,37 +0,0 @@
|
||||
<div class="paragraph">
|
||||
<a name="19"></a>
|
||||
<span class="title">Dirigeants</span><br /><br />
|
||||
<?php if(isset($this->report->Dirigeant)):?>
|
||||
<table style="font-size:13px;margin-left: 19px;" width="97%" class="hoverTr"><pre><?//print_r($this->report->Dirigeant);?></pre>
|
||||
<?php foreach($this->report->Dirigeant as $Dirigeants):?>
|
||||
<?php foreach($Dirigeants as $date => $Dirigeant):?>
|
||||
<tr>
|
||||
<td style="padding:2px;color:#2599E7"><b><?php if(!empty($Dirigeant[0]->date[0]) || !empty($Dirigeant[0]->date[1])){
|
||||
$date1 = new Zend_Date($Dirigeant[0]->date[0],yyyymmdd);$date2 = new Zend_Date($Dirigeant[0]->date[1],yyyymmdd);
|
||||
echo(!empty($Dirigeant[0]->date[0]))?$date1->toString('dd/mm/yyyy'):'NC';echo' - ';
|
||||
echo(!empty($Dirigeant[0]->date[1]))?$date2->toString('dd/mm/yyyy'):'NC';}else{echo 'NC';}?></b></td>
|
||||
</tr>
|
||||
<?php $i=0;?>
|
||||
<?php foreach($Dirigeant as $dir):$i++;?>
|
||||
<tr>
|
||||
<td class="line" style="font-size:12px;padding:5px;">
|
||||
<?php $date3 = new Zend_Date($dir->DateOfBirth->_,yyyymmdd);
|
||||
echo $dir->FirstName.' '.$dir->LastName.'
|
||||
<br /><b>Né(e) le:</b> '.((!empty($dir->DateOfBirth->_))?$date3->toString('dd/mm/yyyy'):'NC').
|
||||
' <br /><b>Domicilié(e) à :</b>'.(($dir->PersonalAddress->HouseNumber!=0)?$dir->PersonalAddress->HouseNumber:'').
|
||||
' '.$dir->PersonalAddress->Street.
|
||||
' '.(($dir->PersonalAddress->PostCode!=0)?$dir->PersonalAddress->PostCode:'NC').
|
||||
' '.$dir->PersonalAddress->City;?></td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
<?php endforeach;?>
|
||||
<?php endforeach;?>
|
||||
</table>
|
||||
<?php else:?>
|
||||
<div style="padding:0.7em;" class="ui-state-error ui-corner-all">
|
||||
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
|
||||
Aucune information sur les dirigeants.
|
||||
</p>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
</div>
|
@ -1,63 +0,0 @@
|
||||
<div class="paragraph historique">
|
||||
<a name="21"></a>
|
||||
<?php if(isset($this->report->Event)):?>
|
||||
<?php foreach($this->report->Event as $name => $Events):?>
|
||||
<span class="title"><?php echo $this->report->EventNew[$name];?></span><br /><br />
|
||||
<form method="POST">
|
||||
<select name="Date" style="float:right" onchange="submit()">
|
||||
<option value="all">Date</option>
|
||||
|
||||
<?php foreach($Events as $date => $event): ?>
|
||||
|
||||
<option <?php
|
||||
preg_match('/(\d{4})(\d{2})(\d{2})/', $date, $matches);$y = $matches[1];$m = $matches[2];$d = $matches[3];
|
||||
echo ((isset($_POST['Date']) and $_POST['Date'] == $y.'/'.$m.'/'.$d)?'SELECTED':EOF); ?> value="<?php echo $y.'/'.$m.'/'.$d;?>">
|
||||
<?php echo ($Events[$date][0]->Date != '//')?$Events[$date][0]->Date:$y.'/'.$m.'/'.$d;?>
|
||||
</option>
|
||||
<?php endforeach;?>
|
||||
</select>
|
||||
</form>
|
||||
<table id="giant_synthese">
|
||||
<thead>
|
||||
<tr>
|
||||
<th align="center" class="date" style='width: 142px;'>Date</th>
|
||||
<th align="right" class="date">Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<?php foreach($Events as $date => $event): ?>
|
||||
<?php
|
||||
preg_match('/(\d{4})(\d{2})(\d{2})/', $date, $matches);$y = $matches[1];$m = $matches[2];$d = $matches[3];
|
||||
foreach($event as $val):?>
|
||||
<?php if(!empty($_POST['Date']) and $_POST['Date'] != 'all'):?>
|
||||
<?php if($y.'/'.$m.'/'.$d == $_POST['Date']):?>
|
||||
<tr title="<?php echo $val->FreeText; ?>">
|
||||
<td align="center" class="head">
|
||||
<a style="cursor:help" class="tooltip" class="tooltip"><?php echo ($val->Date != '//')?$val->Date:$y.'/'.$m.'/'.$d;?></a>
|
||||
</td>
|
||||
<td class="right"><?php echo $val->Description;?></td>
|
||||
</tr>
|
||||
<?php endif;?>
|
||||
<?php else: ?>
|
||||
<tr align="center" style="cursor:help" class="tooltip" title="<?php echo $val->FreeText; ?>">
|
||||
<td class="head">
|
||||
<a class="tooltip"><?php echo ($val->Date != '//')?$val->Date:$y.'/'.$m.'/'.$d;?></a>
|
||||
</td>
|
||||
<td class="right"><?php echo $val->Description;?></td>
|
||||
</tr>
|
||||
<?php endif;?>
|
||||
<?php endforeach;?>
|
||||
<?php endforeach;?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br />
|
||||
<?php endforeach;?>
|
||||
<?php else :?>
|
||||
<div style="padding:0.7em;" class="ui-state-error ui-corner-all">
|
||||
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
|
||||
Aucunes annonces légales
|
||||
</p>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
</div>
|
@ -1,160 +0,0 @@
|
||||
<div class="paragraph">
|
||||
<?php if(isset($this->report)) :?>
|
||||
<?preg_match('/(\d{2})(\d{2})(\d{4})/', $this->report->IncorporationDate, $matches);$d = $matches[1];$m = $matches[2];$y = $matches[3];?>
|
||||
<div>
|
||||
<a name="1"></a>
|
||||
<span class="title">Données officielles</span><br />
|
||||
<table id="giant_synthese">
|
||||
<tbody>
|
||||
<tr >
|
||||
<td class="head" style='width: 169px;'>
|
||||
<a class="tooltip tooltipFont">Nom d'entreprise </a>
|
||||
</td>
|
||||
<td class="right"><?php echo $this->report->CompanyName?></td>
|
||||
</tr>
|
||||
<tr >
|
||||
<td class="head" style='width: 169px;'>
|
||||
<a class="tooltip tooltipFont">Numéro de TVA</a>
|
||||
</td>
|
||||
<td class="right"><?php echo $this->report->Vat?></td>
|
||||
</tr>
|
||||
<tr >
|
||||
<td class="head" style='width: 169px;'>
|
||||
<a class="tooltip tooltipFont">Forme juridique actuelle</a>
|
||||
</td>
|
||||
<td class="right"><?php echo $this->report->LegalForm.' / '.$this->report->UnifiedLegalForm;?></td>
|
||||
</tr>
|
||||
<tr >
|
||||
<td class="head" style='width: 169px;'>
|
||||
<a class="tooltip tooltipFont">Date de constitution</a>
|
||||
</td>
|
||||
<td class="right"><?php echo (!empty($this->report->IncorporationDate))?$d.'/'.$m.'/'.$y:'NC'?></td>
|
||||
</tr>
|
||||
<tr >
|
||||
<td class="head" style='width: 169px;'>
|
||||
<a class="tooltip tooltipFont">Etat de l'entreprise</a>
|
||||
</td>
|
||||
<td class="right"><?php echo $this->report->CompanyStatus?></td>
|
||||
</tr>
|
||||
<tr >
|
||||
<td class="head" style='width: 169px;'>
|
||||
<a class="tooltip tooltipFont">No. Siret</a>
|
||||
</td>
|
||||
<td class="right"><?php echo $this->report->CompanyId?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br />
|
||||
<a name="2"></a><br />
|
||||
<span class="title">Données de contact</span><br />
|
||||
<table id="giant_synthese">
|
||||
<tbody>
|
||||
<tr >
|
||||
<td class="head" style='width: 169px;'>
|
||||
<a class="tooltip tooltipFont">Numéro de téléphone</a>
|
||||
</td>
|
||||
<td class="right"><?php echo $this->report->TelephoneNumber?></td>
|
||||
</tr>
|
||||
<tr >
|
||||
<td class="head" style='width: 169px;'>
|
||||
<a class="tooltip tooltipFont">Numéro de fax</a>
|
||||
</td>
|
||||
<td class="right"><?php echo $this->report->Telefax?></td>
|
||||
</tr>
|
||||
<tr >
|
||||
<td class="head" style='width: 169px;'>
|
||||
<a class="tooltip tooltipFont">Adresse Email</a>
|
||||
</td>
|
||||
<td class="right"><?php echo ($this->report->EmailAddress!='<a href="mailto:"></a>')?$this->report->EmailAddress:'NC'?></td>
|
||||
</tr>
|
||||
<tr >
|
||||
<td class="head" style='width: 169px;'>
|
||||
<a class="tooltip tooltipFont">Site internet</a>
|
||||
</td>
|
||||
<td class="right"><?php echo ($this->report->WebAddress!='<a href="http://"></a>')?$this->report->WebAddress:'NC'?></td>
|
||||
</tr>
|
||||
<tr >
|
||||
<td class="head" style='width: 169px;'>
|
||||
<a class="tooltip tooltipFont">Adresse</a>
|
||||
</td>
|
||||
<td class="right"><?php echo $this->report->CompanyAddress?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<br />
|
||||
<a name="3"></a><br />
|
||||
<?php if(!empty($this->report->activity)):?>
|
||||
<span class="title">Activités</span><br />
|
||||
<table id="giant_synthese">
|
||||
<thead>
|
||||
<tr>
|
||||
<th align="left" class="date">Code</th>
|
||||
<th align="right" class="date">Activité</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<?php foreach($this->report->activity as $code => $activity): ?>
|
||||
<tr>
|
||||
<td class="head" style='width: 169px;'>
|
||||
<a><?php echo $code?></a>
|
||||
</td>
|
||||
<td class="right"><?php echo $activity?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif;?>
|
||||
<br />
|
||||
<?php if(!empty($this->report->Employees)):?>
|
||||
<a name="4"></a><br />
|
||||
<span class="title">Personnel</span><br />
|
||||
<table id="giant_synthese">
|
||||
<thead>
|
||||
<tr>
|
||||
<th align="left" class="date" style='width: 169px;'>Année</th>
|
||||
<th align="right" class="date">Total des travailleurs employés</th>
|
||||
<th align="right" class="date">Équivalent temps plein</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<?php foreach($this->report->Employees as $year => $employees): ?>
|
||||
<tr class="<?php echo ($val)? 'red':'green'; ?>">
|
||||
<td class="left"><?php if(strlen($year)==4)echo $year;elseif(empty($year))echo 'NC'; else {$date = new Zend_Date($year,yyyymmdd); echo $date->toString('dd/mm/yyyy');}?></td>
|
||||
<td class="right"><?php echo $employees['TotalStaffEmployed'];?></td>
|
||||
<td class="right"><?php echo $employees['FulltimeEquivalent'];?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif;?>
|
||||
<br />
|
||||
<?php if(!empty($this->report->ProductName)):?>
|
||||
<a name="5"></a><br />
|
||||
<span class="title">Noms de produit</span><br />
|
||||
<table id="giant_synthese">
|
||||
<thead>
|
||||
<tr>
|
||||
<th align="left" class="date">Source</th>
|
||||
<th align="right" class="date">Produit</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<?php foreach($this->report->ProductName as $ProductName): ?>
|
||||
<tr class="<?php echo ($val)? 'red':'green'; ?>">
|
||||
<td class="head" style='width: 169px;'>
|
||||
<a><?php echo (empty($ProductName->source)?'NC':$ProductName->source);?></a>
|
||||
</td>
|
||||
<td class="right"><?php echo $ProductName->_?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif;?>
|
||||
<?php else: ?>
|
||||
<span style="font-size:13px;margin-left:30px;">Aucunes Informations</span>
|
||||
<?php endif; ?>
|
||||
</div>
|
@ -1,77 +0,0 @@
|
||||
<div class="paragraph">
|
||||
<?php if(isset($this->report->FinancialSummary)):?>
|
||||
<a name="11"></a>
|
||||
<span class="title">Informations Capital</span><br />
|
||||
<?php if(isset($this->report->PositionFinanciere)):?>
|
||||
<table id="giant_synthese">
|
||||
<thead>
|
||||
<tr>
|
||||
<th align="center">
|
||||
</th>
|
||||
<?php $i = 0; foreach($this->report->PositionFinanciereDate as $date => $val):$i++?>
|
||||
<?$date1 = new Zend_Date($date,yyyymmdd);?>
|
||||
<th align="right" class="date"><?php echo $date1->toString('dd/mm/yyyy');?></th>
|
||||
<?php endforeach; ?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<?php foreach($this->report->PositionFinanciere as $name => $PositionFinanciere):?>
|
||||
<tr>
|
||||
<td class="head">
|
||||
<a class="tooltip" title="<?php echo $name;?>"><?php echo $name;?></a>
|
||||
</td>
|
||||
<?php foreach($PositionFinanciere as $element):?>
|
||||
<td class="right"><?php echo $element?></td>
|
||||
<?php endforeach; ?>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php else:?>
|
||||
<div style="padding:0.7em;" class="ui-state-error ui-corner-all">
|
||||
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
|
||||
Aucunes informations sur le capital.
|
||||
</p>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<br />
|
||||
<center>
|
||||
<a name="12"></a>
|
||||
<span class="title">Evolution du capital</span><br /><br />
|
||||
<img src="/file/image/cache/q/<?php echo $this->report->CompanyId.'-'.$this->Type.'-';?>positionFinanciere.png" />
|
||||
</center>
|
||||
<span class="title">Relation banquaires</span><br /><br />
|
||||
<?php if(isset($this->report->Bank)):?>
|
||||
<table style="font-size:13px;margin-left: 19px;" width="97%" class="hoverTr">
|
||||
<tr>
|
||||
<td style="font-size: 14px;padding:5px;"><b>Bank name</b></td>
|
||||
<td style="font-size: 12px;padding:5px;"><b>Code Bak</b></td>
|
||||
<td style="font-size: 12px;padding:5px;"><b>BankAccount</b></td>
|
||||
</tr>
|
||||
<?php foreach($this->report->Bank as $bank):?>
|
||||
<tr>
|
||||
<td style="font-size: 12px;padding:5px;"><?php echo $bank->BankName;?></td>
|
||||
<td style="font-size: 12px;padding:5px;"><?php echo $bank->BankIdentifierCode;?></td>
|
||||
<td style="font-size: 12px;padding:5px;"><?php echo '<i style="font-size:9px;">'.$bank->BankAccount[0]->AccountType.' :</i> '.$bank->BankAccount[0]->AccountNumber;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"><hr style="border:1px dotted silver" /></td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
</table>
|
||||
<?php else:?>
|
||||
<div style="padding:0.7em;" class="ui-state-error ui-corner-all">
|
||||
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
|
||||
Aucunes informations banquaire.
|
||||
</p>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<?php else:?>
|
||||
<div style="padding:0.7em;" class="ui-state-error ui-corner-all">
|
||||
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
|
||||
Aucune Position financiére.
|
||||
</p>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
</div>
|
@ -1,106 +0,0 @@
|
||||
<div class="paragraph">
|
||||
<?php if(isset($this->report->Associated)):?>
|
||||
<a name="16"></a>
|
||||
<span class="title">Actionnaires</span><br /><br />
|
||||
<?php if(isset($this->report->Shareholder)):?>
|
||||
<table id="giant_synthese" style="font-size:12px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th align="right">Identifiant</th>
|
||||
<th align="right">Nom société</th>
|
||||
<th align="right">Pourcentage d'actions</th>
|
||||
<th align="right">IsPrincipalStakeHolder</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<?php foreach($this->report->Shareholder as $Shareholder):?>
|
||||
<tr>
|
||||
<td style="color:#c12b3c" align="center"><?php echo (($Shareholder->Company->CompanyId > 0)?$Shareholder->Company->CompanyId:'-')?></td>
|
||||
<td class="right"><?php echo $Shareholder->Company->CompanyName[0]->_?></td>
|
||||
<td class="right"><?php echo (!empty($Shareholder->Shares->Percentage))?$Shareholder->Shares->Percentage.'%':'NC'?> </td>
|
||||
<td class="right"><?php echo (($Shareholder>IsPrincipalStakeHolder == 1)?'Oui':'Non');?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php else:?>
|
||||
<div style="padding:0.7em;" class="ui-state-error ui-corner-all">
|
||||
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
|
||||
Aucune information sur les actionnaires.
|
||||
</p>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<br />
|
||||
<a name="17"></a>
|
||||
<span class="title">Participations</span><br /><br />
|
||||
<?php if(isset($this->report->Participation)):?>
|
||||
<table id="giant_synthese" style="font-size:12px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th align="right">Identifiant</th>
|
||||
<th align="right">Nom société</th>
|
||||
<th align="right">Pourcentage d'actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<?php foreach($this->report->Participation as $Participation):?>
|
||||
<tr>
|
||||
<td style="color:#c12b3c" align="center"><?php echo (($Participation->Company->CompanyId > 0)?$Participation->Company->CompanyId:'-')?></td>
|
||||
<td class="right"><?php echo $Participation->Company->CompanyName[0]->_?></td>
|
||||
<td class="right"><?php echo (!empty($Participation->Shares->Percentage))?$Participation->Shares->Percentage.'%':'NC'?> </td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php else:?>
|
||||
<div style="padding:0.7em;" class="ui-state-error ui-corner-all">
|
||||
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
|
||||
Aucune information sur les participations.
|
||||
</p>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<br />
|
||||
<a name="18"></a>
|
||||
<span class="title">Etablissements</span><br /><br />
|
||||
<?php if(isset($this->report->Branch)):?>
|
||||
|
||||
|
||||
<table id="giant_synthese" style="font-size:12px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th align="right">Identifiant</th>
|
||||
<th align="right">Nom société</th>
|
||||
<th align="right">Adresse</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<?php foreach($this->report->Branch as $Branch):?>
|
||||
<tr>
|
||||
<td style="color:#c12b3c" align="center"><?php echo (($Branch->BranchId > 0)?$Branch->BranchId:'-')?></td>
|
||||
<td class="right"><?php echo ((isset($Branch->BranchName))?$Branch->BranchName->_:'-')?></td>
|
||||
<td class="right"><?php echo ((isset($Branch->BranchId))?$Branch->BranchAddress[0]->HouseNumber.' '.
|
||||
$Branch->BranchAddress[0]->Street.' '.
|
||||
$Branch->BranchAddress[0]->PostCode.' '.
|
||||
$Branch->BranchAddress[0]->City:'-')?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php else:?>
|
||||
<div style="padding:0.7em;" class="ui-state-error ui-corner-all">
|
||||
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
|
||||
Aucune information sur les établissements.
|
||||
</p>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<?php else:?>
|
||||
<div style="padding:0.7em;" class="ui-state-error ui-corner-all">
|
||||
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
|
||||
Aucune information sur la structure.
|
||||
</p>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
</div>
|
@ -1,9 +0,0 @@
|
||||
<table>
|
||||
<?php foreach($this->fiche as $name => $item): ?>
|
||||
<tr id="info">
|
||||
<td width="30px"></td>
|
||||
<td class="StyleInfoLib" width="250px"><?php echo $name; ?></td>
|
||||
<td class="StyleInfoData" width="300px"><?php echo $item; ?> <?php if($name == "Vat"): var_dump($this->fiche['ValideNumber']); endif ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
@ -1,58 +0,0 @@
|
||||
<b>
|
||||
<?$address=$this->resultat->Address->HouseNumber.':'.$this->resultat->Address->Street.':'.$this->resultat->Address->PostCode.':'.$this->resultat->Address->City;
|
||||
$address=str_replace('/', '_', $address);?>
|
||||
<?if (in_array($this->resultat->CompanyId, $this->TestCompanies)):?>
|
||||
<a href="<?php echo $this->url(
|
||||
array('controller' => 'giant', 'action' => 'identite',
|
||||
'raisonSociale' => $this->resultat->RegisteredName,
|
||||
'CompanyId' => $this->resultat->CompanyId,
|
||||
'CompanyRegisterNumber' => $this->resultat->CompanyRegisterNumber,
|
||||
'Pays' => $this->resultat->Address->Country,
|
||||
'telephone' => $this->resultat->TelephoneNumbers->TelephoneNumber[0],
|
||||
'test' => '0',
|
||||
'Adresse' => $address));?>">
|
||||
<?php echo $this->resultat->RegisteredName.' -'; ?>
|
||||
</a>
|
||||
<span class='testSearch'><a href="<?php echo $this->url(
|
||||
array('controller' => 'giant', 'action' => 'identite',
|
||||
'raisonSociale' => $this->resultat->RegisteredName,
|
||||
'CompanyId' => $this->resultat->CompanyId,
|
||||
'CompanyRegisterNumber' => $this->resultat->CompanyRegisterNumber,
|
||||
'Pays' => $this->resultat->Address->Country,
|
||||
'telephone' => $this->resultat->TelephoneNumbers->TelephoneNumber[0],
|
||||
'test' => '1',
|
||||
'Adresse' => $address));?>">
|
||||
<?php echo ' TEST MODE'; ?>
|
||||
</a></span>
|
||||
<?else:?>
|
||||
<a href="<?php echo $this->url(
|
||||
array('controller' => 'giant', 'action' => 'identite',
|
||||
'raisonSociale' => $this->resultat->RegisteredName,
|
||||
'CompanyId' => $this->resultat->CompanyId,
|
||||
'CompanyRegisterNumber' => $this->resultat->CompanyRegisterNumber,
|
||||
'Pays' => $this->resultat->Address->Country,
|
||||
'telephone' => $this->resultat->TelephoneNumbers->TelephoneNumber[0],
|
||||
'test' => '0',
|
||||
'Adresse' => $address));?>">
|
||||
<?php echo $this->resultat->RegisteredName; ?>
|
||||
</a>
|
||||
<?endif?>
|
||||
</b>
|
||||
<br />
|
||||
<?php if(!empty($this->resultat->CompanyId)):?>
|
||||
<b>CompanyId : <?php echo $this->resultat->CompanyId;?></b><br />
|
||||
<?php endif;?>
|
||||
<?php if(!empty($this->resultat->CompanyRegisterNumber)):?>
|
||||
<i>Numéro : <?php echo $this->resultat->CompanyRegisterNumber;?></i><br/>
|
||||
<?php endif;?>
|
||||
<?php if(!empty($this->resultat->VatNumber)):?>
|
||||
<b>TVA Intracommunautaire :</b> <?php echo $this->resultat->VatNumber;?><br />
|
||||
<?php endif;?>
|
||||
<?php if(!empty($this->resultat->Address)):?>
|
||||
<?php echo ((!empty($this->resultat->Address->HouseNumber))?number_format($this->resultat->Address->HouseNumber, 0):null);?>
|
||||
<?php echo ((!empty($this->resultat->Address->Street))?$this->resultat->Address->Street.'<br />':null)?>
|
||||
<b><?php echo ((!empty($this->resultat->Address->PostCode))?$this->resultat->Address->PostCode.' '.$this->resultat->Address->City.'</b><br />':null);?>
|
||||
<?php endif;?>
|
||||
<?php if(!empty($this->resultat->LegalForm)):?>
|
||||
<i>Forme : <?php echo $this->resultat->LegalForm; ?></i><br /><br />
|
||||
<?php endif;?>
|
@ -1,50 +0,0 @@
|
||||
<?php
|
||||
$titres = array('1. Informations d\'entreprise générales' => array(
|
||||
array('Les données officielles' => '1'),
|
||||
array('Les données de contact' =>'2'),
|
||||
array('Activités de la société' => '3'),
|
||||
array('Personnel / Effectifs' => '4'),
|
||||
array('Nom des produits' => '5')),
|
||||
'2. Avis de crédit' => array(
|
||||
array('Evaluation de la société' => '6')),
|
||||
'3. Compte Annuels' => array(
|
||||
array('Les actif' => '7'),
|
||||
array('Les passif' => '8'),
|
||||
array('Le compte de résultats' => '9'),
|
||||
array('Le keyCreditRatios' => '10')),
|
||||
'4. Position financiére' => array(
|
||||
array('Les informations sur le capital' => '11'),
|
||||
array('Les relation banquaires' => '12')),
|
||||
'5. Comportement de paiement' => array(
|
||||
array('La qualification de paiement' => '13'),
|
||||
array('L\'analyse par sommes' => '14'),
|
||||
array('L\'analyse par périodes' => '15')),
|
||||
'6. Structure de l\'entreprise' => array(
|
||||
array('La liste des actionnaires' => '16'),
|
||||
array('La liste des participations' => '17'),
|
||||
array('La liste des etablissements secondaires' => '18')),
|
||||
'7. Dirigeants' => array(
|
||||
array('La liste des dirigeants' => '19')),
|
||||
'8. Comparaison avec valeurs similaires' => array(
|
||||
array('Comparaison des valeurs (ratios)' => '20')),
|
||||
'9. Historiques'=> array(
|
||||
array('La liste des annonces légales' => '21'))
|
||||
);
|
||||
?>
|
||||
<div id="sommaire" class="<?php echo $this->carte;?>">
|
||||
<fieldset>
|
||||
<legend>Scores & Décisions Sommaire</legend>
|
||||
<div id="printSomm">
|
||||
<ul>
|
||||
<?php foreach($titres as $grandTitre => $titre):?>
|
||||
<li><a name=""><?php echo $grandTitre?></a></li>
|
||||
<?php foreach($titre as $title):?>
|
||||
<?php foreach($title as $name => $ancre):?>
|
||||
<span style="margin-left:25px;"> - <a href="#<?php echo $ancre;?>"><?php echo $name;?></a></span><br />
|
||||
<?php endforeach;?>
|
||||
<?php endforeach;?>
|
||||
<?php endforeach;?>
|
||||
</ul>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
@ -1,190 +0,0 @@
|
||||
<?function emp_check($val){echo (empty($val))?'NC':$val;}?>
|
||||
<div id="center">
|
||||
<div class='acord'>
|
||||
|
||||
<div id="accordion">
|
||||
<?foreach ($this->result as $report):?>
|
||||
<?$eventCode = $report->Company->Event[0]->EventCode;?>
|
||||
<h3><?=$report->Company->Event[0]->Date->_?></h3>
|
||||
<div>
|
||||
|
||||
<h2 class="radius">Données officielles</h2><br /><br />
|
||||
<div class="gen_div">
|
||||
<div><div class="left_div"><b>ProviderEventId</b></div> <div class="right_div"><?emp_check($report->ProviderEventId)?></div></div>
|
||||
<div><div class="left_div"><b>InternalEventId</b></div> <div class="right_div"><?emp_check($report->InternalEventId)?></div></div>
|
||||
<div><div class="left_div"><b>CompanyId </b></div> <div class="right_div"><?emp_check($report->Company->CompanyId)?></div></div>
|
||||
<div><div class="left_div"><b>CompanyName </b></div> <div class="right_div"><?emp_check($report->Company->CompanyName[0]->_)?></div></div>
|
||||
<div><div class="left_div"><b>EventCode </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->EventCode)?></div></div>
|
||||
<div><div class="left_div"><b>Source </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Source->_)?></div></div>
|
||||
<div><div class="left_div"><b>Description </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Description->_)?></div></div>
|
||||
<div><div class="left_div"><b>FreeText </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->FreeText->_)?></div></div>
|
||||
</div>
|
||||
<br /><br />
|
||||
<?if($eventCode=='GENERAL.COMPANY_NAME_CHANGE'||$eventCode=='GENERAL.LEGALFORM_CHANGE'||$eventCode=='GENERAL.POSITION_CHANGE'):?>
|
||||
<h2 class="radius">Old Values</h2><br /><br />
|
||||
<div class="gen_div">
|
||||
<div><div class="left_div"><b>CompanyId </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyId)?></div></div>
|
||||
<div><div class="left_div"><b>CompanyName </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyName[0]->_)?></div></div>
|
||||
</div><br /><br />
|
||||
<h2 class="radius">New Values</h2><br /><br />
|
||||
<div class="gen_div">
|
||||
<div><div class="left_div"><b>CompanyId </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->CompanyId)?></div></div>
|
||||
<div><div class="left_div"><b>CompanyName </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->CompanyName[0]->_)?></div></div>
|
||||
</div>
|
||||
<?endif?>
|
||||
<?if($eventCode=='GENERAL.ADDRESS_CHANGE'):?>
|
||||
<h2 class="radius">Données officielles</h2><br /><br />
|
||||
<div class="gen_div">
|
||||
<div><div class="left_div"><b>OldCompanyName</b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyName[0]->_)?></div></div>
|
||||
<div><div class="left_div"><b>NewCompanyName</b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->CompanyName[0]->_)?></div></div>
|
||||
</div><br /><br />
|
||||
<h2 class="radius">Old Address</h2><br /><br />
|
||||
<div class="gen_div">
|
||||
<div><div class="left_div"><b>Street</b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyAddress[0]->Street)?></div></div>
|
||||
<div><div class="left_div"><b>HouseNumber</b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyAddress[0]->HouseNumber)?></div></div>
|
||||
<div><div class="left_div"><b>PostCode </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyAddress[0]->PostCode)?></div></div>
|
||||
<div><div class="left_div"><b>City </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyAddress[0]->City)?></div></div>
|
||||
<div><div class="left_div"><b>Country </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyAddress[0]->Country)?></div></div>
|
||||
</div><br /><br />
|
||||
<h2 class="radius">New Address</h2><br /><br />
|
||||
<div class="gen_div">
|
||||
<div><div class="left_div"><b>Street</b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->CompanyAddress[0]->Street)?></div></div>
|
||||
<div><div class="left_div"><b>HouseNumber</b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->CompanyAddress[0]->HouseNumber)?></div></div>
|
||||
<div><div class="left_div"><b>PostCode </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->CompanyAddress[0]->PostCode)?></div></div>
|
||||
<div><div class="left_div"><b>City </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->CompanyAddress[0]->City)?></div></div>
|
||||
<div><div class="left_div"><b>Country </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->CompanyAddress[0]->Country)?></div></div>
|
||||
</div>
|
||||
|
||||
<?elseif($eventCode=='GENERAL.LEGALFORM_CHANGE'):?>
|
||||
<h2 class="radius">Old LegalForm</h2><br /><br />
|
||||
<div class="gen_div">
|
||||
<div><div class="left_div"><b>CountryLegalForm </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->LegalForm[0]->CountryLegalForm->_)?></div></div>
|
||||
<div><div class="left_div"><b>UnifiedLegalForm </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->LegalForm[0]->UnifiedLegalForm)?></div></div>
|
||||
<div><div class="left_div"><b>FoundedAsLegalForm </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->LegalForm[0]->FoundedAsLegalForm->_)?></div></div>
|
||||
<div><div class="left_div"><b>AddressLine </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyAddress[0]->FlexibleAddress->AddressLine[0])?></div></div>
|
||||
<div><div class="left_div"><b>Country </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->LegalForm[0]->Country)?></div></div>
|
||||
<div><div class="left_div"><b>IsSocial </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->LegalForm[0]->IsSocial)?></div></div>
|
||||
<div><div class="left_div"><b>IsCivil </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->LegalForm[0]->IsCivil)?></div></div>
|
||||
</div><br /><br />
|
||||
<h2 class="radius">New LegalForm</h2><br /><br />
|
||||
<div class="gen_div">
|
||||
<div><div class="left_div"><b>CountryLegalForm </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->LegalForm[0]->CountryLegalForm->_)?></div></div>
|
||||
<div><div class="left_div"><b>UnifiedLegalForm </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->LegalForm[0]->UnifiedLegalForm)?></div></div>
|
||||
<div><div class="left_div"><b>FoundedAsLegalForm </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->LegalForm[0]->FoundedAsLegalForm->_)?></div></div>
|
||||
<div><div class="left_div"><b>AddressLine </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->CompanyAddress[0]->FlexibleAddress->AddressLine[0])?></div></div>
|
||||
<div><div class="left_div"><b>Country </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->LegalForm[0]->Country)?></div></div>
|
||||
<div><div class="left_div"><b>IsSocial </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->LegalForm[0]->IsSocial)?></div></div>
|
||||
<div><div class="left_div"><b>IsCivil </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->LegalForm[0]->IsCivil)?></div></div>
|
||||
</div>
|
||||
<?elseif($eventCode=='GENERAL.POSITION_CHANGE'):?>
|
||||
<h2 class="radius">Old Position</h2><br /><br />
|
||||
<div class="gen_div">
|
||||
<div><div class="left_div"><b>FirstName </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->Position[0]->Person->FirstName)?></div></div>
|
||||
<div><div class="left_div"><b>LastName </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->Position[0]->Person->LastName)?></div></div>
|
||||
<div><div class="left_div"><b>Initials </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->Position[0]->Person->Initials)?></div></div>
|
||||
<div><div class="left_div"><b>Title </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->Position[0]->Person->Title)?></div></div>
|
||||
<div><div class="left_div"><b>Position StartDate </b></div> <div class="right_div"><?$date = new Zend_Date($report->Company->Event[0]->Value[0]->Company[0]->Position[0]->Period->StartDate->_,yyyymmdd);?><?emp_check($date->toString('dd/mm/yyyy'))?></div></div>
|
||||
<div><div class="left_div"><b>Position EndDate </b></div> <div class="right_div"><?$date = new Zend_Date($report->Company->Event[0]->Value[0]->Company[0]->Position[0]->Period->EndDate->_,yyyymmdd);?><?emp_check($date->toString('dd/mm/yyyy'))?></div></div>
|
||||
<div><div class="left_div"><b>PositionChangeReason </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->Position[0]->PositionChangeReason)?></div></div>
|
||||
<div><div class="left_div"><b>PositionTitle </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->Position[0]->PositionTitle->_)?></div></div>
|
||||
<div><div class="left_div"><b>Type </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->Position[0]->Type)?></div></div>
|
||||
</div><br /><br />
|
||||
<h2 class="radius">New Position</h2><br /><br />
|
||||
<div class="gen_div">
|
||||
<div><div class="left_div"><b>FirstName </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->Position[0]->Person->FirstName)?></div></div>
|
||||
<div><div class="left_div"><b>LastName </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->Position[0]->Person->LastName)?></div></div>
|
||||
<div><div class="left_div"><b>Initials </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->Position[0]->Person->Initials)?></div></div>
|
||||
<div><div class="left_div"><b>Title </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->Position[0]->Person->Title)?></div></div>
|
||||
<div><div class="left_div"><b>Position StartDate </b></div> <div class="right_div"><?$date = new Zend_Date($report->Company->Event[0]->Value[1]->Company[0]->Position[0]->Period->StartDate->_,yyyymmdd);?><?emp_check($date->toString('dd/mm/yyyy'))?></div></div>
|
||||
<div><div class="left_div"><b>Position EndDate </b></div> <div class="right_div"><?$date = new Zend_Date($report->Company->Event[0]->Value[1]->Company[0]->Position[0]->Period->EndDate->_,yyyymmdd);?><?emp_check($date->toString('dd/mm/yyyy'))?></div></div>
|
||||
<div><div class="left_div"><b>PositionChangeReason </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->Position[0]->PositionChangeReason)?></div></div>
|
||||
<div><div class="left_div"><b>PositionTitle </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->Position[0]->PositionTitle->_)?></div></div>
|
||||
<div><div class="left_div"><b>Type </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->Position[0]->Type)?></div></div>
|
||||
</div><br /><br />
|
||||
<?elseif($eventCode=='GENERAL.MERGER'):?>
|
||||
<h2 class="radius">Parameterized Description</h2><br /><br />
|
||||
<div class="gen_div">
|
||||
<div><div class="left_div"><b>ProviderEventId</b></div> <div class="right_div"><?emp_check($report->ProviderEventId)?></div></div>
|
||||
<div><div class="left_div"><b>DescriptionElement </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->ParameterizedDescription->DescriptionElement->_)?></div></div>
|
||||
<?foreach ($report->Company->Event[0]->ParameterizedDescription->Parameter as $Parameter):?>
|
||||
<div><div class="left_div"><b>Parameter <?emp_check($Parameter->paramname)?></b></div> <div class="right_div"><?emp_check($Parameter->_)?></div></div>
|
||||
<?endforeach;?>
|
||||
</div>
|
||||
<br /><br />
|
||||
<h2 class="radius">Values</h2><br /><br />
|
||||
<div class="gen_div">
|
||||
<div><div class="left_div"><b>CompanyId </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyId)?></div></div>
|
||||
<div><div class="left_div"><b>CompanyName </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyName[0]->_)?></div></div>
|
||||
</div><br /><br />
|
||||
<h2 class="radius">LegalForm</h2><br /><br />
|
||||
<div class="gen_div">
|
||||
<div><div class="left_div"><b>CountryLegalForm </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->LegalForm[0]->CountryLegalForm->_)?></div></div>
|
||||
<div><div class="left_div"><b>UnifiedLegalForm </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->LegalForm[0]->UnifiedLegalForm)?></div></div>
|
||||
<div><div class="left_div"><b>HouseNumber</b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyAddress[0]->HouseNumber)?></div></div>
|
||||
<div><div class="left_div"><b>Street</b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyAddress[0]->Street)?></div></div>
|
||||
<div><div class="left_div"><b>Country </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->LegalForm[0]->Country)?></div></div>
|
||||
</div><br /><br />
|
||||
<?elseif($eventCode=='GENERAL.SPLIT_UP'):?>
|
||||
<h2 class="radius">Parameterized Description</h2><br /><br />
|
||||
<div class="gen_div">
|
||||
<div><div class="left_div"><b>ProviderEventId</b></div> <div class="right_div"><?emp_check($report->ProviderEventId)?></div></div>
|
||||
<div><div class="left_div"><b>DescriptionElement </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->ParameterizedDescription->DescriptionElement->_)?></div></div>
|
||||
<?foreach ($report->Company->Event[0]->ParameterizedDescription->Parameter as $Parameter):?>
|
||||
<div><div class="left_div"><b>Parameter <?emp_check($Parameter->paramname)?></b></div> <div class="right_div"><?emp_check($Parameter->_)?></div></div>
|
||||
<?endforeach;?>
|
||||
</div>
|
||||
<br /><br />
|
||||
<h2 class="radius">Old Values</h2><br /><br />
|
||||
<div class="gen_div">
|
||||
<div><div class="left_div"><b>CompanyId </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyId)?></div></div>
|
||||
<div><div class="left_div"><b>CompanyName </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyName[0]->_)?></div></div>
|
||||
</div><br /><br />
|
||||
<h2 class="radius">Old LegalForm</h2><br /><br />
|
||||
<div class="gen_div">
|
||||
<div><div class="left_div"><b>CountryLegalForm </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->LegalForm[0]->CountryLegalForm->_)?></div></div>
|
||||
<div><div class="left_div"><b>UnifiedLegalForm </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->LegalForm[0]->UnifiedLegalForm)?></div></div>
|
||||
<div><div class="left_div"><b>HouseNumber</b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyAddress[0]->HouseNumber)?></div></div>
|
||||
<div><div class="left_div"><b>Street</b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyAddress[0]->Street)?></div></div>
|
||||
<div><div class="left_div"><b>Country </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->LegalForm[0]->Country)?></div></div>
|
||||
</div><br /><br />
|
||||
<?foreach ($report->Company->Event[0]->Value[1]->Company as $Company):?>
|
||||
<h2 class="radius">Values</h2><br /><br />
|
||||
<div class="gen_div">
|
||||
<div><div class="left_div"><b>CompanyId </b></div> <div class="right_div"><?emp_check($Company->CompanyId)?></div></div>
|
||||
<div><div class="left_div"><b>CompanyName </b></div> <div class="right_div"><?emp_check($Company->CompanyName[0]->_)?></div></div>
|
||||
</div><br /><br />
|
||||
<h2 class="radius">LegalForm</h2><br /><br />
|
||||
<div class="gen_div">
|
||||
<div><div class="left_div"><b>CountryLegalForm </b></div> <div class="right_div"><?emp_check($Company->LegalForm[0]->CountryLegalForm->_)?></div></div>
|
||||
<div><div class="left_div"><b>UnifiedLegalForm </b></div> <div class="right_div"><?emp_check($Company->LegalForm[0]->UnifiedLegalForm)?></div></div>
|
||||
<div><div class="left_div"><b>HouseNumber</b></div> <div class="right_div"><?emp_check($Company->CompanyAddress[0]->HouseNumber)?></div></div>
|
||||
<div><div class="left_div"><b>Street</b></div> <div class="right_div"><?emp_check($Company->CompanyAddress[0]->Street)?></div></div>
|
||||
<div><div class="left_div"><b>Country </b></div> <div class="right_div"><?emp_check($Company->LegalForm[0]->Country)?></div></div>
|
||||
</div><br /><br />
|
||||
<?endforeach;?>
|
||||
<?elseif($eventCode=='FINANCIAL.ANNUAL_ACCOUNT_AVAILABLE' || 'FINANCIAL.ANNUAL_ACCOUNT_FILED'):?>
|
||||
<h2 class="radius">Parameterized Description</h2><br /><br />
|
||||
<div class="gen_div">
|
||||
<div><div class="left_div"><b>ProviderEventId</b></div> <div class="right_div"><?emp_check($report->ProviderEventId)?></div></div>
|
||||
<div><div class="left_div"><b>DescriptionElement </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->ParameterizedDescription->DescriptionElement->_)?></div></div>
|
||||
<?foreach ($report->Company->Event[0]->ParameterizedDescription->Parameter as $Parameter):?>
|
||||
<div><div class="left_div"><b>Parameter</b></div> <div class="right_div"><?emp_check($Parameter->_)?></div></div>
|
||||
<?endforeach;?>
|
||||
</div>
|
||||
<br /><br />
|
||||
<?elseif($eventCode=='FINANCIAL.CREDIT_RECOMMENDATION_CHANGE'):?>
|
||||
<h2 class="radius">Old CreditRecommendation</h2><br /><br />
|
||||
<div class="gen_div">
|
||||
<div><div class="left_div"><b>RatingName </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CreditRecommendation[0]->RiskClasses->CommonRiskClass->RatingName->_)?></div></div>
|
||||
<div><div class="left_div"><b>RatingValue </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CreditRecommendation[0]->RiskClasses->CommonRiskClass->RatingValue)?></div></div>
|
||||
</div><br /><br />
|
||||
<h2 class="radius">New CreditRecommendation</h2><br /><br />
|
||||
<div class="gen_div">
|
||||
<div><div class="left_div"><b>RatingName </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->CreditRecommendation[0]->RiskClasses->CommonRiskClass->RatingName->_)?></div></div>
|
||||
<div><div class="left_div"><b>RatingValue </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->CreditRecommendation[0]->RiskClasses->CommonRiskClass->RatingValue)?></div></div>
|
||||
</div><br /><br />
|
||||
<?endif?>
|
||||
</div><?endforeach;?>
|
||||
</div>
|
||||
</div>
|
||||
</div><script>$( "#accordion" ).accordion({heightStyle: "content", collapsible: true,active: false });</script>
|
@ -1,144 +0,0 @@
|
||||
<div id="center">
|
||||
<h1 class="titre">Surveillances</h1>
|
||||
<div class="paragraph">
|
||||
<?php
|
||||
if ( empty($this->source) ){
|
||||
?>
|
||||
<table id="info">
|
||||
<tr>
|
||||
<td width="200" class="StyleInfoLib">Nombre d'entités affichées</td>
|
||||
<td><?=count($this->result->MonitoringEvents->MonitoringEvent)?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200" class="StyleInfoLib">Nombre de surveillances</td>
|
||||
<td><?=count($this->val)?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
<table id="info">
|
||||
<tr>
|
||||
<td width="200" class="StyleInfoLib">Nombre de surveillances <?=$this->source?></td>
|
||||
<td><?=$this->nbSurveillances?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h2>Liste des surveillances</h2>
|
||||
<div class='monitor_but'>
|
||||
<a class="dial" title="Start Monitoring" href='/giant/startmonitoring/CompanyId/<?=$this->CompanyId?>/Pays/<?=$this->Pays?>/lang/<?=serialize($this->listeRapport->MonitoringOptions->MonitoringOption[0]->LanguageCodes->LanguageCode)?>/CompanyName/<?=str_replace(' ', '+', $this->raisonSociale)?>'>Start New Monitoring</a>
|
||||
</div>
|
||||
|
||||
<div class="paragraph">
|
||||
<table class="tablesorter" id="surveillance" width="570">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="75">Dénomination Sociale (Siret)</th>
|
||||
<th width="110">Start Monitoring</th>
|
||||
<th width="110">End Monitoring</th>
|
||||
<th width="75">Lang</th>
|
||||
<th width="75">Count</th>
|
||||
<th width="150">Event Type</th>
|
||||
<th width="110">Last Change</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><pre><? //print_r($this->val_siren);?></pre>
|
||||
<?php foreach ($this->val_siren as $monitor) {?>
|
||||
<pre><? //print_r($monitor);?></pre>
|
||||
<?
|
||||
//STORE BY ProviderOrderId
|
||||
$merged = Array();
|
||||
foreach ($monitor as $MonitoringEvent):
|
||||
if ($merged[$MonitoringEvent->ProviderOrderId]){
|
||||
array_push($merged[$MonitoringEvent->ProviderOrderId],$MonitoringEvent) ;
|
||||
} else {
|
||||
$merged[$MonitoringEvent->ProviderOrderId][]=$MonitoringEvent;
|
||||
}
|
||||
endforeach;
|
||||
?>
|
||||
|
||||
<? foreach ($merged as $MonitoringEv):
|
||||
//STORE BY type
|
||||
$merged_type = Array();
|
||||
foreach ($MonitoringEv as $MonitoringType):
|
||||
if ($merged_type[$MonitoringType->Company->Event[0]->EventCode]){
|
||||
array_push($merged_type[$MonitoringType->Company->Event[0]->EventCode],$MonitoringType) ;
|
||||
} else {
|
||||
$merged_type[$MonitoringType->Company->Event[0]->EventCode][]=$MonitoringType;
|
||||
}
|
||||
endforeach;
|
||||
?>
|
||||
<?$resultDB=unserialize($this->action('ret', 'giant',null,array('date_st'=>current($merged_type)[0]->ProviderOrderId)));?>
|
||||
<? $frontendOptions = array('lifetime' => $this->configVal->cache->lifetime,'automatic_serialization' => true);
|
||||
$backendOptions = array('cache_dir' => $c->profil->path->shared . '/giant/');
|
||||
$cache = Zend_Cache::factory('Output','File',$frontendOptions,$backendOptions);
|
||||
if(($lang = $cache->load('Pays_'.$resultDB['Pays'])) === false) {
|
||||
$lang = 'en';
|
||||
}
|
||||
$language =$lang->MonitoringOptions->MonitoringOption[0]->LanguageCodes->LanguageCode;
|
||||
?>
|
||||
<pre><?//var_dump($resultDB);?></pre>
|
||||
<tr>
|
||||
<td>
|
||||
<p><?=$MonitoringEv[0]->Company->CompanyName['0']->_ ?> (<?=$MonitoringEv[0]->Company->CompanyId ?>)</p>
|
||||
<a class="dialogsurv dial" title="Start Monitoring" href='/giant/startmonitoring/CompanyId/<?=$MonitoringEv[0]->Company->CompanyId?>/Pays/<?=$resultDB['Pays']?>/lang/<?=serialize($language)?>/CompanyName/<?=str_replace(' ', '+',$MonitoringEv[0]->Company->CompanyName['0']->_)?>'><img src="/themes/default/images/interfaces/ajouter.png"/></a>
|
||||
<a class="dialogsurv dial" title="Stop Monitoring" href='/giant/stopmonitoring/CompanyId/<?=$MonitoringEv[0]->Company->CompanyId?>/Pays/<?=$resultDB['Pays']?>/InternalOrderId/<?=$resultDB['InternalOrderId']?>/CompanyName/<?=str_replace(' ', '+', $MonitoringEv[0]->Company->CompanyName['0']->_)?>'><img src="/themes/default/images/interfaces/supprimer.png"/></a>
|
||||
<a class="dialogsurv dial" title="Update Monitoring" href='/giant/updatemonitoring/CompanyId/<?=$MonitoringEv[0]->Company->CompanyId?>/Pays/<?=$resultDB['Pays']?>/lang/<?=serialize($language)?>/InternalOrderId/<?=$resultDB['InternalOrderId']?>/CompanyName/<?=str_replace(' ', '+', $MonitoringEv[0]->Company->CompanyName['0']->_)?>'><img src="/themes/default/images/interfaces/editer.png"/></a>
|
||||
</td>
|
||||
<td>
|
||||
<?php
|
||||
echo "<p>".$resultDB['ActualStartDate'].'</p>';
|
||||
?>
|
||||
</td>
|
||||
<td>
|
||||
<?php
|
||||
echo "<p>".$resultDB['ActualEndDate'].'</p>';
|
||||
?>
|
||||
</td>
|
||||
<td>
|
||||
<?php
|
||||
echo "<p>".$resultDB['Language'].'</p>';
|
||||
?>
|
||||
</td>
|
||||
<td>
|
||||
<?php
|
||||
|
||||
foreach ($merged_type as $monitor_type) {
|
||||
echo "<p>".count($monitor_type).'</p>';
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<td style='text-align: left'>
|
||||
<?php
|
||||
foreach ($merged_type as $monitor_type) {
|
||||
$name = explode('.', $monitor_type[0]->Company->Event[0]->EventCode);
|
||||
echo "<a class='ev_code' title='".$monitor_type[0]->Company->Event[0]->EventCode."' href='/giant/retevents/Type/".$monitor_type[0]->Company->Event[0]->EventCode."/Id/".$monitor_type[0]->ProviderOrderId."'><p>".$name[1]."</p></a>";
|
||||
} //Fin foreach?>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<?php
|
||||
foreach ($merged_type as $monitor_type) {
|
||||
$dateEv= Array();
|
||||
foreach ($monitor_type as $last_date) {
|
||||
$dateEv[]=$last_date->Company->Event[0]->Date->_;
|
||||
}
|
||||
echo "<p style='width: 70px;'>".max($dateEv)."</p>";
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<?php endforeach; } ?>
|
||||
</tbody>
|
||||
</table><br>
|
||||
</div>
|
||||
</div>
|
@ -1,52 +0,0 @@
|
||||
<div id="center">
|
||||
<?php if ($this->resultats->NumberOfHits == 0): ?>
|
||||
<p>Aucun résultats</p>
|
||||
<?php else: ?>
|
||||
<div class="giant-search">
|
||||
<p align="center"><b>
|
||||
<?php echo number_format($this->resultats->NumberOfHits, 0, ',', ' ')?>
|
||||
réponses avec les critères <a href="<?php echo $this->lienReferer;?>">"<?php echo $this->referer; ?>"</a>.
|
||||
<?php echo ($this->resultats->NumberOfHits>$this->userMaxResult)?$this->userMaxResult:$this->resultats->NumberOfHits?> résultats affichés.
|
||||
Page <?php echo $this->page + 1 .'/'.round($this->resultats->NumberOfHits/$this->userMaxResult)?></b>
|
||||
</p>
|
||||
<ol start="<?php echo ($this->userMaxResult * $this->page) + 1; ?>">
|
||||
<?php foreach ($this->resultats->Results->Company as $resultat) :?>
|
||||
<?php if($this->debug):?>
|
||||
<?php echo $this->action('identite', 'debug', null, array('resultat' => $resultat, 'soap' => $this->soap));?>
|
||||
<?php endif;?>
|
||||
<li>
|
||||
<?php echo $this->partial('giant/partials/rowSearch.phtml', array('resultat' => $resultat, 'TestCompanies' => $this->TestCompanies, 'pays', $this->pays));?>
|
||||
</li>
|
||||
<?php endforeach;?>
|
||||
</ol>
|
||||
<div id="Paginator">
|
||||
<center>
|
||||
<table>
|
||||
<tr>
|
||||
<?php if ($this->page > 0):?>
|
||||
<td>
|
||||
<a href="<?php echo $this->url(array('controller' => 'giant', 'action' => 'search', 'page' => $this->page - 1, 'pays' => $this->pays)) ?>">
|
||||
<img src="/themes/default/images/boutton_precedent_off.gif" onmouseover="this.src='/themes/default/images/boutton_precedent_on.gif'" onmouseout="this.src='/themes/default/images/boutton_precedent_off.gif'" />
|
||||
</a>
|
||||
</td>
|
||||
<?php endif;?>
|
||||
<td valign="middle"> Page <?php echo $this->page + 1 .'/'. round(($this->resultats->NumberOfHits > $this->userMaxResult)?$this->resultats->NumberOfHits/$this->userMaxResult:1);?> </td>
|
||||
<?php if ($this->userMaxResult < $this->resultats->NumberOfHits):?>
|
||||
<td>
|
||||
<a href="<?php echo $this->url(array('controller' => 'giant', 'action' => 'search', 'page' => $this->page + 1, 'pays' => $this->pays)) ?>">
|
||||
<img src="/themes/default/images/boutton_suivant_off.gif" onmouseover="this.src='/themes/default/images/boutton_suivant_on.gif'" onmouseout="this.src='/themes/default/images/boutton_suivant_off.gif'" />
|
||||
</a>
|
||||
</td>
|
||||
<?php endif;?>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</div>
|
||||
<br />
|
||||
<p id="contact">
|
||||
<b>Si aucun résultat ne correspond à votre recherche.
|
||||
<a href="<?php echo $this->url(array('controller' => 'giant', 'action' => 'contact'))?>">Cliquez-ici.</a></b>
|
||||
</p>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
</div>
|
@ -1,79 +0,0 @@
|
||||
<div id="center">
|
||||
<form>
|
||||
<input type="hidden" name="Pays" value="<?=$this->Pays?>" />
|
||||
<input type="hidden" name="action" value="<?=$this->action?>" />
|
||||
<input type="hidden" name="CompanyName" value="<?=$this->CompanyName?>" />
|
||||
<p>
|
||||
|
||||
|
||||
<div style='width: 250px; float: left;'>
|
||||
<strong>CompanyId: </strong><br />
|
||||
<input type="text" name="CompanyId" value="<?=$this->CompanyId?>" <?if (!empty($this->CompanyId)):?>disabled="disabled"<?endif?> required /><br /><br />
|
||||
<strong>Category Name: </strong><br />
|
||||
<select name="CategoryName" class="all_select">
|
||||
<option value='All'>All</option>
|
||||
<option value='CreditRecommendation'>CreditRecommendation</option>
|
||||
</select><br /><br />
|
||||
<strong>Event Type: </strong><br />
|
||||
<select name="EventType" class="all_select">
|
||||
<option value='EventOnly'>EventOnly</option>
|
||||
<option value='EventWithData'>EventWithData</option>
|
||||
</select><br /><br />
|
||||
<strong>Language Code: </strong><br />
|
||||
<select name="LanguageCode" class="all_select">
|
||||
<?php foreach (unserialize($this->lang) as $key=>$language):?>
|
||||
<option class="lang<?=$key;?>" value=<?=$language;?>><?=$language;?></option>
|
||||
<?php endforeach;?>
|
||||
</select><br /><br />
|
||||
</div>
|
||||
<div>
|
||||
<strong>Country: </strong><br />
|
||||
<?if (!empty($this->CompanyId)):?>
|
||||
<?php $country = array ('FR'=>'France','BE'=>'Belgium','ES'=>'Spain','GB'=>'United Kingdom','NL'=>'The Netherlands',)?>
|
||||
<select name="Pays" class="all_select" required>
|
||||
<option value="FR"><?= $country[$this->Pays] ?></option>
|
||||
</select><br /><br />
|
||||
<?else:?>
|
||||
<select name="Pays" class="all_select" required>
|
||||
<?foreach($this->countries as $key=>$pays):?>
|
||||
<option value="<?=$key?>"><?=$pays?></option>
|
||||
<?endforeach?>
|
||||
</select><br /><br />
|
||||
<?endif?>
|
||||
<strong>Preferred Start Date: </strong><br />
|
||||
<input type="text" class='datepicker' name="StartDate" value=""/> optional<br /><br />
|
||||
<strong>Preferred End Date: </strong><br />
|
||||
<input type="text" class='datepicker' name="EndDate" value="" /> optional<br /><br />
|
||||
<strong>Monitoring Version: </strong><br />
|
||||
<input type="text" name="Version" value="1.0" required /><br /><br />
|
||||
</div>
|
||||
</p>
|
||||
</form>
|
||||
<div id="loading" class="hide_monitor" style="display:none;z-index: 1;">
|
||||
<center><img style="padding-top:30%" src="/themes/default/images/giant/19-1.gif" /></center>
|
||||
</div>
|
||||
<?if ($this->result) :?>
|
||||
<div class="gen_div">
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>InternalOrderId</b></div> <div class="right_div"><?=$this->result->Order->InternalOrderId?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>ConsumerId</b></div> <div class="right_div"><?=$this->result->Order->ConsumerId?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>CustomerId</b></div> <div class="right_div"><?=$this->result->Order->CustomerId?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>ProviderId</b></div> <div class="right_div"><?=$this->result->Order->ProviderId?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>CountryCode</b></div> <div class="right_div"><?=$this->result->Order->CountryCode?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>CompanyId</b></div> <div class="right_div"><?=$this->result->Order->CompanyId?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>OrderType</b></div> <div class="right_div"><?=$this->result->Order->OrderType?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>EventType</b></div> <div class="right_div"><?=$this->result->Order->EventType?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>CategoryName</b></div> <div class="right_div"><?=$this->result->Order->CategoryName?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>Version</b></div> <div class="right_div"><?=$this->result->Order->Version?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>LanguageCode</b></div> <div class="right_div"><?=$this->result->Order->LanguageCode?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>OrderStatus</b></div> <div class="right_div"><?=$this->result->Order->OrderStatus?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>OrderDateTime</b></div> <div class="right_div"><?=$this->result->Order->OrderDateTime?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>DateTimeCompleted</b></div> <div class="right_div"><?=$this->result->Order->DateTimeCompleted?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>PreferredStartDate</b></div> <div class="right_div"><?=$this->result->Order->PreferredStartDate?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>ActualStartDate</b></div> <div class="right_div"><?=$this->result->Order->ActualStartDate?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>PreferredEndDate</b></div> <div class="right_div"><?=$this->result->Order->PreferredEndDate?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>ActualEndDate</b></div> <div class="right_div"><?=$this->result->Order->ActualEndDate?></div></div>
|
||||
</div>
|
||||
<?endif?>
|
||||
</div>
|
||||
<script type="text/javascript" src="/themes/default/scripts/giant_monitoring.js" />
|
||||
<script type="text/javascript" src="/themes/default/scripts/giant.js" />
|
@ -1,45 +0,0 @@
|
||||
<div id="center">
|
||||
<form>
|
||||
<input type="hidden" name="CompanyId" value="<?=$this->CompanyId?>" />
|
||||
<input type="hidden" name="Pays" value="<?=$this->Pays?>" />
|
||||
<input type="hidden" name="action" value="<?=$this->action?>" />
|
||||
<p>
|
||||
<strong>CompanyId: </strong><?=$this->CompanyId?><br /><br />
|
||||
<strong>Company Name: </strong><?=$this->CompanyName?><br /><br />
|
||||
|
||||
<div style='width: 250px; float: left;'>
|
||||
<strong>Internal Order Id: </strong><br />
|
||||
<input type="text" name="InternalOrderId" value="<?=$this->InternalOrderId?>" required /><br /><br />
|
||||
</div>
|
||||
<div>
|
||||
<strong>Preferred End Date: </strong><br />
|
||||
<input type="text" class='datepicker' name="EndDate" value="" required /> optional<br /><br />
|
||||
</div>
|
||||
</p>
|
||||
</form>
|
||||
<div id="loading" class="hide_monitor" style="display:none;z-index: 1;">
|
||||
<center><img style="padding-top:30%" src="/themes/default/images/giant/19-1.gif" /></center>
|
||||
</div>
|
||||
<?if ($this->result) :?>
|
||||
<div class="gen_div">
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>InternalOrderId</b></div> <div class="right_div"><?=$this->result->Order->InternalOrderId?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>ConsumerId</b></div> <div class="right_div"><?=$this->result->Order->ConsumerId?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>CustomerId</b></div> <div class="right_div"><?=$this->result->Order->CustomerId?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>ProviderId</b></div> <div class="right_div"><?=$this->result->Order->ProviderId?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>CountryCode</b></div> <div class="right_div"><?=$this->result->Order->CountryCode?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>CompanyId</b></div> <div class="right_div"><?=$this->result->Order->CompanyId?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>OrderType</b></div> <div class="right_div"><?=$this->result->Order->OrderType?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>EventType</b></div> <div class="right_div"><?=$this->result->Order->EventType?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>CategoryName</b></div> <div class="right_div"><?=$this->result->Order->CategoryName?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>Version</b></div> <div class="right_div"><?=$this->result->Order->Version?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>LanguageCode</b></div> <div class="right_div"><?=$this->result->Order->LanguageCode?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>OrderStatus</b></div> <div class="right_div"><?=$this->result->Order->OrderStatus?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>OrderDateTime</b></div> <div class="right_div"><?=$this->result->Order->OrderDateTime?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>DateTimeCompleted</b></div> <div class="right_div"><?=$this->result->Order->DateTimeCompleted?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>ActualStartDate</b></div> <div class="right_div"><?=$this->result->Order->ActualStartDate?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>PreferredEndDate</b></div> <div class="right_div"><?=$this->result->Order->PreferredEndDate?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>ActualEndDate</b></div> <div class="right_div"><?=$this->result->Order->ActualEndDate?></div></div>
|
||||
</div>
|
||||
<?endif?>
|
||||
</div>
|
||||
<script type="text/javascript" src="/themes/default/scripts/giant_monitoring.js" />
|
@ -1,66 +0,0 @@
|
||||
<div id="center">
|
||||
<form>
|
||||
<input type="hidden" name="CompanyId" value="<?=$this->CompanyId?>" />
|
||||
<input type="hidden" name="Pays" value="<?=$this->Pays?>" />
|
||||
<input type="hidden" name="action" value="<?=$this->action?>" />
|
||||
<p>
|
||||
<strong>CompanyId: </strong><?=$this->CompanyId?><br /><br />
|
||||
<strong>Company Name: </strong><?=$this->CompanyName?><br /><br />
|
||||
|
||||
<div style='width: 250px; float: left;'>
|
||||
<strong>Internal Order Id: </strong><br />
|
||||
<input type="text" name="InternalOrderId" value="<?=$this->InternalOrderId?>" required /><br /><br />
|
||||
<strong>New Category Name: </strong><br />
|
||||
<select name="CategoryName" class="all_select">
|
||||
<option value=''></option>
|
||||
<option value='All'>All</option>
|
||||
<option value='CreditRecommendation'>CreditRecommendation</option>
|
||||
</select> optional<br /><br />
|
||||
<strong>New Event Type: </strong><br />
|
||||
<select name="EventType" class="all_select">
|
||||
<option value=''></option>
|
||||
<option value='EventOnly'>EventOnly</option>
|
||||
<option value='EventWithData'>EventWithData</option>
|
||||
</select> optional<br /><br />
|
||||
</div>
|
||||
<div>
|
||||
<strong>Preferred Start Date: </strong><br />
|
||||
<input type="text" class='datepicker' name="StartDate" value=""/> optional<br /><br />
|
||||
<strong>New Monitoring Version: </strong><br />
|
||||
<input type="text" name="Version" value="" /> optional<br /><br />
|
||||
<strong>New Language Code: </strong><br />
|
||||
<select name="LanguageCode" class="all_select">
|
||||
<option value=''></option>
|
||||
<?php foreach (unserialize($this->lang) as $key=>$language):?>
|
||||
<option class="lang<?=$key;?>" value=<?=$language;?>><?=$language;?></option>
|
||||
<?php endforeach;?>
|
||||
</select> optional<br /><br />
|
||||
</div>
|
||||
</p>
|
||||
</form>
|
||||
<div id="loading" class="hide_monitor" style="display:none;z-index: 1;">
|
||||
<center><img style="padding-top:30%" src="/themes/default/images/giant/19-1.gif" /></center>
|
||||
</div>
|
||||
<?if ($this->result) :?>
|
||||
<div class="gen_div">
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>InternalOrderId</b></div> <div class="right_div"><?=$this->result->Order->InternalOrderId?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>ConsumerId</b></div> <div class="right_div"><?=$this->result->Order->ConsumerId?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>CustomerId</b></div> <div class="right_div"><?=$this->result->Order->CustomerId?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>ProviderId</b></div> <div class="right_div"><?=$this->result->Order->ProviderId?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>CountryCode</b></div> <div class="right_div"><?=$this->result->Order->CountryCode?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>CompanyId</b></div> <div class="right_div"><?=$this->result->Order->CompanyId?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>OrderType</b></div> <div class="right_div"><?=$this->result->Order->OrderType?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>EventType</b></div> <div class="right_div"><?=$this->result->Order->EventType?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>CategoryName</b></div> <div class="right_div"><?=$this->result->Order->CategoryName?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>Version</b></div> <div class="right_div"><?=$this->result->Order->Version?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>LanguageCode</b></div> <div class="right_div"><?=$this->result->Order->LanguageCode?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>OrderStatus</b></div> <div class="right_div"><?=$this->result->Order->OrderStatus?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>OrderDateTime</b></div> <div class="right_div"><?=$this->result->Order->OrderDateTime?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>DateTimeCompleted</b></div> <div class="right_div"><?=$this->result->Order->DateTimeCompleted?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>PreferredStartDate</b></div> <div class="right_div"><?=$this->result->Order->PreferredStartDate?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>ActualStartDate</b></div> <div class="right_div"><?=$this->result->Order->ActualStartDate?></div></div>
|
||||
<div class='monitor_resp radius'><div class="left_div"><b>ActualEndDate</b></div> <div class="right_div"><?=$this->result->Order->ActualEndDate?></div></div>
|
||||
</div>
|
||||
<?endif?>
|
||||
</div>
|
||||
<script type="text/javascript" src="/themes/default/scripts/giant_monitoring.js" />
|
@ -15,24 +15,23 @@
|
||||
<?php } else {?>
|
||||
|
||||
<?php if ( empty($this->AutrePage) ) {?>
|
||||
|
||||
<div class="paragraph" style="text-align:right;">
|
||||
<?php if (!empty($this->dateDerMaj)) { ?>
|
||||
<a class="datemaj" href="#">
|
||||
<div class="paragraph row">
|
||||
<div class="col-md-6">
|
||||
<?php if ( !empty($this->surveillance) ) {?>
|
||||
<?php echo $surveillances = $this->action('infos','surveillance', null, array('siret' => $this->siret))?>
|
||||
<?php }?>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<?php if (!empty($this->dateDerMaj)) { ?>
|
||||
<a class="datemaj pull-right" href="#">
|
||||
<?=$this->translate("Dernière mise à jour le")?> <?=$this->dateDerMaj?>
|
||||
<span><?=$this->datemajTexte?></span>
|
||||
</a>
|
||||
<?php }?>
|
||||
</div>
|
||||
|
||||
<?php if ( !empty($this->surveillance) ) {?>
|
||||
<div class="paragraph" style="clear:both;">
|
||||
<?php echo $surveillances = $this->action('infos','surveillance', null, array('siret' => $this->siret))?>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
<?php }?>
|
||||
|
||||
<?php if ( empty($this->AutrePage) ) {?>
|
||||
<h1 class="titre"><?=$this->translate("FICHE D'IDENTITÉ");?></h1>
|
||||
<?php }?>
|
||||
|
@ -1,29 +0,0 @@
|
||||
<div id="center">
|
||||
<h1>Commandes</h1>
|
||||
|
||||
<div class="paragraph">
|
||||
<a href="<?=$this->url(array('controller'=>'order', 'action'=>'kbis'), 'default', true)?>">KBIS</a>
|
||||
<br/>Liste des commandes KBIS.
|
||||
</div>
|
||||
|
||||
<div class="paragraph">
|
||||
<a href="<?=$this->url(array('controller'=>'order', 'action'=>'greffebilan'), 'default', true)?>">Pièces officielles - Bilans</a>
|
||||
</br>Liste des commandes de bilan au format image.
|
||||
</div>
|
||||
|
||||
<div class="paragraph">
|
||||
<a href="<?=$this->url(array('controller'=>'order', 'action'=>'greffeacte'), 'default', true)?>">Pièces officielles - Actes</a>
|
||||
</br>Liste des commandes d'actes et statuts
|
||||
</div>
|
||||
|
||||
<div class="paragraph">
|
||||
<a href="<?=$this->url(array('controller'=>'order', 'action'=>'assostatut'), 'default', true)?>">Statuts associations</a>
|
||||
</br>Liste des commandes de statuts associations
|
||||
</div>
|
||||
|
||||
<div class="paragraph">
|
||||
<a href="<?=$this->url(array('controller'=>'order', 'action'=>'bilaninput'), 'default', true)?>">Saisie de bilan</a>
|
||||
</br>Liste des commandes de saisie de bilan
|
||||
</div>
|
||||
|
||||
</div>
|
@ -1,6 +1,6 @@
|
||||
<?=$this->action('new', 'aide')?>
|
||||
|
||||
<div id="center-recherche">
|
||||
<div id="center">
|
||||
<div id="recherche">
|
||||
<?php if (!empty($this->message)){ ?>
|
||||
<div style="padding:0.7em;" class="ui-state-error ui-corner-all">
|
||||
@ -9,7 +9,7 @@
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
<h3><?=$this->translate("RECHERCHE ENTREPRISE")?></h3>
|
||||
<h1><?=$this->translate("RECHERCHE ENTREPRISE")?></h1>
|
||||
<?php $form = $this->form; ?>
|
||||
<form class="recherche" name="<?php echo $form->getName()?>"
|
||||
method="<?=$form->getMethod()?>" action="<?=$form->getAction()?>">
|
||||
@ -37,7 +37,6 @@
|
||||
<div class="row">
|
||||
<?=$form->raisonSociale?>
|
||||
</div>
|
||||
<br/><br/>
|
||||
<div class="row">
|
||||
<?=$form->numero?>
|
||||
<?=$form->voie?>
|
||||
@ -48,7 +47,6 @@
|
||||
<div class="row">
|
||||
<?=$form->telFax?>
|
||||
</div>
|
||||
<br/><br/>
|
||||
<div class="row">
|
||||
<?=$form->naf?>
|
||||
</div>
|
||||
|
@ -1,9 +1,9 @@
|
||||
<h3 style="color:#ffffff;font-size:medium;font-weight:bold;"><?=$this->translate("RECHERCHE SURVEILLANCE")?></h3>
|
||||
<form class="recherche" name="refclient" method="post" action="<?=$this->url(array(
|
||||
'controller'=>'recherche', 'action'=>'refclientliste'), 'default', true)?>">
|
||||
<h1><?=$this->translate("RECHERCHE SURVEILLANCE")?></h1>
|
||||
<form class="recherche" name="refclient" method="post" action="<?=$this->url(array('controller'=>'recherche',
|
||||
'action'=>'refclientliste'), 'default', true)?>">
|
||||
<input type="hidden" name="type" value="refclient" />
|
||||
<div class="row">
|
||||
<label style="font-size:1.1em;padding: 0.4em 5px 0.4em 0;">Référence client</label>
|
||||
<label>Référence client</label>
|
||||
<input type="text" name="ref" value="" style="font-size:1.1em;padding: 0.4em 1em;" />
|
||||
<input class="button" type="submit" name="submit" value="Rechercher" />
|
||||
</div>
|
||||
|
@ -1,13 +1,36 @@
|
||||
<label>Date de jouissance / effet :</label>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label">Date de jouissance / effet :</label>
|
||||
<div class="col-sm-4 ">
|
||||
<input type="text" maxlength="10" class="date" name="jugement[dateFinPeriode]" value="" />
|
||||
<span class="left">(Format JJ/MM/AAAA)</span>
|
||||
<label>Date cessation de paiement </label>
|
||||
<input type="text" class="date" name="jugement[datePaie]" size="10" maxlength="10" value="" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label">Date cessation de paiement </label>
|
||||
<div class="col-sm-4 ">
|
||||
<input class="form-control input-sm" type="text" class="date" name="jugement[datePaie]" size="10" maxlength="10" value="" />
|
||||
<span class="left">(Format JJ/MM/AAAA)</span>
|
||||
<label>Audience de renvoi le </label>
|
||||
<input type="text" class="date" name="jugement[dateAudienceRenvoi]" size="10" maxlength="10" value="" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label">Audience de renvoi le </label>
|
||||
<input class="form-control input-sm" type="text" class="date" name="jugement[dateAudienceRenvoi]" size="10" maxlength="10" value="" />
|
||||
<span class="left">(Format JJ/MM/AAAA)</span>
|
||||
<label>Nom de l'acheteur</label>
|
||||
<input type="text" name="jugement[AcheteurNom]" size="70" maxlength="100" value="" />
|
||||
<label>SIREN de l'acheteur</label>
|
||||
<input type="text" name="jugement[AcheteurSiren]" size="70" maxlength="11" value="" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label">Nom de l'acheteur</label>
|
||||
<div class="col-sm-4 ">
|
||||
<input class="form-control input-sm" type="text" name="jugement[AcheteurNom]" size="70" maxlength="100" value="" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label">SIREN de l'acheteur</label>
|
||||
<div class="col-sm-4 ">
|
||||
<input class="form-control input-sm" type="text" name="jugement[AcheteurSiren]" size="70" maxlength="11" value="" />
|
||||
</div>
|
||||
</div>
|
||||
|
@ -94,5 +94,5 @@ if (count($this->tabEvent)>0) {
|
||||
?>
|
||||
</select>
|
||||
<div id="subFormSaisie">
|
||||
<?=$this->action('even', 'saisie', null, array('num'=> $this->eventNum, 'siren'=>substr($this->siret,0,9)))?>
|
||||
<?=$this->action('even', 'saisie', input, array('num'=> $this->eventNum, 'siren'=>substr($this->siret,0,9)))?>
|
||||
</div>
|
@ -1,7 +1,5 @@
|
||||
<p class="options">
|
||||
<a href="<?=$this->url(array(
|
||||
'controller' => 'telechargement',
|
||||
'action' => 'portefeuille',
|
||||
))?>" id="dl">Exporter votre portefeuille au format CSV</a>
|
||||
<a href="<?=$this->url(array('module'=>'file', 'controller'=>'dl', 'action' => 'portefeuille'), 'default',
|
||||
true)?>" id="dl">Exporter votre portefeuille au format CSV</a>
|
||||
</p>
|
||||
<div class="paragraph" id="dlMsg"></div>
|
@ -6,7 +6,7 @@
|
||||
<option value="<?=$s['value']?>"<?=$s['select']?>><?=$s['name']?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<a href="<?=$this->url(array( 'controller' => 'telechargement', 'action' => 'surveillance'),
|
||||
<a href="<?=$this->url(array('module'=>'file', 'controller'=>'dl', 'action' => 'surveillance'),
|
||||
'default', true)?>" id="dl">Ok</a>
|
||||
</p>
|
||||
<div class="paragraph" id="dlMsg"></div>
|
@ -18,11 +18,7 @@ for ($i = 0; $i <= 12; ++$i) {
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<a href="<?=$this->url(array(
|
||||
'controller' => 'telechargement',
|
||||
'action' => 'consommation',
|
||||
'login' => $this->login,
|
||||
'idClient' => $this->idClient,
|
||||
))?>" id="dl">Ok</a>
|
||||
<a href="<?=$this->url(array('module'=>'file', 'controller'=>'dl', 'action' => 'consommation', 'login' => $this->login,
|
||||
'idClient' => $this->idClient), 'default', true)?>" id="dl">Ok</a>
|
||||
</div>
|
||||
<div class="infoTitle StyleInfoLib"></div><div id="dlMsg" class="infoData last"></div>
|
@ -1,17 +0,0 @@
|
||||
<?php if ($this->pageCount) { ?>
|
||||
<div class="paragraph">
|
||||
<div class="pagination clearfix">
|
||||
<!-- First page link -->
|
||||
<a class="first" href="<?=$this->url(array('page' => $this->first)); ?>">«</a>
|
||||
<!-- Previous page link -->
|
||||
<?php if (!$this->previous) $this->previous = $this->first;?>
|
||||
<a class="previous" href="<?=$this->url(array('page' => $this->previous)); ?>">‹</a>
|
||||
<span>Page <?=$this->current?>/<?=$this->pageCount?></span>
|
||||
<!-- Next page link -->
|
||||
<?php if (!$this->next) $this->next = $this->last;?>
|
||||
<a class="next" href="<?=$this->url(array('page' => $this->next)); ?>">›</a>
|
||||
<!-- Last page link -->
|
||||
<a class="last" href="<?=$this->url(array('page' => $this->last)); ?>">»</a>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
@ -1,64 +0,0 @@
|
||||
<div id="center">
|
||||
<h1>World-Check</h1>
|
||||
<div id="center-recherche" style='margin-left: 10px; margin-right:10px'>
|
||||
<?php if ($this->filtres) { ?>
|
||||
<?php if ($this->param->dirType =='INDIVIDUAL') {?>
|
||||
<div style='float:right;'>
|
||||
<select name="filtre">
|
||||
<?php foreach ($this->filtres as $k => $filtre) {?>
|
||||
<option value="<?=$this->url(array('filtre'=>$k, 'page'=>''))?>"<?=$filtre['select']?>><?=$filtre['txt']?></option>
|
||||
<?php }?>
|
||||
</select>
|
||||
</div>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
<script type="text/javascript">
|
||||
$('select[name=filtre]').change(function(e){
|
||||
window.location = $(this).val();
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<?php
|
||||
if (!$this->resultWC)
|
||||
{
|
||||
?>
|
||||
<div>Aucun résultat.</div>
|
||||
<? }
|
||||
else
|
||||
{
|
||||
$resultWC = $this->resultWC;
|
||||
|
||||
$reponse = count($resultWC)==1?'réponse':'réponses';
|
||||
$title = count($resultWC).' '.$reponse.' avec les critères "'.$this->param->dirNom.' '.$this->param->dirPrenom.'"';
|
||||
?>
|
||||
<div style='float:left; margin-left:15px;'><?=$title;?></div>
|
||||
<br/>
|
||||
<div>
|
||||
<ol start=<?=$this->ol_number; ?>>
|
||||
<?php
|
||||
foreach ($this->paginator as $entityId=>$shortData)
|
||||
{
|
||||
?>
|
||||
<li>
|
||||
<strong><a href="<?=$this->url(array('controller'=>'worldcheck', 'action'=>'matchcontent', 'matchIdentifier'=>$this->allMatches[$entityId], 'nameType'=>$this->param->dirType), 'default', true)?>"><?= $shortData->lastName.' '.$shortData->givenName;?></a></strong><br/>
|
||||
<table>
|
||||
<?php if (isset($shortData->description) && $shortData->description!='') {?>
|
||||
<tr>
|
||||
<td class="StyleInfoLib" width="150">Description</td>
|
||||
<td class="StyleInfoData" width="450"><?=$shortData->description;?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if (isset($shortData->country) && $shortData->country!='') {?>
|
||||
<tr>
|
||||
<td class="StyleInfoLib" width="150">Country</td>
|
||||
<td class="StyleInfoData" width="450"><?=ucfirst(strtolower($shortData->country));?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ol>
|
||||
</div>
|
||||
<p><div id="center-recherche"><?php if (count($resultWC)>$this->itemCount) { echo $this->paginator; } ?></div></p>
|
||||
<?php } ?>
|
||||
</div>
|
@ -1,344 +0,0 @@
|
||||
<div id="center">
|
||||
<style>
|
||||
.wrap {
|
||||
border: none;
|
||||
width:450px;
|
||||
word-wrap:break-word;
|
||||
}
|
||||
</style>
|
||||
<h1>World-Check</h1>
|
||||
<?php if (!$this->content) { ?>
|
||||
<p><div style="margin-left:10px;">Aucune Information</div></div>
|
||||
<?php
|
||||
} else {
|
||||
$content = $this->content;
|
||||
?>
|
||||
<h2><?=$content->names->name[0]->fullName;?>
|
||||
<?php
|
||||
if (strtolower($this->nameType)=='individual')
|
||||
{
|
||||
$day = $month = $year = '';
|
||||
if ($content->events->event[0]->day>0) $day = $content->events->event[0]->day;
|
||||
if ($content->events->event[0]->month>0) $month = $content->events->event[0]->month;
|
||||
if ($content->events->event[0]->year>0) $year = $content->events->event[0]->year;
|
||||
$param = array(
|
||||
'controller'=>'recherche',
|
||||
'action'=>'dirigeant',
|
||||
'dirNom'=>$content->names->name[0]->lastName,
|
||||
'dirPrenom'=>$content->names->name[0]->givenName,
|
||||
'dirDateNaissJJ' =>$day,
|
||||
'dirDateNaissMM' =>$month,
|
||||
'dirDateNaissAAAA' =>$year,
|
||||
'dirCpVille' =>''
|
||||
);
|
||||
} else {
|
||||
$param = array(
|
||||
'controller'=>'recherche',
|
||||
'action'=>'entreprise',
|
||||
'siret'=>'',
|
||||
'raisonSociale'=>$content->names->name[0]->fullName,
|
||||
'numero'=>'',
|
||||
'voie'=>'',
|
||||
'cpVille' =>'',
|
||||
'telFax' =>'',
|
||||
'naf' =>'',
|
||||
'fj' =>'',
|
||||
'pays'=>'',
|
||||
);
|
||||
}
|
||||
?>
|
||||
<div style="float:right;"><a style="color:white;" href="<?=$this->url($param, 'default', true)?>"> Search in Extranet </a></div>
|
||||
</h2>
|
||||
<div class="paragraph">
|
||||
<table cellpadding=3>
|
||||
<?php if (isset($content->category)) { ?>
|
||||
<tr>
|
||||
<td class="StyleInfoLib" width="150">Category</td>
|
||||
<td class="StyleInfoData"><div class="wrap"><?=ucfirst(strtolower($content->category));?></div></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php
|
||||
if (isset($content->names->name)){?>
|
||||
<tr>
|
||||
<td class="StyleInfoLib" width="150">All names</td>
|
||||
<td class="StyleInfoData"><div class="wrap">
|
||||
<?php
|
||||
foreach($content->names->name as $name)
|
||||
{
|
||||
if (isset($name->fullName) && $name->fullName!='') {echo $name->fullName.'<br/>';}
|
||||
} ?>
|
||||
</div></td></tr>
|
||||
<?php } ?>
|
||||
<?php if (isset($content->gender)) { ?>
|
||||
<tr><td class="StyleInfoLib" width="150">Gender</td>
|
||||
<td class="StyleInfoData"><div class="wrap"><?=ucfirst(strtolower($content->gender));?></div></td></tr>
|
||||
<?php } ?>
|
||||
<?php if (isset($content->events->event) && ($content->events->event[0]->day>0) && ($content->events->event[0]->month>0) && ($content->events->event[0]->year>0)) { ?>
|
||||
<tr><td class="StyleInfoLib" width="150">Birthday</td>
|
||||
<?php $date = new Zend_Date($content->events->event[0]->fullDate, 'yyyy-MM-dd');?>
|
||||
<td class="StyleInfoData"><div class="wrap"><?=$date->toString('dd/MM/yyyy')?></div></td></tr>
|
||||
<?php } ?>
|
||||
<?php if (isset($content->events->event[0]->address->region)) { ?>
|
||||
<tr><td class="StyleInfoLib" width="150">Birth place</td>
|
||||
<td class="StyleInfoData"><div class="wrap"><?=$content->events->event[0]->address->region;?></div></td></tr>
|
||||
<?php } ?>
|
||||
<?php
|
||||
foreach($content->details->detail as $detail)
|
||||
{ ?>
|
||||
<?php if (isset($detail->text)) { ?>
|
||||
<tr>
|
||||
<td class="StyleInfoLib" width="150"><?=ucfirst(strtolower($detail->detailType));?></div></td>
|
||||
<td class="StyleInfoData"><div class="wrap"><?=$detail->text;?></td>
|
||||
</tr>
|
||||
<?php }} ?>
|
||||
<?php
|
||||
if (isset($content->addresses->address[0])){
|
||||
?>
|
||||
<tr><td class="StyleInfoLib" width="150">All Addresses</td>
|
||||
<td class="StyleInfoData"><div class="wrap">
|
||||
<?php
|
||||
foreach($content->addresses->address as $address) {
|
||||
$fullAddress = array();
|
||||
if (isset($address->city)) { $fullAddress[] = $address->city;}
|
||||
if (isset($address->region)) { $fullAddress[] = $address->region;}
|
||||
if (isset($address->country)) { $fullAddress[] = ucfirst(strtolower($address->country->name));}
|
||||
echo implode(', ', $fullAddress);?>
|
||||
<br/>
|
||||
<?php unset($fullAddress); }?>
|
||||
</div></td></tr>
|
||||
<?php } ?>
|
||||
<?php
|
||||
if (isset($content->actionDetails->actionDetail)){
|
||||
foreach($content->actionDetails->actionDetail as $actionDetail)
|
||||
{?>
|
||||
<tr><td class="StyleInfoLib" width="150"><?=ucfirst(strtolower($actionDetail->actionType)); ?></td>
|
||||
<td class="StyleInfoData"><div class="wrap"><?=$actionDetail->text;?></div></td></tr>
|
||||
<tr><td class="StyleInfoLib" width="150">Source</td>
|
||||
<td class="StyleInfoData"><div class="wrap"><?=$actionDetail->source->name.' ('.$actionDetail->source->abbreviation.')';?></div></td></tr>
|
||||
<?php }} ?>
|
||||
|
||||
<?php
|
||||
foreach($content->countryLinks->countryLink as $countryLink)
|
||||
{ ?>
|
||||
<?php if (isset($countryLink->countryText)) { ?>
|
||||
<tr>
|
||||
<td class="StyleInfoLib" width="150"><?php echo ($countryLink->countryLinkType=='NATIONALITY')?'Nationality':'Registered in'?></div></td>
|
||||
<td class="StyleInfoData"><div class="wrap"><?=ucfirst(strtolower($countryLink->countryText)).' ('.$countryLink->country->code.')';?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<?php
|
||||
if (isset($content->sources->sourceDetail)){
|
||||
foreach($content->sources->sourceDetail as $source)
|
||||
{
|
||||
if (isset($source->name) && $source->name!='') { ?>
|
||||
<tr><td class="StyleInfoLib" width="150"><?=$source->ProviderSourceTypeDetail->category->name?></td>
|
||||
<td class="StyleInfoData"><div class="wrap"><?=$source->ProviderSourceTypeDetail->category->description;?></div></td></tr>
|
||||
<tr><td class="StyleInfoLib" width="150">Source</td>
|
||||
<td class="StyleInfoData"><div class="wrap"><?=$source->name.' ('.$source->abbreviation.')';?></div></td></tr>
|
||||
<?php }}} ?>
|
||||
<?php
|
||||
if (isset($content->roles->role)){
|
||||
foreach($content->roles->role as $role)
|
||||
{
|
||||
if (isset($role->title) && $role->title!='') { ?>
|
||||
<tr><td class="StyleInfoLib" width="150"><?=$role->type?></td>
|
||||
<td class="StyleInfoData"><div class="wrap"><?=$role->title;?></div></td></tr>
|
||||
<?php }}} ?>
|
||||
<?php if (isset($content->weblinks->weblink)) { ?>
|
||||
<tr>
|
||||
<td class="StyleInfoLib" width="150">Weblinks</td>
|
||||
<td class="StyleInfoData"><div class="wrap">
|
||||
<?php foreach($content->weblinks->weblink as $weblink)
|
||||
{ ?>
|
||||
<a href="<?=$weblink->URI;?>" target="_blank"><?=$weblink->URI;?></a><br/>
|
||||
<?php } ?>
|
||||
</div></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
if (isset($content->associates->associate)) {
|
||||
$wcOrganigramme = array(
|
||||
'controller' => 'worldcheck',
|
||||
'action' => 'organigramme',
|
||||
'entityid' => $content->entityId);
|
||||
?>
|
||||
<div class="paragraph"><a class="organigramme" title="Organigramme des associés" href="<?=$this->url($wcOrganigramme, 'default', true);?>">Organigramme des associés</a></div>
|
||||
<script>
|
||||
$( "a.organigramme" ).on('click', function(e){
|
||||
e.preventDefault();
|
||||
var href = $(this).attr('href');
|
||||
var dialogOpts = {
|
||||
bgiframe: true,
|
||||
resizable: false,
|
||||
title: $(this).attr('title'),
|
||||
width: 600,
|
||||
height: 650,
|
||||
modal: true,
|
||||
open: function(event, ui) {
|
||||
$(this).html('Chargement...');
|
||||
$(this).load(href);
|
||||
},
|
||||
buttons: { "Fermer": function() { $(this).dialog("close"); }},
|
||||
close: function() { $('#confirm').remove(); }
|
||||
};
|
||||
$('<div id="confirm"></div>').dialog(dialogOpts);
|
||||
return false;
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
foreach($content->associates->associate as $associate)
|
||||
{ ?>
|
||||
<h2>
|
||||
<?php
|
||||
if ($associate->associatetype=='ASSOCIATE')
|
||||
{
|
||||
$dirType = 'INDIVIDUAL';
|
||||
$dirName = 'dirNom';
|
||||
$day = $month = $year = '';
|
||||
if ($associate->targetEntity->events->event[0]->day>0) $day = $associate->targetEntity->events->event[0]->day;
|
||||
if ($associate->targetEntity->events->event[0]->month>0) $month = $associate->targetEntity->events->event[0]->month;
|
||||
if ($associate->targetEntity->events->event[0]->year>0) $year = $associate->targetEntity->events->event[0]->year;
|
||||
$param = array(
|
||||
'controller'=>'recherche',
|
||||
'action'=>'dirigeant',
|
||||
'dirNom'=>$associate->targetEntity->names->name[0]->lastName,
|
||||
'dirPrenom'=>$associate->targetEntity->names->name[0]->givenName,
|
||||
'dirDateNaissJJ' =>$day,
|
||||
'dirDateNaissMM' =>$month,
|
||||
'dirDateNaissAAAA' =>$year,
|
||||
'dirCpVille' =>''
|
||||
);
|
||||
} else {
|
||||
$dirType = 'ORGANISATION';
|
||||
$dirName = 'dirSociete';
|
||||
$param = array(
|
||||
'controller'=>'recherche',
|
||||
'action'=>'entreprise',
|
||||
'siret'=>'',
|
||||
'raisonSociale'=>$associate->targetEntity->names->name[0]->fullName,
|
||||
'numero'=>'',
|
||||
'voie'=>'',
|
||||
'cpVille' =>'',
|
||||
'telFax' =>'',
|
||||
'naf' =>'',
|
||||
'fj' =>'',
|
||||
'pays'=>'',
|
||||
);
|
||||
}
|
||||
?>
|
||||
Associate: <?=$associate->targetEntity->names->name[0]->fullName;?>
|
||||
<?php $id='/dirType/'.$dirType.'/'.$dirName.'/'.$associate->targetEntity->names->name[0]->lastName.'/dirPrenom/'.$associate->targetEntity->names->name[0]->givenName;?>
|
||||
<div style='float:right;'><img class="wcheck" id="<?=$id;?>" style="cursor:pointer;" src='/themes/default/images/worldcheck/wc-blanc.png'/></div>
|
||||
<div style='float:right;'><a style="color:white;" href="<?=$this->url($param, 'default', true)?>"> Search in Extranet </a></div>
|
||||
<script>
|
||||
$('img.wcheck').each(function(){
|
||||
$(this).qtip({
|
||||
hide: { event: 'unfocus' },
|
||||
show: { solo: true, delay: 500 },
|
||||
content: { title: 'WorldCheck', button: true, text: "Chargement...",
|
||||
ajax: { url: '<?=$this->url(array('controller'=>'worldcheck','action'=>'occurence'));?>'+$(this).attr('id') } },
|
||||
position: { my: 'right center', at: 'left center' }
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</h2>
|
||||
<div class="paragraph">
|
||||
<table cellpadding=3>
|
||||
<?php if (isset($associate->targetEntity->category)) { ?>
|
||||
<tr>
|
||||
<td class="StyleInfoLib" width="150">Category</td>
|
||||
<td class="StyleInfoData"><div class="wrap"><?=ucfirst(strtolower($associate->targetEntity->category));?></div></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if (isset($associate->targetEntity->gender)) { ?>
|
||||
<tr>
|
||||
<td class="StyleInfoLib" width="150">Gender</td>
|
||||
<td class="StyleInfoData"><div class="wrap"><?=ucfirst(strtolower($associate->targetEntity->gender));?></div></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if (isset($associate->targetEntity->events->event) && ($associate->targetEntity->events->event[0]->day>0) && ($associate->targetEntity->events->event[0]->month>0) && ($associate->targetEntity->events->event[0]->year>0)) { ?>
|
||||
<tr>
|
||||
<td class="StyleInfoLib" width="150">Birthday</td>
|
||||
<?php $date = new Zend_Date($associate->targetEntity->events->event[0]->fullDate, 'yyyy-MM-dd');?>
|
||||
<td class="StyleInfoData"><div class="wrap"><?=$date->toString('dd/MM/yyyy')?></div></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php
|
||||
foreach($associate->targetEntity->details->detail as $detailAssoc)
|
||||
{ ?>
|
||||
<?php if (isset($detailAssoc->text)) { ?>
|
||||
<tr>
|
||||
<td class="StyleInfoLib" width="150"><?=ucfirst(strtolower($detailAssoc->detailType)); ?></td>
|
||||
<td class="StyleInfoData"><div class="wrap"><?=$detailAssoc->text;?></div></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<td class="StyleInfoLib" width="150">Adresse</td>
|
||||
<td class="StyleInfoData"><div class="wrap">
|
||||
<?php
|
||||
if (isset($associate->targetEntity->addresses->address[0])){
|
||||
foreach($associate->targetEntity->addresses->address as $address) {
|
||||
$fullAddress = array();
|
||||
if (isset($address->city)) { $fullAddress[] = $address->city;}
|
||||
if (isset($address->region)) { $fullAddress[] = $address->region;}
|
||||
if (isset($address->country)) { $fullAddress[] = ucfirst(strtolower($address->country->name));}
|
||||
?>
|
||||
<?=implode(', ', $fullAddress);?>
|
||||
<br/>
|
||||
<?php unset($fullAddress); }}?>
|
||||
</div></td></tr>
|
||||
<?php
|
||||
if (isset($associate->targetEntity->actionDetails->actionDetail)){
|
||||
foreach($associate->targetEntity->actionDetails->actionDetail as $actionDetail)
|
||||
{?>
|
||||
<tr><td class="StyleInfoLib" width="150"><?=ucfirst(strtolower($actionDetail->actionType)); ?></td>
|
||||
<td class="StyleInfoData"><div class="wrap"><?=$actionDetail->text;?></div></td></tr>
|
||||
<tr><td class="StyleInfoLib" width="150">Source</td>
|
||||
<td class="StyleInfoData"><div class="wrap"><?=$actionDetail->source->name.' ('.$actionDetail->source->abbreviation.')';?></div></td></tr>
|
||||
<?php }} ?>
|
||||
<?php
|
||||
foreach($associate->targetEntity->countryLinks->countryLink as $countryLink)
|
||||
{ ?>
|
||||
<?php if (isset($countryLink->countryText)) { ?>
|
||||
<tr>
|
||||
<td class="StyleInfoLib" width="150"><?php echo ($countryLink->countryLinkType=='NATIONALITY')?'Nationality':'Registered in'?></div></td>
|
||||
<td class="StyleInfoData"><div class="wrap"><?=ucfirst(strtolower($countryLink->countryText)).' ('.$countryLink->country->code.')';?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<?php
|
||||
if (isset($associate->targetEntity->sources->sourceDetail)){
|
||||
foreach($associate->targetEntity->sources->sourceDetail as $source)
|
||||
{
|
||||
if (isset($source->name) && $source->name!='') { ?>
|
||||
<tr><td class="StyleInfoLib" width="150"><?=$source->ProviderSourceTypeDetail->category->name?></td>
|
||||
<td class="StyleInfoData"><div class="wrap"><?=$source->ProviderSourceTypeDetail->category->description;?></div></td></tr>
|
||||
<tr><td class="StyleInfoLib" width="150">Source</td>
|
||||
<td class="StyleInfoData"><div class="wrap"><?=$source->name.' ('.$source->abbreviation.')';?></div></td></tr>
|
||||
<?php }}} ?>
|
||||
<?php
|
||||
if (isset($associate->targetEntity->roles->role)){
|
||||
foreach($associate->targetEntity->roles->role as $role)
|
||||
{
|
||||
if (isset($role->title) && $role->title!='') { ?>
|
||||
<tr><td class="StyleInfoLib" width="150"><?=$role->type?></td>
|
||||
<td class="StyleInfoData"><div class="wrap"><?=$role->title;?></div></td></tr>
|
||||
<?php }}} ?>
|
||||
<?php if (isset($associate->targetEntity->weblinks->weblink)) { ?>
|
||||
<tr>
|
||||
<td class="StyleInfoLib" width="150">Weblinks</td>
|
||||
<td class="StyleInfoData"><div class="wrap">
|
||||
<?php foreach($associate->targetEntity->weblinks->weblink as $weblink)
|
||||
{ ?>
|
||||
<a href="<?=$weblink->URI;?>" target="_blank"><?=$weblink->URI;?></a><br/>
|
||||
<?php } ?>
|
||||
</div></td></tr>
|
||||
<?php } ?>
|
||||
</table></div>
|
||||
<?php }}} ?>
|
||||
</div>
|
@ -1,73 +0,0 @@
|
||||
<?php if ($this->occurrence===false) {?>
|
||||
Aucune information disponible, Lancer une recherche.
|
||||
<?php } else {
|
||||
if ($this->data->Societe!=''){
|
||||
$title = $this->data->Societe;
|
||||
} else {
|
||||
$title = $this->data->Nom;
|
||||
}
|
||||
?>
|
||||
<?=$this->occurrence?> Occurrence(s) par "<?=$title; ?>".
|
||||
<?php }?>
|
||||
<?php
|
||||
$param = array(
|
||||
'controller'=>'worldcheck',
|
||||
'action'=>'index',
|
||||
'dirSociete'=>$this->data->Societe,
|
||||
'dirNom'=>$this->data->Nom,
|
||||
'dirPrenom'=>$this->data->Prenom,
|
||||
'dirType' =>$this->data->Type,
|
||||
'siren'=>substr($this->siret, 0, 9));
|
||||
|
||||
foreach ($param as $key =>$val) {
|
||||
if ($val=='') {
|
||||
unset($param[$key]);
|
||||
}
|
||||
}
|
||||
?>
|
||||
<p>
|
||||
<a href="<?=$this->url($param, 'default', true)?>">Rechercher dans WorldCheck</a>
|
||||
</p>
|
||||
<?php
|
||||
if ($this->data->Societe!=''){
|
||||
$alternativeParams = array(
|
||||
'controller'=>'worldcheck',
|
||||
'action'=>'index',
|
||||
'dirSociete'=>'',
|
||||
'dirType' =>$this->data->Type,
|
||||
'siren'=>substr($this->siret, 0, 9));
|
||||
?>
|
||||
<?php
|
||||
foreach ($this->data->Soc as $key=>$value) {
|
||||
$alternativeParams['dirSociete'] = $value;
|
||||
$key = substr(preg_replace("/([A-Z])/",' \\1',$key),1);
|
||||
?><?=$key.': '?><a href="<?=$this->url($alternativeParams, 'default', true)?>"> <?=$value;?></a><br/>
|
||||
<?php }?>
|
||||
|
||||
<?php
|
||||
if ($this->data->Soc->NomLong!=''){
|
||||
$keyWord = explode(' ', $this->data->Soc->NomLong);
|
||||
} else {
|
||||
$keyWord = explode(' ', $this->data->Societe);
|
||||
}
|
||||
|
||||
if (count($keyWord)>1) {
|
||||
?>
|
||||
<br/>
|
||||
Rechercher par mots clés:
|
||||
<ul>
|
||||
<?php
|
||||
$specChar = array('.', '(', ')');
|
||||
foreach ($keyWord as $value) {
|
||||
str_replace($specChar, '', $value, $i);
|
||||
if (strlen($value)>3 && $i==0){
|
||||
$alternativeParams['dirSociete'] = $value;
|
||||
?>
|
||||
<li><a href="<?=$this->url($alternativeParams, 'default', true)?>"> <?=ucfirst(strtolower($value));?></a></li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
@ -1,58 +0,0 @@
|
||||
<div id="assocTree" class="jstree jstree-default" style="overflow:auto;"></div>
|
||||
<script src="/libs/jstree/jstree.js"></script>
|
||||
<script>
|
||||
$("#assocTree").jstree({
|
||||
"core" : { "html_titles" : true },
|
||||
"plugins" : [ "themes", "json_data", "ui" ],
|
||||
"json_data" : {
|
||||
"data":<?=$this->data ?>,
|
||||
"ajax":{
|
||||
"type": 'POST',
|
||||
"url": "/worldcheck/index/",
|
||||
"data": function(node) {
|
||||
var dirNom = node.attr("lastName");
|
||||
var dirPrenom = node.attr("givenName");
|
||||
var dirType = node.attr("nameType");
|
||||
var entityId = node.attr("entityId");
|
||||
var id = node.attr("id");
|
||||
return {dirNom:dirNom, dirPrenom:dirPrenom, dirType:dirType, entityId:entityId, id:id};
|
||||
},
|
||||
"success": function (data) { return data; },
|
||||
"error": function (xhr, ajaxOptions, thrownError){
|
||||
alert('Error xhr : ' + xhr.status);
|
||||
alert('Error: ' + thrownError);
|
||||
}
|
||||
}
|
||||
},
|
||||
"themes" : {
|
||||
"theme" : "default",
|
||||
"url" : "/libs/jstree/themes/default/style.css",
|
||||
"dots" : true,
|
||||
"icons" : true
|
||||
}
|
||||
});
|
||||
|
||||
//using qtip popup to get short information about each node
|
||||
$("#assocTree").bind("hover_node.jstree", function (e, data) {
|
||||
var id = data.rslt.obj.attr("id");
|
||||
var entityId = data.rslt.obj.attr("entityId");
|
||||
var entityIdP = data.inst._get_parent(data.rslt.obj).attr("entityId");
|
||||
var dirNomP = data.inst._get_parent(data.rslt.obj).attr("lastName");
|
||||
var dirPrenomP = data.inst._get_parent(data.rslt.obj).attr("givenName");
|
||||
var dirTypeP = data.inst._get_parent(data.rslt.obj).attr("nameType");
|
||||
|
||||
$('#'+id).qtip({
|
||||
hide: { event: 'mouseout', delay:3000 },
|
||||
show: { when: false, ready: true, solo: true, delay: 1000 },
|
||||
content: {
|
||||
button: true,
|
||||
title: 'WorldCheck',
|
||||
text: 'Chargement...',
|
||||
ajax: {
|
||||
'url': '/worldcheck/popup',
|
||||
'data': {id:id, entityId:entityId, entityIdP:entityIdP, dirNomP:dirNomP, dirPrenomP:dirPrenomP, dirTypeP:dirTypeP} }},
|
||||
position: { my: 'right top', at: 'right top' },
|
||||
style: {tip:false}
|
||||
});
|
||||
});
|
||||
</script>
|
@ -1 +0,0 @@
|
||||
<?=$this->data ?>
|
@ -1,78 +0,0 @@
|
||||
<style>
|
||||
.InfoTitle {
|
||||
color: #535353;
|
||||
font-family: Arial,Helvetica,sans-serif;
|
||||
font-size: 11px;
|
||||
font-weight: bold;
|
||||
line-height: 16px;
|
||||
vertical-align: top;
|
||||
float: left;
|
||||
border: none;
|
||||
width:70px;
|
||||
}
|
||||
|
||||
.InfoData {
|
||||
color: #535353;
|
||||
font-family: Arial,Helvetica,sans-serif;
|
||||
font-size: 11px;
|
||||
line-height: 16px;
|
||||
float: left;
|
||||
border: none;
|
||||
width:230px;
|
||||
word-wrap:break-word;
|
||||
padding: 0px 0px 5px 0px;
|
||||
}
|
||||
</style>
|
||||
<div>
|
||||
<?php $data=$this->data;?>
|
||||
<h5 style="text-align: left;"><?=$data['fullName'];?></h5>
|
||||
<div>
|
||||
<div class="InfoTitle">Category</div>
|
||||
<div class="InfoData"><?=$data['category'];?></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div class="InfoTitle">Biography</div>
|
||||
<div class="InfoData"><?=$data['biography'];?></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div class="InfoTitle">Relations</div>
|
||||
<div class="InfoData"><?=str_replace(").", ")</br>", $data['identification']);?></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div class="InfoTitle">Links</div>
|
||||
<div class="InfoData">
|
||||
<?php
|
||||
if (strtolower($data['nameType'])=='individual')
|
||||
{
|
||||
$paramExtranet = array(
|
||||
'controller'=>'recherche',
|
||||
'action'=>'dirigeant',
|
||||
'dirNom'=>$data['lastName'],
|
||||
'dirPrenom'=>$data['givenName'],
|
||||
);
|
||||
} else {
|
||||
$paramExtranet = array(
|
||||
'controller'=>'recherche',
|
||||
'action'=>'entreprise',
|
||||
'raisonSociale'=>$data['fullName'],
|
||||
);
|
||||
}
|
||||
?>
|
||||
<a href="<?=$this->url($paramExtranet, 'default', true)?>">Search more in Extranet</a>
|
||||
<br/>
|
||||
<?php
|
||||
$paramWorldcheck = array(
|
||||
'controller'=>'worldcheck',
|
||||
'action'=>'index',
|
||||
'dirNom'=>$data['lastName'],
|
||||
'dirPrenom'=>$data['givenName'],
|
||||
'dirType'=>$data['nameType']
|
||||
);
|
||||
?>
|
||||
<a href="<?=$this->url($paramWorldcheck, 'default', true)?>">Search more in WorldCheck</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@ -1,17 +0,0 @@
|
||||
<?php if ( count($this->nouveautes)>0 ) {?>
|
||||
<div style="position:absolute;width:680px;top:5px;" class="ui-state-highlight ui-corner-all">
|
||||
<p>
|
||||
<span style="float:left;margin-right:0.3em;" class="ui-icon ui-icon-info"></span>
|
||||
<strong>Nouveau !</strong>
|
||||
<?php $cpt = 0;?>
|
||||
<?php foreach ( $this->nouveautes as $nouveaute) {?>
|
||||
<a href="<?=$this->url(array('controller'=>'fichier', 'action'=>'new', 'fichier'=>$nouveaute->fichier))?>"><?=$nouveaute->intitule?></a>
|
||||
<?php if ( $cpt < count( $this->nouveaute) ) {?>,<?php }?>
|
||||
<?php $cpt++;?>
|
||||
<?php }?>
|
||||
<br/>
|
||||
<span style="font-size:10px;">Cliquez sur les intitulés pour consulter le document,
|
||||
ou <a href="<?=$this->url(array('controller'=>'aide', 'action'=>'newliste'))?>">ici</a> pour retrouver la liste des modifications</span>
|
||||
</p>
|
||||
</div>
|
||||
<?php }?>
|
@ -1,34 +0,0 @@
|
||||
<div id="center">
|
||||
<h1>Nouveautés</h1>
|
||||
<div class="paragraph">
|
||||
Tri par date - Tri par catégorie
|
||||
</div>
|
||||
|
||||
<h2>Liste par date</h2>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Intitulé</th>
|
||||
<th>Catégore</th>
|
||||
<th>Date</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if ( count($this->nouveautes)>0 ){?>
|
||||
<?php foreach ( $this->nouveautes as $nouveau) {?>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="<?=$this->url(array('module'=>'file','controller'=>'index', 'action'=>'new', 'q'=>$nouveau->fichier))?>">
|
||||
<?=$nouveau->intitule?></a>
|
||||
</td>
|
||||
<td><?=$nouveau->categorie?></td>
|
||||
<td><?=$nouveau->date?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
@ -1,5 +0,0 @@
|
||||
<p>© 2006-<?php echo date('Y')?> Scores & Décisions SAS -
|
||||
Tous droits réservés -
|
||||
<a href="http://www.scores-decisions.com/mentions.php" target="_blank">
|
||||
Mentions légales
|
||||
</a>
|
@ -1,42 +0,0 @@
|
||||
<?php if ($this->navigation()->menu()->hasPages()) { ?>
|
||||
<div id="menu">
|
||||
<div id="logo">
|
||||
<img src="/themes/default/images/logos/logo_sd.gif" width="200" height="65" />
|
||||
</div>
|
||||
<?=$this->navigation()->menu();?>
|
||||
<div class="icones">
|
||||
<?php if ($this->print) {?>
|
||||
<a target="_blank" title="Impression" href="/editer/ecran/<?=$this->print.'.html'?>">
|
||||
<img alt="Impression" src="/themes/default/images/interfaces/printer.png">
|
||||
</a>
|
||||
<?php }?>
|
||||
|
||||
<?php if ($this->pdf) {?>
|
||||
<a target="_blank" title="Impression PDF" href="/editer/pdf/<?=$this->pdf.'.pdf'?>">
|
||||
<img alt="Impression" src="/themes/default/images/interfaces/pdf.png">
|
||||
</a>
|
||||
<?php }?>
|
||||
|
||||
<?php if ($this->xml) {?>
|
||||
<a target="_blank" title="Export XML" href="/editer/xml/<?=$this->xml.'.xml'?>">
|
||||
<img alt="Export en XML" src="/themes/default/images/interfaces/xml.png">
|
||||
</a>
|
||||
<?php }?>
|
||||
|
||||
<?php if ($this->aide) {?>
|
||||
<a id="aideLigne" title="Aide en ligne" href="#">
|
||||
<img alt="Export en XML" src="/themes/default/images/interfaces/aideligne.png">
|
||||
</a>
|
||||
<?php }?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$('#menu ul.navigation').accordion({
|
||||
header: '.header',
|
||||
autoHeight: false,
|
||||
collapsible: true,
|
||||
active: <?=$this->menuId?>
|
||||
});
|
||||
</script>
|
||||
<?php }?>
|
@ -1,12 +0,0 @@
|
||||
<div id="center">
|
||||
<h2 class="titre">LISTE DES ÉTABLISSEMNTS</h2>
|
||||
|
||||
|
||||
<h2>Établissements</h2>
|
||||
|
||||
|
||||
<?php if (empty($this->AutrePage)):?>
|
||||
<?=$this->render('cgu.phtml', $this->cgu)?>
|
||||
<?php endif;?>
|
||||
|
||||
</div>
|
@ -1,18 +0,0 @@
|
||||
<?php if ( $this->texte ) {?>
|
||||
<tr>
|
||||
<td width="50" class="aide">
|
||||
<?php if ( !empty($this->aide) ) {?>
|
||||
<img src="/themes/default/images/interfaces/aideligne.png" width="16" height="16" style="display:none;"/>
|
||||
<div id="<?=$this->id?>" style="display:none;"><?=$this->aide?></div>
|
||||
<?php } ?></td>
|
||||
<td width="200" class="StyleInfoLib"><?=$this->label?></td>
|
||||
<?php
|
||||
if (!empty($this->titre)) {
|
||||
$titre = ' title="'.$this->titre.'"';
|
||||
} else {
|
||||
$titre = '';
|
||||
}
|
||||
?>
|
||||
<td width="350" class="StyleInfoData"<?=$titre?>><?=$this->texte?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
@ -1,81 +0,0 @@
|
||||
<div id="center">
|
||||
<?php if ( empty($this->AutrePage) ) {?>
|
||||
<h2 class="titre">FICHE D'IDENTITÉ</h2>
|
||||
<?php }?>
|
||||
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<?php
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Siret']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['SiretSiege']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['TvaNumero']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Isin']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Capitalisation']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->logo);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['NumRC']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['AutreId']);
|
||||
//echo $this->partial('identite/fiche-item.phtml', $this->dBlock['NumRM']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Actif']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['SituationJuridique']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['AutreSiren']);
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div data-role="content">
|
||||
<div data-role="collapsible-set">
|
||||
<div data-role="collapsible">
|
||||
<h3>Raison sociale & Coordonnées</h3>
|
||||
<table>
|
||||
<?php
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['RaisonSociale']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['NomCommercial']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['EnseigneSigle']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['FormeJuridique']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['DateImmat']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['DateCreaEn']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['DateCreaEt']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Adresse']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Zones']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Tel']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Fax']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Web']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Mail']);
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div data-role="collapsible">
|
||||
<h3>Activité(s) & Chiffre d'affaires</h3>
|
||||
<table>
|
||||
<?php
|
||||
//Remplace Siren pour texte
|
||||
//$this->dBlock['ActiviteEn']['texte'] = $this->RemplaceSiren($this->dBlock['ActiviteEn']['texte']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['ActiviteEn']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['ActiviteEt']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Naf4']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Nace']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['NatureActivite']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['SurfaceMagasin']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['OrigineFond']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['TypeExploitation']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Saisonnalite']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['NbEtabActif']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Capital']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['ChiffreAffaire']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Dirigeants']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Effectif']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['EffectifEtab']);
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
<div data-role="collapsible">
|
||||
<h3>Localisation géographique</h3>
|
||||
<?=$this->action('geo', 'identite', null, array('infos' => $this->infos));?>
|
||||
</div>
|
||||
<div data-role="collapsible">
|
||||
<h3>Information presse (Source Google News ©)</h3>
|
||||
<?=$this->action('news', 'identite');?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@ -1,37 +0,0 @@
|
||||
<h2>Localisation géographique</h2>
|
||||
<div class="paragraph">
|
||||
<div id="infogeo" class="clearfix">
|
||||
<div id="infogeo_txt">
|
||||
<?php if ( $this->infos->GeoLat && $this->infos->GeoLon ):?>
|
||||
<span id=geolocalisation>
|
||||
<b>Information géographique :</b><br/>
|
||||
Latitude : <?=$this->decLat?> (<?=$this->infos->GeoLat?>)<br />
|
||||
Longitude : <?=$this->decLon?> (<?=$this->infos->GeoLon?>)<br />
|
||||
</span>
|
||||
<a id="lien-google" href="<?=$this->mapsHref?>" target="_blank">
|
||||
Afficher l'adresse sur Google Map ©</a><br/>
|
||||
<br/>
|
||||
<?endif;?>
|
||||
<b>Code commune / Rivoli :</b><br/>
|
||||
<?=$this->infos->Dept.' '.$this->infos->codeCommune.' / '.$this->infos->Rivoli; ?>
|
||||
<?php
|
||||
if (count($this->infos->InfosIris)>0){
|
||||
$InfosIris = $this->infos->InfosIris;
|
||||
$codComIris = str_replace($InfosIris->codIris, '', $InfosIris->codComIris);
|
||||
?>
|
||||
<br/><br/><b>Iris :</b>
|
||||
<?php if (intval($InfosIris->codIris) == 0){ ?>
|
||||
<br/>Commune non découpée en Iris
|
||||
<?php } else {?>
|
||||
<br/>Code : <?=$codComIris?> <?=$InfosIris->codIris?>
|
||||
<br/>Libellé : <a title="Consulter le plan d'assemblage de la commune" href="<?=$this->url(array('controller'=>'identite', 'action'=>'iris', 'code'=>$codComIris), null, true)?>" target="_blank"><?=$InfosIris->libIris?></a>
|
||||
<img title="<?=$InfosIris->typIris?>" style="vertical-align:middle;" src="/themes/default/images/info.gif">
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
</div>
|
||||
|
||||
<?php if($this->facade):?>
|
||||
<?=$this->action('facade', 'identite', null, array('infos' => $this->infos));?>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
</div>
|
@ -1,17 +0,0 @@
|
||||
<?php if ($this->url) {?>
|
||||
<div id="legende-photo">Cliché à l'approche de l'adresse postale.</div>
|
||||
<img id="streetview" src="<?=$this->url?>" width="320" height="320" />
|
||||
<div>
|
||||
<a class="street-heading" href="<?=$this->url(array(
|
||||
'controller'=>'identite','action'=>'streetview', 'lat'=>$this->lat, 'lon'=>$this->lon, 'heading'=>$this->pagePrec))?>"><</a>
|
||||
-
|
||||
<a class="street-heading" href="<?=$this->url(array(
|
||||
'controller'=>'identite','action'=>'streetview', 'lat'=>$this->lat, 'lon'=>$this->lon, 'heading'=>$this->pageSuiv))?>">></a>
|
||||
</div>
|
||||
<script>
|
||||
$('a.street-heading').click(function(e){
|
||||
e.preventDefault();
|
||||
$('#infogeo_photo').load($(this).attr('href'));
|
||||
});
|
||||
</script>
|
||||
<?php }?>
|
@ -1,8 +0,0 @@
|
||||
<ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="f">
|
||||
<li data-role="list-divider">Overview</li>
|
||||
<li><a href="<?=$this->url(array('controller'=>'recherche', 'action'=>'entreprise'), null, true);?>">Recherche Entreprise</a></li>
|
||||
<li><a href="<?=$this->url(array('controller'=>'recherche', 'action'=>'dirigeant'), null, true);?>">Recherche Dirigeants</a></li>
|
||||
<li><a href="<?=$this->url(array('controller'=>'recherche', 'action'=>'actionnaire'), null, true);?>">Recherche Actionnaires</a></li>
|
||||
<li><a href="<?=$this->url(array('controller'=>'recherche', 'action'=>'annonce'), null, true);?>">Recherche Annonces</a></li>
|
||||
<li><a href="<?=$this->url(array('controller'=>'recherche', 'action'=>'entreprise'), null, true);?>">Recherche dans vos surveillances</a></li>
|
||||
</ul>
|
@ -1,28 +0,0 @@
|
||||
<?=$this->doctype()?>
|
||||
<html>
|
||||
<head>
|
||||
<?=$this->headMeta()?>
|
||||
<?=$this->headTitle()?>
|
||||
<?=$this->headStyle()?>
|
||||
<?=$this->headLink()?>
|
||||
<?=$this->headScript()?>
|
||||
</head>
|
||||
<body>
|
||||
<div data-role="page">
|
||||
<div data-role="header" role="banner">
|
||||
<h2 class="ui-title" role="heading" aria-level="1">Extranet</h2>
|
||||
<a href="#" data-role="button" role="button">Menu</a>
|
||||
<a href="#" data-role="button" role="button">Search</a>
|
||||
</div><!-- /header -->
|
||||
|
||||
<div role="main" class="ui-content">
|
||||
<?=$this->layout()->content?>
|
||||
</div><!-- /content -->
|
||||
|
||||
<div data-role="footer" data-position="fixed">
|
||||
<h4>Scores & Decisions</h4>
|
||||
</div><!-- /footer -->
|
||||
|
||||
</div><!-- /page -->
|
||||
</body>
|
||||
</html>
|
@ -1,30 +0,0 @@
|
||||
<ul class="navigation">
|
||||
<?php
|
||||
$html = array();
|
||||
foreach ($this->container as $page)
|
||||
{
|
||||
$html[] = "<li>";
|
||||
$html[] = "<h3>" . $this->menu()->htmlify($page) . "</h3>" . PHP_EOL;
|
||||
if (!empty($page->pages))
|
||||
{
|
||||
$html[] = "<div>";
|
||||
$html[] = "<ul>";
|
||||
foreach ($page->pages as $subpage)
|
||||
{
|
||||
$html[] = "<li>";
|
||||
$href = $subpage->getHref();
|
||||
$html[] = "<a href=\"{$href}\">";
|
||||
$html[] = $subpage->getLabel();
|
||||
$html[] = "</a>";
|
||||
|
||||
$html[] = "</li>";
|
||||
}
|
||||
$html[] = "</ul>";
|
||||
$html[] = "</div>";
|
||||
}
|
||||
|
||||
$html[] = "</li>";
|
||||
}
|
||||
echo join(PHP_EOL, $html);
|
||||
?>
|
||||
</ul>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user