Compare commits

...

1132 Commits

Author SHA1 Message Date
Claire DELBOS
fe0fb41d04 SD-28 2017-04-14 09:34:29 +02:00
Claire DELBOS
220aa8e27c SD-32 2017-04-14 09:11:10 +02:00
Claire DELBOS
9a8a008d03 SD-28 2017-04-13 12:10:44 +02:00
Claire DELBOS
65831d3194 SD-35 SD-28 2017-04-11 16:37:57 +02:00
Claire DELBOS
b63addf2a4 SD-30+SD-33 2017-04-07 11:20:55 +02:00
potier
d1d3448e2d Merge branch 'bilanconfidentiel' into 'develop'
Bilanconfidentiel

See merge request !1
2017-03-29 08:29:02 +00:00
benoitpotier
0e2ad852b2 delete cash 2017-03-27 17:02:45 +02:00
benoitpotier
442ded2379 Merge branch 'develop' of gitlab.factory.insight.doubletrade.com:scores/extranet into bilanconfidentiel 2017-03-27 14:38:05 +02:00
Michael RICOIS
71d9e899f9 Plus de vérification à la connexion 2017-03-23 21:08:18 +01:00
benoitpotier
2b9e237d31 delete dead code 2017-03-23 15:28:50 +01:00
benoitpotier
bdc8be3670 progress confidentiel 2017-03-21 16:16:53 +01:00
benoitpotier
a0ebfe4d14 modification de la visibilité des rapports confidentiels 2017-03-21 09:47:05 +01:00
benoitpotier
5313c9265b suppression renseignement du confidentiel ou non lors de la saisie du bilan 2017-03-21 08:53:24 +01:00
benoitpotier
3510df43e2 ne pass visualiser un bilan confidentiel 2017-03-20 14:31:58 +01:00
benoitpotier
9eec98395b saisi bilan confidentiel peut avoir une valeur 2017-03-17 16:25:22 +01:00
benoitpotier
4a384d6f79 ajout message bilan confidentiel lors de la consultations d'un bilan de liasse fiscale, ajout d'un champ confidentiel lors de la saisie d'un bilan 2017-03-17 11:55:24 +01:00
Michael RICOIS
c12ac41b8a Bilan confidentiel : Design 2017-03-09 12:32:52 +01:00
Michael RICOIS
1fd1e78603 Remove cache 2017-03-09 12:09:01 +01:00
Michael RICOIS
e8ad4db136 Remove IDE syntax error 2017-03-09 11:07:44 +01:00
Michael RICOIS
ed53d33b7e Gestion de l'affichage des bilans confidentiel 2017-03-08 16:17:07 +01:00
Michael RICOIS
23bd68129c Fix typo 2017-03-07 15:56:34 +01:00
Michael RICOIS
693675583e Delete config key, n'existe pas ! 2017-03-07 14:55:17 +01:00
Michael RICOIS
f74eef8399 Remove "temp" directory in shared 2017-03-07 14:50:28 +01:00
Michael RICOIS
b9b5c774e5 Comment Console et ChromePHP handler to not disturb ajax request 2017-02-20 16:59:03 +01:00
Michael RICOIS
2346302684 Use ChromePhpHandler 2017-02-20 12:07:51 +01:00
Michael RICOIS
98378fa6df Typo 2017-02-16 11:13:20 +01:00
Michael RICOIS
d1936057f9 Merge branch 'logger' into develop 2017-02-16 11:05:32 +01:00
Michael RICOIS
511dfa92d7 Soap Try-Catch 2017-02-14 11:40:29 +01:00
Michael RICOIS
4a1ea34d41 Dialog annonce : javascript redesign 2017-02-14 11:37:32 +01:00
Michael RICOIS
7f43461f7d dupliqueAnnonce : errorMsg 2017-02-14 11:33:51 +01:00
Michael RICOIS
8a95034deb Uncomment 2017-02-14 11:33:24 +01:00
Claire DELBOS
f59827e869 Passage webservice en version 2 + correction affichage du dialogue 2017-02-14 09:56:20 +01:00
Michael RICOIS
b8cd36c2a2 Fix var type for logger 2017-02-13 16:56:06 +01:00
Michael RICOIS
cc4592eddd Logger 2017-02-13 14:08:23 +01:00
Michael RICOIS
f55fa25915 Add logger 2017-02-13 13:53:52 +01:00
Michael RICOIS
a880dea68d Add use 2017-02-13 13:53:40 +01:00
Michael RICOIS
0c6e07b12c Declare logger 2017-02-13 12:06:18 +01:00
Michael RICOIS
3f814645e5 Add logger var 2017-02-13 12:02:09 +01:00
Michael RICOIS
af0d432680 Monolog in registry 2017-02-10 16:54:46 +01:00
Michael RICOIS
f19057dcca Add Monolog 2017-02-10 16:54:29 +01:00
Michael RICOIS
5f27da2646 Mail : From and To 2017-02-10 16:38:46 +01:00
Michael RICOIS
4b2e22ba21 Mise à jour de la documentation et simplification 2017-02-10 15:22:47 +01:00
Michael RICOIS
2c2d31afe6 Change config 2017-02-10 11:12:01 +01:00
Michael RICOIS
9069fd32e3 Attribut class manquant pour appel javascript 2017-02-07 13:33:17 +01:00
Michael RICOIS
cb9ff5f7b1 Fix TcPdf 2017-02-01 13:16:30 +01:00
Michael RICOIS
7dd700c160 Reduce notice 2017-01-31 11:27:03 +01:00
Michael RICOIS
47b413ee21 Change from pour l'envoi des emails 2017-01-31 10:50:52 +01:00
Michael RICOIS
781441ff56 Impression annonce unitaire 2017-01-27 10:58:34 +01:00
Michael RICOIS
d491b35fcd Nettoyage jstree 2017-01-27 10:49:06 +01:00
Michael RICOIS
dd75075e2c Merge branch 'jstree' into develop 2017-01-27 10:16:47 +01:00
Michael RICOIS
a408af31b6 Formattage 2017-01-27 10:16:18 +01:00
Jean Vladimir TWAHIRWA
612b8176df modif dans le code d'impression 2017-01-27 09:39:47 +01:00
Jean Vladimir TWAHIRWA
fe436afb8e use jstree-3.3.3 2017-01-27 09:10:08 +01:00
Michael RICOIS
25b8870f16 Bascule des alertes dans suivi 2017-01-19 11:10:25 +01:00
Michael RICOIS
cae5250e25 Validation visuel 2017-01-18 10:50:04 +01:00
Michael RICOIS
c0960cfa21 Format 2017-01-18 10:28:09 +01:00
Michael RICOIS
aab33cf83b Format 2017-01-17 16:45:06 +01:00
Michael RICOIS
0205411e8c Normalize.css version 5.0.0 2017-01-17 16:41:15 +01:00
Michael RICOIS
38cc757542 Explode view annonce 2017-01-17 16:23:31 +01:00
Michael RICOIS
4363454eb1 Target 2017-01-17 14:07:15 +01:00
Michael RICOIS
2367e4ca0f Lien vers le site avis de situation dans le message d'erreur 2017-01-17 14:05:46 +01:00
Michael RICOIS
db1fb57858 Récupération du bodacc PDF
Modification de la récupération du bodacc pdf pour gérer les témoins de
publication unitaire
2017-01-17 13:51:10 +01:00
Michael RICOIS
e8d13e6044 cli getTemoinPdf 2017-01-16 17:12:04 +01:00
Michael RICOIS
7b441166ec Composer 2017-01-16 15:09:23 +01:00
Michael RICOIS
e5d5446299 Action on ID 2017-01-05 11:09:58 +01:00
Michael RICOIS
5c96452849 Comment PHP7 2017-01-05 11:06:18 +01:00
Michael RICOIS
de8413e567 Comment PHP7 2017-01-05 11:04:40 +01:00
Jean Vladimir TWAHIRWA
1d004772b2 Merge branch 'develop' of ssh://git@172.18.8.5:10022/SCORES/extranet.git into develop 2017-01-05 11:03:59 +01:00
Michael RICOIS
178909c96d Test sans A 2017-01-05 10:51:14 +01:00
Michael RICOIS
4c1b289301 Correction sur le select 2017-01-03 16:06:01 +01:00
Michael RICOIS
bc4178eab1 Modification des liens "recherche directe"
Lien direct fiche identité
Lien direct indiscore
Utilisation de font awesome
Intégration des modifications réalisées dans develop
2017-01-03 15:38:40 +01:00
Michael RICOIS
9bff3e63f7 Merge branch 'develop' into indiscore-color 2017-01-03 14:05:51 +01:00
Michael RICOIS
a0bbaa731a Nouvelles icones avec font awesome 2017-01-03 14:02:46 +01:00
Michael RICOIS
fff3e2c4c7 Vert-Orange-Rouge pour l'affichage du score 2017-01-03 13:26:07 +01:00
Michael RICOIS
a9943ea9ec Comment border on content 2017-01-02 09:46:57 +01:00
Michael RICOIS
972feba6b8 Logo 2016-12-23 15:06:45 +01:00
Michael RICOIS
e78dcb7b87 Add logo 2016-12-23 15:03:23 +01:00
Michael RICOIS
f450fbdee2 Background blanc 2016-12-23 15:02:54 +01:00
Michael RICOIS
c002f0ca73 Merge branch 'ui-1.12' into develop 2016-12-23 11:22:52 +01:00
Michael RICOIS
f11f90079f Merge branch 'ol-3.20.1' into develop 2016-12-23 11:22:44 +01:00
Michael RICOIS
95c8720db7 Font Awesome version 4.7.0 2016-12-23 11:18:56 +01:00
Michael RICOIS
63c56c8319 Update OpenLayers to version 3.20.1 2016-12-23 11:07:39 +01:00
Michael RICOIS
b164a1e211 JQuery UI 1.12.1 2016-12-23 11:02:19 +01:00
Michael RICOIS
375643c23d Suppression InExtenso BETA 2016-12-22 14:56:06 +01:00
Michael RICOIS
12b82219fd Suppression errorMsg 2016-12-22 14:45:14 +01:00
Michael RICOIS
65bcaff595 Ne pas lever d'exception sur ssoAuthenticate 2016-12-22 11:34:59 +01:00
Michael RICOIS
93383f9bd9 Orthographe 2016-12-12 11:48:29 +01:00
Michael RICOIS
bcb2eff28a Remove beta 2016-12-12 10:29:13 +01:00
Michael RICOIS
3898d7ee9e CS 2016-12-02 15:35:08 +01:00
Michael RICOIS
c3a98c7c4a BOMP 2016-11-29 10:53:25 +01:00
Michael RICOIS
1bb82500a1 Fix issue sur la liste BOAMP et la panination 2016-11-28 11:48:38 +01:00
Jean Vladimir TWAHIRWA
60657ac327 Merge branch 'develop' of ssh://git@192.168.78.249:10022/SCORES/extranet.git into develop 2016-11-21 17:26:34 +01:00
Jean Vladimir TWAHIRWA
0692653f61 2016-11-09 12:14:29 +01:00
Michael RICOIS
0f27e69168 Suppression de la liste des JALs 2016-10-28 14:18:57 +02:00
Michael RICOIS
c84f16d90c Prise en compte de l'Absorption et Dissolution dans l'affichage 2016-10-28 09:36:03 +02:00
Jean Vladimir TWAHIRWA
38402789f7 print pdf and save streetview img 2016-10-26 17:11:04 +02:00
Michael RICOIS
b03b403ea5 Etc file move to ansible 2016-10-25 15:57:22 +02:00
Michael RICOIS
70990e4d6e Update documentation 2016-10-25 15:55:26 +02:00
Michael RICOIS
5b64ab8996 Remove old file 2016-10-25 15:55:09 +02:00
Michael RICOIS
6a66500da6 Add better style for printing 2016-10-25 15:43:32 +02:00
Michael RICOIS
195865a347 Merge branch 'develop' of ssh://git@192.168.78.249:10022/SCORES/extranet.git into develop 2016-10-24 11:27:21 +02:00
Michael RICOIS
933691c9be Remove service Gestion v0.3 and add service Account v0.1 2016-10-24 11:27:06 +02:00
Jean Vladimir TWAHIRWA
d2f865f9b9 Merge branch 'develop' of ssh://git@192.168.78.249:10022/SCORES/extranet.git into develop 2016-10-12 17:17:41 +02:00
Jean Vladimir TWAHIRWA
9fd67f1c30 ajouter le formulaire d'ajout , d'edution et suppression d'un RIB/IBAN 2016-10-12 17:17:25 +02:00
Abdoulaye SIBY
6f23a8fc20 commit 2016-10-12 16:01:10 +02:00
Abdoulaye SIBY
d63f1d0e6e Menu Evaluation>Patrimoine:
Ajout de libellés pour la colonne Rôle en info bulle + m² pour les
superficies.
2016-10-12 16:01:10 +02:00
Michael RICOIS
2be85368b2 forward 2016-10-12 15:45:40 +02:00
Abdoulaye SIBY
f104f8364d Menu Eléments juridiques>Contentieus Judiciaires
correction pagination
2016-10-10 16:57:39 +02:00
Michael RICOIS
6846c9934f Indiscore2 : Suppression des commentaires 2016-09-26 11:38:05 +02:00
Michael RICOIS
182a6c1b8e Gestion erreur dans cadastre 2016-09-26 11:19:06 +02:00
Michael RICOIS
b012fa258c JS document.ready shorthand 2016-09-22 14:18:55 +02:00
Michael RICOIS
39a3940463 Typo 2016-09-20 17:19:12 +02:00
Michael RICOIS
eb4197440b Typo 2016-09-20 17:18:11 +02:00
Michael RICOIS
3ba5c8d1cb Deprecated 2016-09-20 16:37:56 +02:00
Michael RICOIS
82f3479ba1 Pas d'information cadastre 2016-09-14 15:22:04 +02:00
Michael RICOIS
9da9eb6c43 Amélioration connexion IP Only avec ajout de debug 2016-09-14 13:33:37 +02:00
Michael RICOIS
ebde33371c Remove placeholder 2016-09-14 11:45:25 +02:00
Michael RICOIS
d88a8797c9 Update Zend Framework to version 1.12.20 2016-09-09 09:55:01 +02:00
Michael RICOIS
56bb17e306 Surveillance : Chaine email(s) original 2016-09-06 16:46:25 +02:00
Michael RICOIS
788421dca0 Surveillance : Tous les emails 2016-09-06 16:44:57 +02:00
Michael RICOIS
a499b8f62c Move .user.ini in public 2016-08-30 17:20:46 +02:00
Michael RICOIS
e9dbfcacd9 Remove mobile theme 2016-08-30 17:15:51 +02:00
Michael RICOIS
19622ba55b Remove IE6 upgrade information 2016-08-30 17:13:49 +02:00
Michael RICOIS
a9f78a96b9 Font Awesome 4.6.3 2016-08-30 17:08:01 +02:00
Michael RICOIS
4c4d8f8020 JQuery version 1.12.4 2016-08-30 17:06:28 +02:00
Michael RICOIS
1dceec275c JQuery UI version 1.11.4 2016-08-30 17:03:59 +02:00
Michael RICOIS
6cbb49ba03 Remove IE6 support 2016-08-30 16:51:58 +02:00
Michael RICOIS
794980e4bf Upgrade bootstrap to version 3.3.7 2016-08-30 16:46:58 +02:00
Michael RICOIS
4e6b6f1830 Cadastre : Test affichage 2016-08-01 12:04:58 +02:00
Michael RICOIS
978c11bd20 Vue cadastre, patrimoine foncier 2016-07-29 17:37:50 +02:00
Michael RICOIS
53c96de7cd Logging by email sur les requetes WS 2016-07-11 14:20:18 +02:00
Michael RICOIS
3c181592e0 Message editon utilisateur 2016-07-08 15:28:42 +02:00
Michael RICOIS
775954a8c0 Add prefetch 2016-07-07 10:19:18 +02:00
Michael RICOIS
dcfe78b3c3 Saisie de bilan : Correction pour la création de nouveau bilan 2016-06-22 11:36:53 +02:00
Michael RICOIS
cff02fad4b Correction du n'importe quoi webservice 2016-06-20 11:20:13 +02:00
Michael RICOIS
ab23f5e9db Affichage dans la vue NumRM et ActiviteArtisanale 2016-06-20 09:40:03 +02:00
Michael RICOIS
05af026824 Activité Artisanale et NumRM 2016-06-20 09:09:57 +02:00
Michael RICOIS
1d7a0b91ee Ignore 2016-05-13 16:03:32 +02:00
Michael RICOIS
a43e1bc0f7 Commentaire 2016-05-13 16:01:06 +02:00
Michael RICOIS
b509df228c Merge error 2016-04-20 17:31:16 +02:00
Michael RICOIS
4425400587 Merge branch 'hotfix-bodaccpdf' into develop
Conflicts:
	.gitignore
2016-04-20 17:30:20 +02:00
Michael RICOIS
b8a7edc0c2 Bodacc Pdf : Changement de l'url de détail de l'annonce 2016-04-20 17:28:14 +02:00
Michael RICOIS
91cc5d9dc2 Ignore eclipse file 2016-04-20 17:27:32 +02:00
Michael RICOIS
7aba73e82f Ignore eclipse file 2016-04-19 17:33:02 +02:00
Michael RICOIS
e672855857 Merge : Contentieux et plus 2016-04-18 09:32:50 +00:00
Michael RICOIS
b27361b00f Contentieux : libellé demandeur/defendeur 2016-04-14 15:27:19 +00:00
Michael RICOIS
f3b2ab1b8c Contentieux : Formulaire demandeur / défendeur 2016-04-14 15:03:49 +00:00
Michael RICOIS
95940ad113 Gestion des Exceptions après retour de l'API 2016-04-12 15:36:05 +00:00
Michael RICOIS
7a7819dffd JQuery to version 1.2.3 2016-04-12 13:29:09 +00:00
Michael RICOIS
9d221555d9 Debug 2016-04-12 11:42:09 +00:00
Michael RICOIS
6aae492e1a Contentieux : affichage multiple de tiers 2016-04-11 13:23:44 +00:00
Michael RICOIS
632b7379bf Contentieux : Modification des libellés et des dates 2016-04-11 12:47:33 +00:00
Michael RICOIS
2f3b0d96e8 Svn ignore 2016-04-07 15:58:19 +00:00
Michael RICOIS
02db4d4415 Plugin ajout debug 2016-04-07 15:48:55 +00:00
Michael RICOIS
f29a3b62d8 Contentieux : Liste et Détails (alpha) 2016-04-06 12:29:06 +00:00
Michael RICOIS
5942b7f910 Redraw 2016-03-24 14:27:50 +00:00
Michael RICOIS
039c4a9389 Avis de situation Insee : changement URL 2016-03-16 08:45:29 +00:00
Michael RICOIS
fe876711c4 Insee : Avis de situation changement d'url 2016-03-15 16:53:16 +00:00
Michael RICOIS
304942f6eb Redirection avis de situation Insee 2016-03-15 16:14:46 +00:00
Michael RICOIS
aa1da6105a Merge from 2.9 2016-03-10 09:06:11 +00:00
Michael RICOIS
47aa8d5120 Fichier bilan association : correction 2016-03-10 09:04:22 +00:00
Michael RICOIS
ec16449ace Association : Suppression upload fichier - tout dans le backoffice 2016-03-04 13:11:29 +00:00
Michael RICOIS
7f8c21a1b7 Chemin statut association - directement télécharger depuis le webservice 2016-03-04 13:06:29 +00:00
Michael RICOIS
27b3470ef3 Chemin statut association 2016-03-04 12:52:05 +00:00
Michael RICOIS
ef725bdccf Merge Telechargement : Use view 2016-03-03 10:31:32 +00:00
Michael RICOIS
2dc2888d59 Telechargement : Use view 2016-03-03 10:29:28 +00:00
Michael RICOIS
d7a26d08fb Merge : Correction Typo et chemin fichier 2016-03-03 10:18:20 +00:00
Michael RICOIS
7bd5c35c0b Typo 2016-03-03 10:16:02 +00:00
Michael RICOIS
f30e5e99b3 bilaninput : Correction chemin 2016-02-29 14:52:18 +00:00
Michael RICOIS
040abaf47a Merge from 2.9 - ready to release 2016-02-25 14:26:26 +00:00
Michael RICOIS
35dc1b6fa2 Changement texte 2016-02-24 15:43:10 +00:00
Michael RICOIS
90d77a46b2 Situation Juridique : Prise en compte de l'indicateur CL 2016-02-24 15:06:56 +00:00
Michael RICOIS
c208e4d983 Permission facade 2016-02-17 15:01:34 +00:00
Michael RICOIS
1f810e6f35 Correction apache_get_modules pour php-fpm 2016-02-16 20:51:22 +00:00
Michael RICOIS
2d05c013e3 Correction chemin du cache 2016-02-15 16:26:06 +00:00
Michael RICOIS
2b50287f74 Correction config 2016-02-12 16:41:07 +00:00
Michael RICOIS
4e18b0e3ca Correction chemin 2016-02-12 15:19:50 +00:00
Michael RICOIS
2652a543d8 Changement des chemins 2016-02-12 14:25:27 +00:00
Michael RICOIS
a4852ad06c Change path 2016-02-11 21:17:32 +00:00
Michael RICOIS
36a4224564 Merge from 2.8 2016-02-11 21:17:00 +00:00
Michael RICOIS
00968f0717 Merge from branch 2.8 - Ready to release 2016-02-09 08:41:36 +00:00
Michael RICOIS
fa22480576 Merge from branch 2.8 2016-01-27 10:25:32 +00:00
Michael RICOIS
b61f5eb7b2 Merge from branch 2.8 2016-01-14 11:06:51 +00:00
Michael RICOIS
ea9a06bf1e Merge : add footer 2015-11-18 13:36:17 +00:00
Michael RICOIS
f48f518288 Merge avec quelques corrections 2015-10-29 13:03:45 +00:00
Michael RICOIS
4db5749fac Update 2015-10-27 10:57:40 +00:00
Michael RICOIS
0cd5a11b1a Intégration des modules 2015-10-27 08:31:20 +00:00
Michael RICOIS
fe7ab9bd0c Helper path 2015-10-06 10:15:01 +00:00
Michael RICOIS
2c44586f73 Put cgu.phtml in hte right place 2015-10-06 09:42:53 +00:00
Michael RICOIS
88266275e1 Formattage 2015-10-06 09:34:39 +00:00
Michael RICOIS
8a7b5aef09 Use modules 2015-10-05 15:38:02 +00:00
Michael RICOIS
dd6d0d4de0 Include phpexcel and ChromePHP to composer 2015-10-05 15:22:42 +00:00
Michael RICOIS
46713404f9 Test module in Zend 2015-10-05 10:14:32 +00:00
Michael RICOIS
321b287009 Update from branch 2.7 2015-09-25 15:52:54 +00:00
Michael RICOIS
232836c58b Suppression Zend 2015-09-25 15:41:50 +00:00
Michael RICOIS
bcda409a92 Composer, Nettoyage 2015-09-25 12:38:03 +00:00
Michael RICOIS
629738175e Toujours ecrasé la configuration 2015-09-25 08:41:30 +00:00
Michael RICOIS
3f0c5ff9cc Acte association : correction url de téléchargement du fichier 2015-09-09 15:44:07 +00:00
Michael RICOIS
a9c63bda99 Supprime commentaire 2015-09-03 12:12:32 +00:00
Michael RICOIS
c130761fbe Supprime double appel 2015-09-03 12:10:34 +00:00
Michael RICOIS
33dceaf10c Small Merge 2015-09-01 12:29:38 +00:00
Michael RICOIS
38e4d0fe61 Correction livraison des fichiers 2015-08-31 13:29:59 +00:00
Michael RICOIS
95bf03bf01 Liste des établissements sur even 6700 2015-08-31 13:22:53 +00:00
Michael RICOIS
2e6000dfe2 Mise à jour de l'authentification 2015-08-31 12:18:19 +00:00
Michael RICOIS
3c5952ba55 Format 2015-08-31 08:21:20 +00:00
Michael RICOIS
f35ea85ff1 Remove comment 2015-08-27 14:08:30 +00:00
Michael RICOIS
b991ccce98 Merge from branch 2.7 2015-08-07 13:41:38 +00:00
Michael RICOIS
80be8e6120 Add max execution time 2015-08-07 13:33:53 +00:00
Michael RICOIS
ff47b388b1 Surveillance Fichier 2015-08-07 12:44:55 +00:00
Michael RICOIS
cf6187afd3 Lien odea 2015-08-06 09:46:04 +00:00
Michael RICOIS
1d18085804 Gestion des fichiers CRM 2015-08-06 09:37:27 +00:00
Michael RICOIS
399ed2f638 Merge from branch 2.8, ready to release 2015-07-28 14:20:44 +00:00
Michael RICOIS
bb730beb21 Asso Statut 2015-07-28 13:24:59 +00:00
Michael RICOIS
20995376c5 Acte Association : Branchement webservice 2015-07-28 08:51:50 +00:00
Michael RICOIS
d44264c7bf ClassMap 2015-07-22 12:16:08 +00:00
Michael RICOIS
2895ef2238 Modification graphique 2015-07-21 09:34:10 +00:00
Michael RICOIS
6fc8a8f263 Variable theme 2015-07-16 15:48:12 +00:00
Michael RICOIS
755371360a Un seul fichier classmap 2015-07-16 15:42:55 +00:00
Michael RICOIS
662b4f598a Simplification de la gestion du theme 2015-07-15 13:17:26 +00:00
Michael RICOIS
e2d7be2280 Log by mail 2015-07-15 07:18:25 +00:00
Michael RICOIS
188a0c6941 Carte Geocodage 2015-07-10 18:40:07 +00:00
Michael RICOIS
ccc10ba342 Chemin du theme 2015-07-10 14:14:55 +00:00
Michael RICOIS
21e1787258 User with mode edition could only update gps 2015-07-09 20:12:52 +00:00
Michael RICOIS
4874a840dc RNVP : Tooltip bottom 2015-07-09 20:10:57 +00:00
Michael RICOIS
0be6a056f9 Mail ISO-8859-15 2015-07-09 20:10:17 +00:00
Michael RICOIS
035dabfe72 Configuration de la variable theme 2015-07-08 20:38:22 +00:00
Michael RICOIS
95dee93d55 Ajout theme dans les controllers 2015-07-08 13:48:28 +00:00
Michael RICOIS
42579572e7 Simplification de la gestion des scripts et styles 2015-07-07 12:16:24 +00:00
Michael RICOIS
1840e464d3 Remove form.css 2015-07-07 05:31:30 +00:00
Michael RICOIS
ff7e71dcb8 Ajout des éléments pour openstreetmap 2015-07-06 14:45:23 +00:00
Michael RICOIS
d34b17bd16 Préparation modification affichage carte 2015-07-06 12:29:13 +00:00
Michael RICOIS
60fe74b931 Diverses corrections 2015-07-05 19:31:11 +00:00
Michael RICOIS
e2d59d385a Mise à jour pour les connexions en IP 2015-07-04 15:06:35 +00:00
Michael RICOIS
849b3fd592 Merge to release 2015-07-03 09:39:58 +00:00
Michael RICOIS
02cf20aa85 Amélioration javascript mise en surveillance 2015-07-03 09:19:34 +00:00
Michael RICOIS
8b39a102dd Mise à jour autoload 2015-07-03 09:19:11 +00:00
Michael RICOIS
d36d1bf3fd RNVP : Correction obtention CP, issue #0002113 2015-07-01 09:52:03 +00:00
Michael RICOIS
9d9967a194 Font 2015-07-01 09:47:05 +00:00
Michael RICOIS
3dea181b3f Changement pour la carte google 2015-06-24 08:20:19 +00:00
Michael RICOIS
4fc8741011 Prepare release with bug correction and update on libs 2015-06-22 14:51:33 +00:00
Michael RICOIS
9b6faac530 Update autoload 2015-06-21 16:08:23 +00:00
Michael RICOIS
f9303bb6ab Remove elements 2015-06-19 15:17:25 +00:00
Michael RICOIS
f4ee5ee3b7 Amélioration de la gestion de l'authentification 2015-06-19 14:02:41 +00:00
Michael RICOIS
d86685b235 Gestion du mode cli lors de requete SOAP 2015-06-17 15:55:24 +00:00
Michael RICOIS
d171491909 AltiScore : Meilleure gestion des erreurs 2015-06-17 15:54:46 +00:00
Michael RICOIS
8e434a509c RVNP, gestion des permissions, cedexa et bug affichage sur autre page, issue #0002113 2015-06-16 15:34:57 +00:00
Michael RICOIS
be3e54c893 Correction envoi mail mot de passe oublié 2015-06-16 09:24:43 +00:00
Michael RICOIS
d1abec4736 Nettoyage 2015-06-16 08:26:31 +00:00
Michael RICOIS
9fc9b4a1f5 Compatibility PHP 5.3 2015-06-12 12:54:55 +00:00
Michael RICOIS
c9283be530 Marqueur de la carte google 2015-06-12 12:54:31 +00:00
Michael RICOIS
25238322c6 Prepare release 2015-06-12 10:11:01 +00:00
Michael RICOIS
888a4c9ff0 Modification pour Altiscore 2015-06-12 10:05:20 +00:00
Michael RICOIS
9d112408b2 Correction libellé detail et affichage de l'adresse officielle, issue #0002113 2015-06-12 09:34:41 +00:00
Michael RICOIS
34a5d27545 New Mail Method 2015-06-11 15:29:14 +00:00
Michael RICOIS
98249c732b Correction affichage 2015-06-11 15:09:03 +00:00
Michael RICOIS
552826b24d Update JQuery 1.11.3 et Boostrap version 3.3.4 2015-06-10 19:13:54 +00:00
Michael RICOIS
254a307a00 Correction affichage de la date précédente dans la liste des liasses 2015-06-10 15:20:39 +00:00
Michael RICOIS
e341f05b27 Des trucs sur les pièces officielles 2015-06-10 15:06:21 +00:00
Michael RICOIS
414aaf0b06 Mise en place des la nouvelle architecture des mails 2015-06-10 14:52:05 +00:00
Michael RICOIS
bc6aa8dd56 Affichage RNVP, issue #0002113 2015-06-10 14:47:21 +00:00
Michael RICOIS
caa6b3e352 Affichage RNVP, issue #0002113 2015-06-10 14:40:05 +00:00
Michael RICOIS
a9f701f686 Init url 2015-06-03 15:05:59 +00:00
Michael RICOIS
6747741f73 Commande de statuts association 2015-06-03 08:10:07 +00:00
Michael RICOIS
2c6ca95cf4 RNVP : lien dans le pop-up, issue #0002113 2015-06-02 09:00:39 +00:00
Michael RICOIS
097398b8d6 Groupe d'appartenance avec lien de redirection 2015-06-02 08:54:10 +00:00
Michael RICOIS
15c1692954 RNVP : id dans la vue, issue #0002113 2015-06-01 13:10:59 +00:00
Michael RICOIS
773ad16984 RNVP : url detail, issue #0002113 2015-06-01 13:05:33 +00:00
Michael RICOIS
2ff0ab71d3 Toujours ecraser la configuration 2015-06-01 12:30:29 +00:00
Michael RICOIS
299b82d7bb Add Staging config 2015-06-01 12:25:41 +00:00
Michael RICOIS
1a85db9a0e Webservice version 2.8 2015-06-01 12:24:23 +00:00
Michael RICOIS
292b6be99a RNVP : icone enveloppe barré, issue #0002113 2015-06-01 12:09:10 +00:00
Michael RICOIS
fc1b2bd641 Prise en compte de la selection du mois 2015-06-01 10:26:11 +00:00
Michael RICOIS
680eeeb122 Formattage 2015-05-28 14:37:48 +00:00
Michael RICOIS
d1f75a8473 Commandes et Jugements 2015-05-28 14:32:46 +00:00
Michael RICOIS
140d10497e issue #0002113 : Menu RNVP 2015-05-28 14:10:32 +00:00
Michael RICOIS
bb276c2e42 issue #0002113 : Affichage de la normalisation postale 2015-05-28 13:36:10 +00:00
Michael RICOIS
09b46a6146 Changement pour l'appel au webservice 2015-05-28 13:28:12 +00:00
Michael RICOIS
37eb6af5a7 Export liasse XLS : Truc de merde 2015-05-27 10:30:49 +00:00
Michael RICOIS
36708cb12f Prepare release 2015-05-19 15:38:35 +00:00
Michael RICOIS
1a6f1cd192 PHPExcel version 1.8.0 2015-05-18 15:35:15 +00:00
Michael RICOIS
fe7b6d2670 INEXTENSO : Changement 2015-05-18 15:13:49 +00:00
Michael RICOIS
333cdb4fd4 Ajout compatibilité avec le reverse proxy 2015-04-15 07:45:11 +00:00
Michael RICOIS
8c1ee84980 Correction 2015-04-15 07:21:45 +00:00
Michael RICOIS
b3fec8fcc9 Merge to prepare release 2015-04-10 12:06:16 +00:00
Michael RICOIS
0537dbf145 Harmonie dans la gestion des scrores 2015-04-10 11:57:56 +00:00
Michael RICOIS
93822b64b2 Harmonie dans la gestion des scrores 2015-04-09 15:10:42 +00:00
Michael RICOIS
3acfe69edb Merge from branch 2.7 to prepare release 2015-04-09 08:22:33 +00:00
Michael RICOIS
51bfe130d0 Geo localisation : Ajout du siret au marqueur et validation du fonctionnement 2015-04-07 15:49:53 +00:00
Michael RICOIS
1ee1a7f6d7 Envoi geocodate et elevation au webservice 2015-04-07 09:50:54 +00:00
Michael RICOIS
ff7ef8d930 Meilleur gestion des comandes associations, bilan en saisie, privileges 2015-04-03 12:57:04 +00:00
Michael RICOIS
0cb2febdf9 Comment 2015-04-01 13:34:43 +00:00
Michael RICOIS
445a33f64f Correction pour la carte 2015-03-30 09:24:26 +00:00
Michael RICOIS
6616e7c86a Suppression tableau static des cours d'appel 2015-03-29 17:29:07 +00:00
Michael RICOIS
a68d1224ce Modification des libellés du Menu 2015-03-26 07:10:56 +00:00
Michael RICOIS
5b8ae3de07 Mise à jour model, crontab, incron 2015-03-25 19:32:32 +00:00
Michael RICOIS
f3586e1100 Saisie de bilan : Suppression lors de la création des dates prévues pour la modification 2015-03-25 15:53:17 +00:00
Michael RICOIS
65de830533 KBIS : Suppression interface et envoi mail, voir backoffice dorénavant 2015-03-25 15:38:43 +00:00
Michael RICOIS
44b801d142 Saisie Bilan : Suppression vue 2015-03-25 13:49:47 +00:00
Michael RICOIS
eac7586f9d Saisie bilan : Message sur bilan consolidé 2015-03-25 13:48:42 +00:00
Michael RICOIS
3e44cb15cd Mise a jour du fichier d'autloading 2015-03-20 10:28:46 +00:00
Michael RICOIS
7516f12a57 Move cleanchar librairie avec compatibilité autoloading 2015-03-20 09:46:52 +00:00
Michael RICOIS
2c4a3c0c87 Correction non prise en compte des bilans simplifié dans les grahiques du rapport 2015-03-20 08:32:27 +00:00
Michael RICOIS
8b13ecb596 Double comment 2015-03-18 08:21:32 +00:00
Michael RICOIS
a76a486d52 Prepare for release 2015-03-16 09:34:42 +00:00
Michael RICOIS
30bf34da4a Commande de saisie de bilan 2015-03-11 14:39:45 +00:00
Michael RICOIS
b03da5d6e8 Avis RNCS : amélioration affichage, issue #0002107 2015-03-11 14:24:27 +00:00
Michael RICOIS
6e8ab4acc6 Forward 2015-03-09 19:51:21 +00:00
Michael RICOIS
8a8f2fe7ca Formattage 2015-03-09 09:55:18 +00:00
Michael RICOIS
fa7108d999 Merge small change to upgrade 2.8 2015-03-09 09:24:29 +00:00
Jean-Marie CHAMPEAU
0cad2bae9a Corrections orthographiques 2015-03-06 11:19:11 +00:00
Jean-Marie CHAMPEAU
42c3481486 reperage des tests en dur principalement sur client (IdClient) mise à "@todo" 2015-03-06 09:14:43 +00:00
Jean-Marie CHAMPEAU
84bd15651b commentaires dans le source 2015-03-05 14:55:03 +00:00
Michael RICOIS
27280a1bf3 Change path explication 2015-03-04 16:48:22 +00:00
Michael RICOIS
ff8fade3af Add svn ignore 2015-03-03 15:59:12 +00:00
Michael RICOIS
dc83bcb73a Saisie : Correction lien "Corriger les bilans" 2015-03-03 13:47:34 +00:00
Michael RICOIS
f86a25add3 Formattage 2015-03-02 13:43:42 +00:00
Michael RICOIS
5bb8b42f24 Finance : Modification des paramètres de la liasse 2015-03-02 13:43:10 +00:00
Michael RICOIS
1b9364bff6 Set property 2015-03-02 13:35:01 +00:00
Michael RICOIS
074464fe0c Saisie : Correction Genre 2015-03-02 12:59:58 +00:00
Michael RICOIS
a7eaf870d0 Désactive l'affichage du menu lors de l'impression, issue #0002106 2015-02-25 16:02:59 +00:00
Michael RICOIS
1c5dfbef59 Prepare for release 2015-02-16 08:48:31 +00:00
Aram HARUTYUNYAN
512661073a Issue #0002089: Gestion des informations de paiement dans la table des cut-offs 2015-02-13 04:48:37 +00:00
Michael RICOIS
5e131027d6 Merge from branch 2.7 ready for release 2015-02-12 14:57:05 +00:00
Michael RICOIS
5944510d4b Upgrade Zend Framework to version 1.12.11, due to a bug in viewRender 2015-02-12 10:09:52 +00:00
Michael RICOIS
ece66a4aa5 Suppression fichier inutile 2015-02-10 11:20:59 +00:00
Michael RICOIS
1a74660ad1 correction affichage liasse, issue #0002100 2015-02-10 11:20:36 +00:00
Michael RICOIS
9c819120bf condition pour affichage commentaires indiscore 20 ou 100, issue #0002091 2015-02-04 13:12:14 +00:00
Michael RICOIS
3631fd280f Ajout du commentaire spécifique à l'indiscore 20, issue #0002091 2015-02-03 14:04:30 +00:00
Michael RICOIS
e2a8e10e05 Correction transformation poste BN, issue #0002093 2015-02-03 13:22:48 +00:00
Aram HARUTYUNYAN
8bbe87d4e9 Issue #0002088: Ajouter le score AFDCC 1 sur la page "Indiscore" et "Rapport complet" 2015-01-31 21:25:13 +00:00
Michael RICOIS
a72312608d Upgrade Bootstrap to version 3.3.2 2015-01-30 16:11:57 +00:00
Michael RICOIS
ea32a8f6dd Mise à jour des styles pour l'impression PDF et ecran 2015-01-29 16:15:40 +00:00
Michael RICOIS
918e273d97 Saisie Liasse : Correction poste LJ 2015-01-29 16:14:23 +00:00
Michael RICOIS
3e26df4a85 Correction pour les paramètres d'export des liasses 2015-01-29 16:10:09 +00:00
Michael RICOIS
5acd0b8b14 Meilleur affichage avant lancement de l'impression 2015-01-29 16:06:25 +00:00
Michael RICOIS
488288ac01 Correction pour les paramètres d'impression des liasses 2015-01-29 16:05:26 +00:00
Michael RICOIS
94b4221407 Ne pas afficher le titre de la page lors d'un appel depuis une autre page 2015-01-29 15:15:48 +00:00
Michael RICOIS
f392963dee Formattage 2015-01-26 16:11:38 +00:00
Michael RICOIS
731db00ada Non prise en compte des dates à 0000-00-00, fixed issue #0002090 2015-01-26 13:35:21 +00:00
Aram HARUTYUNYAN
4871350141 Issue #0002088: Ajouter le score AFDCC 1 sur la page "Rapport de synthèse" 2015-01-26 04:46:22 +00:00
Michael RICOIS
da429b2d1d Suppression debuggage 2015-01-22 10:53:21 +00:00
Michael RICOIS
6933de2d40 Correction affichage pourcentage ratios 2015-01-22 10:46:35 +00:00
Michael RICOIS
283d91742e Impossible d'exporter les 3 requetes webservices en XML 2015-01-22 09:09:13 +00:00
Michael RICOIS
a70a68b079 Correction affichage Nom Commercial, issue #0001920 2015-01-21 09:39:09 +00:00
Michael RICOIS
d9dafac04d Upgrade Zend to version 1.12.10 2015-01-20 21:54:47 +00:00
Michael RICOIS
a4b27fec83 Remove ini set 2015-01-20 19:39:21 +00:00
Michael RICOIS
0772c774de Add max-width to Qtip 2015-01-19 20:59:28 +00:00
Michael RICOIS
5d96d81ce2 Only cache on development 2015-01-19 11:02:26 +00:00
Michael RICOIS
dee9de2142 Prepare release 2015-01-19 09:53:49 +00:00
Michael RICOIS
7e5ad72f7e Update browscap.ini version 5038 2015-01-19 09:15:49 +00:00
Michael RICOIS
94e4793fb7 Add Apache 2.4 vhosts example 2015-01-15 15:31:39 +00:00
Yoann LENAOUR
8835ec5113 Fixed Issue #0002053: adresse et orthographe corrigées 2015-01-14 17:17:49 +00:00
Michael RICOIS
5246e7e67e Avis RNCS : Couleur "entreprise radiée" et gestion erreur, issue #0001920 2015-01-14 13:56:08 +00:00
Michael RICOIS
f40c0fb74a Correction SSO 2015-01-13 19:59:31 +00:00
Michael RICOIS
615b6a308b Evite une mauvaise reconnection lors du changement du mot de passe 2015-01-13 13:05:26 +00:00
Michael RICOIS
1c8facda82 Merge for release 2015-01-09 08:34:12 +00:00
Michael RICOIS
20269c169c Mise à jour du fonctionnement de la récupération des fichier sur le webservice 2015-01-08 13:52:49 +00:00
Michael RICOIS
c661a303d3 Update JQuery to version 1.11.2 2015-01-08 13:50:45 +00:00
Michael RICOIS
7a335eb227 In Extenso : Mise à jour des liens et paramètres 2015-01-08 13:22:00 +00:00
Michael RICOIS
51fef82a50 AvisRNCS : Création du fichier pdf et modification de l'affichage des données, issue #0001920 2015-01-08 09:58:01 +00:00
Michael RICOIS
c4bc27dabe Update Normalize.css 2015-01-07 09:38:43 +00:00
Michael RICOIS
e8bbf842da Saisie Bilan : sql format 2015-01-06 21:37:24 +00:00
Michael RICOIS
9db0232201 Saisie de bilan : séparation de réel normal et simplifié 2015-01-06 21:25:31 +00:00
Michael RICOIS
41d6a77191 Update HTML2PDF 2015-01-06 19:01:31 +00:00
Michael RICOIS
14ddffc57b Update ChromePHP logger 2015-01-06 18:58:41 +00:00
Michael RICOIS
3ef62e0b07 Remove HTML2PDF for update 2015-01-06 18:50:53 +00:00
Michael RICOIS
ad7fb3e30b Update FPDI and TCPDF 2015-01-06 18:48:53 +00:00
Michael RICOIS
a28a25a666 Remove fpdi and tcpdf for update 2015-01-06 16:53:57 +00:00
Michael RICOIS
8d3e3ad696 AvisRNCS : ajout des champs, issue #0001920 2015-01-05 15:44:32 +00:00
Michael RICOIS
046965b325 Update bootstrap to version 3.3.1 2014-12-22 14:08:43 +00:00
Michael RICOIS
faaca4e3ae CSS : Style liste des compétences 2014-12-22 11:18:25 +00:00
Michael RICOIS
99cf227b88 Only use fallback autoloader 2014-12-19 14:13:42 +00:00
Michael RICOIS
f4eb1ade06 Id client IN EXTENSO 2014-12-19 12:49:03 +00:00
Michael RICOIS
3649bc8147 Update ChartDir librairies 2014-12-19 12:42:31 +00:00
Michael RICOIS
520a769350 Liste Compétences : Correction appel 2014-12-18 16:04:47 +00:00
Michael RICOIS
d76c91833f Utilisation de profil pour la configuration 2014-12-18 15:58:10 +00:00
Michael RICOIS
7a3052aea9 Format 2014-12-17 10:01:13 +00:00
Michael RICOIS
98c3c7b6ed format 2014-12-15 16:35:42 +00:00
Michael RICOIS
b825c4f94d Update link to qtip to use minified version 2014-12-12 13:14:36 +00:00
Michael RICOIS
18579dabb0 Update JQuery Qtip2 to version 2.2.1 2014-12-12 13:13:22 +00:00
Michael RICOIS
77233c2eff Update JQuery Form to version 3.51 2014-12-12 13:12:50 +00:00
Michael RICOIS
08b5fc1917 Remove var $dir_actif 2014-12-12 12:44:46 +00:00
Michael RICOIS
348b232ba9 Format 2014-12-12 12:44:14 +00:00
Michael RICOIS
7c0fc0828e In Extenso SSO fonctionnel 2014-12-12 10:04:17 +00:00
Michael RICOIS
6b3ef76d42 Affichage du lien de saisie 2014-12-11 16:04:37 +00:00
Michael RICOIS
45e91981ab Ajout d'un logo 2014-12-11 15:53:39 +00:00
Michael RICOIS
44566343c7 New Auth method with SSO 2014-12-09 11:28:12 +00:00
Michael RICOIS
5cee230b74 Formattage 2014-12-09 11:26:12 +00:00
Aram HARUTYUNYAN
2882035024 Issue #0002077: changement de requête de ville dans la citysearchAction() 2014-12-01 03:54:39 +00:00
Michael RICOIS
279d06325d Merge from branch 2.7 2014-11-28 15:31:43 +00:00
Michael RICOIS
aad077b568 cron.d file to clear temp files 2014-11-28 15:23:35 +00:00
Michael RICOIS
c1c7cf0ac9 issue 0002080 : Meilleur prise en compte du jour à 00. On estime toujours commencer à 01. 2014-11-28 13:13:08 +00:00
Michael RICOIS
6f7947c33a Error 2014-11-28 12:55:44 +00:00
Michael RICOIS
b280097e98 cron file to remove temp file 2014-11-26 16:51:02 +00:00
Michael RICOIS
a113750f8d Typo 2014-11-26 16:45:26 +00:00
Michael RICOIS
acf4db74fb CS 2014-11-26 16:45:13 +00:00
Michael RICOIS
063fce47d5 CS 2014-11-26 16:44:40 +00:00
Michael RICOIS
fff13f6d0a Mise à jour élément Finance 2014-11-26 10:08:09 +00:00
Michael RICOIS
449e734bc4 Add readme for etc conf 2014-11-26 09:50:30 +00:00
Michael RICOIS
1d23fd4749 Update browscap definition to version 5036 2014-11-26 09:03:16 +00:00
Michael RICOIS
2017d1e548 Add auth version to user 2014-11-24 11:25:07 +00:00
Michael RICOIS
bdc6311614 Reintegrate PHPExcel 1.8.0 2014-11-21 13:43:14 +00:00
Michael RICOIS
62fa964566 Remove PHPExcel 2014-11-21 13:41:32 +00:00
Michael RICOIS
8e522a5406 Clean PHPExcel 2014-11-21 13:15:48 +00:00
Michael RICOIS
e0888c4e9c Upgrade PHPExcel to version 1.8.0 2014-11-16 18:17:46 +00:00
Michael RICOIS
e2d3086b15 issue#0001563 : Ajout version dans l'identite session 2014-11-12 15:38:02 +00:00
Michael RICOIS
761ab9796a Remove lib not use in order to recreate a new one 2014-11-04 19:17:45 +00:00
Michael RICOIS
389aae552f Prepare release 2014-10-31 13:28:29 +00:00
Michael RICOIS
47086b3f3c comment 2014-10-30 13:53:19 +00:00
Michael RICOIS
495b894b67 issue #0002067 : Saisie de bilan avec possibilité de changement date de cloture et type du bilan 2014-10-29 19:15:30 +00:00
Michael RICOIS
fe12a3f8db Merge from branch 2.7 2014-10-29 15:54:27 +00:00
Michael RICOIS
c0d2c97a2b issue #0002067 : Saisie de bilan - add maxdate 2014-10-29 13:55:14 +00:00
Aram HARUTYUNYAN
08ef62d870 Issue #0002052: ajouter la civilité 'MLLE' sur interface, car les sources officielles l'utilisent 2014-10-23 13:52:49 +00:00
Aram HARUTYUNYAN
905ed789ad Issue #0002052: Supprimer la civilité 'MLLE' de l'interface 2014-10-22 17:00:10 +00:00
Michael RICOIS
f4deebbea3 Small update 2014-10-16 18:46:23 +00:00
Michael RICOIS
630d420cb5 Liens : Visuel 2014-10-13 15:08:46 +00:00
Michael RICOIS
6b3e101020 Move extra files near installation script 2014-10-10 15:25:34 +00:00
Michael RICOIS
8014a903ae To do not surcharge site with pace, i have a bad idea 2014-09-25 07:44:55 +00:00
Michael RICOIS
7e260c46b8 Liens : Pays dans l'arborescence des groupes 2014-09-19 08:30:42 +00:00
Michael RICOIS
55c89f45a6 Visualize password when you create a new user 2014-09-04 12:58:12 +00:00
Michael RICOIS
d2c6424055 issue #0002046 : Ajout de la boite de dialog pour la commande de la saisie de bilan 2014-08-28 14:12:47 +00:00
Michael RICOIS
c670fb098b Url 2014-08-26 16:56:51 +00:00
Michael RICOIS
7bc6ff66c8 Prepare release 2014-08-25 12:23:36 +00:00
Michael RICOIS
2a723c19e0 Nom2 2014-08-21 12:48:57 +00:00
Michael RICOIS
cbb89b3c4b Reintegrate 2014-08-21 06:47:56 +00:00
Michael RICOIS
18ce347155 Upgrade bgiframe to version 3.0.1 2014-08-19 13:03:23 +00:00
Michael RICOIS
3be57511db Remove sourceMap - 404 error on IE 2014-08-19 11:59:20 +00:00
Michael RICOIS
6eef5c24fa remove file 2014-08-19 11:58:41 +00:00
Michael RICOIS
34dad882aa issue #0002043 : Ajout de configuration spécifique en dehors de l'installation 2014-08-19 09:46:02 +00:00
Michael RICOIS
a167e23c09 issue #0002043 : Ajout de configuration spécifique en dehors de l'installation 2014-08-19 07:46:54 +00:00
Michael RICOIS
3f1610665f issue #0002043 : Add option to use incron 2014-08-19 07:36:02 +00:00
Michael RICOIS
1d8e854e89 Prepare release, merge from 2.7 2014-08-14 09:41:45 +00:00
Michael RICOIS
0779441f29 OderToCash 2014-08-14 07:41:51 +00:00
Michael RICOIS
793ec60127 IE6 Support 2014-08-12 20:19:45 +00:00
Michael RICOIS
2e18c920f5 Integrate change in branch 2.7 2014-08-11 13:41:48 +00:00
Michael RICOIS
bfb8aa21f5 Update autoload_classmap.php 2014-08-11 12:56:50 +00:00
Michael RICOIS
5161d84375 issue #0002037 : Add default instead of null for the route name 2014-08-11 12:11:23 +00:00
Michael RICOIS
8f7ff3be9c New Browscap 2014-08-11 09:50:37 +00:00
Michael RICOIS
ee12ac166f Upgrade to bootstrap 3.2.0 2014-08-11 09:15:34 +00:00
Aram HARUTYUNYAN
7ec3a6fcf9 Issue #0002031: CHARSET=utf8 pour les tables créées par getCatalogue 2014-07-30 08:24:35 +00:00
Aram HARUTYUNYAN
a0d5d9ffea Issue #0002030: $_name='tabdepartements' -> $_name='tabDepartements' 2014-07-30 07:54:49 +00:00
Michael RICOIS
3929cd5acd Debug 2014-07-29 19:02:32 +00:00
Aram HARUTYUNYAN
977d49261e Issue #0002028: Récupérer le nic du siret par substr($siret, 9, 5); 2014-07-29 11:56:11 +00:00
Aram HARUTYUNYAN
a22f0b3e36 Issue #0002027: Scores_Finance_Liasse->setData(): vérification de présence des valeurs correctes dans le array des champs specifiques 2014-07-28 11:33:37 +00:00
Michael RICOIS
fa991ca764 Changement ordre d'affichage de la liasse 2014-07-17 20:28:50 +00:00
Aram HARUTYUNYAN
0664fa10d1 Issue #0001886: getCatalogDepartements() a la place de getDepartements(). Nouvelle instruction 'dep' dans le getCatalog.php pour charger les départements 2014-07-17 12:57:27 +00:00
Aram HARUTYUNYAN
b15599b5a0 Issue #0002014: Pouvoir saisir le champs "dateEffetLien" lorsqu'on supprime un lien 2014-07-15 11:54:16 +00:00
Aram HARUTYUNYAN
dfad847c53 Issue #0001925: Ne pas valider les codes isin dans l'extranet lors de la saisie (valider dans le webservice) 2014-07-11 11:51:04 +00:00
Michael RICOIS
7939ca8f9a AVIS RNCS : Numéro de dépot 2014-07-11 07:33:54 +00:00
Aram HARUTYUNYAN
3df8cd9160 Issue #0002012: [liens inter-entreprises] - Gestion des départements de naissance (PP) 2014-07-08 13:16:56 +00:00
Michael RICOIS
6be6aae252 Merge from trunk 2014-07-01 14:33:08 +00:00
Michael RICOIS
dd9d7513cb Merge from branch 2.6 2014-07-01 14:18:55 +00:00
Michael RICOIS
80f5a5b7d1 issue #0002013 : Modification sur l'affichage de la liste des établissements, saisie et liste 2014-07-01 09:15:44 +00:00
Aram HARUTYUNYAN
be343438c2 Issue #0002012: [liens inter-entreprises] - blocage de pression sur "Entrée" sur le champs de 'autocomplete' 2014-06-30 12:12:07 +00:00
Michael RICOIS
763c681d6d Merge after release 2014-06-29 20:20:41 +00:00
Aram HARUTYUNYAN
bece6ab3b1 Issue #0002003: [liens inter-entreprises] - supprimer les espaces du Siren 2014-06-26 10:53:22 +00:00
Michael RICOIS
44a94d8633 Update from trunk 2014-06-25 14:34:22 +00:00
Michael RICOIS
a6ac9ea1e0 Prepare release, Update trunk 2014-06-25 14:31:57 +00:00
Aram HARUTYUNYAN
13da6932dd Issue #0001999: corriger la formule de GW 2014-06-25 11:44:59 +00:00
Michael RICOIS
3e6af9a0d7 Correction script getBodaccPdf 2014-06-25 08:25:24 +00:00
Michael RICOIS
4ccfddc7b2 issue #0001950 : Texte des scores, issue #0001947 : Borne scores CCF 2014-06-24 15:48:08 +00:00
Michael RICOIS
81d7fc4cc8 issue #0001920 : Ajout impression 2014-06-24 13:40:29 +00:00
Michael RICOIS
4e88bf29ca issue #0001920 : Date de constitution 2014-06-24 13:34:32 +00:00
Michael RICOIS
c0bb19ec70 Merge from trunk 2014-06-23 11:09:19 +00:00
Michael RICOIS
4a886f7f56 Reintegrate Branch 2.6 2014-06-23 07:19:05 +00:00
Michael RICOIS
f5acf80d58 Use siren instead siret 2014-06-20 14:55:54 +00:00
Michael RICOIS
ce84a98925 Start the 2.7 branch dev 2014-06-20 13:03:22 +00:00
Michael RICOIS
b0a5a81c0a issue #0001920 : Date Format 2014-06-20 12:49:06 +00:00
Michael RICOIS
ede76763f1 issue #0001920 : Design et CGU 2014-06-20 08:28:02 +00:00
Michael RICOIS
a205784401 Correction variables 2014-06-20 08:00:43 +00:00
Michael RICOIS
7deeb90b8e issue #0001920 : Design et modification suite à remarques 2014-06-20 07:57:14 +00:00
Michael RICOIS
3e31c1c430 issue #0001993 : Modification du fonctionnement de la saisie des mandataires, avece retour erreur 2014-06-19 12:13:02 +00:00
Aram HARUTYUNYAN
9e528fc1a9 Issue #0001991: [Liens inter-entreprises] Effacer par trim() les tabs et espaces inutiles du nom , qu'on recherche 2014-06-19 08:02:49 +00:00
Michael RICOIS
bd1fdc8581 issue #0001986 : Gestion des commandes Kbis 2014-06-18 13:29:09 +00:00
Michael RICOIS
53c9c4c3f2 Browscap 2014-06-17 12:39:34 +00:00
Michael RICOIS
cb7d92aea9 Typo 2014-06-17 08:40:07 +00:00
Aram HARUTYUNYAN
021282fac7 Issue #0001415: Allow dates to have empty value (null), use datepicker 2014-06-17 08:32:49 +00:00
Michael RICOIS
6dbbf074b4 issue #0001979 : Récupération des coordonnées GPS en base pour utilisation sur la carte 2014-06-17 07:57:51 +00:00
Aram HARUTYUNYAN
55d4a3b63f Issue #0001415: Edition des informations boursières 2014-06-17 07:17:41 +00:00
Michael RICOIS
7829c48320 issue #0001920 : Menu Avis de situation RNCS 2014-06-16 15:31:15 +00:00
Michael RICOIS
63c13330d3 issue #0001920 : Affichage suite à ajout dans la partie données 2014-06-16 15:16:36 +00:00
Michael RICOIS
f205164cb7 Update Zend to version 1.12.7 2014-06-13 13:04:02 +00:00
Michael RICOIS
ee8f29789f Update Javascript 2014-06-12 18:47:37 +00:00
Aram HARUTYUNYAN
e310066ed7 Issue #0001984: [Liens inter-entreproses] Assigner la valeur indTel, après avoir sélecter le pays 2014-06-12 13:14:18 +00:00
Aram HARUTYUNYAN
ea7e3ff18b Issue #0001983: [Liens inter-entreproses] quand l'appelle d'Ajax est fini, afficher les barres (css - overflow:auto) 2014-06-12 09:08:34 +00:00
Michael RICOIS
7347a33d96 issue #0001920 : Draft page avis RNCS 2014-06-10 09:19:24 +00:00
Aram HARUTYUNYAN
b4b1df302f Issue #0001872: [Liens inter-entreprises] liensaveAction() - augmantation de la productivité 2014-06-10 05:18:42 +00:00
Aram HARUTYUNYAN
6451f9591f Issue #0001872: [Liens inter-entreprises] Transférer les filiales directes et indirectes sous l'entité absorbante. 2014-06-06 08:38:45 +00:00
Michael RICOIS
3aed5d85f9 issue #0001896 : 50 établissements 2014-06-03 12:48:04 +00:00
Michael RICOIS
d0f65c01b5 Import change from trunk 2014-06-02 09:40:38 +00:00
Michael RICOIS
2888c5af5e Merge from trunk - avis de situation - issue #0001974 2014-06-02 09:32:34 +00:00
Michael RICOIS
eb01476eef Import change from trunk 2014-05-24 09:30:11 +00:00
Michael RICOIS
a38da161b2 Set email after order 2014-05-24 09:22:50 +00:00
Aram HARUTYUNYAN
3335c25243 Issue #0001969: [WorldCheck] affichage de la pagination 2014-05-21 13:07:44 +00:00
Aram HARUTYUNYAN
e6f8d9f4a1 Issue #0001896: [Liste des établissements] pagination, sans limit=200 2014-05-21 07:35:07 +00:00
Aram HARUTYUNYAN
65387e8fc8 Issue #0001960: [Commandes de pièces] changer les noms des champs "Votre référence" 2014-05-14 11:51:03 +00:00
Michael RICOIS
d48a6a1675 issue #0001889, issue #0001950 : Simplification, no more javascript 2014-05-13 20:39:35 +00:00
Aram HARUTYUNYAN
f91d0866bb Issue #0001950: [Evolution des scores] motif -> label , affichage dans la table 2014-05-13 08:58:40 +00:00
Michael RICOIS
59be0f7023 Make configure script compatbile with windows 2014-05-12 09:06:39 +00:00
Michael RICOIS
d19284db97 issue #0001889 : Data key name change 2014-05-10 14:34:40 +00:00
Michael RICOIS
6c0368161b Switch to webservice version 2.7 2014-05-09 20:40:25 +00:00
Michael RICOIS
3a34e8533f Merge from trunk 2014-05-09 20:31:32 +00:00
Michael RICOIS
5f129ca83d Merge last update from 2.5 2014-05-09 20:24:46 +00:00
Aram HARUTYUNYAN
56e605a75f Issue #0001949: Theme plugin - corriger la version de la lib jQuery 2014-05-08 11:38:55 +00:00
Michael RICOIS
f065bd3233 Make configure script compatbile with windows 2014-05-05 13:08:24 +00:00
Michael RICOIS
bb11325716 issue #0001943 : Add id for edit 2014-05-03 15:36:25 +00:00
Michael RICOIS
4344f6936b Update JQuery to version 1.11.1 and remove old files 2014-05-02 13:51:23 +00:00
Michael RICOIS
3c0e7a3dc1 Change corporama label 2014-05-02 13:21:57 +00:00
Michael RICOIS
8368fbc6df Upgrade Zend to version 1.12.6 2014-05-01 19:27:23 +00:00
Michael RICOIS
e7a5598922 Merge from trunk 2014-05-01 17:35:11 +00:00
Michael RICOIS
83fb8d486d Merge 2014-05-01 17:19:47 +00:00
Michael RICOIS
c7611da75e Start on 2014-04-25 2014-04-25 07:21:49 +00:00
Michael RICOIS
97f2d63ae7 Integrate branch 2.5 - Ready to release 2014-04-24 10:46:36 +00:00
Michael RICOIS
ffd84c49f3 Merge new page corporama 2014-03-20 16:55:47 +00:00
Michael RICOIS
38df487e08 Merge for tag 2.5-20140317 2014-03-14 10:42:09 +00:00
Michael RICOIS
e08564bad5 Correction Bilan association 2014-03-05 15:11:14 +00:00
Michael RICOIS
c087d459ff Only prop 2014-03-04 15:46:50 +00:00
Michael RICOIS
c996d61419 Prepare for release 2014-03-03 16:40:07 +00:00
Michael RICOIS
42815cbbcd ....c... 2014-02-27 15:09:27 +00:00
Michael RICOIS
a435cc2d2c Merge for release 2014-02-27 10:32:09 +00:00
Michael RICOIS
af003f159d issue #0001870 : Merge pagination 2014-02-25 20:39:38 +00:00
Michael RICOIS
c7df7e757a Prepare for release 2014-02-25 16:58:40 +00:00
Michael RICOIS
7fe024283d Prepare for release 2014-02-13 14:41:39 +00:00
Michael RICOIS
9ba1a34095 Merge from 2.4, prepare to release 2014-01-16 09:33:31 +00:00
Michael RICOIS
c9b083ceb8 Merge from branch 2.4 2013-12-26 14:42:44 +00:00
Michael RICOIS
43d2addc09 Merge from 2.4 for release 2013-11-29 13:54:52 +00:00
Michael RICOIS
b9c388a79f Merge for release in staging 2013-11-21 16:31:49 +00:00
Michael RICOIS
d3ffafb3fe Merge from branch 2.4 - Ready for release 2013-11-18 14:49:04 +00:00
Michael RICOIS
0f71a6bcaf Merge from branch 2.4 2013-11-13 14:10:30 +00:00
Michael RICOIS
5b5270159c Import change and correction after the staging release 2013-11-06 16:26:14 +00:00
Michael RICOIS
dcaae4acfc Merge from 2.4 2013-11-05 14:45:25 +00:00
Michael RICOIS
b2563fe35f Merge following to correct regression from the last release 2013-10-25 14:30:46 +00:00
Michael RICOIS
ebe57c498c Merge from branche 2.4 : Prepare to release in staging 2013-10-23 14:20:56 +00:00
Michael RICOIS
201a2b45e4 Merge from branch 2.4 2013-10-04 12:41:24 +00:00
Michael RICOIS
de20a05968 Correction after release 2013-09-23 15:26:02 +00:00
Michael RICOIS
9a0cbca281 Merge for release 2013-09-23 08:47:30 +00:00
Michael RICOIS
2e565ac066 Merge all change from 2.4 2013-09-16 15:41:31 +00:00
Michael RICOIS
932e5fc208 Merge correction 2013-08-20 13:56:03 +00:00
Michael RICOIS
492534c329 Merge giant 2013-08-20 13:48:53 +00:00
Michael RICOIS
57b17a329e Merge from branch 2.4 2013-08-12 12:08:03 +00:00
Michael RICOIS
cd99eb5db3 issue #0001556 : Gestion des emails 2013-07-30 09:08:40 +00:00
Michael RICOIS
28bd244e1b issue #0001667 : Merge 2013-07-30 08:58:23 +00:00
Michael RICOIS
0aa86a6e88 Merge 2013-07-30 08:56:48 +00:00
Michael RICOIS
4bb3252707 Merge 2013-07-30 08:54:58 +00:00
Michael RICOIS
348f26f6ff issue #0001636 : Merge 2013-07-30 08:52:33 +00:00
Michael RICOIS
b551647bbb fixed issue #0001672 2013-07-30 08:46:49 +00:00
Michael RICOIS
d555dbee67 issue #0001652 : Merge cutoff 2013-07-30 08:42:29 +00:00
Michael RICOIS
a0c64ca14a issue #0001668 : Merge 2013-07-30 08:41:29 +00:00
Michael RICOIS
e3beb98ef8 issue #0001654 : Merge 2013-07-30 08:36:50 +00:00
Michael RICOIS
9a67a4bd0c issue #0001652 : Merge cutoff script 2013-07-30 08:31:24 +00:00
Michael RICOIS
8475760345 issue #0001372 : Merge button to add link company from dirigeants 2013-07-30 08:30:03 +00:00
Michael RICOIS
247bbb49aa issue #0001652 : Merge cutoff 2013-07-30 08:28:31 +00:00
Michael RICOIS
8edf0be950 issue #0001653 : Merge worldcheck 2013-07-30 08:26:23 +00:00
Michael RICOIS
6111f32f22 Merge giant 2013-07-30 08:24:34 +00:00
Michael RICOIS
9fdbd1adf3 Properties 2013-07-30 08:21:56 +00:00
Michael RICOIS
904eb0e816 Doc and config upgrade 2013-07-30 08:20:27 +00:00
Michael RICOIS
15321bbd21 Librairies upgrade 2013-07-30 08:18:24 +00:00
Michael RICOIS
78b3ac1e87 Prepare merge : correction affichage bilan 2013-07-26 15:18:33 +00:00
Michael RICOIS
878324e95d fix issue #0001372 : Add button to add link company from dirigeants 2013-07-26 15:05:18 +00:00
Michael RICOIS
90e8f98cc0 Prepare merge : update files 2013-07-26 14:57:59 +00:00
Michael RICOIS
f8e65beef3 Prepare merge : update files 2013-07-26 14:50:47 +00:00
Michael RICOIS
6a7fb9f81c Prepare merge : update Zend Framework and others files 2013-07-26 14:46:39 +00:00
Michael RICOIS
1c9c29a1e1 Merge from branch 2.4 2013-07-02 09:45:41 +00:00
Michael RICOIS
8469589a2d issue #0001264 : Correction code de certains postes 2013-07-02 09:05:35 +00:00
Michael RICOIS
e58a45896c Probleme de configuration wkhtml 2013-07-02 09:03:13 +00:00
Michael RICOIS
a7cf31fa61 Typo 2013-07-02 08:10:09 +00:00
Michael RICOIS
1568cfc438 Infirmation de jugement (1506) 2013-06-27 13:41:04 +00:00
Michael RICOIS
ba51166571 Merge from 2.4 2013-06-27 12:20:35 +00:00
Michael RICOIS
615f8bf494 Merge for issue #0001636 2013-06-25 10:05:46 +00:00
Michael RICOIS
efe59312ed Merge Giant Client 2013-06-25 09:57:07 +00:00
Michael RICOIS
f9bbd8b762 Merge issue #0001636 for test and validation 2013-06-25 09:55:58 +00:00
Michael RICOIS
720f72ec77 Merge from branch 2.4 2013-06-24 16:33:46 +00:00
Michael RICOIS
c1bff8dd95 Merge from branch 2.4 2013-06-20 15:15:39 +00:00
Michael RICOIS
bea5f40782 Merge issue #0001642 : Display more clearly "Effectif" from account 2013-06-17 07:29:28 +00:00
Michael RICOIS
73fd71d0e3 Merge for issue #0001636 2013-06-15 08:25:30 +00:00
Michael RICOIS
144bdce16a Merge from 2.4 2013-06-14 16:00:22 +00:00
Michael RICOIS
5a81c52bea Correction probleme lors du déplacement d'un lien (setLienChange) 2013-06-13 15:02:36 +00:00
Michael RICOIS
8fb1b723c3 Merge for suppress element which causes bad display, issue #0001592 2013-06-11 09:46:16 +00:00
Michael RICOIS
00a9837f3a Merge for issue #0001634 2013-06-10 13:02:15 +00:00
Michael RICOIS
08f53c790d Merge from branch 2.4 2013-06-07 16:07:50 +00:00
Michael RICOIS
a86bae2370 Merge From branche 2.4 2013-06-06 12:01:45 +00:00
Michael RICOIS
1e9681168c Merge from branch 2.4 2013-06-03 07:17:05 +00:00
Michael RICOIS
c906efb374 Merge Language config 2013-05-29 13:26:15 +00:00
Michael RICOIS
08dce33ceb Merge english switch 2013-05-29 13:10:19 +00:00
Michael RICOIS
88f095ef2e debug 2013-05-29 13:00:00 +00:00
Michael RICOIS
aeaa0e6a76 Merge from branche 2.4 : Language and improvments 2013-05-27 15:22:43 +00:00
Michael RICOIS
debdd7ab0e Nom du fichier a traités 2013-05-24 12:39:29 +00:00
Michael RICOIS
deb841aec8 Small changes 2013-05-23 13:42:00 +00:00
Michael RICOIS
9705094aa2 Merge From branche 2.4 2013-05-17 07:06:21 +00:00
Michael RICOIS
bdc5cc245a Merge fromm branche 2.4 2013-05-16 07:42:47 +00:00
Michael RICOIS
fdd294bc0f Merge fromm branche 2.4 2013-05-15 18:45:06 +00:00
Michael RICOIS
99fb9e0f07 Merge fromm branche 2.4 2013-05-15 18:22:21 +00:00
Michael RICOIS
cbc4bc432a Correction 2013-05-15 09:37:27 +00:00
Michael RICOIS
080099ff4d Return montant 2013-05-15 07:29:13 +00:00
Michael RICOIS
d71dcf796c Override ref to have the good path 2013-05-14 15:46:35 +00:00
Michael RICOIS
572643916d issue #0001547 : 'fr' fallback in bootstrap 2013-05-14 15:43:20 +00:00
Michael RICOIS
c9d3096309 issue #0001547 : Remove setting language in session to find a better way 2013-05-14 15:20:07 +00:00
Michael RICOIS
cb0ad9160a Certains poste des bilans ne sont pas des montants 2013-05-14 11:49:28 +00:00
Michael RICOIS
6924ba9e5b Merge for issue #0001547, #0001610, #0001613, #0001591, #0001585 2013-05-14 09:32:08 +00:00
Michael RICOIS
9944df0ca9 strtolower 2013-04-25 12:03:08 +00:00
Michael RICOIS
8d9e826640 Pattern actes 2013-04-24 07:55:59 +00:00
Michael RICOIS
3e106a39c1 No more change with NumRM 2013-04-23 08:12:17 +00:00
Michael RICOIS
22122eb2ef Remove Zend_Registry call 2013-04-23 08:11:57 +00:00
Michael RICOIS
6c538edb8d Complete pattern 2013-04-19 12:39:32 +00:00
Michael RICOIS
1af20a20ff debug 2013-04-19 12:12:11 +00:00
Michael RICOIS
2568237e63 debug 2013-04-19 11:56:01 +00:00
Michael RICOIS
37d3a5af7a Update pattern to detect path 2013-04-19 10:42:56 +00:00
Michael RICOIS
2a6ecb7ac3 Better log format 2013-04-19 10:15:34 +00:00
Michael RICOIS
3bd9fdb312 condition 2013-04-19 10:02:07 +00:00
Michael RICOIS
e5b3ff6e7d debug 2013-04-19 09:57:37 +00:00
Michael RICOIS
73f8834db4 Correct directories 2013-04-19 09:47:25 +00:00
Michael RICOIS
661d006438 debug 2013-04-19 09:42:48 +00:00
Michael RICOIS
bf874aff25 Correct directories 2013-04-19 09:36:14 +00:00
Michael RICOIS
fc9bf4e8aa Display information 2013-04-19 09:22:34 +00:00
Michael RICOIS
667a032ff9 Ajout control des actes déjà présent 2013-04-19 09:16:10 +00:00
Michael RICOIS
9b28291dd9 Adapt style for printing 2013-04-16 13:40:08 +00:00
Michael RICOIS
d1abd6ff9b Code repertoire métier 2013-04-15 15:46:02 +00:00
Michael RICOIS
335320b934 Lien vers les fiches 2013-04-15 13:37:03 +00:00
Michael RICOIS
729cad5933 issue #0001372 : Add doc to company witthout siren (type=Entreprise) 2013-04-12 12:39:49 +00:00
Michael RICOIS
c61855ee8f issue #0001372 : Add doc to company witthout siren 2013-04-12 12:11:30 +00:00
Michael RICOIS
e6cc420e7c issue #0001372 : Add doc to company witthout siren 2013-04-12 10:32:16 +00:00
Michael RICOIS
1464121fcb Code Répertoire des Métiers, Redraw 2013-04-11 16:15:20 +00:00
Michael RICOIS
08d4c385cc issue #0001569 : Reintegrate branch 2.3 2013-04-09 20:10:29 +00:00
Michael RICOIS
72da28f802 OrderToCash 2013-04-08 10:43:21 +00:00
Michael RICOIS
1908f96541 OrderToCash 2013-04-08 10:41:48 +00:00
Michael RICOIS
cf5b17b10c OrderToCash 2013-04-08 01:03:34 +00:00
Michael RICOIS
a81e57fa19 Background 2013-04-08 00:51:57 +00:00
Arman KYOKCHAN
f16f2dd1a4 issue #0001601: 3d graphic has been added 2013-04-04 12:44:12 +00:00
Michael RICOIS
eccd845857 order to cash image background 2013-04-03 15:21:25 +00:00
Arman KYOKCHAN
6554f0679c credit recommendation, compact type aren`t being deleted from database if full exists 2013-04-03 05:56:15 +00:00
Michael RICOIS
4f90c0a4d8 issue #0001541 : Don't rename filename when type=ST 2013-04-02 14:35:53 +00:00
Michael RICOIS
235a70e545 issue #0001541 : Better transform file 2013-04-02 14:32:35 +00:00
Michael RICOIS
7c59faa295 issue #0001541 : Better transform file 2013-04-02 14:27:55 +00:00
Michael RICOIS
613431b6c6 Remove debug 2013-04-02 14:18:32 +00:00
Michael RICOIS
088a992716 issue #0001541 : Check path 2013-04-02 14:03:55 +00:00
Michael RICOIS
562d6e61fe issue #0001541 : Ref and path 2013-04-02 14:02:21 +00:00
Michael RICOIS
317c0762ef issue #0001539, issue #0001372 : Franchise 2013-03-29 14:24:31 +00:00
Michael RICOIS
8b04439d76 issue #0001541 : $file instead of $ref 2013-03-29 11:28:41 +00:00
Michael RICOIS
862c933436 issue #0001541 : Debug path 2013-03-29 11:27:12 +00:00
Michael RICOIS
f544b1e653 issue #0001541 : Pattern for acte 2013-03-29 11:21:19 +00:00
Michael RICOIS
6b0b8024a2 issue #0001541 : Permission on directories 2013-03-29 08:50:19 +00:00
Michael RICOIS
3f1f6b9c59 issue #0001541 : Test presence fichier 2013-03-29 08:40:53 +00:00
Michael RICOIS
d3700847aa issue #0001541 : Test presence fichier 2013-03-29 08:24:17 +00:00
Michael RICOIS
9ae0a081ff issue #0001541 : enlarge pattern 2013-03-29 08:11:26 +00:00
Michael RICOIS
2fcd415dc4 issue #0001541 : Formattage repertoires pour les actes 2013-03-29 07:56:18 +00:00
Michael RICOIS
ea3f0268b1 Correction affichage Liste des Etablissement dans la saisie 2013-03-28 17:18:00 +00:00
Michael RICOIS
fff3eda800 issue #0001541 : Formattage repertoires pour les actes 2013-03-28 17:16:48 +00:00
Michael RICOIS
06d6f84e47 Ajout evenement "Jugement arretant le plan de sauvegarde" 2013-03-28 10:45:40 +00:00
Michael RICOIS
ee19892ff8 Merge change from 2.4 2013-03-25 11:14:15 +00:00
Michael RICOIS
c8acfcdf6f Merge change from 2.4 2013-03-25 10:30:55 +00:00
Michael RICOIS
8e28843c0b Merge from 2.3 2013-03-22 16:11:16 +00:00
Michael RICOIS
b24596be8a issue #0001592 : ORDER TO CASH - Opacity ne fonctionne pas 2013-03-22 16:04:08 +00:00
Michael RICOIS
4ebb3e67ef issue #0001592 : ORDER TO CASH - Adresse, opacité logo 2013-03-22 15:17:25 +00:00
Michael RICOIS
ac6bede441 issue #0001543 : Affichage siren tiers 2013-03-21 17:06:12 +00:00
Michael RICOIS
ede93de4ff issue #0001543 : Affichage tiers 2013-03-21 16:46:17 +00:00
Michael RICOIS
da80d242d9 issue #0001549 : Changement pour l'affichage des SIRETs 2013-03-21 15:44:27 +00:00
Michael RICOIS
148a7bbb58 Update for issue #0001592 2013-03-21 15:12:34 +00:00
Michael RICOIS
86f05fcee7 Test for issue #0001592 2013-03-21 15:03:33 +00:00
Michael RICOIS
d6e2d29069 Remove script balise 2013-03-21 14:52:50 +00:00
Michael RICOIS
3b48b09f7e Test for issue #0001592 2013-03-21 14:48:24 +00:00
Michael RICOIS
e7682ed198 Correct config 2013-03-21 14:45:39 +00:00
Michael RICOIS
46d68513a1 Update print css 2013-03-21 14:40:33 +00:00
Michael RICOIS
5258ddda43 Oops style is not good 2013-03-21 14:37:29 +00:00
Michael RICOIS
bc8ed6f965 Update print css 2013-03-21 14:25:48 +00:00
Michael RICOIS
46936c2525 Oops, file has been commited 2013-03-21 13:53:39 +00:00
Michael RICOIS
76612cba81 issue #0001563 : Button to apply access on a list of users 2013-03-21 10:07:44 +00:00
Michael RICOIS
78f391c7c8 issue #0001585 : Masquage de menu 2013-03-21 08:59:35 +00:00
Michael RICOIS
0dfc8512ef issue #0001585 : Masquage du menu 2013-03-21 08:57:39 +00:00
Michael RICOIS
421121871c All request from customer are send to support@scores-decisions.com 2013-03-21 08:39:06 +00:00
Michael RICOIS
9910748e57 Issue #0001579 : Take care of table nae case,linux is case sensitive 2013-03-21 08:36:19 +00:00
Michael RICOIS
31cb8f9b13 Issue #0001579 : Add IF EXISTS on drop table 2013-03-21 08:35:37 +00:00
Michael RICOIS
43219a1b35 issue #0001488 : Amélioration 2013-03-20 14:31:36 +00:00
Michael RICOIS
6abcb054fd issue #0001488 : Suppression cut-off de l'edition de la fiche 2013-03-20 14:25:54 +00:00
Michael RICOIS
dd52302193 issue #0001488 : Typo 2013-03-20 14:11:53 +00:00
Michael RICOIS
dc139a255d issue #0001488 : Vérification 2013-03-20 14:09:48 +00:00
Michael RICOIS
55208ea650 issue #0001488 : 0 is a possible value 2013-03-20 14:04:36 +00:00
Michael RICOIS
30e86bf9bc issue #0001488 : Remplacement du contenu de retour 2013-03-20 13:59:34 +00:00
Michael RICOIS
181ee6bfe2 issue #0001488 : Validation du formulaire 2013-03-20 13:58:38 +00:00
Michael RICOIS
b7800a4dc9 issue #0001579 : Function are not an action and remove the global var 2013-03-20 12:42:52 +00:00
Aram HARUTYUNYAN
c08d1ff1db Issue #0001579 2013-03-20 06:19:46 +00:00
Michael RICOIS
d67f20d2e6 issue #106, issue #1515 : Drop table before inserting data 2013-03-19 11:38:44 +00:00
Michael RICOIS
b5dbb943cf issue #106, issue #1515 : Drop table before inserting data 2013-03-19 10:31:28 +00:00
Michael RICOIS
0d4bd452b3 Redirect on error soap 2013-03-19 10:20:51 +00:00
Michael RICOIS
4e5c46d29e issue #1579 : Affichage fonctions de direction and genre sur les évenements 2013-03-19 08:56:28 +00:00
Michael RICOIS
c2f128dd32 issue #106 : Change table name because Linux is case sensitive 2013-03-18 09:14:20 +00:00
Michael RICOIS
94fcfa794c Update JQuery Mobile to version 1.3.0 2013-03-15 16:39:05 +00:00
Michael RICOIS
6ce1e7baa9 Update JQuery-UI to version 1.10.2 2013-03-15 16:24:04 +00:00
Michael RICOIS
b2040206cd Update JQuery-UI to version 1.10.2 2013-03-15 16:18:54 +00:00
Michael RICOIS
50fa4d5392 issue #1585 : Add page for valorisation 2013-03-15 15:47:36 +00:00
Michael RICOIS
1e67fc1b74 issue #0000106 : Use the new table and enhance search method 2013-03-12 14:56:38 +00:00
Michael RICOIS
94092139e5 issue #0000106 : Use the new table and enhance search method 2013-03-12 14:39:22 +00:00
Michael RICOIS
eb7db17979 Prepare for production 2013-03-12 13:51:17 +00:00
Michael RICOIS
964159ea84 This directories is needed by the configuration 2013-03-12 12:43:03 +00:00
Aram HARUTYUNYAN
c51a12298b issue #106 2013-03-12 09:02:47 +00:00
Aram HARUTYUNYAN
7817a9e12e issue #106 2013-03-12 09:01:37 +00:00
Aram HARUTYUNYAN
1e7a860047 issue #1515 2013-03-12 08:43:47 +00:00
Michael RICOIS
b686f9b5d1 Add uppercase extension 2013-03-11 16:49:57 +00:00
Arman KYOKCHAN
4bfb04199e issue #0001576 : creditrecommendation and compact report data_store fixed 2013-03-11 13:48:00 +00:00
Arman KYOKCHAN
5da13b8a3b #0001576 2013-03-11 13:41:59 +00:00
Michael RICOIS
73ae374ef8 id2 pour les fonctions de direction 2013-03-08 17:27:06 +00:00
Michael RICOIS
db8dfb832c issue #0001573 : Ajout logique pour l'interface des tarifications 2013-03-07 15:54:21 +00:00
Michael RICOIS
6a4982c6a3 Change path 2013-03-07 09:30:38 +00:00
Michael RICOIS
4030eebdd1 issue #0001563 : Delete script 2013-03-07 08:33:25 +00:00
Michael RICOIS
f7d4f0a895 MAJ Themes 2013-03-07 08:32:19 +00:00
Michael RICOIS
fa54570f93 issue #0001563 : Ajout nouveaux éléments 2013-03-06 11:29:51 +00:00
Arman KYOKCHAN
e612ccf3da Historiques data fix 2013-03-06 10:07:11 +00:00
Michael RICOIS
9399e413ba issue #0001563 : Ajout nouveaux éléments 2013-03-06 10:04:28 +00:00
Michael RICOIS
83e198bacf issue #0001564 : Correction conséquence etablissement étranger 2013-03-06 08:01:04 +00:00
Michael RICOIS
d236f9c06e Correction orthographe 2013-03-05 16:29:46 +00:00
Michael RICOIS
c2c9420a3f issue #0001564 : Correction conséquence etablissement étranger 2013-03-05 16:28:20 +00:00
Michael RICOIS
414d65c37e issue #0001564 : Correction conséquence etablissement étranger 2013-03-05 16:25:47 +00:00
Michael RICOIS
2921643f46 issue #0001564 : Correction conséquence etablissement étranger 2013-03-05 16:18:59 +00:00
Michael RICOIS
0bdd5f1151 issue #0001564 : Correction conséquence etablissement étranger 2013-03-05 16:14:36 +00:00
Michael RICOIS
867a206bb8 issue #0001564 : Correction conséquence etablissement étranger 2013-03-05 14:59:44 +00:00
Michael RICOIS
554396f6d7 Affichage 2013-03-05 14:26:27 +00:00
Michael RICOIS
809cc965c9 issue #0001564 : Pays dans la liste de recherche 2013-03-05 14:01:41 +00:00
Arman KYOKCHAN
cee2119aff up.png down.png resize fix 2013-03-05 13:14:17 +00:00
Michael RICOIS
770f549896 issue #0001372 : Correction ajout automatique participation/fonction de direction 2013-03-05 09:45:18 +00:00
Michael RICOIS
6bf3ce4632 issue #0001372 : Change Year and Month on datepicker 2013-03-04 18:10:18 +00:00
Michael RICOIS
88cfa25c75 issue #0001372 : Liquidation dans les motifs de changement 2013-03-01 11:23:45 +00:00
Michael RICOIS
2debabe12e issue #0001372, issue #0001539 : MajMin 2013-03-01 08:39:56 +00:00
Michael RICOIS
859094c919 Participation pour les liens 2013-02-27 15:47:02 +00:00
Aram HARUTYUNYAN
34f2218108 Update documentation 2013-02-25 12:05:54 +00:00
Michael RICOIS
8bf722e4ee issue #0000106 : Mise à jour du scripts pour intégration des NAFs 2013-02-25 09:03:29 +00:00
Michael RICOIS
3b7ea38958 Test mise sous surveillance fiche identité 2013-02-25 08:56:15 +00:00
Michael RICOIS
cdced3e9f9 Correction page juridique/informations réglementés 2013-02-24 11:14:15 +00:00
Michael RICOIS
3ba814628e issue #0001372 : Création automatique des fonctions de directions en actionnaire 2013-02-22 17:41:57 +00:00
Michael RICOIS
0886582687 display style 2013-02-22 16:29:07 +00:00
Michael RICOIS
a183595c3e Ajout automatique des fonctions de direction 2013-02-22 11:48:52 +00:00
Michael RICOIS
a17680dc27 Nouveau code pour l'affichage pourcentage 2013-02-21 20:28:55 +00:00
Michael RICOIS
079a2db1a2 Nouveau code pour l'affichage pourcentae 2013-02-21 20:12:06 +00:00
Michael RICOIS
001af396cb "Néé le" with if 2013-02-21 19:44:05 +00:00
Michael RICOIS
8accc444ee Update persistent storage definition 2013-02-21 10:43:39 +00:00
Michael RICOIS
48f046a771 Correction création fiche lien 2013-02-20 15:39:35 +00:00
Michael RICOIS
f5513b3dea error is deprecated, use fail instead of 2013-02-20 14:18:25 +00:00
Michael RICOIS
ac46cf4d53 Affichage 2013-02-20 13:37:24 +00:00
Michael RICOIS
fa864a7c5f Typo variable 2013-02-20 13:26:10 +00:00
Michael RICOIS
1148c23b58 Changement lien fiche 2013-02-20 13:17:09 +00:00
Michael RICOIS
ec949e244b Pas de Kbis pour les associations 2013-02-20 13:16:06 +00:00
Michael RICOIS
182ecfdc7a le siren sur toutes les editions 2013-02-20 08:05:20 +00:00
Michael RICOIS
c7801e1bf2 Utilisation siren lorsque disponible dans le lien 2013-02-20 07:55:12 +00:00
Michael RICOIS
330cce71d0 Error sur getLiens 2013-02-19 08:41:02 +00:00
Michael RICOIS
c1bb530134 issue #0001486 : Display error when creating or updating account 2013-02-18 16:41:40 +00:00
Michael RICOIS
634d7ffd3f Upgrade JQuery-UI to version 1.10.1 2013-02-18 11:11:51 +00:00
Michael RICOIS
e3fc1e1238 Update how surveillance works, javascript and general 2013-02-18 09:40:50 +00:00
Michael RICOIS
35789219d4 Suppress warning 2013-02-18 09:38:50 +00:00
Michael RICOIS
a6e339ef77 issue #0001539 : Code Isin, identifiants nationnaux 2013-02-18 09:28:39 +00:00
Michael RICOIS
d0d5edd9cb Js modify for dialog 2013-02-17 16:41:39 +00:00
Michael RICOIS
84631456e2 Style modification 2013-02-13 16:00:00 +00:00
Michael RICOIS
6002827e10 Count before foreach 2013-02-13 12:27:05 +00:00
Michael RICOIS
c3d078c6fc Add a space between php and script path 2013-02-13 09:36:21 +00:00
Michael RICOIS
e2d884ca7e Test fonctionnement 2013-02-13 09:31:37 +00:00
Michael RICOIS
d6391e4a3e Update documentation 2013-02-13 09:09:09 +00:00
Michael RICOIS
0e153415c8 Correction chemin greffe PDF 2013-02-12 17:51:26 +00:00
Michael RICOIS
25ec4ecf7d Chemin de fichier 2013-02-12 17:35:50 +00:00
Michael RICOIS
9d43b07b1c Add path for browscap adapter 2013-02-12 17:35:28 +00:00
Michael RICOIS
99ff34f6a7 Add the resource Zend_Http_UserAgent_Device_Features_Browscap 2013-02-12 16:19:30 +00:00
Michael RICOIS
8ad09c0cd3 Following the release, Javascript libraries upgrade, use browscap.ini with Zend_Http_UserAgent_Device_Features_Browscap to detect IE6 and load different CSS and JS 2013-02-12 16:07:13 +00:00
Michael RICOIS
dc5a707ff1 New design 2013-02-11 14:03:10 +00:00
Michael RICOIS
6c92cba45c Correct style for print 2013-02-11 11:02:29 +00:00
Michael RICOIS
31cc63f006 Complete style change 2013-02-11 10:58:35 +00:00
Michael RICOIS
4c9a277a69 Typo 2013-02-11 10:48:40 +00:00
Michael RICOIS
42c83f8613 Correct file 2013-02-11 10:46:27 +00:00
Michael RICOIS
6be45f5ce3 Correction following CSS change 2013-02-11 08:56:13 +00:00
Michael RICOIS
ac3528d02f Group CSS style in only one file 2013-02-11 08:25:59 +00:00
Michael RICOIS
df2b10cb9c Correction typo 2013-02-08 16:08:59 +00:00
Michael RICOIS
f3c87983bf Affichage d'une marque 2013-02-07 16:20:00 +00:00
Michael RICOIS
18b71b825d Correction affichage 2013-02-07 16:18:51 +00:00
Michael RICOIS
91b52c43a5 Affichage d'une marque 2013-02-07 16:16:51 +00:00
Michael RICOIS
4b6df9cee3 Affichage d'une marque 2013-02-07 16:04:21 +00:00
Michael RICOIS
842e567772 Affichage d'une marque 2013-02-07 16:02:12 +00:00
Michael RICOIS
6b17a251b5 Affichage d'une marque 2013-02-07 15:59:59 +00:00
Michael RICOIS
75cc500dd1 Affichage d'une marque 2013-02-07 15:14:15 +00:00
Michael RICOIS
c21ba75444 Affichage d'une marque 2013-02-07 15:11:52 +00:00
Michael RICOIS
1b21144b5b Affichage d'une marque 2013-02-07 15:08:39 +00:00
Michael RICOIS
22bc9c2ede Récupération du PDF des marques 2013-02-07 13:58:06 +00:00
Michael RICOIS
6b16c952cc Document target="_blank" 2013-02-06 14:03:59 +00:00
Michael RICOIS
d59e251b77 Correction preg_match 2013-02-05 16:43:00 +00:00
Michael RICOIS
87fdefc832 Correction preg_match 2013-02-05 16:38:53 +00:00
Michael RICOIS
eba4516e54 Marque : nom du fichier PDF 2013-02-05 16:32:10 +00:00
Michael RICOIS
f5c7a87788 getMarque 2013-02-05 15:59:10 +00:00
Michael RICOIS
7797763338 Message IE6 2013-02-05 09:23:09 +00:00
Michael RICOIS
d9829b6e54 Add JQuery-UI version 1.10 (Take care that this version don't keep compatibilty with IE6) 2013-02-05 08:43:06 +00:00
Michael RICOIS
79b9befaaf Add JQuery UI version 1.10 2013-02-05 08:34:19 +00:00
Michael RICOIS
4fecf3c05b checkdate lors de la saisie de bilan 2013-02-05 07:16:49 +00:00
Michael RICOIS
628359df90 Message pour IE6 2013-02-04 12:42:35 +00:00
Michael RICOIS
89fd829a8f Change Sql to detect errors 2013-02-04 12:41:29 +00:00
Michael RICOIS
4334454e8b Display form result when we are in development 2013-02-04 12:40:44 +00:00
Michael RICOIS
5f68c2e194 Update Jquery link 2013-02-04 12:38:38 +00:00
Michael RICOIS
656c50fa82 Add some debug 2013-02-04 12:32:18 +00:00
Michael RICOIS
1489c1586c Simplification dans la saisie des bilans + mise à jour des liasses 2013-02-04 12:27:04 +00:00
Michael RICOIS
ee990dfac4 Delete code 2013-02-04 12:25:45 +00:00
Michael RICOIS
e1b5257d04 Delete file 2013-02-04 12:21:23 +00:00
Michael RICOIS
fbb96bcbf3 Debug 2013-02-04 09:38:23 +00:00
Michael RICOIS
522ca0902e issue #0001372 : dateEffetLien défini lors de l'ajout d'un actionnaire/participation 2013-02-01 11:17:59 +00:00
Michael RICOIS
1f0b3e8c75 issue #0001372 : Ajout date document lors de l'appel à une boite de dialogue 2013-02-01 10:52:38 +00:00
Michael RICOIS
6ca91c2af1 Ajout scripts indentite-fiche.js sur page indiscore3 2013-02-01 10:49:47 +00:00
Michael RICOIS
d0a6eaca1e replace infogrefef_dl and use the new class 2013-01-30 10:55:06 +00:00
Michael RICOIS
acba8987d2 Php date 2013-01-30 09:58:51 +00:00
Michael RICOIS
1b0c20c4ed Override ref 2013-01-30 09:43:38 +00:00
Michael RICOIS
20bfbd3f81 Fichier.... 2013-01-30 09:27:29 +00:00
Michael RICOIS
ea6b2b5cee Fichier.... 2013-01-30 09:25:36 +00:00
Michael RICOIS
13587046f5 Delete call to firebug 2013-01-30 09:22:09 +00:00
Michael RICOIS
fbfa09a551 Correction chemin wkhtmltopdf 2013-01-30 08:58:22 +00:00
Michael RICOIS
f4f7e747bc Correction requete sql 2013-01-30 08:49:20 +00:00
Michael RICOIS
0a5961fb1d issue #0001504 : Modification style pour prise en compte dans les rapports complets 2013-01-25 09:24:30 +00:00
Michael RICOIS
43c4ef4c11 issue #0001372 : condition pour la civilité 2013-01-25 09:04:41 +00:00
Michael RICOIS
835e9a049e Suppression liste des droits en dur 2013-01-24 14:58:38 +00:00
Michael RICOIS
937d907564 issue #0001481 : Correction chemin 2013-01-24 09:43:36 +00:00
Michael RICOIS
3e4a77c8bb Ajout des événements pour la saisie 2013-01-24 08:56:39 +00:00
Michael RICOIS
8320af66c9 issue #0001515 : Evenements depuis la table local 2013-01-24 08:47:19 +00:00
Michael RICOIS
4c459ddd47 issue #0001515 : Récupération et chargement de la table des événements 2013-01-23 20:25:25 +00:00
Michael RICOIS
2b940743e1 issue #0001372 : Control valeur pour ne pas déplacer sur un élément vide 2013-01-23 15:08:29 +00:00
Michael RICOIS
8c835b9d95 Comment 2013-01-23 14:55:27 +00:00
Michael RICOIS
526b7e3f18 Checksum mismatch 2013-01-23 14:39:36 +00:00
Michael RICOIS
65a6133664 issue #0001372 : Control valeur pour ne pas déplacer sur un élément vide 2013-01-23 14:31:18 +00:00
Michael RICOIS
446029c8f6 fixed issue #0001514 : Emplacement cache_wsdl + chemin executable wkhtmltopdf 2013-01-23 13:26:24 +00:00
Michael RICOIS
122e5c5c30 blank space 2013-01-23 12:55:12 +00:00
Michael RICOIS
55cc12632e Update CSS for print 2013-01-22 21:18:36 +00:00
Michael RICOIS
a111c15ee6 issue #0001504 : Suppression affichage message "de suppression" 2013-01-22 16:20:12 +00:00
Michael RICOIS
29adcb07ec issue #0001504 : Suppression affichage message "de suppression" 2013-01-22 16:17:39 +00:00
Michael RICOIS
0c9dfb90f4 issue #0001504 : Nouvel affichage suite aux modifs du webservice 2013-01-22 15:37:14 +00:00
Michael RICOIS
ebfbab5391 issue #0001481 : Script de récupération du pdf des marques 2013-01-20 10:44:08 +00:00
Michael RICOIS
d7c297a1b2 Link on item after search 2013-01-19 19:41:20 +00:00
Michael RICOIS
5280fa6630 Change path of scripts 2013-01-19 19:32:24 +00:00
Michael RICOIS
33fd36833c getBodaccPdf.php update 2013-01-18 21:53:50 +00:00
Michael RICOIS
b3179939a1 getBodaccPdf.php update 2013-01-18 21:40:22 +00:00
Michael RICOIS
0533f35bc3 Following the change of bodacc.fr website, update the script 2013-01-18 21:33:29 +00:00
Michael RICOIS
092f125c7f Following the change of bodacc.fr website, update the script 2013-01-18 21:19:56 +00:00
Michael RICOIS
679435b5f6 issue #0001491 : Nouvelle façon de faire bouger le menu et mise à jour des styles css, le menu fixed est abandonné 2013-01-18 16:28:43 +00:00
Michael RICOIS
0e3dbdcf9f issue #0001372 : Interface pour le déplacement d'un lien 2013-01-18 16:23:31 +00:00
Michael RICOIS
225ca86818 issue #0001372 : Civilité dans RS 2013-01-17 17:07:03 +00:00
Michael RICOIS
d912ad9499 Correction condition / data 2013-01-17 16:44:04 +00:00
Michael RICOIS
6cf4ff0884 Revert fixed position for bug refresh menu, but remove some style not needed
Le rendu devra être vérifié dans les PDFs
2013-01-17 14:27:04 +00:00
Michael RICOIS
06c8a54f26 issue #0001491 : Positionnement CSS du menu en fixed et ajout des spécifités IE6 2013-01-16 15:32:46 +00:00
Michael RICOIS
8ab17e33b9 Reintegrate the old ref 2013-01-16 09:34:53 +00:00
Michael RICOIS
7cdeb860de Lien portefeuille 2013-01-15 20:46:06 +00:00
Michael RICOIS
37a893aaf6 issue #0001488 : Ajout interface pour le cutoff 2013-01-15 19:57:54 +00:00
Michael RICOIS
7377770913 Réintegrate Dashboard 2013-01-15 17:26:05 +00:00
Michael RICOIS
ea9d145882 issue #0001488 : Ajout interface pour le cutoff 2013-01-15 17:19:20 +00:00
Michael RICOIS
a0ba4fa3fa issue #0000930 : Ajout service 2013-01-15 17:14:31 +00:00
Michael RICOIS
c065caea28 Reprise valeur civilite 2013-01-15 10:56:21 +00:00
Michael RICOIS
fbc381f24b Suppression ref 2013-01-15 09:01:49 +00:00
Michael RICOIS
27b5654791 Correction requete SQL de détection des actes 2013-01-14 10:09:59 +00:00
Michael RICOIS
c761f75352 [doShowPanoData] : Correction appel function javascript 2013-01-11 14:59:03 +00:00
Michael RICOIS
a66905028d Correction requete SQL de détection des actes 2013-01-11 10:58:45 +00:00
Michael RICOIS
69322e8099 Correction requete SQL de détection des actes 2013-01-11 10:40:50 +00:00
Michael RICOIS
0a88abe0ae Pagination 2013-01-10 12:52:37 +00:00
Michael RICOIS
8d36328880 Ajout du libelle dans tous les cas 2013-01-10 11:03:40 +00:00
Michael RICOIS
c86e1fc7f6 Correction requete SQL de détection des actes 2013-01-10 10:53:54 +00:00
Michael RICOIS
7b0b81351a Correction requete SQL de détection des actes 2013-01-10 10:50:45 +00:00
Michael RICOIS
55a3bbcb61 Correction requete SQL de détection des actes 2013-01-10 10:46:18 +00:00
Michael RICOIS
5112b1bc5c Correction requete SQL de détection des actes 2013-01-10 10:37:59 +00:00
Michael RICOIS
e9c2a93106 Correction requete SQL de détection des actes 2013-01-10 10:34:21 +00:00
Michael RICOIS
25047e7e51 Correction requete SQL de détection des actes 2013-01-10 10:24:29 +00:00
Michael RICOIS
139c30af4d Correction portefeuille 2013-01-10 10:22:59 +00:00
Michael RICOIS
621a65d862 Correction requete SQL de détection des actes 2013-01-10 10:04:52 +00:00
Michael RICOIS
ecbc19d454 Typo 2013-01-09 11:27:36 +00:00
Michael RICOIS
8e5e443eaa issue #0001372 : Edition fiche 2013-01-09 08:27:44 +00:00
Michael RICOIS
05fb0ede75 issue #0001372 : Date JS dans le formulaire d'upload des documents 2013-01-08 16:42:56 +00:00
Michael RICOIS
880e5ceda7 issue #0001372 : Ajout pour les liens, Liens pour affichage nouvel onglet lors de la selection d'une fiche lien 2013-01-08 15:41:11 +00:00
Michael RICOIS
acf5f689e3 issue #0001264 : Ajout mode debug pour ne pas perdre la saisie si problème 2013-01-08 11:28:35 +00:00
Michael RICOIS
fab9901d3e [Saisie] : Valeur tribunal "INCONU" lorsque rien n'est saisi 2013-01-08 10:18:16 +00:00
Michael RICOIS
32035088dd issue #0001372 : Suppression concernant les actionnaires et participations dans le formulaire de saisie 2013-01-08 10:11:39 +00:00
Michael RICOIS
08cc29ce8b Affichage des dirrigeants opérationnels 2013-01-07 08:27:41 +00:00
Michael RICOIS
4354eaf9b2 Utilisation du siren pour les élements du menu evaluation 2013-01-07 08:10:04 +00:00
Michael RICOIS
c651fd2298 Tooltip 2012-12-26 10:37:14 +00:00
Michael RICOIS
255ce2a299 Gestion de tout les droits, avec surcharge 2012-12-26 10:36:47 +00:00
Michael RICOIS
1acce8ec61 Following the upgrade of Qtip, update javascript code 2012-12-23 17:57:34 +00:00
Michael RICOIS
f49674b47a Can't use fonction libxml_disable_entity_loader, normally for security 2012-12-23 17:45:44 +00:00
Michael RICOIS
2a99776e01 Following the upgrade of Qtip, update javascript code 2012-12-23 17:34:25 +00:00
Michael RICOIS
f1b35e1c8a Upgrade Qtip to version 2.0 2012-12-23 11:16:35 +00:00
Michael RICOIS
139ba0dea2 Try to override SIREN with having 0 behind the string if it have not the good length 2012-12-21 11:34:30 +00:00
Michael RICOIS
3e4cb6112b Update Zend Framework to version 1.12.1 2012-12-20 21:00:29 +00:00
Michael RICOIS
3d292ff2f4 Support Dev reçoit le résumé du traitement des actes 2012-12-19 21:23:07 +00:00
Michael RICOIS
c351949d0d issue #0001372 : Traitement spécial TUP et FUSION 2012-12-19 14:44:58 +00:00
Michael RICOIS
a7c20f6b92 Controle de la présence de la session 2012-12-19 09:02:46 +00:00
Michael RICOIS
214de43094 Suppression recherche des fichiers physiques 2012-12-19 08:58:58 +00:00
Michael RICOIS
a2df892b99 Correction affichage de liens par idRef 2012-12-19 07:12:11 +00:00
Michael RICOIS
7d756466af issue #0001372 : Traitement spécial TUP et FUSION 2012-12-18 16:26:41 +00:00
Michael RICOIS
8cd51b9041 Remove command 2012-12-18 12:31:57 +00:00
Michael RICOIS
cdb3c57c90 Remove sql file to add new structure 2012-12-18 09:57:27 +00:00
Michael RICOIS
49a85d2f23 issue #0001372 : Changement pour les personnes physiques 2012-12-17 10:59:12 +00:00
Michael RICOIS
4c6430cf8a issue #0001372 : Affichage 2012-12-17 10:38:11 +00:00
Arman KYOKCHAN
5206e40b72 Gaint for monitoring 2012-12-17 08:50:54 +00:00
Michael RICOIS
a767a26bcd issue #0001372 : Lien ajout au dessus 2012-12-17 08:40:41 +00:00
Michael RICOIS
b14726e745 Use utf8 2012-12-14 16:39:43 +00:00
Michael RICOIS
efbae85053 Devise pour les fiches FRANCE 2012-12-14 14:50:27 +00:00
Michael RICOIS
84fe52d2c2 Don't write file if size is 0 2012-12-14 09:41:53 +00:00
Michael RICOIS
f963465825 Check pp et pm 2012-12-14 07:11:46 +00:00
Michael RICOIS
b49d1050ff Add page_swap 2012-12-13 21:08:22 +00:00
Michael RICOIS
7bbba48e29 issue #0001372 : Fusion/Déplacement 2012-12-13 16:23:53 +00:00
Michael RICOIS
05b882fc4f issue #0001372 : Ajout 2012-12-13 13:26:36 +00:00
Michael RICOIS
aced890d1d Correction affichage annonces 2012-12-13 11:15:15 +00:00
Michael RICOIS
06189a9e04 issue #0001372 : Automatic currency selection 2012-12-13 08:24:15 +00:00
Michael RICOIS
b543e17169 issue #0001372 : Devises 2012-12-12 21:26:28 +00:00
Michael RICOIS
305d2c61c0 issue #0001372 : Devises 2012-12-12 21:19:42 +00:00
Michael RICOIS
d6a30457fa issue #0001372 : Intégration des pays provenant du webservice 2012-12-12 15:31:16 +00:00
Michael RICOIS
9d56905af6 Suppression document.ready 2012-12-11 15:51:43 +00:00
Michael RICOIS
3b1d7ac70e Add svn ignore 2012-12-10 21:03:20 +00:00
Michael RICOIS
94a2378168 Delete directory 2012-12-10 20:31:38 +00:00
Michael RICOIS
33ec159510 Delete directory 2012-12-10 20:31:06 +00:00
Michael RICOIS
65bafff8f9 Delete directory 2012-12-10 20:28:22 +00:00
Michael RICOIS
281b9fbecd Delete directory 2012-12-10 20:28:01 +00:00
Michael RICOIS
d4ec35b485 Delete directory 2012-12-10 20:27:01 +00:00
Michael RICOIS
c9bff759a0 Simplification 2012-12-07 16:50:00 +00:00
Michael RICOIS
7b42f7d45d Forget ; 2012-12-07 16:22:43 +00:00
Michael RICOIS
35f945ae52 Add path for wkhtlm executable 2012-12-07 13:42:51 +00:00
Michael RICOIS
0c04cc9881 Correction message rapport 2012-12-07 11:14:33 +00:00
Michael RICOIS
3eec3b559c Update display 2012-12-07 08:18:18 +00:00
Michael RICOIS
349b8f5312 Gras sur le nom 2012-12-07 08:05:13 +00:00
Michael RICOIS
2a1338cb1f Correction message rapport 2012-12-06 20:18:26 +00:00
Michael RICOIS
aa938dc381 issue #0001424 : Chargement des scripts dans le plugin Theme 2012-12-06 16:38:43 +00:00
Michael RICOIS
647f854ddb Envoi mail de rapport 2012-12-06 10:56:12 +00:00
Michael RICOIS
0692ae7353 Get the siren from lien identity 2012-12-05 12:59:13 +00:00
Michael RICOIS
5dbd3e975b Correction affichage compétences 2012-12-05 10:42:57 +00:00
Michael RICOIS
f98f10031b Correction affichage compétences 2012-12-05 10:11:03 +00:00
Michael RICOIS
90e5eac3e4 Small fix 2012-12-04 15:41:16 +00:00
Michael RICOIS
ba341c02a2 Fix 2012-12-04 14:35:36 +00:00
Michael RICOIS
f327a796b4 Fix 2012-12-04 14:21:08 +00:00
Michael RICOIS
ea101a1eb6 Debug 2012-12-04 14:17:00 +00:00
Michael RICOIS
2fd81819e8 Petites corrections 2012-12-03 21:01:11 +00:00
Michael RICOIS
e4e3de18ad Display always country 2012-12-03 15:20:52 +00:00
Michael RICOIS
3e65976e48 Modification libellé 2012-12-03 15:15:12 +00:00
Michael RICOIS
62d94a5062 Add pct as key for the cache 2012-12-03 15:02:44 +00:00
Michael RICOIS
524ce972fc issue #0001372 : Formulaire personne physique 2012-12-03 15:01:40 +00:00
Michael RICOIS
3988965663 issue #0001372 : Arborescence, choix du pourcentage 2012-12-03 14:19:39 +00:00
Michael RICOIS
b28f610522 Add countries 2012-12-03 13:31:23 +00:00
Michael RICOIS
754f85a59c issue #0001372 : Pour une personne physique, lors de l'enregistrement on concatene les champs d'identite dans la raison sociale 2012-12-03 11:15:51 +00:00
Michael RICOIS
5f936785e9 portefeuille csv webservice en recette 2012-12-03 07:27:06 +00:00
Michael RICOIS
843a084436 Upgrade JQuery-UI to version 1.9.2 2012-11-30 17:07:43 +00:00
Michael RICOIS
df53573bdf Affichage 2012-11-30 17:06:56 +00:00
Michael RICOIS
92ccc2282a Limite 500 établissements 2012-11-30 15:15:56 +00:00
Michael RICOIS
b5f97d0708 issue #0001372 : Trim and strtoupper 2012-11-30 14:50:42 +00:00
Michael RICOIS
95aa47c6aa Détection du fichier 2012-11-30 14:37:48 +00:00
Michael RICOIS
749e53332f Infogreffe - enregistrement des noms des documents dans la base 2012-11-29 19:51:17 +00:00
Michael RICOIS
0f87d89324 Revue affichage des dirigeants 2012-11-29 15:19:24 +00:00
Michael RICOIS
2a534141da issue #0001372 : Suppression boite de dialog 2012-11-28 20:40:44 +00:00
Michael RICOIS
d8839dd5b6 issue #0001372 : Saisie des zones, tel, fax, web, mail 2012-11-28 17:16:16 +00:00
Michael RICOIS
4a6a63e082 issue #0001372 : Saisie des zones, tel, fax, web, mail 2012-11-28 17:01:51 +00:00
Michael RICOIS
fb13cf48d1 Infogreffe - enregistrement des noms des documents dans la base 2012-11-28 15:14:15 +00:00
Michael RICOIS
887aa192b2 issue #0001372 : Actionnaires spéciaux 2012-11-26 17:18:44 +00:00
Michael RICOIS
5fb052aa86 issue #0001372 : Affichage des documents pour tout le monde 2012-11-26 16:15:01 +00:00
Michael RICOIS
15fb42703e issue #0001372 : Séparateur lors de la recherche sur siren ou identifiant 2012-11-26 15:54:25 +00:00
Michael RICOIS
5c161730aa issue #0001372 : naissance_date 2012-11-26 10:56:37 +00:00
Michael RICOIS
adf8d03c6c issue #0001372 : dateCapital 2012-11-26 10:50:26 +00:00
Michael RICOIS
878e17ac12 issue #0001372 : Organigroupe 2012-11-23 16:31:57 +00:00
Michael RICOIS
00c881ecda Chemin bodacc 2012-11-23 08:59:52 +00:00
Michael RICOIS
0dbc212980 issue #0001391 : Id local on edit 2012-11-23 07:53:33 +00:00
Michael RICOIS
8a3f315e12 issue #0001391 : Javascript select 2012-11-22 08:54:56 +00:00
Michael RICOIS
6aa0875ff5 issue #0001391 : Javascript select 2012-11-22 08:41:34 +00:00
Michael RICOIS
7d5fbe5bb9 issue #0001372 : New Search 2012-11-22 07:44:55 +00:00
Michael RICOIS
23292acaec Action affichage bilan association 2012-11-21 11:44:05 +00:00
Michael RICOIS
7bd0af4762 Action affichage bilan association 2012-11-21 11:42:23 +00:00
Michael RICOIS
8ca4a76829 Action affichage bilan association 2012-11-21 11:22:59 +00:00
Michael RICOIS
2f305deb30 issue #0001372 : refDoc not exist in the database 2012-11-21 09:12:51 +00:00
Michael RICOIS
490907a73c issue #0001372 : Delete document 2012-11-21 09:06:46 +00:00
Michael RICOIS
6169f39cc0 issue #0001423 : Try again to load javascript 2012-11-20 20:58:21 +00:00
Michael RICOIS
d948e829da issue #0001422 : Oubli 2012-11-20 14:12:54 +00:00
Michael RICOIS
a45c062bb6 issue #0001422 : Lien de connexion sur les requêtes ajax 2012-11-20 14:06:45 +00:00
Michael RICOIS
830b03ddcc issue #0001391 : Set var nom to force edit 2012-11-20 08:08:36 +00:00
Michael RICOIS
3ac9153600 issue #0001423 : Revert new javascript load 2012-11-20 07:33:06 +00:00
Michael RICOIS
04b8369327 issue #0001423 : Revert new javascript load 2012-11-20 07:11:02 +00:00
Michael RICOIS
bc22e33e5e Display a message when nothing is send 2012-11-19 16:03:12 +00:00
Michael RICOIS
ba2661487d Update JQuery-UI to version 1.9.1 2012-11-19 16:02:37 +00:00
Michael RICOIS
068a43b43c issue #0001423 : Revert new javascript load 2012-11-19 15:53:10 +00:00
Michael RICOIS
a2654c088d issue #0001423 : Add a new way to load javascript (by controller name or by controller-action name) 2012-11-19 13:43:23 +00:00
Michael RICOIS
f4555ba5e4 Update Jstree version 1.0 2012-11-19 12:00:06 +00:00
Michael RICOIS
aa8c854016 Update JQuery Form to version 3.18 2012-11-19 11:28:49 +00:00
Michael RICOIS
7335bf06a8 Update InFieldLabel.js 2012-11-19 11:27:07 +00:00
Michael RICOIS
20342e1076 Update JQuery to version 1.8.3 2012-11-19 11:26:40 +00:00
Michael RICOIS
b7bd958194 Update Qtip2 2012-11-19 11:15:30 +00:00
Michael RICOIS
8105fd158a issue #0001372 : Small change 2012-11-19 09:58:43 +00:00
Michael RICOIS
1dc5a41b61 issue #0001423 : Correct path 2012-11-19 07:08:40 +00:00
Michael RICOIS
163aa0dd1f issue #0001423 : Mail 2012-11-19 07:00:35 +00:00
Michael RICOIS
b1f903e2e3 issue #0001372 : Use a of type stdClass instead of array 2012-11-17 18:14:28 +00:00
Michael RICOIS
a15486134b issue #0001423 : Bad config for log and mysql 2012-11-17 18:00:35 +00:00
Michael RICOIS
68ad03354f issue #0001423 : Bad config for log and mysql 2012-11-17 18:00:08 +00:00
Michael RICOIS
8e3655425f issue #0001372 : Define lienref 2012-11-17 17:37:07 +00:00
Michael RICOIS
3b1ba2149d issue #0001423 : remove temp file script 2012-11-16 15:31:42 +00:00
Michael RICOIS
d763b52b8c issue #0001423 : Configure 2012-11-16 15:23:59 +00:00
Michael RICOIS
5e5c82db89 issue #0001423 : *.ini ignore 2012-11-16 14:28:52 +00:00
Michael RICOIS
e10c5e8c03 issue #0001423 : application.ini ignore 2012-11-16 14:26:27 +00:00
Michael RICOIS
2bde25c1c2 issue #0001423 : application.ini ignore 2012-11-16 14:24:17 +00:00
Michael RICOIS
a210261771 issue #0001423 : Get better structure for file 2012-11-16 14:12:03 +00:00
Michael RICOIS
6bae4e7ef1 issue #0001423 : Deletion 2012-11-16 14:10:40 +00:00
Michael RICOIS
708d2d54dd issue #0001423 : Deletion 2012-11-16 14:10:18 +00:00
Michael RICOIS
8e4a62560d issue #0001423 : Deletion 2012-11-16 14:10:00 +00:00
Michael RICOIS
70c21e6429 Orginal cron information 2012-11-16 09:54:54 +00:00
Michael RICOIS
0093b9dae7 Result object from setCommande 2012-11-16 09:43:25 +00:00
Michael RICOIS
e2a14ae0af Move webservice configuration ini file 2012-11-16 09:34:42 +00:00
Michael RICOIS
9f5021d33b Move webservice configuration ini file 2012-11-16 09:31:47 +00:00
Michael RICOIS
5ac01564c4 Merge from branch 2.3 2012-11-16 08:51:39 +00:00
Michael RICOIS
a7b182f02e Merge from branch 2.3 2012-11-16 08:48:05 +00:00
Michael RICOIS
526535ffc2 issue #0001372 : Use id of lienRef on foreign company 2012-11-15 16:51:05 +00:00
Michael RICOIS
f4e0ef99d1 issue #0001372 : Correct interface 2012-11-15 15:41:35 +00:00
Michael RICOIS
4a442bd1e5 issue #0001372 : Basculer vers la fiche pour saisir les éléments d'un société étrangère 2012-11-15 13:30:33 +00:00
Michael RICOIS
749d928b2b issue #0001372 : Correct interface 2012-11-15 10:15:44 +00:00
Michael RICOIS
9701fa30b8 issue #0001372 : Correct interface 2012-11-14 20:44:24 +00:00
Michael RICOIS
59d1e6f956 issue #0001372 : Correct interface 2012-11-14 17:21:32 +00:00
Michael RICOIS
5627721fe9 Add frbsurveillance in Surveillance/Fichier 2012-11-14 16:06:00 +00:00
Michael RICOIS
48c2dece17 issue #0001372 : Retour code erreur sur requete SOAP 2012-11-14 13:14:55 +00:00
Michael RICOIS
76d9d2285c issue #0001372 : MajMin 2012-11-13 17:11:40 +00:00
Michael RICOIS
57dcf3e8b0 issue #0001372 : Google search 2012-11-13 16:55:58 +00:00
Michael RICOIS
922b6a4bc3 issue #0001372 : Correct on interface 2012-11-13 16:49:58 +00:00
Michael RICOIS
2d491faec1 issue #0001372 : Again some change on Inteface 2012-11-12 17:55:37 +00:00
Michael RICOIS
f0048206b3 issue #0001391 : Interface 2012-11-09 16:24:11 +00:00
Michael RICOIS
25babfff72 issue #0001391 : Interface change 2012-11-09 11:33:00 +00:00
Michael RICOIS
60cefb4b18 Test pour commande association 2012-11-08 08:39:09 +00:00
Michael RICOIS
5f6048d9e1 issue #0001372 : setLienDoc 2012-11-07 17:21:39 +00:00
Michael RICOIS
4475a5915e issue #0001372 : Boite de dialog document de référence 2012-11-07 16:57:52 +00:00
Michael RICOIS
e6877b6303 issue #0001372 : Affichage lien d'ajout du fichier 2012-11-07 11:18:53 +00:00
Michael RICOIS
ee945945f2 issue #0001372 : Ajout icone pour définition des fichiers 2012-11-07 10:46:52 +00:00
Michael RICOIS
a10539fb22 Activate Entreprise service version 0.8 2012-11-07 10:07:24 +00:00
Michael RICOIS
d24e3713e9 Remove part that is not desired 2012-11-06 09:25:09 +00:00
Michael RICOIS
81b033ad20 Integrate change from branch 2.3 2012-11-05 16:07:27 +00:00
Michael RICOIS
c49600c73d Modification configuration et changement des chemins de fichiers 2012-11-05 15:33:01 +00:00
Michael RICOIS
94dbab1e74 Correct link to acte and bilan 2012-11-05 14:35:10 +00:00
Michael RICOIS
49f8494e67 Texte dans les logs 2012-11-05 13:53:14 +00:00
Michael RICOIS
ad1d0ff2ae Orthographe 2012-11-05 13:52:37 +00:00
Michael RICOIS
a60eeb8a7e Remove starting of session 2012-11-05 13:11:49 +00:00
Michael RICOIS
bd1774794b Get the configuration, probably we are in a batch 2012-11-05 13:01:08 +00:00
Michael RICOIS
a29c1e27ff issue #0001090 : Remove ".pdf" 2012-11-03 12:45:06 +00:00
Michael RICOIS
200e224196 issue #0001090 : Only the basename of file 2012-11-03 12:42:47 +00:00
Michael RICOIS
278898ca0f issue #0001090 : Replace ref with his old value 2012-11-03 12:40:03 +00:00
Michael RICOIS
5a04893d0f glob use the same syntax as the shell 2012-11-03 11:34:36 +00:00
Michael RICOIS
3f59076ba7 Whole path to detect file 2012-11-03 11:32:07 +00:00
Michael RICOIS
1b6bcd166b Debug 2012-11-03 11:30:36 +00:00
Michael RICOIS
bf3b2ad0a0 Try to detect old reference for file 2012-11-03 11:28:31 +00:00
Michael RICOIS
9f4e5090c2 Debug 2012-11-03 09:37:52 +00:00
Michael RICOIS
3f3ada75f1 issue #0001090 : typo in preg_match 2012-11-03 09:29:47 +00:00
Michael RICOIS
227e25a044 issue #0001090 : type not detected, add "sociaux" to the path 2012-11-03 09:22:32 +00:00
Michael RICOIS
96044b7c12 issue #0001090 : type not detected, add "sociaux" to the filename 2012-11-03 09:19:57 +00:00
Michael RICOIS
97ac80c803 Debug 2012-11-02 23:39:17 +00:00
Michael RICOIS
8932198bb0 Debug 2012-11-02 23:31:20 +00:00
Michael RICOIS
e379688513 Debug 2012-11-02 23:23:00 +00:00
Michael RICOIS
0ff3a18cab Debug 2012-11-02 23:04:06 +00:00
Michael RICOIS
0eaf757610 issue #0001090 : Matche with the siren in the filename 2012-11-02 22:49:24 +00:00
Michael RICOIS
eb0a49b383 issue #0001090 : only the file and not the whole path 2012-11-02 22:39:49 +00:00
Michael RICOIS
0ab2fee93c issue #0001090 : path of require 2012-11-02 21:45:08 +00:00
Michael RICOIS
279e798765 issue #0001090 : Correct typo 2012-11-02 20:59:21 +00:00
Michael RICOIS
5ae97010d3 Debug 2012-11-02 20:53:54 +00:00
Michael RICOIS
e82ecfe3b8 issue #0001090 : Bilans Directory structure 2012-11-02 20:26:44 +00:00
Michael RICOIS
c3a3e55b0b issue #0001372 : Préparation chargement document 2012-10-31 10:09:27 +00:00
Michael RICOIS
af559f0d30 Use correct project structure 2012-10-30 10:37:53 +00:00
Michael RICOIS
e636270615 Integrate issue #0001417 2012-10-29 09:34:46 +00:00
Michael RICOIS
e3a52af3c2 issue #0001385 : Introduce correction from branch 2.3 2012-10-26 14:48:51 +00:00
Michael RICOIS
1a3b6e977a issue #0001415 : Formulaire saisie informations boursières 2012-10-26 08:13:56 +00:00
Michael RICOIS
1ca6c334ce issue #0001417 : Affichage liens vers liste des actes et bilans 2012-10-26 06:55:45 +00:00
Michael RICOIS
ecdc20b868 issue #0001372 : Display identity informations 2012-10-25 15:38:56 +00:00
Michael RICOIS
1ce19d653e issue #0001372 : better message when data is saved 2012-10-25 10:15:26 +00:00
Michael RICOIS
77c590f927 issue #0001372 : Delete and id forms 2012-10-24 16:10:48 +00:00
Michael RICOIS
76a9bced55 issue #0001372 : Adresse Personne Physique 2012-10-24 12:55:26 +00:00
Michael RICOIS
3ab521c33e issue #0001372 : Tooltip to display informations about entity 2012-10-24 09:37:55 +00:00
Michael RICOIS
793203ae88 issue #0001372 : Delete action 2012-10-24 07:57:39 +00:00
Michael RICOIS
1ad8fa272f issue #0001372 : Modify interface because data structure has changed 2012-10-23 15:28:17 +00:00
Michael RICOIS
9ac92188a9 Redirecti to giant controller 2012-10-21 15:13:59 +00:00
Michael RICOIS
cecc01716f issue #0001372 : Use new modify getLiens on service Entreprise v0.8 2012-10-18 21:18:42 +00:00
Michael RICOIS
43bb4edf1c Bad method name 2012-10-18 06:24:21 +00:00
Michael RICOIS
1cae6dccfe strtolower 2012-10-17 15:20:45 +00:00
Michael RICOIS
3b258c1bf3 issue #0000930 : Add interface on extranet 2012-10-17 07:52:44 +00:00
Michael RICOIS
fb091da7e7 issue #0001372 : getCountryId 2012-10-16 13:54:14 +00:00
Michael RICOIS
cecd71d2ce issue #0001372 : Test 2012-10-15 09:12:59 +00:00
Michael RICOIS
53e77c0da3 Move to parent td in dom before select the text in div 2012-10-10 07:44:29 +00:00
Michael RICOIS
a9d58695e8 issue #0001264 : Saisie de chiffres avec décimales, positionnement de l'affichage sur l'erreur 2012-10-08 15:23:19 +00:00
Michael RICOIS
d9fe615031 issue #0001385 : Ajout var detail 2012-10-05 15:22:21 +00:00
Michael RICOIS
1d723c172e issue #0001385 : Correction affichage suivi privileges 2012-10-05 15:16:57 +00:00
Michael RICOIS
1a63461b34 issue #0001385 : Correction affichage suivi privileges 2012-10-05 15:08:25 +00:00
Michael RICOIS
96766451b1 issue #0001372 : Ajout 2012-10-04 16:01:20 +00:00
Michael RICOIS
64e61fa29b issue # : Rappatriement des fichiers sur le webservice et enregistrement dans la base de données sdv1.asso_actes 2012-10-03 14:21:14 +00:00
Michael RICOIS
d138d680b7 Jquery 1.8.2, Jquery-UI 1.8.24 2012-10-03 11:44:59 +00:00
Michael RICOIS
1ba2feaae1 Gestion des statuts association à travers le webservice 2012-10-03 10:21:18 +00:00
Michael RICOIS
783ec3631b Correction suite à changement afficahge droits 2012-09-28 16:45:52 +00:00
Michael RICOIS
356dbe9894 issue #0001264 : Positionnement des boutons 2012-09-28 07:14:39 +00:00
Michael RICOIS
36717079d3 issue #0001264 : Format date, datepicker, duree en select 2012-09-27 14:08:24 +00:00
Michael RICOIS
f54c571bc6 Suppression affichage privileges, surtout quand il n'y en a pas 2012-09-27 13:51:10 +00:00
Michael RICOIS
57907ff83a Init url on logout 2012-09-26 20:02:31 +00:00
Michael RICOIS
ffac2e3b78 issue #0001372 : Préambule saisie des liens 2012-09-26 20:00:57 +00:00
Michael RICOIS
699de14c3d issue #0001365 : Add style for fieldset 2012-09-26 11:57:19 +00:00
Michael RICOIS
1d1046b635 issue #0001368 : New link, new design 2012-09-26 10:21:52 +00:00
Michael RICOIS
474399108d Add error and correct display of form 2012-09-26 09:08:11 +00:00
Michael RICOIS
a06fea502c issue #0001368 : Display interface 2012-09-25 14:59:49 +00:00
Michael RICOIS
9a5d264d20 issue #0001264 : Correction poste YK 2012-09-25 08:32:13 +00:00
Michael RICOIS
b8dfbf72e0 Correct javascript 2012-09-24 10:13:24 +00:00
Michael RICOIS
c9e3cd7270 issue #0001264 : Add missing part 2012-09-24 08:43:28 +00:00
Michael RICOIS
c204c17e1e issue #0001264 : Add missing part 2012-09-24 08:12:57 +00:00
Michael RICOIS
6b361a75df Remove disable caching for wsdl in staging mode 2012-09-21 20:12:29 +00:00
Michael RICOIS
f1db0b320a issue #0001264 : Display button after check 2012-09-21 20:05:02 +00:00
Michael RICOIS
9f6914415d issue #0001264 : Add verification 2012-09-21 19:40:45 +00:00
Michael RICOIS
cfd9b5f952 issue #0001264 : Display color with id as Number 2012-09-21 16:06:51 +00:00
Michael RICOIS
055058d4bf issue #0001264 : Correction poste 2012-09-21 16:04:37 +00:00
Michael RICOIS
1568d42dd0 issue #0001264 : Display 2012-09-21 16:01:29 +00:00
Michael RICOIS
0687801562 issue #0001365 : Add method getCategory 2012-09-21 15:10:32 +00:00
Michael RICOIS
4c4f8acb1a issue #0001264 : Correction duree 2012-09-21 14:57:18 +00:00
Michael RICOIS
a483726054 issue #0001365 : Style 2012-09-21 14:12:42 +00:00
Michael RICOIS
62eaf8757a issue #0001365 : Display access in category 2012-09-21 14:07:41 +00:00
Michael RICOIS
9f887a60b8 issue #0001264 : Some change 2012-09-21 10:13:07 +00:00
Michael RICOIS
86183ee468 issue #0001264 : New poste 2012-09-20 16:13:30 +00:00
Michael RICOIS
14dfb150cc issue #0001264 : Color 2012-09-20 15:36:37 +00:00
Michael RICOIS
a52c670863 issue #0001265 : javascript correction 2012-09-20 15:05:04 +00:00
Michael RICOIS
fc09c38b10 issue #0001265 : small correction 2012-09-20 14:48:53 +00:00
Michael RICOIS
d351601c41 issue #0001265 : default value, negative value 2012-09-20 14:01:50 +00:00
Michael RICOIS
983ec6776f Webservice-2.4 2012-09-20 14:00:48 +00:00
Michael RICOIS
52e29f7bd6 Version 0.2 service saisie 2012-09-20 12:26:56 +00:00
Michael RICOIS
d0a188ad16 Delete wsdl caching on staging and production 2012-09-20 08:43:51 +00:00
Michael RICOIS
255ebb9fb6 Delete wsdl caching on staging and production 2012-09-20 08:26:47 +00:00
Michael RICOIS
ba28bc59ae issue #0001264 : Add tabulation and other correction 2012-09-19 19:31:39 +00:00
Michael RICOIS
442ad14395 Move condition out element verification 2012-09-19 12:28:18 +00:00
Michael RICOIS
4e2d317b35 Merge javascript correction 2012-09-19 12:09:29 +00:00
Michael RICOIS
088eaa3cf8 Javascript change to be more compatible with IE6 2012-09-19 11:59:53 +00:00
Michael RICOIS
bbc69b23cc Merge correction style 2012-09-18 09:07:10 +00:00
Michael RICOIS
6bc53e7f58 issue #0001264 : Vérification retour javascript 2012-09-18 09:05:47 +00:00
Michael RICOIS
d99347b98a Correction style 2012-09-18 09:00:59 +00:00
Michael RICOIS
19b78918e0 issue #0001264 : Rappel des infos dans les tableaux 2012-09-17 09:33:08 +00:00
Michael RICOIS
1120595aef Lien saisie liasse 2012-09-14 09:50:24 +00:00
Michael RICOIS
8869202403 Correction après mise en prod 2012-09-14 09:47:44 +00:00
Michael RICOIS
8f6c2c20ad Remplacement siretSiege par siren 2012-09-14 07:59:20 +00:00
Michael RICOIS
de77dcd907 Merge from trunk 2012-09-13 14:56:02 +00:00
Michael RICOIS
93adf6d658 Make a new merge after bad reintegrate of branche 2.2 2012-09-13 14:52:09 +00:00
Michael RICOIS
48c6a5fc44 Correction Reintegrate defectueux 2012-09-13 14:43:14 +00:00
Michael RICOIS
e7699f0b72 Merge from trunk 2012-09-13 10:26:04 +00:00
Michael RICOIS
187f42255c Correction problem IE6, IE7, IE8 ne pas laissé une petite virgule à la fin d'une déclaration 2012-09-13 10:00:10 +00:00
Michael RICOIS
39e817de59 Tentative correction problem IE6, IE7 sur l'affichage des arborescences 2012-09-13 09:27:52 +00:00
Michael RICOIS
ca12b7e6b0 Correction typo 2012-09-12 09:30:22 +00:00
Michael RICOIS
cc8011e403 Typo on variable 2012-09-11 13:08:26 +00:00
Michael RICOIS
896f0f9285 Suppression ZFDebug 2012-09-10 14:44:42 +00:00
Michael RICOIS
353578c0d4 Update Zend Framework to version 1.12 2012-09-10 14:25:26 +00:00
Michael RICOIS
ec180bd6fe Delete Zend Library before update 2012-09-10 14:17:58 +00:00
Michael RICOIS
a8a88167dc Branche 2.3 2012-09-10 14:08:37 +00:00
Michael RICOIS
6c57260088 Modification méthode téléchargement des fichiers pdf historique bodacc 2012-09-10 14:03:47 +00:00
Michael RICOIS
c347098cc8 Reintegrate branche 2.2 2012-09-09 14:19:14 +00:00
Michael RICOIS
8b221bb928 Reintegrate branche 2.2 2012-07-19 10:20:03 +00:00
4526 changed files with 156742 additions and 1225055 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
/.settings/
/.buildpath
/.project
/vendor/

9
TODELETE Normal file
View File

@ -0,0 +1,9 @@
table => actes_files
library\Application\Model\ActesFiles.php
table commandes
table commandes_erreur
table commandes_kbis
table commandes_pieces
table commandes_statut
table commandes_tarifs => Needed dans GenCourrier

View File

@ -1,7 +1,40 @@
<?php
use Monolog\Logger;
use Monolog\Handler\StreamHandler;
use Monolog\Processor\IntrospectionProcessor;
use Monolog\Handler\ChromePHPHandler;
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
//Initialisation global des paramètres de vue
/**
* Set config available in all apps
*/
protected function _initConfig()
{
$config = new Zend_Config($this->getOptions());
Zend_Registry::set('config', $config);
return $config;
}
/**
* Init controller with modules
*/
protected function _initController()
{
$this->bootstrap('frontController');
$front = $this->getResource('frontController');
$front->setControllerDirectory(array(
'default' => __DIR__ . '/modules/default/controllers',
'admin' => __DIR__ . '/modules/admin/controllers',
'file' => __DIR__ . '/modules/file/controllers',
));
return $front;
}
/**
* Initialisation global des paramètres de vue
*/
protected function _initViewSettings()
{
$this->bootstrap('view');
@ -10,28 +43,38 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
$view->headTitle()->setSeparator(' - ');
$view->headTitle('Extranet Scores & Décisions');
}
/**
* Some specific route
* @return unknown
*/
protected function _initRouter()
{
$this->bootstrap('frontController');
$front = $this->getResource('frontController');
$router = $front->getRouter();
$localauthRoute = new Zend_Controller_Router_Route('localauth/', array(
'module' => 'default',
'controller' => 'user',
'action' => 'login'
));
$fichierRoute = new Zend_Controller_Router_Route('fichier/:action/:fichier', array(
'controller' => 'fichier',
'fichier' => '',
'action' => 'login'
));
$router->addRoute('localauth', $localauthRoute);
$printRoute = new Zend_Controller_Router_Route('editer/:action/:fichier', array(
'module' => 'default',
'controller' => 'print',
'fichier' => '',
));
$router->addRoute('localauth', $localauthRoute);
$router->addRoute('fichier', $fichierRoute);
$router->addRoute('print', $printRoute);
$ssoRoute = new Zend_Controller_Router_Route('sso/:partner/', array(
'module' => 'default',
'controller' => 'auth',
'action' => 'index',
));
$router->addRoute('sso', $ssoRoute);
return $router;
}
@ -44,10 +87,7 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
}
$logger = new Zend_Log($writer);
Zend_Registry::set('firebug', $logger);
//ChromePHP - a voir comment désactiver
require_once 'Vendors/ChromePHP/ChromePhp.php';
//Application Logger en Production
$AppLogger = new Zend_Log();
if (APPLICATION_ENV == 'production')
@ -60,69 +100,62 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
$AppMailWriter->addFilter(Zend_Log::ERR);
$AppLogger->addWriter($AppMailWriter);
}
$configuration = Zend_Registry::get('configuration');
$path = $configuration->path->data.'/'.$configuration->path->log;
$AppFileWriter = new Zend_Log_Writer_Stream($path.'/application.log');
$AppFileWriter->addFilter(Zend_Log::ERR);
$AppLogger->addWriter($AppFileWriter);
Zend_Registry::set('log', $AppLogger);
}
protected function _initZFDebug()
/**
* Logs and Debug
*/
protected function _initLogger()
{
$zfdebug = false; //@todo : Mettre dans la configuration
if (APPLICATION_ENV != 'production' && $zfdebug == true)
{
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader->registerNamespace('ZFDebug');
$options = array(
'plugins' => array(
'Variables',
'File' => array('base_path' => APPLICATION_PATH . '../' ),
'Memory',
'Time',
'Exception')
);
# Instantiate the database adapter and setup the plugin.
# Alternatively just add the plugin like above and rely on the autodiscovery feature.
if ($this->hasPluginResource('db')) {
$this->bootstrap('db');
$db = $this->getPluginResource('db')->getDbAdapter();
$options['plugins']['Database']['adapter'] = $db;
}
# Setup the cache plugin
if ($this->hasPluginResource('cache')) {
$this->bootstrap('cache');
$cache = $this->getPluginResource('cache')->getDbAdapter();
$options['plugins']['Cache']['backend'] = $cache->getBackend();
}
$debug = new ZFDebug_Controller_Plugin_Debug($options);
$this->bootstrap('frontController');
$frontController = $this->getResource('frontController');
$frontController->registerPlugin($debug);
}
$config = new Zend_Config($this->getOptions());
$logFile = $config->profil->path->shared.'/log/application.log';
$log = new Logger('APP');
// Console Handler
if (in_array(APPLICATION_ENV, array('development', 'staging'))) {
//$log->pushHandler(new BrowserConsoleHandler());
//$log->pushHandler(new ChromePHPHandler());
}
// File Handler
if (APPLICATION_ENV == 'development') {
$level = Logger::DEBUG;
} else {
$level = Logger::INFO;
}
$log->pushHandler(new StreamHandler($logFile), $level);
// Processor
$log->pushProcessor(new IntrospectionProcessor());
Zend_Registry::set('logger', $log);
}
/**
* Init database
*/
protected function _initDb()
{
$configuration = Zend_Registry::get('configuration');
$c = Zend_Registry::get('config');
try {
$db = Zend_Db::factory($configuration->databases->db->sdv1);
$db = Zend_Db::factory($c->profil->db->sdv1);
$db->getConnection();
} catch ( Exception $e ) {
if (APPLICATION_ENV == 'development') {
print_r($e);
echo '<pre>'; print_r($e); echo '</pre>';
} else {
echo "Le service rencontre actuellement un problème technique.";
}
exit;
}
/**
* Set the default adapter to use with all model
*/
Zend_Db_Table::setDefaultAdapter($db);
/**
* Set Firebug Database profiler
*/
@ -132,21 +165,19 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
$db->setProfiler($profiler);
}
}
/**
* Init cache
*/
protected function _initCache()
{
// @todo : Remove for PHP7 Compatibility
//MetadataCache pour la base de données
$frontendOptions = array(
'lifetime' => 28800,
'automatic_serialization' => true
);
$backendOptions = array();
$cache = Zend_Cache::factory('Core','Apc', $frontendOptions, $backendOptions);
$cache = Zend_Cache::factory('Core', 'Apc',
array('lifetime' => 28800, 'automatic_serialization' => true),
array()
);
Zend_Db_Table_Abstract::setDefaultMetadataCache($cache);
//Cache pour les données de la base à stocker
}
}
}

1
application/configs/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/application.ini

View File

@ -1,41 +0,0 @@
[production]
;phpSettings.session.gc_maxlifetime = 432000
;phpSettings.session.cookie_lifetime = 432000
phpSettings.date.timezone = "Europe/Paris"
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
appnamespace = "Application"
resources.session.save_path = APPLICATION_PATH "/../cache/sessions"
;resources.session.gc_maxlifetime = 432000
;resources.session.cookie_lifetime = 432000
;resources.session.remember_me_seconds = 432000
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.plugins.Auth = "Application_Controller_Plugin_Auth"
resources.frontController.plugins.Theme = "Application_Controller_Plugin_Theme"
resources.frontController.plugins.Menu = "Application_Controller_Plugin_Menu"
resources.frontController.plugins.Pdf = "Application_Controller_Plugin_Pdf"
resources.frontController.plugins.Xml = "Application_Controller_Plugin_Xml"
resources.frontController.plugins.Cgu = "Application_Controller_Plugin_Cgu"
resources.frontController.params.displayExceptions = 0
resources.layout.layout = "main"
resources.layout.layoutPath = APPLICATION_PATH "/views/default"
resources.view.basePath = APPLICATION_PATH "/views/default"
autoloaderNamespaces[] = "Application_"
autoloaderNamespaces[] = "Form_"
autoloaderNamespaces[] = "Scores_"
[staging : production]
resources.frontController.params.displayExceptions = 0
phpSettings.soap.wsdl_cache_enabled = 0
[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
phpSettings.soap.wsdl_cache_enabled = 0
resources.frontController.params.displayExceptions = 1
[testing : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1

View File

@ -1,59 +0,0 @@
[local]
webservices.interne.wsdl = "http://webservice-2.3.sd.dev/interne/v0.4?wsdl-auto"
webservices.interne.options.soap_version = SOAP_1_2
webservices.entreprise.wsdl = "http://webservice-2.3.sd.dev/entreprise/v0.7?wsdl-auto"
webservices.entreprise.options.soap_version = SOAP_1_2
webservices.gestion.wsdl = "http://webservice-2.3.sd.dev/gestion/v0.3?wsdl-auto"
webservices.gestion.options.soap_version = SOAP_1_2
webservices.saisie.wsdl = "http://webservice-2.3.sd.dev/saisie/v0.2?wsdl-auto"
webservices.saisie.options.soap_version = SOAP_1_2
webservices.pieces.wsdl = "http://webservice-2.3.sd.dev/pieces/v0.1?wsdl-auto"
webservices.pieces.options.soap_version = SOAP_1_2
[sdsrvdev01]
webservices.interne.wsdl = "http://webservice-2.3.sd.lan/interne/v0.4?wsdl-auto"
webservices.interne.options.soap_version = SOAP_1_2
webservices.entreprise.wsdl = "http://webservice-2.3.sd.lan/entreprise/v0.7?wsdl-auto"
webservices.entreprise.options.soap_version = SOAP_1_2
webservices.gestion.wsdl = "http://webservice-2.3.sd.lan/gestion/v0.3?wsdl-auto"
webservices.gestion.options.soap_version = SOAP_1_2
webservices.saisie.wsdl = "http://webservice-2.3.sd.lan/saisie/v0.2?wsdl-auto"
webservices.saisie.options.soap_version = SOAP_1_2
webservices.pieces.wsdl = "http://webservice-2.3.sd.lan/pieces/v0.1?wsdl-auto"
webservices.pieces.options.soap_version = SOAP_1_2
[sd-25137]
webservices.interne.wsdl = "http://wse.scores-decisions.com:8081/interne/v0.4?wsdl"
webservices.interne.options.soap_version = SOAP_1_2
webservices.entreprise.wsdl = "http://wse.scores-decisions.com:8081/entreprise/v0.7?wsdl"
webservices.entreprise.options.soap_version = SOAP_1_2
webservices.gestion.wsdl = "http://wse.scores-decisions.com:8081/gestion/v0.3?wsdl"
webservices.gestion.options.soap_version = SOAP_1_2
webservices.saisie.wsdl = "http://wse.scores-decisions.com:8081/saisie/v0.2?wsdl"
webservices.saisie.options.soap_version = SOAP_1_2
webservices.pieces.wsdl = "http://wse.scores-decisions.com:8081/pieces/v0.1?wsdl"
webservices.pieces.options.soap_version = SOAP_1_2
[celeste]
webservices.interne.wsdl = "http://wse.scores-decisions.com:8081/interne/v0.4?wsdl"
webservices.interne.options.soap_version = SOAP_1_2
webservices.entreprise.wsdl = "http://wse.scores-decisions.com:8081/entreprise/v0.7?wsdl"
webservices.entreprise.options.soap_version = SOAP_1_2
webservices.gestion.wsdl = "http://wse.scores-decisions.com:8081/gestion/v0.3?wsdl"
webservices.gestion.options.soap_version = SOAP_1_2
webservices.saisie.wsdl = "http://wse.scores-decisions.com:8081/saisie/v0.2?wsdl"
webservices.saisie.options.soap_version = SOAP_1_2
webservices.pieces.wsdl = "http://wse.scores-decisions.com:8081/pieces/v0.1?wsdl"
webservices.pieces.options.soap_version = SOAP_1_2
[celeste-staging]
webservices.interne.wsdl = "http://wsrec.scores-decisions.com:8000/interne/v0.4?wsdl"
webservices.interne.options.soap_version = SOAP_1_2
webservices.entreprise.wsdl = "http://wsrec.scores-decisions.com:8000/entreprise/v0.7?wsdl"
webservices.entreprise.options.soap_version = SOAP_1_2
webservices.gestion.wsdl = "http://wsrec.scores-decisions.com:8000/gestion/v0.3?wsdl"
webservices.gestion.options.soap_version = SOAP_1_2
webservices.saisie.wsdl = "http://wsrec.scores-decisions.com:8000/saisie/v0.1?wsdl"
webservices.saisie.options.soap_version = SOAP_1_2
webservices.pieces.wsdl = "http://wsrec.scores-decisions.com:8000/pieces/v0.1?wsdl"
webservices.pieces.options.soap_version = SOAP_1_2

View File

@ -1,73 +0,0 @@
<?php
class AideController extends Zend_Controller_Action
{
/**
* 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);
//Zend_Registry::get('firebug')->info($sql->__toString());
$nouveautes = $nouveautesM->fetchAll($sql);
}
$this->view->assign('nouveautes', $nouveautes);
}
/**
* Afficher la liste des nouveautés
*/
public function newlisteAction()
{
$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);
}
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('/');
}
}
}
}

View File

@ -1,797 +0,0 @@
<?php
class DashboardController extends Zend_Controller_Action
{
protected $typeActes= array(
'a00' => 'MODIFICATION',
'a01' => 'MODIFICATION',
'a02' => 'DISSOLUTION',
'a03' => 'CONSTITUTION',
'a04' => 'STATUTS CONSTITUTIFS',
'a06' => 'STATUTS A JOUR',
'a07' => 'STATUTS A JOUR',
'a08' => 'STATUTS A JOUR ET DECLARATION DE CONFORMITE',
'a09' => 'STATUTS APRES TRANSFERT DE SIEGE',
'a1D' => 'AUGMENTATION ET REDUCTION CAPITAL',
'a25' => 'AUGMENTATION DE CAPITAL',
'a26' => 'REDUCTION DE CAPITAL',
'a31' => 'TRANSFERT SIEGE SOCIAL HORS RESSORT O',
'a33' => 'CHANGEMENT DE GERANT',
'a39' => 'CHANGEMENT DE COMMISSAIRE AUX COMPTES',
'a77' => 'CONTINUATION MALGRE LA PERTE DE LA MOITIE DU CAPITAL',
'aA1' => 'STATUTS',
'aAA' => 'ACTE',
'aAB' => 'ACTE MODIFICATIF',
'aAC' => 'ACTE RECTIFICATIF',
'aAD' => 'ACTE SOUS SEING PRIVE',
'aAE' => 'AMPLIATION',
'aAG' => 'AVENANT',
'aAH' => 'AVENANT AUX STATUTS',
'aAI' => 'ATTESTATION',
'aAJ' => 'ANNEXES',
'aAK' => 'ATTESTATION BANCAIRE',
'aAP' => 'PROJET APPORT PARTIEL D&quot,ACTIF',
'aAT' => 'DELIVRANCE DE L&quot,INFORMATION FAITE AU CONJOINT SUR LES CONSEQUENCES DES DETTES',
'aCA' => 'CERTIFICAT',
'aCB' => 'COMPTES DE CLOTURE DE LIQUIDATION',
'aCD' => 'CONTRAT',
'aCE' => 'CONVENTION',
'aCF' => 'CERTIFICAT DE SOUSCRIPTION D&quot,ACTIONS',
'aDA' => 'DECISION DE GERANCE',
'aDB' => 'DECISION DE L&quot,ASSOCIE UNIQUE',
'aDC' => 'DECISION DES ASSOCIES',
'aDE' => 'DECLARATION DE CONFORMITE',
'aDF' => 'DECLARATION DE SOUSCRIPTION ET DE VERSEMENT',
'aDH' => 'DECLARATION DE CONFORMITE (ART.374 L24/07/1966)',
'aDI' => 'DECISION DE L&quot,ACTIONNAIRE UNIQUE',
'aDP' => 'DECISION DU PRESIDENT',
'aEA' => 'EXPEDITION',
'aEB' => 'EXPEDITION NOTARIEE',
'aEC' => 'EXTRAIT DU PROCES-VERBAL',
'aFU' => 'PROJET DE FUSION',
'aIF' => 'PROJET APPORT PARTIEL D&quot,ACTIF',
'aJA' => 'JUGEMENT',
'aLA' => 'LETTRE',
'aLB' => 'LISTE DES SIEGES SOCIAUX ANTERIEURS',
'aLC' => 'LETTRE DE DEMISSION',
'aLD' => 'LETTRE DE NOMINATION',
'aLF' => 'LISTE DES SOUSCRIPTEURS',
'aLS' => 'CERTIFICAT DE DEPOT DES FONDS AVEC LISTE DES SOUSCRIPTEURS',
'aNA' => 'NOMINATION DE REPRESENTANT',
'aO9' => 'NOMINATION DE GERANT(S)',
'aOA' => 'ORDONNANCE',
'aOB' => 'ORDONNANCE DE REFERE',
'aOC' => 'ORDONNANCE DU PRESIDENT',
'aOD' => 'ORDONNANCE SUR REQUETE',
'aOE' => 'ORDONNANCE',
'aPA' => 'PROCES VERBAL',
'aPC' => 'PROCES VERBAL D&quot,ASSEMBLEE CONSTITUTIVE',
'aPD' => 'PROCES VERBAL D&quot,ASSEMBLEE DU DIRECTOIRE',
'aPE' => 'PROCES VERBAL D&quot,ASSEMBLEE GENERALE',
'aPF' => 'PROCES VERBAL D&quot,ASSEMBLEE GENERALE EXTRAORDINAIRE',
'aPG' => 'PROCES VERBAL D&quot,ASSEMBLEE GENERALE ORDINAIRE',
'aPH' => 'PROCES VERBAL D&quot,ASSEMBLEE MIXTE',
'aPI' => 'PROCES VERBAL D&quot,ASSEMBLEES ORDINAIRE ET EXTRAORDINAIRE',
'aPL' => 'PROCES VERBAL DIRIGEANT SOCIAL',
'aPM' => 'PROCES VERBAL DU CONSEIL D&quot,ADMINISTRATION',
'aPN' => 'PROCES VERBAL DU CONSEIL DE SURVEILLANCE',
'aPO' => 'PROCES VERBAL DE LA GERANCE',
'aPT' => 'PROJET DE TRAITE D&quot,APPORT',
'aPU' => 'PROJET DE FUSION',
'aPV' => 'PV D&quot,ASSEMBLEE',
'aQ2' => 'CONSTITUTION DE LA SOCIETE',
'aR1' => 'CESSION DE PARTS (OU DONATION)',
'aR4' => 'TRAITE DE FUSION',
'aRA' => 'RAPPORT',
'aRB' => 'RAPPORT COMMISSAIRE AUX COMPTES',
'aRC' => 'RAPPORT COMMISSAIRE FUSION',
'aRE' => 'RAPPORT CR/CPTES TRANSFORM. STE',
'aRG' => 'RAPPORT DU COMMISSAIRE A LA FUSION',
'aRH' => 'RAPPORT DU COMMISSAIRE A LA SCISSION',
'aRI' => 'RAPPORT DU COMMISSAIRE A LA TRANSFORMATION',
'aRK' => 'RAPPORT DU COMMISSAIRE AUX APPORTS',
'aRL' => 'RAPPORT DU COMMISSAIRE AUX APPORTS ET A LA FUSION',
'aRQ' => 'RAPPORT GERANCE',
'aRS' => 'RAPPORT SPECIAL DU CONSEIL D&quot,ADMINISTRATION',
'aRU' => 'PROJET',
'aTA' => 'TRAITE',
'aTB' => 'TRAITE D&quot,APPORT-FUSION',
'aTC' => 'TRAITE DE FUSION',
'aUA' => 'ATTESTATION DU CONJOINT COMMUN EN BIENS',
);
/**
* Return a ramdom password
* @param int $length
* Length of the string
* @param int $strength
* $strength = 1:- 0-9
* $strength = 2:- A-Z0-9
* $strength = 3:- A-Za-z0-9
* $strength = 4:- A-Za-z0-9 and # $ % &
* $strength = 5:- A-Za-z0-9 and # $ % & = > ? @
* @return string
*/
protected function randomPassword($length,$strength)
{
$char_sets=array('48-57','65-90','97-122','35-38','61-64');
$new_password='';
srand(microtime()*10000000);
for($i=0;$i<$length;$i++){
$random=rand(0,$strength-1);
list($start,$end)=explode('-',$char_sets[$random]);
$new_password.=chr(rand($start,$end));
}
return $new_password;
}
public function init()
{
require_once 'Scores/WsScores.php';
require_once 'common/dates.php';
}
public function preDispatch()
{
$user = new Scores_Utilisateur();
if (!$user->checkModeEdition() && $user->getIdClient()!=1 ){
$this->_forward('perms', 'error');
}
}
/**
* Affichage des différents liens d'administration
*/
public function indexAction()
{
$liens = array(
0 => array(
'libelle' => 'Gestion des clients',
'url' => $this->view->url(array('action'=>'clients')),
),
1 => array(
'libelle' => 'Créer un client',
'url' => $this->view->url(array('action'=>'client')),
),
2 => array(
'libelle' => 'Gestion des commandes',
'url' => $this->view->url(array('action'=>'commandes')),
),
3 => array(
'libelle' => 'Gestion des fichiers nouveautés',
'url' => $this->view->url(array('action'=>'newform')),
),
);
$this->view->assign('Liens', $liens);
}
/**
* Gestion des commandes de l'extranet
* Type : greffes | kbis | graydon | giant
*/
public function commandesAction()
{
$this->view->headScript()->appendFile('/themes/default/scripts/dashboard.js', 'text/javascript');
$request = $this->getRequest();
$type = $request->getParam('type', '');
$date = $request->getParam('date', mktime(0, 0, 0, date('n'), 1, date('Y')));
$user = new Scores_Utilisateur();
$typesCommande = array('kbis', 'greffes');
if (in_array($type, $typesCommande))
{
require_once 'Scores/GestionCommandes.php';
//Valeur pour la sélection des dates
$dateSelect = array();
$dateToday = date('m');
$dateIntervalle = 12;
if ($user->checkModeEdition()){
$dateIntervalle = 24;
}
for($i=$dateToday-$dateIntervalle; $i<=$dateToday; $i++)
{
$dateTime = mktime(0, 0, 0, $i, 1, date('Y'));
$selected = '';
if ($dateTime==$date){
$selected = 'selected';
}
$dateSelect[] = array(
'value' => $dateTime,
'select' => $selected,
'affichage' => date('m/Y', $dateTime)
);
}
$this->view->assign('dateSelect', $dateSelect);
switch($type)
{
case 'kbis':
$num = $request->getParam('num');
$num = str_replace(' ', '', strtoupper($num));
$etat = $request->getParam('etat');
$mode = $request->getParam('mode', 'M');
$modeSelect = array(
'C' => array('value' => 'C', 'select' => '', 'affichage' => 'courrier S&amp;D'),
'M' => array('value' => 'M', 'select' => '', 'affichage' => 'e-mail'),
);
$modeSelect[$mode]['select'] = ' selected';
$gestionCommande = new GestionCommande();
$status = $gestionCommande->listStatus($mode);
$etatSelect = array();
$etatSelect[] = array('value'=>0, 'select'=>'', 'affichage'=>'');
foreach($status as $item){
$select = '';
if ($item['id']==$etat){
$select = ' selected';
}
$etatSelect[] = array('value'=>$item['id'], 'select'=>$select, 'affichage'=>$item['libStatut']);
}
${'status'.$mode} = $gestionCommande->listStatus($mode);
$this->view->assign('etatSelect', $etatSelect);
$this->view->assign('modeSelect', $modeSelect);
$this->view->assign('num', $num);
if (!empty($num)){
if (preg_match('/[0-9]{9}/', $num)){
$listCommandes = $gestionCommande->listCommandesKbisBySiren($num);
} elseif(substr($num,0,1)=='K'){
$listCommandes = $gestionCommande->listCommandesKbisByNum($num);
}
} elseif (!empty($date)) {
$listCommandes = $gestionCommande->listCommandesKbis($date, $etat, $mode);
}
//Parcours de la liste des commandes et vérification document existe
if (count($listCommandes)>0) {
for($i=0;$i<count($listCommandes);$i++)
{
//Etat de la commande
$cmdEtatSelect = array();
$cmdEtatSelect[] = array('value'=>0, 'select'=>'', 'affichage'=>'');
$typeCommande = $listCommandes[$i]->type;
if (isset(${'status'.$typeCommande})){
foreach(${'status'.$typeCommande} as $item){
$select = '';
if ($item['id']==$listCommandes[$i]->statutCommande){
$select = ' selected';
}
$cmdEtatSelect[] = array(
'value' => $item['id'],
'affichage' => $item['libStatut'],
'select' => $select,
);
}
}
$listCommandes[$i]->cmdEtatSelect = $cmdEtatSelect;
}
}
break; //Fin Gestion Kbis
case 'greffes':
$num = $request->getParam('num');
$num = str_replace(' ', '', strtoupper($num));
$etat = $request->getParam('etat');
$mode = $request->getParam('mode', 'G');
$login = $request->getParam('login');
if (empty($mode) && !empty($num)) $mode = substr($num,0,1);
$modeSelect = array(
'G' => array('value' => 'G', 'select' => '', 'affichage' => 'courrier infogreffe'),
'C' => array('value' => 'C', 'select' => '', 'affichage' => 'courrier S&amp;D'),
'M' => array('value' => 'M', 'select' => '', 'affichage' => 'e-mail'),
);
$modeSelect[$mode]['select'] = ' selected';
$gestionCommande = new GestionCommande();
//Liste des états possible pour les commandes
$status = $gestionCommande->listStatus($mode);
$etatSelect = array();
$etatSelect[] = array('value'=>0, 'select'=>'', 'affichage'=>'');
foreach($status as $item){
$select = '';
if ($item['id']==$etat){
$select = ' selected';
}
$etatSelect[] = array(
'value' => $item['id'],
'select' => $select,
'affichage' => $item['libStatut']
);
}
$this->view->assign('etatSelect', $etatSelect);
$this->view->assign('modeSelect', $modeSelect);
$this->view->assign('num', $num);
$this->view->assign('login', $login);
if (!empty($num)){
if (preg_match('/[0-9]{9}/', $num)){
$listCommandes = $gestionCommande->listCommandesGreffeBySiren($num);
} elseif(substr($num,0,1)=='G' || substr($num,0,1)=='C'){
$listCommandes = $gestionCommande->listCommandesGreffeByNum($num);
}
} elseif (!empty($login)) {
$listCommandes = $gestionCommande->listCommandesGreffeByLogin($login, $date);
} elseif (!empty($date)) {
$listCommandes = $gestionCommande->listCommandesGreffe($date, $etat, $mode);
}
//Liste des différents états pour les commandes
${'status'.$mode} = $gestionCommande->listStatus($mode);
//Parcours de la liste des commandes et vérification document existe
if (count($listCommandes)>0)
{
for($i=0;$i<count($listCommandes);$i++)
{
//Etat de la commande
$cmdEtatSelect = array();
$cmdEtatSelect[] = array('value'=>0, 'select'=>'', 'affichage'=>'');
$typeCommande = $listCommandes[$i]->typeCommande;
if (isset(${'status'.$typeCommande})){
foreach(${'status'.$typeCommande} as $item){
$select = '';
if ($item['id']==$listCommandes[$i]->statutCommande){
$select = ' selected';
}
$cmdEtatSelect[] = array(
'value' => $item['id'],
'affichage' => $item['libStatut'],
'select' => $select,
);
}
}
$listCommandes[$i]->cmdEtatSelect = $cmdEtatSelect;
//Lien vers le fichier
$documentLien = '';
$document = '';
$sirenLien = '';
switch($type)
{
case 'greffes':
if (preg_match('/^([0-9a-zA-Z]{2,}-).*?$/', $listCommandes[$i]->refDocument, $matches)){
if (substr($listCommandes[$i]->refDocument,0,3)=='ST-'){
$document = 'DERNIER STATUS &Agrave; JOUR';
} else {
$explodedRef = explode('-', $listCommandes[$i]->refDocument);
$dateref = WDate::dateT('Ymd','d/m/Y',$explodedRef[1]);
$depot = ', Dépôt n°'.$explodedRef[6].' au '.$dateref;
$document = $this->typeActes['a'.substr($listCommandes[$i]->refDocument,0,2)].$depot;
}
$configuration = Zend_Registry::get('configuration');
$refFile = realpath($configuration->path->data).'/'.
$configuration->path->pdf.'/acte-'.
$listCommandes[$i]->siren.'-'.
trim($listCommandes[$i]->refDocument).'.pdf';
if (file_exists($refFile)) {
$document = '<a href="./fichier/pdf/acte-'.
$listCommandes[$i]->siren.'-'.
trim($listCommandes[$i]->refDocument).'.pdf'.
'" target="_blank">'.$document.'</a>';
}
$sirenLien = $this->view->url(array(
'controller' => 'pieces',
'action' => 'actes',
'siret' => $listCommandes[$i]->siren,
), null, true);
} elseif (preg_match('/^([0-9]{4}).*?$/', $listCommandes[$i]->refDocument, $matches)){
$document = 'Bilan de '.$matches[1];
$configuration = Zend_Registry::get('configuration');
$refFile = realpath($configuration->path->data).'/'.
$configuration->path->pdf.'/bilan-'.
$listCommandes[$i]->siren.'-'.
trim($listCommandes[$i]->refDocument).'.pdf';
if(file_exists($refFile)){
$document = '<a href="./fichier/pdf/bilan-'.
$listCommandes[$i]->siren.'-'.
trim($listCommandes[$i]->refDocument).'.pdf'.
'" target="_blank">'.$document.'</a>';
}
$sirenLien = $this->view->url(array(
'controller' => 'pieces',
'action' => 'bilans',
'siret' => $listCommandes[$i]->siren,
), null, true);
}
break;
}
$listCommandes[$i]->document = $document;
$listCommandes[$i]->documentLien = $documentLien;
$listCommandes[$i]->sirenLien = $sirenLien;
}
}
break; //Fin Gestion Greffes
}
$this->view->assign('commandes', $listCommandes);
$this->renderScript('dashboard/commandes-'.$type.'.phtml');
}
//Affichage des liens vers les différents types de commande
$this->view->assign('typesCommande', $typesCommande);
}
/**
* Modification de l'état d'une commande infogreffe
*/
public function commandesetatchangeAction()
{
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
$request = $this->getRequest();
$etat = $request->getParam('etat');
$idCommande = $request->getParam('idCommande');
$mode = $request->getParam('mode', 'C');
$type = $request->getParam('type');
require_once 'Scores/GestionCommandes.php';
$commande = new GestionCommande();
if ($type == 'kbis'){
echo $commande->changeEtatKbis($idCommande, $etat, $mode);
} elseif ($type == 'greffe') {
echo $commande->changeEtatGreffe($idCommande, $etat, $mode);
}
}
/**
* Affichage de la raison sociale à partir du siren
*/
public function rsAction()
{
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
$request = $this->getRequest();
$siren = $request->getParam('siren');
$ws = new WsScores();
$infos = $ws->getIdentite($siren);
if ($infos==false) {
echo 'Erreur';
} else {
echo $infos->Nom;
}
}
/**
* Génération automatique du courrier PDF / ODT
*/
public function courrierAction()
{
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
$request = $this->getRequest();
$numCommande = $request->getParam('commande');
require_once 'GenCourrier/GenCourrier.php';
$courrier = new GenCourrier($numCommande);
$courrier->computeOdt();
}
/**
* Liste les clients
*/
public function clientsAction()
{
$user = new Scores_Utilisateur();
if ( !$user->isSuperAdmin() ){
$this->_forward('perms', 'error');
}
$this->view->headScript()->appendFile('/themes/default/scripts/dashboard.js', 'text/javascript');
$ws = new WsScores();
$reponse = $ws->getListeClients();
$listeClients = $reponse->result->item;
$reponse = $ws->getListeDroits();
$wsdroits = $reponse->item;
$this->view->assign('ListeClients', $listeClients);
$this->view->assign('wsdroits', $wsdroits);
}
/**
* Edition ou création d'un nouveau client
*/
public function clientAction()
{
$user = new Scores_Utilisateur();
if ( !$user->isSuperAdmin() ) {
$this->_forward('perms', 'error');
}
$this->view->headScript()->appendFile('/libs/checkbox/jquery.checkbox.js', 'text/javascript');
$this->view->headLink()->appendStylesheet('/libs/checkbox/jquery.checkbox.css', 'all');
$request = $this->getRequest();
$idClient = $request->getParam('idClient', false);
$titre = 'CREATION NOUVEAU CLIENT';
$submitValue = 'Créer le client';
if ($idClient!==false){
$ws = new WsScores();
$reponse = $ws->getListeClients($idClient);
$InfosClient = $reponse->result->item[0];
$titre = 'EDITION CLIENT';
$submitValue = 'Modifier le client';
}
$ws = new WsScores();
$reponse = $ws->getListeDroits();
$wsdroits = $reponse->item;
$this->view->assign('idClient', $idClient);
$this->view->assign('InfosClient', $InfosClient);
$this->view->assign('titre', $titre);
$this->view->assign('submitValue', $submitValue);
$this->view->assign('wsdroits', $wsdroits);
}
/**
* Enregistre les informations sur le client
*/
public function clientsaveAction()
{
$request = $this->getRequest();
$infos = $request->getParams();
$ws = new WsScores();
$reponse = $ws->setClient($infos);
if ($reponse->error->errnum==1) {
$this->_forward('client', 'dashboard', null, array('idClient' => $infos['idClient']));
}
$this->view->assign('infos', $request->getParams());
}
public function usersAction()
{
$this->view->headLink()->appendStylesheet('/themes/default/styles/user.css', 'all');
$user = new Scores_Utilisateur();
$request = $this->getRequest();
$idClient = $request->getParam('idClient', $user->getIdClient());
if (!$user->isSuperAdmin() && !$user->isAdmin()) {
$this->renderScript('error/perms.phtml');
}
if ($user->isAdmin()){
$idClient = $user->getIdClient();
}
$ws = new WsScores();
$infos = $ws->getListeUtilisateurs($user->getLogin(), $idClient);
$utilisateurs = $infos->result->item;
$this->view->assign('utilisateurs', $utilisateurs);
$this->view->assign('idClient', $idClient);
}
public function userAction()
{
$this->view->headLink()
->appendStylesheet('/themes/default/styles/user.css', 'all')
->appendStylesheet('/themes/default/styles/form.css', 'all');
$this->view->headScript()->appendFile('/themes/default/scripts/user.js', 'text/javascript');
$request = $this->getRequest();
$op = $request->getParam('op');
$idClient = $request->getParam('idClient');
$login = $request->getParam('login');
switch($op) {
case 'new':
require_once 'Scores/WsScores.php';
$ws = new WsScores();
//Liste de tous les droits
$listeDroits = $ws->getListeDroits();
$droitsLib = array();
foreach($listeDroits->item as $droit) {
$droitsLib[strtoupper($droit->code)] = $droit->desc;
}
$this->view->assign('droitsLib', $droitsLib);
//Liste de toutes les préférences
$listePrefs = $ws->getListePrefs();
$prefsLib = array();
foreach($listePrefs->item as $pref) {
$prefsLib[strtoupper($pref->code)] = $pref->desc;
}
$this->view->assign('prefsLib', $prefsLib);
$options['idClient'] = $idClient;
$this->view->assign('options', $options);
//Customer informations
$reponse = $ws->getNextLogin($idClient);
$this->view->assign('loginNew', $reponse->result->racine);
$this->view->assign('droitsClients', explode(' ', strtolower($reponse->result->droitsClients)));
$this->view->assign('password', $this->randomPassword(10, 3));
$this->view->assign('action', 'new');
break;
case 'edit':
require_once 'Scores/WsScores.php';
$ws = new WsScores();
//Liste de tous les droits
$listeDroits = $ws->getListeDroits();
$droitsLib = array();
foreach($listeDroits->item as $droit) {
$droitsLib[strtoupper($droit->code)] = $droit->desc;
}
$this->view->assign('droitsLib', $droitsLib);
//Liste de toutes les préférences
$listePrefs = $ws->getListePrefs();
$prefsLib = array();
foreach($listePrefs->item as $pref) {
$prefsLib[strtoupper($pref->code)] = $pref->desc;
}
$this->view->assign('prefsLib', $prefsLib);
$options->idClient = $idClient;
$this->view->assign('options', $options);
//Customer informations
$reponse = $ws->getListeClients($idClient);
$InfosClient = $reponse->result->item[0];
$this->view->assign('loginNew', $InfosClient->racineLogin);
$this->view->assign('droitsClients', explode(' ', strtolower($InfosClient->droits)));
//User informations
$user = $ws->getUser($login);
$options = json_decode($user, true);
Zend_Registry::get('firebug')->info($user);
$this->view->assign('droits', explode(' ',$options['droits']));
$this->view->assign('prefs', explode(' ',$options['pref']));
$this->view->assign('options', $options);
$this->view->assign('action', 'update');
break;
case 'delete':
$action = 'delete';
require_once 'Scores/WsScores.php';
$ws = new WsScores();
$ws->setInfosLogin($login, $action);
//Redirect
$this->_redirect('/dashboard/users/idClient/'.$idClient);
break;
case 'enable':
$action = 'enable';
require_once 'Scores/WsScores.php';
$ws = new WsScores();
$ws->setInfosLogin($login, $action);
//Redirect
$this->_redirect('/dashboard/users/idClient/'.$idClient);
break;
case 'disable':
$action = 'disable';
require_once 'Scores/WsScores.php';
$ws = new WsScores();
$ws->setInfosLogin($login, $action);
//Redirect
$this->_redirect('/dashboard/users/idClient/'.$idClient);
break;
case 'save':
$action = 'new'; //update
break;
}
}
/**
* Affichage du formulaire pour l'envoi des fichiers concernant les nouveautées
*/
public function newformAction()
{
//Only the view
}
/**
* Réception du fichier des nouveautés et enregistrement des informations
*/
public function newuploadAction()
{
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
if ( isset($_FILES) && count($_FILES)==1 ) {
$config = new Zend_Config_Ini(APPLICATION_PATH . '/configs/configuration.ini', 'path');
$path = realpath($config->data).'/nouveautes';
if(!file_exists($path)) mkdir($path);
$tmp_name = $_FILES['fichier']['tmp_name'];
$n = $_FILES['fichier']['name'];
$name = uniqid('new');
$extValide = array('pdf');
$extension = strrchr($n,'.');
$extension = substr($extension,1);
//Vérifier l'extension du fichier
if(!in_array($extension, $extValide)){
echo "Extension de fichier incorrect !";
} elseif (move_uploaded_file($tmp_name, $path.'/'.$name.'.'.$extension)){
$request = $this->getRequest();
//Enregistrement des informations
$data = array(
'categorie' => $request->getParam('categorie'),
'intitule' => $request->getParam('intitule'),
'date' => $request->getParam('date'),
'fichier' => $name.'.'.$extension,
);
$new = new Application_Model_Nouveautes();
try {
$new->insert($data);
echo "Fichier enregistré";
} catch(Exception $e) {
echo "Erreur lors de l'enregistrement";
if ( file_exists($path.'/'.$name.'.'.$extension) ) unlink($path.'/'.$name.'.'.$extension);
}
} else {
echo "Erreur";
}
}
}
public function newprogressAction()
{
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
$request = $this->getRequest();
$key = $request->getParam('key', '');
if (!empty($key)) {
//$rep sera égal à false si la clef n'existe pas dans le cache apc
$rep = apc_fetch('upload_'.$key);
echo json_encode($rep);
}
}
}

View File

@ -1,23 +0,0 @@
<?php
class DebugController extends Zend_Controller_Action
{
public function init()
{
$this->view->headLink()->appendStylesheet('/themes/default/styles/giant.css', 'all');
$this->view->headScript()->appendFile('/themes/default/scripts/giant.js', 'text/javascript');
}
public function identiteAction()
{
$menu = array('Objet', 'Requete XML', 'Reponse XML');
$request = $this->getRequest();
$soap = $request->getParam('soap');
$this->view->resultat = $request->getParam('resultat');
$this->view->menu = $menu;
$this->view->requestXML = $soap->getLastRequest();
$this->view->responseXML = $soap->getLastResponse();
}
}

View File

@ -1,124 +0,0 @@
<?php
class DirigeantController extends Zend_Controller_Action
{
protected $siret;
protected $id;
public function init()
{
$request = $this->getRequest();
$this->siret = $request->getParam('siret');
$this->id = $request->getParam('id', 0);
require_once 'Scores/WsScores.php';
require_once 'Scores/SessionEntreprise.php';
require_once 'common/dates.php';
}
/**
* Forward
*/
public function indexAction()
{
$this->_forward('index', 'index');
}
/**
* Affichage de la liste des dirigeants
*/
public function listeAction()
{
$siren = substr($this->siret, 0, 9);
$this->view->headTitle()->append('Liste des dirigeants');
$this->view->headTitle()->append('Siret '.$this->siret);
$ws = new WsScores();
$infos = $ws->getDirigeants($siren);
if ($infos === false){
$this->_forward('soap', 'error');
}
$dirigeants = $infos->result->item;
$session = new SessionEntreprise($this->siret, $this->id);
$user = new Scores_Utilisateur();
if ($user->checkPerm('dirigeantsop')){
$href = $this->view->url(array('controller'=>'dirigeant', 'action'=>'op', 'siret'=>$this->siret));
$this->view->assign('dirigeantsop', $href);
}
$this->view->assign('siren', $siren);
$this->view->assign('siret', $this->siret);
$this->view->assign('raisonSociale', $session->getRaisonSociale());
$this->view->assign('dirigeants', $dirigeants);
$this->view->assign('exportObjet', $dirigeants);
$this->view->assign('AutrePage', $this->getRequest()->getParam('apage'));
$this->view->assign('surveillance', $user->checkPerm('survdirigeants'));
}
/**
* Affichage de l'historiques des dirigeants
*/
public function histoAction()
{
$siren = substr($this->siret, 0, 9);
$this->view->headTitle()->append('Historique des dirigeants');
$this->view->headTitle()->append('Siret '.$this->siret);
$ws = new WsScores();
$infos = $ws->getDirigeants($siren, true);
if ($infos === false){
$this->_forward('soap', 'error');
}
$dirigeants = $infos->result->item;
$session = new SessionEntreprise($this->siret, $this->id);
$this->view->assign('dirigeants', $dirigeants);
$this->view->assign('exportObjet', $dirigeants);
$this->view->assign('siren', $siren);
$this->view->assign('siret', $this->siret);
$this->view->assign('raisonSociale', $session->getRaisonSociale());
$this->view->assign('infos', $infos);
$user = new Scores_Utilisateur();
$this->view->assign('surveillance', $user->checkPerm('survdirigeants'));
}
public function opAction()
{
$siren = substr($this->siret, 0, 9);
$this->view->headTitle()->append('Liste des dirigeants opérationnels');
$this->view->headTitle()->append('Siret '.$this->siret);
$ws = new WsScores();
$infos = $ws->getDirigeantsOp($siren);
if ($infos === false){
$this->_forward('soap', 'error');
}
$dirigeants = $infos->item;
$session = new SessionEntreprise($this->siret, $this->id);
$this->view->assign('siren', $siren);
$this->view->assign('siret', $this->siret);
$this->view->assign('raisonSociale', $session->getRaisonSociale());
$this->view->assign('dirigeants', $dirigeants);
$this->view->assign('exportObjet', $dirigeants);
$this->view->assign('AutrePage', $this->getRequest()->getParam('apage'));
$user = new Scores_Utilisateur();
$this->view->assign('surveillance', $user->checkPerm('survdirigeants'));
}
}

View File

@ -1,91 +0,0 @@
<?php
class ErrorController extends Zend_Controller_Action
{
public function init(){}
public function errorAction()
{
$params = $this->getRequest()->getParams();
$unknow = array('MSOffice', '_vti_bin', 'crossdomain.xml');
if (in_array($params['controller'], $unknow)){
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
echo '';
} else {
$errors = $this->_getParam('error_handler');
switch ($errors->type) {
case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ROUTE:
case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_CONTROLLER:
case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ACTION:
// 404 error -- controller or action not found
$this->getResponse()->setHttpResponseCode(404);
$this->view->message = 'Page not found';
break;
default:
// application error
$this->getResponse()->setHttpResponseCode(500);
$this->view->message = 'Application error';
break;
}
$user = new Scores_Utilisateur();
//Envoyer les erreurs par mail
$message = '';
$message.= 'Erreur Applicative : ';
$message.= "\n";
$message.= 'Message : '.$errors->exception->getMessage();
$message.= "\n";
$message.= 'Utilisateur : '.$user->getLogin();
$message.= "\n";
$message.= "File :".$errors->exception->getFile().", Ligne : ".$errors->exception->getLine();
$message.= "\n";
$message.= "Detail :\n".$errors->exception->getTraceAsString();
$message.= "\n\n";
$message.= "Request Parameters :\n ".print_r($this->getRequest()->getParams(), true)."\n";
$message.= "Referer : ".$_SERVER['HTTP_REFERER']."\n";
$configuration = Zend_Registry::get('configuration');
require_once 'Scores/Mail.php';
$mail = new Mail();
$mail->setSubject('[ERREUR APPLICATIVE] - '.$configuration->server->name.' -'.date('Ymd'));
$mail->setBodyTexte($message);
$mail->setFrom('supportdev');
$mail->addToKey('supportdev');
$mail->send();
// Log exception, if logger available
if ($log = $this->getLog()) {
$log->crit($this->view->message, $errors->exception);
}
// conditionally display exceptions
if ($this->getInvokeArg('displayExceptions') == true) {
$this->view->exception = $errors->exception;
}
$this->view->request = $errors->request;
}
}
public function soapAction(){}
public function permsAction(){}
public function paramsAction(){}
public function getLog()
{
$bootstrap = $this->getInvokeArg('bootstrap');
if (!$bootstrap->hasPluginResource('Log')) {
return false;
}
$log = $bootstrap->getResource('Log');
return $log;
}
}

View File

@ -1,830 +0,0 @@
<?php
class EvaluationController extends Zend_Controller_Action
{
protected $siret = null;
protected $id = 0;
public function init()
{
$request = $this->getRequest();
$this->siret = $request->getParam('siret');
$this->id = $request->getParam('id', 0);
require_once 'common/dates.php';
require_once 'Scores/WsScores.php';
require_once 'Scores/SessionEntreprise.php';
require_once 'Scores/IdentiteEntreprise.php';
require_once 'Finance/RatiosData.php';
$this->view->headLink()
->appendStylesheet('/themes/default/styles/evaluation.css', 'all');
}
public function indexAction()
{
$this->_forward('entreprise', 'recherche');
}
/**
* Affichage d'une reglette représentant le score
*/
public function printscoresAction()
{
$this->_helper->layout()->disableLayout();
$request = $this->getRequest();
$score = strtolower($request->getParam('score'));
if( $score == 'indiscore' ){
$user = new Scores_Utilisateur();
switch($user->getTypeScore()) {
case '20': $score.='20'; break;
case '100':
default: $score.='100'; break;
}
}
$note = $request->getParam('note');
$bornes = array(
'conanh' => array( 'min' => -4.5 , 'max' => 16 ),
'afdcc2' => array( 'min' => 0 , 'max' => 5 ),
'afdcc1' => array( 'min' => -10 , 'max' => 10 ),
'z' => array( 'min' => -3 , 'max' => 3 ),
'indiscore100' => array( 'min' => 0 , 'max' => 100 ),
'indiscore20' => array( 'min' => 0 , 'max' => 20 ),
);
$note = round(($note - $bornes[$score]['min'])*100/($bornes[$score]['max'] - $bornes[$score]['min']));
if($note < 0) $note = 0;
if($note > 100) $note = 100;
$this->view->assign('note', $note);
$this->view->assign('min', $bornes[$score]['min']);
$this->view->assign('max', $bornes[$score]['max']);
}
/**
* IndiScore
*/
public function indiscoreAction()
{
$user = new Scores_Utilisateur();
if(!$user->checkPerm('INDISCORE') && !$user->checkPerm('INDISCOREP'))
$this->_forward('perms', 'error');
$request = $this->getRequest();
$autrePage = $request->getParam('apage');
//Récupération des informations
if (empty($autrePage)) {
$plus = false;
if ($user->checkPerm('indiscorep')){
$plus = true;
}
$ref = $request->getParam('ref', '');
$encours = $request->getParam('encours', 0);
$email = $request->getParam('email', '');
$ws = new WsScores();
$infos = $ws->getIndiScore(substr($this->siret, 0,9), 0, 1, $plus, $ref, $encours, $email);
if ($infos === false) $this->_forward('soap', 'error');
} else {
$infos = $this->getRequest()->getParam('infos');
}
$this->view->assign('siret', $this->siret);
$this->view->assign('typeScore', $user->getTypeScore());
$this->view->assign('indiscore', $infos);
$this->view->assign('AutrePage', $autrePage);
$this->view->assign('exportObjet', $infos);
$this->view->assign('aviscredit', $user->checkPerm('aviscredit'));
$this->view->assign('surveillance', $user->checkPerm('survscore'));
}
/**
* Rapport de synthese
*/
public function indiscore2Action()
{
$this->view->headScript()->appendFile('/themes/default/scripts/finance.js', 'text/javascript');
$user = new Scores_Utilisateur();
if(!$user->checkPerm('INDISCORE2') && !$user->checkPerm('INDISCORE2P'))
$this->_forward('perms', 'error');
$siren = substr($this->siret,0,9);
$ws = new WsScores();
$entreprise = new SessionEntreprise($this->siret, $this->id);
$identite = $ws->getIdentite($siren);
$indiscore = $ws->getIndiScore($siren);
$infos = $ws->getRatios($siren, 'indiscore2'); // @todo : vérifier la page
$score = array();
$tabRatio = array(
'r5' => array('total'=>'r5', 'total_info'=>'% ca', 'op' => 1000, 'titre'=>'CHIFFRE D\'AFFAIRES'),
'r16' => array('total'=>'r5', 'total_info'=>'% ca', 'op' => 1000, 'titre'=>'RESULTAT D\'EXPLOITATION'),
'r7' => array('total'=>'r5', 'total_info'=>'% ca', 'op' => 1000, 'titre'=>'RESULTAT COURANT'),
'r10' => array('total'=>'r5', 'total_info'=>'% ca', 'op' => 1000, 'titre'=>'RESULTAT NET'),
'r18' => array('total'=>'r22', 'total_info'=>'% bilan', 'op' => 1000, 'titre'=>'FONDS PROPRES'),
'r231' => array('total'=>'r22', 'total_info'=>'% bilan', 'op' => 1000, 'titre'=>'FONDS DE ROULEMENT'),
'r232' => array('total'=>'r22', 'total_info'=>'% bilan', 'op' => 1000, 'titre'=>'BESOIN EN FONDS DE ROULEMENT'),
'r249' => array('total'=>'', 'total_info'=>'', 'op' => 1000, 'titre'=>'TRESORERIE NETTE'),
'r20' => array('total'=>'r5', 'total_info'=>'% ca', 'op' => 1000, 'titre'=>'FRAIS FINANCIER'),
);
//Formattage des données
$typeBilan = 'N';
$ratiosData = new RatiosData($infos);
$nbBilanN = $ratiosData->getNbBilan('N');
$nbBilanC = $ratiosData->getNbBilan('C');
if ($nbBilanN!=0)
{
foreach($tabRatio as $idRatio => $valRatio){
$tabRatio[$idRatio]['comment'] = $ratiosData->wrapComment($idRatio);
}
$this->view->assign('tabRatio', $tabRatio);
$infosAnnee = $ratiosData->getBilansInfo($typeBilan);
$annees = array_keys($infosAnnee);
//On prend les 3 derniers bilans pour l'affichage
$nbMaxBilan = 3;
rsort($annees);
$annees = array_slice($annees, 0, $nbMaxBilan);
sort($annees);
$tabResult = array();
foreach($annees as $annee){
$data = array();
$dataEvol = array();
//Formatter les données
foreach($tabRatio as $idRatio => $valRatio){
$data[$idRatio] = $ratiosData->dRatio($typeBilan, $annee, $idRatio);
$dataTotal[$idRatio] = $ratiosData->dTotal($typeBilan, $annee, $idRatio, $valRatio['total']);
$dInfo[$idRatio] = $valRatio['total_info'];
}
$tabResult[] = array(
'dateCloture' => WDate::dateT('Ymd','d/m/Y',$annee),
'duree' => $infosAnnee[$annee]->duree.' Mois',
'ratio' => $data,
'total' => $dataTotal,
'info' => $dInfo,
);
}
$this->view->assign('tabResult', $tabResult);
}
$this->view->assign('tabRatio', $tabRatio);
/*
Correction pour indiscore seule
$indiscore->Siege;
$indiscore->SiretSiege;
$indiscore->NumRC;
*/
$indiscore->SiretSiege = $identite->SiretSiege;
$identite = new IdentiteEntreprise($identite);
//Définition des blocks
$blocks = array(
'Siret',
'SiretSiege',
'NumRC',
'Actif',
'RaisonSociale',
'FormeJuridique',
'DateImmat',
'DateCreaEt',
'Adresse',
'ActiviteEn',
'Naf4',
'OrigineFond',
'TypeExploitation',
'Saisonnalite',
'Capital',
'ChiffreAffaire',
);
$dBlock = array();
foreach ($blocks as $item) {
$display = array(
'label' => method_exists($identite, 'get'.$item.'Label') ? $identite->{'get'.$item.'Label'}() : '',
'texte' => method_exists($identite, 'get'.$item.'Texte') ? $identite->{'get'.$item.'Texte'}() : '',
'titre' => method_exists($identite, 'get'.$item.'Titre') ? $identite->{'get'.$item.'Titre'}() : '',
);
$dBlock[$item] = $display;
}
$this->view->assign('dBlock', $dBlock);
$dateRadiation = '';
if(isset($indiscore->DateRadiation) && $indiscore->DateRadiation!='' && $indiscore->DateRadiation!='0000-00-00')
$this->view->assign('dateRadiation', WDate::dateT('Ymd', 'd/m/Y', str_replace('-','',$indiscore->DateRadiation)));
foreach($indiscore->scores as $name => $sc){
if($name == 'ConanH')
$score[$name] = array($sc, 'Score Conan Holder');
if($name == 'Afdcc2')
$score[$name] = array($sc, 'Score Afdcc 2');
if($name == 'Z')
$score[$name] = array($sc, 'Score Z');
}
$typeScore = $user->getTypeScore();
switch($typeScore) {
case '20':
$maxIndiscore = $typeScore;
$score['Indiscore'] = array($indiscore->Indiscore20, 'IndiScore');
break;
case '100':
default:
$maxIndiscore = empty($typeScore)? '100' : $typeScore;
$score['Indiscore'] = array($indiscore->Indiscore, 'IndiScore');
break;
}
$score['Indiscore'] = array($indiscore->Indiscore20, 'IndiScore');
$this->view->assign('siret', $this->siret);
$this->view->assign('id', $this->id);
$this->view->assign('siren', $siren);
$this->view->assign('encours', $indiscore->encours);
$this->view->assign('TendanceIndiscore', $indiscore->TendanceIndiscore);
$this->view->assign('SituationJuridique', $indiscore->SituationJuridique);
$this->view->assign('paiement', $indiscore->infoPaiement);
$this->view->assign('scores', $score);
$this->view->assign('bilanReference', $bilanReference);
}
/**
* Rapport complet
*/
public function indiscore3Action()
{
$this->view->headLink()->appendStylesheet('/themes/default/styles/comment.css', 'all');
$this->view->headScript()->appendFile('/themes/default/scripts/evaluation.js', 'text/javascript');
$user = new Scores_Utilisateur();
if(!$user->checkPerm('INDISCORE3') && !$user->checkPerm('INDISCORE3P'))
$this->_forward('perms', 'error');
// Lien pour le rapport personnalisé
if ($user->getIdClient() == '110' || $user->checkModeEdition()) {
$this->view->assign('customRapport', $this->view->url(array(
'controller'=>'evaluation',
'action'=>'customindiscore3',
'siret'=>$this->siret,
'id'=>$this->id)
));
}
$sessionEntreprise = new SessionEntreprise($this->siret, $this->id);
$ws = new WsScores();
$siren = substr($this->siret,0,9);
$plus = false;
if ($user->checkPerm('indiscore3p')){
$plus = true;
}
$request = $this->getRequest();
$ref = $request->getParam('ref', '');
$encours = $request->getParam('encours', 0);
$email = $request->getParam('email', '');
$infos = $ws->getRapport($siren, 3, 0, $plus, $ref, $encours, $email);
$this->view->assign('Identite', $infos->Identite);
$this->view->assign('Dirigeants', $infos->Dirigeants);
$this->view->assign('Liens', $infos->Liens);
$this->view->assign('Annonces', $infos->Annonces);
$this->view->assign('Ratios', $infos->Ratios);
$this->view->assign('Indiscore', $infos->Indiscore);
require_once 'Scores/RapportComment.php';
$rapportComment = new RapportComment($siren, $this->id, $infos->Indiscore->tabCommentaires->item, $infos->Ratios, $infos->Indiscore->tabVariables);
$this->view->assign('comment',$rapportComment->out());
$this->view->assign('siret', $this->siret);
$this->view->assign('id', $this->id);
$this->view->assign('siren', $siren);
$this->view->assign('raisonSociale', $sessionEntreprise->getRaisonSociale());
$this->view->assign('exportObjet', $infos);
}
/**
* Génération de rapport personnalisé
* @todo : à améliorer
*/
public function customindiscore3Action()
{
$this->_helper->layout()->disableLayout();
$request = $this->getRequest();
$upload = $request->getParam('upload', null);
$user = new Scores_Utilisateur();
if (empty($upload)){
$adresse = array();
if ($user->checkModeEdition()){
$adresse[] = 'Order to Cash';
$adresse[] = '70 AVENUE DE LA MARNE ';
$adresse[] = '92600 ASNIERES SUR SEINE';
$color1 = '#DFDB00';
$color2 = '#EFED9A';
$background = "background-image:url('/themes/default/images/customrapport/logo_ordertocash.jpg');background-repeat:no-repeat;background-position:center";
} else {
$adresse[] = 'Financement Entreprise';
$adresse[] = '16 RUE SENAC DE MEILHAN';
$adresse[] = '17000 LA ROCHELLE';
$color1 = '#6699FF';
$color2 = '##66CCFF';
$background = null;
}
$this->view->assign('adresse', $adresse);
$this->view->assign('color1', $color1);
$this->view->assign('color2', $color2);
$this->view->assign('background', $background);
$this->view->assign('siret', $this->siret);
$this->view->assign('id', $this->id);
} else {
$this->_helper->viewRenderer->setNoRender(true);
$couleurh1 = $request->getParam('couleurh1', null);
$couleurh2 = $request->getParam('couleurh2', null);
$texth1 = $request->getParam('texth1', null);
$texth2 = $request->getParam('texth2', null);
$societe_name = $request->getParam('societe_name', null);
$adresse = $request->getParam('adresse', null);
$logo_background = $request->getParam('logo_background', null);
$siren = substr($this->siret, 0, 9);
if ($this->id!=0){
$file = 'evaluation-indiscore3-'.$this->siret.'-'.$this->id.'.html';
} else {
$file = 'evaluation-indiscore3-'.$this->siret.'.html';
}
if (file_exists(APPLICATION_PATH.'/../cache/pages/'.$file))
{
$doc = new DOMDocument();
$doc->preserveWhiteSpace = true;
@$doc->loadHTMLFile(APPLICATION_PATH.'/../cache/pages/'.$file);
//Générer style particulier pour le rapport
$style.= 'body { background-color:#ffffff; }';
$style.= '#customRapport { display:none; }';
$style.= '#center h1 {background-color:'.$couleurh1.';color:'.$texth1.'}';
if($logo_background) {
$style.= '#center {background-image:url(./themes/default/images/customrapport/logo_ordertocash.jpg);background-repeat:repeat-y}';
}
$style.= '#center h2 {background-color:'.$couleurh2.';color:'.$texth2.'}';
$styleDom = $doc->createElement('style', $style);
//Ajout information
$contentDom = $doc->createElement('div');
if(!$user->checkModeEdition()) {
$element = $doc->createElement('img');
$element->setAttribute('src', './themes/default/images/customrapport/logo_ordertocash.jpg');
$element->setAttribute('width', '12%');
} else {
$element = $doc->createElement('img');
$element->setAttribute('src', './themes/default/images/customrapport/logo_ordertocash.jpg');
$element->setAttribute('width', '12%');
}
$div = $doc->createElement('div');
$div->setAttribute('style', "clear:both;");
$div->appendChild($element);
$contentDom->appendChild($div);
$i = 0;
foreach($adresse as $item){
$element = $doc->createElement('span', $item);
$contentDom->appendChild($element);
$element = $doc->createElement('br');
$contentDom->appendChild($element);
$i++;
}
$element = $doc->createElement('center', $societe_name.' Enquête Financière');
$element->setAttribute('style', 'font-size:17px');
$contentDom->appendChild($element);
if(!$user->checkModeEdition()){
$element = $doc->createElement('span', "Les équipes d'Order To Cash se tiennent à votre disposition pour vous assister dans l'interprétation de ces données au 01 47 90 94 31 ou par mail à l'adresse suivante : contact@ordertocash.fr");
$contentDom->appendChild($element);
}
$ajout = $doc->createElement('div');
$ajout->appendChild($styleDom);
$ajout->appendChild($contentDom);
//Après <div id="center"> on insére le contenu
$body = $doc->getElementsByTagName('body')->item(0);
$div = $body->getElementsByTagName('div');
foreach($div as $item){
if ($item->hasAttribute('id') && $item->getAttribute('id') == 'center'){
break;
}
}
$item->parentNode->insertBefore($ajout, $item);
$xml = $doc->saveXML();
$outfile = APPLICATION_PATH.'/../cache/pages/p'.$user->getIdClient().'-'.$file;
file_put_contents($outfile, $xml);
//Génération du pdf
require_once 'wkhtmltopdf/wkhtmltopdf.php';
$wkhtmltopdf = new wkhtmltopdf();
$wkhtmltopdf->setOptions('footer-right', 'Page [page] sur [toPage]');
$wkhtmltopdf->setOptions('header-right', date('d/m/Y H:i:s'));
$pdfFile = $wkhtmltopdf->exec($outfile);
if (file_exists($pdfFile)){
echo '<center>Votre fichier est prêt pour être téléchargé !<br />' .
'<a target="_blank" href="'.$this->view->url(
array('controller'=>'fichier',
'action'=>'customrapport',
'fichier'=>basename($pdfFile)), null, true).'">Télécharger</a></center>';
} else {
echo "Erreur lors de la génération du PDF.";
}
} else {
echo "Erreur fichier non présent !";
}
}
}
/**
* Enquete commerciale
* @todo : Vérifier l'enregistrement
*/
public function enquetecAction()
{
$this->view->headScript()->appendFile('/themes/default/scripts/enquetec.js', 'text/javascript');
//isset($_REQUEST['pays']) ? $pays=$_REQUEST['pays'] : $pays='' ;
$commandeEnquete = false;
$request = $this->getRequest();
if ($request->isPost()){
$InfoUser = $request->getParam('InfoUser');
$InfoEnq = $request->getParam('InfoEnq');
//Affichage de la demande
//Vérification des informations
$formError = false;
$fields = array();
//Info utilisateur obligatoire :
if($InfoUser['Identite']==''){ $fields[] ='Votre Identite'; $formError=true;}
if($InfoUser['Tel']==''){ $fields[] ='Votre Téléphone'; $formError=true;}
if($InfoUser['Email']==''){ $fields[] ='Votre Email'; $formError=true;}
//Info entreprise obligatoire :
if( isset($InfoEnq['Type']) && $InfoEnq['Type']==''){ $fields[] ='Choix du type d\'enquête'; $formError=true;}
if($InfoEnq['PrecisionsChoix']=='1'){
if($InfoEnq['Precisions']['Motif']==''){ $fields[] ='Mofif de la demande'; $formError=true;}
}elseif($InfoEnq['PrecisionsChoix']=='3' || $InfoEnq['PrecisionsChoix']=='4'){
if($InfoEnq['Precisions']['MontantCA']==''){ $fields[] ='Précisions de la demande'; $formError=true;}
}elseif($InfoEnq['PrecisionsChoix']=='5'){
if($InfoEnq['Precisions']['Autre']==''){ $fields[] ='Précisions de la demande'; $formError=true;}
}
if(isset($InfoEnq['ImpayeesChoix']) && $InfoEnq['ImpayeesChoix']=='oui' ){
if($InfoEnq['Impayees']['Montant']=='' || $InfoEnq['Impayees']['Nombre']=='' || $InfoEnq['Impayees']['Date']==''){ $fields[] ='Précisions sur les impayées'; $formError=true;}
}
if(isset($InfoEnq['RetardPaiementChoix']) && $InfoEnq['RetardPaiementChoix']=='oui' ){
if($InfoEnq['RetardPaiement']['Montant']=='' || $InfoEnq['Nombre']=='' || $InfoEnq['RetardPaiement']['Date']==''){ $fields[] ='Précisions sur le retarde de paiement'; $formError=true;}
}
if(isset($_REQUEST['InfoEnq']['LitigeChoix']) && $_REQUEST['InfoEnq']['LitigeChoix']=='oui' ){
if($_REQUEST['InfoEnq']['Litige']['Precisions']=='' || $_REQUEST['InfoEnq']['Litige']['Precisions']==''){ $fields[] ='Précisions sur le litige'; $formError=TRUE;}
}
if ($formError==true){
$message = '<font color="red">';
$message.= 'Veuillez remplir les champs suivants : ';
$message.= join(', ', $fields);
$message.= '</font>';
}else{
$InfoDemande = $InfoUser;
$siren = $InfoEnq['Siren'];
unset($InfoEnq['Siren']);
//Suppression et assigation des valeurs pour le webservice
if($InfoEnq['PrecisionsChoix'] = 1){
$InfoEnq['Precisions']['Type'] = "Enquête sur un client (contrôle crédit)";
unset($InfoEnq['PrecisionsChoix']);
}elseif($InfoEnq['PrecisionsChoix']==2){
$InfoEnq['Precisions']['Type'] = "Enquête sur un prospect (ouverture de compte)";
unset($InfoEnq['PrecisionsChoix']);
}elseif($InfoEnq['PrecisionsChoix']==3){
$InfoEnq['Precisions']['Type'] = "Enquête sur un fournisseur stratégique";
unset($InfoEnq['PrecisionsChoix']);
}elseif($InfoEnq['PrecisionsChoix']==4){
$InfoEnq['Precisions']['Type'] = "Enquête sur un fournisseur non stratégique";
unset($InfoEnq['PrecisionsChoix']);
}elseif($InfoEnq['PrecisionsChoix']==5){
$InfoEnq['Precisions']['Type'] = "Autre type d'enquête (Précisez...)";
unset($InfoEnq['PrecisionsChoix']);
}
$ws = new WsScore();
$result = $ws->commandeEnquete($siren, $InfoEnq, $InfoDemande);
if ($result === false) {
$this->_forward('soap', 'error');
} else {
$this->view->assign('annee', substr($result->dateCommande,0,4));
$this->view->assign('mois', substr($result->dateCommande,4,2));
$this->view->assign('jour', substr($result->dateCommande,6,2));
$this->view->assign('heure', substr($result->dateCommande,8,2));
$this->view->assign('minutes', substr($result->dateCommande,10,2));
$this->view->assign('ref', substr($result->refCmde,1));
$this->view->assign('siren', $result->siren);
$commandeEnquete = true;
}
$this->view->assign('commandeEnquete', $commandeEnquete);
}
$this->view->assign('formError', $formError);
$this->view->assign('message', $message);
$this->view->assign('InfoUser', $InfoUser);
$this->view->assign('InfoEnq', $InfoEnq);
}
if ($commandeEnquete == false) {
$ws = new WsScores();
$infosEntrep = $ws->getIdentite($this->siret, $this->id);
$this->view->assign('Etab', $infosEntrep);
$user = new Scores_Utilisateur();
$this->view->assign('user', $user);
}
$this->view->assign('commandeEnquete', $commandeEnquete);
}
public function aviscreditAction()
{
$commande = false;
$request = $this->getRequest();
//Reception des données du formulaire
if ($request->isPost())
{
$InfoUser = $request->getParam('InfoUser');
$InfoEnq = $request->getParam('InfoEnq');
$formError = false;
$fields = array();
//Info utilisateur obligatoire :
if($InfoUser['Identite']==''){
$fields[] ='Votre Identite'; $formError=true;
}
if($InfoUser['Tel']==''){
$fields[] ='Votre Téléphone'; $formError=true;
}
if($InfoUser['Email']==''){
$fields[] ='Votre Email'; $formError=true;
}
//Info entreprise obligatoire :
if( isset($InfoEnq['Type']) && $InfoEnq['Type']==''){
$fields[] ='Choix du type d\'enquête'; $formError=true;
}
if(isset($InfoEnq['ImpayeesChoix']) && $InfoEnq['ImpayeesChoix']=='oui' ){
if($InfoEnq['Impayees']['Montant']=='' || $InfoEnq['Impayees']['Nombre']=='' || $InfoEnq['Impayees']['Date']==''){
$fields[] ='Précisions sur les impayées'; $formError=true;
}
}
if(isset($InfoEnq['RetardPaiementChoix']) && $InfoEnq['RetardPaiementChoix']=='oui' ){
if($InfoEnq['RetardPaiement']['Montant']=='' || $InfoEnq['Nombre']=='' || $InfoEnq['RetardPaiement']['Date']==''){
$fields[] ='Précisions sur le retard de paiement'; $formError=true;
}
}
if(isset($_REQUEST['InfoEnq']['LitigeChoix']) && $_REQUEST['InfoEnq']['LitigeChoix']=='oui' ){
if($_REQUEST['InfoEnq']['Litige']['Precisions']=='' || $_REQUEST['InfoEnq']['Litige']['Precisions']==''){
$fields[] ='Précisions sur le litige'; $formError=TRUE;
}
}
//Envoi du mail formatté
if ( $formError==true )
{
$message = '<font color="red">';
$message.= 'Veuillez remplir les champs suivants : ';
$message.= join(', ', $fields);
$message.= '</font>';
$this->view->assign('message', $message);
}
else
{
$sujet = "Demande d'avis personnalisé";
$texte = "<pre>".print_r($InfoUser, 1)."</pre>".
"<pre>".print_r($InfoEnq, 1)."</pre>";
require_once 'Scores/Mail.php';
$mail = new Mail();
$mail->setFrom('production');
$mail->addToKey('support');
$mail->setSubject($sujet);
$mail->setBodyHtml($texte);
if ($mail->send()) {
$commande = true;
}
}
$this->view->assign('commande', $commande);
$this->view->assign('formError', $formError);
$this->view->assign('message', $message);
$this->view->assign('InfoUser', $InfoUser);
$this->view->assign('InfoEnq', $InfoEnq);
$this->view->assign('siren', substr($this->siret, 0,9));
}
//Affichage du formulaire
if ($commande == false) {
$ws = new WsScores();
$infosEntrep = $ws->getIdentite($this->siret, $this->id);
$this->view->assign('Etab', $infosEntrep);
$user = new Scores_Utilisateur();
$this->view->assign('user', $user);
}
}
/**
* Affichage des informations de scoring creditsafe
*/
public function scoringAction()
{
$user = new Scores_Utilisateur();
if(!$user->checkModeEdition() or !$user->checkPerm('SCORECSF'))
$this->render('error/perms', null, 'error');
require_once 'Evaluation/DomDocument2.lib.php';
require_once 'common/curl.php';
define('CREDITSAFE_WS_URL', 'https://www.creditsafe.fr/getdata/service/CSFRServices.asmx');
define('CREDITSAFE_WS_URI', 'https://www.creditsafe.fr/getdata/service/');
define('CREDITSAFE_WS_USER', 'scores_decisions');
define('CREDITSAFE_WS_PASS', 'yoann1306');
define('CREDITSAFE_WS_REF', 'ref');
/**
* L'Url du WSDL est bonne simplament le formatage des données a changés, il faut respecter les données !
* comparer les exemples donnés.
*
*/
$req='<xmlrequest>'.
'<header>'.
'<username>'.CREDITSAFE_WS_USER.'</username>'.
'<password>'.CREDITSAFE_WS_PASS.'</password>'.
//'<operation>getcompanyinformation</operation>'.
'<operation>getratinglimit</operation>'.
'<country>FR</country>'.
'<language>FR</language>'.
'<chargereference>'.CREDITSAFE_WS_REF.'</chargereference>'.
'</header>'.
'<body>'.
//'<package>standard</package>'.
'<package>ratinglimit</package>'.
"<companynumber>".$this->siret."</companynumber>".
'</body>'.
'</xmlrequest>';
$success = true;
$date = date('Ymd');
$url = 'https://www.creditsafe.fr/getdata/service/CSFRServices.asmx/GetData?RequestXmlStr='.$req;
$referer = $cookie = '';
$page = getUrl($url, $cookie, '', $referer, false, '', '');
$referer = $url;
$file = APPLICATION_PATH.'/../../data/creditsafe/'.$this->siret.'.xml';
$xml = html_entity_decode($page['body'], ENT_QUOTES, 'UTF-8');
$dom_object = new DomDocument2();
$ws = new WsScores();
if(!file_exists($file)) {
file_put_contents($file, $xml); // Ne pas oublier de metre les bons droits sur le dossier.
$ws->setLog('scorecsf', $this->siret);
} else {
$ws->setLog('scorecsf', $this->siret, 0, 'local');
}
$dom_object->load($file);
$companyname = $dom_object->getValueFromTag('companyname');
$rating = $dom_object->getValueFromTag('rating');
$ratingdesc1 = str_replace('?',"'",$dom_object->getValueFromTag('ratingdesc1'));
$ratingdesc2 = str_replace('?',"'",$dom_object->getValueFromTag('ratingdesc2'));
$creditlimit = $dom_object->getValueFromTag('creditlimit');
$libelle = '';
if (strtoupper($creditlimit)<>strtolower($creditlimit) || $creditlimit=='')
$strCreditlimit = $creditlimit;
else
$strCreditlimit = number_format($creditlimit,null,null,' '). ' &euro;';
if ($rating >= 40){
$fontColor = 'green';
$imgFeux = '<img src="/themes/default/images/scoring/feux_vert.png"/>';
if ($rating>=71) $libelle='Très bonne cote de crédit/solvabilité';
elseif ($rating>=51) $libelle='Bonne cote de crédit/solvabilité';
else $libelle = 'Solvable';
} elseif ($rating >= 20) {
$fontColor = 'yellow';//#f2be2c';
$imgFeux = '<img src="/themes/default/images/scoring/feux_orange.png"/>';
$libelle = 'Précautions recommandées';
} elseif (strtoupper($rating) <> strtolower($rating)) {
$fontColor = 'black';
$imgFeux='&nbsp;';
}
elseif ($rating == '') {
$fontColor = 'black';
$imgFeux = '&nbsp;';
}
else {
$fontColor = 'red';
$imgFeux = '<img src="/themes/default/images/scoring/feux_rouge.png"/>';
if ($rating == 0) $libelle='Entreprise en situation de défaillance et ayant un très fort risque de radiation';
else $libelle = 'Avertissement - Crédit à votre discrétion';
}
/** Assigne les valeur a la vue **/
if (!empty($companyname)) {
$this->view->raisonSociale = $companyname;
} else {
$session = new SessionEntreprise($this->siret, $this->id);
$this->view->raisonSociale = $session->getRaisonSociale();
}
$this->view->emailCommande = $user->getEmail();
$this->view->id = $this->id;
$this->view->siren = substr($this->siret, 0,9);
$this->view->imgFeux = $imgFeux;
$this->view->fontColor = $fontColor;
$this->view->rating = $rating;
$this->view->libelle = $libelle;
$this->view->strCreditlimit = $strCreditlimit;
}
/**
* Commande de scoring partenaire creditsafe
*/
public function scoringcommandeAction()
{
if ($this->getRequest()->isPost()){
$request = $this->getRequest();
$email = $request->getParam('email', '');
$siren = $request->getParam('siren', '');
if (preg_match('#^[\w.-]+@[\w.-]+\.[a-zA-Z]{2,5}$#',$email)) {
$message = 'Entreprise mise sous surveillance scoring partenaire !';
require_once 'Scores/Mail.php';
$mail = new Mail();
$mail->setSubject("Demande de surveillance score CreditSafe pour $siren à ".$email);
$user = new Scores_Utilisateur();
$login = $user->getLogin();
$texte = 'REQUEST='.EOL.print_r($request->getParams(),true).EOL.
'Utilisateur='.$login;
$mail->setBodyTexte($texte);
$mail->setFrom('contact');
$mail->addToKey('contact');
$mail->send();
$configuration = Zend_Registry::get('configuration');
$path = $configuration->path->data.'/'.$configuration->path->log;
$fp=fopen($path.'/surveillance_scf.csv', 'a');
fwrite($fp, date('Y/m/d H:i:s').";$siren;".$email.';'.$login.';'.$user->getEmail().';'.$user->getIpAddress()."\n");
fclose($fp);
} else {
$message = "ERREUR : Veuillez saisir une adresse email valide pour la mise sous surveillance";
}
$this->view->assign('message', $message);
}
}
}

View File

@ -1,410 +0,0 @@
<?php
class FichierController extends Zend_Controller_Action
{
public function init()
{
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
}
public function indexAction()
{
$request = $this->getRequest();
print_r($request->getParams());
exit;
}
/**
* Gestion du chargement des logos
*/
public function logoAction()
{
$file = $this->getRequest()->getParam('fichier');
$explode = explode('.', $file);
switch ($explode[1]) {
case 'png' : $content_type = 'image/png'; break;
case 'gif' : $content_type = 'image/gif'; break;
case 'jpeg':
case 'jpg' : $content_type = 'image/jpeg'; break;
}
$configuration = Zend_Registry::get('configuration');
$path = realpath($configuration->path->data).'/'.$configuration->path->logos;
if ( file_exists($path.'/'.$file) ) {
header('Content-Transfer-Encoding: none');
header('Content-type: ' . $content_type.'');
header('Content-Length: ' . filesize($path.'/'.$file));
header('Content-MD5: ' . base64_encode(md5_file($path.'/'.$file)));
header('Content-Disposition: filename="' . basename($path.'/'.$file) . '"');
header('Cache-Control: private, max-age=0, must-revalidate');
header('Pragma: public');
ini_set('zlib.output_compression', '0');
echo file_get_contents($path.'/'.$file);
} else {
echo 'Impossible de charger le logo.';
}
exit;
}
/**
* Gestion du chargement des images du cache
*/
public function imgcacheAction()
{
$content_type = 'image/png';
$path = APPLICATION_PATH.'/../cache/pages/imgcache/';
$file = $this->getRequest()->getParam('fichier');
if ( file_exists($path.$file) ) {
header('Content-Transfer-Encoding: none');
header('Content-type: ' . $content_type.'');
header('Content-Length: ' . filesize($path.$file));
header('Content-MD5: ' . base64_encode(md5_file($path.$file)));
header('Content-Disposition: filename="' . basename($path.$file) . '"');
header('Cache-Control: private, max-age=0, must-revalidate');
header('Pragma: public');
ini_set('zlib.output_compression', '0');
echo file_get_contents($path.$file);
} else {
echo 'Impossible de charger le fichier.';
}
}
/**
* Gestion du chargement des fichiers des marques
*/
public function marqueAction()
{
$configuration = Zend_Registry::get('configuration');
$directory = realpath($configuration->path->data).'/'.$configuration->path->marques;
$file = $this->getRequest()->getParam('fichier');
//On affiche le fichier en vérifiant qu'il existe
if(file_exists($directory.'/'.$file) && filesize($directory.'/'.$file)>0) {
//On affiche le fichier
header("Pragma: public");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: must-revalidate");
header("Content-type: application/pdf");
header("Content-Disposition: inline; filename=\"$file\"");
print file_get_contents($directory.'/'.$file);
}else{
echo "Erreur lors de l'affichage du fichier.";
}
}
/**
* Gestion des fichiers Actes et Bilans
*/
public function pdfAction()
{
$configuration = Zend_Registry::get('configuration');
$directory = realpath($configuration->path->data).'/'.$configuration->path->pdf;
$file = $this->getRequest()->getParam('fichier');
$output_file = $directory.'/'.$file;
if (file_exists($output_file) && filesize($output_file)>0) {
$content_type = 'application/pdf';
header('Content-type: '.$content_type.'');
header('Content-Length: '.filesize($output_file));
header('Content-MD5: '.base64_encode(md5_file($output_file)));
header('Content-Disposition: inline; filename="'.basename($output_file).'"');
header('Cache-Control: private, max-age=0, must-revalidate');
header('Pragma: public');
ini_set('zlib.output_compression','0');
echo file_get_contents($output_file);
} else {
echo "Erreur lors de l'affichage du fichier.";
}
}
/**
* Gestion des fichiers Actes et Bilans
*/
public function pdfassociationAction()
{
$configuration = Zend_Registry::get('configuration');
$directory = realpath($configuration->path->data).'/association';
$file = $this->getRequest()->getParam('fichier');
$type = $this->getRequest()->getParam('type');
$output_file = $directory.'/'.$type.'/'.$file;
if (file_exists($output_file) && filesize($output_file)>0) {
$content_type = 'application/pdf';
header('Content-type: '.$content_type.'');
header('Content-Length: '.filesize($output_file));
header('Content-MD5: '.base64_encode(md5_file($output_file)));
header('Content-Disposition: inline; filename="'.basename($output_file).'"');
header('Cache-Control: private, max-age=0, must-revalidate');
header('Pragma: public');
ini_set('zlib.output_compression','0');
echo file_get_contents($output_file);
} else {
echo "Erreur lors de l'affichage du fichier.";
}
}
/**
* Gestion des liasses au formats excel
*/
public function liasseAction()
{
$file = $this->getRequest()->getParam('fichier');
$content_type = 'application/vnd.ms-excel';
$path = APPLICATION_PATH.'/../cache/liasse/';
//Envoi du fichier sur la sortie standard
if ( file_exists($path.$file) ) {
header('Content-Transfer-Encoding: none');
header('Content-type: ' . $content_type.'');
header('Content-Length: ' . filesize($path.$file));
header('Content-MD5: ' . base64_encode(md5_file($path.$file)));
header('Content-Disposition: filename="' . basename($path.$file) . '"');
header('Cache-Control: private, max-age=0, must-revalidate');
header('Pragma: public');
ini_set('zlib.output_compression', '0');
echo file_get_contents($path.$file);
} else {
echo 'Impossible de charger le fichier.';
}
}
/**
* Gestion des log de consommation
*/
public function consommationAction()
{
$file = $this->getRequest()->getParam('fichier');
$content_type = 'application/csv-tab-delimited-table';
$path = APPLICATION_PATH.'/../cache/consommation/';
//Envoi du fichier sur la sortie standard
if ( file_exists($path.$file) ) {
header('Content-Transfer-Encoding: none');
header('Content-type: ' . $content_type.'');
header('Content-Length: ' . filesize($path.$file));
header('Content-MD5: ' . base64_encode(md5_file($path.$file)));
header('Content-Disposition: filename="' . basename($path.$file) . '"');
header('Cache-Control: private, max-age=0, must-revalidate');
header('Pragma: public');
ini_set('zlib.output_compression', '0');
echo file_get_contents($path.$file);
} else {
echo 'Impossible de charger le fichier.';
}
}
/**
* Export du portefeuille au format CSV
*/
public function portefeuilleAction()
{
$file = $this->getRequest()->getParam('fichier');
$content_type = 'application/csv-tab-delimited-table';
$path = APPLICATION_PATH.'/../cache/surveillance/';
//Envoi du fichier sur la sortie standard
if ( file_exists($path.$file) ) {
header('Content-Transfer-Encoding: none');
header('Content-type: ' . $content_type.'');
header('Content-Length: ' . filesize($path.$file));
header('Content-MD5: ' . base64_encode(md5_file($path.$file)));
header('Content-Disposition: filename="' . basename($path.$file) . '"');
header('Cache-Control: private, max-age=0, must-revalidate');
header('Pragma: public');
ini_set('zlib.output_compression', '0');
echo file_get_contents($path.$file);
} else {
echo 'Impossible de charger le fichier.';
}
}
/**
* Export de la liste des surveillances au format CSV
*/
public function surveillanceAction()
{
$file = $this->getRequest()->getParam('fichier');
$content_type = 'application/csv-tab-delimited-table';
$path = APPLICATION_PATH.'/../cache/surveillance/';
//Envoi du fichier sur la sortie standard
if ( file_exists($path.$file) ) {
header('Content-Transfer-Encoding: none');
header('Content-type: ' . $content_type.'');
header('Content-Length: ' . filesize($path.$file));
header('Content-MD5: ' . base64_encode(md5_file($path.$file)));
header('Content-Disposition: filename="' . basename($path.$file) . '"');
header('Cache-Control: private, max-age=0, must-revalidate');
header('Pragma: public');
ini_set('zlib.output_compression', '0');
echo file_get_contents($path.$file);
} else {
echo 'Impossible de charger le fichier.';
}
}
/**
* Gestion des fichiers bilan saisie par les clients
*/
public function bilanclientAction()
{
$configuration = Zend_Registry::get('configuration');
$directory = realpath($configuration->path->data).'/bilanclient';
$file = $this->getRequest()->getParam('fichier');
$output_file = $directory.'/'.$file;
if (file_exists($output_file) && filesize($output_file)>0) {
$explode = explode('.', $output_file);
switch ($explode[1]) {
case 'pdf' : $content_type = 'application/pdf'; break;
case 'tiff' : $content_type = 'image/tiff'; break;
}
header('Content-type: '.$content_type.'');
header('Content-Length: '.filesize($output_file));
header('Content-MD5: '.base64_encode(md5_file($output_file)));
header('Content-Disposition: inline; filename="'.basename($output_file).'"');
header('Cache-Control: private, max-age=0, must-revalidate');
header('Pragma: public');
ini_set('zlib.output_compression','0');
echo file_get_contents($output_file);
} else {
echo "Erreur lors de l'affichage du fichier.";
}
}
/**
* Gestion des kbis
*/
public function kbisAction()
{
$directory = realpath(APPLICATION_PATH . '/../cache/kbis/');
$file = $this->getRequest()->getParam('fichier');
$output_file = $directory.'/'.$file;
if (file_exists($output_file) && filesize($output_file)>0) {
$content_type = 'application/pdf';
header('Content-type: '.$content_type.'');
header('Content-Length: '.filesize($output_file));
header('Content-MD5: '.base64_encode(md5_file($output_file)));
header('Content-Disposition: inline; filename="'.basename($output_file).'"');
header('Cache-Control: private, max-age=0, must-revalidate');
header('Pragma: public');
ini_set('zlib.output_compression','0');
echo file_get_contents($output_file);
} else {
echo "Erreur lors de l'affichage du fichier.";
}
}
/**
* Gestion des rapports personnalisés
*/
public function customrapportAction()
{
$directory = realpath(APPLICATION_PATH . '/../cache/pages/');
$file = $this->getRequest()->getParam('fichier');
$output_file = $directory.'/'.$file;
if (file_exists($output_file) && filesize($output_file)>0) {
$content_type = 'application/pdf';
header('Content-type: '.$content_type.'');
header('Content-Length: '.filesize($output_file));
header('Content-MD5: '.base64_encode(md5_file($output_file)));
header('Content-Disposition: inline; filename="'.basename($output_file).'"');
header('Cache-Control: private, max-age=0, must-revalidate');
header('Pragma: public');
ini_set('zlib.output_compression','0');
echo file_get_contents($output_file);
} else {
echo "Impossible de charger le fichier.";
}
}
/**
* Gestion bodacc au format PDF
*/
public function bodaccAction()
{
$configuration = Zend_Registry::get('configuration');
$directory = realpath($configuration->path->data).'/bodacc';
$file = $this->getRequest()->getParam('fichier');
//Construire le chemin du dossier
preg_match('/BODACC_(A|B|C)_([0-9]{4})_(.*)\.pdf/', $file, $matches);
$directory.= '/'.$matches[1].'/'.$matches[2];
$output_file = $directory.'/'.$file;
if (file_exists($output_file) && filesize($output_file)>0) {
$content_type = 'application/pdf';
header('Content-type: '.$content_type.'');
header('Content-Length: '.filesize($output_file));
header('Content-MD5: '.base64_encode(md5_file($output_file)));
header('Content-Disposition: inline; filename="'.basename($output_file).'"');
header('Cache-Control: private, max-age=0, must-revalidate');
header('Pragma: public');
ini_set('zlib.output_compression','0');
echo file_get_contents($output_file);
} else {
echo "Impossible de charger le fichier.";
}
}
/**
* Gestion des fichiers PDF des nouveautés
*/
public function newAction()
{
$configuration = Zend_Registry::get('configuration');
$directory = realpath($configuration->path->data).'/nouveautes';
$file = $this->getRequest()->getParam('fichier');
$output_file = $directory.'/'.$file;
if (file_exists($output_file) && filesize($output_file)>0) {
$content_type = 'application/pdf';
header('Content-type: '.$content_type.'');
header('Content-Length: '.filesize($output_file));
header('Content-MD5: '.base64_encode(md5_file($output_file)));
header('Content-Disposition: inline; filename="'.basename($output_file).'"');
header('Cache-Control: private, max-age=0, must-revalidate');
header('Pragma: public');
ini_set('zlib.output_compression','0');
echo file_get_contents($output_file);
} else {
echo "Impossible de charger le fichier.";
}
}
/**
* Bodacc history file
*/
public function histopdfAction()
{
$directory = APPLICATION_PATH.'/../cache/histopdf';
$file = $this->getRequest()->getParam('fichier');
$output_file = $directory.'/'.$file;
if (file_exists($output_file) && filesize($output_file)>0) {
$content_type = 'application/pdf';
header('Content-type: '.$content_type.'');
header('Content-Length: '.filesize($output_file));
header('Content-MD5: '.base64_encode(md5_file($output_file)));
header('Content-Disposition: inline; filename="'.basename($output_file).'"');
header('Cache-Control: private, max-age=0, must-revalidate');
header('Pragma: public');
ini_set('zlib.output_compression','0');
echo file_get_contents($output_file);
} else {
echo "Impossible de charger le fichier.";
}
}
/**
* Bilan pdf file
*/
public function bilanAction()
{
$directory = APPLICATION_PATH.'/../cache/bilan';
$file = $this->getRequest()->getParam('fichier');
$output_file = $directory.'/'.$file;
if (file_exists($output_file) && filesize($output_file)>0) {
$content_type = 'application/pdf';
header('Content-type: '.$content_type.'');
header('Content-Length: '.filesize($output_file));
header('Content-MD5: '.base64_encode(md5_file($output_file)));
header('Content-Disposition: inline; filename="'.basename($output_file).'"');
header('Cache-Control: private, max-age=0, must-revalidate');
header('Pragma: public');
ini_set('zlib.output_compression','0');
echo file_get_contents($output_file);
} else {
echo "Impossible de charger le fichier.";
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -1,224 +0,0 @@
<?php
require_once 'Scores/RechercheHistorique.php';
require_once 'Giant/WSgiant.php';
require_once 'Giant/Controllers.lib.php';
require_once 'Giant/RequestDatabase.lib.php';
require_once 'Giant/Functions.lib.php';
require_once 'common/dates.php';
class GiantController extends Zend_Controller_Action
{
protected $TestIndication = true;
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'
),
);
public function init()
{
$this->view->headLink()->appendStylesheet('/themes/default/styles/giant.css', 'all');
$this->view->headScript()->appendFile('/themes/default/scripts/giant.js', 'text/javascript');
$this->view->debug = false;
}
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->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 RechercheHistorique();
$giantFunction = new GiantFunction();
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);
$result = $ListeRapport->ListeRapport($this->getRequest()->getParam('CompanyId'));
$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()
{
$giantController = new GiantControllerLib($this->getRequest()->getParam('CompanyId'));
$id = $giantController->commande($this->getRequest()->getParam('CompanyId'),
$this->getRequest()->getParam('Type'),
$this->getRequest()->getParam('Pays'),
$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->dateFunction = new WDate();
}
public function compactAction()
{
$giantController = new GiantControllerLib($this->getRequest()->getParam('CompanyId'));
$id = $giantController->commande($this->getRequest()->getParam('CompanyId'),
$this->getRequest()->getParam('Type'),
$this->getRequest()->getParam('Pays'),
$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->dateFunction = new WDate();
}
public function fullAction()
{
$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->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->dateFunction = new WDate();
}
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();
}
}

View File

@ -1,916 +0,0 @@
<?php
class IdentiteController extends Zend_Controller_Action
{
protected $siret = null;
protected $id = 0;
public function init()
{
$request = $this->getRequest();
$this->siret = $request->getParam('siret');
$this->id = $request->getParam('id', 0);
require_once 'Scores/WsScores.php';
require_once 'Scores/SessionEntreprise.php';
require_once 'Scores/IdentiteEntreprise.php';
require_once 'common/dates.php';
$this->view->headLink()->appendStylesheet('/themes/default/styles/identite.css', 'all');
}
public function preDispatch()
{
switch($this->getRequest()->getActionName())
{
case 'fiche':
case 'fichepc':
if (intval($this->siret)==0 && $this->id==0){
$this->_forward('params', 'error');
}
break;
}
}
/**
* Renvoi vers la fiche
*/
public function indexAction()
{
$this->_forward('index', 'index');
}
/**
* Affichage de la fiche identité
*/
public function ficheAction()
{
$this->view->headScript()->appendFile('/themes/default/scripts/identite.js', 'text/javascript');
$session = new Zend_Session_Namespace('Historique');
//Modification du titre
if(empty($this->siret)){
$titre = 'Identifiant '.$this->id;
} else {
$titre = 'Siret '.$this->siret;
}
$this->view->headTitle()->append('Identité - '.$titre);
$user = new Scores_Utilisateur();
$autrePage = $this->getRequest()->getParam('apage');
//Récupération des informations
if (empty($autrePage)) {
$ws = new WsScores();
$infos = $ws->getIdentite($this->siret, $this->id);
if ($infos === false) $this->_forward('soap', 'error');
} else {
$infos = $this->getRequest()->getParam('infos');
}
//Mise en session
$session = new SessionEntreprise($this->siret, $this->id, true);
$session->setInfoEntrep($infos);
//Date de dernière mise à jour
$tabDate = array(
'DateMajINSEE' => "Insee&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : ",
'DateMajRCS' => "RCS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : ",
'DateMajBILAN' => "Bilans&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : ",
'DateMajANN' => "Annonces : ",
);
$datemajTexte = '';
foreach ( $tabDate as $dateId => $dateLib ) {
if (isset($infos->{$dateId}) && !empty($infos->{$dateId}) && $infos->{$dateId}!='0000-00-00') {
$datemajTexte.= $dateLib;
$datemajTexte.= WDate::dateT('Y-m-d', 'd/m/Y', $infos->{$dateId});
$datemajTexte.= '<br/>';
}
}
$dateDerMaj = '';
if (isset($infos->DateMajID) && !empty($infos->DateMajID) && $infos->DateMajID!='0000-00-00' && $infos->DateMajID!='0--' ){
if ( $user->checkModeEdition() ){
$datemajTexte.= "Scores & Décisions : ";
$datemajTexte.= WDate::dateT('Y-m-d', 'd/m/Y', $infos->DateMajID);
$datemajTexte.= '<br/>';
}
$dateDerMaj = ' le '.WDate::dateT('Y-m-d', 'd/m/Y', $infos->DateMajID);
}
$identite = new IdentiteEntreprise($infos);
//Définition des blocks
$blocks = array(
'Siret',
'SiretSiege',
'TvaNumero',
'Isin',
'Capitalisation',
'NumRC',
'AutreId',
'Actif',
'SituationJuridique',
'AutreSiren',
'RaisonSociale',
'NomCommercial',
'EnseigneSigle',
'FormeJuridique',
'DateImmat',
'DateCreaEn',
'DateCreaEt',
'Adresse',
'Zones',
'Tel',
'Fax',
'Web',
'Mail',
'ActiviteEn',
'ActiviteEt',
'Naf4',
'Nace',
'NatureActivite',
'SurfaceMagasin',
'OrigineFond',
'TypeExploitation',
'Saisonnalite',
'NbEtabActif',
'Capital',
'ChiffreAffaire',
'Dirigeants',
'Effectif',
'EffectifEtab'
);
$dBlock = $identite->formatBlock($blocks);
require_once 'Scores/Logo.php';
$logo = new Logo($infos->Siren, $infos->Isin);
$logoImg = array(
'label' => 'Logo',
'texte' => $logo->affiche(),
);
$this->view->assign('exportObjet', $infos);
$this->view->assign('dBlock', $dBlock);
$this->view->assign('logo', $logoImg);
$this->view->assign('dateDerMaj', $dateDerMaj);
$this->view->assign('datemajTexte', $datemajTexte);
$this->view->assign('raisonSociale', $session->getRaisonSociale());
$this->view->assign('infos', $infos);
$this->view->assign('siret', $infos->Siret);
$survDroits = array('survannonce', 'survinsee', 'survbilan', 'survscore', 'survactes', 'survdirigeants', 'survpriv');
$countSurvDroits = 0;
foreach ( $survDroits as $item ) {
if ($user->checkPerm($item)) $countSurvDroits++;
}
$this->view->assign('surveillance', $countSurvDroits);
$this->view->assign('AutrePage', $this->getRequest()->getParam('apage'));
}
/**
* Affichage de la fiche procédure collective
* Enter description here ...
*/
public function fichepcAction()
{
$this->view->headScript()->appendFile('/themes/default/scripts/identite.js', 'text/javascript');
//Vérification des permission
$user = new Scores_Utilisateur();
if(!$user->checkPerm('idprocol')){
$this->_forward('perms', 'error');
}
$siren = substr($this->siret,0,9);
//Modification du titre
if(empty($this->siret)){
$titre = 'Identifiant '.$this->id;
} else {
$titre = 'Siret '.$this->siret;
}
$this->view->headTitle()->append('Fiche procédure collective - '.$titre);
//Récupération des informations
$ws = new WsScores();
$infos = $ws->getIdentiteProcol($this->siret, $this->id);
if ($infos === false) $this->_forward('soap', 'error');
//Mise en session
$session = new SessionEntreprise($this->siret, $this->id);
$session->setInfoEntrep($infos->Identite);
//Element Fiche identite
$identite = new IdentiteEntreprise($infos->Identite);
//Définition des blocks
$blocks = array(
'Siret',
'SiretSiege',
'TvaNumero',
'Isin',
'Capitalisation',
'NumRC',
'AutreId',
'Actif',
'SituationJuridique',
'AutreSiren',
'RaisonSociale',
'EnseigneSigle',
'FormeJuridique',
'DateImmat',
'DateCreaEn',
'DateCreaEt',
'Adresse',
'Zones',
'Tel',
'Fax',
'Web',
'Mail',
'ActiviteEt',
'ActiviteEn',
'Naf4',
'Nace',
'NatureActivite',
'OrigineFond',
'TypeExploitation',
'Saisonnalite',
'NbEtabActif',
'Capital',
'ChiffreAffaire',
'Dirigeants',
'Effectif',
'EffectifEtab'
);
$dBlock = array();
foreach ($blocks as $item) {
$display = array(
'label' => method_exists($identite, 'get'.$item.'Label') ? $identite->{'get'.$item.'Label'}() : '',
'texte' => method_exists($identite, 'get'.$item.'Texte') ? $identite->{'get'.$item.'Texte'}() : '',
'titre' => method_exists($identite, 'get'.$item.'Titre') ? $identite->{'get'.$item.'Titre'}() : '',
);
$dBlock[$item] = $display;
}
require_once 'Scores/Logo.php';
$logo = new Logo($infos->Siren, $infos->Isin);
$logoImg = array(
'label' => 'Logo',
'texte' => $logo->affiche(),
);
$Identite = new stdClass();
$Identite->siret = $this->siret;
$Identite->dBlock = $dBlock;
$Identite->logo = $logo;
$Identite->AutrePage = 'fichepc';
$this->view->assign('Identite', $Identite);
//Element Fiche procédure collective
require_once 'Scores/IdentiteProcol.php';
$procol = new IdentiteProcol($infos);
$blocks = array(
'CessionOffreDate',
'CessionInvenDate',
'CessionDesc',
);
$dBlock = array();
foreach ($blocks as $item) {
$display = array(
'label' => method_exists($procol, 'get'.$item.'Label') ? $procol->{'get'.$item.'Label'}() : '',
'texte' => method_exists($procol, 'get'.$item.'Texte') ? $procol->{'get'.$item.'Texte'}() : '',
'titre' => method_exists($procol, 'get'.$item.'Titre') ? $procol->{'get'.$item.'Titre'}() : '',
);
$dBlock[$item] = $display;
}
$this->view->assign('dBlock', $dBlock);
$this->view->assign('infosProcol', $procol);
$this->view->assign('exportObjet', $infos);
$this->view->assign('infos', $infos);
$this->view->assign('siret', $this->siret);
$this->view->assign('raisonSociale', $session->getRaisonSociale());
$this->view->assign('fj', $session->getFormeJuridique());
}
/**
* Affichage de la liste des établissements
*/
public function etablissementsAction()
{
$siren = substr($this->siret,0,9);
$actif = $this->getRequest()->getParam('actif', -1);
$this->view->headTitle()->append('Liste des établissements - Siren '.$siren);
$session = new SessionEntreprise($this->siret, $this->id);
$user = new Scores_Utilisateur();
$ws = new WsScores();
$infos = $ws->getListeEtablissements($siren, $actif);
if ($infos === false) $this->_forward('soap', 'error');
$etabs = $infos->result->item;
$this->view->assign('actif', $actif);
$nbEtabActif = 0;
$nbEtabRadie = 0;
if (count($etabs)>0) {
foreach ($etabs as $i => $etab) {
if ($etab->Actif==1){
$nbEtabActif++;
} else {
$nbEtabRadie++;
}
}
}
$this->view->assign('nbEtabActif', $nbEtabActif);
$this->view->assign('nbEtabRadie', $nbEtabRadie);
$this->view->assign('siren', $siren);
$this->view->assign('siret', $this->siret);
$this->view->assign('id', $this->id);
$this->view->assign('raisonSociale', $session->getRaisonSociale());
$this->view->assign('etabs', $etabs);
$this->view->assign('exportObjet', $etabs);
// Permet de verifier si la personne a la preference d'affichage des cartes.
$this->view->assign('hasPrefCarte', $user->checkPref('cartes'));
$this->view->assign('listeEtablissement', $infos);
}
/**
* Affichage des établissements sur une carte (Google Maps)
*/
public function carteAction()
{
$siren = substr($this->siret,0,9);
$actif = $this->getRequest()->getParam('actif', -1);
$session = new SessionEntreprise($this->siret, $this->id);
$user = new Scores_Utilisateur();
$ws = new WsScores();
$infos = $ws->getListeEtablissements($siren, $actif);
if ($infos === false) $this->_forward('soap', 'error');
$etabs = $infos->result->item;
$marqueurs = array();
$j = 0;
foreach ($etabs as $i => $etab) {
if ($etab->Siege == 1) {
$type = 'Siège ';
} else {
$type = 'Etablissement ';
}
if ($etab->Actif == 1) {
$type .= 'actif';
} else {
$type .= 'inactif';
}
$type .= ' - '.$etab->NafEtabLib;
$titre = "$siren ".$etab->Nic." : $type<br/>";
if ($etab->Enseigne <> '') {
$titre .= 'Enseigne : '.$etab->Enseigne.'<br/>';
}
$texte = '';
$texte .= 'Etablissement : '.$etab->Nic.'<br/>';
$texte .= $etab->Adresse.'<br/>';
$adresse = $etab->Adresse.' ';
if ($etab->Adresse2 <> '') {
$texte .= $etab->Adresse2.'<br/>';
if (strlen(trim($adresse)) < 7) {
$adresse = $etab->Adresse2.' ';
}
}
$texte.='<b>'.$etab->CP.' '.$etab->Ville.'</b><br/>';
require_once 'Scores/classMMap.php';
$mmap = new MMap($adresse, $etab->CP, $etab->Ville);
if ($mmap->latitudeDec == '') {
continue;
}
$photo = 'http://cbk0.google.com/cbk?output=thumbnail&w=150&h=69&ll='.
$mmap->latitudeDec.','.
$mmap->longitudeDec;
$adresse .= $etab->CP.' '.$etab->Ville;
$google_map = 'http://maps.google.fr/maps?q='.urlencode($adresse);
$texte .= '<a href='.$google_map.' target=_blank>';
if ($mmap->precision >= 7 && @fopen($photo, 'r') != false) {
$texte .= '<img src='.$photo.' width=\"155\" height=\"74\" />';
} else {
$texte .= 'Afficher l\'adresse sur Google Map &copy;';
}
$texte .= '</a>';
$texte .= '<br/>';
$texte .= '<i>'.$etab->NafEtab.' : '.$etab->NafEtabLib.'</i>';
$icone = 'http://'.$_SERVER['SERVER_NAME'].'/themes/default/images/maps/'.$this->iconeDuMarqueur($etab->NafEtab, $etab->Siege, $etab->Actif);
$marqueurs[$j] = array($mmap->latitudeDec, $mmap->longitudeDec, $titre, $texte, $type, $icone);
++$j;
// if ($j >= 30) { // Limitation du nombre d'etablissements sur la carte
// break;
// }
}
if (count($marqueurs) > 1) {
$min_x = $max_x = $marqueurs[0][0];
$min_y = $max_y = $marqueurs[0][1];
for ($i = 1; $i < count($marqueurs); ++$i) {
$min_x = min($min_x, $marqueurs[$i][0]);
$max_x = max($max_x, $marqueurs[$i][0]);
$min_y = min($min_y, $marqueurs[$i][1]);
$max_y = max($max_y, $marqueurs[$i][1]);
}
}
$this->view->assign('marqueurs', $marqueurs);
$this->view->assign('min_x', $min_x);
$this->view->assign('max_x', $max_x);
$this->view->assign('min_y', $min_y);
$this->view->assign('max_y', $max_y);
}
protected function iconeDuMarqueur($naf, $siege, $actif)
{
if ($siege == 1) {
return 'siege'.$actif.'.png';
}
switch (substr($naf, 0, 2)) {
// A Agriculture, sylviculture et pêche
case '01': // Culture et production animale, chasse et services annexes
case '02': // Sylviculture et exploitation forestière
case '03': // Pêche et aquaculture
return 'tractor'.$actif.'.png';
// B Industries extractives
case '05': // Extraction de houille et de lignite
case '06': // Extraction d'hydrocarbures
case '07': // Extraction de minerais métalliques
case '08': // Aures industries extractives
case '09': // Services de soutien aux industries extractives
// C Industrie manufacturière
case '10': // Industries alimentaires
case '11': // Fabrication de boissons
case '12': // Fabrication de produits à base de tabac
case '13': // Fabrication de textiles
case '14': // Industrie de l'habillement
case '15': // Industrie du cuir et de la chaussure
case '16': // Travail du bois et fabrication d'articles en bois...
case '17': // Industrie du papier et du carton
case '18': // Imprimerie et reproduction d'enregistrements
case '19': // Cokéfaction et raffinage
case '20': // Industrie chimique
case '21': // Industrie pharmaceutique
case '22': // Fabrication de produits en caoutchouc et en plastique
case '23': // Fabrication d'autres produits minéraux non métalliques
case '24': // Métallurgie
case '25': // Fabrication de produits métalliques...
case '26': // Fabrication de produits informatiques...
case '27': // Fabrication d'équipements électriques
case '28': // Fabrication de machines et équipements n.c.a.
case '29': // Industrie automobile
case '30': // Fabrication d'autres matériels de transport
case '31': // Fabrication de meubles
case '32': // Autres industries manufacturières
case '33': // Réparation et installation de machines et d'équipements
// D Production et distribution d'électricité, de gaz, de vapeur...
case '35': // Production et distribution d'électricité, de gaz...
// E Production et distribution d'eau ; assainissement...
case '36': // Captage, traitement et distribution d'eau
case '37': // Collecte et traitement des eaux usées
case '38': // Collecte, traitement et élimination des déchets...
case '39': // Dépollution et autres services de gestion des déchets
// F Construction
case '41': // Construction de bâtiments
case '42': // Génie civil
case '43': // Travaux de construction spécialisés
return 'usine'.$actif.'.png';
// G Commerce ; réparation d'automobiles et de motocycles
case '45': // Commerce et réparation d'automobiles et de motocycles
case '46': // Commerce de gros, à l'exception des automobiles...
case '47': // Commerce de détail, à l'exception des automobiles...
return 'shop'.$actif.'.png';
// H Transports et entreposage
case '49': // Transports terrestres et transport par conduites
case '50': // Transports par eau
case '51': // Transports aériens
case '53': // Activités de poste et de courrier
return 'etab'.$actif.'.png';
case '52': // Entreposage et services auxiliaires des transports
return 'entrepot'.$actif.'.png';
// I Hébergement et restauration
case '55': // Hébergement
case '56': // Restauration
// J Information et communication
case '58': // Édition
case '59': // Production de films cinématographiques, de vidéo...
case '60': // Programmation et diffusion
case '61': // Télécommunications
case '62': // Programmation, conseil et autres activités informatiques
case '63': // Services d'information
// K Activités financières et d'assurance
case '64': // Activités des services financiers, hors assurance...
case '65': // Assurance
case '66': // Activités auxiliaires de services financiers et d'assurance
// L Activités immobilières
case '68': // Activités immobilières
// M Activités spécialisées, scientifiques et techniques
case '69': // Activités juridiques et comptables
case '70': // Activités des sièges sociaux ; conseil de gestion
case '71': // Activités d'architecture et d'ingénierie...
case '72': // Recherche-développement scientifique
case '73': // Publicité et études de marché
case '74': // Autres activités spécialisées, scientifiques et techniques
case '75': // Activités vétérinaires
// N Activités de services administratifs et de soutien
case '77': // Activités de location et location-bail
case '78': // Activités liées à l'emploi
case '79': // Activités des agences de voyage, voyagistes...
case '80': // Enquêtes et sécurité
case '81': // Services relatifs aux bâtiments et aménagement paysager
case '82': // Activités administratives et autres activités de soutien...
return 'etab'.$actif.'.png';
// O Administration publique
case '84': // Administration publique et défense ; sécurité sociale...
// P Enseignement
case '85': // Enseignement
return 'admin'.$actif.'.png';
// Q Santé humaine et action sociale
case '86': // Activités pour la santé humaine
case '87': // Hébergement médico-social et social
case '88': // Action sociale sans hébergement
// R Arts, spectacles et activités récréatives
case '90': // Activités créatives, artistiques et de spectacle
case '91': // Bibliothèques, archives, musées...
case '92': // Organisation de jeux de hasard et d'argent
case '93': // Activités sportives, récréatives et de loisirs
// S Autres activités de services
case '94': // Activités des organisations associatives
case '95': // Réparation d'ordinateurs et de biens personnels...
case '96': // Autres services personnels
// T Activités des ménages en tant qu'employeurs...
case '97': // Activités des ménages en tant qu'employeurs de personnel...
case '98': // Activités indifférenciées des ménages...
// U Activités extra-territoriales
case '99': // Activités des organisations et organismes extraterritoriaux
return 'etab'.$actif.'.png';
}
}
/**
* Affichage des liens inter-entreprise
*/
public function liensAction()
{
$siren = substr($this->siret,0,9);
$this->view->headTitle()->append('Liens inter-entreprises - Siren '.$siren);
$this->view->headScript()->appendFile('/themes/default/scripts/identite.js', 'text/javascript');
$session = new SessionEntreprise($this->siret, $this->id);
$this->view->assign('siren', $siren);
$this->view->assign('siret', $this->siret);
$this->view->assign('raisonSociale', $session->getRaisonSociale());
if ( ($session->getFormeJuridique()>=1000 && $session->getFormeJuridique()<=1999)
|| ($session->getFormeJuridique()>=10 && $session->getFormeJuridique()<=19) ) {
$this->renderScript('identite/liens-personne-physique.phtml');
}
$user = new Scores_Utilisateur();
if ( $user->checkPerm('GROUPE') ) {
$this->view->assign('liengroupe', $this->view->url(array(
'controller' =>'identite',
'action' => 'groupesarbo',
'siret' => $siren
), null, true) );
}
require_once 'Scores/WsScores.php';
$ws = new WsScores();
$infos = $ws->getLiens($siren);
$actionnaires = $infos->actionnaires->item;
$participations = $infos->participations->item;
//Informations de MAJ
if(count($actionnaires)>0){
$nb = count($actionnaires)-1;
$source = $actionnaires[$nb]->Source;
$dateMaj = $actionnaires[$nb]->DateMaj;
} else if (count($participations)>0){
$nb = count($participations)-1;
$source = $participations[$nb]->Source;
$dateMaj = $participations[$nb]->DateMaj;
} else {
$source = '';
$dateLien = '';
$dateMaj = '';
}
$this->view->assign('exportObjet', $infos);
$this->view->assign('source', $source);
$this->view->assign('dateLien', $dateLien);
$this->view->assign('dateMaj', $dateMaj);
$this->view->assign('actionnaires', $actionnaires);
$this->view->assign('participations', $participations);
$this->view->assign('AutrePage', $this->getRequest()->getParam('apage'));
}
/**
* Affichage des modifications Insee
*/
public function evenementsAction()
{
$siren = substr($this->siret,0,9);
$this->view->headTitle()->append('Evènements - Siren '.$siren);
$session = new SessionEntreprise($this->siret, $this->id);
require_once 'Scores/WsScores.php';
$ws = new WsScores();
$infos = $ws->getListeEvenements($siren);
$evens = $infos->result->item;
$this->view->assign('siren', $siren);
$this->view->assign('siret', $this->siret);
$this->view->assign('id', $this->id);
$this->view->assign('raisonSociale', $session->getRaisonSociale());
$this->view->assign('evens', $evens);
$this->view->assign('exportObjet', $evens);
}
/**
* Affichage des news
*/
public function newsAction()
{
$googleNews = true;
$nbNews = 15;
$user = new Scores_Utilisateur();
if ($user->checkPref('news'))
{
$session = new SessionEntreprise($this->siret, $this->id);
$items = array();
if ($googleNews!==false){
$url = 'http://news.google.fr/news?hl=fr&gl=fr&q='.
urlencode($session->getRaisonSociale()).'&output=rss';
$items = array();
try {
$canal = new Zend_Feed_Rss($url);
} catch (Exception $e) {
//Do nothing
}
if (count($canal)>0)
{
$i=0;
foreach ($canal as $element)
{
$items[] = $element;
$i++;
if ($i==$nbNews) break;
}
}
}
$this->view->assign('items', $items);
} else {
$this->view->assign('disable', true);
}
}
/**
* Téléchargement d'un avis de situation
*/
public function avisAction()
{
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
// ==> Start
require_once 'Scores/AvisSituation.php';
$avis = new AvisSituation($this->siret);
if (!$avis->erreur()){
$avis->erreurcpt('raz');
$body = $avis->get('pdf', 1);
if($body !== false) {
header("Pragma: public");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: must-revalidate");
header("Content-type: application/pdf");
header("Content-Length: ".strlen($body));
header('Content-disposition: inline; filename="avis-'.$this->siret.'.pdf"');
header("Accept-Ranges: ".strlen($body));
echo $body;
$ws = new WsScores();
$ws->setLog('avis_situation', $this->siret, 0, '');
} else {
$avis->erreurcpt('plus');
echo $avis->erreurmsg();
}
} else {
if ($avis->nberreur()==5){
$avis->mailerreur();
}
$avis->erreurcpt('plus');
echo $avis->erreurmsg();
}
}
public function irisAction()
{
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
$request = $this->getRequest();
$codeCommune = $request->getParam('code');
// ==> Start
require_once 'Scores/Iris.php';
$iris = new Iris($codeCommune);
$body = $iris->get('pdf');
if($body !== false) {
header("Pragma: public");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: must-revalidate");
header("Content-type: application/pdf");
header("Content-Length: ".strlen($body));
header('Content-disposition: inline; filename="carte_iris_'.$codeCommune.'.pdf"');
header("Accept-Ranges: ".strlen($body));
echo $body;
} else {
echo $iris->erreur();
}
}
public function geoAction()
{
$this->view->headScript()->appendFile('/themes/default/scripts/geolocalisation.js', 'text/javascript');
$this->view->headLink()->appendStylesheet('/themes/default/styles/geolocalisation.css', 'all');
$infos = $this->getRequest()->getParam('infos');
$user = new Scores_Utilisateur();
$this->view->assign('facade', $user->checkPref('mappy'));
require_once 'Scores/Google.php';
$google = new Google();
$decLat = $google->dec2dms($infos->GeoLat);
$decLon = $google->dec2dms($infos->GeoLon);
$mapsHref = $google->getGoogleMapLink(urlencode(
$infos->AdresseNum.', '.$infos->AdresseVoie.' '.
htmlspecialchars_decode($infos->AdresseRue, ENT_QUOTES).
', '.$infos->CP.' '.$infos->Ville));
$this->view->assign('mapsHref', $mapsHref);
$this->view->assign('decLat', $decLat);
$this->view->assign('decLon', $decLon);
$this->view->assign('infos', $infos);
}
public function facadeAction()
{
require_once 'Scores/Mappy.php';
$infos = $this->getRequest()->getParam('infos');
$mappy = new Mappy();
if ($mappy->villeCouverte($infos->Ville))
{
$adresse = '';
$adresse.= $infos->AdresseNum;
//Corriger la voie pour Mappy
$adresse.= ' '.strtr($infos->AdresseVoie, array(
'R' => 'RUE',
'AV' => 'AVENUE',
'RLE' => 'RUELLE',
));
$adresse.= ' '.$infos->AdresseRue;
$adresse.= ' '.$infos->Ville;
//Définir le pays
if ($infos->Pays == '') {
$adresse.= ' FRANCE';
} else {
$adresse.= ' '.$infos->Pays;
}
$this->view->assign('adresse', $adresse);
$this->view->assign('source', 'mappy');
$this->view->assign('lienJs', $mappy->getJs());
}
else
{
require_once 'Scores/Google.php';
$google = new Google();
$googleKey = $google->getGoogleKey($_SERVER['SERVER_NAME']);
$this->view->assign('googleKey', $googleKey);
$this->view->assign('source', 'google');
$this->view->assign('infos', $infos);
}
}
public function groupesarboAction()
{
$this->_helper->layout()->disableLayout();
$siren = substr($this->siret,0,9);
require_once 'Scores/WsScores.php';
$ws = new WsScores();
$result = $ws->getGroupesArbo($siren);
if ( $result!==false ) {
$infos = json_decode($result, true);
Zend_Registry::get('firebug')->info($infos);
if (count($infos)>0) {
$structure = array();
$name = $infos['name'].' ('.$infos['siren'].')';
$structure[] = array(
'data' => $name,
'state' => 'open',
'children' => $this->groupesArboChildren($infos['children'], $siren),
);
Zend_Registry::get('firebug')->info($structure);
$this->view->assign('data', json_encode($structure));
}
}
}
public function groupesArboChildren($items, $detectSiren = '')
{
$output = array();
if ( count($items)>0 ) {
foreach ( $items as $item ) {
$name = $item['name'];
if ( intval($item['siren'])!=0 ) {
$name.= ' (<a href="'.
$this->view->url(array(
'controller'=>'identite',
'action'=>'fiche',
'siret' => $item['siren'],
), null, true)
.'">'.$item['siren'].'</a>)';
} else {
$name.= ' ('.$item['pays'].')';
}
$name.= ' - '.$item['pmin'].'%';
$structure = array(
'data' => $name,
'state' => 'open',
);
if ($item['siren']==$detectSiren) {
$structure['class'] = 'jstree-search';
}
if (count($item['children'])>0){
$structure['children'] = $this->groupesArboChildren($item['children'], $detectSiren);
} else {
$structure['children'] = array();
}
$output[] = $structure;
}
}
return $output;
}
public function groupeAction()
{
$this->view->headScript()->appendFile('/themes/default/scripts/identite.js', 'text/javascript');
$siren = substr($this->siret,0,9);
require_once 'Scores/WsScores.php';
$ws = new WsScores();
$result = $ws->getGroupeInfos($siren);
$this->view->assign('result', $result);
$this->view->assign('siren', $siren);
}
}

View File

@ -1,58 +0,0 @@
<?php
class IndexController extends Zend_Controller_Action
{
public function indexAction()
{
$request = $this->getRequest();
$page = $request->getParam('page');
if ($page == 'annonces')
{
$siret = $request->getParam('siret');
$source = $request->getParam('source');
$idAnn = $request->getParam('idAnn');
$lien = '/juridique/annonces/siret/'.$siret;
if (!empty($source)) $lien.= '/source/'.$source;
if (!empty($idAnn)) $lien.= '/idAnn/'.$idAnn;
$this->_redirect($lien);
}
elseif ( Zend_Registry::get('theme')->name=='mobile' )
{
//Afficher le menu pour la version mobile
}
else
{
$this->_forward('entreprise', 'recherche');
}
}
/**
* Retourne l'url pour le csv d'export du portefeuille
*/
public function portefeuillecsvAction()
{
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
require_once 'Scores/WsScores.php';
$user = new Scores_Utilisateur();
$login = $user->getLogin();
$idClient = $user->getIdClient();
$ws = new WsScores();
$reponse = $ws->getPortefeuilleCsv($login, $idClient);
$log = Zend_Registry::get('configuration')->path->data.'/log/altisys.log';
if ($reponse === false){
file_put_contents($log, date('Y-m-d H:i:s')." - URL = ERREUR\n", FILE_APPEND);
echo "Erreur";
} elseif (!empty($reponse->result->Url)) {
file_put_contents($log, date('Y-m-d H:i:s')." - URL = ".$reponse->result->Url."\n", FILE_APPEND);
echo $reponse->result->Url;
}
}
}

View File

@ -1,461 +0,0 @@
<?php
class JuridiqueController extends Zend_Controller_Action
{
protected $siret = null;
protected $id = 0;
public function init()
{
$request = $this->getRequest();
$this->siret = $request->getParam('siret');
$this->id = $request->getParam('id', 0);
require_once 'Scores/WsScores.php';
require_once 'Scores/SessionEntreprise.php';
require_once 'common/dates.php';
$this->view->headLink()->appendStylesheet('/themes/default/styles/juridique.css', 'all');
}
/**
* Affichage de la liste des annonces ou d'une annonce
*/
public function annoncesAction()
{
$request = $this->getRequest();
$vue = $request->getParam('vue', 'bodacc');
$p = $request->getParam('p', 1);
$this->view->assign('p', $p);
$idAnn = $request->getParam('idAnn', 0);
$siren = substr($this->siret, 0,9);
$source = $request->getParam('source');
if (!empty($source)) {
switch ($source){
case 1: $vue='bodacc'; break;
case 2: $vue='balo'; break;
case 3: $vue='asso'; break;
}
}
$session = new SessionEntreprise($this->siret, $this->id);
$fj = $session->getFormeJuridique();
if ( $fj>9000 && $fj<9999 && intval($siren)==0 ) {
$vue = 'asso';
}
$this->view->assign('vue', $vue);
$nbAnnonces = 20;
$position = ($p-1)*$nbAnnonces;
$ws = new WsScores();
switch ( $vue ) {
case 'bodacc':
case 'abod':
default:
if(intval($siren)==0) {
$idAnn = $session->getSourceId();
}
$infos = $ws->getAnnoncesLegales($siren, $idAnn, null, $position, $nbAnnonces);
break;
case 'balo':
$infos = $ws->getAnnoncesBalo($siren, $idAnn, null, $position, $nbAnnonces);
break;
case 'asso':
if ( intval($siren)==0 && substr($session->getAutreId(),0,1)=='W' ) {
$infos = $ws->getAnnoncesAsso($session->getAutreId(), $idAnn, null, $position, $nbAnnonces);
} elseif (intval($siren)!=0) {
$infos = $ws->getAnnoncesAsso($siren, $idAnn, null, $position, $nbAnnonces);
} else {
$idAnn = $session->getSourceId();
$infos = $ws->getAnnoncesAsso($siren, $idAnn, null, $position, $nbAnnonces);
}
break;
case 'bomp':
$filtre = $request->getParam('filtre', null);
$this->view->assign('filtre', $filtre);
$infos = $ws->getAnnoncesBoamp($siren, $idAnn, $filtre, $position, $nbAnnonces);
break;
}
if ($infos === false) $this->_forward('soap', 'error');
Zend_Registry::get('firebug')->info($infos);
require_once 'Scores/Annonces.php';
$objAnnonces = new Annonces($infos->result->item);
$typeAnnonces = array(
'Bodacc',
'Balo',
'Bomp',
'Asso',
);
$user = new Scores_Utilisateur();
$this->view->assign('hasModeEdition', $user->checkModeEdition());
$this->view->assign('id', $session->getId());
$this->view->assign('siren', $siren);
$this->view->assign('siret', $this->siret);
$this->view->assign('raisonSociale', $session->getRaisonSociale());
$this->view->assign('AutrePage', $request->getParam('apage'));
$this->view->assign('exportObjet', $infos);
$this->view->assign('surveillance', $user->checkPerm('survannonce'));
//Affichage pour une annonce
if (!empty($idAnn) && in_array($vue, array('bodacc', 'abod', 'balo', 'asso', 'bomp')) ) {
if ( $user->checkModeEdition() ){
$this->view->headScript()->appendFile('/themes/default/scripts/saisieannonces.js', 'text/javascript');
}
$classType = 'annonces'.ucfirst($vue);
foreach($objAnnonces->$classType as $ann) {
if($ann->id==$idAnn) break;
}
$annonce = array(
'Desc' => $objAnnonces->getAnnonceDesc($ann),
'Entree' => $objAnnonces->getAnnonceEntree($ann),
'EntreeSD' => $objAnnonces->getAnnonceEntreeSD($ann),
'Even' => $objAnnonces->getAnnonceEven($ann),
'Texte' => $objAnnonces->getAnnonceTexte($ann),
'Type' => $objAnnonces->getType($ann),
'Code' => $objAnnonces->getCode($ann),
'Annee' => $objAnnonces->getAnnee($ann),
'Num' => $objAnnonces->getNum($ann)
);
$this->view->assign('source', $session->getSource());
if ( intval($this->siret)==0 ){
$this->view->assign('sourceId', $session->getSourceId());
} else {
$this->view->assign('sourceId', null);
}
$this->view->assign('idAnn', $idAnn);
$this->view->assign('annonce', $annonce);
if ($request->getParam('q')=='ajax')
{
$this->_helper->layout()->disableLayout();
//$this->_helper->viewRenderer->setNoRender(true);
$this->renderScript('juridique/annonce-ajax.phtml');
} else {
//Définir url pour téléchargement pdf
if ( in_array($annonce['Code'], array('BODA', 'BODB', 'BODC')) && intval($annonce['Annee'])>=2008) {
$lienBodacc = $this->view->url(array(
'controller' => 'juridique',
'action' => 'bodaccpdf',
'type' => substr($annonce['Code'],3,1),
'annee' => $annonce['Annee'],
'num' => $annonce['Num'],
), null, true);
$this->view->assign('lienBodacc', $lienBodacc);
}
$this->renderScript('juridique/annonce.phtml');
}
//Affichage pour la liste des annonces
} else {
$nbReponses = $infos->nbReponses;
$nbPages = ceil($nbReponses/$nbAnnonces);
//Attention ajout des filtres
if ( $p <= 1 ) {
$lienPagePrecedente = false;
} else {
$lienPagePrecedente = $this->view->url(array(
'controller' => 'juridique',
'action' => 'annonces',
'vue'=> $vue,
'p' => $p-1
));
}
if ( $p+1 > $nbPages ) {
$lienPageSuivante = false;
} else {
$lienPageSuivante = $this->view->url(array(
'controller' => 'juridique',
'action' => 'annonces',
'vue' => $vue,
'p' => $p+1
));
}
$this->view->assign('nbPages',$nbPages);
$this->view->assign('lienPagePrecedente',$lienPagePrecedente);
$this->view->assign('lienPageSuivante',$lienPageSuivante);
foreach ($typeAnnonces as $type)
{
$classType = 'annonces'.$type;
$annonces = array();
if (count($objAnnonces->$classType)>0)
{
foreach($objAnnonces->$classType as $ann)
{
$annonces[] = $objAnnonces->getAnnonceResume($ann);
}
$this->view->assign($classType, $annonces);
}
}
$this->view->headScript()->appendFile('/themes/default/scripts/annonces.js', 'text/javascript');
}
}
/**
* Affichage infos réglementées
*/
public function infosregAction()
{
$request = $this->getRequest();
$idCom = $request->getParam('idCom', false);
$siren = substr($this->siret, 0,9);
$session = new SessionEntreprise($this->siret, $this->id);
$ws = new WsScores();
$infos = $ws->getInfosReg($siren);
if ($infos === false) $this->_forward('soap', 'error');
if (is_string($infos)){
$this->view->assign('message', $infos);
}
$objAnnonces = $infos->result->item;
$annonces = array();
if (count($objAnnonces)>0) {
foreach ( $objAnnonces as $item ) {
$annonces[] = array(
'id' => $item->id,
'titre' => $item->titre,
'communique' => $item->communique,
'source' => $item->source,
'DateParution' => WDate::dateT('Y-m-d','d/m/Y',$item->DateParution),
'dateInsertionSD' => WDate::dateT('Y-m-d','d/m/Y',$item->dateInsertionSD),
);
}
}
if ($idCom!=false) {
$this->view->assign('liste', false);
$this->view->assign('idCom', $idCom);
} else {
$this->view->assign('liste', true);
}
$this->view->assign('annonces', $annonces);
$this->view->assign('siren', $siren);
$this->view->assign('siret', $this->siret);
$this->view->assign('raisonSociale', $session->getRaisonSociale());
$this->view->assign('exportObjet', $infos);
}
/**
* Affichage listes des compétences
*/
public function competencesAction()
{
$request = $this->getRequest();
$type = $request->getParam('type', '');
$siren = substr($this->siret,0,9);
$session = new SessionEntreprise($this->siret, $this->id);
$abbrev = array(
' TGI ' => 'TRIBUNAL DE GRANDE INSTANCE DE ',
' TI ' => 'TRIBUNAL D\'INSTANCE DE ',
' TC ' => 'TRIBUNAL DE COMMERCE DE ',
' TGICC ' => 'TRIBUNAL DE GRANDE INSTANCE A COMPETENCE COMMERCIALE ',
' TICC ' => 'TRIBUNAL D\'INSTANCE A COMPETENCE COMMERCIALE '
);
if (!empty($type)){
$ws = new WsScores();
$infos = $ws->getListeCompetences($siret, $type, $session->getCodeCommune());
if ($infos === false) $this->_forward('soap', 'error');
$competences = $infos->result->item;
Zend_Registry::get('firebug')->info($infos);
if( $type=='tri' || $type=='cfe' ) {
$i=0;
foreach($competences as $comp){
$competences[$i]->Nom = strtr(' '.strtoupper($comp->Nom), $abbrev);
$i++;
}
}
$this->view->assign('competences', $competences);
$this->view->assign('type', $type);
$this->view->assign('exportObjet', $infos);
}
$this->view->assign('siren', $siren);
$this->view->assign('siret', $this->siret);
$this->view->assign('raisonSociale', $session->getRaisonSociale());
}
/**
* Affichage des la listes des conventions collectives
* Enter description here ...
*/
public function conventionsAction()
{
$siren = substr($this->siret, 0,9);
$session = new SessionEntreprise($this->siret, $this->id);
$this->view->assign('siren', $siren);
$this->view->assign('siret', $this->siret);
$this->view->assign('raisonSociale', $session->getRaisonSociale());
$ws = new WsScores();
$infos = $ws->getListeConventions($siren);
$conventions = $infos->result->item;
Zend_Registry::get('firebug')->info($conventions);
$this->view->assign('conventions', $conventions);
$this->view->assign('exportObjet', $infos);
}
/**
* Affichage des marques déposées
*/
public function marquesAction()
{
$this->view->headScript()->appendFile('/themes/default/scripts/marques.js', 'text/javascript');
$request = $this->getRequest();
$idObject = $request->getParam('idObject', 0);
$siren = substr($this->siret, 0,9);
$session = new SessionEntreprise($this->siret, $this->id);
$this->view->assign('siren', $siren);
$this->view->assign('siret', $this->siret);
$this->view->assign('raisonSociale', $session->getRaisonSociale());
$ws = new WsScores();
$infos = $ws->getMarques($siren, $idObject);
if ($infos === false) $this->_forward('soap', 'error');
$marques = $infos->result->item;
$this->view->assign('marques', $marques);
$this->view->assign('idObject', $idObject);
$this->view->assign('exportObjet', $marques);
Zend_Registry::get('firebug')->info($infos);
}
/**
* Récupére la page pdf concernant le dépot de marque
* @param unknown_type $idObject
* @param unknown_type $directory
*/
protected function getMarques($idObject, $directory)
{
require_once 'common/curl.php';
$url = 'http://bases-marques.inpi.fr/Typo3_INPI_Marques/getPdf?idObjet='.$idObject.'_FMARK-1,FMARK-2';
$page = getUrl($url, '', '', '', false, '', '', 7);
$body = $page['body'];
//On test si il y a eu une erreur
if($page['code']==200){
$fp=@fopen($directory.'/'.$idObject.'.pdf', 'w');
@fwrite($fp, $body);
@fclose($fp);
}
}
/**
* Affiche le lien pour télécharger le fichier concernant le dépot
*/
public function getmarqueAction()
{
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
$request = $this->getRequest();
$numdepot = $request->getParam('numdepot', '');
if (empty($numdepot)){
echo 'Paramètres incorrects';
exit;
}
$configuration = Zend_Registry::get('configuration');
$directory = realpath($configuration->path->data).'/'.$configuration->path->marques;
$file = $numdepot.'.pdf';
//Le fichier n'existe pas alors on le télécharger
if(!file_exists($directory.'/'.$file)
|| filesize($directory.'/'.$file)==0
|| date('Ymd', filemtime($directory.'/'.$file))!=date('Ymd') ) {
$this->getMarques($numdepot, $directory);
}
usleep(500);
//On vérfie que le fichier existe après le téléchargement
if(file_exists($directory.'/'.$file) && filesize($directory.'/'.$file)>0) {
$href = $this->view->baseUrl().'/fichier/marque/'.$file;
echo '<a href="'.$href.'" target="_blank">Télécharger le PDF de l\'insciption au BOPI.</a>';
} else {
echo 'Document introuvable.';
}
}
public function bodaccpdfAction()
{
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
$request = $this->getRequest();
$type = $request->getParam('type');
$annee = $request->getParam('annee');
$num = $request->getParam('num');
//$num doit être retraité pour être sur 4 position
$c = strlen($num);
for($i=0;$i<4-$c;$i++){
$num = '0'.$num;
}
$configuration = Zend_Registry::get('configuration');
$file = realpath($configuration->path->data)
.'/bodacc/'.$type.'/'.$annee.'/'.
'BODACC_'.$type.'_'.$annee.'_'.$num.'.pdf';
if ( !file_exists($file) ) {
exec('php '.APPLICATION_PATH . "/../batch/getBodaccPdf.php $type $annee $num >> getBodaccPdf.log");
}
if (file_exists($file)) {
$href = $this->view->url(array(
'controller' => 'fichier',
'action' => 'bodacc',
'fichier' => basename($file),
), null, true);
echo "<a target=\"_blank\" href=\"".$href."\">Cliquer ici pour télécharger le fichier.</a>";
} else {
echo "Erreur lors du chargement du fichier.";
}
}
public function annoncenumAction()
{
$this->_helper->layout()->disableLayout();
$request = $this->getRequest();
$siren = $request->getParam('siren');
$ws = new WsScores();
$result = $ws->getAnnoncesNum($siren);
Zend_Registry::get('firebug')->info($result);
$numWS = array();
if (count($result->item)>0) {
foreach ($result->item as $item) {
$numWS[$item->type] = $item->num;
}
}
$types = array('bodacc', 'balo', 'boamp', 'asso');
$num = array();
foreach($types as $type) {
if ( array_key_exists($type, $numWS) ) {
$num['Type'.ucfirst($type)] = $numWS[$type];
}
}
$this->view->assign('num', $num);
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,296 +0,0 @@
<?php
class TelechargementController extends Zend_Controller_Action
{
/**
* Temps de mis en cache en heure
* @var interger
*/
protected $filetime = 8;
/**
* Répertoire de stockage pour le fichier
* @var string
*/
protected $path = '';
/**
* Vérifie ou télécharge le fichier sur une url
* @param string $url
* URL of file to download
* @param mixed $filename
* Override filename
*/
protected function getFile($url, $filename=null)
{
if (!is_dir($this->path)) mkdir($this->path);
require_once 'common/curl.php';
// Recuperation du nom du fichier
if ($filename===null) {
$tableau = explode('/', $url);
$file = $tableau[sizeof($tableau) - 1];
} else {
$file = $filename;
}
// Suppression du fichier si le temps de cache est depasse
if (file_exists($this->path.'/'.$file)){
$dateFile = filemtime($this->path.'/'.$file);
$now = mktime(date('G'), date('i'), date('s'),
date('m') , date('d'), date('Y'));
$maxTime = mktime(date('G',$dateFile)+$this->filetime, date('i',$dateFile),
date('s',$dateFile), date('m',$dateFile),
date('d',$dateFile), date('Y',$dateFile));
if ($maxTime-$now<0) {
unlink($this->path.'/'.$file);
}
}
// Recuperation du fichier sur le serveur
if (!file_exists($this->path.'/'.$file)) {
// On check si le fichier est present sur l'url
$url_tab = getUrl($url, '', '', '', false);
if ($url_tab['code'] == 408 ||
$url_tab['code'] == 400 ||
$url_tab['code'] == 404) {
// Fichier non disponible
return false;
} else {
// Ecriture du fichier sur le serveur en local
$body = $url_tab['body'];
$fp = fopen($this->path.'/'.$file, 'w');
fwrite($fp, $body);
fclose($fp);
}
}
return $file;
}
public function init()
{
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
require_once 'Scores/WsScores.php';
}
/**
* Télécharge la consommation client sous forme de fichier csv et affiche le lien
*/
public function consommationAction()
{
$this->path = APPLICATION_PATH.'/../cache/consommation';
$this->filetime = 1;
$request = $this->getRequest();
$start = $request->getParam('start', false);
//On souhaite récupérer l'url du fichier
if ($start==1) {
$mois = $request->getParam('mois');
$detail = $request->getParam('detail', 0);
$idClient = $request->getParam('idClient', 0);
$login = $request->getParam('login', '');
$all = $request->getParam('all', 0);
$date = substr($mois, 3, 4).substr($mois, 0, 2);
$user = new Scores_Utilisateur();
if (empty($login) && (!$user->isAdmin() && !$user->isSuperAdmin()) ) {
$login = $user->getLogin();
}
$ws = new WsScores();
$reponse = $ws->getLogsClients($date, $detail, $idClient, $login, $all);
if (!empty($reponse->result->Url)) {
echo $reponse->result->Url;
} else {
echo 'FALSE';
}
} else {
$url = $request->getParam('url', '');
$file = $this->getFile($url);
// Le fichier existe sur l'extranet
if ($file && file_exists($this->path.'/'.$file)) {
if (filesize($this->path.'/'.$file) > 0) {
echo '<u><a title="T&eacute;l&eacute;charger le fichier"'.
' target="_blank" href="/fichier/consommation/'.$file.
'">Cliquez-ici pour t&eacute;l&eacute;charger'.
' le fichier.</a></u>';
} else {
echo 'Aucune consommmation enregistr&eacute;e.';
}
}
}
}
/**
* Télécharge les surveillances sous forme de fichier csv et affiche le lien
*/
public function surveillanceAction()
{
$this->path = APPLICATION_PATH.'/../cache/surveillance';
$this->filetime = 4;
$request = $this->getRequest();
$start = $request->getParam('start', false);
if ($start==1) {
$source = $request->getParam('source', '');
$user = new Scores_Utilisateur();
$login = $user->getLogin();
$idClient = $user->getIdClient();
$ws = new WsScores();
$reponse = $ws->getListeSurveillancesCsv($source, $login, $idClient);
if (!empty($reponse->result->Url)) {
echo $reponse->result->Url;
exit;
}
echo 'FALSE';
exit;
} else {
$url = $request->getParam('url', '');
$file = $this->getFile($url);
// Le fichier existe sur l'extranet
if ($file && file_exists($this->path.'/'.$file)) {
if (filesize($this->path.'/'.$file) > 0) {
echo '<u><a title="T&eacute;l&eacute;charger le fichier"'.
' target="_blank" href="/fichier/surveillance/'.$file.
'">Cliquez-ici pour t&eacute;l&eacute;charger'.
' le fichier.</a></u>';
} else {
echo 'Aucune surveillance enregistr&eacute;e.';
}
}
exit;
}
}
/**
* Télécharge le portefeuille sous forme de fichier csv et affiche le lien
* Enter description here ...
*/
public function portefeuilleAction()
{
$this->path = APPLICATION_PATH.'/../cache/surveillance';
$this->filetime = 4;
$request = $this->getRequest();
$start = $request->getParam('start', false);
if ($start==1) {
$user = new Scores_Utilisateur();
$login = $user->getLogin();
$idClient = $user->getIdClient();
$ws = new WsScores();
$reponse = $ws->getPortefeuilleCsv($login, $idClient);
if (!empty($reponse->result->Url)) {
echo $reponse->result->Url;
exit;
}
echo 'FALSE';
exit;
} else {
$url = $request->getParam('url', '');
$file = $this->getFile($url);
// Le fichier existe sur l'extranet
if ($file && file_exists($this->path.'/'.$file)) {
if (filesize($this->path.'/'.$file) > 0) {
echo '<u><a title="T&eacute;l&eacute;charger le fichier"'.
' target="_blank" href="/fichier/portefeuille/'.$file.
'">Cliquez-ici pour t&eacute;l&eacute;charger'.
' le fichier.</a></u>';
} else {
echo 'Aucune surveillance enregistr&eacute;e.';
}
}
exit;
}
}
/**
* Download pdf of bodacc history
*/
public function histopdfAction()
{
$this->path = APPLICATION_PATH.'/../cache/histopdf';
$request = $this->getRequest();
$url = "http://wse.scores-decisions.com:8081/fichier/bodacc";
$q = $request->getParam('q', '');
//Authenticate info
$auth = Zend_Auth::getInstance();
$identity = $auth->getIdentity();
$authinfo = '/login/'.$identity->username.'/hach/'.$identity->password;
$url = $url.$authinfo.'/q/'.$q;
$file = $this->getFile($url, uniqid().'.pdf');
// Le fichier existe sur l'extranet
if ($file && file_exists($this->path.'/'.$file)) {
if (filesize($this->path.'/'.$file) > 0) {
echo '<u><a title="T&eacute;l&eacute;charger le fichier"'.
' target="_blank" href="/fichier/histopdf/'.$file.
'">Cliquez-ici pour t&eacute;l&eacute;charger'.
' le fichier.</a></u>';
} else {
echo "Erreur lors du téléchargement du fichier.";
}
}
exit;
}
/**
* Download bilan pdf file
*/
public function bilanAction()
{
$this->path = APPLICATION_PATH.'/../cache/bilan';
$this->filetime = 40;
$request = $this->getRequest();
$siren = $request->getParam('siren');
$dateCloture = $request->getParam('dateCloture');
$reference = $request->getParam('reference');
//Récupération du l'URL
require_once 'Scores/WsScores.php';
$ws = new WsScores();
$url = $ws->getPiecesBilan($siren, 'T', $dateCloture, $reference);
//Téléchargement
if( $url !== false) {
Zend_Registry::get('firebug')->info($url);
$file = $this->getFile($url);
// Le fichier existe sur l'extranet
if ($file && file_exists($this->path.'/'.$file)) {
if (filesize($this->path.'/'.$file) > 0) {
echo '<br/><u><a title="T&eacute;l&eacute;charger le fichier"'.
' target="_blank" href="/fichier/bilan/'.$file.
'">Cliquez-ici pour t&eacute;l&eacute;charger'.
' le fichier.</a></u>';
} else {
echo "<br/>Erreur lors du téléchargement du fichier.";
}
}
} else {
echo "<br/>Erreur.";
}
}
}

View File

@ -1,440 +0,0 @@
<?php
class UserController extends Zend_Controller_Action
{
/**
* Récupére les valeurs du profil depuis le webservice
* @param unknown_type $login
* @param unknown_type $password
*/
protected function updateProfil($login, $password)
{
Zend_Registry::get('firebug')->info('updateProfil');
$ws = new WsScores();
$InfosLogin = $ws->getInfosLogin($login, $_SERVER['REMOTE_ADDR']);
$identity = new stdClass;
$identity->username = $login;
$identity->password = $password;
$identity->email = $InfosLogin->result->email;
$identity->profil = $InfosLogin->result->profil;
$identity->pref = $InfosLogin->result->pref;
$identity->droits = $InfosLogin->result->droits;
$identity->droitsClients = $InfosLogin->result->droitsClients;
$identity->nom = $InfosLogin->result->nom;
$identity->prenom = $InfosLogin->result->prenom;
$identity->tel = $InfosLogin->result->tel;
$identity->fax = $InfosLogin->result->fax;
$identity->mobile = $InfosLogin->result->mobile;
$identity->id = $InfosLogin->result->id;
$identity->idClient = $InfosLogin->result->idClient;
$identity->reference = $InfosLogin->result->reference;
$identity->nbReponses = $InfosLogin->result->nbReponses;
$identity->typeScore = $InfosLogin->result->typeScore;
$identity->timeout = (!empty($InfosLogin->result->timeout)) ?
$InfosLogin->result->timeout : 1800;
$identity->time = time() + $identity->timeout;
$identity->modeEdition = false;
$identity->acceptationCGU = $InfosLogin->result->acceptationCGU;;
return $identity;
}
public function init()
{
require_once 'Scores/WsScores.php';
$this->view->headLink()->appendStylesheet('/themes/default/styles/user.css', 'all');
}
/**
* Affiche le fomulaire d'edition des paramètres utilisateur
*/
public function indexAction()
{
$user = new Scores_Utilisateur();
if (!$user->checkPerm('MONPROFIL')){
$this->_forward('perms', 'error');
}
$this->view->headLink()->appendStylesheet('/themes/default/styles/form.css', 'all');
$this->view->headScript()->appendFile('/themes/default/scripts/user.js', 'text/javascript');
$request = $this->getRequest();
$messages = '';
$isProfilUpdated = false;
$isPasswordUpdated = false;
$updateResult = false;
$ws = new WsScores();
$login = $request->getParam('login', '');
$op = $request->getParam('op');
if ($request->isPost()) {
$options = $request->getParam('frmOptions', '');
$action = $options['action'];
if ($login=='') $login = $options['login'];
//Enregistrement des données new & update
if (in_array($action, array('new','update'))) {
if ($options['changepwd']!=1) {
$options['password'] = '';
}
if ( in_array($options['profil'], array('Administrateur', 'SuperAdministrateur'))
&& !in_array('monprofil', $options['droits']) ) {
$options['droits'][] = 'monprofil';
}
if( !isset($options['profil']) ) {
$options['profil'] = 'Utilisateur';
}
$reponse = $ws->setInfosLogin($login, $action, $options);
$isProfilUpdated = true;
$message = 'Erreur lors de la mise à jour du compte !';
if ($reponse){
$updateResult = true;
$message = 'Compte mis à jour.';
}
}
}
//Liste de tous les droits
$listeDroits = $ws->getListeDroits();
$droitsLib = array();
foreach($listeDroits->item as $droit) {
$droitsLib[strtoupper($droit->code)] = $droit->desc;
}
$this->view->assign('droitsLib', $droitsLib);
//Liste de toutes les préférences
$listePrefs = $ws->getListePrefs();
$prefsLib = array();
foreach($listePrefs->item as $pref) {
$prefsLib[strtoupper($pref->code)] = $pref->desc;
}
$this->view->assign('prefsLib', $prefsLib);
//Récupération des informations de l'identité
$auth = Zend_Auth::getInstance();
$identity = $auth->getIdentity();
if ($identity->idClient == $options['idClient'] && $identity->username == $login) {
//Modification lors du changement de mot de passe
if ($options['changepwd']==1 && $updateResult) {
$identity->password = md5($login.'|'.$options['password']);
$auth->getStorage()->write($identity);
}
//Mise à jour du profil
if ($isProfilUpdated && $updateResult) {
$identity = $this->updateProfil($identity->username, $identity->password);
$auth->getStorage()->write($identity);
}
//Gestion mode edition en SESSION
if ($action=='update') {
$modeEdition = $request->getParam('modeEdition', false);
if ( $modeEdition ) {
$identity->modeEdition = true;
$auth->getStorage()->write($identity);
}
}
}
if ( $isProfilUpdated || $isPasswordUpdated ) {
$this->view->assign('message', $message);
}
$isAdmin = false;
if ( $identity->profil == 'Administrateur'
|| $identity->profil == 'SuperAdministrateur' ) {
$isAdmin = true;
}
$this->view->assign('isAdmin', $isAdmin);
$isSuperAdmin = false;
if ($identity->profil == 'SuperAdministrateur') {
$isSuperAdmin = true;
}
$this->view->assign('isSuperAdmin', $isSuperAdmin);
Zend_Registry::get('firebug')->info('action : '.$action);
if ($op=='new')
{
$idClient = $request->getParam('idClient', '');
if ($idClient == '') {
$idClient = $identity->idClient;
}
$reponse = $ws->getNextLogin($idClient);
$options->idClient = $idClient;
if ($identity->idClient!=1 && $identity->profil!='SuperAdministrateur') {
$options->profil = 'Utilisateur';
}
$this->view->assign('options', $options);
$this->view->assign('loginNew', $reponse->result->racine);
$this->view->assign('droitsClients', explode(' ', strtolower($reponse->result->droitsClients)));
$this->view->assign('action', 'new');
$this->view->assign('pref', array());
}
elseif (!empty($op) || $op!='new')
{
if ( !empty($login) && $identity->username != $login ) {
Zend_Registry::get('firebug')->info('getInfosLogin');
$reponse = $ws->getInfosLogin($login, $_SERVER['REMOTE_ADDR']);
$this->view->assign('options', $reponse->result);
$this->view->assign('loginVu', $reponse->result->login);
$this->view->assign('droits', explode(' ', strtolower($reponse->result->droits)));
$this->view->assign('droitsClients', explode(' ', $reponse->result->droitsClients));
} else {
$this->view->assign('options', $identity);
$this->view->assign('loginVu', $identity->username);
$this->view->assign('droits', explode(' ', strtolower($identity->droits)));
$this->view->assign('droitsClients', explode(' ', $identity->droitsClients));
}
$this->view->assign('loginNew', '');
$this->view->assign('action', 'update');
$this->view->assign('pref', explode(' ',$identity->pref));
}
}
/**
* Renvoi vers le wiki
*/
public function documentationAction()
{
$user = new Scores_Utilisateur();
$login = $user->getLogin();
$password = $user->getPassword();
$url = 'http://infos.scores-decisions.com/?do=login&u='.$login.'&p='.$password;
$this->_redirect($url);
}
/**
* Téléchargement de la consommation au format CSV
*/
public function consoAction()
{
$this->view->headScript()->appendFile('/themes/default/scripts/conso.js', 'text/javascript');
$user = new Scores_Utilisateur();
$request = $this->getRequest();
$idClient = $request->getParam('idClient', $user->getIdClient());
$login = $request->getParam('login', '');
$this->view->assign('idClient', $idClient);
$this->view->assign('login', $login);
$this->view->assign('profil', $user->getProfil());
}
/**
* Renvoi vers le formulaire utilisateur avec les paramètres de la requete
*/
public function editAction()
{
$params = $this->getRequest()->getParams();
$this->_forward('index', 'user', null, $params);
}
/**
* Suppression d'un utilisateur
*/
public function deleteAction()
{
$request = $this->getRequest();
$login = $request->getParam('login');
$action = 'delete';
$ws = new WsScores();
$ws->setInfosLogin($login, $action);
//Redirect
$this->_forward('liste');
}
/**
* Activation d'un utilisateur
*/
public function enableAction()
{
$request = $this->getRequest();
$login = $request->getParam('login');
$action = 'enable';
$ws = new WsScores();
$ws->setInfosLogin($login, $action);
//Redirect
$this->_forward('liste');
}
/**
* Désactivation d'un utilisateur
*/
public function disableAction()
{
$request = $this->getRequest();
$login = $request->getParam('login');
$action = 'disable';
$ws = new WsScores();
$ws->setInfosLogin($login, $action);
//Redirect
$this->_forward('liste');
}
/**
* Méthode AJAX pour modifier le password d'un utilisateur
*/
public function changepwdAction()
{
//Redirect
}
/**
* Affiche la liste des utiliateurs
*/
public function listeAction()
{
$user = new Scores_Utilisateur();
$request = $this->getRequest();
$idClient = $request->getParam('idClient', $user->getIdClient());
if (!$user->isSuperAdmin() && !$user->isAdmin()) {
$this->renderScript('error/perms.phtml');
}
if ($user->isAdmin()){
$idClient = $user->getIdClient();
}
$ws = new WsScores();
$infos = $ws->getListeUtilisateurs($user->getLogin(), $idClient);
$utilisateurs = $infos->result->item;
$this->view->assign('utilisateurs', $utilisateurs);
$this->view->assign('idClient', $idClient);
}
/**
* Gestion de l'authentification
*/
public function loginAction()
{
$this->view->inlineScript()
->appendFile('/libs/jquery/jquery.js')
->appendFile('/libs/jquery/jquery.infieldlabel.min.js');
//@todo : gestion des affichages particuliers pour les clients
$this->view->headTitle()->append('Connexion');
$form = new 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_AuthAdapter($login, md5($login.'|'.$pass));
$result = $auth->authenticate($authAdapter);
if (!$result->isValid()){
$this->view->message = '';
Zend_Registry::get('firebug')->info($result);
foreach ($result->getMessages() as $message) {
$this->view->message.= $message."<br/>";
}
} else {
$url = '';
if (Zend_Session::namespaceIsset('login')){
$session = new Zend_Session_Namespace('login');
if (isset($session->url)) {
$url = $session->url;
}
}
if (!empty($url) && $url!='/user/login' && $url!='/user/logout' && $url!='/localauth'){
$this->_redirect($url);
}
$this->_redirect('/');
}
}
}
$this->_helper->layout()->disableLayout();
$this->render('login');
}
/**
* Gestion de la déconnexion
*/
public function logoutAction()
{
Zend_Auth::getInstance()->clearIdentity();
$this->_helper->layout()->disableLayout();
$request = $this->getRequest();
$message = $request->getParam('message');
$this->view->assign('message', $message);
$refresh = 5;
$url = 'http://'.$_SERVER['SERVER_NAME'].$this->view->url(array(
'controller' => 'user',
'action' => 'login',
));
$this->view->assign('url', $url);
$this->view->assign('refresh', $refresh);
$this->view->headMeta()->appendHttpEquiv('refresh', $refresh.'; url='.$url);
$this->render('logout');
}
/**
* Mettre à jour le mode edition en session sans refresh de la page
*/
public function editionsessionAction()
{
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
$request = $this->getRequest();
$mode = $request->getParam('mode', 'false');
$auth = Zend_Auth::getInstance();
$identity = $auth->getIdentity();
if ($identity->idClient == 1) {
if ($mode == 'false') {
$identity->modeEdition = false;
echo 0;
} else {
$identity->modeEdition = true;
echo 1;
}
$auth->getStorage()->write($identity);
} else {
echo 0;
}
}
/**
* Changer le theme de l'utilisateur
*/
public function changethemeAction()
{
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
$request = $this->getRequest();
$nom = $request->getParam('nom', 'default');
$auth = Zend_Auth::getInstance();
$identity = $auth->getIdentity();
$identity->theme = $nom;
$auth->getStorage()->write($identity);
//Rediriger vers l'écran de recherche
$this->_redirect('/');
}
}

BIN
application/languages/en.mo Normal file

Binary file not shown.

2985
application/languages/en.po Normal file

File diff suppressed because it is too large Load Diff

BIN
application/languages/fr.mo Normal file

Binary file not shown.

3339
application/languages/fr.po Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,68 @@
<?php
//Menu
$this->translate('RECHERCHES');
$this->translate('Rechercher une entreprise');
$this->translate('Rechercher par dirigeant');
$this->translate('Recherche Internationale');
$this->translate('Rechercher une annonce');
$this->translate('Rechercher par actionnaire');
$this->translate('Dernière recherche');
$this->translate('Liste des dernières recherches');
$this->translate('Centrale IparI');
$this->translate('IDENTITE');
$this->translate('Fiche d\'identité');
$this->translate('Fiche Procédure Collective');
$this->translate('Liste des établissements');
$this->translate('Liens inter-entreprises');
$this->translate('Informations Groupe');
$this->translate('Modifications Insee');
$this->translate('DIRIGEANTS');
$this->translate('Liste des dirigeants');
$this->translate('Historique des dirigeants');
$this->translate('ELEMENTS FINANCIERS');
$this->translate('Synthèse');
$this->translate('Bilans, Compte de résultat');
$this->translate('Ratios');
$this->translate('Flux de trésorerie');
$this->translate('Liasse fiscale');
$this->translate('Bourse & Cotations');
$this->translate('Relations bancaires');
$this->translate('ELEMENTS JURIDIQUES');
$this->translate('Annonces Légales');
$this->translate('Information Réglementée');
$this->translate('Compétences Territoriales');
$this->translate('Conventions collectives');
$this->translate('Marques déposées');
$this->translate('BANQUE DE FRANCE');
$this->translate('27. Panorama');
$this->translate('28. Concours Bancaires');
$this->translate('29. Impayés');
$this->translate('40. Relations Bancaires');
$this->translate('51. Dirigeants');
$this->translate('Autres');
$this->translate('EVALUATION');
$this->translate('IndiScore');
$this->translate('Rapport de synthèse');
$this->translate('Rapport complet');
$this->translate('Valorisation');
$this->translate('Scoring Credit Safe');
$this->translate('Enquête commerciale');
$this->translate('PIECES OFFICIELLES');
$this->translate('Commande de Pièces');
$this->translate('Comptes annuels');
$this->translate('Actes & Statuts');
$this->translate('Suivi Privilèges');
$this->translate('OPTIONS');
$this->translate('Nouveautés');
$this->translate('Mes options');
$this->translate('Mes surveillances');
$this->translate('Surveillances fichier');
$this->translate('Mon portefeuille');
$this->translate('Administration');
$this->translate('Surveillances');
$this->translate('Se déconnecter');
$this->translate('GESTION S&D');
$this->translate('Gestion');
$this->translate('Saisie / Edition');
$this->translate('Saisie Fiche Etrangère');
?>

View File

@ -0,0 +1,7 @@
<p>&copy; 2006-<?php echo date('Y')?> Scores &amp; D&eacute;cisions SAS -
<?=$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>

View File

@ -0,0 +1,43 @@
<?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="<?=$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>
</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,21 @@
<?php echo $this->doctype()?>
<html>
<head>
<?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()?>
</body>
</html>

View File

@ -0,0 +1,19 @@
<?php
class Zend_View_Helper_Editable extends Zend_View_Helper_Abstract
{
public function Editable($name, $value, $category)
{
$class = 'editable-change';
if ( null === $value ) {
$value = $name;
$class = 'editable';
}
if ( !empty($class) ) {
$class = 'class="'.$class.' '.$category.'"';
}
$html = '<span id="'.$name.'" '.$class.'>';
$html.= $value;
$html.= '</span>';
return $html;
}
}

View File

@ -0,0 +1,21 @@
<?php
class Zend_View_Helper_SiretTexte extends Zend_View_Helper_Abstract
{
public function SiretTexte($siret)
{
if (intval(substr($siret,0,9))<1000) {
return '';
}
$fSiret = substr($siret, 0, 3).' '.
substr($siret, 3, 3).' '.
substr($siret, 6, 3);
$nic = substr($siret, 9, 5);
if (intval($nic)>0) {
$fSiret.= ' <i>'.$nic.'</i>';
}
return $fSiret;
}
}

View File

@ -1,18 +0,0 @@
<?php
class Application_Model_Aide extends Zend_Db_Table_Abstract
{
protected $_name = 'aide';
/**
* Enter description here ...
* @param array $keys
*/
public function texte($methode, $keys)
{
$sql = $this->select()
->where('methode = ?', $methode)
->where('champ IN ?', $keys);
return $this->fetchAll($sql);
}
}

View File

@ -1,74 +0,0 @@
<?php
class Application_Model_BilanSaisie extends Zend_Db_Table_Abstract
{
protected $_name = 'bilansaisie';
/**
* Enregistre les informations nécessaire pour la saisie
* @param unknown_type $email
* @param unknown_type $method
* @param unknown_type $confidentiel
* @param unknown_type $siren
* @param unknown_type $bilanCloture
* @param unknown_type $format
* @param unknown_type $bilanDuree
*/
public function setInformations($cliendId, $utilisateurId, $utilisateurLogin, $email, $method, $confidentiel, $siren, $bilanCloture, $format, $bilanDuree)
{
$env = 'PRD';
$data = array(
'clientId' => $cliendId,
'utilisateurId' => $utilisateurId,
'utilisateurLogin' => $utilisateurLogin,
'utilisateurEmail' => $email,
'method' => $method,
'confidentiel' => $confidentiel,
'siren' => $siren,
'env' => $env,
'fichier' => '',
'bilanCloture' => $bilanCloture,
'format' => $format,
'bilanDuree' => $bilanDuree,
'dateInsert' => date('Y-m-d H:i:s'),
);
return $this->insert($data);
}
/**
* Retourne les informations
* @param string $ref
*/
public function getInfosBilan($ref)
{
$sql = $this->select()->where(" ref='$ref'");
$result = $this->fetchAll($sql)->toArray();
return $result[0];
}
/**
* Enregistre le nom du fichier
* @param string $ref
* @param string $name
*/
public function setFilename($ref, $name)
{
$data = array( 'fichier' => $name );
$this->update($data, "ref='$ref'");
}
public function listBilans()
{
$sql = $this->select()
->from($this, array('ref','utilisateurId','confidentiel','siren','bilanCloture','bilanDuree','fichier','env'))
->where("dateEnvoi='0000-00-00 00:00:00' AND fichier!=''");
$result = $this->fetchAll($sql)->toArray();
return $result;
}
public function setDateEnvoi($ref)
{
$data = array( 'dateEnvoi' => date('Y-m-d H:m:s') );
return $this->update($data, "ref='$ref'");
}
}

View File

@ -1,6 +0,0 @@
<?php
class Application_Model_Naf5 extends Zend_Db_Table_Abstract
{
protected $_name = 'tabnaf5';
}

View File

@ -1,42 +0,0 @@
<?php
class Application_Model_RapportsGiants extends Zend_Db_Table_Abstract
{
protected $_name = 'rapports_giants';
public function getReportById($companyId)
{
$sql = $this->select('report')
->where('companyId = ?', $companyId);
$result = $this->getAdapter()->fetchAll($sql);
return ($result);
}
public function getReportByIdAndType($companyId, $type)
{
if($type == 'CR') {
$where = 'type="FU" or type="CO"';
} else $where = 'type = "FU"';
$sql = $this->select()
->where('companyId = ? and '.$where, $companyId);
$result = $this->getAdapter()->fetchRow($sql);
if($type == 'FU') {
$where = $this->getAdapter()->quoteInto('companyId = ? AND type = "CR" OR type = "CO"' , $companyId);
//var_dump($where);exit;
$this->delete($where);
} else if($type == 'CO') {
$where = $this->getAdapter()->quoteInto('companyId = ? and type = "CR"', $companyId);
$this->delete($where);
}
return ($result['report']);
}
public function getReportDate($companyId, $type)
{
$sql = $this->select('date')
->where('companyId = ?', $companyId)
->where('type = ?', $type);
$result = $this->getAdapter()->fetchAll($sql);
return ($result);
}
}
?>

View File

@ -0,0 +1,118 @@
<?php
class AideController extends Zend_Controller_Action
{
protected $theme;
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init()
{
if (Zend_Registry::isRegistered('logger')) {
$this->logger = Zend_Registry::get('logger');
}
// --- 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();
$this->logger->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

@ -0,0 +1,276 @@
<?php
class AuthController extends Zend_Controller_Action
{
protected $theme;
protected $partnerConfig = array(
'inextenso' => array(
'logo' => 'logo-in-extenso.gif',
'clientId' => 195,
'serviceCode' => 'SSO',
'authType' => 'userSSO',
'login' => 'mail',
'token' => 'token',
)
);
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init()
{
if (Zend_Registry::isRegistered('logger')) {
$this->logger = Zend_Registry::get('logger');
}
// --- Theme
$this->theme = Zend_Registry::get('theme');
}
/**
* Point d'entrée pour les connexions partenaires.
* L'utilisateur s'identifie sur son portail habituel.
*/
public function indexAction()
{
// --- Désactiver le layout
$this->_helper->layout()->disableLayout();
$this->view->headLink()
->appendStylesheet($this->theme->pathStyle.'/inexweb.css', 'all')
->appendStylesheet($this->theme->pathStyle.'/user.css', 'all');
$request = $this->getRequest();
/**
* Get partner name - see route in bootstrap
*/
$partner = $request->getParam('partner');
if ( array_key_exists($partner, $this->partnerConfig) ) {
$config = $this->partnerConfig[$partner];
$this->view->logo = $config['logo'];
$params = $request->getParams();
$objectParams = array();
foreach ($params as $label => $value) {
if (in_array($label, array('controller', 'action'))) continue;
$object = new stdClass();
$object->label = $label;
$object->value = $value;
$objectParams[] = $object;
}
$this->view->Params = $objectParams;
$login = $params[$config['login']];
$part = strstr($login, '@', true);
if ($part !== false) {
$login = $part;
}
$token = $params[$config['token']];
try {
$parameters = new stdClass();
$parameters->client = $config['clientId'];
$parameters->login = $login;
$parameters->token = $token;
$parameters->params = $objectParams;
$ws = new Scores_Ws_Client('account', '0.1');
$hash = $ws->ssoAuthenticate($parameters);
// --- Utilisateur inexistant
if ( $hash === 'false' || $hash === false ) {
$this->view->NoUser = true;
$urlParams = array('controller'=>'auth', 'action'=>'userssoform');
$urlParams = array_merge($params, $urlParams);
$this->view->FormUrlParams = $urlParams;
}
// --- Redirection
else {
$auth = Zend_Auth::getInstance();
// --- Set partial identity
$identity = new stdClass();
$identity->username = $login;
$identity->password = $hash;
$auth->getStorage()->write($identity);
// --- End Set partial identity
// --- Get InfosLogin
$adressIp = $_SERVER['REMOTE_ADDR'];
$parameters = new stdClass();
$parameters->login = $login;
$parameters->ipUtilisateur = $adressIp;
$parameters->from = 'auth';
try {
$ws = new Scores_Ws_Client('gestion', '0.3');
$InfosLogin = $ws->getInfosLogin($parameters);
$this->logger->info(print_r($InfosLogin,1));
if ( is_string($InfosLogin) || $InfosLogin->error->errnum != 0 ) {
$this->view->Error = true;
} else {
$user = new Scores_Utilisateur();
$identity = $user->updateProfil($InfosLogin);
$auth->getStorage()->write($identity);
// --- Redirect
$this->redirect('/');
}
} catch ( Exception $e ) {
switch ( $e->getCode() ) {
case 'MSG':
$this->view->Message = $e->getMessage();
break;
default:
$this->view->Error = true;
break;
}
}
// --- End Get InfosLogin
}
} catch ( Exception $e ) {
switch ( $e->getCode() ) {
case 'MSG':
$this->view->Message = $e->getMessage();
break;
default:
$this->view->Error = true;
break;
}
}
} else {
$this->view->Message = "Erreur dans les paramètres.";
}
}
/**
* Affichage du formulaire pour l'inscription des utilisateurs
*/
public function userssoformAction()
{
// --- Désactiver le layout
$this->_helper->layout()->disableLayout();
$this->view->headLink()->appendStylesheet($this->theme->pathStyle.'/user.css', 'all');
$request = $this->getRequest();
/**
* Get partner name - see route in bootstrap
*/
$partner = $request->getParam('partner');
if ( array_key_exists($partner, $this->partnerConfig) ) {
$config = $this->partnerConfig[$partner];
$this->view->logo = $config['logo'];
$params = $request->getParams();
$objectParams = array();
foreach ($params as $label => $value) {
if (in_array($label, array('controller', 'action'))) continue;
$object = new stdClass();
$object->label = $label;
$object->value = $value;
$objectParams[] = $object;
}
$this->view->Params = $objectParams;
$login = $params[$config['login']];
$part = strstr($login, '@', true);
if ($part !== false) {
$login = $part;
}
$token = $params[$config['token']];
$this->view->NoUser = true;
// --- Set form value
$this->view->FormPartner = $partner;
$this->view->FormIdentifiant = $login;
$this->view->FormCourriel = $request->getParam('mail');
$this->view->FormSiret = $request->getParam('siret');
$this->view->FormNom = $request->getParam('lastname');
$this->view->FormPrenom = $request->getParam('name');
}
else {
$this->view->Message = "Erreur dans les paramètres.";
}
}
/**
* Creation d'un utilisateur en SSO
*/
public function userssocreateAction()
{
$this->_helper->layout()->disableLayout();
$request = $this->getRequest();
$partner = $request->getParam('partner');
if ( array_key_exists($partner, $this->partnerConfig) ) {
$config = $this->partnerConfig[$partner];
$this->view->logo = $config['logo'];
$data = array(
'idClient' => $config['clientId'],
'login' => $request->getParam('login'),
'email' => $request->getParam('email', ''),
'actif' => 1,
'nom' => $request->getParam('nom', ''),
'prenom' => $request->getParam('prenom', ''),
'siret' => str_replace(' ', '', $request->getParam('siret', '')),
'tel' => str_replace(array(' ','.'), array('',''), $request->getParam('tel', '')),
'Service' => $config['serviceCode'],
);
try {
$ws = new Scores_Ws_Client('account', '0.1');
$parameters = new stdClass();
$parameters->data = json_encode($data);
$created = $ws->setUserSSO($parameters);
if ($created === false ) {
$this->view->Message = "Erreur lors de la création de votre compte.";
} else {
$this->view->UserCreated = true;
// --- Data to go back
$params = $request->getParams();
$urlArgs = array();
foreach ($params as $label => $value) {
if (in_array($label, array('controller', 'action'))) continue;
if (substr($label, 0, 2) == 'P-') {
$urlArgs[substr($label, 2)] = $value;
}
}
$urlArgs['partner'] = 'inextenso';
$this->view->UrlArgs = $urlArgs;
}
} catch ( Exception $e ) {
switch ( $e->getCode() ) {
case 'MSG':
$this->view->Message = $e->getMessage();
break;
default:
$this->view->Error = true;
break;
}
}
} else {
$this->view->Message = "Erreur dans les paramètres.";
}
}
/**
* 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

@ -1,11 +1,28 @@
<?php
class BdfController extends Zend_Controller_Action
{
protected $theme;
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init()
{
if (Zend_Registry::isRegistered('logger')) {
$this->logger = Zend_Registry::get('logger');
}
// --- Theme
$this->theme = Zend_Registry::get('theme');
}
public function indexAction()
{
$request = $this->getRequest();
//Type de module
$module = $request->getParam('module', '');
$siret = $request->getParam('siret', '');
@ -16,18 +33,18 @@ class BdfController extends Zend_Controller_Action
$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 == '') {
@ -35,30 +52,30 @@ class BdfController extends Zend_Controller_Action
} else {
$title .= substr($siren,0,9);
}
$this->view->headTitle()->append('Banque de France - '.$titre);
$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', '');
@ -69,20 +86,20 @@ class BdfController extends Zend_Controller_Action
$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);
$this->logger->info($module);
$content = array();
require_once 'Scores/Bdf.php';
$bdf = new BDF();
//Mode multi module
if ($type=='u') {
if (is_array($module)) {
@ -136,7 +153,7 @@ class BdfController extends Zend_Controller_Action
}
$this->view->assign('content', $content);
}
public function module27Action()
{
$request = $this->getRequest();
@ -144,7 +161,7 @@ class BdfController extends Zend_Controller_Action
$params['bdfmodule'] = array(27);
$this->_forward('module', null, null, $params);
}
public function module28Action()
{
$request = $this->getRequest();
@ -152,7 +169,7 @@ class BdfController extends Zend_Controller_Action
$params['bdfmodule'] = array(28);
$this->_forward('module', null, null, $params);
}
public function module29Action()
{
$request = $this->getRequest();
@ -160,7 +177,7 @@ class BdfController extends Zend_Controller_Action
$params['bdfmodule'] = array(29);
$this->_forward('module', null, null, $params);
}
public function module40Action()
{
$request = $this->getRequest();
@ -168,7 +185,7 @@ class BdfController extends Zend_Controller_Action
$params['bdfmodule'] = array(40);
$this->_forward('module', null, null, $params);
}
public function module51Action()
{
$request = $this->getRequest();
@ -176,6 +193,6 @@ class BdfController extends Zend_Controller_Action
$params['bdfmodule'] = array(51);
$this->_forward('module', null, null, $params);
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,138 @@
<?php
class DirigeantController extends Zend_Controller_Action
{
protected $theme;
protected $siret;
protected $id;
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init()
{
if (Zend_Registry::isRegistered('logger')) {
$this->logger = Zend_Registry::get('logger');
}
// --- Theme
$this->theme = Zend_Registry::get('theme');
$request = $this->getRequest();
$this->siret = $request->getParam('siret');
$this->id = $request->getParam('id', 0);
require_once 'Scores/WsScores.php';
}
/**
* Affichage de la liste des dirigeants
*/
public function listeAction()
{
$request = $this->getRequest();
$autrePage = $this->getRequest()->getParam('apage');
$siren = substr($this->siret, 0, 9);
if (empty($autrePage)) {
$this->view->headTitle()->prepend('Liste des dirigeants');
$this->view->headTitle()->prepend('Siret '.$this->siret);
}
$ws = new WsScores();
$infos = $ws->getDirigeants($siren);
if ($infos === false){
$this->forward('soap', 'error');
}
$dirigeants = $infos->result->item;
$user = new Scores_Utilisateur();
$session = new Scores_Session_Entreprise($this->siret, $this->id);
if ($user->checkPerm('dirigeantsop')){
$href = $this->view->url(array('controller'=>'dirigeant', 'action'=>'op', 'siret'=>$this->siret), 'default', true);
$this->view->assign('dirigeantsop', $href);
}
$this->view->assign('edition', $user->checkModeEdition());
$this->view->assign('accessWorldCheck', $user->checkPerm('WORLDCHECK'));
$this->view->assign('siren', $siren);
$this->view->assign('siret', $this->siret);
$this->view->assign('raisonSociale', $session->getRaisonSociale());
$this->view->assign('dirigeants', $dirigeants);
$this->view->assign('exportObjet', $dirigeants);
$this->view->assign('AutrePage', $this->getRequest()->getParam('apage'));
$this->view->assign('surveillance', $user->checkPerm('survdirigeants'));
}
/**
* Affichage de l'historiques des dirigeants
*/
public function histoAction()
{
$siren = substr($this->siret, 0, 9);
$this->view->headTitle()->prepend('Historique des dirigeants');
$this->view->headTitle()->prepend('Siret '.$this->siret);
$ws = new WsScores();
$infos = $ws->getDirigeants($siren, true);
if ($infos === false){
$this->_forward('soap', 'error');
}
$dirigeants = $infos->result->item;
$session = new Scores_Session_Entreprise($this->siret, $this->id);
$this->view->assign('dirigeants', $dirigeants);
$this->view->assign('exportObjet', $dirigeants);
$this->view->assign('siren', $siren);
$this->view->assign('siret', $this->siret);
$this->view->assign('raisonSociale', $session->getRaisonSociale());
$this->view->assign('infos', $infos);
$user = new Scores_Utilisateur();
$this->view->assign('surveillance', $user->checkPerm('survdirigeants'));
}
public function opAction()
{
$siren = substr($this->siret, 0, 9);
$this->view->headTitle()->prepend('Liste des dirigeants opérationnels');
$this->view->headTitle()->prepend('Siret '.$this->siret);
$ws = new WsScores();
$infos = $ws->getDirigeantsOp($siren);
if ($infos === false){
$this->_forward('soap', 'error');
}
$dirigeants = $infos->item;
$session = new Scores_Session_Entreprise($this->siret, $this->id);
$this->view->assign('siren', $siren);
$this->view->assign('siret', $this->siret);
$this->view->assign('raisonSociale', $session->getRaisonSociale());
$this->view->assign('dirigeants', $dirigeants);
$this->view->assign('exportObjet', $dirigeants);
$this->view->assign('AutrePage', $this->getRequest()->getParam('apage'));
$user = new Scores_Utilisateur();
$this->view->assign('accessWorldCheck', $user->checkPerm('WORLDCHECK'));
$this->view->assign('surveillance', $user->checkPerm('survdirigeants'));
$this->view->assign('edition', $user->checkModeEdition());
}
}

View File

@ -0,0 +1,107 @@
<?php
class ErrorController extends Zend_Controller_Action
{
protected $theme;
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init()
{
if (Zend_Registry::isRegistered('logger')) {
$this->logger = Zend_Registry::get('logger');
}
// --- Theme
$this->theme = Zend_Registry::get('theme');
}
public function errorAction()
{
$params = $this->getRequest()->getParams();
$unknow = array('MSOffice', '_vti_bin', 'crossdomain.xml');
if (in_array($params['controller'], $unknow)){
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
echo '';
} else {
$errors = $this->_getParam('error_handler');
switch ($errors->type) {
case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ROUTE:
case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_CONTROLLER:
case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ACTION:
// 404 error -- controller or action not found
$this->getResponse()->setHttpResponseCode(404);
$this->view->message = 'Page not found';
break;
default:
// application error
$this->getResponse()->setHttpResponseCode(500);
$this->view->message = 'Application error';
break;
}
$user = new Scores_Utilisateur();
//Envoyer les erreurs par mail
if (APPLICATION_ENV != 'development') {
$message = '';
$message.= 'Erreur Applicative : ';
$message.= "\n";
$message.= 'Message : '.$errors->exception->getMessage();
$message.= "\n";
$message.= 'Utilisateur : '.$user->getLogin();
$message.= "\n";
$message.= "File :".$errors->exception->getFile().", Ligne : ".$errors->exception->getLine();
$message.= "\n";
$message.= "Detail :\n".$errors->exception->getTraceAsString();
$message.= "\n\n";
$message.= "Request Parameters :\n ".print_r($this->getRequest()->getParams(), true)."\n";
$message.= "Referer : ".$_SERVER['HTTP_REFERER']."\n";
$c = Zend_Registry::get('config');
$mail = new Scores_Mail_Method();
$mail->setSubject('[ERREUR APPLICATIVE] - '.$c->profil->server->name.' -'.date('Ymd'));
$mail->setBodyText($message);
$mail->setFromKey('support');
$mail->addToKey('supportdev');
$mail->execute();
}
// Log exception, if logger available
if ($log = $this->getLog()) {
$log->crit($this->view->message, $errors->exception);
}
// conditionally display exceptions
if ($this->getInvokeArg('displayExceptions') == true) {
$this->view->exception = $errors->exception;
}
$this->view->request = $errors->request;
}
}
public function soapAction(){}
public function permsAction(){}
public function paramsAction(){}
public function getLog()
{
$bootstrap = $this->getInvokeArg('bootstrap');
if (!$bootstrap->hasPluginResource('Log')) {
return false;
}
$log = $bootstrap->getResource('Log');
return $log;
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,447 @@
<?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',
);
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init()
{
if (Zend_Registry::isRegistered('logger')) {
$this->logger = Zend_Registry::get('logger');
}
// --- 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];
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,131 @@
<?php
class IndexController extends Zend_Controller_Action
{
protected $theme;
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init()
{
if (Zend_Registry::isRegistered('logger')) {
$this->logger = Zend_Registry::get('logger');
}
}
/**
* Page d'accueil et de redirection
*/
public function indexAction()
{
$request = $this->getRequest();
$page = $request->getParam('page');
if ($page == 'annonces')
{
$siret = $request->getParam('siret');
$source = $request->getParam('source');
$idAnn = $request->getParam('idAnn');
$lien = '/juridique/annonces/siret/'.$siret;
if (!empty($source)) $lien.= '/source/'.$source;
if (!empty($idAnn)) $lien.= '/idAnn/'.$idAnn;
$this->_redirect($lien);
}
elseif ( Zend_Registry::get('theme')->name=='mobile' )
{
//Afficher le menu pour la version mobile
}
else
{
$this->_forward('entreprise', 'recherche');
}
}
/**
* Retourne l'url pour le csv d'export du portefeuille
*/
public function portefeuillecsvAction()
{
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
//'login' and 'hach' detecte from AuthAdapter
$request = $this->getRequest();
$version = $request->getParam('v', 1);
if (intval($version) == 2) {
$log = Zend_Registry::get('config')->profil->path->shared.'/log/altisys.log';
$user = new Scores_Utilisateur();
$login = $user->getLogin();
$idClient = $user->getIdClient();
$file = 'listesurv-score-'.$login.'-'.$idClient.'.csv';
$content_type = 'application/csv-tab-delimited-table';
$c = Zend_Registry::get('config');
$path = $c->profil->path->shared.'/files/';
//Envoi du fichier sur la sortie standard
if ( file_exists($path.$file) ) {
header('Content-Transfer-Encoding: none');
header('Content-type: ' . $content_type.'');
header('Content-Length: ' . filesize($path.$file));
header('Content-MD5: ' . base64_encode(md5_file($path.$file)));
header('Content-Disposition: filename="' . basename($path.$file) . '"');
header('Cache-Control: private, max-age=0, must-revalidate');
header('Pragma: public');
ini_set('zlib.output_compression', '0');
echo file_get_contents($path.$file);
file_put_contents($log, date('Y-m-d H:i:s')." APPEL ALTISYS - OK $file\n", FILE_APPEND);
} else {
echo 'Impossible de charger le fichier.';
file_put_contents($log, date('Y-m-d H:i:s')." APPEL ALTISYS - ERREUR $file\n", FILE_APPEND);
}
} else {
require_once 'Scores/WsScores.php';
$user = new Scores_Utilisateur();
$login = $user->getLogin();
$idClient = $user->getIdClient();
$ws = new WsScores();
$reponse = $ws->getPortefeuilleCsv($login, $idClient);
$log = Zend_Registry::get('config')->profil->path->shared.'/log/altisys.log';
if ($reponse === false){
file_put_contents($log, date('Y-m-d H:i:s')." - URL = ERREUR\n", FILE_APPEND);
echo "Erreur";
} elseif (!empty($reponse->result->Url)) {
file_put_contents($log, date('Y-m-d H:i:s')." - URL = ".$reponse->result->Url."\n", FILE_APPEND);
echo $reponse->result->Url;
}
}
}
public function odeaAction()
{
$this->redirect('http://odea.scores-decisions.com');
}
/**
* Display browser agent
*/
public function browserAction()
{
$info = get_browser();
echo $_SERVER['HTTP_USER_AGENT'];
echo "<pre>";
print_r($info);
echo "</pre>";
exit;
}
}

View File

@ -0,0 +1,701 @@
<?php
class JuridiqueController extends Zend_Controller_Action
{
protected $theme;
protected $siret = null;
protected $id = 0;
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init()
{
if (Zend_Registry::isRegistered('logger')) {
$this->logger = Zend_Registry::get('logger');
}
// --- Theme
$this->theme = Zend_Registry::get('theme');
$request = $this->getRequest();
$this->siret = $request->getParam('siret');
$this->id = $request->getParam('id', 0);
require_once 'Scores/WsScores.php';
}
/**
* Affichage de la liste des annonces ou d'une annonce
*/
public function annoncesAction()
{
$request = $this->getRequest();
$autrePage = $request->getParam('apage');
$idAnn = $request->getParam('idAnn', null);
$siren = substr($this->siret, 0,9);
$vue = $request->getParam('vue', 'bodacc');
$source = $request->getParam('source');
if (!empty($source)) {
switch ($source){
case 1: $vue = 'bodacc'; break;
case 2: $vue = 'balo'; break;
case 3: $vue = 'asso'; break;
}
}
$session = new Scores_Session_Entreprise($this->siret, $this->id);
$fj = $session->getFormeJuridique();
if ($fj > 9000 && $fj < 9999 && intval($siren) == 0) {
$vue = 'asso';
}
$this->view->assign('id', $session->getId());
$this->view->assign('siren', $siren);
$this->view->assign('siret', $this->siret);
$this->view->assign('raisonSociale', $session->getRaisonSociale());
$this->view->assign('AutrePage', $autrePage);
if ($session->getSource() == '006' || $session->getSourceId() == '007') {
$this->view->assign('AutreSource', true);
} else {
$this->view->assign('vue', $vue);
// Pagination
$page = $request->getParam('page', 1);
if ($page <= 0) {
$page = 1;
}
$nbAffichage = 20;
$position = ($page - 1) * $nbAffichage;
$ws = new WsScores();
switch ($vue) {
case 'balo':
$infos = $ws->getAnnoncesBalo($siren, $idAnn, null, $position, $nbAffichage);
break;
case 'asso':
if (intval($siren) == 0 && substr($session->getAutreId(),0,1) == 'W') {
$infos = $ws->getAnnoncesAsso($session->getAutreId(), $idAnn, null, $position, $nbAffichage);
} elseif (intval($siren) != 0) {
$infos = $ws->getAnnoncesAsso($siren, $idAnn, null, $position, $nbAffichage);
} else {
$idAnn = $session->getSourceId();
$this->redirect($this->view->url(array('controller'=>'juridique',
'action'=>'annonce', 'siret'=>$this->siret, 'id'=>$this->id,
'idAnn'=>$idAnn, 'vue'=>$vue), 'default', true));
}
break;
case 'bomp':
$filtre = $request->getParam('filtre', 'A');
$this->view->assign('filtre', $filtre);
$this->logger->info("getAnnoncesBoamp");
$infos = $ws->getAnnoncesBoamp($siren, $idAnn, $filtre, $position, $nbAffichage);
break;
case 'bodacc':
case 'abod':
default:
if(intval($siren) == 0) {
$idAnn = $session->getSourceId();
$this->redirect($this->view->url(array('controller'=>'juridique',
'action'=>'annonce', 'siret'=>$this->siret, 'id'=>$this->id,
'idAnn'=>$idAnn, 'vue'=>$vue), 'default', true));
}
$infos = $ws->getAnnoncesLegales($siren, $idAnn, null, $position, $nbAffichage);
break;
}
$this->logger->info(print_r($infos,1));
if ($infos === false) {
$this->forward('soap', 'error');
}
require_once 'Scores/Annonces.php';
$objAnnonces = new Annonces($infos->result->item);
$typeAnnonces = array(
'Bodacc',
'Balo',
'Bomp',
'Asso',
);
$user = new Scores_Utilisateur();
$this->view->assign('hasModeEdition', $user->checkModeEdition());
$this->view->assign('exportObjet', $infos);
$this->view->assign('surveillance', $user->checkPerm('survannonce'));
// --- Titre de la page
if ( empty($autrePage) ) {
if( empty($siren) ){
$titre = 'Identifiant '.$this->id;
} else {
$titre = 'Siret '.$siren;
}
$this->view->headTitle()->prepend('Annonces Légales - '.$titre);
}
// ---- Calcul pagination
$nbReponses = count($infos->result->item);
$nbReponsesTotal = $infos->nbReponses;
if ($nbReponses < $nbReponsesTotal) {
$pageTotal = ceil( $nbReponsesTotal / $nbAffichage );
$pageCurrent = $page;
$pagePrev = $page - 1;
if ($pagePrev < 1) {
$pagePrev = 1;
}
$pageNext = $page + 1;
if( $pageNext > $pageTotal ) {
$pageNext = $pageTotal;
}
} else {
$pageTotal = $pageCurrent = 1;
$pagePrev = 1;
$pageNext = 1;
}
$this->view->assign('PageTotal', $pageTotal);
$this->view->assign('PagePrev', $pagePrev);
$this->view->assign('PageNext', $pageNext);
$this->view->assign('PageCurrent', $pageCurrent);
$this->view->assign('nbReponses', empty($nbReponses) ? 0 : $nbReponses);
$this->view->assign('nbReponsesTotal', empty($nbReponsesTotal) ? 0 : $nbReponsesTotal);
$classType = 'annonces'.ucfirst($vue);;
$annonces = array();
if (count($objAnnonces->$classType) > 0) {
foreach($objAnnonces->$classType as $ann) {
$annonces[] = $objAnnonces->getAnnonceResume($ann);
}
$this->logger->info(print_r($annonces,1));
$this->view->assign('annonces', $annonces);
}
$this->view->headScript()->appendFile($this->theme->pathScript.'/annonces.js', 'text/javascript');
}
}
/**
* Affichage d'une annonce
*/
public function annonceAction()
{
$request = $this->getRequest();
$autrePage = $request->getParam('apage');
$idAnn = $request->getParam('idAnn', null);
$siren = substr($this->siret, 0,9);
$vue = $request->getParam('vue', 'bodacc');
$source = $request->getParam('source');
if (!empty($source)) {
switch ($source){
case 1: $vue = 'bodacc'; break;
case 2: $vue = 'balo'; break;
case 3: $vue = 'asso'; break;
}
}
$session = new Scores_Session_Entreprise($this->siret, $this->id);
$fj = $session->getFormeJuridique();
if ($fj > 9000 && $fj < 9999 && intval($siren) == 0) {
$vue = 'asso';
}
$page = $request->getParam('page');
$this->view->assign('page', $page);
$this->view->assign('id', $session->getId());
$this->view->assign('siren', $siren);
$this->view->assign('siret', $this->siret);
$this->view->assign('raisonSociale', $session->getRaisonSociale());
$this->view->assign('AutrePage', $autrePage);
if ($session->getSource() == '006' || $session->getSourceId() == '007') {
$this->view->assign('AutreSource', true);
} else {
$this->view->assign('vue', $vue);
$ws = new WsScores();
switch ($vue) {
case 'balo':
$infos = $ws->getAnnoncesBalo($siren, $idAnn, null, $position, $nbAffichage);
break;
case 'asso':
if ( intval($siren)==0 && substr($session->getAutreId(),0,1)=='W' ) {
$infos = $ws->getAnnoncesAsso($session->getAutreId(), $idAnn, null, $position, $nbAffichage);
} elseif (intval($siren)!=0) {
$infos = $ws->getAnnoncesAsso($siren, $idAnn, null, $position, $nbAffichage);
} else {
$idAnn = $session->getSourceId();
$infos = $ws->getAnnoncesAsso($siren, $idAnn, null, $position, $nbAffichage);
}
break;
case 'bomp':
$filtre = $request->getParam('filtre', 'A');
$this->view->assign('filtre', $filtre);
$infos = $ws->getAnnoncesBoamp($siren, $idAnn, $filtre, $position, $nbAffichage);
break;
case 'bodacc':
case 'abod':
default:
if(intval($siren)==0) {
$idAnn = $session->getSourceId();
}
$infos = $ws->getAnnoncesLegales($siren, $idAnn, null, $position, $nbAffichage);
break;
}
$this->logger->info(print_r($infos,1));
if ($infos === false) {
$this->forward('soap', 'error');
}
require_once 'Scores/Annonces.php';
$objAnnonces = new Annonces($infos->result->item);
$typeAnnonces = array(
'Bodacc',
'Balo',
'Bomp',
'Asso',
);
$user = new Scores_Utilisateur();
$this->view->assign('hasModeEdition', $user->checkModeEdition());
$this->view->assign('exportObjet', $infos);
$this->view->assign('surveillance', $user->checkPerm('survannonce'));
if ( $user->checkModeEdition() ){
$this->view->headScript()
->appendFile($this->theme->pathScript.'/saisieannonces.js', 'text/javascript');
}
$classType = 'annonces'.ucfirst($vue);
foreach($objAnnonces->$classType as $ann) {
if($ann->id==$idAnn) break;
}
$this->logger->info(print_r($ann,1));
$annonce = array(
'Desc' => $objAnnonces->getAnnonceDesc($ann),
'Entree' => $objAnnonces->getAnnonceEntree($ann),
'EntreeSD' => $objAnnonces->getAnnonceEntreeSD($ann),
'Even' => $objAnnonces->getAnnonceEven($ann),
'Texte' => $objAnnonces->getAnnonceTexte($ann),
'Type' => $objAnnonces->getType($ann),
'Code' => $objAnnonces->getCode($ann),
'Annee' => $objAnnonces->getAnnee($ann),
'Num' => $objAnnonces->getNum($ann),
'Deleted' => $objAnnonces->isDeleted($ann),
'Entites' => $objAnnonces->getAnnonceEntite($ann)
);
$this->view->assign('source', $session->getSource());
if (intval($this->siret) == 0){
$this->view->assign('sourceId', $session->getSourceId());
} else {
$this->view->assign('sourceId', null);
}
$this->view->assign('idAnn', $idAnn);
$this->view->assign('annonce', $annonce);
if ($request->getParam('q') == 'ajax') {
$this->_helper->layout()->disableLayout();
$this->view->assign('ajax', 1);
} else {
// Définir url pour téléchargement pdf
if (in_array($annonce['Code'], array('BODA', 'BODB', 'BODC'))) {
$datePublication = DateTime::createFromFormat('Y-m-d', $ann->DateParution);
$dateBodacc = DateTime::createFromFormat('Ymd', '20080101');
$dateTemoinA = DateTime::createFromFormat('Ymd', '20161115');
$dateTemoinB = DateTime::createFromFormat('Ymd', '20161011');
$dateTemoinC = DateTime::createFromFormat('Ymd', '20160223');
$params = null;
if ($annonce['Code'] == 'BODA' && $datePublication >= $dateTemoinA) {
$params = array('unit'=>1);
$this->view->assign('bodaccLinkLabel', 'Télécharger le témoin de publication');
} elseif ($annonce['Code'] == 'BODB' && $datePublication >= $dateTemoinB) {
$params = array('unit'=>1);
$this->view->assign('bodaccLinkLabel', 'Télécharger le témoin de publication');
} elseif ($annonce['Code'] == 'BODC' && $datePublication >= $dateTemoinC) {
$params = array('unit'=>1);
$this->view->assign('bodaccLinkLabel', 'Télécharger le témoin de publication');
} elseif ($datePublication >= $dateBodacc) {
$params = array();
$this->view->assign('bodaccLinkLabel', 'Télécharger le bulletin officiel');
}
if ($params !== null) {
$params = array_merge($params, array('controller'=>'juridique',
'action'=>'bodaccpdf', 'siren'=>$siren, 'type'=>substr($annonce['Code'],3,1),
'parution'=>$annonce['Annee'].str_pad($ann->BodaccNum, 4, '0', STR_PAD_LEFT),
'annonce'=>$ann->NumAnnonce
));
$lienBodacc = $this->view->url($params, 'default', true);
$this->view->assign('bodaccLink', $lienBodacc);
}
}
}
}
}
/**
* Liste des contentieux
*/
public function ctxAction()
{
$request = $this->getRequest();
$session = new Scores_Session_Entreprise($this->siret, $this->id);
$this->view->headTitle()->prepend("Contentieux");
$this->view->headTitle()->prepend("Siret ".$this->siret);
$siren = substr($this->siret, 0,9);
$type = $request->getParam('type', 'DF');
$this->view->Type = $type;
$typeList = array(
'DE' => 'demandeur',
'DF' => 'défendeur',
);
$this->view->TypeLabel = '';
if (array_key_exists($type, $typeList)) {
$this->view->TypeLabel = $typeList[$type];
}
$this->view->TypeList = $typeList;
$nbReponses = 20;
$page = $request->getParam('page', 1);
if ( $page <= 0 ) $page = 1;
$position = ($page - 1 ) * $nbReponses;
$params = new stdClass();
$params->companyId = $siren;
$params->tiers = $type;
$params->p = $position;
$params->limit = $nbReponses;
try {
$ws = new Scores_Ws_Client('entreprise', '0.9');
$response = $ws->getGreffeAffaireList($params);
if ($response === false) {
$this->view->msg = "Erreur";
} else {
$this->view->List = isset($response->List->item)?$response->List->item:null;
// --- Pagination
$nbReponsesTotal = $response->Nb;
if ($nbReponses < $nbReponsesTotal) {
$pageTotal = ceil( $nbReponsesTotal / $nbReponses );
$pageCurrent = $page;
$pagePrev = $page - 1;
if ($pagePrev < 1) {
$pagePrev = 1;
}
$pageNext = $page + 1;
if( $pageNext > $pageTotal ) {
$pageNext = $pageTotal;
}
} else {
$pageTotal = $pageCurrent = 1;
$pagePrev = 1;
$pageNext = 1;
}
$this->view->assign('PageTotal', $pageTotal);
$this->view->assign('PagePrev', $pagePrev);
$this->view->assign('PageNext', $pageNext);
$this->view->assign('PageCurrent', $pageCurrent);
$this->view->assign('nbReponses', empty($nbReponses) ? 0 : $nbReponses);
$this->view->assign('nbReponsesTotal', empty($nbReponsesTotal) ? 0 : $nbReponsesTotal);
$this->view->assign('siren', $siren);
$this->view->assign('siret', $this->siret);
$this->view->assign('raisonSociale', $session->getRaisonSociale());
}
} catch (Exception $e) {
$this->view->msg = $e->getMessage();
}
}
public function ctxdetailAction()
{
$request = $this->getRequest();
$session = new Scores_Session_Entreprise($this->siret, $this->id);
$siren = substr($this->siret, 0,9);
$this->view->headTitle()->prepend("Contentieux");
$this->view->headTitle()->prepend("Siret ".$this->siret);
$this->view->assign('siren', $siren);
$this->view->assign('siret', $this->siret);
$this->view->assign('raisonSociale', $session->getRaisonSociale());
$id = $request->getParam('affaireId');
$params = new stdClass();
$params->id = $id;
try {
$ws = new Scores_Ws_Client('entreprise', '0.9');
$response = $ws->getGreffeAffaireDetail($params);
if ($response === false) {
$this->view->msg = "Erreur";
} else {
$this->view->Affaire = $response;
}
} catch (Exception $e) {
$this->view->msg = $e->getMessage();
}
}
/**
* Affichage infos réglementées
*/
public function infosregAction()
{
$this->view->headTitle()->prepend("Informations Réglementées");
$this->view->headTitle()->prepend("Siret ".$this->siret);
$request = $this->getRequest();
$idAnn = $request->getParam('idann', false);
$siren = substr($this->siret, 0,9);
$session = new Scores_Session_Entreprise($this->siret, $this->id);
$ws = new WsScores();
if ($idAnn!=false) {
$this->view->assign('idAnn', $idAnn);
$infos = $ws->getInfosReg($siren,$idAnn);
} else {
$infos = $ws->getInfosReg($siren);
}
if ($infos === false) $this->forward('soap', 'error');
if (is_string($infos)){
$this->view->assign('message', $infos);
}
$objAnnonces = $infos->result->item;
$annonces = array();
if (count($objAnnonces)>0) {
foreach ( $objAnnonces as $item ) {
$dateParution = new Zend_Date($item->DateParution, 'yyyy-MM-dd');
$dateInsertion = new Zend_Date($item->dateInsertionSD, 'yyyy-MM-dd');
$annonces[] = array(
'id' => $item->id,
'titre' => $item->titre,
'communique' => $item->communique,
'source' => $item->source,
'DateParution' => $dateParution->toString('dd/MM/yyyy'),
'dateInsertionSD' => $dateInsertion->toString('dd/MM/yyyy'),
);
}
}
$this->view->assign('annonces', $annonces);
$this->view->assign('siren', $siren);
$this->view->assign('siret', $this->siret);
$this->view->assign('raisonSociale', $session->getRaisonSociale());
$this->view->assign('exportObjet', $infos);
}
/**
* Affichage listes des compétences
*/
public function competencesAction()
{
$this->view->headTitle()->prepend("Compétences Territoriales");
$this->view->headTitle()->prepend("Siret ".$this->siret);
$request = $this->getRequest();
$type = $request->getParam('type', '');
$siren = substr($this->siret,0,9);
$session = new Scores_Session_Entreprise($this->siret, $this->id);
$abbrev = array(
' TGI ' => 'TRIBUNAL DE GRANDE INSTANCE DE ',
' TI ' => 'TRIBUNAL D\'INSTANCE DE ',
' TC ' => 'TRIBUNAL DE COMMERCE DE ',
' TGICC ' => 'TRIBUNAL DE GRANDE INSTANCE A COMPETENCE COMMERCIALE ',
' TICC ' => 'TRIBUNAL D\'INSTANCE A COMPETENCE COMMERCIALE '
);
if (!empty($type)){
$ws = new WsScores();
$infos = $ws->getListeCompetences($this->siret, $type, $session->getCodeCommune());
if ($infos === false) $this->_forward('soap', 'error');
$competences = $infos->result->item;
$this->logger->info(print_r($infos,1));
if( $type=='tri' || $type=='cfe' ) {
$i=0;
foreach($competences as $comp){
$competences[$i]->Nom = strtr(' '.strtoupper($comp->Nom), $abbrev);
$i++;
}
}
$this->view->assign('competences', $competences);
$this->view->assign('type', $type);
$this->view->assign('exportObjet', $infos);
}
$this->view->assign('siren', $siren);
$this->view->assign('siret', $this->siret);
$this->view->assign('raisonSociale', $session->getRaisonSociale());
}
/**
* Affichage des la listes des conventions collectives
* Enter description here ...
*/
public function conventionsAction()
{
$this->view->headTitle()->prepend("Conventions Collectives");
$this->view->headTitle()->prepend("Siret ".$this->siret);
$siren = substr($this->siret, 0,9);
$session = new Scores_Session_Entreprise($this->siret, $this->id);
$this->view->assign('siren', $siren);
$this->view->assign('siret', $this->siret);
$this->view->assign('raisonSociale', $session->getRaisonSociale());
$ws = new WsScores();
$infos = $ws->getListeConventions($siren);
$conventions = $infos->result->item;
$this->logger->info(print_r($conventions,1));
$this->view->assign('conventions', $conventions);
$this->view->assign('exportObjet', $infos);
}
/**
* Affichage des marques déposées
*/
public function marquesAction()
{
$this->view->headTitle()->prepend("Marques Déposées");
$this->view->headTitle()->prepend("Siret ".$this->siret);
$this->view->headScript()->appendFile($this->theme->pathScript.'/marques.js', 'text/javascript');
$request = $this->getRequest();
$idObject = $request->getParam('idObject', 0);
$siren = substr($this->siret, 0,9);
$session = new Scores_Session_Entreprise($this->siret, $this->id);
$this->view->assign('siren', $siren);
$this->view->assign('siret', $this->siret);
$this->view->assign('raisonSociale', $session->getRaisonSociale());
$ws = new WsScores();
$infos = $ws->getMarques($siren, $idObject);
if ($infos === false) $this->_forward('soap', 'error');
$marques = $infos->result->item;
$this->view->assign('marques', $marques);
$this->view->assign('idObject', $idObject);
$this->view->assign('exportObjet', $marques);
$this->logger->info(print_r($infos,1));
}
/**
* Affiche le lien pour télécharger le fichier concernant le dépot
*/
public function getmarqueAction()
{
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
$request = $this->getRequest();
$numdepot = $request->getParam('numdepot', '');
if (empty($numdepot)){
echo 'Paramètres incorrects';
exit;
}
$c = Zend_Registry::get('config');
$directory = $c->profil->path->shared.'/persist/marques';
$file = $numdepot.'.pdf';
//Le fichier n'existe pas alors on le télécharger
if(!file_exists($directory.'/'.$file)
|| filesize($directory.'/'.$file)==0 ) {
$cmd = 'php ' . APPLICATION_PATH . '/../scripts/jobs/getMarque.php ' . $numdepot;
$this->logger->info($cmd);
$result = exec($cmd);
$this->logger->info($result);
}
//On vérfie que le fichier existe après le téléchargement
if(file_exists($directory.'/'.$file) && filesize($directory.'/'.$file)>0) {
$href = $this->view->url(array('module'=>'file', 'controller'=>'index', 'action'=>'marque', 'q'=>$file), 'default', true);
echo '<a href="'.$href.'" target="_blank">Télécharger le PDF de l\'insciption au BOPI.</a>';
} else {
echo 'Document introuvable.';
}
}
/**
* Gestion téléchargement du Bodacc au format pdf
*/
public function bodaccpdfAction()
{
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
$request = $this->getRequest();
$siren = $request->getParam('siren');
$type = $request->getParam('type');
$parution = $request->getParam('parution');
$annonce = $request->getParam('annonce');
$unit = $request->getParam('unit');
$annee = substr($parution,0,4);
$c = Zend_Registry::get('config');
$path = $c->profil->path->shared.'/persist/bodacc/'.$type.'/'.$annee;
if ($unit == 1) {
$file = $path."/BODACC_".$type."_".$annee."_".substr($parution,4)."_".$annonce.".pdf";
} else {
$file = $path."/BODACC_".$type."_".$annee."_".substr($parution,4).".pdf";
}
if (!file_exists($file)) {
$cli = "/../scripts/jobs/getBodaccPdf.php";
$params = "--siren ".$siren."--type ".$type." --parution ".$parution." --annonce ".$annonce;
exec('php ' . APPLICATION_PATH . "$cli $params >> getBodaccPdf.log");
}
if (file_exists($file)) {
$href = $this->view->url(array('module'=>'file', 'controller'=>'bodacc',
'action'=>'actual', 'q' => basename($file)), 'default', true);
echo "<a target=\"_blank\" href=\"".$href."\">Cliquer ici pour télécharger le fichier.</a>";
} else {
echo "Erreur lors du chargement du fichier.";
}
}
public function annoncenumAction()
{
$this->_helper->layout()->disableLayout();
$request = $this->getRequest();
$siren = $request->getParam('siren');
$ws = new WsScores();
$result = $ws->getAnnoncesNum($siren);
$this->logger->info(print_r($result,1));
$numWS = array();
if (count($result->item)>0) {
foreach ($result->item as $item) {
$numWS[$item->type] = $item->num;
}
}
$types = array('bodacc', 'balo', 'boamp', 'asso');
$num = array();
foreach($types as $type) {
if ( array_key_exists($type, $numWS) ) {
$num['Type'.ucfirst($type)] = $numWS[$type];
}
}
$this->view->assign('num', $num);
}
}

View File

@ -1,37 +1,50 @@
<?php
<?php
class LogoController extends Zend_Controller_Action
{
protected $pathLogo = '';
protected $theme;
protected $pathLogo = '';
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init()
{
$configuration = Zend_Registry::get('configuration');
$path = $configuration->path;
$this->pathLogo = $path->data.'/'.$path->logos;
if (Zend_Registry::isRegistered('logger')) {
$this->logger = Zend_Registry::get('logger');
}
// --- Theme
$this->theme = Zend_Registry::get('theme');
$c = Zend_Registry::get('config');
$this->pathLogo = $c->profil->path->shared.'/persist/logos';
}
public function indexAction()
{
$this->_helper->layout->disableLayout();
$request = $this->getRequest();
$siren = $request->getParam('siren', '');
$isin = $request->getParam('isin', '');
$isin = $request->getParam('isin', '');
$logo = $this->_findlogo($siren, $isin);
$this->view->assign('siren', $siren);
$this->view->assign('logo', $logo);
}
public function uploadAction()
{
{
$this->_helper->layout->disableLayout();
$request = $this->getRequest();
$siren = $request->getParam('siren');
if ($request->isPost()) {
if ( !empty($siren) && isset($_FILES['file']) && $_FILES['file']['error']!=UPLOAD_ERR_NO_FILE )
if ( !empty($siren) && isset($_FILES['file']) && $_FILES['file']['error']!=UPLOAD_ERR_NO_FILE )
{
$logoFile = $_FILES['file'];
$tmp_file = $logoFile['tmp_name'];
@ -67,25 +80,25 @@ class LogoController extends Zend_Controller_Action
}
$this->view->assign('siren', $siren);
}
public function cropAction()
{
$this->_helper->layout->disableLayout();
$request = $this->getRequest();
$siren = $request->getParam('siren');
$image = $request->getParam('image');
if ($request->isPost())
{
$jpeg_quality = 90;
$png_quality = 9;
list($name, $ext) = explode('.', $image);
$src = $name.'.'.$ext;
$dst = str_replace('tmp_', '', $src);
//Création image
switch($ext){
case 'gif':
@ -123,17 +136,17 @@ class LogoController extends Zend_Controller_Action
$this->view->assign('isPost', true);
} else {
$this->view->assign('image', $image);
}
}
$this->view->assign('siren', $siren);
}
public function saveAction()
{
$this->_helper->layout->disableLayout();
$request = $this->getRequest();
$file = $request->getParam('image');
if ( !empty($file) ) {
list($name, $ext) = explode('.', $file);
$name_dst = str_replace('tmp_','',$name);
@ -197,79 +210,81 @@ class LogoController extends Zend_Controller_Action
}
}
$this->view->assign('message', $message);
}
public function urlAction()
{
$this->_helper->layout->disableLayout();
$request = $this->getRequest();
$siren = $request->getParam('siren');
if ($request->isPost()){
require_once 'common/curl.php';
$logoUrl = $request->getParam('url');
$tabTmp = parse_url($logoUrl);
$hostUrl = $tabTmp['host'];
$pathUrl = $tabTmp['path'];
$tmp = explode('.', basename($pathUrl));
$ext = strtolower(end($tmp));
$page = getUrl($logoUrl, '', '', '', false, $hostUrl, '', 7);
$body = $page['body'];
$extAuthorized = array('jpeg', 'jpg', 'png', 'gif', 'bmp');
//Vérification fichier est une image
if ( in_array($ext, $extAuthorized ) )
{
$name_file = $siren.'.'.$ext;
$fp = fopen($this->pathLogo.'/'.$name_file, 'w');
fwrite($fp, $body);
fclose($fp);
$this->view->assign('image', $name_file);
try {
$client = new Zend_Http_Client($logoUrl);
$client->setStream();
$response = $client->request('GET');
if ( $response->isSuccessful()
&& copy($response->getStreamName(), $this->pathLogo.'/'.$name_file) ) {
$this->view->assign('image', $name_file);
}
} catch (Zend_Http_Client_Exception $e) {}
}
$this->view->assign('isPost', true);
}
}
$this->view->assign('siren', $siren);
}
public function deleteAction()
{
$this->_helper->layout->disableLayout();
$request = $this->getRequest();
$file = $request->getParam('image');
if ( !empty($file) ){
$message = "Erreur suppression fichier.";
if ( unlink($this->pathLogo.'/'.$file)){
$message = 'Fichier supprimé.';
}
}
$this->view->assign('message', $message);
}
//====> Function interne
function _logo( $siren )
{
$message = '';
if ( isset($_FILES['logoFile']) &&
$_FILES['logoFile']['error']!=UPLOAD_ERR_NO_FILE ) {
/** Un fichier a été uploadé **/
$logoFile = $_FILES['logoFile'];
$tmp_file = $logoFile['tmp_name'];
if ( $logoFile['error']!=UPLOAD_ERR_OK ) {
$message = 'Erreur lors de la copie du fichier';
}
if ( !is_uploaded_file($tmp_file) ){
$message = "Le fichier est introuvable";
} else {
@ -295,9 +310,9 @@ class LogoController extends Zend_Controller_Action
}
//Suppression ou URL fichier image
} elseif ( isset($_REQUEST['logoUrl']['del']) ||
( isset($_REQUEST['logoUrl']['url']) &&
$_REQUEST['logoUrl']['url']!='' ) ) {
( isset($_REQUEST['logoUrl']['url']) &&
$_REQUEST['logoUrl']['url']!='' ) ) {
//Suppression du fichier
if ( isset($_REQUEST['logoUrl']['del']) && $_REQUEST['logoUrl']['del'] )
{
@ -308,12 +323,12 @@ class LogoController extends Zend_Controller_Action
}
}
} else {
saisie_getlogo($siren);
$this->_getlogo($siren);
}
}
return $message;
}
function _saveimg( $siren )
{
$message = '';
@ -350,7 +365,7 @@ class LogoController extends Zend_Controller_Action
}
return $output;
}
function _findlogo( $siren, $isin = '' )
{
$img = '';
@ -373,14 +388,14 @@ class LogoController extends Zend_Controller_Action
}
return $img;
}
function _loadlogo( $siren, $isin = '' )
{
$urlImg = '';
$locImg = $this->pathLogo.'/'.$siren;
$extensions = array('jpeg', 'jpg', 'png', 'gif', 'bmp');
//Recherche image sur base siren
foreach ( $extensions as $ext ) {
if ( file_exists($locImg.'.'.$ext) ) {
@ -388,7 +403,7 @@ class LogoController extends Zend_Controller_Action
break;
}
}
//Recherche image sur base isin
if ( $urlImg == '' && $isin != '' ) {
$locImg = PATH_LOGOS . $isin;
@ -399,7 +414,7 @@ class LogoController extends Zend_Controller_Action
}
}
}
$output = '';
//Redimensionnement
if ( $urlImg != '' ) {
@ -411,34 +426,36 @@ class LogoController extends Zend_Controller_Action
} else {
$strSize = '';
}
$output = '<img src="'.$urlImg.'" '.$strSize.'/>';
}
return $output;
}
function _getlogo( $siren )
{
require_once 'common/curl.php';
$logoUrl = $_REQUEST['logoUrl']['url'];
$tabTmp = parse_url($logoUrl);
$hostUrl = $tabTmp['host'];
$pathUrl = $tabTmp['path'];
$tmp = explode('.', basename($pathUrl));
$ext = strtolower(end($tmp));
$page = getUrl($logoUrl, '', '', '', false, $hostUrl, '', 7);
$body = $page['body'];
$extAuthorized = array('jpeg', 'jpg', 'png', 'gif', 'bmp');
if ( !in_array($ext, $extAuthorized ) )
{
$tmp = explode('/', $page['header']['Content-Type']);
$ext = trim ( str_replace('?', '',strtolower(end($tmp)) ) );
}
$name_file = $siren.'.'.$ext;
$fp = @fopen($this->pathLogo.'/'.$name_file, 'w');
@fwrite($fp, $body);
@fclose($fp);
chmod($this->pathLogo.'/'.$name_file, 0755);
try {
$client = new Zend_Http_Client($pathUrl);
$client->setStream();
$response = $client->request('GET');
if ( $response->isSuccessful() ) {
$tmp = explode('.', basename($response->getStreamName()));
$ext = strtolower(end($tmp));
if ( !in_array($ext, $extAuthorized ) )
{
$tmp = explode('/', $page['header']['Content-Type']);
$ext = trim ( str_replace('?', '',strtolower(end($tmp)) ) );
}
$name_file = $siren.'.'.$ext;
if( copy($response->getStreamName(), $this->pathLogo.'/'.$name_file) ) {
chmod($this->pathLogo.'/'.$name_file, 0755);
}
}
} catch (Zend_Http_Client_Exception $e) {}
}
}

View File

@ -1,6 +1,20 @@
<?php
/**
*
* @todo vérifier contenu de la table des cours d'appel en dur
* au 20150305:
* 98713 PAPEETE CEDEX
* 97262 FORT DE FRANCE CEDEX
* Chambre Détachée de la Cour d'Appel de Fort de France à Cayenne", "triCP"=>"97300
* qui devrait être "cours d'appel de Cayenne"
* 97600 MAMOUDZOU
* 97500 ST PIERRE ET MIQUELON
*
*/
class MandataireController extends Zend_Controller_Action
{
protected $theme;
protected $coursAppel = array(
array( "triId"=>"1756", "triCode"=>"AIXPRL", "triNom"=>"Cour d'Appel d'Aix-en-Provence", "triCP"=>"13616" ),
array( "triId"=>"1757", "triCode"=>"AMIENL", "triNom"=>"Cour d'Appel d'Amiens", "triCP"=>"80027" ),
@ -39,32 +53,48 @@ class MandataireController extends Zend_Controller_Action
array( "triId"=>"1790", "triCode"=>"CAYENL", "triNom"=>"Chambre Détachée de la Cour d'Appel de Fort de France à Cayenne", "triCP"=>"97300" ),
array( "triId"=>"1798", "triCode"=>"AGENL", "triNom"=>"Cour d'Appel d'Agen", "triCP"=>"47916" ),
);
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init()
{
require_once 'Scores/WsScores.php';
if (Zend_Registry::isRegistered('logger')) {
$this->logger = Zend_Registry::get('logger');
}
// --- Theme
$this->theme = Zend_Registry::get('theme');
require_once 'Scores/WsScores.php';
}
/**
* Enregistrement d'un mandataire
*/
public function addAction()
{
$this->_helper->layout->disableLayout();
$request = $this->getRequest();
$idMandataire = $request->getParam('idMandataire', '');
$idMandataire = $request->getParam('idMand', '');
$tribunal = $request->getParam('tribunal', '');
$ws = new WsScores();
$this->logger->info('idMandataire : '.$idMandataire);
//Mode edition
if ($idMandataire != '') {
$idMandataire = (int)substr($idMandataire,1);
$reponse = $ws->getMandataire($idMandataire);
$this->logger->info(print_r($reponse,1));
if ($reponse!==false) {
$tabMandataires = $ws->result;
$tabMandataires = json_decode($reponse, true);
} else {
$message = 'Une erreur est survenue durant la recherche de mandataire.';
}
@ -72,26 +102,26 @@ class MandataireController extends Zend_Controller_Action
} else {
$tabMandataires = $request->getParam('tabMandataires');
}
if ($tribunal!='') {
//La cour d'appel suivant le tribunal sélectionné
$codeCourAppel = $ws->getIdCoursAppel($tribunal);
//Les tribunaux
$tmp = $ws->getTribunaux(array('C','I','G')); //
$tribunaux = $tmp->result->item;
}else{
$message = 'Pas de tribunal sélectionné.';
}
$this->view->assign('message', $message);
$this->view->assign('tabMandataires', $tabMandataires);
$this->view->assign('coursAppel', $this->coursAppel);
$this->view->assign('tribunal', $tribunal);
$this->view->assign('tribunaux', $tribunaux);
}
/**
* Edition d'un mandataire
*/
@ -99,7 +129,7 @@ class MandataireController extends Zend_Controller_Action
{
$this->_forward('add');
}
/**
* Recherche d'un mandataire à partir d'une chaine de caractères
* "nom, departement"
@ -108,40 +138,40 @@ class MandataireController extends Zend_Controller_Action
{
$this->_helper->layout->disableLayout();
$this->_helper->viewRenderer->setNoRender();
$request = $this->getRequest();
$search = $request->getParam('search', '');
if (empty($search)) { echo ''; }
else { $search = strtolower($search); }
list($searchStr, $filtre) = explode(',', $search);
$searchStr = trim($searchStr);
$filtre = str_replace(' ', '', $filtre);
if( strlen($filtre) != 5 && strlen($filtre) != 2 ){
$filtre = '';
}
$ws = new WsScores();
$reponse = $ws->searchMandataires(
$searchStr,
array('V', 'N', 'H', 'A', 'M'), //types de mandataires
$filtre
);
if ($reponse == false){
echo 'Erreur durant la recherche';
exit;
}
$mandataires = $reponse->result->item;
$output = array();
$output[] = array(
'label' => "A l'adresse du bien vendu",
'id' => 'adresse'
);
/*
REGEX Code Postal : ^(F-)?((2[A|B])|[0-9]{2})[0-9]{3}$
(?<!/BP /i) Ne pas avoir la présence de BP devant les 5 chiffres
@ -153,8 +183,9 @@ class MandataireController extends Zend_Controller_Action
foreach ($mandataires as $mandataire) {
$tabResults[$i]['code'] = $mandataire->id;
$tabResults[$i]['lib'] = htmlspecialchars_decode(
html_entity_decode($mandataire->mand), ENT_QUOTES);
html_entity_decode($mandataire->mand, ENT_COMPAT | ENT_HTML401, 'UTF-8')
, ENT_QUOTES);
preg_match('/(?<!bp )((2[A|B])|[0-9]{2})[0-9]{3}( )/i', $mandataire->mand, $matches);
$tabResults[$i]['cp'] = $matches[0];
$i++;
@ -166,7 +197,7 @@ class MandataireController extends Zend_Controller_Action
}
//Classement du tableau
array_multisort($cp, SORT_NUMERIC, $tabResults);
//Affichage des valeurs
foreach ($tabResults as $item){
$output[] = array(
@ -177,7 +208,7 @@ class MandataireController extends Zend_Controller_Action
}
echo json_encode($output);
}
public function getAction()
{
$this->_helper->layout->disableLayout();
@ -186,7 +217,7 @@ class MandataireController extends Zend_Controller_Action
$request = $this->getRequest();
$siren = $request->getParam('siren');
$siren = str_replace(' ','',$siren); //Remplacer les espaces
if ( $siren=='' || strlen($siren)!=14 ) {
$output = array(
'Siret' => 'Siret incorrect',
@ -194,36 +225,36 @@ class MandataireController extends Zend_Controller_Action
echo json_encode($output);
exit;
}
$tabEntrep = array();
$ws = new WsScores();
$tabEntrep = $ws->getIdentite($siren);
if ($tabEntrep!==false){
if ($tabEntrep!==false){
/**
* Utiliser la raison sociale la plus longue
* Utiliser la dénomination sociale la plus longue
* Nom, Nom2, NomLong
*/
if (!empty($tabEntrep->NomLong) && strlen($tabEntrep->NomLong)>strlen($tabEntrep->Nom)){
$tabEntrep->Nom = $tabEntrep->NomLong;
}
//Retourner le tableau sous forme json
echo json_encode($tabEntrep);
}
}
public function saveAction()
{
$this->_helper->layout->disableLayout();
$this->_helper->viewRenderer->setNoRender();
$request = $this->getRequest();
$error = false;
$tabMandataires = $request->getParam('tabMandataires', array());
//Vérification des données
$fields = array();
if($tabMandataires['sirenGrp']=='' && $tabMandataires['sirenMand']==''){
@ -238,35 +269,36 @@ class MandataireController extends Zend_Controller_Action
$fields = 'Siret avec la bonne taille';
$error = true;
}
if($tabMandataires['Nom']=='' ){$fields[] ='Nom'; $error = true;}
if($tabMandataires['type']==''){$fields[] ='Type'; $error = true;}
if($tabMandataires['tribunal']==''){$fields[] ='Tribunal'; $error = true;}
if($tabMandataires['coursAppel']==''){$fields[] ='Cours d\'appel'; $error = true;}
if($tabMandataires['Statut']==''){$fields[] ='Statut'; $error = true;}
if($tabMandataires['adresse']==''){$fields[] ='Adresse'; $error = true;}
if($tabMandataires['cp']==''){$fields[] ='Code Postal'; $error = true;}
if($tabMandataires['ville']==''){$fields[] ='Ville'; $error = true;}
if($tabMandataires['tel']==''){$fields[] ='Téléphone'; $error = true;}
//Envoi de la requête au webservices
if ($error==true){
$message = '<font color="red">';
$message.= 'Veuillez remplir les champs suivants : ';
$message.= join(', ', $fields);
$message.= '</font>';
}else{
} else {
$message='';
$ws = new WsScores();
$reponse = $ws->setMandataire($tabMandataires);
if ($reponse===false || $reponse->result==false){
$message = 'Une erreur s\'est produite durant l\'enregistrement';
if ( $reponse===false ){
$message = "Une erreur s'est produite durant l'enregistrement";
} elseif ( is_string($reponse) ) {
$message = $reponse;
}
}
echo $message;
}
protected function htmlentitydecode_deep($value)
{
$value = is_array($value) ?
@ -274,7 +306,7 @@ class MandataireController extends Zend_Controller_Action
html_entity_decode($value, ENT_QUOTES);
return $value;
}
}

View File

@ -0,0 +1,235 @@
<?php
class OrderController extends Zend_Controller_Action
{
protected $theme;
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init()
{
if (Zend_Registry::isRegistered('logger')) {
$this->logger = Zend_Registry::get('logger');
}
// --- Theme
$this->theme = Zend_Registry::get('theme');
}
public function indexAction(){}
public function kbisAction()
{
$request = $this->getRequest();
// --- Année de départ
$user = new Scores_Utilisateur();
$startYear = substr($user->identity->dateDebutCompte,0,4);
if (empty($startYear)) {
$startYear = 2006;
}
// --- Date
$date = new Zend_Date();
$year = $date->toString('yyyy'); //Année en cours
$month = $date->toString('MM'); //Mois en cours
$nbYear = $year - $startYear + 1;
$selectYear = array();
for( $i=0; $i<$nbYear; $i++ ) {
$selectYear[] = $startYear + $i;
}
$this->view->Years = $selectYear;
$selectMonth = array('01','02','03','04','05','06','07','08','09','10','11','12');
$this->view->Months = $selectMonth;
$selectedYear = $request->getParam('y', date('Y'));
$this->view->year = $selectedYear;
$selectedMonth = $request->getParam('m', date('m'));
$this->view->month = $selectedMonth;
// --- Fin Date
$ws = new Scores_Ws_Client('order', '0.1');
$params = new stdClass();
$params->month = $selectedYear.'-'.$selectedMonth;
$response = $ws->getKbisList($params);
if ($response === false) {
$this->view->Error = true;
} else {
$this->view->Cmd = $response->item;
}
}
public function bilaninputAction()
{
$request = $this->getRequest();
// --- Année de départ
$user = new Scores_Utilisateur();
$startYear = substr($user->identity->dateDebutCompte,0,4);
if (empty($startYear)) {
$startYear = 2006;
}
// --- Date
$date = new Zend_Date();
$year = $date->toString('yyyy'); //Année en cours
$month = $date->toString('MM'); //Mois en cours
$nbYear = $year - $startYear + 1;
$selectYear = array();
for( $i=0; $i<$nbYear; $i++ ) {
$selectYear[] = $startYear + $i;
}
$this->view->Years = $selectYear;
$selectMonth = array('01','02','03','04','05','06','07','08','09','10','11','12');
$this->view->Months = $selectMonth;
$selectedYear = $request->getParam('y', date('Y'));
$this->view->year = $selectedYear;
$selectedMonth = $request->getParam('m', date('m'));
$this->view->month = $selectedMonth;
// --- Fin Date
$ws = new Scores_Ws_Client('order', '0.1');
$params = new stdClass();
$params->month = $selectedYear.'-'.$selectedMonth;
$response = $ws->getBilanInputList($params);
if ($response === false) {
$this->view->Error = true;
} else {
$this->view->Cmd = $response->item;;
}
}
public function greffebilanAction()
{
$request = $this->getRequest();
// --- Année de départ
$user = new Scores_Utilisateur();
$startYear = substr($user->identity->dateDebutCompte,0,4);
if (empty($startYear)) {
$startYear = 2006;
}
// --- Date
$date = new Zend_Date();
$year = $date->toString('yyyy'); //Année en cours
$month = $date->toString('MM'); //Mois en cours
$nbYear = $year - $startYear + 1;
$selectYear = array();
for( $i=0; $i<$nbYear; $i++ ) {
$selectYear[] = $startYear + $i;
}
$this->view->Years = $selectYear;
$selectMonth = array('01','02','03','04','05','06','07','08','09','10','11','12');
$this->view->Months = $selectMonth;
$selectedYear = $request->getParam('y', date('Y'));
$this->view->year = $selectedYear;
$selectedMonth = $request->getParam('m', date('m'));
$this->view->month = $selectedMonth;
// --- Fin Date
$ws = new Scores_Ws_Client('order', '0.1');
$params = new stdClass();
$params->month = $selectedYear.'-'.$selectedMonth;
$response = $ws->getBilanList($params);
if ($response === false) {
$this->view->Error = true;
} else {
$this->view->Cmd = $response->item;;
}
}
public function greffeacteAction()
{
$request = $this->getRequest();
// --- Année de départ
$user = new Scores_Utilisateur();
$startYear = substr($user->identity->dateDebutCompte,0,4);
if (empty($startYear)) {
$startYear = 2006;
}
// --- Date
$date = new Zend_Date();
$year = $date->toString('yyyy'); //Année en cours
$month = $date->toString('MM'); //Mois en cours
$nbYear = $year - $startYear + 1;
$selectYear = array();
for( $i=0; $i<$nbYear; $i++ ) {
$selectYear[] = $startYear + $i;
}
$this->view->Years = $selectYear;
$selectMonth = array('01','02','03','04','05','06','07','08','09','10','11','12');
$this->view->Months = $selectMonth;
$selectedYear = $request->getParam('y', date('Y'));
$this->view->year = $selectedYear;
$selectedMonth = $request->getParam('m', date('m'));
$this->view->month = $selectedMonth;
// --- Fin Date
$ws = new Scores_Ws_Client('order', '0.1');
$params = new stdClass();
$params->month = $selectedYear.'-'.$selectedMonth;
$response = $ws->getActeList($params);
if ($response === false) {
$this->view->Error = true;
} else {
$this->view->Cmd = $response->item;;
}
}
public function assostatutAction()
{
$request = $this->getRequest();
// --- Année de départ
$user = new Scores_Utilisateur();
$startYear = substr($user->identity->dateDebutCompte,0,4);
if (empty($startYear)) {
$startYear = 2006;
}
// --- Date
$date = new Zend_Date();
$year = $date->toString('yyyy'); //Année en cours
$month = $date->toString('MM'); //Mois en cours
$nbYear = $year - $startYear + 1;
$selectYear = array();
for( $i=0; $i<$nbYear; $i++ ) {
$selectYear[] = $startYear + $i;
}
$this->view->Years = $selectYear;
$selectMonth = array('01','02','03','04','05','06','07','08','09','10','11','12');
$this->view->Months = $selectMonth;
$selectedYear = $request->getParam('y', date('Y'));
$this->view->year = $selectedYear;
$selectedMonth = $request->getParam('m', date('m'));
$this->view->month = $selectedMonth;
// --- Fin Date
}
}

File diff suppressed because it is too large Load Diff

View File

@ -1,9 +1,24 @@
<?php
class PrintController extends Zend_Controller_Action
{
public function init(){}
protected $theme;
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init()
{
if (Zend_Registry::isRegistered('logger')) {
$this->logger = Zend_Registry::get('logger');
}
// --- Theme
$this->theme = Zend_Registry::get('theme');
}
/**
* Renvoie les paramètres pour l'impression
*/
@ -30,8 +45,7 @@ class PrintController extends Zend_Controller_Action
$params['mil'] = $elements[5];
break;
case 'liasse':
$params['unit'] = $elements[4];
$params['date'] = $elements[5];
$params['date'] = $elements[3];
break;
}
$params['siret'] = $elements[2];
@ -69,9 +83,17 @@ class PrintController extends Zend_Controller_Action
case 'evaluation':
$params['siret'] = $elements[2];
$params['id'] = $elements[3];
switch($action){
case 'scoreshisto':
$params['type'] = $elements[4];
break;
}
break;
case 'giant':
$params['idRapport'] = $elements[2];
$params['Pays'] = $elements[2];
$params['Type'] = $elements[3];
$params['CompanyId'] = $elements[4];
$params['Language'] = $elements[5];
break;
case 'surveillance':
switch($action){
@ -81,6 +103,10 @@ class PrintController extends Zend_Controller_Action
break;
}
break;
case 'worldcheck':
$params['matchIdentifier'] = $elements[2];
$params['nameType'] = $elements[3];
break;
default:
return false;
break;
@ -91,9 +117,9 @@ class PrintController extends Zend_Controller_Action
'params' => $params
);
}
public function indexAction(){}
/**
* Imprime la page en PDF
* Par défaut, le contenu html a déjà été enregistré..
@ -106,32 +132,33 @@ class PrintController extends Zend_Controller_Action
{
$request = $this->getRequest();
$fichier = $request->getParam('fichier');
if (substr($fichier,-4)!='.pdf') {
echo 'Fichier incorrect';
exit;
}
$fichier = str_replace('.pdf', '', $fichier);
if (!file_exists(APPLICATION_PATH.'/../cache/pages/'.$fichier.'.html'))
$c = Zend_Registry::get('config');
$file = $c->profil->path->shared.'/pages/'.$fichier.'.html';
if (!file_exists($file))
{
echo 'Fichier introuvable';
exit;
}
require_once 'wkhtmltopdf/wkhtmltopdf.php';
$pdf = new wkhtmltopdf();
$pdf = new Scores_Wkhtml_Pdf();
$pdf->setOptions('footer-right', 'Page [page] sur [toPage]');
$pdf->setOptions('header-right', date('d/m/Y H:i:s'));
$output_file = $pdf->exec(APPLICATION_PATH.'/../cache/pages/'.$fichier.'.html');
$output_file = $pdf->exec($file);
//Envoi au navigateur
if(!file_exists($output_file))
{
echo 'Impossible de générer le fichier PDF';
exit;
}
$content_type = 'application/pdf';
$dest = 'I';
switch($dest)
@ -167,7 +194,7 @@ class PrintController extends Zend_Controller_Action
break;
}
}
/**
* Imprime la page en activant le javascript d'impression
* Il faut récupérer le controller et l'action du nom du fichier, ainsi que
@ -179,12 +206,12 @@ class PrintController extends Zend_Controller_Action
{
$request = $this->getRequest();
$fichier = $request->getParam('fichier', '');
if (substr($fichier,-5)!='.html') {
echo 'Fichier incorrect';
exit;
}
$fichier = str_replace('.html', '', $fichier);
$elements = $this->pageParams($fichier);
if ($elements===false){
@ -192,9 +219,10 @@ class PrintController extends Zend_Controller_Action
}
$this->view->assign('controller', $elements['controller']);
$this->view->assign('action', $elements['action']);
$this->logger->info(print_r($elements['params'],1));
$this->view->assign('params', $elements['params']);
}
/**
* Envoi le fichier XML de l'objet sérialiser sur la sortie standard
*/
@ -204,20 +232,22 @@ class PrintController extends Zend_Controller_Action
$this->_helper->viewRenderer->setNoRender(true);
$request = $this->getRequest();
$fichier = $request->getParam('fichier', '');
if (substr($fichier,-4)!='.xml') {
echo 'Fichier incorrect.';
exit;
}
if (!file_exists(APPLICATION_PATH.'/../cache/pagesxml/'.$fichier)){
$c = Zend_Registry::get('config');
$file = $c->profil->path->shared.'/files/'.$fichier;
if (!file_exists($file)){
echo "Erreur lors de la génération du fichier.";
exit;
}
header("Content-type: application/xml");
header("Content-Disposition: attachement; filename=\"$fichier\"");
flush();
echo file_get_contents(APPLICATION_PATH.'/../cache/pagesxml/'.$fichier);
echo file_get_contents($file);
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,340 @@
<?php
class TelechargementController extends Zend_Controller_Action
{
/**
* Temps de mis en cache en heure
* @var interger
*/
protected $filetime = 8;
/**
* Répertoire de stockage pour le fichier
* @var string
*/
protected $path = '';
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init()
{
if (Zend_Registry::isRegistered('logger')) {
$this->logger = Zend_Registry::get('logger');
}
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
$c = Zend_Registry::get('config');
$this->path = $c->profil->path->shared.'/files';
require_once 'Scores/WsScores.php';
}
/**
* Vérifie ou télécharge le fichier sur une url
* @param string $url
* URL of file to download
* @param mixed $filename
* Override filename
*/
protected function getFile($url, $filename=null)
{
if (!is_dir($this->path)) mkdir($this->path);
// --- Recuperation du nom du fichier
if ( $filename === null ) {
$tableau = explode('/', $url);
$file = $tableau[sizeof($tableau) - 1];
} else {
$file = $filename;
}
// --- Suppression du fichier si le temps de cache est depasse
if ( $this->filetime == 0 && file_exists($this->path.'/'.$file) ){
unlink($this->path.'/'.$file);
} elseif ( file_exists($this->path.'/'.$file) ) {
$dateFile = filemtime($this->path.'/'.$file);
$now = mktime(date('G'), date('i'), date('s'),
date('m') , date('d'), date('Y'));
$maxTime = mktime(date('G',$dateFile)+$this->filetime, date('i',$dateFile),
date('s',$dateFile), date('m',$dateFile),
date('d',$dateFile), date('Y',$dateFile));
if ( $maxTime - $now < 0 ) {
unlink($this->path.'/'.$file);
}
}
// --- Lock file exist
if ( file_exists($this->path.'/'.$file.'.lock') ) {
return null;
}
// --- Recuperation du fichier sur le serveur
if ( file_exists($this->path.'/'.$file) ) {
return $file;
} else {
// --- On check si le fichier est present sur l'url
try {
$client = new Zend_Http_Client($url);
$client->setStream();
$response = $client->request('GET');
if ( $response->isSuccessful() ) {
// --- Add a lock
file_put_contents($this->path.'/'.$file.'.lock', '');
if ( copy($response->getStreamName(), $this->path.'/'.$file) ) {
// --- Remove lock
unlink($this->path.'/'.$file.'.lock');
return $file;
}
// --- Remove lock
unlink($this->path.'/'.$file.'.lock');
}
return null;
} catch (Zend_Http_Client_Exception $e) {
return false;
}
}
}
/**
* Télécharge la consommation client sous forme de fichier csv et affiche le lien
*/
public function consommationAction()
{
$this->filetime = 0;
$request = $this->getRequest();
$start = $request->getParam('start', false);
//On souhaite récupérer l'url du fichier
if ( $start == 1 ) {
$mois = $request->getParam('mois');
$detail = $request->getParam('detail', 0);
$idClient = $request->getParam('idClient', 0);
$login = $request->getParam('login', '');
$all = $request->getParam('all', 0);
$date = substr($mois, 3, 4).substr($mois, 0, 2);
$user = new Scores_Utilisateur();
if (empty($login) && (!$user->isAdmin() && !$user->isSuperAdmin()) ) {
$login = $user->getLogin();
}
$ws = new WsScores();
$reponse = $ws->getLogsClients($date, $detail, $idClient, $login, $all);
if ( !empty($reponse->result->Url) ) {
echo $reponse->result->Url;
} else {
echo 'FALSE';
}
} else {
$url = $request->getParam('url', '');
$file = $this->getFile($url);
// --- En attente
if ( $file === null ) {
echo '';
}
// --- Fichier en erreur
elseif ( $file === false ) {
echo 'Erreur lors du chargement du fichier.';
}
// --- Fichier disponible
elseif ( file_exists($this->path.'/'.$file) ) {
echo '<u><a title="Télécharger le fichier"'.
' target="_blank" href="'.$this->view->url(array('module'=>'file', 'controller'=>'index',
'action'=>'consommation', 'q'=>$file), 'default', true).
'">Cliquez-ici pour télécharger le fichier.</a></u>';
}
}
}
/**
* Télécharge les surveillances sous forme de fichier csv et affiche le lien
*/
public function surveillanceAction()
{
$this->filetime = 4;
$request = $this->getRequest();
$start = $request->getParam('start', false);
// --- Get File Url
if ( $start == 1) {
$source = $request->getParam('source', '');
$user = new Scores_Utilisateur();
$login = $user->getLogin();
$idClient = $user->getIdClient();
$ws = new WsScores();
$reponse = $ws->getListeSurveillancesCsv($source, $login, $idClient);
if ( !empty($reponse->result->Url) ) {
echo $reponse->result->Url;
} else {
echo 'FALSE';
}
}
// --- Get File
else {
$url = $request->getParam('url', '');
$file = $this->getFile($url);
// --- En attente
if ( $file === null ) {
echo '';
}
// --- Fichier en erreur
elseif ( $file === false ) {
echo 'Erreur lors du chargement du fichier.';
}
// --- Fichier disponible
elseif ( file_exists($this->path.'/'.$file) ) {
echo '<u><a title="Télécharger le fichier"'.
' target="_blank" href="'.$this->view->url(array('module'=>'file', 'controller'=>'index',
'action'=>'surveillance', 'q'=>$file), 'default', true).
'">Cliquez-ici pour télécharger le fichier.</a></u>';
}
}
}
/**
* Télécharge le portefeuille sous forme de fichier csv et affiche le lien
* Enter description here ...
*/
public function portefeuilleAction()
{
$this->filetime = 4;
$request = $this->getRequest();
$start = $request->getParam('start', false);
if ($start==1) {
$user = new Scores_Utilisateur();
$login = $user->getLogin();
$idClient = $user->getIdClient();
$ws = new WsScores();
$reponse = $ws->getPortefeuilleCsv($login, $idClient);
if ( !empty($reponse->result->Url) ) {
echo $reponse->result->Url;
} else {
echo 'FALSE';
}
} else {
$url = $request->getParam('url', '');
$file = $this->getFile($url);
// --- En attente
if ( $file === null ) {
echo '';
}
// --- Fichier en erreur
elseif ( $file === false ) {
echo 'Erreur lors du chargement du fichier.';
}
// --- Fichier disponible
elseif ( file_exists($this->path.'/'.$file) ) {
echo '<u><a title="Télécharger le fichier"'.
' target="_blank" href="'.$this->view->url(array('module'=>'file', 'controller'=>'index',
'action'=>'portefeuille', 'q'=>$file), 'default', true).
'">Cliquez-ici pour télécharger le fichier.</a></u>';
}
}
}
/**
* Download pdf of bodacc history
*/
public function histopdfAction()
{
$request = $this->getRequest();
$q = $request->getParam('q', '');
$host = base64_decode($request->getParam('host', ''));
//Authenticate info
$auth = Zend_Auth::getInstance();
$identity = $auth->getIdentity();
$authinfo = '/login/'.$identity->username.'/hach/'.$identity->password;
$url = $host.$authinfo.'/q/'.$q;
$this->logger->info($url);
$file = $this->getFile($url, uniqid('histo-').'.pdf');
// --- En attente
if ( $file === null ) {
echo '';
}
// --- Fichier en erreur
elseif ( $file === false ) {
echo 'Erreur lors du chargement du fichier.';
}
// --- Fichier disponible
elseif ( file_exists($this->path.'/'.$file) ) {
if (filesize($this->path.'/'.$file) > 0) {
echo '<u><a title="Télécharger le fichier" target="_blank" href="'.$this->view->url(array('module'=>'file',
'controller'=>'bodacc', 'action'=>'histo', 'q'=>$file), 'default', true).
'">Cliquez-ici pour télécharger le fichier.</a></u>';
} else {
echo "Erreur lors du téléchargement du fichier.";
}
}
}
/**
* Download bilan pdf file
*/
public function bilanAction()
{
$this->filetime = 40;
$request = $this->getRequest();
$siren = $request->getParam('siren');
$dateCloture = $request->getParam('dateCloture');
$reference = $request->getParam('reference');
//Récupération du l'URL
require_once 'Scores/WsScores.php';
$ws = new WsScores();
$url = $ws->getPiecesBilan($siren, 'T', $dateCloture, $reference);
//Téléchargement
if( $url !== false) {
$this->logger->info($url);
$file = $this->getFile($url);
$this->logger->info('File:'.$this->path.'/'.$file);
// --- En attente
if ( $file === null ) {
echo '';
}
// --- Fichier en erreur
elseif ( $file === false ) {
echo 'Erreur lors du chargement du fichier.';
}
// --- Fichier disponible
elseif ( file_exists($this->path.'/'.$file) ) {
if (filesize($this->path.'/'.$file) > 0) {
echo '<br/><u><a title="Télécharger le fichier" target="_blank" href="'.$this->view->url(array(
'module'=>'file', 'controller'=>'greffe', 'action'=>'bilan', 'q'=>$file), 'default', true).
'">Cliquez-ici pour télécharger le fichier.</a></u>';
} else {
echo "<br/>Erreur lors du téléchargement du fichier.";
}
}
} else {
echo "<br/>Erreur.";
}
}
}

View File

@ -0,0 +1,759 @@
<?php
class UserController extends Zend_Controller_Action
{
protected $theme;
/**
* Return a ramdom password
* @param int $length
* Length of the string
* @param int $strength
* $strength = 1:- 0-9
* $strength = 2:- A-Z0-9
* $strength = 3:- A-Za-z0-9
* $strength = 4:- A-Za-z0-9 and # $ % &
* $strength = 5:- A-Za-z0-9 and # $ % & = > ? @
* @return string
*/
protected function randomPassword($length,$strength)
{
$char_sets=array('48-57','65-90','97-122','35-38','61-64');
$new_password='';
srand(microtime()*10000000);
for($i=0;$i<$length;$i++){
$random=rand(0,$strength-1);
list($start,$end)=explode('-',$char_sets[$random]);
$new_password.=chr(rand($start,$end));
}
return $new_password;
}
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init()
{
if (Zend_Registry::isRegistered('logger')) {
$this->logger = Zend_Registry::get('logger');
}
// --- Theme
$this->theme = Zend_Registry::get('theme');
require_once 'Scores/WsScores.php';
}
/**
* Affiche le fomulaire d'edition des paramètres utilisateur
*/
public function indexAction()
{
$this->view->headLink()->appendStylesheet($this->theme->pathStyle.'/user.css', 'all');
$user = new Scores_Utilisateur();
if (!$user->checkPerm('MONPROFIL')){
$this->forward('perms', 'error');
}
$this->view->assign('device_type', $user->getBrowserInfo()->mobile);
$this->view->assign('browser_info', $user->getBrowserInfo()->name.' '.$user->getBrowserInfo()->version);
$this->view->headScript()->appendFile($this->theme->pathScript.'/user.js', 'text/javascript');
$request = $this->getRequest();
$messages = '';
$isProfilUpdated = false;
$isPasswordUpdated = false;
$updateResult = false;
$login = $request->getParam('login', '');
$op = $request->getParam('op');
//Récupération des informations de l'identité
$auth = Zend_Auth::getInstance();
$identity = $auth->getIdentity();
//Save data
if ( $request->isPost() ) {
$options = $request->getParam('frmOptions', '');
$action = $options['action'];
if ($login=='') $login = $options['login'];
//Enregistrement des données new & update
if (in_array($action, array('new','update'))) {
if ( $options['changepwd'] != 1 ) {
$options['password'] = '';
}
if ( in_array($options['profil'], array('Administrateur', 'SuperAdministrateur'))
&& !in_array('monprofil', $options['droits']) ) {
$options['droits'][] = 'monprofil';
}
if( !isset($options['profil']) ) {
$options['profil'] = 'Utilisateur';
}
$ws = new WsScores();
$this->logger->info('setInfosLogin');
$this->logger->info(print_r($options,1));
$reponse = $ws->setInfosLogin($login, $action, $options);
$this->logger->info(print_r($response,1));
$isProfilUpdated = true;
$message = 'Erreur lors de la mise à jour du compte !';
if (is_string($reponse)) {
$message = $reponse;
} elseif ($reponse){
$updateResult = true;
$message = 'Compte mis à jour.';
}
}
// --- Write change in session
if ($identity->idClient == $options['idClient'] && $identity->username == $login) {
// --- Modification lors du changement de mot de passe
if ($options['changepwd']==1 && $updateResult) {
$identity->password = md5($login.'|'.$options['password']);
$auth->getStorage()->write($identity);
}
// --- Mise à jour du profil
if ($isProfilUpdated && $updateResult) {
$ws = new Scores_Ws_Client('gestion', '0.3');
$adressIp = $_SERVER['REMOTE_ADDR'];
$parameters = new stdClass();
$parameters->login = $identity->username;
$parameters->ipUtilisateur = $adressIp;
$parameters->from = null;
$InfosLogin = $ws->getInfosLogin($parameters);
$identity = $user->updateProfil($InfosLogin);
$auth->getStorage()->write($identity);
}
// --- Gestion mode edition en SESSION
if ($action=='update') {
$modeEdition = $request->getParam('modeEdition', false);
if ( $modeEdition ) {
$identity->modeEdition = true;
$auth->getStorage()->write($identity);
}
}
}
}
if ( $isProfilUpdated || $isPasswordUpdated ) {
$this->view->assign('message', $message);
}
$isAdmin = false;
if ( $identity->profil == 'Administrateur'
|| $identity->profil == 'SuperAdministrateur' ) {
$isAdmin = true;
}
$this->view->assign('isAdmin', $isAdmin);
$isSuperAdmin = false;
if ($identity->profil == 'SuperAdministrateur') {
$isSuperAdmin = true;
}
$this->view->assign('isSuperAdmin', $isSuperAdmin);
if ($op=='new')
{
$idClient = $request->getParam('idClient', '');
if ($idClient == '') {
$idClient = $identity->idClient;
}
$ws = new WsScores();
$reponse = $ws->getNextLogin($idClient);
$options->idClient = $idClient;
if ($identity->idClient!=1 && $identity->profil!='SuperAdministrateur') {
$options->profil = 'Utilisateur';
}
$this->view->assign('options', $options);
$this->view->assign('password', $this->randomPassword(10, 3));
$this->view->assign('loginNew', $reponse->result->racine);
$this->view->assign('droitsClients', explode(' ', strtolower($reponse->result->droitsClients)));
$this->view->assign('action', 'new');
$this->view->assign('pref', array());
}
elseif (!empty($op) || $op!='new')
{
if ( !empty($login) && $identity->username != $login ) {
$ws = new Scores_Ws_Client('gestion', '0.3');
$adressIp = $_SERVER['REMOTE_ADDR'];
$parameters = new stdClass();
$parameters->login = $login;
$parameters->ipUtilisateur = $adressIp;
$parameters->from = null;
try {
$reponse = $ws->getInfosLogin($parameters);
if ($reponse === false) {
$this->view->message = "Impossible d'afficher l'utilisateur.";
} else {
$this->view->assign('options', $reponse->result);
$this->view->assign('loginVu', $reponse->result->login);
$this->view->assign('droits', explode(' ', strtolower($reponse->result->droits)));
$this->view->assign('droitsClients', explode(' ', strtolower($reponse->result->droitsClients)));
}
} catch (Exception $e) {
$this->view->message = $e->getMessage();
}
} else {
$this->view->assign('options', $identity);
$this->view->assign('loginVu', $identity->username);
$this->view->assign('droits', explode(' ', strtolower($identity->droits)));
$this->view->assign('droitsClients', explode(' ', strtolower($identity->droitsClients)));
}
$this->view->assign('loginNew', '');
$this->view->assign('action', 'update');
$this->view->assign('pref', explode(' ',$identity->pref));
}
$ws = new WsScores();
//Liste des catégories des accès
$reponse = $ws->getCategory();
$wscategory = $reponse->item;
$this->view->assign('wscategory', $wscategory);
//Liste de tous les droits
$listeDroits = $ws->getListeDroits();
$droitsLib = array();
foreach($listeDroits->item as $droit) {
$droitsLib[strtoupper($droit->code)] = $droit->desc;
}
$this->view->assign('droitsLib', $droitsLib);
//Liste de toutes les préférences
$listePrefs = $ws->getListePrefs();
$prefsLib = array();
foreach($listePrefs->item as $pref) {
$prefsLib[strtoupper($pref->code)] = $pref->desc;
}
$this->view->assign('prefsLib', $prefsLib);
}
/**
* Display box to enter emails
* One main email and two secondary
* Email length 80 * 3 = 240
* 255 chars is the length to store emails (email1;email2;email3)
*/
public function emailAction()
{
$this->_helper->layout()->disableLayout();
$request = $this->getRequest();
$check = $request->getParam('check');
$email = $request->getParam('q');
if ( $check == 1) {
$this->view->assign('checkemail', true);
$valid = false;
$this->view->assign('msg', 'Email invalide !');
if (null !== $email) {
$validateur = new Zend_Validate_EmailAddress();
$valid = $validateur->isValid($email);
if ( $valid ) {
$this->view->assign('msg', 'Modification effectué.');
$this->view->assign('email', $email);
}
}
} else {
$this->view->assign('email', $email);
}
}
public function emailsecondaryAction()
{
$this->_helper->layout()->disableLayout();
$request = $this->getRequest();
$user = new Scores_Utilisateur();
$mode = $request->getParam('mode');
$this->view->assign('mode', $mode);
$email = $request->getParam('email');
$login = $request->getParam('login', $user->getLogin());
$this->view->assign('login', $login);
$idClient = $request->getParam('client', $user->getIdClient());
if ( $mode === null ) {
$ws = new WsScores();
$result = $ws->getGestionEmail($login);
$emails = array();
if (count($result->item)>0) {
$emails = $result->item;
}
$this->view->assign('emails', $emails);
} elseif ( $mode == 'set' ) {
$this->view->assign('msg', 'Email invalide !');
if (null !== $email) {
$validateur = new Zend_Validate_EmailAddress();
$valid = $validateur->isValid($email);
if ( $valid ) {
$ws = new WsScores();
$result = $ws->setGestionEmail($email, $login);
if ( $result ) {
$this->view->assign('msg', 'Modification effectué.');
$this->view->assign('email', $email);
}
}
}
} elseif ( $mode == 'del' ) {
$this->view->assign('msg', 'Erreur lors de la suppression !');
$id = $request->getParam('id');
$ws = new WsScores();
$result = $ws->setGestionEmail($email, $login, $id, $mode);
if ( $result ) {
$this->view->assign('msg', 'Adresse email supprimé.');
}
}
}
/**
* Téléchargement de la consommation au format CSV
*/
public function consoAction()
{
$this->view->headScript()->appendFile($this->theme->pathScript.'/conso.js', 'text/javascript');
$user = new Scores_Utilisateur();
$request = $this->getRequest();
$idClient = $request->getParam('idClient', $user->getIdClient());
$login = $request->getParam('login', '');
$this->view->assign('idClient', $idClient);
$this->view->assign('login', $login);
$this->view->assign('profil', $user->getProfil());
}
/**
* Renvoi vers le formulaire utilisateur avec les paramètres de la requete
*/
public function editAction()
{
$params = $this->getRequest()->getParams();
$this->_forward('index', 'user', null, $params);
}
/**
* Suppression d'un utilisateur
*/
public function deleteAction()
{
$request = $this->getRequest();
$login = $request->getParam('login');
$action = 'delete';
$ws = new WsScores();
$ws->setInfosLogin($login, $action);
//Redirect
$this->_forward('liste');
}
/**
* Activation d'un utilisateur
*/
public function enableAction()
{
$request = $this->getRequest();
$login = $request->getParam('login');
$action = 'enable';
$ws = new WsScores();
$ws->setInfosLogin($login, $action);
//Redirect
$this->_forward('liste');
}
/**
* Désactivation d'un utilisateur
*/
public function disableAction()
{
$request = $this->getRequest();
$login = $request->getParam('login');
$action = 'disable';
$ws = new WsScores();
$ws->setInfosLogin($login, $action);
//Redirect
$this->_forward('liste');
}
/**
* Méthode AJAX pour modifier le password d'un utilisateur
*/
public function changepwdAction()
{
//Redirect
}
/**
* Affiche la liste des utiliateurs
*/
public function listeAction()
{
$user = new Scores_Utilisateur();
$request = $this->getRequest();
$idClient = $request->getParam('idClient', $user->getIdClient());
if (!$user->isSuperAdmin() && !$user->isAdmin()) {
$this->renderScript('error/perms.phtml');
}
if ($user->isAdmin()){
$idClient = $user->getIdClient();
}
$ws = new WsScores();
$infos = $ws->getListeUtilisateurs($user->getLogin(), $idClient);
$utilisateurs = $infos->result->item;
$this->view->assign('utilisateurs', $utilisateurs);
$this->view->assign('idClient', $idClient);
}
/**
* Gestion de l'authentification
*/
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() ) {
//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!='/user/login' && $url!='/user/logout' && $url!='/localauth'){
$this->redirect($url);
}
$this->redirect('/');
}
//Auth error
else {
$this->view->message = '';
$this->logger->info(print_r($result));
foreach ($result->getMessages() as $message) {
$this->view->message.= $message."<br/>";
}
}
}
}
// Pas de validation du formulaire
else {
$this->logger->info('DISPLAY');
}
}
/**
* Gestion de la 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(
'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);
}
}
/**
* Erreur pour les connexions en ipOnly
*/
public function iponlyAction()
{
$this->_helper->layout()->disableLayout();
$request = $this->getRequest();
$message = $request->getParam('message');
$this->view->assign('message', $message);
}
/**
* Mettre à jour le mode edition en session sans refresh de la page
*/
public function editionsessionAction()
{
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
$request = $this->getRequest();
$mode = $request->getParam('mode', 'false');
$auth = Zend_Auth::getInstance();
$identity = $auth->getIdentity();
if ($identity->idClient == 1) {
if ($mode == 'false') {
$identity->modeEdition = false;
echo 0;
} else {
$identity->modeEdition = true;
echo 1;
}
$auth->getStorage()->write($identity);
} else {
echo 0;
}
}
/**
* Override email in surveillance portfolio
*/
public function emailsurveillanceAction()
{
$this->_helper->layout()->disableLayout();
$request = $this->getRequest();
$user = new Scores_Utilisateur();
//Execute webservice operation
if ( $request->isPost() ) {
$email = trim($request->getParam('email'));
if ($user->isAdmin() || $user->isSuperAdmin()) {
$login = $request->getParam('login');
}
if (empty($email)) {
$result = "Aucun email défini!";
} else if (empty($login)) {
$result = "Aucun utilisateur défini!";
} else {
$ws = new WsScores();
$result = $ws->setSurveillancesMail($login, $email);
}
$this->view->assign('result', $result);
}
//Display form in dialog
else {
if ($user->isAdmin() || $user->isSuperAdmin()) {
$login = $request->getParam('login');
} else {
$login = $user->getLogin();
}
$this->view->assign('login', $login);
$this->view->assign('dialog',true);
}
}
/**
* Changer la langue de l'utilisateur
*/
public function langAction()
{
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
$lang = $this->getRequest()->getParam('lang', null);
$auth = Zend_Auth::getInstance();
$identity = $auth->getIdentity();
$identity->langtmp = $lang;
$auth->getStorage()->write($identity);
}
/**
* Changer le theme de l'utilisateur
*/
public function changethemeAction()
{
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
$request = $this->getRequest();
$nom = $request->getParam('nom', 'default');
$auth = Zend_Auth::getInstance();
$identity = $auth->getIdentity();
$identity->theme = $nom;
$auth->getStorage()->write($identity);
//Rediriger vers l'écran de recherche
$this->_redirect('/');
}
/**
* Display browser informations on a simple page
*/
public function browserAction()
{
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
//Load bootstrap
$bootstrap = Zend_Controller_Front::getInstance()->getParam('bootstrap');
//Get useragent and device informations
$userAgent = $bootstrap->getResource('useragent');
$device = $userAgent->getDevice();
//Display
echo "<pre>";
print_r(get_browser());
print_r($device->getAllFeatures());
echo "</pre>";
}
/**
* Sends email to the specific client, who requests for forgotten password
*/
public function motpasseAction()
{
$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('supportdev');
$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

@ -0,0 +1,342 @@
<?php
class WorldcheckController extends Zend_Controller_Action
{
protected $theme;
protected $wcConfig;
/**
* Logger
* @var \Monolog\Logger
*/
protected $logger;
public function init()
{
if (Zend_Registry::isRegistered('logger')) {
$this->logger = Zend_Registry::get('logger');
}
// --- 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

@ -11,7 +11,7 @@ p { margin:10px 0;}
div#content { float:none; width:auto;}
</style>
<script>
$(document).ready(function(){
$(function(){
$('input[type=checkbox][name=accept]').click(function(e){
$('form[name=cgu]').css('display', 'none');
$('#msgsave').css('display', 'block');

View File

@ -2,16 +2,17 @@
<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>
<strong>Nouveau !</strong>
<?php $cpt = 0;?>
<?php foreach ( $this->nouveautes as $nouveaute) {?>
<a href="<?=$this->url(array('controller'=>'fichier', 'action'=>'new', 'fichier'=>$nouveaute->fichier))?>" target="_blank">
<a href="<?=$this->url(array('module'=>'file','controller'=>'index', 'action'=>'new',
'q'=>$nouveaute->fichier))?>" target="_blank">
<?=$nouveaute->intitule?></a>
<?php $cpt++;?>
<?php if ( $cpt < count($this->nouveautes) ) {?>,<?php }?>
<?php }?>
<br/>
<span style="font-size:10px;">Cliquez sur les intitulés pour consulter le document,
<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>

View File

@ -0,0 +1,42 @@
<style>
table { width:100%; }
table th { border:1px solid; font-weight:bold; padding:5px; }
table tr { }
table td { border:1px solid; padding:5px; }
</style>
<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>Date</th>
<th>Intitulé</th>
<th>Catégorie</th>
</tr>
</thead>
<tbody>
<?php if ( count($this->nouveautes)>0 ){?>
<?php foreach ( $this->nouveautes as $nouveau) {?>
<tr>
<td><?=substr($nouveau->date,8,2).'/'.substr($nouveau->date,5,2).'/'.substr($nouveau->date,0,4)?></td>
<td>
<a href="<?=$this->url(array('module'=>'file', 'controller'=>'index', 'action'=>'new',
'q'=>$nouveau->fichier))?>" target="_blank">
<?=$nouveau->intitule?></a>
</td>
<td><?=$nouveau->categorie?></td>
</tr>
<?php }?>
<?php }?>
</tbody>
</table>
</div>
</div>

View File

@ -0,0 +1,96 @@
<?php echo $this->doctype(); ?>
<html>
<head>
<?php echo $this->headMeta(); ?>
<?php echo $this->headTitle(); ?>
<?php echo $this->headStyle(); ?>
<?php echo $this->headLink(); ?>
<?php echo $this->headScript(); ?>
</head>
<body>
<div id="wrap">
<div class="container">
<div class="row">
<div class="col-md-6">
<h1 class="text-center">Scores & Decisions</h1>
<br/>
<p>
Scores & Decisions est l'éditeur d'une base de données de référence sur toutes les entreprises de France.
Scores & Decisions est licencié officiel depuis 2008 pour la rediffusion du répertoire Sirène (INSEE), du RNCS
Registre National du Commerce et des Sociétés (INPI) et des Journaux Officiels (DILA). Scores & Decisions est
un service privé distinct des services publics cités.
</p>
<br/>
<div class="panel panel-default">
<div class="panel-body">
<p class="text-primary">Spécialiste de l'information légales et financières sur les entreprises, Scores & Décisions vous permet par
confirmation des éléments ci-contre d'accéder à toute sa base de données.</p>
<ul class="list-group">
<li class="list-group-item">
Télécharger nos Conditions Générales de Services
<a href="<?=$this->baseUrl()?>/documents/inextenso_cgs.pdf" target="_blank">
<span class="glyphicon glyphicon-file pull-right" aria-hidden="true"></span></a>
</li>
<li class="list-group-item">
Télécharger nos Conditions Tarifaires
<a href="#" target="_blank">
<span class="glyphicon glyphicon-file pull-right" aria-hidden="true"></span></a>
</li>
<li class="list-group-item">
Télécharger les coordonnées de vos contacts
<a href="<?=$this->baseUrl()?>/documents/inextenso_contacts.pdf" target="_blank">
<span class="glyphicon glyphicon-file pull-right" aria-hidden="true"></span></a>
</li>
</ul>
</div>
</div>
</div>
<div class="col-md-6">
<h2>Trouvez les réponses à vos questions !</h2>
<ul class="arguments">
<li><strong>Disposez de certitudes sur l'identité de vos interlocuteurs, les liens financiers et les liens
dirigeants... ></strong> Mon client a t il une existence légale ? Quels sont les derniers événements qui ont touché l'entreprise ?</li>
<li><strong>Évitez les mauvais payeurs ></strong>
Ce prospect paye t'il rapidement, est-il en procédure collective ? Quel est sa rentabilité, son niveau de
trésorerie ?</li>
<li><strong>Surveillez la solvabilité de vos partenaires, clients et fournisseurs ou concurrents ></strong>
Mes clients sont ils viables dans la durée, puis je continuer et développer les ventes ?</li>
<li><strong>Découvrez la valeur de votre entreprises ou celles de vos concurrents ></strong> Mon entreprise a t elle de la
valeur ? combien me coûterait le rachat d'un concurrent ?</li>
<li><strong>Trouvez vos futurs clients ></strong> Où sont et qui sont mes prospects ?</li>
</ul>
<p>Les données agrégées sont officielles, exhaustives, fraîches et opposables aux tiers. Elles sont utilisées
par des grands groupes et institutionnels dans des cadres contentieux, de conformité, de fraude...</p>
<?php if ($this->FormUrlParams) {?>
<a type="button" class="btn btn-success btn-lg" href="<?=$this->url($this->FormUrlParams, 'default', true)?>">Accédez au site</a>
<?php }?>
</div>
</div>
</div>
</div>
<?php echo $this->inlineScript(); ?>
</body>
</html>

View File

@ -0,0 +1,58 @@
<?php echo $this->doctype(); ?>
<html>
<head>
<?php echo $this->headMeta(); ?>
<?php echo $this->headTitle(); ?>
<?php echo $this->headStyle(); ?>
<?php echo $this->headLink(); ?>
<?php echo $this->headScript(); ?>
</head>
<body>
<div id="wrap">
<div class="container">
<div class="row">
<div class="col-md-6"><img src="/themes/default/images/partner/<?=$this->logo?>"/></div>
<div class="col-md-6">
<h2 class="form-signin-heading">Extranet <small>Scores & Décisions</small></h2>
<?php
//Error
if ($this->Error) {?>
<div style="text-align:center;"><p class="text-danger"><span>Une erreur est survenue</span></p></div>
<?php
}
//Message
else if ($this->Message) {?>
<div style="text-align:center;"><p class="text-danger"><span><?=$this->Message?></span></p></div>
<?php
}
//OK
else if ($this->UserCreated) {?>
<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))?>">
Cliquez ici pour être redirigé vers la page d'accueil.</a>
</p>
</div>
<?php }?>
</div>
</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,126 @@
<?php echo $this->doctype(); ?>
<html>
<head>
<?php echo $this->headMeta(); ?>
<?php echo $this->headTitle(); ?>
<?php echo $this->headStyle(); ?>
<?php echo $this->headLink(); ?>
<?php echo $this->headScript(); ?>
</head>
<body>
<div id="wrap">
<div class="container">
<div class="row">
<div class="col-md-6">
<p><img src="/themes/default/images/partner/<?=$this->logo?>"/></p>
<div class="panel panel-default">
<div class="panel-body">
<p class="text-primary">Spécialiste de l'information légales et financières sur les entreprises, Scores & Décisions vous permet par
confirmation des éléments ci-contre d'accéder à toute sa base de données.</p>
<ul class="list-group">
<li class="list-group-item">
Télécharger nos Conditions Générales de Services
<a href="<?=$this->baseUrl()?>/documents/inextenso_cgs.pdf" target="_blank">
<span class="glyphicon glyphicon-file pull-right" aria-hidden="true"></span></a>
</li>
<li class="list-group-item">
Télécharger nos Conditions Tarifaires
<a href="#" target="_blank">
<span class="glyphicon glyphicon-file pull-right" aria-hidden="true"></span></a>
</li>
<li class="list-group-item">
Télécharger les coordonnées de vos contacts
<a href="<?=$this->baseUrl()?>/documents/inextenso_contacts.pdf" target="_blank">
<span class="glyphicon glyphicon-file pull-right" aria-hidden="true"></span></a>
</li>
</ul>
</div>
</div>
</div>
<div class="col-md-6">
<form method="post" action="<?=$this->url(array('controller'=>'auth', 'action'=>'userssocreate'), 'default', true)?>">
<h2 class="form-signin-heading">Extranet <small>Scores &amp; Décisions</small></h2>
<?php
//Error
if ($this->Error) {?>
<div style="text-align:center;"><p class="text-danger"><span>Une erreur est survenue</span></p></div>
<?php
}
//Message
else if ($this->Message) {?>
<div style="text-align:center;"><p class="text-danger"><span><?=$this->Message?></span></p></div>
<?php
}
//NoUser
else if ($this->NoUser) {?>
<div><p class="text-warning"><span>
Votre compte n'existe pas encore. Compléter le formulaire puis valider pour créer votre compte.
</span></p>
</div>
<?php foreach ($this->Params as $item) {?>
<input type="hidden" name="P-<?=$item->label?>" value="<?=$item->value?>"/>
<?php }?>
<input type="hidden" name="partner" value="<?=$this->FormPartner?>"/>
<div class="form-group">
<label for="identifiant">Identifiant</label>
<input type="text" id="identifiant" value="<?=$this->FormIdentifiant?>" class="form-control" disabled>
<input type="hidden" name="login" value="<?=$this->FormIdentifiant?>">
</div>
<div class="form-group">
<label for="email">Email</label>
<input type="text" class="form-control" value="<?=$this->FormCourriel?>" disabled>
<input type="hidden" name="email" value="<?=$this->FormCourriel?>">
</div>
<div class="form-group">
<label for="siret">SIRET</label>
<input type="text" class="form-control" name="siret" value="<?=$this->FormSiret?>">
</div>
<div class="form-group">
<label for="nom">Nom</label>
<input type="text" class="form-control" name="nom" value="<?=$this->FormNom?>">
</div>
<div class="form-group">
<label for="prenom">Prénom</label>
<input type="text" class="form-control" name="prenom" value="<?=$this->FormPrenom?>">
</div>
<div class="form-group">
<label for="tel">Téléphone</label>
<input type="text" class="form-control" name="tel" value="<?=$this->FormTel?>">
</div>
<button class="btn btn-lg btn-primary btn-block clearfix" type="submit">Valider</button>
<?php }?>
</form>
</div>
</div>
</div>
</div>
<div id="footer">
<div class="container">
<p class="text-muted credit"> &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,190 @@
<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">
<h1>Banque de France - Modules</h1>
<h2>Recherche FIBEN / FCC identifiant unique</h2>
<div class="paragraph">
<form name="rFibenU" method="post" action="<?=$this->url(array('controller'=>'bdf', 'action'=>'module'))?>">
<input type="hidden" name="type" value="u"/>
<input type="hidden" name="siret" value="<?=$this->siret?>"/>
<div id="identifiant">
<label>Identifiant</label> <input type="text" name="req" value="<?=$this->req?>"/>
<br/><span>SIREN ou clé BDF</span>
</div>
<div id="modules" class="clearfix">
<a href='#' id="listeModulesD">Liste des modules</a>
<span id="selected">
<?php if ($this->module && is_array($this->module)){ ?>
<?php
foreach ($this->listModulesFiben as $id => $module) {
if (isset($module['liste']) == false || $module['liste'] !== false) {
if (in_array($id, $this->module))
{
echo '<br/>'.$module['titre'];
}
}
}
foreach ($this->listModulesFcc as $id => $module) {
if (isset($module['liste']) == false || $module['liste'] !== false) {
if (in_array($id, $this->module))
{
echo '<br/>'.$module['titre'];
}
}
}
?>
<?php } ?>
</span>
</div>
<div id="listeModules">
<a href="#" id="closelisteModules">Fermer</a>
<ul>
<?php
foreach ($this->listModulesFiben as $id => $module) {
if (isset($module['liste']) == false || $module['liste'] !== false) {
$checked = '';
if (isset($this->module) && is_array($this->module) && in_array($id, $this->module))
{
$checked = 'checked';
}
?>
<li>
<input type="checkbox" name="bdfmodule[]" value="<?=$id?>" <?=$checked?>/>
<?=$module['titre']?>
</li>
<?php
}
}
foreach ($this->listModulesFcc as $id => $module) {
if (isset($module['liste']) == false || $module['liste'] !== false) {
$checked = '';
if (isset($this->module) && is_array($this->module) && in_array($id, $this->module))
{
$checked = 'checked';
}
?>
<li>
<input type="checkbox" name="module[]" value="<?=$id?>" <?=$checked?>/>
<?=$module['titre']?>
</li>
<?php
}
}
?>
</ul>
<br/>
</div>
<input class="button" type="submit" name="rFiben" value="Afficher"/>
</form>
</div>
<br/>
<h2>Recherche FIBEN / FCC identifiants multiples</h2>
<div class="paragraph">
<form name="rFibenM" method="post" action="<?=$this->url(array('controller'=>'bdf', 'action'=>'module'))?>">
<input type="hidden" name="type" value="m"/>
<input type="hidden" name="siret" value="<?=$siret?>"/>
<div id="identifiant">
<label>Identifiant</label>
<input type="text" name="identifiant[]" value="<?=$req?>" />
<a href="#" id="addIdentifiant">Ajouter</a>
</div>
<div id="modules" class="clearfix">
<label>Module</label>
<select name="bdfmodule">
<?php
foreach ($this->listModulesFiben as $id => $module) {
if (isset($module['liste']) == false || $module['liste'] !== false) {
echo '<option value="'.$id.'">'.$module['titre'].'</option>';
}
}
foreach ($this->listModulesFcc as $id => $module) {
if (isset($module['liste']) == false || $module['liste'] !== false) {
echo '<option value="'.$id.'">'.$module['titre'].'</option>';
}
}
?>
</select>
</div>
<input class="button" type="submit" name="rFiben" value="Afficher"/>
</form>
</div>
<br/>
<h2>Recherche FICP</h2>
<div class="paragraph">
<form name="rFicp" method="post" action="<?=$this->url(array('controller'=>'bdf', 'action'=>'module'))?>">
<input type="hidden" name="bdfmodule" value="G"/>
<input type="hidden" name="service" value="ficp"/>
<label>Clé BDF</label>
<input type="text" name="req"/>
<input class="button" type="submit" name="rFicp" value="Ok"/>
</form>
</div>
</div>
<script>
$(function(){
$('#listeModulesD').click(function(){
var position = $(this).position();
$('#listeModules').css('top', position.top);
$('#listeModules').css('left', position.left-200);
var display = $('#listeModules').css('display');
if(display=='none') $('#listeModules').css('display', 'block');
else $('#listeModules').css('display', 'none');
});
$('#closelisteModules').click(function(){
$('#listeModules').css('display', 'none');
$('#modules > #selected').html('');
$('input[name="module[]"]').each(function(){
if ($(this).prop('checked')){
$('#modules > #selected').append('<br/>'+$(this).parent().text());
}
});
});
$('#addIdentifiant').click(function(){
$('form[name=rFibenM] > #identifiant').append('<br/><label>Identifiant</label> <input type="text" name="identifiant[]" />');
});
});
</script>

View File

@ -0,0 +1,526 @@
<style type="text/css">
.close { display: none; }
.open { display: block; }
.field span { display:inline; }
fieldset { margin:10px 0;}
fieldset legend { font-weight:bold; font-size: 108%; padding:0; }
div.submit { clear: both; text-align: center; }
</style>
<script type="text/javascript">
$(function(){
$('.menu-close').click(function(){
$('div.blockh2').css('display','none');
$(this).next('div.blockh2').css('display','block');
});
$('a#addIp').click(function(e){
e.preventDefault();
var text = $('div.formip').html();
var title = $(this).html();
var dialogOpts = {
bgiframe: true,
title: title,
width: 250,
height: 130,
modal: true,
open: function(event, ui) { $(this).html(text); },
buttons: {
'Ajouter' : function() {
var select1 = $('#formip input[name=ip0]').val()+'.'+
$('#formip input[name=ip1]').val()+'.'+
$('#formip input[name=ip2]').val()+'.'+
$('#formip input[name=ip3]').val();
var select2 = $('#formip input[name=ip4]').val()+'.'+
$('#formip input[name=ip5]').val()+'.'+
$('#formip input[name=ip6]').val()+'.'+
$('#formip input[name=ip7]').val();
VerifIp = new RegExp('^([0-9]{1,3}\.){3}[0-9]{1,3}$');
if ( (VerifIp.test(select1) && VerifIp.test(select2)) || (VerifIp.test(select1) && select2=='...') ){
var txt = $('input[name=filtres_ip]').val();
if (select2=='...'){
select = select1;
} else {
select = select1+'-'+select2;
}
(txt.length>0) ? txt = txt+';'+select : txt = select;
var concat = '';
var liste = txt.split(';');
for (item in liste){
concat = concat+liste[item]+' [<a href="#" class="deleteIP" id="'+liste[item]+'">Suppression</a>]<br/>';
}
$('input[name=filtres_ip]').val(txt);
$('#listeip').html(concat);
}
$(this).dialog('close');
},
'Fermer': function() { $(this).dialog('close'); }
},
close: function() { $('div#formip').remove(); }
};
$('<div id="formip"></div>').dialog(dialogOpts);
return false;
});
$('body').delegate('.deleteIP', 'click', function(e){
e.preventDefault();
var select = $(this).attr('id');
var txt = '';
var concat = '';
var strListe = $('input[name=filtres_ip]').val();
strListe = strListe.substring(0, strListe.length-1);
var liste = strListe.split(';');
for (item in liste){
if (liste[item]!=select){
(txt.length>0) ? txt = txt+';'+liste[item] : txt = liste[item];
concat = concat+liste[item]+' [<a href="#" class="deleteIP" id="'+liste[item]+'">Suppression</a>]<br/>';
}
}
$('input[name=filtres_ip]').val(txt);
$('#listeip').html(concat);
});
$('input.checkskin[type=checkbox]').checkbox();
});
</script>
<div id="center">
<h1><?=$this->titre?></h1>
<div class="formip" style="display: none;">
<input type="text" maxlength="3" size="3" name="ip0" />&nbsp;.&nbsp;
<input type="text" maxlength="3" size="3" name="ip1" />&nbsp;.&nbsp;
<input type="text" maxlength="3" size="3" name="ip2" />&nbsp;.&nbsp;
<input type="text" maxlength="3" size="3" name="ip3" /> -
<input type="text" maxlength="3" size="3" name="ip4" />&nbsp;.&nbsp;
<input type="text" maxlength="3" size="3" name="ip5" />&nbsp;.&nbsp;
<input type="text" maxlength="3" size="3" name="ip6" />&nbsp;.&nbsp;
<input type="text" maxlength="3" size="3" name="ip7" />
</div>
<form name="client" method="post" action="<?=$this->url(array('controller'=>'dashboard', 'action'=>'clientsave'), null, true)?>">
<input type="hidden" name="action" value="client" />
<input type="hidden" name="idClient" value="<?=$this->idClient?>" />
<h2 class="menu-close">Identification</h2>
<div class="blockh2 close">
<div class="fieldgrp">
<label>Nom</label>
<div class="field">
<input name="nom" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->nom : '';?>" />
</div>
</div>
<div class="fieldgrp">
<label>Siren</label>
<div class="field">
<input name="siren" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->siren : '';?>" />
<a href="#">Obtention Dénomination sociale</a>
</div>
</div>
<div class="fieldgrp">
<label>Nic du siège</label>
<div class="field">
<input name="nic" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->nic : '';?>" />
</div>
</div>
<div class="fieldgrp">
<label>Racine des identifiants</label>
<div class="field">
<input name="racineLogin" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->racineLogin: '';?>" />
</div>
</div>
<div class="fieldgrp">
<label>Test</label>
<div class="field">
<select name="test">
<option value="Oui" <?php if ($this->InfosClient->test=='Oui') echo 'selected';?>>Oui</option>
<option value="Non" <?php if ($this->InfosClient->test=='Non') echo 'selected';?>>Non</option>
</select>
</div>
</div>
<div class="fieldgrp">
<label>Actif</label>
<div class="field">
<select name="actif">
<option value="Oui" <?php if ($this->InfosClient->actif=='Oui') echo 'selected';?>>Oui</option>
<option value="Non" <?php if ($this->InfosClient->actif=='Non') echo 'selected';?>>Non</option>
</select>
</div>
</div>
<div class="fieldgrp">
<label>Date de signature</label>
<div class="field">
<input name="dateSignature" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->dateSignature : '';?>" />
(AAAA-MM-YY)
</div>
</div>
<div class="fieldgrp">
<label>Type de contrat</label>
<div class="field">
<select name="typeContrat">
<option value="Contrat" <?php if ($this->InfosClient->typeContrat=='Contrat') echo 'selected';?>>Contrat</option>
<option value="Marché" <?php if ($this->InfosClient->typeContrat=='Marché') echo 'selected';?>>Marché</option>
</select>
</div>
</div>
<div class="fieldgrp">
<label>Commercial S&amp;D</label>
<div class="field">
<input name="respComSD" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->respComSD : '';?>" disabled />
</div>
</div>
<div class="fieldgrp">
<label>Nom de l'apporteur d'affaire</label>
<div class="field">
<input name="apporteurAffaire" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->apporteurAffaire: '';?>" />
</div>
</div>
<div class="fieldgrp">
<label>Type d'accès</label>
<div class="field">
<select name="typeAcces">
<option value="userPassword" <?php if ($this->InfosClient->typeAcces=='userPassword') echo 'selected';?>>userPassword</option>
<option value="userPasswordIP" <?php if ($this->InfosClient->typeAcces=='userPasswordIP') echo 'selected';?>>userPasswordIP</option>
<option value="IP" <?php if ($this->InfosClient->typeAcces=='IP') echo 'selected';?>>IP</option>
</select>
</div>
</div>
<div class="fieldgrp">
<label>Remarques / Observations</label>
<div class="field">
<textarea name="remarque">
<?php echo isset($this->InfosClient) ? $this->InfosClient->remarque : '';?></textarea>
</div>
</div>
</div>
<h2 class="menu-close">Facturation</h2>
<div class="blockh2 close">
<div class="fieldgrp">
<label>N° de TVA</label>
<div class="field">
<input name="tva" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->tva : '';?>" />
</div>
</div>
<div class="fieldgrp">
<label>Compte client rattaché</label>
<div class="field">
<input name="xxxx" type="text" value="" />
</div>
</div>
<div class="fieldgrp">
<label>Editer la facture automatiquement</label>
<div class="field">
<select name="editerFacture">
<option value="Oui" <?php if ($this->InfosClient->editerFacture=='Oui') echo 'selected';?>>Oui</option>
<option value="Non" <?php if ($this->InfosClient->editerFacture=='Non') echo 'selected';?>>Non</option>
</select>
</div>
</div>
<div class="fieldgrp">
<label>Editer le détail de la facture</label>
<div class="field">
<select name="fact_detail">
<option value="Oui" <?php if ($this->InfosClient->editerFacture=='Oui') echo 'selected';?>>Oui</option>
<option value="Non" <?php if ($this->InfosClient->fact_detail=='Non') echo 'selected';?>>Non</option>
</select>
</div>
</div>
<div class="fieldgrp">
<label>Nom du destinataire de la facture</label>
<div class="field">
<input name="fac_dest" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->fac_dest : '';?>" />
</div>
</div>
<div class="fieldgrp">
<label>Adresse1</label>
<div class="field">
<input name="fac_adr1" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->fac_adr1 : '';?>" />
</div>
</div>
<div class="fieldgrp">
<label>Adresse2</label>
<div class="field">
<input name="fac_adr2" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->fac_adr2 : '';?>" />
</div>
</div>
<div class="fieldgrp">
<label>Adresse3</label>
<div class="field">
<input name="fac_adr3" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->fac_adr3 : '';?>" />
</div>
</div>
<div class="fieldgrp">
<label>Email</label>
<div class="field">
<input name="fac_email" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->fac_email : '';?>" />
</div>
</div>
<div class="fieldgrp">
<label>Téléphone</label>
<div class="field">
<input name="fac_tel" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->fac_tel : '';?>" />
</div>
</div>
<div class="fieldgrp">
<label>RIB joint à la facture</label>
<div class="field">
<select name="fact_rib">
<option value="BPOSTALE" <?php if ($this->InfosClient->fact_rib=='BPOSTALE') echo 'selected';?>>BPOSTALE</option>
<option value="CCOOP" <?php if ($this->InfosClient->fact_rib=='CCOOP') echo 'selected';?>>CCOOP</option>
<option value="CDNORD" <?php if ($this->InfosClient->fact_rib=='CDNORD') echo 'selected';?>>CDNORD</option>
</select>
</div>
</div>
</div>
<h2 class="menu-close">Livraison : Informations sur le destinataire de la livraison</h2>
<div class="blockh2 close">
<div class="fieldgrp">
<label>Nom</label>
<div class="field">
<input name="liv_dest" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->liv_dest : '';?>" />
</div>
</div>
<div class="fieldgrp">
<label>Adresse1</label>
<div class="field">
<input name="liv_adr1" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->liv_adr1 : '';?>" />
</div>
</div>
<div class="fieldgrp">
<label>Adresse2</label>
<div class="field">
<input name="liv_adr2" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->liv_adr2 : '';?>" />
</div>
</div>
<div class="fieldgrp">
<label>Adresse3</label>
<div class="field">
<input name="liv_adr3" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->liv_adr3 : '';?>" />
</div>
</div>
<div class="fieldgrp">
<label>Email</label>
<div class="field">
<input name="liv_email" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->liv_email : '';?>" />
</div>
</div>
<div class="fieldgrp">
<label>Téléphone</label>
<div class="field">
<input name="liv_tel" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->liv_tel : '';?>" />
</div>
</div>
</div>
<h2 class="menu-close">Paramétrage</h2>
<div class="blockh2 close">
<div class="fieldgrp">
<label>IndiScore</label>
<div class="field">
<select name="typeScore">
<option value="100" <?php if ($this->InfosClient->typeScore=='100') echo 'selected';?>>100</option>
<option value="20" <?php if ($this->InfosClient->typeScore=='20') echo 'selected';?>>20</option>
</select>
</div>
</div>
<div class="fieldgrp">
<label>Liste des adresses IP</label>
<div class="field">
<?php
$text_ip = '';
$filtres_ip = '';
if (isset($this->InfosClient) && !empty($this->InfosClient->filtres_ip)){
$ips = explode(';',$this->InfosClient->filtres_ip);
foreach ($ips as $ip){
$filtres_ip.= $ip.';';
$text_ip.= $ip.' [<a href="#" class="deleteIP" id="'.$ip.'">Suppression</a>]<br/>';
}
}
?>
<input type="hidden" name="filtres_ip" value="<?php echo $filtres_ip?>">
<span id="listeip">
<?php
if (!empty($text_ip)){
echo $text_ip;
} else {
echo "Aucune IPs.";
}
?> </span> <br /> <a href="#" id="addIp">Ajouter une adresse IP</a>
</div>
</div>
<div class="fieldgrp">
<label>Listes des Droits</label>
<div class="field">
<?php $listedroits = explode(' ', $this->InfosClient->droits); ?>
<?php foreach($this->wscategory as $category) { ?>
<fieldset>
<legend><?=$category->desc?></legend>
<?php foreach($category->droits->item as $droit) {
$check = '';
if (in_array(strtolower($droit), $listedroits)) {
$check = ' checked';
}
?>
<input class="checkskin" type="checkbox" name="droits[]" value="<?=strtolower($droit)?>"<?=$check?>/>
<?=$this->wsdroits[$droit]?><br/>
<?php } ?>
</fieldset>
<?php }?>
</div>
</div>
<div class="fieldgrp">
<label>Timeout</label>
<div class="field">
<input type="text" name="timeout" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->timeout : '3600';?>" />
</div>
</div>
</div>
<h2 class="menu-close">Tarification</h2>
<div class="blockh2 close">
<div class="fieldgrp">
<label>forfaitExtranetPeriode</label>
<div class="field">
<select name="forfaitExtranetPeriode">
<option value="Mensuel" <?php if ($this->InfosClient->forfaitExtranetPeriode=='Mensuel') echo 'selected';?>>Mensuel</option>
<option value="Trimestriel" <?php if ($this->InfosClient->forfaitExtranetPeriode=='Trimestriel') echo 'selected';?>>Trimestriel</option>
<option value="Semestriel" <?php if ($this->InfosClient->forfaitExtranetPeriode=='Semestriel') echo 'selected';?>>Semestriel</option>
<option value="Annuel" <?php if ($this->InfosClient->forfaitExtranetPeriode=='Annuel') echo 'selected';?>>Annuel</option>
</select>
</div>
</div>
<div class="fieldgrp">
<label>forfaitExtranetMontant</label>
<div class="field">
<input type="text" name="forfaitExtranetMontant" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->forfaitExtranetMontant : '';?>" />
</div>
</div>
<div class="fieldgrp">
<label>reconductionAuto</label>
<div class="field">
<select name="reconductionAuto">
<option value="Oui" <?php if ($this->InfosClient->reconductionAuto=='Oui') echo 'selected';?>>Oui</option>
<option value="Non" <?php if ($this->InfosClient->reconductionAuto=='Non') echo 'selected';?>>Non</option>
</select>
</div>
</div>
<div class="fieldgrp">
<label>Nombre de pièces officielles inclues dans le forfait client</label>
<div class="field">
<input type="text" name="forfaitPiecesNb" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->forfaitPiecesNb : '';?>" />
</div>
</div>
<div class="fieldgrp">
<label>Montant du forfait des pièces officielles</label>
<div class="field">
<input type="text" name="forfaitPiecesMt" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->forfaitPiecesMt : '';?>" />
</div>
</div>
<div class="fieldgrp">
<label>Tarif unitaire en cas de dépassement</label>
<div class="field">
<input type="text" name="forfaitPiecesDep" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->forfaitPiecesDep : '';?>" />
</div>
</div>
<div class="fieldgrp">
<label>Nombre d'investigations incluses dans le forfait client</label>
<div class="field">
<input type="text" name="forfaitInvestigNb" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->forfaitInvestigNb : '';?>" />
</div>
</div>
<div class="fieldgrp">
<label>Montant du forfait des investigations</label>
<div class="field">
<input type="text" name="forfaitInvestigMt" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->forfaitInvestigMt : '';?>" />
</div>
</div>
<div class="fieldgrp">
<label>Tarif unitaire pour les indiscore</label>
<div class="field">
<input type="text" name="tarifIndiscore" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->tarifIndiscore : '';?>" />
</div>
</div>
</div>
<h2 class="menu-close">Divers</h2>
<div class="blockh2 close">
<div class="fieldgrp">
<label>Accès Webservice</label>
<div class="field">
<input type="text" name="accesWS" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->accesWS : '';?>" />
</div>
</div>
<div class="fieldgrp">
<label>Intersud - Login</label>
<div class="field">
<input type="text" name="InterSudLogin" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->InterSudLogin : '';?>" />
</div>
</div>
<div class="fieldgrp">
<label>Intersud - Mot de passe</label>
<div class="field">
<input type="text" name="InterSudPass" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->InterSudPass : '';?>" />
</div>
</div>
</div>
<div class="submit">
<p class="submit-button">
<input type="submit" class="button" value="<?php echo $this->submitValue?>" />
</p>
</div>
</form>
</div>

View File

@ -0,0 +1,85 @@
<style type="text/css">
#utilisateur { border-collapse:collapse; width:100%;}
#utilisateur tr.titre td { background-color: #D9EEF1; font-weight:bold; }
#utilisateur tr.border td { border:1px dashed #939393; padding:5px; margin:0; vertical-align:top; }
#utilisateur tr.bordertop td { border:1px dashed #939393; border-top:1px solid; padding:5px; margin:0; vertical-align:top; }
#utilisateur tr.borderbottom td { border:1px dashed #939393; border-bottom:1px solid; padding:5px; margin:0; vertical-align:top; }
#utilisateur tr.actif { background-color:#D9EEF1; }
#utilisateur tr.noactif { background-color:#F0F0F6; }
.cadreinfo {display:none;}
</style>
<div id="center">
<h1>GESTION DES CLIENTS</h1>
<div class="paragraph">
<a href="<?=$this->url(array('action'=>'client'))?>">Créer un client</a>
</div>
<h2>Liste des clients</h2>
<div class="paragraph">
<table id="utilisateur" >
<tr class="border titre">
<td class="StyleInfoLib">Nom</td>
<td class="StyleInfoLib">Actions</td>
</tr>
<?php
if (count($this->ListeClients) > 0) {
foreach ($this->ListeClients as $cl) {
if ($cl->actif == 'Oui') {
$class = 'actif';
} else {
$class = 'noactif';
}
?>
<tr class="bordertop <?=$class?>">
<td><?=$cl->nom?></td>
<td>
<div>
<div>
<button class="action">Action</button>
<button class="select">Select an action</button>
</div>
<ul style="position:absolute;z-index:1;">
<?php if ($cl->actif == 'Oui') {?>
<li><a href="<?=$this->url(array('controller'=>'dashboard','action'=>'client','idClient'=>$cl->idClient),null,true)?>">Editer</a></li>
<li class="divider"></li>
<li><a href="<?=$this->url(array('controller'=>'dashboard','action'=>'prestations','idClient'=>$cl->idClient),null,true)?>">Prestations fichier</a></li>
<li><a href="<?=$this->url(array('controller'=>'dashboard','action'=>'tarifs','idClient'=>$cl->idClient),null,true)?>">Tarification</a></li>
<li><a href="<?=$this->url(array('controller'=>'dashboard','action'=>'services','idClient'=>$cl->idClient),null,true)?>">Services</a></li>
<li><a href="<?=$this->url(array('controller'=>'dashboard','action'=>'users','idClient' => $cl->idClient),null,true)?>">Utilisateurs</a></li>
<?php }?>
</ul>
</div>
</td>
</tr>
<?php
}
}
?>
</table>
</div>
</div>
<script>
$( ".action" ).button().click(function() {
alert( "Selectionner une action" );
}).next().button({
text: false,
icons: { primary: "ui-icon-triangle-1-s" }
}).click(function() {
var menu = $( this ).parent().next().show().position({
my: "left top",
at: "left bottom",
of: this
});
$( document ).one( "click", function() {
menu.hide();
});
return false;
}).parent().buttonset().next().hide().menu();
</script>

View File

@ -81,7 +81,7 @@ $compteur++;
'controller' => 'dashboard',
'action' => 'rs',
'siren' => $item->siren,
), null, true)?>" class="rs">Raison sociale</a>
), null, true)?>" class="rs">Dénomination sociale</a>
</b>
</td>
<td width="40%">

View File

@ -0,0 +1,27 @@
<div class="contrat">
<div>Du <?=$contrat->dateBegin?> au <?=$contrat->dateEnd?></div>
<table>
<tr>
<th>Log</th>
<th>Service</th>
<th>Type</th>
<th>Prix unitaire</th>
<th>Limit</th>
<th>Dédoublonnage</th>
</tr>
<?php foreach ($contrat->tarifs->item as $tarif ) {?>
<tr>
<td><?=$tarif->log?></td>
<td><?=$tarif->service?></td>
<td><?=$tarif->type?></td>
<td><?=$tarif->priceUnit?></td>
<td><?=$tarif->limit?></td>
<td><?=$tarif->doublon?></td>
</tr>
<?php }?>
</table>
<div style="line-height:16px;">
<a class="tarif-add" title="Ajouter un tarif" href="#">
<img style="vertical-align:middle;" src="/themes/default/images/interfaces/ajouter.png" />Ajouter un tarif</a>
</div>
</div>

View File

@ -16,23 +16,22 @@ Fichier PDF : <input type="file" name="fichier" />
<input type="submit" name="upload" value="Valider" />
</form>
<div id="uploadOutput"></div>
<script type="text/javascript" src="/libs/form/jquery.form.js">
</script>
<script type="text/javascript" src="/libs/form/jquery.form.min.js"/>
<script>
var timer;
function checkProgress() {
$.getJSON('<?=$this->url(array('controller'=>'dashboard', 'action'=>'newprogress'))?>',
{key: $('#key').val()}, function(data) {
$.getJSON('<?=$this->url(array('controller'=>'dashboard', 'action'=>'newprogress'))?>',
{key: $('#key').val()}, function(data) {
$('#uploadOutput').html(data.current+'/'+data.total);
});
}
$(document).ready(function() {
$(function() {
$('#uploadForm').ajaxForm({
beforeSubmit: function() {
$('#uploadOutput').html('Envoi en cours...');
timer = setInterval(checkProgress,500);
timer = setInterval(checkProgress,500);
},
success: function(data) {
clearInterval(timer);

View File

@ -0,0 +1,291 @@
<style type="text/css">
.close {
display: none;
}
.open {
display: block;
}
.fieldgrp {
clear: both;
width: 100%;
margin-bottom: .5em;
overflow: hidden;
}
.fieldgrp:after {
content: ".";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
.fieldgrp label {
font-weight: bold;
margin-left: 30px;
width: 180px;
clear: both;
padding: 0 10px 0 0;
line-height: 22px;
_padding-top: 3px;
float: left;
display: block;
font-size: 108%;
}
.field {
width: 320px;
float: left;
padding: 0 10px 0 0;
line-height: 22px;
_padding-top: 3px;
}
.field .longfield {
width: 215px;
}
.field .longfield-select {
width: 220px;
}
.field .smallfield {
width: 95px;
}
.field .medfield {
width: 110px;
}
.field input,.field select {
font-size: 110%;
margin: 2px 0;
}
.field input[type="radio"] {
margin: 0 5px 0 5px;
}
fieldset { margin:10px 0;}
fieldset legend { font-weight:bold; font-size: 108%; }
div.submit {
clear: both;
text-align: center;
}
</style>
<div id="center">
<h1>Prestations fichier client (idClient=<?=$this->idClient?>)</h1>
<div class="paragraph">
<form>
<input type="hidden" name="idClient" value="<?=$this->idClient?>"/>
<div class="fieldgrp">
<label>Type de prestation : </label>
<div class="field">
<select name="typeprestation">
<option>-</option>
<option value="Diffusion">Diffusion</option>
<option value="Surveillance">Surveillance</option>
</select>
</div>
</div>
<div class="fieldgrp">
<label>Source</label>
<div class="field">
<select name="source">
<option>-</option>
<option value="Bodacc">Bodacc</option>
<option value="Insee">Insee</option>
<option value="Rncs">Rncs</option>
<option value="Bilans">Bilans</option>
</select>
</div>
</div>
<div class="fieldgrp">
<label>Date de mise en place</label>
<div class="field">
<input type="text" name="datemiseenplace" value=""/>
</div>
</div>
<div class="fieldgrp">
<label>Date première facture</label>
<div class="field">
<input type="text" name="datepremierefacture" value=""/>
</div>
</div>
<div class="fieldgrp">
<label>Fréquence de facturation (en mois)</label>
<div class="field">
<select name="freqfacturation">
<option value="Unitaire">Unitaire</option>
<option value="Quotidien">Quotidien</option>
<option value="Hebdo">Hebdo</option>
<option value="Mensuel">Mensuel</option>
<option value="Trimestriel">Trimestriel</option>
<option value="Semestriel">Semestriel</option>
<option value="Annuel">Annuel</option>
</select>
</div>
</div>
<div class="fieldgrp">
<label>Date de fin</label>
<div class="field">
<input type="text" name="datefinprestation" value=""/>
</div>
</div>
<div class="fieldgrp">
<label>Test</label>
<div class="field">
<select name="prestatest">
<option value="0">Non</option>
<option value="1">Oui</option>
</select>
</div>
</div>
<div class="fieldgrp">
<label>Identifiant</label>
<div class="field">
<input type="text" name="identifiantPrestation" value=""/>
</div>
</div>
<div class="fieldgrp">
<label>Password</label>
<div class="field">
<input type="text" name="passwordprestation" value=""/>
</div>
</div>
<div class="fieldgrp">
<label>Support de livraison</label>
<div class="field">
<select name="supportprestation">
<option value="FTP">FTP</option>
<option value="Email">EMAIL</option>
<option value="CD/DVD">CD/DVD</option>
<option value="CFT">CFT</option>
</select>
</div>
</div>
<div class="fieldgrp">
<label>Identifiant CFT</label>
<div class="field">
<input type="text" name="identifiantCFT" value=""/>
</div>
</div>
<div class="fieldgrp">
<label>Durée du contrat</label>
<div class="field">
<input type="text" name="dureecontrat" value=""/>
</div>
</div>
<div class="fieldgrp">
<label>Montant annuel facturation</label>
<div class="field">
<input type="text" name="montantannuelfact" value=""/>
</div>
</div>
<div class="fieldgrp">
<label>Fréquence des envois</label>
<div class="field">
<select name="freqenvois">
<option value="Unitaire">Unitaire</option>
<option value="Quotidien">Quotidien</option>
<option value="Hebdo">Hebdo</option>
<option value="Mensuel">Mensuel</option>
<option value="Trimestriel">Trimestriel</option>
<option value="Semestriel">Semestriel</option>
<option value="Annuel">Annuel</option>
</select>
</div>
</div>
<div class="fieldgrp">
<label>Options (format INI)</label>
<div class="field">
<textarea name="optionsprestation"></textarea>
</div>
</div>
<div class="fieldgrp">
<label>Active</label>
<div class="field">
<select name="prestationactive">
<option value="oui">Oui</option>
<option value="non">Non</option>
</select>
</div>
</div>
<div class="fieldgrp">
<label>Options support (format INI)</label>
<div class="field">
<textarea name="optionssupport"></textarea>
</div>
</div>
<div class="fieldgrp">
<label>Main d'info fichier entrant</label>
<div class="field">
<input type="text" name="mailIN" value=""/>
</div>
</div>
<div class="fieldgrp">
<label>Main d'info fichier sortant</label>
<div class="field">
<input type="text" name="mailOUT" value=""/>
</div>
</div>
<div class="fieldgrp">
<label>osClient</label>
<div class="field">
<select name="osClient">
<option value="WINDOWS">WINDOWS</option>
<option value="LINUX">LINUX</option>
</select>
</div>
</div>
<div class="fieldgrp">
<label>Compression</label>
<div class="field">
<select name="compression">
<option value="none">none</option>
<option value="zip">zip</option>
<option value="gzip">gzip</option>
<option value="bzip2">bzip2</option>
</select>
</div>
</div>
<div class="submit">
<p class="submit-button">
<input type="submit" class="button" value="<?=$this->submitValue?>" />
</p>
</div>
</form>
</div>
</div>

View File

@ -0,0 +1,55 @@
<style type="text/css">
#utilisateur { border-collapse:collapse; width:100%;}
#utilisateur tr.titre td { background-color: #D9EEF1; font-weight:bold; }
#utilisateur tr.border td {
border:1px dashed #939393; padding:5px; margin:0; vertical-align:top; }
#utilisateur tr.actif { background-color:#D9EEF1; }
#utilisateur tr.noactif { background-color:#F0F0F6; }
.cadreinfo {display:none;}
</style>
<div id="center">
<h1>Prestations fichier client (idClient=<?=$this->idClient?>)</h1>
<div class="paragraph">
<a href="<?=$this->url(array('controller'=>'dashboard','action'=>'prestation'))?>">Ajouter une prestation</a>
</div>
<h2>Liste</h2>
<div class="paragraph">
<?php if (count($this->prestations) > 0) { ?>
<table id="utilisateur" >
<tr class="border titre">
<td class="StyleInfoLib">Nom</td>
<td class="StyleInfoLib">Type</td>
<td class="StyleInfoLib">Debut</td>
<td class="StyleInfoLib">Fin</td>
<td class="StyleInfoLib"></td>
</tr>
<?php
foreach ($this->prestations as $prestation) {
if ($prestation->active == 'Oui') {
$class = 'actif';
} else {
$class = 'noactif';
}
?>
<tr class="border <?=$class?>">
<td><?=$prestation->identifiant?></td>
<td><?=$prestation->type?></td>
<td><?=$prestation->dateDebut?></td>
<td><?=$prestation->dateFin?></td>
<td><?php if ($prestation->active == 'Oui') { ?>
<a href="<?=$this->url(array('controller'=>'dashboard','action'=>'prestation','id'=>$prestation->id))?>">
<img src="/themes/default/images/interfaces/editer_trans.png" title="Editer" width="16" height="16"/>
</a><?php } ?>
</td>
</tr>
<?php
}
} else {
?>
Aucune prestation.
<?php }?>
</table>
</div>
</div>

View File

@ -0,0 +1,47 @@
<div id="center">
<h1>Ajout d'un service</h1>
<?php if ($this->message) {?>
<?=$this->message?>
<?php } else {?>
<form method="post" action="<?=$this->url(array('controller'=>'dashboard','action'=>'service'),null,true)?>">
<div class="paragraph">
<input type="hidden" name="idClient" value="<?=$this->idClient?>"/>
Code <input type="text" name="code" value="<?=$this->code?>" />,
Libellé <input type="text" name="label" value="<?=$this->label?>" />
<div class="infoTitle StyleInfoLib">Droits d&#039;acc&egrave;s</div>
<div class="infoData">
<?php foreach($this->wscategory as $category) {?>
<fieldset>
<legend><?=$category->desc?></legend>
<?php
foreach($category->droits->item as $droit) {
$droit = strtolower($droit);
if (in_array($droit, $this->droitsClients)) {
$check = '';
if ( count($this->droits)>0 && in_array($droit, $this->droits) ) {
$check = ' checked';
}
?>
<input type="checkbox" name="droits[]" value="<?=$droit?>"<?=$check?> class="noborder"/>
<?=$this->droitsLib[strtoupper($droit)]?><br/>
<?php } ?>
<?php } ?>
</fieldset>
<?php }?>
</div>
<div class="submit"><p class="submit-button"><input type="submit" name="submit" value="Ajouter" class="button"/></p></div>
</div>
</form>
<?php }?>
</div>

View File

@ -0,0 +1,12 @@
<div id="center">
<h1>Toutes les statistiques</h1>
<?php
$statTypes = $this->statTypes;
while($statType = current($statTypes)) {
echo "<h2>" . key($statTypes) . "</h2>";
echo "<div style='padding-left: 50px'><img src='/themes/default/images/charts/chart-".$statType.".png' /></div>";
next($statTypes);
}
?>
</div>

View File

@ -0,0 +1,61 @@
<?php if ($this->error) {?>
<?=$this->error?>
<?php } else {?>
<form method="post" action="<?=$this->url(array('controller'=>'dashboard','action'=>'tarif'),null,true)?>">
<input type="hidden" name="idClient" value="<?=$this->idClient?>"/>
<label>Log</label>
<select name="log">
<?php foreach($this->logs as $log) {?>
<?php $select = ''; if ($log->code==$this->log) $select = ' selected';?>
<option value="<?=$log->code?>"<?=$select?>><?=$log->desc?> (<?=$log->code?>)</option>
<?php }?>
</select>
<br/>
<label>Service</label>
<select name="service">
<option value="DEFAULT"<?php if ('DEFAULT'==$this->service) echo ' selected';?>>Default</option>
<?php foreach($this->services as $service) {?>
<?php $select = ''; if ($service->code==$this->service) $select = ' selected';?>
<option value="<?=$service->code?>"<?=$select?>><?=$service->label?> (<?=$service->code?>)</option>
<?php }?>
</select>
<br/>
<label>Type</label>
<select name="type">
<option value="Unitaire"<?=$select?>>Unitaire</option>
<option value="ForfaitLimit"<?=$select?>>Forfait avec limite</option>
<option value="ForfaitNoLimit"<?=$select?>>Forfait sans limite</option>
</select><br/>
<label>Prix unitaire</label> <input type="text" name="priceUnit"/><br/>
<label>Nb Limit</label> <input type="text" name="limit"/><br/>
<label>Date</label> <input type="text" name="date"/> (AAAAMMJJ)<br/>
<label>Durée</label> <input type="text" name="duree"/> (Jours)<br/>
<label>Doublon</label>
<select name="doublon">
<option value="none"<?=$select?>>Aucun</option>
<option value="jour"<?=$select?>>Mois</option>
<option value="mois"<?=$select?>>Jour</option>
<option value="period"<?=$select?>>Periode du contrat</option>
</select>
<br/>
</form>
<script>
var windowhref = window.location.href;
$('#dialog').dialog({ buttons: [
{ text: "Valider", click: function() { survSubmit(); } },
{ text: "Annuler", click: function() { $(this).dialog("close"); } }
]});
function survSubmit(){
$('#dialogsurv').dialog({buttons: []});
$('#dialogsurv').dialog({ buttons: [
{ text: "Fermer", click: function() { window.location.href = windowhref; $(this).dialog("close"); } }
]});
}
</script>
<?php }?>

View File

@ -0,0 +1,102 @@
<div id="center">
<h1>TARIFS</h1>
<div class="paragraph">
<a class="contrat-add" href="#">Créer une nouvelle période de tarification</a>
</div>
<h2>Liste des tarifs</h2>
<div class="paragraph">
<?php if(count($this->contrats)>0) {?>
<style>
table {width:100%;}
table th {border:1px solid #cccccc; padding:2px; text-align:center;}
table td {border:1px solid #cccccc; padding:2px; height:16px; text-align:center;}
</style>
<?php foreach ( $this->contrats as $contrat ) {?>
<div class="contrat">
<div>Du <span class="date-begin"><?=$contrat->dateBegin?></span> au <span><?=$contrat->dateEnd?></span></div>
<br/>
<table>
<tr>
<th>Element</th>
<th>Service</th>
<th>Type</th>
<th>Prix unitaire</th>
<th>Limite</th>
<th>Dédoublonnage</th>
</tr>
<?php foreach ($contrat->tarifs->item as $tarif ) {?>
<tr>
<td class="edit-log"><?=$tarif->log?></td>
<td class="edit-service"><?=$tarif->service?></td>
<td class="edit-type"><?=$tarif->type?></td>
<td class="edit-priceUnit"><?=$tarif->priceUnit?></td>
<td class="edit-limit"><?=$tarif->limit?></td>
<td class="edit-doublon"><?=$tarif->doublon?></td>
</tr>
<?php }?>
</table>
<br/>
<div style="line-height:16px;">
<a class="tarif-add" title="Ajouter un tarif" href="<?=$this->url(array('controller'=>'dashboard','action'=>'tarif','date'=>$contrat->dateBegin))?>">
<img style="vertical-align:middle;" src="/themes/default/images/interfaces/ajouter.png" />Ajouter un tarif</a>
</div>
<br/>
</div>
<?php }?>
<hr/>
<?php } else {?>
Aucun tarif défini.
<?php }?>
</div>
</div>
<script>
$('a.tarif-add').click(function(e){
e.preventDefault();
var title = "Ajout d'un tarif";
var href = $(this).attr('href');
var dialogOpts = {
bgiframe: true,
title: title,
width: 500,
height: 400,
modal: true,
open: function(event, ui) {
$(this).html('Chargement...');
$(this).load(href);
},
buttons: {
Annuler: function() { $(this).dialog('close'); }
},
close: function() { $('#dialog').remove(); }
};
$('<div id="dialog"></div>').dialog(dialogOpts);
});
$('a.contrat-add').click(function(e){
e.preventDefault();
var title = "Ajout d'un contrat";
var href = $(this).attr('href');
var dialogOpts = {
bgiframe: true,
title: title,
width: 500,
height: 200,
modal: true,
open: function(event, ui) {
$(this).html('Chargement...');
$(this).load(href);
},
buttons: {
Annuler: function() { $(this).dialog('close'); }
},
close: function() { $('#dialog').remove(); }
};
$('<div id="dialog"></div>').dialog(dialogOpts);
});
</script>

View File

@ -9,7 +9,7 @@
<h1 class="titre">PROFIL UTILISATEUR</h1>
<form id="moncompte" name="moncompte" action="/user" method="post">
<form id="moncompte" name="moncompte" action="/dashboard/user/op/save" method="post">
<div class="paragraph">
@ -43,6 +43,11 @@ if ($this->action == 'new') {
<div class="infoTitle StyleInfoLib">Adresse e-mail</div>
<div class="infoData">
<input type="text" size="30" maxlength="80" name="frmOptions[email]" value="<?=$this->options['email']?>"/>
<?php if ($this->action != 'new') {?>
<br/><a id="email-surveillance"
href="<?=$this->url(array('controller'=>'user', 'action'=>'emailsurveillance', 'login'=>$this->options['login']), null, true)?>"
title="Initialiser email des surveillances">Initialiser email des surveillances</a>
<?php }?>
</div>
<div class="infoTitle StyleInfoLib">
@ -74,6 +79,21 @@ if ($this->action=='new') {
<input type="hidden" name="frmOptions[changepwd]" value="<?=$changePassword?>"/>
<?php } ?>
</div>
<div class="infoTitle StyleInfoLib">Langue de l'interface par défaut</div>
<div class="infoData">
<select name="frmOptions[lang]">
<?php
$lngOpts = array('fr' => 'Français', 'en' => 'English');
foreach($lngOpts as $lngKey => $lngVal)
{
$selected = '';
if($lngKey == $this->options['lang']) $selected = 'selected';
?><option value="<?=$lngKey?>" <?=$selected?>><?=$lngVal?></option><?php
}
?>
</select>
</div>
</div>
<h2>Paramètres spécifiques</h2>
@ -207,7 +227,7 @@ $opts = array(0 =>'Non', 1=>'Oui');
foreach($opts as $opt => $lib)
{
$selected = '';
if($opt == $this->options['accesWs']) $selected = 'selected';
if($opt == $this->options['accesWS']) $selected = 'selected';
?><option value="<?=$opt?>" <?=$selected?>><?=$lib?></option><?php
}
?>
@ -239,16 +259,23 @@ foreach($opts as $opt => $lib)
<div class="infoTitle StyleInfoLib">Droits d&#039;acc&egrave;s</div>
<div class="infoData">
<?php foreach($this->wscategory as $category) {?>
<fieldset>
<legend><?=$category->desc?></legend>
<?php
foreach ($this->droitsClients as $droit) {
if (empty($droit)) continue;
$check = '';
if ( count($this->droits)>0 && in_array(strtolower($droit), $this->droits) ) {
$check = ' checked';
}
foreach($category->droits->item as $droit) {
$droit = strtolower($droit);
if (in_array($droit, $this->droitsClients)) {
$check = '';
if ( count($this->droits)>0 && in_array($droit, $this->droits) ) {
$check = ' checked';
}
?>
<input type="checkbox" name="frmOptions[droits][]" value="<?=$droit?>"<?=$check?> class="noborder"/>
<input type="checkbox" name="frmOptions[droits][]" value="<?=$droit?>"<?=$check?> class="noborder"/>
<?=$this->droitsLib[strtoupper($droit)]?><br/>
<?php } ?>
<?php } ?>
</fieldset>
<?php }?>
</div>
@ -272,7 +299,7 @@ foreach ($this->prefsLib as $code => $lib) {
</div>
<div id="dialog" title="Modifier le mot de passe">
<div id="dialog-password" title="Modifier le mot de passe">
<form>
<label for="npass1">Nouveau mot de passe</label><br/>
<input type="password" name="npass1" size="15" maxlength="32"/><br/>

View File

@ -0,0 +1,196 @@
<script>
$(function(){
$('a.user-service').click(function(e){
e.preventDefault();
var title = $(this).attr('title');
var href = $(this).attr('href');
var dialogOpts = {
bgiframe: true,
title: title,
width: 500,
height: 350,
modal: true,
open: function(event, ui) {
$(this).html('Chargement...');
$(this).load(href);
},
buttons: {
'Fermer': function() { $(this).dialog('close'); }
},
close: function() { $('#dialog').remove(); }
};
$('<div id="dialog"></div>').dialog(dialogOpts);
return false;
});
$('a.delete').on('click', function(e){
e.preventDefault();
var href = $(this).attr('href');
var title = $(this).attr('title');
if (confirm(title)) {
document.location.href=href;
}
});
$('a.enable').on('click', function(e){
e.preventDefault();
var href = $(this).attr('href');
var title = $(this).attr('title');
if (confirm(title)) {
document.location.href=href;
}
});
$('a.disable').on('click', function(e){
e.preventDefault();
var href = $(this).attr('href');
var title = $(this).attr('title');
if (confirm(title)) {
document.location.href=href;
}
});
$('input[name=searchLogin]').autocomplete({
minLength:3,
source: function(request, response) {
$.getJSON('<?=$this->url(array('controller'=>'dashboard','action'=>'usersearch','idClient'=>$this->idClient))?>', { q: request.term },
function(data) { response(data); }
);
},
select: function (event, ui) {
var href = '<?=$this->url(array('controller'=>'dashboard','action'=>'user','op'=>'edit','idClient'=>$this->idClient))?>/login/'+ui.item.value;
document.location.href=href;
}
});
$('select[name=service]').change(function(e){
e.preventDefault();
document.location.href='<?=$this->url(array('controller'=>'dashboard','action'=>'users','idClient'=>$this->idClient),null,true)?>/service/'+$(this).val();
});
});
</script>
<div id="center">
<h1>GESTION DES CLIENTS</h1>
<div class="paragraph">
Recherche de login <input type="text" name="searchLogin"/>
<a href="<?=$this->url(array('controller'=>'dashboard','action'=>'user','op' =>'new'))?>">
Créer un profil utilisateur</a>
</div>
<h2>Services</h2>
<div class="paragraph">
<select name="service">
<option value="">Afficher tout</option>
<option value="DEFAULT"<?php if ('DEFAULT'==$this->service) echo ' selected';?>>Default</option>
<?php foreach($this->services as $service) {?>
<?php $select = ''; if ($service->code==$this->service) $select = ' selected';?>
<option value="<?=$service->code?>"<?=$select?>><?=$service->label?> (<?=$service->code?>)</option>
<?php }?>
</select>
<a href="<?=$this->url(array('controller'=>'dashboard','action'=>'service','idClient'=>$this->idClient),null,true)?>">
Editer le service</a>
| <a href="<?=$this->url(array('controller'=>'dashboard','action'=>'service','idClient'=>$this->idClient),null,true)?>">
Créer un service</a>
</div>
<?php if (!empty($this->service)) {?>
<div class="paragraph">
<input type="button" class="button" name="overrideAccess" Value="Ecraser les droits de tous les utilisateurs"/>
</div>
<?php }?>
<h2>Liste des profils utilisateurs</h2>
<div class="paragraph">
<table id="utilisateur">
<?php if (isset($message) && $message != '') {?>
<tr>
<td width="30">&nbsp;</td>
<td colspan="5" class="StyleInfoData" align="center">
<h3><?=$message?></h3>
</td>
</tr>
<?php } ?>
<tr class="border titre">
<td class="StyleInfoLib">Login</td>
<td class="StyleInfoLib">Informations</td>
<td class="StyleInfoLib">Référence</td>
<td class="StyleInfoLib">Service</td>
<td class="StyleInfoLib">Actions</td>
<td class="StyleInfoLib">Actif</td>
</tr>
<?php if (count($this->utilisateurs)>0) { ?>
<?php
foreach ($this->utilisateurs as $uti) {
$lienParams = ' login="'.$uti->login.'"';
?>
<tr class="border">
<td class="StyleInfoData"><?=$uti->login;?></td>
<td class="StyleInfoData">
<?=$uti->nom.' '.$uti->prenom?><br/>
<a href="mailto:<?=$uti->email?>">
<?=str_replace(array(';',','), array('<br/>', '<br/>'), $uti->email);?>
</a>
</td>
<td class="StyleInfoData"><?=$uti->reference?></td>
<td class="StyleInfoData">
<a title="Définir un service"
href="<?=$this->url(array('controller'=>'dashboard','action'=>'userservice',
'idClient'=>$uti->idClient,'login'=>$uti->login,'service'=>$uti->service),null,true)?>"
class="user-service">
<?php if (!empty($uti->service)) {?>
<?=$uti->service?>
<?php } else {?>
Default
<?php }?>
</a>
</td>
<td align="center" valign="middle">
<a href="<?=$this->url(array(
'controller' => 'dashboard',
'action' => 'user',
'op' => 'edit',
'login' => $uti->login,
))?>" class="edit">
<img src="/themes/default/images/interfaces/edit0.gif" title="Editer le profil utilisateur" width="16" height="16"/>
</a>
<a href="<?=$this->url(array(
'controller' => 'dashboard',
'action' => 'user',
'op' => 'delete',
'login' => $uti->login,
'idUti' => $uti->idUti,
))?>" class="delete" title="Supprimer l'utilisateur <?=$uti->login?>">
<img src="/themes/default/images/interfaces/delete.gif" title="Supprimer le profil utilisateur" width="11" height="11"/>
</a>
</td>
<td class="StyleInfoData">
<?php if ($uti->actif == 1) { ?>
<a href="<?=$this->url(array(
'controller' => 'dashboard',
'action' => 'user',
'op' => 'disable',
'login' => $uti->login,
'idUti' => $uti->idUti,
))?>" class="disable" title="Désactiver le profil utilisateur <?=$uti->login?>">
<u><font color="green">Oui</font></u>
</a>
<?php } else { ?>
<a href="<?=$this->url(array(
'controller' => 'dashboard',
'action' => 'user',
'op' => 'enable',
'login' => $uti->login,
'idUti' => $uti->idUti,
))?>" class="enable" title="Activer le profil utilisateur <?=$uti->login?>">
<u><font color="red">Non</font></u>
</a>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php } ?>
</table>
</div>
</div>

View File

@ -0,0 +1 @@
<?=json_encode($this->output)?>

View File

@ -0,0 +1,37 @@
<?php if ($this->post) {?>
<script>
$('#dialog').dialog({ buttons: [
{ text: "Fermer", click: function() { $(this).dialog('close'); } }
] });
</script>
<?php } else {?>
<div id="result">
<div>Définir un service pour le login <?=$this->login?></div>
<form action="<?=$this->url(array('controller'=>'dashboard','action'=>'userservice'))?>">
<input type="hidden" name="login" value="<?=$this->login?>"/>
<div>
Service : <select name="service">
<option value="DEFAULT"<?php if ('DEFAULT'==$this->service) echo ' selected';?>>Default</option>
<?php foreach($this->services as $service) {?>
<?php $select = ''; if ($service->code==$this->service) $select = ' selected';?>
<option value="<?=$service->code?>"<?=$select?>><?=$service->label?> (<?=$service->code?>)</option>
<?php }?>
</select>
</div>
</form>
<script>
$('#dialog').dialog({ buttons: [
{ text: "Valider", click: function() {
var url = $('#dialog form').attr('action');
var login = $('#dialog input[name=login]').val();
var service = $('#dialog select[name=service] option:selected').val();
$.post(url, { login: login, service: service}, function(data) { $('#result').html(data); });
} },
{ text: "Annuler", click: function() { $(this).dialog('close'); } }
] });
</script>
</div>
<?php }?>

View File

@ -0,0 +1,62 @@
<div id="center">
<h1><?=$this->translate("DIRIGEANTS")?></h1>
<div class="paragraph">
<table class="identite">
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib"><?=$this->translate("Num&eacute;ro identifiant Siren")?></td>
<td width="350" class="StyleInfoData"><?=$this->SirenTexte($this->siren)?></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib"><?=$this->translate("Dénomination Sociale")?></td>
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
</tr>
<?php if ($this->surveillance) {?>
<tr>
<td width="30">&nbsp;</td>
<td colspan="2" width="550" class="StyleInfoData">
<?=$this->action('infos','surveillance', null, array(
'source' => 'dirigeants',
'siret' => $this->siret
))?>
</td>
</tr>
<?php }?>
</table>
</div>
<h2><?=$this->translate("Historique des dirigeants")?></h2>
<div class="paragraph">
<?php if (count($this->dirigeants) > 0) {?>
<table class="data">
<?php foreach ($this->dirigeants as $dir) {?>
<tr>
<td class="StyleInfoData" width="270"><?=$dir->Titre?></td>
<td class="StyleInfoData" width="200"><?=$dir->Societe.' '.$dir->Nom.' '.$dir->Prenom?></td>
<td class="StyleInfoData" width="200">
<?php
if ($dir->DateFct != '0000-00-00') {
$date = new Zend_Date($dir->DateFct,'yyyy-MM-dd'); ?>
<?php if ( Zend_Date::isDate($date) ) { ?>
<?=$this->translate("Modification le") . ' ' . $date->toString('dd/MM/yyyy');?>
<?php }?>
<?php }?>
</td>
</tr>
<?php }?>
</table>
<?php } else {?>
<table>
<tr>
<td class="StyleInfoData" width="550">
<?=$this->translate("Aucune donn&eacute;e n'est pr&eacute;sente dans notre base")?>
</td>
</tr>
</table>
<?php }?>
</div>
<?=$this->render('cgu.phtml', $this->cgu)?>
</div>

Some files were not shown because too many files have changed in this diff Show More