Compare commits

...

207 Commits

Author SHA1 Message Date
Jean Vladimir TWAHIRWA
ee3f799e8d surveillances 2016-12-02 11:43:44 +01:00
Jean Vladimir TWAHIRWA
c8ceb9d4d6 correction des liens pour la mise à surveillance 2016-11-24 17:09:15 +01:00
Michael RICOIS
f6f03bf098 Simplification du theme : retrait du footer 2016-11-17 12:44:52 +01:00
Jean Vladimir TWAHIRWA
7d24c57771 Merge branch 'wip-2.9-design2016' of ssh://git@192.168.78.249:10022/SCORES/extranet.git into wip-2.9-design2016 2016-11-16 15:16:08 +01:00
Jean Vladimir TWAHIRWA
0f4458c91b impression PDF et Papier
(ajout de fichier print.css et print.js pour l'impression )
2016-11-16 15:12:54 +01:00
Jean Vladimir TWAHIRWA
fa34b2caf4 renomer les attributs 2016-11-15 10:13:09 +01:00
Jean Vladimir TWAHIRWA
49e2607cb6 PDF print 2016-11-15 10:09:31 +01:00
Jean Vladimir TWAHIRWA
348319609d print liens params 2 2016-11-07 10:16:25 +01:00
Michael RICOIS
a4b9d87913 Merge branch 'wip-2.9-design2016' of ssh://git@192.168.78.249:10022/SCORES/extranet.git into wip-2.9-design2016 2016-10-10 09:36:32 +02:00
Jean Vladimir TWAHIRWA
987ccfba1c correction liens inter-entreprises (supprimer le document) 2016-10-05 17:24:13 +02:00
Abdoulaye SIBY
390f7339c9 commit mise à jour. 2016-10-05 15:15:50 +02:00
Abdoulaye SIBY
7a81292a18 modification dans index 2016-10-05 13:37:05 +02:00
Jean Vladimir TWAHIRWA
8b74ed20f7 modif affichage bloc identite de l'entreprise 2016-10-04 17:47:09 +02:00
Jean Vladimir TWAHIRWA
45b7bbf225 utilisation du bootstrap dans l'affichage des evenements 2016-10-04 11:25:08 +02:00
Michael RICOIS
052ceae44d CS 2016-10-03 11:42:15 +02:00
Jean Vladimir TWAHIRWA
b57e391ed6 correction fiche de l'identite 2016-09-28 18:00:32 +02:00
Jean Vladimir TWAHIRWA
49a44becc8 formulaire personne physique et societe etrangere (ajouter bootstrap
dans les vues)
2016-09-28 18:00:13 +02:00
Abdoulaye SIBY
316a8396c6 Correction liens. 2016-09-28 10:20:01 +02:00
Michael RICOIS
37bc4ffe89 Comment noConflict 2016-09-26 11:59:23 +02:00
Michael RICOIS
b6ad1a5988 Design 2016-09-22 17:04:47 +02:00
Michael RICOIS
158b18ac66 Solve tooltip conflict with bootstrap 2016-09-22 15:41:00 +02:00
Michael RICOIS
726293c4ec Affichage raisonSociale 2016-09-22 15:26:02 +02:00
Michael RICOIS
b3d7731325 Metis Menu, bootstrap conflict 2016-09-22 15:02:03 +02:00
Michael RICOIS
dccf25ea3e Merge remote-tracking branch 'origin/develop' into wip-2.9-design2016
Conflicts:
	application/modules/default/views/default/scripts/aide/cgu.phtml
	application/modules/default/views/default/scripts/bdf/index.phtml
	application/modules/default/views/mobile/scripts/identite/facade.phtml
	application/modules/default/views/mobile/scripts/recherche/annonce.phtml
	public/themes/default/scripts/evaluation.js
	public/themes/default/scripts/script.js
2016-09-22 14:30:00 +02:00
Michael RICOIS
5ad4dc2cc1 Cross on dialog 2016-09-22 12:34:15 +02:00
Michael RICOIS
ea3f8b9c62 Lien edition du cutoff 2016-09-22 12:32:43 +02:00
Jean Vladimir TWAHIRWA
15759b99e6 Merge branch 'wip-2.9-design2016' of ssh://git@192.168.78.249:10022/SCORES/extranet.git into wip-2.9-design2016 2016-09-21 17:33:50 +02:00
Jean Vladimir TWAHIRWA
0a28b03369 correction de d'editer la fiche dans l'identite fiche 2016-09-21 17:33:25 +02:00
Abdoulaye SIBY
b65d7dfcab 2033.phtml et 2050.phtml deplacées dans
input/views/default/scripts/liasse
2016-09-21 17:04:46 +02:00
Jean Vladimir TWAHIRWA
9af3626ce4 Merge branch 'wip-2.9-design2016' of ssh://git@192.168.78.249:10022/SCORES/extranet.git into wip-2.9-design2016 2016-09-21 14:35:13 +02:00
Jean Vladimir TWAHIRWA
42741435c2 utilisation du bootstrap dans les vu d'edution (liens inter-entreprises) 2016-09-21 14:32:46 +02:00
Michael RICOIS
05ed9c3178 Merge remote-tracking branch 'origin/develop' into wip-2.9-design2016
Conflicts:
	library/Application/Controller/Plugin/Auth.php
2016-09-21 09:42:19 +02:00
Michael RICOIS
8efee47092 Merge branch 'wip-2.9-design2016' of ssh://git@192.168.78.249:10022/SCORES/extranet.git into wip-2.9-design2016 2016-09-20 17:22:10 +02:00
Jean Vladimir TWAHIRWA
9abba3298e Merge branch 'wip-2.9-design2016' of ssh://git@192.168.78.249:10022/SCORES/extranet.git into wip-2.9-design2016 2016-09-14 14:07:26 +02:00
Jean Vladimir TWAHIRWA
c45cf43356 Liens inter-entreprises
-correction de liens (fusionner/deplacer actionnaire et lier document)
-correction de liens (fusionner/deplacer participation, modifier
participation et supprimer participation)
2016-09-14 13:41:02 +02:00
Jean Vladimir TWAHIRWA
3e3504f384 Liens inter-etreprises -Actionnariat -Modifier actionnaire (correction
de lien)
2016-09-13 17:25:11 +02:00
Jean Vladimir TWAHIRWA
d223a1566d Liens inter-entreprises -Actionnariat -Supprimer actionnaire (correction
de lien)
2016-09-13 17:20:26 +02:00
Jean Vladimir TWAHIRWA
de3f6be953 Liens inter-entreprises -Mode Edition -ajouter une
participation(correction de lien)
2016-09-13 16:39:11 +02:00
Jean Vladimir TWAHIRWA
d71cfbfddd Liens inter-entreprises - Mode Editon -Ajouter un actionnaire(correction
de liens)
2016-09-13 16:31:02 +02:00
Michael RICOIS
068dd67941 Prepare view 2016-09-09 09:44:32 +02:00
Michael RICOIS
ef497f71c1 Modification inline pour l'identite utilisateur 2016-09-08 14:46:48 +02:00
Michael RICOIS
5e8d809e09 Suppression permission surveillance 2016-09-08 10:02:22 +02:00
Michael RICOIS
64bbf76075 Submenu 2016-09-08 10:00:09 +02:00
Michael RICOIS
86cf3d9611 Button pour les emails 2016-09-07 17:51:54 +02:00
Michael RICOIS
11dfca7a5a Annonces légales 2016-09-07 17:44:01 +02:00
Michael RICOIS
351b4cce4a Lien Mon Historique > voir plus 2016-09-07 17:17:41 +02:00
Michael RICOIS
68c10b466a NumRM 2016-09-07 17:16:32 +02:00
Michael RICOIS
7024af77ac Nettoyage stylistique 2016-09-07 17:15:42 +02:00
Michael RICOIS
d6c48cb150 Affichage des consultations 2016-09-07 17:03:13 +02:00
Michael RICOIS
24e25b7e93 Changement de libellé 2016-09-07 16:16:17 +02:00
Michael RICOIS
2d6eafc297 getUserLog 2016-09-07 16:16:04 +02:00
Michael RICOIS
c8334aa101 Suppression CSS 2016-09-07 15:51:58 +02:00
Michael RICOIS
25775f2921 Redesign 2016-09-07 15:51:41 +02:00
Michael RICOIS
84c269b14d Redesign 2016-09-07 15:50:45 +02:00
Michael RICOIS
49e7934ffb Repare appel script jquery 2016-09-07 15:37:36 +02:00
Michael RICOIS
132907e39f Delete jquery directory 2016-09-07 15:22:44 +02:00
Michael RICOIS
9beb98a970 Lien 2016-09-07 14:42:56 +02:00
Michael RICOIS
64a096d0b3 Désactivation pour problème de performance 2016-09-07 14:34:07 +02:00
Michael RICOIS
b73146ad37 Vue cadastre 2016-09-07 14:02:02 +02:00
Michael RICOIS
2669865101 getCadastrePatrimoine dans service 0.9 2016-09-07 13:59:32 +02:00
Michael RICOIS
b646b4c669 Button emails, consommation, authentification 2016-09-07 11:35:32 +02:00
Michael RICOIS
506dc9a589 Préparation lien vers pag consommation 2016-09-07 11:35:05 +02:00
Michael RICOIS
93db4adcea Liste des utilisateurs, affichage label actif 2016-09-07 11:32:36 +02:00
Michael RICOIS
2f54607d92 Delete IE6.css 2016-09-07 10:10:06 +02:00
Michael RICOIS
62ddc67c2d Supprime l'ascenceur horizontal 2016-09-07 10:09:15 +02:00
Michael RICOIS
2aaf0de974 Reset formulaire 2016-09-06 16:33:55 +02:00
Michael RICOIS
387e906522 Gestion des paramètres du service 2016-09-06 16:06:48 +02:00
Michael RICOIS
71c809c55f Delete menu utilisateurs 2016-09-06 14:09:05 +02:00
Michael RICOIS
247dc126fc Sample config 2016-09-06 11:40:26 +02:00
Michael RICOIS
76c5e49b92 div#center 2016-09-05 16:34:13 +02:00
Michael RICOIS
db8af5c492 Ajout cadastre 2016-09-05 16:05:03 +02:00
Michael RICOIS
acd1358bc0 Theme update 2016-09-05 13:16:34 +02:00
Michael RICOIS
4827b09d7a Merge remote-tracking branch 'origin/develop' into wip-2.9-design2016
Conflicts:
	.gitignore
	application/layouts/default/footer.phtml
	library/Application/Controller/Plugin/Theme.php
2016-09-05 11:40:34 +02:00
Michael RICOIS
71ed59896e Merge branch 'develop' into wip-2.9-design2016
Conflicts:
	.gitignore
	library/Scores/Ws/Client/Entreprise.php
	library/Scores/Ws/Client/Gestion.php
2016-08-03 14:36:46 +02:00
Michael RICOIS
2dac8dcd1e Respect des balises HTML 2016-06-17 16:22:43 +02:00
Michael RICOIS
18343841ff Liens, Liens d'edition 2016-06-17 16:21:55 +02:00
Michael RICOIS
90817abb3a Page détail des privilèges 2016-06-17 16:20:51 +02:00
Michael RICOIS
91bc8403f6 Layout static 2016-06-15 17:51:55 +02:00
Michael RICOIS
7fa85f3f28 Fermeture balise div 2016-06-15 17:19:12 +02:00
Michael RICOIS
528f028ccc Suppression des liens d'edition 2016-06-15 17:18:31 +02:00
Michael RICOIS
37b0b06e59 Modification de l'affichage en popup de la rnvp 2016-06-15 17:18:02 +02:00
Michael RICOIS
7ce068f0ff Modification de l'affichage de la fiche identite 2016-06-15 17:17:40 +02:00
Michael RICOIS
c80b75373a Historique 2016-06-15 16:52:41 +02:00
Michael RICOIS
8c61ea806a Variable marqueur edition 2016-06-15 15:49:48 +02:00
Michael RICOIS
b614d79b36 Control this->action 2016-06-15 15:28:24 +02:00
Michael RICOIS
11ddb2fd15 Design 2016-06-15 15:20:01 +02:00
Michael RICOIS
b9c7f81757 Lien pour la saisie 2016-06-15 15:16:43 +02:00
Michael RICOIS
733dc59234 Design 2016-06-15 15:16:11 +02:00
Michael RICOIS
f8b17dcc4c Lien vers le module Input 2016-06-15 11:22:12 +02:00
Michael RICOIS
067c41821e Référencement page invisible list entreprise 2016-06-14 15:48:46 +02:00
Michael RICOIS
6c9989f936 Gestion pages active et affichage du menu pour les pages invisible 2016-06-14 15:48:24 +02:00
Michael RICOIS
3694bd6515 Controle du fonctionnement des scripts
Mise à jour JQuery en version 1.12.4
2016-06-13 14:35:11 +02:00
Michael RICOIS
fe70284b6e Liens de saisie pour les liens interentreprise 2016-06-10 11:16:13 +02:00
Michael RICOIS
58a27588ce Suppression variable inutile 2016-06-10 11:12:54 +02:00
Michael RICOIS
15157dc9e7 Résolution conflict bootstrap jquery-ui 2016-06-09 15:59:46 +02:00
Michael RICOIS
7e1ccc1bf9 Gestion des erreurs sur requete WS setUser 2016-06-09 15:26:27 +02:00
Michael RICOIS
ddead1404d Mode edition avec gestion du menu 2016-06-09 15:23:41 +02:00
Michael RICOIS
4eb3e053ed Gestion affichage utilisateur, service 2016-06-09 14:56:45 +02:00
Michael RICOIS
a93379f5d5 Design affichage commande 2016-06-08 15:37:04 +02:00
Michael RICOIS
0bfd53d9b1 Log de consommation 2016-06-08 15:36:48 +02:00
Michael RICOIS
67cab71f1f Formattage 2016-06-08 15:33:11 +02:00
Michael RICOIS
7cff717fdd Menu Print 2016-06-08 15:20:58 +02:00
Michael RICOIS
32b9fa1193 On place les librairies JQuery UI après bootstrap 2016-06-08 15:14:24 +02:00
Michael RICOIS
d083af279d Affichage 2016-06-08 11:29:07 +02:00
Michael RICOIS
c30ba3a96b Module Admin : gestion des utilisateurs 2016-06-08 11:19:33 +02:00
Michael RICOIS
735d95c1b6 Ajout module legal sur la plupart des liens 2016-06-08 11:16:40 +02:00
Michael RICOIS
436c570cf2 Paramètres menu et ordre 2016-06-08 10:32:16 +02:00
Michael RICOIS
2665f8e7eb Plugin Impression et Export 2016-06-08 10:31:24 +02:00
Michael RICOIS
575fece3e9 Redirect pour avoir le menu actif 2016-06-07 11:47:18 +02:00
Michael RICOIS
2f2ed3e5f3 Menu : gestion des paramètres et du mode actif 2016-06-07 10:14:53 +02:00
Michael RICOIS
14995f61c4 Méthode getIdentiteLight 2016-06-07 10:14:05 +02:00
Michael RICOIS
ed2c7727db Méthode AuthLog 2016-06-07 10:13:41 +02:00
Michael RICOIS
fabc376200 Plugin désactivation les requêtes ajax 2016-06-03 14:01:10 +02:00
Michael RICOIS
1e6845f1f5 Account Service 2016-06-02 10:20:18 +02:00
Michael RICOIS
c8789d4a98 Modification url 2016-05-27 10:11:15 +02:00
Michael RICOIS
8713459938 Bottom magin on page header 2016-05-27 10:10:48 +02:00
Michael RICOIS
82998ff6d5 JQuery UI avant bootstrap 2016-05-27 10:10:20 +02:00
Michael RICOIS
cebc71bb73 Ajout méthode webservice 2016-05-27 10:09:43 +02:00
Michael RICOIS
b00946e418 Module user fiche 2016-05-27 10:09:25 +02:00
Michael RICOIS
e130a76dd6 Module admin 2016-05-27 10:09:01 +02:00
Michael RICOIS
6cd0c20981 Service view 2016-05-26 17:02:19 +02:00
Michael RICOIS
b9ef026268 Affichage client 2016-05-26 16:59:00 +02:00
Michael RICOIS
4164fe61e6 Affichage des services 2016-05-26 16:55:20 +02:00
Michael RICOIS
75699f9752 Module admin 2016-05-26 16:29:58 +02:00
Michael RICOIS
f8a7945902 Largeur qtip 2016-05-26 16:26:55 +02:00
Michael RICOIS
2be0eeda34 Menu pour la saisie 2016-05-26 16:03:59 +02:00
Michael RICOIS
96fceb4186 Menu 2016-05-26 16:01:32 +02:00
Michael RICOIS
5524796ed0 Quelques correction de lien 2016-05-26 15:20:57 +02:00
Michael RICOIS
f5b5e93660 Qtip version 3.0.3 2016-05-26 14:56:13 +02:00
Michael RICOIS
8552b93784 Condition plugin edition 2016-05-25 16:30:06 +02:00
Michael RICOIS
9ef7b5b099 Style lien 2016-05-25 10:46:49 +02:00
Michael RICOIS
e28596635d Lien vers legal 2016-05-25 10:36:54 +02:00
Michael RICOIS
ec9a52b38f Histo autorisé sur module search 2016-05-19 16:13:34 +02:00
Michael RICOIS
d66b109bed CGU dans le module default 2016-05-13 11:07:44 +02:00
Michael RICOIS
0c256360b6 Liste des surveillances 2016-05-13 11:06:49 +02:00
Michael RICOIS
5c2dc69e83 Ancienne vue surveillance 2016-05-13 11:06:20 +02:00
Michael RICOIS
fe3771da08 User log 2016-05-13 11:05:51 +02:00
Michael RICOIS
5e87967441 Préparation modules admin et input 2016-05-13 11:05:24 +02:00
Michael RICOIS
3b3a0568a9 Mise à jour des liens du menu User 2016-05-13 11:04:33 +02:00
Michael RICOIS
399d6caf32 Plugin Lien Saisie 2016-05-12 16:36:45 +02:00
Michael RICOIS
d2174d00c6 Preparation Plugin proxy id 2016-05-12 16:35:52 +02:00
Michael RICOIS
248cef6ffd Variable MenuHisto pour gestion de l'affichage 2016-05-12 16:09:03 +02:00
Michael RICOIS
3dc15579b8 Start portfolio 2016-05-12 16:00:45 +02:00
Michael RICOIS
09992794c8 Recherche Actionnaire 2016-05-12 15:33:00 +02:00
Michael RICOIS
f78b64f59c Suppression condition 2016-05-12 15:23:29 +02:00
Michael RICOIS
033d01ed62 Recherche dirigeant 2016-05-12 15:23:07 +02:00
Michael RICOIS
735cc014ba Recherche Entreprise 2016-05-12 15:04:07 +02:00
Michael RICOIS
f794a2493f Revue Identity 2016-05-12 14:35:27 +02:00
Michael RICOIS
746f786116 Disable generation des menus pour le module auth 2016-05-12 12:36:16 +02:00
Michael RICOIS
b6901709a5 Gestion des menus 2016-05-12 12:35:21 +02:00
Michael RICOIS
95548b1196 Suppression div doublon 2016-05-12 12:20:51 +02:00
Michael RICOIS
f4d7dd4aa4 Reference getSurveillance 2016-05-12 12:01:19 +02:00
Michael RICOIS
3074968746 Plugin Suivi 2016-05-12 11:59:53 +02:00
Michael RICOIS
eef2069000 Help : Ajout index 2016-05-11 15:11:36 +02:00
Michael RICOIS
3ad5f1e797 Internal change 2016-05-10 17:21:06 +02:00
Michael RICOIS
3315b8d5d7 Legal - error and cgu 2016-05-10 17:20:36 +02:00
Michael RICOIS
54ec7a262c Legal Module - complete redesign 2016-05-10 17:18:48 +02:00
Michael RICOIS
8aa4676825 Update metisMenu 2016-05-10 09:19:21 +02:00
Michael RICOIS
e76c02113c Legal - Dirigeant Controller 2016-05-09 15:48:30 +02:00
Michael RICOIS
54c13411e8 Legal - Evaluation Controller 2016-05-09 15:47:43 +02:00
Michael RICOIS
75191b3569 Legal - Finance Controller 2016-05-09 15:46:51 +02:00
Michael RICOIS
4ed8584867 Legal - Identite Controller 2016-05-09 15:45:39 +02:00
Michael RICOIS
e86916e5e2 Legal - Juridique Controller 2016-05-09 15:44:29 +02:00
Michael RICOIS
2a10623fce Legal - Pieces Controller 2016-05-09 15:43:18 +02:00
Michael RICOIS
071423d07b Suppression Telechargement 2016-05-09 15:35:42 +02:00
Michael RICOIS
090b63ae34 Suppression 2016-05-09 15:35:07 +02:00
Michael RICOIS
b8bf4f5217 Module Dl 2016-05-09 15:34:47 +02:00
Michael RICOIS
6bd4f90890 Suppression 2016-05-09 15:29:08 +02:00
Michael RICOIS
4c01f3fd5c File controller specialized in download 2016-05-09 15:27:12 +02:00
Michael RICOIS
5bb6c1e24e Visuel des formulaires 2016-05-09 15:08:09 +02:00
Michael RICOIS
03e015b877 Recherche Annonce 2016-05-09 10:51:48 +02:00
Michael RICOIS
2fbddfbb77 Préparation du module admin 2016-05-05 14:34:28 +02:00
Michael RICOIS
443eebca00 Correction suite à création des modules 2016-05-05 14:34:27 +02:00
Michael RICOIS
6ea1905c74 Réglages js et css 2016-05-05 14:34:25 +02:00
Michael RICOIS
7b51bd31b5 Ajout menu user 2016-05-05 14:34:23 +02:00
Michael RICOIS
58a5d93f60 Layout : correction lien menu 2016-05-05 14:34:21 +02:00
Michael RICOIS
6186227939 Correction lien 2016-05-05 14:34:19 +02:00
Michael RICOIS
693357fe1f News template 2016-05-05 14:34:17 +02:00
Michael RICOIS
e1a91000f8 Module help 2016-05-05 14:34:15 +02:00
Michael RICOIS
d900029708 Module Print 2016-05-05 14:34:13 +02:00
Michael RICOIS
cc5abea478 Suppression 2016-05-05 14:34:11 +02:00
Michael RICOIS
1b9c4554f4 Order 2016-05-05 14:34:09 +02:00
Michael RICOIS
1f2f0f4364 Activation Module auth et user 2016-05-05 14:34:07 +02:00
Michael RICOIS
dff71e9172 Url 2016-05-05 14:34:05 +02:00
Michael RICOIS
ab8666c938 Label du menu 2016-05-05 14:34:03 +02:00
Michael RICOIS
2edd863849 Only use module var 2016-05-05 14:34:01 +02:00
Michael RICOIS
907222be18 Module legal 2016-05-05 14:33:59 +02:00
Michael RICOIS
bd4fc76509 Module User 2016-05-05 14:33:58 +02:00
Michael RICOIS
25b1e33dff Lien href 2016-05-05 14:33:56 +02:00
Michael RICOIS
63881ef165 Module Auth 2016-05-05 14:33:54 +02:00
Michael RICOIS
d1065a927d Limitation des plugins 2016-05-05 14:33:52 +02:00
Michael RICOIS
75f1327771 Module Recherche "search" 2016-05-05 14:33:50 +02:00
Michael RICOIS
555964c2fe Controller Search 2016-05-05 14:33:48 +02:00
Michael RICOIS
8b28c609fa Désactivation de la recherche des logs pour limiter les requêtes 2016-05-05 14:33:46 +02:00
Michael RICOIS
a8e36fe7b5 Modification du menu metisMenu 2016-05-05 14:33:44 +02:00
Michael RICOIS
e336c7919d Correction rebase 2016-05-05 14:33:42 +02:00
Michael RICOIS
cbc6bc50d7 Remove autoscroll 2016-05-05 14:33:40 +02:00
Michael RICOIS
752d405001 Integration menu 2016-05-05 14:33:38 +02:00
Michael RICOIS
962330f1c3 Validating theme 2016-05-05 14:33:36 +02:00
Michael RICOIS
ab45879b83 Top Menu 2016-05-05 14:33:34 +02:00
Michael RICOIS
f572996df4 Menu Icon 2016-05-05 14:33:32 +02:00
Michael RICOIS
cfa0c26de1 Footer 2016-05-05 14:33:30 +02:00
Michael RICOIS
1dec9d5b20 Remove ui-1.10.4 2016-05-05 14:33:28 +02:00
Michael RICOIS
ad41fcfcd5 Validation design 2016-05-05 14:33:26 +02:00
Michael RICOIS
6db0fafa7f Déplacement des menus 2016-05-05 14:33:24 +02:00
Michael RICOIS
227668d903 Effet de style 2016-05-05 14:33:22 +02:00
Michael RICOIS
3d1c28b534 Update on all assets librairies - remove IE6 support 2016-05-05 14:33:20 +02:00
420 changed files with 51387 additions and 9891 deletions

View File

@ -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);

View 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',
),
);

View 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',
),
);

View 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',
),
),
),
);

View 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',
)
),
),
),
),
);

View 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',
),
);

View 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',
),
);

View File

@ -1,7 +1,10 @@
<p>&copy; 2006-<?php echo date('Y')?> Scores &amp; D&eacute;cisions SAS -
<div class="container">
<p class="text-muted credit">
&copy; 2006-<?php echo date('Y')?> <a href="http://www.scores-decisions.com">Scores &amp; Décisions SAS</a> -
<?=$this->translate("Tous droits r&eacute;serv&eacute;s")?> -
<a href="http://www.scores-decisions.com/mentions.php" target="_blank">
<?=$this->translate("Mentions l&eacute;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>

View File

@ -1,43 +1,153 @@
<?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 &amp; 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" onclick="myFunction()">
<span class="glyphicon glyphicon-print" aria-hidden="true"></span> Papier</a></li>
<?php }?>
<?php if ($this->PrintPdf) {?>
<li><a title="Impression PDF" href="<?=$this->url(array('module'=>'print', 'controller'=>'file', 'action'=>'pdf',
'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>

View File

@ -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>

View 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>

View 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 }?>

View 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>';
}
}
}

View 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;
}
}

View 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(){}
}

View 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;
}
}
}

View 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;
}
}
}

View File

@ -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>

View File

@ -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 }?>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>.&nbsp;
<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>&nbsp;
<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>

View File

@ -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 }?>

View File

@ -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>

View File

@ -1,5 +1,5 @@
<?php
class AuthController extends Zend_Controller_Action
class Auth_SsoController extends Zend_Controller_Action
{
protected $theme;
@ -30,8 +30,8 @@ class AuthController extends Zend_Controller_Action
$this->_helper->layout()->disableLayout();
$this->view->headLink()
->appendStylesheet($this->theme->pathStyle.'/inexweb.css', 'all')
->appendStylesheet($this->theme->pathStyle.'/user.css', 'all');
->appendStylesheet($this->theme->pathStyle.'/inexweb.css', 'all')
->appendStylesheet($this->theme->pathStyle.'/user.css', 'all');
$request = $this->getRequest();
@ -45,11 +45,11 @@ class AuthController extends Zend_Controller_Action
$params = $request->getParams();
$objectParams = array();
foreach ($params as $label => $value) {
if (in_array($label, array('controller', 'action'))) continue;
$object = new stdClass();
$object->label = $label;
$object->value = $value;
$objectParams[] = $object;
if (in_array($label, array('module', 'controller', 'action'))) continue;
$object = new stdClass();
$object->label = $label;
$object->value = $value;
$objectParams[] = $object;
}
$this->view->Params = $objectParams;
@ -61,7 +61,7 @@ class AuthController extends Zend_Controller_Action
$token = $params[$config['token']];
try {
$ws = new Scores_Ws_Client('gestion', '0.4');
$ws = new Scores_Ws_Client('account', '0.1');
$parameters = new stdClass();
$parameters->client = $config['clientId'];
$parameters->login = $login;
@ -71,14 +71,14 @@ class AuthController extends Zend_Controller_Action
// --- Utilisateur inexistant
if ( $hash === 'false' || $hash === false ) {
$this->view->NoUser = true;
$urlParams = array('controller'=>'auth', 'action'=>'userssoform');
$urlParams = array('module'=>'auth', 'controller'=>'sso', 'action'=>'userform');
$urlParams = array_merge($params, $urlParams);
$this->view->FormUrlParams = $urlParams;
}
// --- Redirection
else {
$auth = Zend_Auth::getInstance();
$auth = Zend_Auth::getInstance();
// --- Set partial identity
$identity = new stdClass();
@ -136,7 +136,7 @@ class AuthController extends Zend_Controller_Action
/**
* Affichage du formulaire pour l'inscription des utilisateurs
*/
public function userssoformAction()
public function userformAction()
{
// --- Désactiver le layout
$this->_helper->layout()->disableLayout();
@ -153,7 +153,7 @@ class AuthController extends Zend_Controller_Action
$params = $request->getParams();
$objectParams = array();
foreach ($params as $label => $value) {
if (in_array($label, array('controller', 'action'))) continue;
if (in_array($label, array('module', 'controller', 'action'))) continue;
$object = new stdClass();
$object->label = $label;
$object->value = $value;
@ -185,7 +185,7 @@ class AuthController extends Zend_Controller_Action
/**
* Creation d'un utilisateur en SSO
*/
public function userssocreateAction()
public function usercreateAction()
{
$this->_helper->layout()->disableLayout();
@ -208,7 +208,7 @@ class AuthController extends Zend_Controller_Action
);
try {
$ws = new Scores_Ws_Client('gestion', '0.4');
$ws = new Scores_Ws_Client('account', '0.1');
$parameters = new stdClass();
$parameters->data = json_encode($data);
$created = $ws->setUserSSO($parameters);
@ -220,10 +220,10 @@ class AuthController extends Zend_Controller_Action
$params = $request->getParams();
$urlArgs = array();
foreach ($params as $label => $value) {
if (in_array($label, array('controller', 'action'))) continue;
if (substr($label, 0, 2) == 'P-') {
$urlArgs[substr($label, 2)] = $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;
@ -243,24 +243,4 @@ class AuthController extends Zend_Controller_Action
$this->view->Message = "Erreur dans les paramètres.";
}
}
/**
* Lien de validation depuis email
* Paramètres
* - login ou email
* - key
* L'action renvoi sur un affichage spécifique suivant le type de client
*/
public function validateAction()
{
$request = $this->getRequest();
//Validation en erreur
//Validation invalide
//Validation Ok => Comment afficher les particularités
}
}

View 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);
}
}
}

View File

@ -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>

View File

@ -45,7 +45,7 @@
</div>
<div class="col-md-6">
<form method="post" action="<?=$this->url(array('controller'=>'auth', 'action'=>'userssocreate'), 'default', true)?>">
<form method="post" action="<?=$this->url(array('module'=>'auth', 'controller'=>'sso', 'action'=>'usercreate'), 'default', true)?>">
<h2 class="form-signin-heading">Extranet <small>Scores &amp; Décisions</small></h2>
<?php
//Error

View 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 }?>

View File

@ -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"> &copy; <?=date('Y')?> <a href="http://www.scores-decisions.com">Scores & Décisions SAS</a>.</p>
</div>
</div>
<?php echo $this->inlineScript(); ?>
</body>
</html>

View File

@ -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"> &copy; <?=date('Y')?> <a href="http://www.scores-decisions.com">Scores & Décisions SAS</a>.</p>
</div>
</div>
</body>
</html>
<?php }?>

View File

@ -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 daccè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;
}
}

View File

@ -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);
}
}

View File

@ -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(

View File

@ -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];
}
}

View File

@ -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')));
}
}

View File

@ -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
),
);

View File

@ -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);
}
}

View File

@ -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>

View File

@ -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>

View File

@ -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 }?>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>&nbsp;</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>&nbsp;</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>

View File

@ -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>

View File

@ -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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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;?>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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">&nbsp;Page <?php echo $this->page + 1 .'/'. round(($this->resultats->NumberOfHits > $this->userMaxResult)?$this->resultats->NumberOfHits/$this->userMaxResult:1);?>&nbsp;</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>

View File

@ -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" />

View File

@ -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" />

View File

@ -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" />

View File

@ -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&Eacute;");?></h1>
<?php }?>

View File

@ -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>

View File

@ -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()?>">
@ -23,7 +23,6 @@
<div class="row">
<?=$form->raisonSociale?>
</div>
<br/><br/>
<div class="row">
<?=$form->numero?>
<?=$form->voie?>
@ -34,7 +33,6 @@
<div class="row">
<?=$form->telFax?>
</div>
<br/><br/>
<div class="row">
<?=$form->naf?>
</div>

View File

@ -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>

View File

@ -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>

View File

@ -105,5 +105,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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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)); ?>">&laquo;</a>
<!-- Previous page link -->
<?php if (!$this->previous) $this->previous = $this->first;?>
<a class="previous" href="<?=$this->url(array('page' => $this->previous)); ?>">&lsaquo;</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)); ?>">&rsaquo;</a>
<!-- Last page link -->
<a class="last" href="<?=$this->url(array('page' => $this->last)); ?>">&raquo;</a>
</div>
</div>
<?php } ?>

View File

@ -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>

View File

@ -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)?>">&nbsp;Search in Extranet&nbsp;&nbsp;</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)?>">&nbsp;Search in Extranet&nbsp;&nbsp;</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>

View File

@ -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 } ?>

View File

@ -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>

View File

@ -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>

View File

@ -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 }?>

View File

@ -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>

View File

@ -1,5 +0,0 @@
<p>&copy; 2006-<?php echo date('Y')?> Scores &amp; D&eacute;cisions SAS -
Tous droits r&eacute;serv&eacute;s -
<a href="http://www.scores-decisions.com/mentions.php" target="_blank">
Mentions l&eacute;gales
</a>

View File

@ -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 }?>

View File

@ -1,12 +0,0 @@
<div id="center">
<h2 class="titre">LISTE DES &Eacute;TABLISSEMNTS</h2>
<h2>&Eacute;tablissements</h2>
<?php if (empty($this->AutrePage)):?>
<?=$this->render('cgu.phtml', $this->cgu)?>
<?php endif;?>
</div>

View File

@ -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 } ?>

View File

@ -1,81 +0,0 @@
<div id="center">
<?php if ( empty($this->AutrePage) ) {?>
<h2 class="titre">FICHE D'IDENTIT&Eacute;</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 &amp; 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) &amp; 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>

View File

@ -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 &copy;</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>

View File

@ -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))?>">&lt;</a>
-
<a class="street-heading" href="<?=$this->url(array(
'controller'=>'identite','action'=>'streetview', 'lat'=>$this->lat, 'lon'=>$this->lon, 'heading'=>$this->pageSuiv))?>">&gt;</a>
</div>
<script>
$('a.street-heading').click(function(e){
e.preventDefault();
$('#infogeo_photo').load($(this).attr('href'));
});
</script>
<?php }?>

View File

@ -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>

View File

@ -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>

View File

@ -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