Compare commits

...

119 Commits

Author SHA1 Message Date
Michael RICOIS
6d7cc24d0f issue #0001974 : Modification téléchargement direct pour l'avis situation 2014-06-02 09:00:56 +00:00
Michael RICOIS
10b829487e Revert code + change order to add other email after 2014-05-24 09:15:12 +00:00
Michael RICOIS
cba2a42376 issue #0001563 : Email secondaires 2014-05-23 15:04:31 +00:00
Aram HARUTYUNYAN
da90944620 Issue #0001850: [Evolution des scores] afficher tous les scores dans la table et grafique 2014-05-08 13:14:22 +00:00
Michael RICOIS
b55d4e9f08 Script update 2014-05-01 16:34:58 +00:00
Michael RICOIS
89ac06b62d Translation update 2014-05-01 16:32:56 +00:00
Michael RICOIS
1dfc2374fd Small Fix 2014-05-01 16:31:29 +00:00
Aram HARUTYUNYAN
3cd50f8f0e Issue #0001889: [IndiScore] affichage de graphique 2014-04-28 07:56:07 +00:00
Michael RICOIS
bb26fb81fe Add labo cerba1 2014-04-24 09:06:59 +00:00
Michael RICOIS
4cb81cdcc3 issue #0001889 : Last small change 2014-04-24 07:58:21 +00:00
Michael RICOIS
fc6cda9dcb issue #0001889 : Graph and display 2014-04-23 16:10:31 +00:00
Michael RICOIS
06f76b6727 issue #0001903 : Refactoring 2014-04-23 13:11:46 +00:00
Michael RICOIS
478f13ede6 issue #0001845 : orthographe 2014-04-23 13:10:23 +00:00
Aram HARUTYUNYAN
af093374f7 Issue #0001889: [IndiScore] indiscorehistoAction avec sa vue et les éléments de l'impression 2014-04-23 06:32:22 +00:00
Michael RICOIS
8a4a358174 Update autoload classmap 2014-04-22 16:55:57 +00:00
Michael RICOIS
c603a7bda4 issue #0001903 : Remove unused code 2014-04-22 13:18:37 +00:00
Michael RICOIS
7e98f44688 issue #0001914 : Modification libellé 2014-04-22 12:52:55 +00:00
Michael RICOIS
dc9bbba661 issue #0001914 : Surveillance email(s) du compte principal 2014-04-22 12:41:13 +00:00
Aram HARUTYUNYAN
3ba1ed2a4b Issue #0001889: [IndiScore] activer getIndiScore() 2014-04-21 11:50:43 +00:00
Aram HARUTYUNYAN
f0e537ed31 Issue #0001889: [IndiScore] Afficher l'histroque des scores 2014-04-21 11:46:07 +00:00
Michael RICOIS
4e7055929d Title 2014-04-16 09:33:21 +00:00
Aram HARUTYUNYAN
bd89df3e57 Issue #0001788: [Dirigeants Opérationnels] use tabFctDir, change datePicker year range to 100years 2014-04-15 08:24:17 +00:00
Michael RICOIS
71aee03d67 Update Respond to version 1.4.2 2014-04-14 12:25:03 +00:00
Michael RICOIS
a3d5e42183 Update JQuery Form to version 3.50 2014-04-14 12:16:03 +00:00
Michael RICOIS
4997dd49fb Include pace library to test it 2014-04-14 11:54:12 +00:00
Michael RICOIS
a6565ad9fa issue #0001902 : Texte corporama 2014-04-10 14:12:13 +00:00
Aram HARUTYUNYAN
652559a1ab Issue #0001903: Commandes KBIS - verifier l'adrèsse email et afficher les messages 2014-04-10 09:50:35 +00:00
Michael RICOIS
a852c5017e Sipmly add ISIN to be displayed 2014-04-09 13:12:15 +00:00
Michael RICOIS
38fd737a3f issue #0001923 : Editer la fiche + remplissage des informations lors de la création 2014-04-09 13:10:57 +00:00
Aram HARUTYUNYAN
70e18b8422 Issue #0001788: [Dirigeants Opérationnels] supprimer les fichiers inutiles 2014-04-09 08:02:48 +00:00
Aram HARUTYUNYAN
5fbdcd0d7c Issue #0001788: [Dirigeants Opérationnels] simplifié, pas de fiche/lien, recherche... 2014-04-09 07:57:51 +00:00
Aram HARUTYUNYAN
cada35746e Issue #0001922: Edition du BILAN - ajouter 'selected' a l'élément <select> (U | K | M) 2014-04-08 13:30:06 +00:00
Aram HARUTYUNYAN
b06dacdbc2 Issue #0001900: [Liens inter-entreprises] Ajouter le lien "Mettre sous surveillance" 2014-04-08 10:31:48 +00:00
Aram HARUTYUNYAN
51228580d5 Issue #0001919: [Liens inter-entreprises] verifier la date de naissance avant de l'afficher 2014-04-04 10:45:47 +00:00
Michael RICOIS
7dd7e2f6ec issue #0001914 : Gestion des emails secondaires lors de la modification du compte utilisateur 2014-04-04 07:32:44 +00:00
Michael RICOIS
6c6d3f1f15 Remove unuse action 2014-04-04 06:20:52 +00:00
Michael RICOIS
708f570d9f Authorize multpile emails 2014-04-03 13:37:55 +00:00
Michael RICOIS
7ec9fdd9df Remove display of some part under "Rapport Complet" 2014-04-03 12:04:04 +00:00
Aram HARUTYUNYAN
6265389f79 Issue #0001788: [Dirigeants Opérationnels] Option de déplacement du dirigeant 2014-04-03 06:21:57 +00:00
Michael RICOIS
00fe11c6fa Encore des corrections 2014-04-02 12:26:26 +00:00
Aram HARUTYUNYAN
3945b0cb14 Issue #0001903: [Commandes KBIS] Référencer les commandes de kbis. Adresse email est pris du compte de l'utilisateur 2014-04-02 06:21:15 +00:00
Michael RICOIS
8549ca1623 Remove tel, fax sanitization 2014-03-29 16:03:41 +00:00
Michael RICOIS
82ac4bf25a Ajout evemenet 4500 pour la saisie 2014-03-29 16:01:01 +00:00
Michael RICOIS
f990ca17fb issue #0001766 : Ne pas afficher les éléments d'informations pour les id < 1000 2014-03-29 08:46:57 +00:00
Michael RICOIS
0f7fb2ad9f Add an event 2014-03-28 12:59:26 +00:00
Michael RICOIS
fa5bb0258a New Design For Login and Logout pages 2014-03-28 09:52:31 +00:00
Michael RICOIS
47aaa6b38e Remove JQuery-UI 1.10.3 2014-03-27 14:50:15 +00:00
Michael RICOIS
7ad2eb3ae6 Update Jcrop library 2014-03-27 14:49:01 +00:00
Michael RICOIS
8f175b2605 Only send error in production or staging 2014-03-27 13:47:20 +00:00
Michael RICOIS
e468efba37 issue #0001627 : Update librairies for mobile version JQuery Mobile version 1.4.2 2014-03-27 13:41:42 +00:00
Michael RICOIS
9f3aebeb07 issue #0001902 : Lien corporama 2014-03-27 10:05:42 +00:00
Michael RICOIS
c73f65a853 issue #0001894 : Correction poste pour la transformation 2014-03-26 15:57:56 +00:00
Michael RICOIS
dfb74af73b Saisie cut-off (redraw code) 2014-03-26 15:39:41 +00:00
Michael RICOIS
dc36edbf8f issue #0001908 : Wait more time to download file 2014-03-24 13:54:14 +00:00
Michael RICOIS
9b7f290ee6 Correction poste dans la saisie 2014-03-24 11:03:51 +00:00
Michael RICOIS
70976cf47a issue #0001902 : Intégration corporama 2014-03-20 19:33:50 +00:00
Michael RICOIS
06508a7823 issue #0001845 : Evenements entreprise, établissements 2014-03-20 19:06:29 +00:00
Michael RICOIS
2a2ace9fc5 issue #0001704 : Suppression et Modification 2014-03-20 16:40:32 +00:00
Aram HARUTYUNYAN
645f0ae563 Issue #0001788: [Dirigeants Opérationnels] petite modification sur autocomplete 2014-03-20 07:22:02 +00:00
Aram HARUTYUNYAN
5ec7c860ff Issue #0001788: [Dirigeants Opérationnels] utilisation de jo.bodacc_fonctions 2014-03-20 06:33:54 +00:00
Aram HARUTYUNYAN
e042c987b8 Issue #0001788: [Dirigeants Opérationnels] utilisation de jo.bodacc_fonctions 2014-03-20 06:22:32 +00:00
Aram HARUTYUNYAN
ac9001bc06 Issue #0001788: [Dirigeants Opérationnels] creating cache files 2014-03-19 10:57:42 +00:00
Michael RICOIS
257fae95bd issue #0001847 : Correction etat du bilan (note 0003888) 2014-03-19 10:56:26 +00:00
Aram HARUTYUNYAN
b3df12ddbe Issue #0001788: [Dirigeants Opérationnels] l'ouverture du contenu corrigée 2014-03-19 10:37:56 +00:00
Michael RICOIS
4da392a3cf issue #0001704 : Enregistrement des contacts (au SIRET) 2014-03-19 07:26:31 +00:00
Aram HARUTYUNYAN
92187e0ec3 Issue #0001766: Afficher le nom, prenom, nomUsage 2014-03-19 06:05:47 +00:00
Aram HARUTYUNYAN
483b657f8e Issue #0001766: Afficher correctement en cas s'il n'y a pas de date ou lieu de naissance 2014-03-18 14:55:44 +00:00
Aram HARUTYUNYAN
1b1485e624 Issue #0001788: [Dirigeants Opérationnels] Afficher la civilité dans la liste des dirigeants 2014-03-18 14:07:42 +00:00
Aram HARUTYUNYAN
332283189a Issue #0001788: [Dirigeants Opérationnels] Afficher la liste des sociétes pour certain dirigeant opérationnel 2014-03-18 11:37:44 +00:00
Aram HARUTYUNYAN
9062138e1b Issue #0001788: [Dirigeants Opérationnels] Ajouter, modifier et supprimer les dirigeants operationnels 2014-03-18 11:36:08 +00:00
Michael RICOIS
9820bb9b4f issue #0001335 : Vérifier la validité de la date pour affichage 2014-03-17 14:57:49 +00:00
Michael RICOIS
da96a9e4f4 issue #0001766 : Ne pas afficher les éléments d'informations pour les id < 1000 2014-03-17 14:50:25 +00:00
Michael RICOIS
d780f5630a Update print style 2014-03-17 11:38:18 +00:00
Michael RICOIS
8d5c18c364 Following the update of Zend Framework to version 1.12.5 2014-03-14 13:07:14 +00:00
Michael RICOIS
ba4d074e53 Update Zend Framework to version 1.12.5 2014-03-14 13:00:34 +00:00
Michael RICOIS
6a34eaa87c issue #0001894 : Conversion bilan simplifié vers réel normal (partie N-1) 2014-03-14 08:39:08 +00:00
Michael RICOIS
4973170121 issue #0001893 : Affichage postes VB, VN, VP 2014-03-13 08:49:58 +00:00
Michael RICOIS
d15b443a86 Backport code from production 2014-03-12 14:12:41 +00:00
Michael RICOIS
9b91817aba Without issue : better display 2014-03-12 14:09:31 +00:00
Michael RICOIS
5ac13207a5 Redraw code 2014-03-12 14:08:24 +00:00
Michael RICOIS
60f3ab4d0c issue #0001847 : Phrase 2014-03-12 14:04:22 +00:00
Michael RICOIS
077f51ce4f issue #0001847 : Ajout récupération de la disponibilité et l'état des informations financière 2014-03-12 09:58:15 +00:00
Michael RICOIS
5ce8b75ffe Remove margin 2014-03-11 10:41:59 +00:00
Michael RICOIS
4425393401 Remove duplicate style 2014-03-11 10:40:43 +00:00
Michael RICOIS
ef23c3422a Remove scripts file 2014-03-11 08:14:14 +00:00
Michael RICOIS
130fb963d9 New icon Apple, Android, .... 2014-03-10 13:40:21 +00:00
Michael RICOIS
f9cbbe1b39 Update script with new autoloader header 2014-03-07 13:14:19 +00:00
Michael RICOIS
ae05e6a3e5 Move Database Model to reflect autoload standard 2014-03-07 08:46:01 +00:00
Michael RICOIS
57461860b8 Don't use "saisie" method + comment 2014-03-05 16:21:55 +00:00
Michael RICOIS
eb6769e435 Reimport commit before conflict 2014-03-05 16:16:12 +00:00
Michael RICOIS
0ce4fea9ee Recreate branch 2.5 2014-03-05 15:49:25 +00:00
Michael RICOIS
d88405da5d Update for conflict 2014-03-05 15:27:50 +00:00
Michael RICOIS
682ffa273e Remove conflict 2014-03-05 15:24:59 +00:00
Michael RICOIS
3b76e2869b Update for conflict 2014-03-05 15:20:42 +00:00
Michael RICOIS
e13292170b Reintegrate trunk 2014-03-05 10:39:49 +00:00
Aram HARUTYUNYAN
176df57c98 Issue #0001873: [liens inter-entreprises] Utiliser les codes Voies défini par l'INSEE pour standardiser les adresses 2014-03-04 08:16:20 +00:00
Aram HARUTYUNYAN
6776e6dcad Issue #0001882: le problème vient de la valeur du pays 2014-03-03 12:22:26 +00:00
Michael RICOIS
918c42d7c9 Fix Issue #0001876 : Solve bad merge on file Menu.php and Streetview.php 2014-02-28 09:31:24 +00:00
Aram HARUTYUNYAN
7b8f3bd07b Issue #0001876: using Scores_Google_streetview->urlImg() instead of serveUrl() 2014-02-28 08:30:49 +00:00
Aram HARUTYUNYAN
c195387ef1 Issue #0001820: [Liens inter-entreprises] Afficher les documents liés (3 ou plus) 2014-02-28 08:06:51 +00:00
Aram HARUTYUNYAN
0d5bbe188a Issue #0001766: [Liens inter-entreprises] Ajouter le lien "Lancer une recherche dirigeant" pour PP 2014-02-28 07:53:17 +00:00
Michael RICOIS
045572ca57 Remove unused library 2014-02-27 16:16:26 +00:00
Michael RICOIS
a467e0a4d5 Use new Zend ClassMap Autoloader : More performance with APC and make change in config for the 2.5 branch 2014-02-27 16:15:01 +00:00
Michael RICOIS
7b0cef6538 Reintegrate trunk 2014-02-27 15:33:51 +00:00
Michael RICOIS
2f79588096 Use new Zend Autoload : More performance with APC 2014-02-27 15:13:46 +00:00
Michael RICOIS
5290b988a5 Check branch consistency 2014-02-25 23:27:46 +00:00
Michael RICOIS
ac83da9f1e Try to rebase from trunk 2014-02-25 22:26:47 +00:00
Michael RICOIS
df07357416 Big update from branch 2.4, new dev must be here 2014-02-25 16:20:09 +00:00
Arman KYOKCHAN
86c4c07893 issue #0001627: Add Etablissements 2013-11-08 13:36:37 +00:00
Arman KYOKCHAN
be6fc63491 issue #0001627: design changes 2013-11-01 13:59:51 +00:00
Arman KYOKCHAN
cf7f39d741 issue #0001627: search form and entreprise identity 2013-11-01 11:43:12 +00:00
Arman KYOKCHAN
6f5b29be85 issue #0001627: Add the logic to the theme plugin, interface change 2013-10-29 07:37:41 +00:00
Michael RICOIS
add02110b8 Merge, update from trunk 2013-10-27 16:22:33 +00:00
Michael RICOIS
56040500cb Merge 2013-10-16 07:54:35 +00:00
Michael RICOIS
6fd02854f8 Merge from trunk 2013-08-30 15:12:56 +00:00
Michael RICOIS
33b66b0df3 Add new code to manage webservice connection 2013-08-20 13:09:31 +00:00
Michael RICOIS
f1f025e8c3 Merge 2013-08-13 13:04:50 +00:00
Michael RICOIS
2a5c56082f Merge from trunk 2013-07-30 14:10:48 +00:00
Michael RICOIS
40316c09d9 Account management 2013-06-07 16:10:00 +00:00
3730 changed files with 466764 additions and 85675 deletions

View File

@ -0,0 +1,37 @@
<?php
// Generated by ZF's ./bin/classmap_generator.php
return array(
'Bootstrap' => dirname(__FILE__) . '/Bootstrap.php',
'AideController' => dirname(__FILE__) . '/controllers/AideController.php',
'BdfController' => dirname(__FILE__) . '/controllers/BdfController.php',
'DashboardController' => dirname(__FILE__) . '/controllers/DashboardController.php',
'DirigeantController' => dirname(__FILE__) . '/controllers/DirigeantController.php',
'ErrorController' => dirname(__FILE__) . '/controllers/ErrorController.php',
'EvaluationController' => dirname(__FILE__) . '/controllers/EvaluationController.php',
'FichierController' => dirname(__FILE__) . '/controllers/FichierController.php',
'FinanceController' => dirname(__FILE__) . '/controllers/FinanceController.php',
'GiantController' => dirname(__FILE__) . '/controllers/GiantController.php',
'IdentiteController' => dirname(__FILE__) . '/controllers/IdentiteController.php',
'IndexController' => dirname(__FILE__) . '/controllers/IndexController.php',
'JuridiqueController' => dirname(__FILE__) . '/controllers/JuridiqueController.php',
'LogoController' => dirname(__FILE__) . '/controllers/LogoController.php',
'MandataireController' => dirname(__FILE__) . '/controllers/MandataireController.php',
'PiecesController' => dirname(__FILE__) . '/controllers/PiecesController.php',
'PrintController' => dirname(__FILE__) . '/controllers/PrintController.php',
'RechercheController' => dirname(__FILE__) . '/controllers/RechercheController.php',
'SaisieController' => dirname(__FILE__) . '/controllers/SaisieController.php',
'SurveillanceController' => dirname(__FILE__) . '/controllers/SurveillanceController.php',
'TelechargementController' => dirname(__FILE__) . '/controllers/TelechargementController.php',
'UserController' => dirname(__FILE__) . '/controllers/UserController.php',
'WorldcheckController' => dirname(__FILE__) . '/controllers/WorldcheckController.php',
'Zend_View_Helper_CssHelper' => dirname(__FILE__) . '/views/default/helpers/CssHelper.php',
'Zend_View_Helper_Editable' => dirname(__FILE__) . '/views/default/helpers/Editable.php',
'Zend_View_Helper_FormatPct' => dirname(__FILE__) . '/views/default/helpers/FormatPct.php',
'Zend_View_Helper_JavascriptHelper' => dirname(__FILE__) . '/views/default/helpers/JavascriptHelper.php',
'Zend_View_Helper_MenuScript' => dirname(__FILE__) . '/views/default/helpers/MenuScript.php',
'Zend_View_Helper_NewsDate' => dirname(__FILE__) . '/views/mobile/helpers/NewsDate.php',
'Zend_View_Helper_RemplaceSiren' => dirname(__FILE__) . '/views/default/helpers/RemplaceSiren.php',
'Zend_View_Helper_SirenTexte' => dirname(__FILE__) . '/views/default/helpers/SirenTexte.php',
'Zend_View_Helper_SiretTexte' => dirname(__FILE__) . '/views/default/helpers/SiretTexte.php',
'Zend_View_Helper_TrueLabel' => dirname(__FILE__) . '/views/default/helpers/TrueLabel.php',
);

View File

@ -117,6 +117,8 @@ class DirigeantController extends Zend_Controller_Action
$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

@ -56,6 +56,139 @@ class EvaluationController extends Zend_Controller_Action
$this->view->assign('max', $bornes[$score]['max']);
}
/**
* Historique des scores
*/
public function scoreshistoAction()
{
$sessionEntreprise = new Scores_Session_Entreprise($this->siret, $this->id);
$siren = substr($this->siret,0,9);
$types = array (
'indiScore' => 'IndiScore',
'scoreDir' => 'Dirigeance',
'scoreConf' => 'Conformité',
'scoreZ' => 'Score Z',
'scoreCH' => 'Conan & Holder',
'scoreAfdcc1' => 'Afdcc1',
'scoreAfdcc2' => 'Afdcc2',
'scoreAltman' => 'Altman',
'scoreCCF' => 'CCF',
);
$bornes = array(
'indiScore' => array('min'=>0, 'max'=>20, 'rouge'=>8, 'orange'=>12),
'scoreDir' => array('min'=>0, 'max'=>100, 'rouge'=>45, 'orange'=>56),
'scoreConf' => array('min'=>0, 'max'=>100, 'rouge'=>45, 'orange'=>56),
'scoreZ' => array('min'=>-3, 'max'=>3, 'rouge'=>-0.25, 'orange'=>0.125),
'scoreCH' => array('min'=>-4.5,'max'=>16, 'rouge'=>3.75, 'orange'=>10),
'scoreAfdcc1' => array('min'=>-7, 'max'=>7, 'rouge'=>0, 'orange'=>1),
'scoreAfdcc2' => array('min'=>-3, 'max'=>2, 'rouge'=>-1, 'orange'=>0.5),
'scoreAltman' => array('min'=>-2, 'max'=>8, 'rouge'=>0, 'orange'=>2.7),
'scoreCCF' => array('min'=>500,'max'=>1500,'rouge'=>850, 'orange'=>1200), //corriger les bornes de CCF
);
$request = $this->getRequest();
$type = $request->getParam('type', 'indiScore');
$user = new Scores_Utilisateur();
$this->view->headTitle()->prepend('Historique indiScore');
$this->view->headTitle()->prepend('Siret '.$this->siret);
$ws = new WsScores();
$histoScores = $ws->getScoresHisto($this->siret, $type);
if ( $histoScores->nbReponses>1 ) {
$data = array();
foreach ($histoScores->result->item as $item) {
$d = array(
'date' => $item->date,
'value' => $item->value,
'encours' =>$item->encours,
);
$data['data'][] = $d;
}
//Make the graph - Ready to create a class for this char
require_once 'Vendors/ChartDirector/phpchartdir.php';
require_once 'Scores/Cache.php';
$c = Zend_Registry::get('config');
$path = $c->profil->path->pages . '/imgcache/';
$file = 'indiscorehisto-'.$this->siret.'-'.$this->id.'-'.$type.'.png';
$cache = new Cache();
$return = null;
if( $cache->exist($path.$file) ){
$return = $file;
} else {
if( count($data)<1 ){
$return = null;
} else {
$labelsX = array();
$dataX = array();
$encours = array();
foreach($data['data'] as $value){
$dataX[] = $value['value'];
$encours[] = $value['encours'];
$date = new Zend_Date($value['date'], 'yyyy-MM-dd');
$labelsX[] = chartTime($date->toString('yyyy'), $date->toString('MM'), $date->toString('dd'));
}
$c = new XYChart(600, 300);
$c->setPlotArea(50, 10, $c->getWidth() - 60, $c->getHeight() - 60, 0xFFFFFF, -1, 0xC0C0C0, $c->dashLineColor(0x808080, DotLine), -1);
$c->xAxis->setTitle($this->view->translate("Année"));
$c->xAxis->setColors(0x777777, 0x444444, 0x777777);
$c->xAxis->setWidth(2);
$c->yAxis->setTitle($this->view->translate("Score"));
$c->yAxis->setColors(0x777777, 0x444444, 0x777777);
$c->yAxis->setWidth(2);
$c->yAxis->addZone(abs($bornes[$type]['min'])*(-5), $bornes[$type]['rouge'], 0xFFE2E2);
$c->yAxis->addZone($bornes[$type]['rouge'], $bornes[$type]['orange'], 0xFFF2E2);
$c->yAxis->addZone($bornes[$type]['orange'], abs($bornes[$type]['max'])*5, 0xE2FFE2);
// If real value is not between min max scores, enlarge Y of graphic and mark limits
$maxY = (max($dataX) >= $bornes[$type]['max']) ? max($dataX)*1.1 : $bornes[$type]['max'];
$minY = (min($dataX) <= $bornes[$type]['min']) ? min($dataX)*1.1 : $bornes[$type]['min'];
$c->yAxis->setLinearScale($minY, $maxY);
$textBox = $c->addText(550, 15, $types[$type], "arialbi.ttf", 11, 0xAAAAAA);
$textBox->setAlignment(TopRight);
$layer = $c->addSplineLayer();
$layer->setXData($labelsX);
$layer->setLineWidth(1);
$layer->addExtraField($encours);
$dataSet = $layer->addDataSet($dataX, 0x0000FF);
$dataSet->setDataSymbol(CircleSymbol, 4, 0x5555FF);
if( $c->makeChart($path.$file ) === true){
$return = $file;
$graphMap = $c->getHTMLImageMap("", "", "title='{x|dd/mm/yyyy}\nScore: {value}\nEncours: {field0} K&euro;' style='cursor:pointer;'");
} else {
$return = false;
}
}
}
$this->view->assign('graphMap', $graphMap);
$this->view->assign('graph', $return);
//Assign vars
$this->view->assign('scores', $histoScores->result->item);
if ($histoScores->type == 'indiScore20') $histoScores->type = 'indiScore';
$this->view->assign('type', $histoScores->type);
$this->view->assign('bornes', $bornes);
}
$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('types', $types);
$this->view->assign('exportObjet', $histoScores);
}
/**
* IndiScore
*/

View File

@ -1372,4 +1372,36 @@ class FinanceController extends Zend_Controller_Action
}
}
/**
* Affichage en ajax des informations dernière date de cloture du bilan et etat de saisie
*/
public function liasseinfosAction()
{
$this->_helper->layout()->disableLayout();
$request = $this->getRequest();
$siren = $request->getParam('siren');
$ws = new WsScores();
$response = $ws->getEntrepriseLiasseInfos($siren);
Zend_Registry::get('firebug')->info($response);
if ( $response === null ) {
$this->view->assign('msg','Aucun bilan déposé.');
} else {
$date = new Zend_Date($response->DateCloture, 'yyyy-MM-dd');
$this->view->assign('DateCloture', $date->toString('dd/MM/yyyy'));
$this->view->assign('DateClotureIso', $response->DateCloture);
if ( $response->SaisieDate!='' || $response->SaisieDate!='0000-00-00' ) {
$this->view->assign('SaisieDateIso', $response->SaisieDate);
$date = new Zend_Date($response->SaisieDate, 'yyyy-MM-dd');
$this->view->assign('SaisieDate', $date->toString('dd/MM/yyyy'));
}
$this->view->assign('SaisieLabel', $response->SaisieLabel);
}
}
}

View File

@ -574,6 +574,7 @@ class IdentiteController extends Zend_Controller_Action
$identite = $ws->getLienRef($lienRef);
$this->view->assign('raisonSociale', $identite->raisonSociale);
$this->view->assign('identification', $identite->identification);
$this->view->assign('isin', $identite->isin);
$this->view->assign('actif', $identite->actif);
//Define SIREN if exist
@ -582,13 +583,18 @@ class IdentiteController extends Zend_Controller_Action
$session = new Scores_Session_Entreprise($siren, null, true);
$this->view->assign('siren', $siren);
$this->view->assign('siret', $session->getSiret());
$this->view->assign('isin', $session->getIsin());
$this->view->assign('isin', $session->getIsin());
$this->view->assign('surveillance', $user->checkPerm('survdirigeants'));
}
Zend_Registry::get('firebug')->info($identite);
if ($identite->PpPm=='PP') {
$this->view->assign('PP', true);
$this->view->assign('nom', $identite->nom);
$this->view->assign('prenom', $identite->prenom);
$this->view->assign('civilite', $identite->civilite);
$this->view->assign('naissanceDate', $identite->naissanceDate);
}
//Get links
@ -605,7 +611,8 @@ class IdentiteController extends Zend_Controller_Action
$this->view->assign('isin', $session->getIsin());
$this->view->assign('siren', $siren);
$this->view->assign('siret', $this->siret);
$this->view->assign('raisonSociale', $session->getRaisonSociale());
$this->view->assign('raisonSociale', $session->getRaisonSociale());
$this->view->assign('surveillance', $user->checkPerm('liens'));
//Check access to display group link
if ( $user->checkPerm('GROUPE') ) {
@ -626,6 +633,21 @@ class IdentiteController extends Zend_Controller_Action
if ( ($session->getFormeJuridique()>=1000 && $session->getFormeJuridique()<=1999)
|| ($session->getFormeJuridique()>=10 && $session->getFormeJuridique()<=19) ) {
$this->view->assign('PP', true);
//@todo : using this function is strange - How to get the id before ?
$result = $ws->searchLienRef($siren, 'siren');
if (count($result->item)>0) {
foreach ($result->item as $item) {
$id = $item->id;
break;
}
}
$result = $ws->getLienRef($id);
$this->view->assign('nom', $result->nom);
$this->view->assign('prenom', $result->prenom);
$this->view->assign('civilite', $result->civilite);
$this->view->assign('naissanceDate', $result->naissance_Date);
}
if ( in_array($session->getFormeJuridique(), array(5488,5498,5720)) ) {
@ -948,6 +970,8 @@ class IdentiteController extends Zend_Controller_Action
$result = $ws->getLienRef($id);
Zend_Registry::get('firebug')->info($result);
$this->view->assign('result', $result);
$this->view->assign('idFiche', $id);
}
/**
@ -977,6 +1001,8 @@ class IdentiteController extends Zend_Controller_Action
$request = $this->getRequest();
$siren = substr($this->siret,0,9);
$nic = $request->getParam('nic', null);
$this->view->headTitle()->prepend('Evènements - Siren '.$siren);
//Pagination
@ -987,8 +1013,26 @@ class IdentiteController extends Zend_Controller_Action
$session = new Scores_Session_Entreprise($this->siret, $this->id);
/*
Par défaut, si on est sur un siège actif ou non, afficher tous les évènements de l'entreprise.
Si on est sur un NIC établissement actif ou radié, afficher juste les évènements de l'établissement.
*/
if ( $nic === null ) {
$this->view->assign('Entreprise', 1);
if ( strlen($this->siret) == 9 ) {
$this->view->assign('Nic', substr($session->getSiretSiege(),10,5));
} else {
$this->view->assign('Nic', substr($this->siret,10,5));
}
$nic = 0;
} else {
$this->view->assign('Entreprise', 0);
$this->view->assign('Nic', $nic);
}
$ws = new WsScores();
$infos = $ws->getListeEvenements($siren, 0, $position, $nbReponses);
$infos = $ws->getListeEvenements($siren, $nic, $position, $nbReponses);
$evens = $infos->result->item;
$this->view->assign('evens', $evens);
@ -1480,4 +1524,39 @@ class IdentiteController extends Zend_Controller_Action
$this->view->assign('raisonSociale', $session->getRaisonSociale());
$this->view->assign('siren', $siren);
}
/**
* Corporama
* Intégration en ajax du lien corporama
* Solutions de prospection et de veille entreprise
*/
public function corporamaAction()
{
$request = $this->getRequest();
$this->view->assign('siret', $this->siret);
$siren = substr($this->siret, 0, 9);
$session = new Scores_Session_Entreprise($this->siret, $this->id);
$corporamaUrl = "http://corporama.com/search?siren=".$siren."&company=".urlencode($session->getRaisonSociale())."&partner=sd268";
$this->view->assign('corporamaUrl', $corporamaUrl);
if ( $request->isXmlHttpRequest() || $request->getParam('include') ) {
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
$page = file_get_contents($corporamaUrl, false);
if ($page === false) {
echo "Erreur";
}
$this->view->assign('page', $page);
}
$ws = new WsScores();
$ws->setLog('corporama', $this->siret);
}
}

View File

@ -169,6 +169,14 @@ class JuridiqueController extends Zend_Controller_Action
//Affichage pour la liste des annonces
} else {
//Titre de la page
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;

View File

@ -448,7 +448,9 @@ class PiecesController extends Zend_Controller_Action
if ($response===false) {
$this->view->assign('msg', "Erreur lors du passage de la commande.");
} else {
$this->view->assign('msg', "Enregistrement de votre commande sous la référence".$response.".");
$this->view->assign('formEmail', true);
$this->view->assign('refCommande', $response);
$this->view->assign('msg',"Enregistrement de votre commande sous la référence ".strtoupper($response).".");
}
}
//Affichage du formulaire
@ -469,6 +471,28 @@ class PiecesController extends Zend_Controller_Action
}
}
break;
//Saisir email
case 'EMAIL':
if ( $request->isXmlHttpRequest() ) {
if ( $request->isPost() ) {
$id = $request->getParam('refCommande');
$email = trim($request->getParam('email'));
if ( !empty($email) ) {
$response = $ws->setPiecesBilanCmdEmail($id, $email);
if ( $response === false ) {
$this->view->assign('msg', "Impossible d'enregistrer un email pour la commande ".strtoupper($id).".");
} else {
$this->view->assign('msg', "Email ".$email." enregistré pour la commande ".strtoupper($id).".");
}
} else {
$this->view->assign('msg', "Email incorrect.");
}
}
}
break;
}
}
@ -553,9 +577,11 @@ class PiecesController extends Zend_Controller_Action
//Enregistrement de la commande
if ( $request->isPost() ) {
$response = $ws->getPiecesActe($siren, $mode, $depotNum, $depotDate, $acteType, $acteNum, $acteDate, $ref);
if ($response===false) {
if ( $response === false ) {
$this->view->assign('msg', "Erreur lors du passage de la commande.");
} else {
$this->view->assign('formEmail', true);
$this->view->assign('refCommande', $response);
$this->view->assign('msg',"Enregistrement de votre commande sous la référence ".strtoupper($response).".");
}
}
@ -584,11 +610,32 @@ class PiecesController extends Zend_Controller_Action
}
}
break;
//Saisir email
case 'EMAIL':
if ( $request->isXmlHttpRequest() ) {
if ( $request->isPost() ) {
$id = $request->getParam('refCommande');
$email = trim($request->getParam('email'));
if ( !empty($email) ) {
$response = $ws->setPiecesActeCmdEmail($id, $email);
if ( $response === false ) {
$this->view->assign('msg', "Impossible d'enregistrer un email pour la commande ".strtoupper($id).".");
} else {
$this->view->assign('msg', "Email ".$email." enregistré pour la commande ".strtoupper($id).".");
}
} else {
$this->view->assign('msg', "Email incorrect.");
}
}
}
break;
}
}
/**
* Commande de pièces, kbis, privileges, nantissements
*/
@ -633,6 +680,11 @@ class PiecesController extends Zend_Controller_Action
$message = '';
$emails = explode(';',$user->getEmail());
$email = $emails[0];
$validator = new Zend_Validate_EmailAddress();
$this->view->assign('emailValid', $validator->isValid($email));
//Validation du formulaire
if ($request->isPost() && $request->getParam('op')=='kbis') {
@ -642,55 +694,46 @@ class PiecesController extends Zend_Controller_Action
switch($method) {
case 'M':
$email = $request->getParam('emailKbisM', '');
//Vérification des champs
if (!empty($email)) {
//Envoi du mail
$mail = new Scores_Mail();
$mail->setFrom('contact');
$mail->addToKey('support');
$mail->setSubject('[COMMANDE PIECES] - KBIS par email');
$mail->setBodyTexte(
'COMMANDE DE PIECES - Demande de kbis par email <br/>'.EOL.
'Demande pour recevoir le KBIS de SIREN :'.
'<a href="'.$this->view->url(array('controller'=>'identite', 'action'=>'fiche', 'siret'=> $this->siret)).'">'.
$this->siret.'</a><br/>'.EOL.
'pour login '.$user->getLogin().'('.$email.')<br/>'.EOL.
'Référence : '.$ref
);
$mail->send();
//Envoi du mail
$mail = new Scores_Mail();
$mail->setFrom('contact');
$mail->addToKey('support');
$mail->setSubject('[COMMANDE PIECES] - KBIS par email');
$mail->setBodyTexte(
'COMMANDE DE PIECES - Demande de kbis par email <br/>'.EOL.
'Demande pour recevoir le KBIS de SIREN :'.
'<a href="'.$this->view->url(array('controller'=>'identite', 'action'=>'fiche', 'siret'=> $this->siret)).'">'.
$this->siret.'</a><br/>'.EOL.
'pour login '.$user->getLogin().'('.$email.')<br/>'.EOL.
'Référence : '.$ref
);
$mail->send();
//Enregistrement dans la bdd
$commandesKbis = new Application_Model_CommandesKbis();
$data = array(
'idUser' => $user->getId(),
'login' => $user->getLogin(),
'email' => $email,
'societe' => '',
'nom' => '',
'adresse' => '',
'cp' => '',
'ville' => '',
'siren' => substr($this->siret,0,9),
'raisonSociale' => $session->getRaisonSociale(),
'type' => 'M',
'dateCommande' => date('Y-m-d H:i:s'),
);
$commandesKbis->insert($data);
//Enregistrement dans la bdd
$commandesKbis = new Application_Model_CommandesKbis();
$data = array(
'idUser' => $user->getId(),
'login' => $user->getLogin(),
'email' => $email,
'societe' => '',
'nom' => '',
'adresse' => '',
'cp' => '',
'ville' => '',
'siren' => $siren,
'raisonSociale' => $session->getRaisonSociale(),
'type' => 'M',
'dateCommande' => date('Y-m-d H:i:s'),
);
$commandesKbis->insert($data);
$message = 'Votre demande de reception de Kbis par email a été prise en compte';
$ws = new WsScores();
$ws->setLog('kbis', $this->siret, 0, 'mail');
} else {
$message = '<font color="red">Erreur : adresse email non renseignée.</font>';
$this->view->assign('ref', $ref);
$this->view->assign('method', $method);
$this->view->assign('emailKbisM', $email);
}
$message = $this->view->translate('Votre demande de reception de Kbis par email a été prise en compte');
$ws = new WsScores();
$ws->setLog('kbis', $this->siret, 0, 'mail');
$ws->getKbis($siren, $method, $ref);
break;
case 'C':
$email = $ref = $request->getParam('emailKbisC', '');
//Vérification des champs
$fields = array('societe', 'nom', 'prenom', 'adresse', 'cp', 'ville');
$params = $request->getParams();
@ -731,21 +774,21 @@ class PiecesController extends Zend_Controller_Action
'adresse' => $params['adresse'],
'cp' => $params['cp'],
'ville' => $params['ville'],
'siren' => substr($this->siret,0,9),
'siren' => $siren,
'raisonSociale' => $session->getRaisonSociale(),
'type' => 'C',
'dateCommande' => date('Y-m-d H:i:s'),
);
$commandesKbis->insert($data);
$message = 'Votre commande à été prise en compte, vous recevrez ce document sous 3/5 jours';
$message = $this->view->translate('Votre commande à été prise en compte, vous recevrez ce document sous 3/5 jours');
$ws = new WsScores();
$ws->setLog('kbis', $this->siret, 0, 'courrier');
$ws->getKbis($siren, $method, $ref);
}
else
{
$message = '<font color="red">Erreur : Tous les champs doivent être renseigner.</font>';
$this->view->assign('emailKbisC', $email);
$message = '<font color="red">'.$this->view->translate('Erreur : Tous les champs doivent être renseigner.').'</font>';
$this->view->assign('method', $method);
$this->view->assign('societe', $params['societe']);
$this->view->assign('nom', $params['nom']);
@ -757,7 +800,6 @@ class PiecesController extends Zend_Controller_Action
break;
}
$this->view->assign('message', $message);
}
if ($request->isPost() && $request->getParam('op')=='privileges') {
@ -816,7 +858,6 @@ class PiecesController extends Zend_Controller_Action
$this->view->assign('siren', $siren);
$this->view->assign('siret', $this->siret);
$this->view->assign('raisonSociale', $session->getRaisonSociale());
}
/**
@ -977,8 +1018,8 @@ class PiecesController extends Zend_Controller_Action
}
/**
* Enter description here ...
*/
* Bilan association
*/
public function associationbilanAction()
{
//Désactivation affichage
@ -1028,16 +1069,7 @@ class PiecesController extends Zend_Controller_Action
/**
* Gestion téléchargement des kbis
*/
public function kbisAction()
{
//On bascule soit vers kbispasserelle ou vers kbis infogreffe
$this->_forward('kbispasserelle', 'pieces', null, $this->getRequest()->getParams());
}
/**
* Téléchargement de kbis par la passerelle SD
*/
public function kbispasserelleAction()
public function kbisAction()
{
$request = $this->getRequest();
$params = $request->getParams();
@ -1096,7 +1128,7 @@ class PiecesController extends Zend_Controller_Action
{
require_once 'Scores/WsScores.php';
$ws = new WsScores();
$info = $ws->getKbis($siren);
$info = $ws->getKbis($siren, 'T');
if ( substr($info,0,7)=='http://' ) {
//Suppression du fichier si il existe
@ -1127,14 +1159,6 @@ class PiecesController extends Zend_Controller_Action
}
}
/**
* Téléchargement de kbis par infogreffe
*/
public function kbisinfogreffeAction()
{
}
/**
* Affiche les privilèges en surveillance
*/

View File

@ -69,6 +69,11 @@ 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['Pays'] = $elements[2];

View File

@ -48,6 +48,205 @@ class SaisieController extends Zend_Controller_Action
array( "triId"=>"1798", "triCode"=>"AGENL", "triNom"=>"Cour d'Appel d'Agen", "triCP"=>"47916" ),
);
protected $codVoie = array(
'ABE' => "Abbaye",
'AGL' => "Agglomération",
'AIRE' => "Aire",
'ALL' => "Allée",
'ALL' => "Allee",
'ACH' => "Ancien chemin",
'ART' => "Ancienne route",
'ANSE' => "Anse",
'ARC' => "Arcade",
'AUT' => "Autoroute",
'AV' => "Avenue",
'BRE' => "Barrière",
'BCH' => "Bas chemin",
'BSTD' => "Bastide",
'BAST' => "Baston",
'BEGI' => "Beguinage",
'BER' => "Berge",
'BOIS' => "Bois",
'BCLE' => "Boucle",
'BD' => "Boulevard",
'BRG' => "Bourg",
'BUT' => "Butte",
'CALE' => "Cale",
'CAMP' => "Camp",
'CGNE' => "Campagne",
'CPG' => "Camping",
'CARR' => "Carré",
'CAU' => "Carreau",
'CAR' => "Carrefour",
'CARE' => "Carrière",
'CST' => "Castel",
'CAV' => "Cavée",
'CTRE' => "Central",
'CTRE' => "Centre",
'CHL' => "Chalet",
'CHP' => "Chapelle",
'CHI' => "Charmille",
'CHT' => "Château",
'CHS' => "Chaussée",
'CHE' => "Chemin",
'CHV' => "Chemin vicinaux",
'CHV' => "Chemin vicinal",
'CHEM' => "Cheminement",
'CITE' => "Cîte",
'CLOI' => "Cloître",
'CLOS' => "Clos",
'COL' => "Col",
'COLI' => "Colline",
'CTR' => "Contour",
'COR' => "Corniche",
'COTE' => "Côte",
'COTT' => "Cottage",
'COUR' => "Cour",
'CRS' => "Cours",
'DARS' => "Darse",
'DEG' => "Degré",
'DSG' => "Descente",
'DSC' => "Descente",
'DIG' => "Digue",
'DOM' => "Domaine",
'ECA' => "Ecart",
'ECL' => "Ecluse",
'EGL' => "Eglise",
'EN' => "Enceinte",
'ENV' => "Enclave",
'ENC' => "Enclos",
'ESC' => "Escalier",
'ESPA' => "Espace",
'ESP' => "Esplanade",
'ETING' => "Etang",
'FG' => "Faubourg",
'FRM' => "Ferme",
'FON' => "Fontaine",
'FORT' => "Fort",
'FORM' => "Forum",
'FOS' => "Fosse",
'FOYR' => "Foyer",
'GAL' => "Galerie",
'GARE' => "Gare",
'GARN' => "Garenne",
'GBD' => "Grand boulevard",
'GDEN' => "Grande ensemble",
'GR' => "Grande rue",
'GRI' => "Grille",
'GRIM' => "Grimpette",
'GPE' => "Groupe",
'GPT' => "Groupement",
'HLE' => "Halle",
'HAM' => "Hameau",
'HCH' => "Haut chemin",
'HIP' => "Hippodrome",
'HLM' => "HLM",
'ILE' => "Ile",
'IMM' => "Immeuble",
'IMP' => "Impasse",
'JARD' => "Jardin",
'JTE' => "Jetée",
'LEVE' => "Levée",
'LD' => "Lieu dit",
'LD' => "Lieudit",
'LOT' => "Lotissement",
'MAIL' => "Mail",
'MF' => "Maison forestière",
'MAN' => "Manoir",
'MAR' => "Marche",
'MAS' => "Mas",
'MET' => "Métro",
'MTE' => "Montée",
'MLN' => "Moulin",
'MUS' => "Musée",
'NTE' => "Nouvelle route",
'PAL' => "Palais",
'PARC' => "Parc",
'PKG' => "Parking",
'PRV' => "Parvis",
'PAS' => "Passage",
'PN' => "Passage à niveau",
'PASS' => "Passe",
'PLE' => "Passerelle",
'PAT' => "Patio",
'PAV' => "Pavillon",
'PERI' => "Périphérique",
'PSTY' => "Péristyle",
'PTA' => "Petites allée",
'PCH' => "Petit chemin",
'PAE' => "Petite avenue",
'PIM' => "Petite impasse",
'PRT' => "Petite route",
'PTR' => "Petite rue",
'PL' => "Place",
'PLCI' => "Placis",
'PLAG' => "Plage",
'PLN' => "Plaine",
'PLAN' => "Plan",
'PLT' => "Plateau",
'PNT' => "Pointe",
'PONT' => "Pont",
'PCH' => "Porche",
'PORT' => "Port",
'PTE' => "Porte",
'PORQ' => "Portique",
'POT' => "Poterne",
'POUR' => "Pourtour",
'PRE' => "Pré",
'PRQ' => "Presqu'île",
'PROM' => "Promenade",
'QU' => "Quai",
'QUAI' => "Quai",
'QUA' => "Quartier",
'RAC' => "Raccourci",
'RAID' => "Raidillon",
'RPE' => "Rampe",
'REM' => "Rempart",
'RES' => "Résidence",
'ROC' => "Roc",
'ROC' => "Rocade",
'RPT' => "Rond point",
'ROQT' => "Roquet",
'RTD' => "Rotonde",
'RTE' => "Route",
'R' => "Rue",
'RUE' => "Rue",
'RLE' => "Ruelle",
'SEN' => "Sente",
'SEN' => "Sentier",
'SQ' => "Square",
'STDE' => "Stade",
'STA' => "Station",
'TPL' => "Terre plein",
'TRN' => "Terrain",
'TSSE' => "Terrasse",
'TRT' => "Tertre",
'TOUR' => "Tour",
'TRA' => "Traverse",
'VAL' => "Vallon",
'VAL' => "Vallée",
'VEN' => "Venelle",
'VIA' => "Via",
'VTE' => "Vieille route",
'VCHE' => "Vieux chemin",
'VLA' => "Villa",
'VGE' => "Village",
'VLGE' => "Village",
'VOI' => "Voie",
'VOIE' => "Voie",
'ZONE' => "Zone",
'ZAC' => "Zone d'aménagement concerté",
'Z A C' => "Zone d'aménagement concerté",
'ZAD' => "Zone d'aménagement différé",
'Z A D' => "Zone d'aménagement différé",
'ZA' => "Zone artisanale",
'Z A' => "Zone artisanale",
'ZI' => "Zone industrielle",
'Z I' => "Zone industrielle",
'ZUP' => "Zone à urbaniser en priorité",
'Z U P' => "Zone à urbaniser en priorité",
);
/**
* Retourne Fonctions de direction
*/
@ -125,7 +324,7 @@ class SaisieController extends Zend_Controller_Action
{
$this->view->headScript()
->appendFile('/themes/default/scripts/saisie.js', 'text/javascript')
->appendFile('/libs/form/jquery.form.js', 'text/javascript');
->appendFile('/libs/form/jquery.form.min.js', 'text/javascript');
$request = $this->getRequest();
$siret = $request->getParam('siret');
@ -327,8 +526,8 @@ class SaisieController extends Zend_Controller_Action
'1100', '1101' , '1200', '1201', '1300', '1301', '1302', '1303', '1304', '1305', '1306',
'1307', '1308', '1309', '1310', '1311', '1312', '1408', '1411', '1412', '1413', '1414',
'1415', '1511', '1502', '1506', '1503', '1512', '1600', '1601', '1999', '2102', '2100',
'2202', '2206', '2319', '2315', '2313', '2305', '2307', '2303', '2306', '2901', '5500',
'6700', '1010', '1050', '1055', '2203', '2204', '2210', '2212',
'2202', '2206', '2319', '2315', '2313', '2305', '2307', '2303', '2306', '2901', '4500',
'5500', '6700', '1010', '1050', '1055', '2203', '2204', '2210', '2212',
);
$eventM = new Application_Model_TabEvenements();
$sql = $eventM->select()
@ -804,7 +1003,7 @@ class SaisieController extends Zend_Controller_Action
//Affichage formulaire
} else {
$this->view->inlineScript()->appendFile('/libs/form/jquery.form.js');
$this->view->inlineScript()->appendFile('/libs/form/jquery.form.min.js');
if ( intval($siren)==0 ) {
$session = new Scores_Session_Entreprise();
$siren = '';
@ -1454,11 +1653,13 @@ class SaisieController extends Zend_Controller_Action
$this->view->assign('id1', $lienRef);
} else {
//Création de la première référence lien
$result = $ws->getIdentiteLight($siren);
//Compute informations
$infos = array(
'siren' => $siren,
'siren' => $result->Siren,
'actif' => 1,
'PpPm' => 'PM',
'RS' => $rs,
'RS' => $result->Nom,
'civilite' => '',
'nom' => '',
'prenom' => '',
@ -1467,17 +1668,17 @@ class SaisieController extends Zend_Controller_Action
'naissance_dept_pays' => '',
'naissance_lieu' => '',
'nat' => '',
'adresse_num' => '',
'adresse_btq' => '',
'adresse_codvoie' => '',
'adresse_libvoie' => '',
'adresse_num' => $result->AdresseNum,
'adresse_btq' => $result->AdresseBtq,
'adresse_codvoie' => $result->AdresseVoie,
'adresse_libvoie' => $result->AdresseRue,
'adresse_comp' => '',
'adresse_cp' => '',
'adresse_ville' => '',
'adresse_pays' => '',
'adresse_cp' => $result->CP,
'adresse_ville' => $result->Ville,
'adresse_pays' => 'FRA',
'dateSaisie' => date('YmdHis'),
'capital' => '',
'deviseCapital' => 'EUR',
'capital' => $result->CapitalDev,
'deviseCapital' => $result->CapitalDev,
'nbActions' => '',
'idLoc1Type' => '',
'idLoc1Num' => '',
@ -1488,7 +1689,7 @@ class SaisieController extends Zend_Controller_Action
);
$idNewLien = $ws->setLienRef(json_encode($infos));
Zend_Registry::get('firebug')->info('idNewLien:'.$idNewLien);
if (is_int($idNewLien)) {
if ( is_int($idNewLien) ) {
$this->view->assign('id1', $idNewLien);
}
}
@ -2043,7 +2244,7 @@ class SaisieController extends Zend_Controller_Action
$ws = new WsScores();
if ($id===null) {
if ( $id===null ) {
$siren = $request->getParam('siren');
$result = $ws->searchLienRef($siren, 'siren');
if (count($result->item)>0) {
@ -2054,44 +2255,57 @@ class SaisieController extends Zend_Controller_Action
}
}
$this->view->assign('edit', $id);
if ( $id!==null ) {
$this->view->assign('currencies', $this->currencies);
$this->view->assign('countries', $this->countries);
$this->view->assign('edit', $id);
$result = $ws->getSaisieLienRef($id);
$items = json_decode($result, true);
$this->view->assign('currencies', $this->currencies);
$this->view->assign('countries', $this->countries);
//Get country code
if ($items->adresse_pays!='FRA') {
$result = $ws->getCountryId($items['adresse_pays']);
$this->view->assign('identifiant', $result->item);
}
$result = $ws->getSaisieLienRef($id);
Zend_Registry::get('firebug')->info($items);
if ( $result!==false ) {
if (count($items)>0) {
foreach( $items as $key => $val ) {
switch ($key) {
case 'dateCapital':
case 'dateNbActions':
case 'naissance_date':
if (!empty($val) && $val!='0000-00-00') {
$date = new Zend_Date($val, 'yyyy-MM-dd');
$this->view->assign($key, $date->toString('dd/MM/yyyy'));
}
break;
default:
$this->view->assign($key, $val);
break;
}
}
}
$items = json_decode($result, true);
if ( $items!==null ) {
Zend_Registry::get('firebug')->info('getSaisieLienRef id='.$id);
Zend_Registry::get('firebug')->info($items);
//Get country code
if ($items->adresse_pays!='FRA') {
$result = $ws->getCountryId($items['adresse_pays']);
$this->view->assign('identifiant', $result->item);
}
Zend_Registry::get('firebug')->info($items);
if (count($items)>0) {
foreach( $items as $key => $val ) {
switch ($key) {
case 'dateCapital':
case 'dateNbActions':
case 'naissance_date':
if (!empty($val) && $val!='0000-00-00') {
$date = new Zend_Date($val, 'yyyy-MM-dd');
$this->view->assign($key, $date->toString('dd/MM/yyyy'));
}
break;
default:
$this->view->assign($key, $val);
break;
}
}
}
if ($items['PpPm']=='PM') {
$this->view->assign('nom', $items['RS']);
} else {
$this->view->assign('nom', $items['nom']);
}
}
}
if ($items['PpPm']=='PM') {
$this->view->assign('nom', $items['RS']);
} else {
$this->view->assign('nom', $items['nom']);
}
}
@ -2138,20 +2352,20 @@ class SaisieController extends Zend_Controller_Action
}
}
public function liendeleteAction()
{
$this->_helper->layout()->disableLayout();
$request = $this->getRequest();
$id = $request->getParam('idFiche', null);
$infos = array ('delete' => '1');
$ws = new WsScores();
if ($id===null) {
$siren = $request->getParam('siren');
$result = $ws->searchLienRef($siren, 'siren');
if (count($result->item)>0) {
foreach ($result->item as $item) {
@ -2160,7 +2374,7 @@ class SaisieController extends Zend_Controller_Action
}
}
}
if ( $request->isPost() ) {
if ($id == null) {
$message = 'Fiche n\'est pas trouvée';
@ -2187,74 +2401,126 @@ class SaisieController extends Zend_Controller_Action
$request = $this->getRequest();
$siren = $request->getParam('siren');
$refresh = 0;
$message = '';
$getcutoff = null;
if ( $request->isXmlHttpRequest() ) {
$this->_helper->layout()->disableLayout();
if ( $request->isPost() ) {
$params = $request->getParams();
// check values one more time
$paramlist = array(
'siren' => 'Siren',
'encours' => 'Encours',
'scoreSolv' => 'Indiscore',
'scoreDir' => 'Score dirigeance',
'scoreConf' => 'Score de conformité',
'remarque' => 'Remarque',
);
foreach ($paramlist as $item => $val) {
if (!isset($params[$item])) {
$message .= "Valeur $val vide !<br/>";
}
if ($params['encours']<0 || $params['encours']>500 ) {
$message = "Encours : Erreur borne";
}
}
// end checking values
if ($message == '') {
$message = $ws->setScoreCutoff($params['siren'], $params['encours']*1000, $params['scoreSolv'], $params['scoreDir'], $params['scoreConf'], $params['remarque'], $params['delete']);
if (is_int($message)){
$message = "Cut-off mis à jour.";
$refresh = 1;
}
$params = $request->getParams();
$mode = $request->getParam('mode');
//Confirm delete
if ( $mode == 'todelete' ) {
$this->view->assign('mode', 'todelete');
$this->view->assign('siren', $params['siren']);
$this->view->assign('encours', $params['encours']);
$this->view->assign('scoreSolv', $params['scoreSolv']);
$this->view->assign('scoreDir', $params['scoreDir']);
$this->view->assign('scoreConf', $params['scoreConf']);
$this->view->assign('remarque', $params['remarque']);
}
//Delete
elseif ($mode == 'delete') {
$this->view->assign('mode', 'delete');
$message = $ws->setScoreCutoff(
$params['siren'],
$params['encours']*1000,
$params['scoreSolv'],
$params['scoreDir'],
$params['scoreConf'],
$params['remarque'],
1
);
if (is_int($message)){
$message = "Cut-off est supprimé.";
} else {
$message = "Erreur lors de la suppression du cut-off (".$message.").";
}
}
//Add or Edit cutoff
else {
if ( $request->isPost() ) {
// check values one more time
$paramlist = array(
'siren' => 'Siren',
'encours' => 'Encours',
'scoreSolv' => 'Indiscore',
'scoreDir' => 'Score dirigeance',
'scoreConf' => 'Score de conformité',
'remarque' => 'Remarque',
);
foreach ($paramlist as $item => $val) {
if ( !isset($params[$item]) ) {
$message .= "Valeur $val vide !<br/>";
}
if ( $params['encours']<0 || $params['encours']>500 ) {
$message = "Encours : Erreur borne";
}
}
// end checking values
if ( $message == '' ) {
$message = $ws->setScoreCutoff(
$params['siren'],
$params['encours']*1000,
$params['scoreSolv'],
$params['scoreDir'],
$params['scoreConf'],
$params['remarque'],
$params['delete']
);
if (is_int($message)){
$message = "Cut-off mis à jour.";
$this->view->assign('mode', 'added');
} else {
$message = "Erreur lors de la mise à jour (".$message.").";
}
}
}
if ($message == '' && $params['delete'] == 1) {
$message = "Cut-off est supprimé. Aucun Cut-off est défini, merci de remplir toutes les valeurs";
$refresh = 1;
$getcutoff = json_decode($ws->getScoreCutoff($siren), true);
if( !$getcutoff ) {
if ( $message == '' ) {
$message = "Aucun Cut-off, merci de remplir toutes les valeurs";
}
$getcutoff = array(
'siren' => '',
'encours' => '',
'scoreSolv' => '',
'scoreDir' => '',
'scoreConf' => '',
'remarque' => '',
'dateInsert' => '',
'dateUpdate' => ''
);
}
}
} else {
}
}
//Display link
else {
$this->view->assign('name', "Définir un Cut-off");
$this->view->assign('href', $this->view->url(array('controller'=>'saisie','action'=>'scorecutoff','siren'=>$siren)));
}
$getcutoff = json_decode($ws->getScoreCutoff($siren), true);
if(!$getcutoff) {
if ($message == '') {
$message = "Aucun Cut-off est défini, merci de remplir toutes les valeurs";
$refresh = 0;
}
$getcutoff = array(
'siren' => '',
'encours' => '',
'scoreSolv' => '',
'scoreDir' => '',
'scoreConf' => '',
'remarque' => '',
'dateInsert' => '',
'dateUpdate' => ''
);
}
$this->view->assign('getcutoff', $getcutoff);
$this->view->assign('siren', $siren);
$this->view->assign('typescore', $user->getTypeScore());
$this->view->assign('message', $message);
$this->view->assign('refresh', $refresh);
}
public function citysearchAction()
@ -2287,27 +2553,152 @@ class SaisieController extends Zend_Controller_Action
$this->view->assign('output', $output);
}
public function codvoieAction()
{
$this->_helper->layout()->disableLayout();
$codvoie = $this->getRequest()->getParam('codvoie', null);
$output = array();
if ( null !== $codvoie) {
foreach($this->codVoie as $key=>$val){
if (stripos($key, $codvoie)!==false || stripos($val, $codvoie)!==false){
$output[] = array(
'label' => $key.": ".$val,
'value' => $key
);
}
}
}
$this->view->assign('output', $output);
}
/**
* Ajouter, modifier ou supprimer des dirigeants oppérationnels
*/
public function diropcontrolAction()
{
$this->_helper->layout()->disableLayout();
$request = $this->getRequest();
$mode = $request->getParam('mode');
$id = $request->getParam('id', null);
$siret = $request->getParam('siret');
$siren = substr($siret, 0, 9);
$nic = substr($siret, 9, 5);
$ws = new WsScores();
switch ($mode) {
case 'add':
$fonction = $this->fctDir();
$this->view->assign('fonction', $fonction);
break;
case 'edit':
$fonction = $this->fctDir();
$infos = $ws->getDirigeantsOp($siren, $id);
$this->view->assign('fonction', $fonction);
$this->view->assign('infos', $infos->item[0]);
break;
}
$this->view->assign('mode', $mode);
$this->view->assign('id', $id);
$this->view->assign('siren', $siren);
$this->view->assign('nic', $nic);
}
/**
* Sauvegarder les modifications des dirigeants oppérationnels
*/
public function diropsaveAction()
{
$this->_helper->layout()->disableLayout();
$params = $this->getRequest()->getParams();
$message = '';
$newDate = '0000-00-00';
if (trim($params['naiss_date']) != '') {
$date = new Zend_Date($params['naiss_date'], 'dd/MM/yyyy');
$newDate = $date->toString('yyyy-MM-dd');
}
$infos = array(
'siren' => $params['siren'],
'nic' => $params['nic'],
'civilite' => $params['civilite'],
'nom' => $params['nom'],
'prenom' => $params['prenom'],
'nom_usage' => $params['nom_usage'],
'dateNais' => $newDate,
'lieuNais' => $params['naiss_lieu'],
'codFct' => str_pad($params['codFct'], 4, 0, STR_PAD_LEFT),
'tel' => $params['tel'],
'fax' => $params['fax'],
'email' => $params['email']
);
$ws = new WsScores();
if($params['mode'] == 'add'){
$message = $this->view->translate('Ajout');
} else if ($params['mode'] == 'edit') {
$message = $this->view->translate('Edition');
} else if ($params['mode'] == 'del') {
$message = $this->view->translate('Suppression');
}
$result = $ws->setDirigeantsOp(json_encode($infos), $params['mode'], $params['id']);
if ($result>0) {
$message = $message.' '.$this->view->translate('a été réussi!');
} else if ($result===0) {
$message = $message.' '.$this->view->translate('n\'a pas été réussi!');
} else {
$message = $result;
}
$this->view->assign('message', $message);
}
/**
* Edit contact information
*/
public function contactAction()
{
$request = $this->getRequest();
if ( $request->isXmlHttpRequest() ) {
$this->_helper->layout()->disableLayout();
$this->_helper->layout()->disableLayout();
$id = $request->getParam('id');
$this->view->assign('id', $id);
if ( $request->isPost() ) {
$this->view->assign('post', true);
$params = $request->getParams();
$message = '';
$mode = $request->getParam('mode');
if( in_array($mode, array('create', 'edit')) ) {
$params = $request->getParams();
if( $mode == 'delete' ) {
$ws = new WsScores();
$result = $ws->setSaisieContactEt($params['siret'], '', '', '', $id, true);
if ( is_string($result) ) {
$this->view->assign('msg', $result);
}
} else {
// check values
$paramlist = array(
'siret' => 'SIRET',
'type' => 'Type',
'value' => 'Valeur',
'siret' => 'SIRET',
'type' => 'Type',
'value' => 'Valeur',
);
foreach ($paramlist as $item => $val) {
@ -2320,7 +2711,7 @@ class SaisieController extends Zend_Controller_Action
if ($message == '') {
//setContactEt
$ws = new WsScores();
$result = $ws->setSaisieContactEt($siret, $type, $value, $info);
$result = $ws->setSaisieContactEt($params['siret'], $params['type'], $params['value'], $params['info']);
if ( is_string($result) ) {
$this->view->assign('msg', $result);
@ -2330,22 +2721,17 @@ class SaisieController extends Zend_Controller_Action
$this->view->assign('msg', $message);
}
} else {
$ws = new WsScores();
$result = $ws->delSaisieContactEt($id);
if ( is_string($result) ) {
$this->view->assign('msg', $result);
}
}
} else {
$mode = $request->getParam('mode');
$id = $request->getParam('id');
$this->view->assign('mode', $mode);
if ($mode=='delete') {
$siret = $request->getParam('siret');
$this->view->assign('siret', $siret);
if ( $mode=='delete' ) {
$this->view->assign('mode', 'delete');
@ -2354,21 +2740,44 @@ class SaisieController extends Zend_Controller_Action
if ( $id !== null ) {
$ws = new WsScores();
$result = $ws->getSaisieContactEt($id);
$data = json_decode($result);
$data = json_decode($result, true);
Zend_Registry::get('firebug')->info($data);
$this->view->assign('id', $data->id);
$this->view->assign('siret', str_pad($data->siren,9,'0',STR_PAD_LEFT).str_pad($data->nic,5,'0',STR_PAD_LEFT));
$this->view->assign('type', $data->typeTel);
if ($data->typeTel=='tel' || $data->typeTel=='fax' ) {
$this->view->assign('value', str_pad($data->telephone,10,'0',STR_PAD_LEFT));
$this->view->assign('info', $data->infoTel);
$this->view->assign('id', $data['id']);
$this->view->assign('siret', str_pad($data['siren'],9,'0',STR_PAD_LEFT).str_pad($data['nic'],5,'0',STR_PAD_LEFT));
$this->view->assign('type', $data['typeTel']);
if ($data['typeTel']=='tel' || $data['typeTel']=='fax' ) {
$this->view->assign('value', str_pad($data['telephone'],10,'0',STR_PAD_LEFT));
$this->view->assign('info', $data['infoTel']);
} else {
$this->view->assign('value', $data->infoTel);
}
$tabChange = array();
if ( $data->idUtilisateur != 0 ) {
$change = new stdClass();
$change->UserId = $data['idUtilisateur'];
$change->UserName = $data['idUtilisateurName'];
$change->Date = $data['dateInsert'];
$change->Type = 'add';
$tabChange[] = $change;
}
if ( $data->idUpdate != 0 ) {
$change = new stdClass();
$change->UserId = $data['idUpdate'];
$change->UserName = $data['idUpdateName'];
$change->Date = $data['dateUpdate'];
$change->Type = 'edit';
$tabChange[] = $change;
}
if ( $data->idSuppr != 0 ) {
$change = new stdClass();
$change->UserId = $data['idSuppr'];
$change->UserName = $data['idSupprName'];
$change->Date = $data['dateSuppr'];
$change->Type = 'del';
$tabChange[] = $change;
}
$this->view->Modif = $tabChange;
} else {
$siret = $request->getParam('siret');
$this->view->assign('siret', $siret);
}
$this->view->telinfo = array(

View File

@ -52,12 +52,13 @@ class SurveillanceController extends Zend_Controller_Action
$this->_helper->layout->disableLayout();
$request = $this->getRequest();
$siret = $request->getParam('siret', '');
$email = $request->getParam('email', '');
$ref = $request->getParam('ref', '');
$ref = $request->getParam('ref', '');
$source = $request->getParam('source', '');
$encours = $request->getParam('encours', 0);
$user = new Scores_Utilisateur();
// Main email
$email = $user->getEmail();
if( empty($source) ) {
@ -119,9 +120,9 @@ class SurveillanceController extends Zend_Controller_Action
echo "Erreur lors de la suppression";
}
} elseif (isset($page)) {
$this->_redirect('surveillance/liste/page/'.$page);
$this->redirect('surveillance/liste/page/'.$page);
} else {
$this->_redirect('surveillance/liste');
$this->redirect('surveillance/liste');
}
}
@ -140,27 +141,46 @@ class SurveillanceController extends Zend_Controller_Action
$delete = $request->getParam('delete', false);
$encours = $request->getParam('encours', 0);
$validateur = new Zend_Validate_EmailAddress();
//Vérification siret / email / ref
if (empty($siret) || empty($email) | empty($ref)){
if (empty($siret) || empty($email) || empty($ref)){
$msg = 'Erreur email ou reférence non définie !';
}
//Vérification de l'encours (chiffres)
elseif (!preg_match('/([0-9]+)/', $encours)){
$msg = 'Encours incorrect';
} else {
if (!empty($delete)){
$delete = true;
}
$ws = new WsScores();
$set = $ws->setSurveillance($siret, $email, $ref, $source, $delete, $encours);
if ($set) {
if ($delete) { $msg = "Suppression surveillance $source"; }
else { $msg = "Mise sous surveillance $source"; }
} else {
if ($delete) { $msg = "Erreur lors de la suppression de la surveillance $source"; }
else { $msg = "Erreur lors de la mise sous surveillance $source"; }
}
$emails = explode(';', $email);
$emailsValid = true;
foreach ( $emails as $email ) {
if ( !$validateur->isValid($email) ) {
$emailsValid = false;
break;
}
}
if ( $emailsValid ) {
//Vérification de l'encours (chiffres)
if (!preg_match('/([0-9]+)/', $encours)){
$msg = 'Encours incorrect';
} else {
if (!empty($delete)){
$delete = true;
}
$ws = new WsScores();
$set = $ws->setSurveillance($siret, $email, $ref, $source, $delete, $encours);
if ($set) {
if ($delete) { $msg = "Suppression surveillance $source"; }
else { $msg = "Mise sous surveillance $source"; }
} else {
if ($delete) { $msg = "Erreur lors de la suppression de la surveillance $source"; }
else { $msg = "Erreur lors de la mise sous surveillance $source"; }
}
}
} else {
$msg = "Email invalide.";
}
}
$this->view->assign('msg', $msg);
}

View File

@ -25,7 +25,7 @@ class TelechargementController extends Zend_Controller_Action
if (!is_dir($this->path)) mkdir($this->path);
// Recuperation du nom du fichier
if ($filename===null) {
if ( $filename === null ) {
$tableau = explode('/', $url);
$file = $tableau[sizeof($tableau) - 1];
} else {
@ -33,14 +33,16 @@ class TelechargementController extends Zend_Controller_Action
}
// 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) {
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);
}
}
@ -54,11 +56,12 @@ class TelechargementController extends Zend_Controller_Action
$client = new Zend_Http_Client($url);
$client->setStream();
$response = $client->request('GET');
if ( $response->isSuccessful() && copy($response->getStreamName(), $this->path.'/'.$file) ) {
return $file;
} else {
return false;
}
if ( $response->isSuccessful() ) {
if ( copy($response->getStreamName(), $this->path.'/'.$file) ) {
return $file;
}
}
return false;
} catch (Zend_Http_Client_Exception $e) {
return false;
}
@ -81,7 +84,7 @@ class TelechargementController extends Zend_Controller_Action
*/
public function consommationAction()
{
$this->filetime = 1;
$this->filetime = 0;
$request = $this->getRequest();
$start = $request->getParam('start', false);

View File

@ -5,7 +5,6 @@ class UserController extends Zend_Controller_Action
public function init()
{
require_once 'Scores/WsScores.php';
$this->view->headLink()->appendStylesheet('/themes/default/styles/user.css', 'all');
}
/**
@ -13,7 +12,9 @@ class UserController extends Zend_Controller_Action
*/
public function indexAction()
{
$user = new Scores_Utilisateur();
$this->view->headLink()->appendStylesheet('/themes/default/styles/user.css', 'all');
$user = new Scores_Utilisateur();
if (!$user->checkPerm('MONPROFIL')){
$this->_forward('perms', 'error');
@ -189,49 +190,100 @@ class UserController extends Zend_Controller_Action
* Email length 80 * 3 = 240
* 255 chars is the length to store emails (email1;email2;email3)
*/
public function emailsAction()
{
$this->_helper->layout()->disableLayout();
$nbEmails = 3;
$request = $this->getRequest();
$emails = $request->getParam('q');
if (null !== $emails) {
$emailList = explode(';', $emails);
if ( count($emailList)>0 ) {
$i = 1;
foreach ( $emailList as $email ) {
$this->view->assign('email'.$i, $email);
$i++;
}
}
}
}
/**
* Validate email
*/
public function emailvalidAction()
public function emailAction()
{
$this->_helper->layout()->disableLayout();
$request = $this->getRequest();
$check = $request->getParam('check');
$email = $request->getParam('q');
$valid = false;
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);
if (null !== $email) {
$validateur = new Zend_Validate_EmailAddress();
$valid = $validateur->isValid($email);
}
$result = array(
'valid' => $valid,
);
}
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é.');
}
}
$this->view->assign('result', $result);
}
/**
@ -339,8 +391,7 @@ class UserController extends Zend_Controller_Action
*/
public function loginAction()
{
$this->view->headScript()
->appendFile('/libs/jquery/jquery.infieldlabel.min.js');
$this->_helper->layout()->disableLayout();
//@todo : gestion des affichages particuliers pour les clients
$this->view->headTitle()->append('Connexion');
@ -391,7 +442,6 @@ class UserController extends Zend_Controller_Action
}
}
}
$this->_helper->layout()->disableLayout();
}
/**
@ -420,7 +470,7 @@ class UserController extends Zend_Controller_Action
$this->view->assign('url', $url);
if (!$ajax) {
if ( $ajax == 0 ) {
$this->view->assign('refresh', $refresh);
$this->view->headMeta()->appendHttpEquiv('refresh', $refresh.'; url='.$url);
}

Binary file not shown.

View File

@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: Extranet2.4\n"
"POT-Creation-Date: 2013-12-26 11:07+0100\n"
"PO-Revision-Date: 2013-12-26 11:18+0100\n"
"POT-Creation-Date: 2014-04-24 09:31+0100\n"
"PO-Revision-Date: 2014-04-24 09:32+0100\n"
"Last-Translator: Michael RICOIS <mricois@scores-decisions.com>\n"
"Language-Team: SND-A\n"
"Language: en\n"
@ -31,80 +31,87 @@ msgstr "News"
msgid "Banque de France - "
msgstr "BANK OF FRANCE"
#: application/controllers/DirigeantController.php:23
#: application/controllers/DirigeantController.php:27
#: application/languages/totranslate.php:20
msgid "Liste des dirigeants"
msgstr "List of managers"
#: application/controllers/DirigeantController.php:24
#: application/controllers/DirigeantController.php:64
#: application/controllers/DirigeantController.php:93
#: application/controllers/EvaluationController.php:76
#: application/controllers/EvaluationController.php:108
#: application/controllers/EvaluationController.php:267
#: application/controllers/EvaluationController.php:496
#: application/controllers/EvaluationController.php:606
#: application/controllers/EvaluationController.php:711
#: application/controllers/EvaluationController.php:862
#: application/controllers/DirigeantController.php:28
#: application/controllers/DirigeantController.php:69
#: application/controllers/DirigeantController.php:98
#: application/controllers/EvaluationController.php:70
#: application/controllers/EvaluationController.php:164
#: application/controllers/EvaluationController.php:196
#: application/controllers/EvaluationController.php:355
#: application/controllers/EvaluationController.php:584
#: application/controllers/EvaluationController.php:694
#: application/controllers/EvaluationController.php:799
#: application/controllers/EvaluationController.php:950
#: application/controllers/FinanceController.php:39
#: application/controllers/FinanceController.php:215
#: application/controllers/FinanceController.php:465
#: application/controllers/FinanceController.php:826
#: application/controllers/FinanceController.php:972
#: application/controllers/FinanceController.php:1014
#: application/controllers/FinanceController.php:1035
#: application/controllers/FinanceController.php:1279
#: application/controllers/FinanceController.php:1304
#: application/controllers/IdentiteController.php:1398
#: application/controllers/IdentiteController.php:1415
#: application/controllers/JuridiqueController.php:224
#: application/controllers/JuridiqueController.php:274
#: application/controllers/JuridiqueController.php:320
#: application/controllers/JuridiqueController.php:341
#: application/controllers/FinanceController.php:979
#: application/controllers/FinanceController.php:1021
#: application/controllers/FinanceController.php:1042
#: application/controllers/FinanceController.php:1286
#: application/controllers/FinanceController.php:1311
#: application/controllers/IdentiteController.php:1476
#: application/controllers/IdentiteController.php:1493
#: application/controllers/JuridiqueController.php:226
#: application/controllers/JuridiqueController.php:276
#: application/controllers/JuridiqueController.php:322
#: application/controllers/JuridiqueController.php:343
msgid "Siret "
msgstr "Siret"
#: application/controllers/DirigeantController.php:63
#: application/controllers/DirigeantController.php:68
#: application/languages/totranslate.php:21
#: application/views/default/scripts/dirigeant/histo.phtml:29
msgid "Historique des dirigeants"
msgstr "History of Managers"
#: application/controllers/DirigeantController.php:92
#: application/controllers/DirigeantController.php:97
msgid "Liste des dirigeants opérationnels"
msgstr "List of operational managers"
#: application/controllers/EvaluationController.php:75
#: application/controllers/EvaluationController.php:69
#, fuzzy
msgid "Historique indiScore"
msgstr "INDISCORE"
#: application/controllers/EvaluationController.php:163
#: application/languages/totranslate.php:44
#: application/views/default/scripts/evaluation/indiscorehisto.phtml:28
msgid "IndiScore"
msgstr "IndiScore"
#: application/controllers/EvaluationController.php:107
#: application/controllers/EvaluationController.php:195
#: application/languages/totranslate.php:45
msgid "Rapport de synthèse"
msgstr "Synthesis Report"
#: application/controllers/EvaluationController.php:266
#: application/controllers/EvaluationController.php:354
#: application/languages/totranslate.php:46
msgid "Rapport complet"
msgstr "Full report"
#: application/controllers/EvaluationController.php:495
#: application/controllers/EvaluationController.php:583
#, fuzzy
msgid "Enquete commerciale"
msgstr "Commercial survey"
#: application/controllers/EvaluationController.php:605
#: application/controllers/EvaluationController.php:693
#, fuzzy
msgid "Avis de crédit"
msgstr "Reviews custom credit"
#: application/controllers/EvaluationController.php:710
#: application/controllers/EvaluationController.php:798
#: application/languages/totranslate.php:48
msgid "Scoring Credit Safe"
msgstr "Scoring Credit Safe"
#: application/controllers/EvaluationController.php:861
#: application/controllers/EvaluationController.php:949
#: application/languages/totranslate.php:47
msgid "Valorisation"
msgstr "Valuation"
@ -117,7 +124,7 @@ msgstr "Financial situation"
#: application/controllers/FinanceController.php:214
#, fuzzy
msgid "Bilan, Compte de résultat"
msgstr "Balances, Income statement"
msgstr "Income Statement"
#: application/controllers/FinanceController.php:464
#: application/languages/totranslate.php:25
@ -129,37 +136,38 @@ msgstr "Ratios"
msgid "Liasse fiscale"
msgstr "Tax return"
#: application/controllers/FinanceController.php:971
#: application/controllers/FinanceController.php:978
#: application/languages/totranslate.php:28
msgid "Bourse & Cotations"
msgstr "Purse & Quotes"
#: application/controllers/FinanceController.php:1013
#: application/controllers/FinanceController.php:1020
msgid "Relations Banquaires"
msgstr "Bank Account"
#: application/controllers/FinanceController.php:1034
#: application/controllers/FinanceController.php:1041
#: application/languages/totranslate.php:26
msgid "Flux de trésorerie"
msgstr "Cash flow"
#: application/controllers/FinanceController.php:1278
#: application/controllers/FinanceController.php:1285
msgid "Subventions"
msgstr ""
#: application/controllers/FinanceController.php:1303
#: application/controllers/FinanceController.php:1310
msgid "Subvention"
msgstr ""
#: application/controllers/IdentiteController.php:52
msgid "Identité - "
msgstr "Identity -"
#: application/controllers/IdentiteController.php:58
#, fuzzy
msgid "Fiche Identité - "
msgstr "See identity card"
#: application/controllers/IdentiteController.php:203
#: application/controllers/IdentiteController.php:202
msgid "Fiche procédure collective - "
msgstr "Legal review -"
#: application/controllers/IdentiteController.php:314
#: application/controllers/IdentiteController.php:313
msgid "Liste des établissements - Siren "
msgstr "Branch List - Siren "
@ -167,41 +175,63 @@ msgstr "Branch List - Siren "
msgid "Liens inter-entreprises - Id "
msgstr "Associated Links - Id "
#: application/controllers/IdentiteController.php:599
#: application/controllers/IdentiteController.php:607
msgid "Liens inter-entreprises - Siren "
msgstr "Associated Links - Siren "
#: application/controllers/IdentiteController.php:976
#: application/controllers/IdentiteController.php:1006
msgid "Evènements - Siren "
msgstr "INSEE events - Siren"
#: application/controllers/IdentiteController.php:1397
#: application/controllers/IdentiteController.php:1475
msgid "Groupe"
msgstr "Parent Company"
#: application/controllers/IdentiteController.php:1414
#: application/controllers/IdentiteController.php:1492
msgid "Contacts"
msgstr "Contacts"
#: application/controllers/JuridiqueController.php:223
#: application/controllers/JuridiqueController.php:178
#, fuzzy
msgid "Annonces Légales - "
msgstr "Legal Notices"
#: application/controllers/JuridiqueController.php:225
#, fuzzy
msgid "Informations Réglementées"
msgstr "Informations"
#: application/controllers/JuridiqueController.php:273
#: application/controllers/JuridiqueController.php:275
#: application/languages/totranslate.php:33
msgid "Compétences Territoriales"
msgstr "Territorial competences"
#: application/controllers/JuridiqueController.php:319
#: application/controllers/JuridiqueController.php:321
#, fuzzy
msgid "Conventions Collectives"
msgstr "Collective agreements"
#: application/controllers/JuridiqueController.php:340
#: application/controllers/JuridiqueController.php:342
msgid "Marques Déposées"
msgstr "Trademarks"
#: application/controllers/PiecesController.php:682
#, fuzzy
msgid "Votre demande de reception de Kbis par email a été prise en compte"
msgstr "Receive kbis by email"
#: application/controllers/PiecesController.php:736
#, fuzzy
msgid ""
"Votre commande à été prise en compte, vous recevrez ce document sous 3/5 "
"jours"
msgstr "You have been disconnected"
#: application/controllers/PiecesController.php:743
#, fuzzy
msgid "Erreur : Tous les champs doivent être renseigner."
msgstr "All users"
#: application/controllers/RechercheController.php:29
msgid "Recherche Entreprise"
msgstr "Search Company"
@ -232,12 +262,36 @@ msgstr "List of recent searches"
msgid "Enquête"
msgstr "Investigation"
#: application/controllers/SaisieController.php:134
#: application/controllers/SaisieController.php:1961
#: application/controllers/SaisieController.php:333
#: application/controllers/SaisieController.php:2162
msgid "Saisie - "
msgstr "Edit - "
#: application/controllers/UserController.php:346
#: application/controllers/SaisieController.php:2648
#, fuzzy
msgid "Ajout"
msgstr "Add the"
#: application/controllers/SaisieController.php:2650
msgid "Edition"
msgstr "Edit"
#: application/controllers/SaisieController.php:2652
#, fuzzy
msgid "Suppression"
msgstr "Print"
#: application/controllers/SaisieController.php:2658
#, fuzzy
msgid "a été réussi!"
msgstr "You have been disconnected"
#: application/controllers/SaisieController.php:2660
#, fuzzy
msgid "n'a pas été réussi!"
msgstr "You have been disconnected"
#: application/controllers/UserController.php:395
msgid "Connexion"
msgstr "Connextion"
@ -493,13 +547,13 @@ msgstr "Siren identification number"
msgid "Dénomination Sociale"
msgstr "Company Name"
#: application/views/default/scripts/dirigeant/histo.phtml:40
#: application/views/default/scripts/dirigeant/histo.phtml:41
msgid "Modification le"
msgstr "Change done the"
#: application/views/default/scripts/dirigeant/histo.phtml:58
#: application/views/default/scripts/dirigeant/histo.phtml:51
#: application/views/default/scripts/dirigeant/liste.phtml:119
#: application/views/default/scripts/dirigeant/op.phtml:86
#: application/views/default/scripts/dirigeant/op.phtml:130
msgid "Aucune donn&eacute;e n'est pr&eacute;sente dans notre base"
msgstr "No data is present in our database"
@ -517,7 +571,7 @@ msgid "Recherche à partir de la dénomination sociale"
msgstr "Search from the company name"
#: application/views/default/scripts/dirigeant/liste.phtml:70
#: application/views/default/scripts/dirigeant/op.phtml:62
#: application/views/default/scripts/dirigeant/op.phtml:65
msgid "Recherche à partir du nom du dirigeant"
msgstr "Search from the name of manager"
@ -533,18 +587,86 @@ msgstr "Add a shareholder"
msgid "DIRIGEANTS OP&Eacute;RATIONNELS"
msgstr "OPERATIONAL MANAGERS"
#: application/views/default/scripts/dirigeant/op.phtml:50
#: application/views/default/scripts/dirigeant/op.phtml:38
#, fuzzy
msgid "Ajouter un dirigeant"
msgstr "Add a shareholder"
#: application/views/default/scripts/dirigeant/op.phtml:53
msgid "Recherche à partir de la Dénomination sociale"
msgstr "Search from the Companyname"
#: application/views/default/scripts/dirigeant/op.phtml:69
#: application/views/default/scripts/dirigeant/op.phtml:74
msgid "né(e) le"
#: application/views/default/scripts/dirigeant/op.phtml:75
#: application/views/default/scripts/identite/lienfiche.phtml:21
#, fuzzy
msgid "le"
msgstr "Add the"
#: application/views/default/scripts/dirigeant/op.phtml:79
#: application/views/default/scripts/identite/lienfiche.phtml:25
#, fuzzy
msgid "à"
msgstr "Born in"
#: application/views/default/scripts/dirigeant/op.phtml:84
#, fuzzy
msgid "né(e)"
msgstr "Born in"
#: application/views/default/scripts/dirigeant/op.phtml:86
#, fuzzy
msgid "né"
msgstr "Born in"
#: application/views/default/scripts/dirigeant/op.phtml:88
#, fuzzy
msgid "née"
msgstr "born the"
#: application/views/default/scripts/dirigeant/op.phtml:76
msgid "né(e) à"
msgstr "born in"
#: application/views/default/scripts/evaluation/indiscore.phtml:41
#, fuzzy
msgid "Consulter l'historique des IndiScore"
msgstr "Check the list of operational managers"
#: application/views/default/scripts/evaluation/indiscorehisto.phtml:3
#, fuzzy
msgid "HISTORIQUE INDISCORE"
msgstr "INDISCORE"
#: application/views/default/scripts/evaluation/indiscorehisto.phtml:8
#, fuzzy
msgid "Numéro identifiant Siren"
msgstr "Siret identification number"
#: application/views/default/scripts/evaluation/indiscorehisto.phtml:13
#, fuzzy
msgid "Dénomination sociale"
msgstr "Company Name"
#: application/views/default/scripts/evaluation/indiscorehisto.phtml:19
#, fuzzy
msgid "Historique des scores"
msgstr "History of bodacc announces"
#: application/views/default/scripts/evaluation/indiscorehisto.phtml:27
#, fuzzy
msgid "Date"
msgstr "Registration date"
#: application/views/default/scripts/evaluation/indiscorehisto.phtml:29
#, fuzzy
msgid "Motif du changement"
msgstr "Search from the name of manager"
#: application/views/default/scripts/evaluation/indiscorehisto.phtml:51
#, fuzzy
msgid "Impossible de générer le graphique"
msgstr "Modify password"
#: application/views/default/scripts/evaluation/indiscorehisto.phtml:58
#, fuzzy
msgid "Aucune information sur l'historique disponible."
msgstr "No IP"
#: application/views/default/scripts/identite/etablissements.phtml:2
msgid "LISTE DES &Eacute;TABLISSEMNTS"
@ -578,7 +700,7 @@ msgstr "Inactive"
msgid "Tous"
msgstr "All"
#: application/views/default/scripts/identite/etablissements.phtml:75
#: application/views/default/scripts/identite/etablissements.phtml:69
msgid "Voir la fiche d'identité"
msgstr "See the copany identity"
@ -598,6 +720,134 @@ msgstr "Company name &amp; Contacts"
msgid "Activité(s) &amp; Chiffre d'affaires"
msgstr "Activities &amp; Turnover"
#: application/views/default/scripts/identite/lienfiche.phtml:30
#, fuzzy
msgid "Né(e)"
msgstr "Born in"
#: application/views/default/scripts/identite/lienfiche.phtml:32
#, fuzzy
msgid "Né"
msgstr "Born in"
#: application/views/default/scripts/identite/lienfiche.phtml:34
#, fuzzy
msgid "Née"
msgstr "None"
#: application/views/default/scripts/pieces/commande.phtml:39
#, fuzzy
msgid "K-Bis inexistant pour cette forme juridique"
msgstr "Legal form"
#: application/views/default/scripts/pieces/commande.phtml:46
#, fuzzy
msgid "Visualiser/Télécharger le kbis"
msgstr "Receive kbis by email"
#: application/views/default/scripts/pieces/commande.phtml:59
msgid "Recevoir le kbis par email"
msgstr "Receive kbis by email"
#: application/views/default/scripts/pieces/commande.phtml:60
msgid "Recevoir le kbis original par courrier"
msgstr "Receive the original kbis by mail"
#: application/views/default/scripts/pieces/commande.phtml:62
#, fuzzy
msgid ""
"Les pièces demandées seront commandées par courrier auprès du greffe. "
"Prévoir un délai de 2 à 3 semaines."
msgstr "Receive the original kbis by mail"
#: application/views/default/scripts/pieces/commande.phtml:72
#: application/views/default/scripts/pieces/commande.phtml:104
#, fuzzy
msgid "Commande de KBIS demandé pour la société"
msgstr "SOCIETY"
#: application/views/default/scripts/pieces/commande.phtml:73
#, fuzzy
msgid ""
"Vous recevrez un email (sous 3/5 jours ouvrés) lorsque le document sera "
"disponible."
msgstr "Link a document"
#: application/views/default/scripts/pieces/commande.phtml:77
#: application/views/default/scripts/pieces/commande.phtml:108
#, fuzzy
msgid "Votre email"
msgstr "Receive kbis by email"
#: application/views/default/scripts/pieces/commande.phtml:84
#: application/views/default/scripts/pieces/commande.phtml:114
#, fuzzy
msgid "Votre référence"
msgstr "Your Reference"
#: application/views/default/scripts/pieces/commande.phtml:87
#: application/views/default/scripts/pieces/commande.phtml:116
msgid "(facultatif)"
msgstr ""
#: application/views/default/scripts/pieces/commande.phtml:92
#: application/views/default/scripts/pieces/commande.phtml:144
msgid "Valider"
msgstr "Validate"
#: application/views/default/scripts/pieces/commande.phtml:96
#, fuzzy
msgid "Commande impossible. L'email de votre compte est invalide."
msgstr "Exporting your portfolio"
#: application/views/default/scripts/pieces/commande.phtml:105
#, fuzzy
msgid ""
"Vous recevrez un email (sous 2 à 3 semaines) lorsque le document sera "
"disponible."
msgstr "Link a document"
#: application/views/default/scripts/pieces/commande.phtml:119
#, fuzzy
msgid "Votre Societe"
msgstr "Your profile"
#: application/views/default/scripts/pieces/commande.phtml:123
#, fuzzy
msgid "Votre Nom"
msgstr "Last name"
#: application/views/default/scripts/pieces/commande.phtml:127
#, fuzzy
msgid "Votre Prenom"
msgstr "Your profile"
#: application/views/default/scripts/pieces/commande.phtml:131
#, fuzzy
msgid "Votre Adresse"
msgstr "Address"
#: application/views/default/scripts/pieces/commande.phtml:135
#, fuzzy
msgid "Votre Code Postal"
msgstr "Code :"
#: application/views/default/scripts/pieces/commande.phtml:139
#, fuzzy
msgid "Votre Ville"
msgstr "City"
#: application/views/default/scripts/pieces/commande.phtml:148
#, fuzzy
msgid "Commande impossible. L'email de votre compte est invalide"
msgstr "Exporting your portfolio"
#: application/views/default/scripts/pieces/commande.phtml:157
#: application/views/default/scripts/pieces/commande.phtml:226
#, fuzzy
msgid "Vous n'avez pas les droits d'accès pour cette fonctionalité."
msgstr "Permissions"
#: application/views/default/scripts/recherche/actionnaire.phtml:6
msgid "RECHERCHE PAR ACTIONNAIRE"
msgstr "SEARCH BY SHAREHOLDER"
@ -617,20 +867,82 @@ msgstr "SEARCH A COMPANY"
#: application/views/default/scripts/recherche/refclient.phtml:1
#, fuzzy
msgid "RECHERCHE SURVEILLANCE"
msgstr "Search"
msgstr "Monitoring"
#: application/views/default/scripts/recherche/worldcheck.phtml:4
#, fuzzy
msgid "RECHERCHE WORLDCHECK"
msgstr "Search in WorldCheck"
#: application/views/default/scripts/user/login.phtml:613
#: application/views/default/scripts/user/login.phtml:614
#: application/views/default/scripts/saisie/diropcontrol-form.phtml:10
#, fuzzy
msgid "Civilité"
msgstr "Solvency :"
#: application/views/default/scripts/saisie/diropcontrol-form.phtml:23
msgid "Nom"
msgstr "Last name"
#: application/views/default/scripts/saisie/diropcontrol-form.phtml:30
msgid "Prenom"
msgstr ""
#: application/views/default/scripts/saisie/diropcontrol-form.phtml:37
#, fuzzy
msgid "Nom d'usage"
msgstr "Last name"
#: application/views/default/scripts/saisie/diropcontrol-form.phtml:44
#, fuzzy
msgid "Fonction"
msgstr "Constructions"
#: application/views/default/scripts/saisie/diropcontrol-form.phtml:56
#, fuzzy
msgid "Date de naissance"
msgstr "Closing date"
#: application/views/default/scripts/saisie/diropcontrol-form.phtml:69
#, fuzzy
msgid "Lieu de naissance"
msgstr "Intracom VAT number."
#: application/views/default/scripts/saisie/diropcontrol-form.phtml:76
msgid "Téléphone"
msgstr "Telephone"
#: application/views/default/scripts/saisie/diropcontrol-form.phtml:83
#, fuzzy
msgid "Télécopie"
msgstr "Telephone"
#: application/views/default/scripts/saisie/diropcontrol-form.phtml:90
#, fuzzy
msgid "Email"
msgstr "Receive kbis by email"
#: application/views/default/scripts/saisie/diropcontrol.phtml:9
#, fuzzy
msgid "Ajouter un dirigeant opérationnel"
msgstr "Add a shareholder"
#: application/views/default/scripts/saisie/diropcontrol.phtml:12
#, fuzzy
msgid "Modifier le dirigeant opérationnel"
msgstr "Modify password"
#: application/views/default/scripts/saisie/diropcontrol.phtml:15
#, fuzzy
msgid "Supprimer le dirigeant opérationnel"
msgstr "Search a Manager"
#: application/views/default/scripts/user/login.phtml:30
#: application/views/default/scripts/user/login.phtml:31
msgid "Identifiants oubliés ?"
msgstr "Forgotten you login ?"
#: application/views/default/scripts/user/logout.phtml:3
#: application/views/default/scripts/user/logout.phtml:16
#: application/views/default/scripts/user/logout.phtml:21
msgid "Vous avez été déconnecté."
msgstr "You have been disconnected"
@ -639,16 +951,21 @@ msgid "Veuillez cliquer"
msgstr "Click"
#: application/views/default/scripts/user/logout.phtml:4
#: application/views/default/scripts/user/logout.phtml:20
#: application/views/default/scripts/user/logout.phtml:25
msgid "ici"
msgstr "here"
#: application/views/default/scripts/user/logout.phtml:20
#: application/views/default/scripts/user/logout.phtml:24
#, fuzzy, php-format
msgid "Si cette page ne disparait pas au bout de %1$s seconde(s)"
msgstr "If this page does not disappear after 5 second(s), please click"
#: application/views/default/scripts/user/logout.phtml:25
msgid "veuillez cliquer "
msgstr "click"
#~ msgid "Numéro identifiant Siret"
#~ msgstr "Siret identification number"
#~ msgid "né(e) à"
#~ msgstr "born in"
#~ msgid "Numéro de TVA Intracom."
#~ msgstr "Intracom VAT number."
@ -681,12 +998,6 @@ msgstr "click"
#~ msgid "Création de l'établissement"
#~ msgstr "Creation of the establishment"
#~ msgid "Adresse"
#~ msgstr "Address"
#~ msgid "Téléphone"
#~ msgstr "Telephone"
#~ msgid "Fax"
#~ msgstr "FAX"
@ -916,9 +1227,6 @@ msgstr "click"
#~ msgid "ISIN"
#~ msgstr "ISIN"
#~ msgid "Nom du groupe"
#~ msgstr "Group name"
#~ msgid "Sigle"
#~ msgstr "Acronym"
@ -1183,9 +1491,6 @@ msgstr "click"
#~ msgid "Avances et acomptes sur immo. incorp."
#~ msgstr "Scores and outstandings"
#~ msgid "Constructions"
#~ msgstr "Constructions"
#, fuzzy
#~ msgid "Instal. techniques, ..."
#~ msgstr "Technical or commercial disputes"
@ -1394,9 +1699,6 @@ msgstr "click"
#~ msgid "Dépôt"
#~ msgstr "Deposit"
#~ msgid "INDISCORE"
#~ msgstr "INDISCORE"
#~ msgid "Définir un Cut-off"
#~ msgstr "Define a Cut-off"
@ -1429,9 +1731,6 @@ msgstr "click"
#~ msgid "L'étude de la dirigeance ne relève aucun problème."
#~ msgstr "Managers :"
#~ msgid "Solvabilité :"
#~ msgstr "Solvency :"
#~ msgid "L'analyse de la solvabilité est Bonne"
#~ msgstr "The solvency analysis is Good"
@ -1575,9 +1874,6 @@ msgstr "click"
#~ msgid "Autre téléphone"
#~ msgstr "Other telephone"
#~ msgid "E-mail"
#~ msgstr "E-mail"
#~ msgid "Autre e-mail"
#~ msgstr "Other e-mail"
@ -1601,9 +1897,6 @@ msgstr "click"
#~ msgid "Demandeur"
#~ msgstr "Applicant"
#~ msgid "Votre profil"
#~ msgstr "Your profile"
#, fuzzy
#~ msgid "Votre Identité"
#~ msgstr "Identity -"
@ -1614,12 +1907,6 @@ msgstr "click"
#~ msgid "Votre Fax"
#~ msgstr "Your fax"
#~ msgid "Votre E-mail"
#~ msgstr "Your E-mail"
#~ msgid "Votre Référence"
#~ msgstr "Your Reference"
#~ msgid "Service Achats"
#~ msgstr "Purchasing Service"
@ -1708,16 +1995,6 @@ msgstr "click"
#~ msgid "EXTRAIT KBIS"
#~ msgstr "Monitoring of kbis commands"
#, fuzzy
#~ msgid "Visualiser/Télécharger le kbis"
#~ msgstr "Receive kbis by email"
#~ msgid "Recevoir le kbis par email"
#~ msgstr "Receive kbis by email"
#~ msgid "Recevoir le kbis original par courrier"
#~ msgstr "Receive the original kbis by mail"
#~ msgid "PRIVILÉGES & NANTISSEMENTS"
#~ msgstr "PRIVILEGES AND PLEDGES"
@ -1876,9 +2153,6 @@ msgstr "click"
#~ msgid "Navigateur actuel"
#~ msgstr "Actual browser"
#~ msgid "Poste de travail"
#~ msgstr "Workplace"
#~ msgid "Moteur de recherche"
#~ msgstr "Search engine"
@ -1997,12 +2271,6 @@ msgstr "click"
#~ msgid "Date d'envoi"
#~ msgstr "Sending date"
#~ msgid "Liste des surveillances"
#~ msgstr "List of monitorings"
#~ msgid "Ajout le"
#~ msgstr "Add the"
#~ msgid "Envoyé le"
#~ msgstr "Sent at"
@ -2051,10 +2319,6 @@ msgstr "click"
#~ msgid "Mode Edition"
#~ msgstr "Edit mode"
#~ msgid ""
#~ "Si cette page ne disparait pas au bout de 5 seconde(s), veuillez cliquer"
#~ msgstr "If this page does not disappear after 5 second(s), please click"
#~ msgid "Gestion Système"
#~ msgstr "Management System"
@ -2172,9 +2436,6 @@ msgstr "click"
#~ msgid "Liste des clients"
#~ msgstr "List of customers"
#~ msgid "Nom"
#~ msgstr "Last name"
#~ msgid "Editer"
#~ msgstr "Edit"
@ -2211,9 +2472,6 @@ msgstr "click"
#~ msgid "Racine des identifiants"
#~ msgstr "Root of your login"
#~ msgid "Date de signature"
#~ msgstr "Signature date"
#~ msgid "(AAAA-MM-YY)"
#~ msgstr "(YYYY-MM-DD)"
@ -2547,15 +2805,9 @@ msgstr "click"
#~ msgid "Non"
#~ msgstr "No"
#~ msgid "Edition"
#~ msgstr "Edit"
#~ msgid "Mettre sous surveillance"
#~ msgstr "Put under surveillance"
#~ msgid "Néant"
#~ msgstr "None"
#~ msgid "Aucune information"
#~ msgstr "No information"
@ -2571,9 +2823,6 @@ msgstr "click"
#~ msgid "Modifier le client"
#~ msgstr "Modify a customer"
#~ msgid "Valider"
#~ msgstr "Validate"
#~ msgid "Scores & Decisions SAS - Tous droits réservés - "
#~ msgstr "Scores & Decisions SAS - All rights reserved - "

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() {
$(document).ready(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

@ -36,17 +36,10 @@
<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 != '') { ?>
<?=$this->translate("Modification le")?>
<?php
if (strpos($dir->DateFct, '/') != false) {
echo $dir->DateFct.' ';
} else {
$date = new Zend_Date($dir->DateFct,'yyyy-MM-dd');
echo $date->toString('dd/MM/yyyy');
}
}
?>
<?php $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 }?>
</td>
</tr>
<?php }?>

View File

@ -33,13 +33,16 @@
<h2><?=$this->translate("Liste des dirigeants actifs")?></h2>
<div class="paragraph">
<?php if ($this->edition) {?>
<a class="dialog" title="Ajouter un dirigeant" href="<?=$this->url(array('controller'=>'saisie','action'=>'diropcontrol','mode'=>'add','siret'=>$this->siret), null, true)?>">
<img style="vertical-align:middle;" src="/themes/default/images/interfaces/ajouter.png" /><?=$this->translate("Ajouter un dirigeant")?></a>
<?php }?>
<?php if ( count($this->dirigeants)>0 ) {?>
<table class="data">
<?php foreach ($this->dirigeants as $dir) {?>
<tr>
<td class="StyleInfoData" width="120"><?=$dir->Titre?></td>
<td class="StyleInfoData" width="200">
<td class="StyleInfoData" width="140"><?=$dir->Titre?></td>
<td class="StyleInfoData" id="<?=$dir->Id?>" width="200">
<?php if ($dir->Societe != '') { ?>
<a href="<?=$this->url(array(
'controller' => 'recherche',
@ -60,22 +63,63 @@
'dirNom' => $dir->Nom,
'dirPrenom' => $dir->Prenom,
), null, true)?>" title="<?=$this->translate("Recherche à partir du nom du dirigeant")?>">
<?=$dir->Nom.' '.$dir->Prenom?>
<?=$dir->Civilite.' '.$dir->Nom.' '.$dir->Prenom?>
</a>
<?php } ?>
</td>
<td class="StyleInfoData" width="230">
<?php if (trim($dir->NaissDate) != '' && trim($dir->NaissVille.' '.$dir->NaissDepPays) != '') { ?>
<?=$this->translate("né(e) le")?> <?=$dir->NaissDate?> à <?=$dir->NaissVille?>
<?php if (trim($dir->NaissDepPays) != '') { ?>
&nbsp;(<?=$dir->NaissDepPays?>)
<?php }?>
<?php } else if (trim($dir->NaissDate) != '') {?>
<?=$this->translate("né(e) le")?> <?=$dir->NaissDate?>
<?php } else if (trim($dir->NaissVille.' '.$dir->NaissDepPays) != '') { ?>
<?=$this->translate("né(e) à")?> <?=$dir->NaissVille?> &nbsp;(<?=$dir->NaissDepPays?>)
<?php } ?>
<td class="StyleInfoData" width="200">
<?php
$message = '';
if (trim($dir->NaissDate) != '' && trim($dir->NaissDate)!='0000-00-00') {
$date = new Zend_Date($dir->NaissDate, 'yyyy-MM-dd');
$message = $message.' '.$this->translate("le").' '.$date->toString('dd/MM/yyyy');
}
if (trim($dir->NaissVille.' '.$dir->NaissDepPays) != '') {
$message = $message.' '.$this->translate("à").' '.$dir->NaissVille;
}
if ($message!='') {
if ($dir->Civilite=='' || $dir->Civilite==null) {
$message = $this->translate("né(e)").' '.$message;
} else if ($dir->Civilite=='M') {
$message = $this->translate("né").' '.$message;
} else {
$message = $this->translate("née").' '.$message;
}
echo $message;
}
?>
</td>
<?php if ($this->edition) {?>
<td>
<a class="dialog" title="Modifier le dirigeant" href="<?=$this->url(array('controller'=>'saisie','action'=>'diropcontrol','mode'=>'edit','siret'=>$this->siret,'id'=>$dir->Id), null, true)?>">
<img src="/themes/default/images/interfaces/editer.png" /></a>
<a class="dialog" title="Supprimer le dirigeant" href="<?=$this->url(array('controller'=>'saisie','action'=>'diropcontrol','mode'=>'del','siret'=>$this->siret,'id'=>$dir->Id), null, true)?>">
<img src="/themes/default/images/interfaces/supprimer.png" /></a>
</td>
<?php if (empty($this->AutrePage) && $this->accessWorldCheck) {?>
<td>
<?php if ($dir->Societe != '') { ?>
<img style="cursor:pointer;" class="wcheck" data-url="<?=$this->url(array(
'controller'=>'worldcheck','action'=>'occurence','siren'=>$this->siren,
'dirType'=>'ORGANISATION','dirSociete'=>$dir->Societe),null,true);?>" src="/themes/default/images/worldcheck/wc.png"/>
<?php }?>
<?php if ($dir->Nom != '') {
$param = array(
'controller'=>'worldcheck',
'action'=>'occurence',
'siren'=>$this->siren,
'dirType'=>'INDIVIDUAL',
'dirNom'=>$dir->Nom,
'dirPrenom'=>$dir->Prenom,
);
?>
<img style="cursor:pointer;" class="wcheck" data-url="<?=$this->url($param,null,true);?>" src="/themes/default/images/worldcheck/wc.png"/>
<?php } ?>
</td>
<?php }?>
<?php }?>
</tr>
<?php } ?>
</table>
@ -93,4 +137,42 @@
<?php if (empty($this->AutrePage)){?>
<?=$this->render('cgu.phtml', $this->cgu)?>
</div>
<?php }?>
<?php }?>
<script>
$('img.wcheck').each(function(){
$(this).qtip({
hide: { event: 'unfocus' },
show: { solo: true, delay: 1000 },
content: {
button: true,
title: 'WorlCheck',
text: "Chargement...",
ajax: { url: $(this).data('url') } },
position: { my: 'right center', at: 'left center' }
});
});
$('a.dialog').on('click', function(){
var href = $(this).attr('href');
if (href!='#') {
var title = $(this).attr('title');
var dialogOpts = {
bgiframe: true,
title: title,
width: 600,
height: 550,
modal: true,
open: function(event, ui) {
$(this).html('Chargement...');
$(this).load(href);
},
buttons: {
Quitter: function() { $(this).dialog('close'); }
},
close: function() { $('#dialog').remove(); }
};
$('<div id="dialog"></div>').dialog(dialogOpts);
return false;
}
});
</script>

View File

@ -49,7 +49,7 @@
</table>
</form>
</div>
<script type="text/javascript" src="/libs/form/jquery.form.js"></script>
<script type="text/javascript" src="/libs/form/jquery.form.min.js"/>
<script>
$('#uploadForm').ajaxForm({
beforeSubmit: function() {

View File

@ -1,8 +1,8 @@
<?php if (empty($this->AutrePage)):?>
<?php if ( empty($this->AutrePage) ) {?>
<div id="center">
<?php endif;?>
<?php }?>
<?php if (empty($this->AutrePage)):?>
<?php if ( empty($this->AutrePage) ) {?>
<h1>INDISCORE©</h1>
<div class="paragraph">
<table>
@ -24,7 +24,7 @@
</tr>
<?php } ?>
<tr><td colspan="3">&nbsp;</td></tr>
<?php if ($this->edition) {?>
<?php if ( $this->edition && empty($this->AutrePage) ) {?>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib"></td>
@ -33,94 +33,101 @@
</td>
</tr>
<?php }?>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">&nbsp;</td>
<td width="350" class="StyleInfoData">
<a href=<?=$this->url(array('controller'=>'evaluation', 'action'=>'scoreshisto', 'siret' => $this->siret)); ?>>
<?=$this->translate("Consulter l'historique des IndiScore");?></a>
</td>
</tr>
</table>
</div>
<?php endif;?>
<?php }?>
<h2>Dénomination sociale & coordonnées</h2>
<div class="paragraph">
<table>
<tr>
<td width="30"></td>
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
<td width="350" class="StyleInfoData">
<?php
echo $this->indiscore->Nom;
if (!empty($this->indiscore->Nom2)) {
echo '<br/>'.$this->indiscore->Nom2;
}
?>
</tr>
<tr>
<td width="30"></td>
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
<td width="350" class="StyleInfoData">
<?php
$titre='';
if ($this->indiscore->Enseigne!='' && $this->indiscore->Sigle!='') {
$titre = 'Enseigne / Sigle'; $lib = $this->indiscore->Enseigne.' / '.$this->indiscore->Sigle;
} elseif ($this->indiscore->Enseigne!='' && $this->indiscore->Sigle=='') {
$titre = 'Enseigne'; $lib = $this->indiscore->Enseigne;
} elseif ($this->indiscore->Enseigne=='' && $this->indiscore->Sigle!='') {
$titre = 'Sigle'; $lib = $this->indiscore->Sigle;
}
echo $this->indiscore->Nom;
if (!empty($this->indiscore->Nom2)) {
echo '<br/>'.$this->indiscore->Nom2;
}
?>
</tr>
if (!empty($titre)) {
?>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib"><?=$titre?></td>
<td width="350" class="StyleInfoData"><?=$lib?></td>
</tr>
<?php } ?>
<tr>
<td width="30"></td>
<td width="200" class="StyleInfoLib">Forme juridique</td>
<td width="350" class="StyleInfoData">
<?=$this->indiscore->FJ_lib?>
</td>
</tr>
<tr>
<td width="30"></td>
<td width="200" class="StyleInfoLib">Date de création de l'entreprise</td>
<td width="350" class="StyleInfoData">
<?php $date = new Zend_Date($this->indiscore->DateCreaEn, 'yyyyMMdd');?>
<?=$date->toString('dd/MM/yyyy')?>
</td>
</tr>
<tr>
<td width="30"></td>
<td width="200" class="StyleInfoLib">Adresse</td>
<td width="350" class="StyleInfoData">
<?=$this->indiscore->Adresse?><br/>
<?php if ($this->indiscore->Adresse2<>'') echo $this->indiscore->Adresse2.'<br/>';?>
<?=$this->indiscore->CP?>&nbsp;<?=$this->indiscore->Ville?>
</td>
</tr>
<tr>
<td width="30"></td>
<td width="200" class="StyleInfoLib">Téléphone</td>
<td width="350" class="StyleInfoData">
<?=$this->indiscore->Tel?>
</td>
</tr>
<?php if ($this->surveillance) {?>
<tr>
<td width="30"></td>
<td colspan="2">
<?=$this->action('infos','surveillance', null, array(
'source' => 'score',
'siret' => $this->siret
));?>
</td>
</tr>
<?php }?>
<?php
$titre='';
if ($this->indiscore->Enseigne!='' && $this->indiscore->Sigle!='') {
$titre = 'Enseigne / Sigle'; $lib = $this->indiscore->Enseigne.' / '.$this->indiscore->Sigle;
} elseif ($this->indiscore->Enseigne!='' && $this->indiscore->Sigle=='') {
$titre = 'Enseigne'; $lib = $this->indiscore->Enseigne;
} elseif ($this->indiscore->Enseigne=='' && $this->indiscore->Sigle!='') {
$titre = 'Sigle'; $lib = $this->indiscore->Sigle;
}?>
<?php if ($this->aviscredit) {?>
<tr>
<td width="30"></td>
<td colspan="2">
<a href="<?=$this->url(array('controller'=>'evaluation', 'action'=>'aviscredit', 'siret' => $this->siret))?>">
Saisir votre demande d'avis credit personnalisé</a>
</td>
</tr>
<?php }?>
<?php if ( !empty($titre) ) {?>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib"><?=$titre?></td>
<td width="350" class="StyleInfoData"><?=$lib?></td>
</tr>
<?php } ?>
<tr>
<td width="30"></td>
<td width="200" class="StyleInfoLib">Forme juridique</td>
<td width="350" class="StyleInfoData">
<?=$this->indiscore->FJ_lib?>
</td>
</tr>
<tr>
<td width="30"></td>
<td width="200" class="StyleInfoLib">Date de création de l'entreprise</td>
<td width="350" class="StyleInfoData">
<?php $date = new Zend_Date($this->indiscore->DateCreaEn, 'yyyyMMdd');?>
<?=$date->toString('dd/MM/yyyy')?>
</td>
</tr>
<tr>
<td width="30"></td>
<td width="200" class="StyleInfoLib">Adresse</td>
<td width="350" class="StyleInfoData">
<?=$this->indiscore->Adresse?><br/>
<?php if ($this->indiscore->Adresse2<>'') echo $this->indiscore->Adresse2.'<br/>';?>
<?=$this->indiscore->CP?>&nbsp;<?=$this->indiscore->Ville?>
</td>
</tr>
<tr>
<td width="30"></td>
<td width="200" class="StyleInfoLib">Téléphone</td>
<td width="350" class="StyleInfoData">
<?=$this->indiscore->Tel?>
</td>
</tr>
<?php if ( $this->surveillance && empty($this->AutrePage) ) {?>
<tr>
<td width="30"></td>
<td colspan="2">
<?=$this->action('infos','surveillance', null, array(
'source' => 'score',
'siret' => $this->siret
));?>
</td>
</tr>
<?php }?>
<?php if ( $this->aviscredit && empty($this->AutrePage) ) {?>
<tr>
<td width="30"></td>
<td colspan="2">
<a href="<?=$this->url(array('controller'=>'evaluation', 'action'=>'aviscredit', 'siret' => $this->siret))?>">
Saisir votre demande d'avis credit personnalisé</a>
</td>
</tr>
<?php }?>
</table>
</div>
@ -131,7 +138,6 @@
<td width="30">&nbsp;</td>
<td width="550" colspan="2" class="StyleInfoData">
L'&eacute;valuation indiScore&copy; est en partie basée sur les points notables suivants :<br/>
<h3><u>Conformit&eacute; l&eacute;gale :</u></h3>
<div class="stats gradiant_pic">
<ul>
@ -178,7 +184,7 @@
</tr>
<?php $millesimeMax = date('Ymd', mktime(0, 0, 0, date('m'), date('d'), date('Y')-2));?>
<?php if($this->indiscore->NbBilansScore > 0 && $this->indiscore->Bilans->item[0]->Millesime >= $millesimeMax):?>
<?php if($this->indiscore->NbBilansScore > 0 && $this->indiscore->Bilans->item[0]->Millesime >= $millesimeMax) {?>
<tr>
<td width="30">&nbsp;</td>
@ -201,7 +207,7 @@
</td>
</tr>
<?php else:?>
<?php } else {?>
<tr>
<td width="30">&nbsp;</td>
@ -216,7 +222,7 @@
</td>
</tr>
<?php endif;?>
<?php }?>
</table>
</div>
@ -280,7 +286,7 @@
<?php if (empty($this->AutrePage)):?>
<?php if ( empty($this->AutrePage) ) {?>
<?=$this->render('cgu.phtml', $this->cgu);?>
</div>
<?php endif;?>
<?php }?>

View File

@ -0,0 +1,64 @@
<div id="center">
<h1><?=$this->translate('HISTORIQUE INDISCORE')?></h1>
<div class="paragraph">
<table>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib"><?=$this->translate('Numé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>
</table>
</div>
<h2><?=$this->translate('Historique des scores')?></h2>
<?php if ( count($this->scores)> 0 ) {?>
<div class="paragraph">
<table id="synthese">
<thead>
<tr class="head">
<th align="center"><?=$this->translate('Date')?></td>
<th align="center"><?=$this->translate('IndiScore')?></td>
<th><?=$this->translate('Motif du changement')?></td>
</tr>
</thead>
<tbody>
<?php foreach($this->scores as $score) {?>
<tr>
<td align="center">
<?php $date = new Zend_Date($score->date, 'yyyy-MM-dd');?>
<?=$date->toString('dd/MM/yyyy')?>
</td>
<td align="center"><?=$score->value?> </td>
<td><?=$score->motif?></td>
</tr>
</tbody>
<?php }?>
</table>
</div>
<div class="paragraph">
<?php if ( $this->graph ) {?>
<img src="/fichier/imgcache/<?=$this->graph?>">
<?php } else {?>
<b><?=$this->translate('Impossible de générer le graphique')?></b>
<?php }?>
</div>
<?php } else {?>
<div class="paragraph">
<?=$this->translate("Aucune information sur l'historique disponible.")?>
</div>
<?php }?>
<?=$this->render('cgu.phtml', $this->cgu)?>
</div>

View File

@ -0,0 +1,127 @@
<div id="center">
<h1><?=$this->translate('HISTORIQUE').' '.strtoupper($this->types[$this->type]);?></h1>
<div class="paragraph">
<table>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib"><?=$this->translate('Numé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>
</table>
</div>
<h2><?=$this->translate('Historique des scores')?></h2>
<div class="paragraph" style="text-align: right;">
<select name="type">
<?php foreach($this->types as $key=>$val) {?>
<?php $selected = ($key == $this->type)?'selected':'';?>
<option value="<?=$this->url(array('siret'=>$this->siret, 'id'=>$this->id, 'type'=>$key))?>" <?=$selected; ?>><?=$val ?></option>
<?php }?>
</select>
<script>
$('select[name=type]').change(function(e){
window.location = $(this).val();
});
</script>
</div>
<?php if ( count($this->scores)> 0 ) {?>
<?php $bornes = $this->bornes[$this->type];?>
<div class="paragraph">
<table id="synthese">
<thead>
<tr class="head">
<th align="center" style="cursor:pointer;" onclick=sortTable(0)><?=$this->translate('Date')?> &#8593;&#8595;</th>
<th align="center" style="cursor:pointer;" onclick=sortTable(1)><?=$this->types[$this->type]?> &#8593;&#8595;</th>
<th align="center" style="cursor:pointer;" onclick=sortTable(2)><?=$this->translate('Encours')?> (K&euro;) &#8593;&#8595;</th>
<th><?=$this->translate('Motif du changement')?></th>
</tr>
</thead>
<tbody>
<?php foreach($this->scores as $score) {?>
<tr>
<td align="center">
<?php $date = new Zend_Date($score->date, 'yyyy-MM-dd');?>
<?=$date->toString('dd/MM/yyyy')?>
</td>
<td align="center"><?=$score->value?> </td>
<td align="center"><?=$score->encours?> </td>
<td><?=$score->motif?></td>
</tr>
<?php }?>
</tbody>
</table>
</div>
<script>
$(document).ready(function(){
$("#synthese tbody tr").each(function(){
if ($(this).find('td:eq(1)').text() < <?=$bornes['rouge']?>) {
$(this).find('td:eq(1)').css("color", "red");
} else if ($(this).find('td:eq(1)').text() < <?=$bornes['orange']?>) {
$(this).find('td:eq(1)').css("color", "orange");
} else {
$(this).find('td:eq(1)').css("color", "green");
}
});
});
function sortTable(column){
var t;
if (!$("thead tr th").attr("class")) {
t = 1;
$("thead tr th").addClass("DESC");
} else if ($("thead tr th").attr("class")=='DESC') {
t = -1;
$("thead tr th").removeClass("DESC")
}
var rows = $('#synthese tbody tr').get();
rows.sort(function(a, b) {
var A = $(a).children('td').eq(column).text();
var B = $(b).children('td').eq(column).text();
if (column===0)
{
A = $.datepicker.parseDate('dd/mm/yy', $.trim(A));
B = $.datepicker.parseDate('dd/mm/yy', $.trim(B));
}
if((A - B) < 0) {
return -1*t;
}
if((A - B) > 0) {
return t;
}
return 0;
});
$.each(rows, function(index, row) {
$('#synthese').children('tbody').append(row);
});
}
</script>
<div class="paragraph">
<?php if ( $this->graph ) {?>
<img src="/fichier/imgcache/<?=$this->graph?>" usemap="#graphMap">
<map name="graphMap">
<?=$this->graphMap;?>
</map>
<?php } else {?>
<b><?=$this->translate('Impossible de générer le graphique')?></b>
<?php }?>
</div>
<?php } else {?>
<div class="paragraph">
<?=$this->translate("Aucune information sur l'historique disponible.")?>
</div>
<?php }?>
<?=$this->render('cgu.phtml', $this->cgu)?>
</div>

View File

@ -5,42 +5,52 @@
<?php if (empty($this->AutrePage)) {?>
<h1>ÉLÉMENTS FINANCIERS - BILANS</h1>
<div class="paragraph">
<table class="identite">
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">
Num&eacute;ro identifiant Siren
</td>
<td width="350" class="StyleInfoData">
<?php echo $this->SirenTexte($this->siren);?>
</td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
<td width="350" class="StyleInfoData"><?php echo $this->raisonSociale;?></td>
</tr>
<?php if (isset($this->tabResultActif) && isset($this->tabResultPassif) && isset($this->tabResultSig)){?>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Type de bilans</td>
<td width="350" class="StyleInfoData">
<?php if ($this->nbBilanC==0){?>
Réel normal ou Simplifié
<?php } elseif ($this->nbBilanN==0){?>
Consolidé
<?php } else {?>
<form>
<select name="typeBilan">
<option value="N"<?=($this->typeBilan=='N')? ' selected' : '';?>>Réel normal ou Simplifié</option>
<option value="C"<?=($this->typeBilan=='C')? ' selected' : '';?>>Consolidé</option>
</select>
</form>
<?php }?>
</td>
</tr>
<?php }?>
</table>
<table class="identite">
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">
Num&eacute;ro identifiant Siren
</td>
<td width="350" class="StyleInfoData">
<?php echo $this->SirenTexte($this->siren);?>
</td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
<td width="350" class="StyleInfoData"><?php echo $this->raisonSociale;?></td>
</tr>
<?php if (isset($this->tabResultActif) && isset($this->tabResultPassif) && isset($this->tabResultSig)){?>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Type de bilans</td>
<td width="350" class="StyleInfoData">
<?php if ($this->nbBilanC==0){?>
Réel normal ou Simplifié
<?php } elseif ($this->nbBilanN==0){?>
Consolidé
<?php } else {?>
<form>
<select name="typeBilan">
<option value="N"<?=($this->typeBilan=='N')? ' selected' : '';?>>Réel normal ou Simplifié</option>
<option value="C"<?=($this->typeBilan=='C')? ' selected' : '';?>>Consolidé</option>
</select>
</form>
<?php }?>
</td>
</tr>
<?php }?>
</table>
<?php if ( empty($this->AutrePage) ) {?>
<div id="liasse-check-result" class="ui-state-highlight ui-corner-all" style="margin-top: 5px;">
<p><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
<a title="Cliquez ici pour vérifier l'intégration des éléments financiers"
href="<?=$this->url(array('controller'=>'finance','action'=>'liasseinfos','siren'=>$this->siren), null, true)?>"
id="liasse-check">Vérifier la disponibilité des derniers états financiers au Greffe.</a></p>
</div>
<?php }?>
</div>
<?php }?>
@ -195,10 +205,10 @@
<?php }?>
<?php if (empty($this->AutrePage)) {?>
<?php if ( empty($this->AutrePage) ) {?>
<?=$this->render('cgu.phtml', $this->cgu)?>
<?php }?>
<?php if (empty($this->AutrePage)) {?>
<?php if ( empty($this->AutrePage) ) {?>
</div>
<?php }?>

View File

@ -13,7 +13,7 @@
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
</tr>
<?php if($this->haveLiasse):?>
<?php if ( $this->haveLiasse ) {?>
<form method="post" action="<?=$this->url(array('controller'=>'finance','action'=>'liasse','siret'=>$this->siret,'id'=>$this->id))?>">
<tr>
<td width="30">&nbsp;</td>
@ -44,13 +44,13 @@
</td>
</tr>
</form>
<?php endif;?>
<?php }?>
<?php if ($this->edition) {?>
<tr>
<td width="30">&nbsp;</td>
<td colspan="2">
<?php if ($this->haveLiasse) {?>
<?php if ( $this->haveLiasse ) {?>
<a href="<?=$this->url(array('controller'=>'saisie', 'action'=>'liasse', 'siret'=>$this->siren, 'selection'=>$this->date.':'.$this->champType))?>">
Corriger le bilan sélectionné</a><br/> ou <?php }?>
Saisir une nouvelle liasse au format
@ -110,6 +110,16 @@
</tr>
<?php }?>
</table>
<?php if ( empty($this->AutrePage) && $this->haveLiasse) {?>
<div id="liasse-check-result" class="ui-state-highlight ui-corner-all" style="margin-top: 5px;">
<p><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
<a title="Cliquez ici pour vérifier l'intégration des éléments financiers"
href="<?=$this->url(array('controller'=>'finance','action'=>'liasseinfos','siren'=>$this->siren), null, true)?>"
id="liasse-check">Vérifier la disponibilité des derniers états financiers au Greffe.</a></p>
</div>
<?php }?>
</div>
<div class="paragraph">

View File

@ -2505,46 +2505,31 @@
<td align="right" class="amount-value"><?php echo $this->liasse['VM2'];?></td>
</tr>
<tr>
<td>T.V.A.</td>
<td colspan="3">T.V.A.</td>
<td align="center">VB</td>
<td align="right" class="amount-value"><?php echo $this->liasse['VB'];?></td>
<td></td>
<td align="right" class="amount-value"><?php echo $this->liasse['VB1'];?></td>
<td></td>
<td align="right" class="amount-value"><?php echo $this->liasse['VB2'];?></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Autres impôts, taxes et versem. assim.</td>
<td colspan="3">Autres impôts, taxes et versem. assim.</td>
<td align="center">VN</td>
<td align="right" class="amount-value"><?php echo $this->liasse['VN'];?></td>
<td></td>
<td align="right" class="amount-value"><?php echo $this->liasse['VN1'];?></td>
<td></td>
<td align="right" class="amount-value"><?php echo $this->liasse['VN2'];?></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Divers</td>
<td colspan="3">Divers</td>
<td align="center">VP</td>
<td align="right" class="amount-value"><?php echo $this->liasse['VP'];?></td>
<td></td>
<td align="right" class="amount-value"><?php echo $this->liasse['VP1'];?></td>
<td></td>
<td align="right" class="amount-value"><?php echo $this->liasse['VP2'];?></td>
<td></td>
<td></td>
</tr>
<tr>
<td align="center" colspan="3"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td colspan="3">Groupes et associés</td>

View File

@ -0,0 +1,18 @@
<p><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
<?php if ( $this->DateClotureIso ) { ?>
Le dernier millésime déposé au greffe est le <?=$this->DateCloture?>.
<?php if ( $this->SaisieDateIso && $this->SaisieCode == 0 ) {?>
Le bilan a été saisie le <?=$this->SaisieDate?>.
<?php } else {?>
Le bilan n'a pas été saisie par la source officielle (<i><?=$this->SaisieLabel?>)</i>.
<br/>Contactez le support (support@scores-decisions.com) pour une demande de mise à jour.
(Soumis à facturation selon vos accords contractuels)
<?php }?>
<?php } else {?>
<?=$this->msg?>
<?php }?>
</p>

View File

@ -1,8 +1,8 @@
<?php if (empty($this->AutrePage)):?>
<?php if ( empty($this->AutrePage) ) {?>
<div id="center">
<?php endif;?>
<?php }?>
<?php if (empty($this->AutrePage)):?>
<?php if ( empty($this->AutrePage) ) {?>
<h1>RATIOS</h1>
<div class="paragraph">
<table class="identite">
@ -21,7 +21,7 @@
<td class="StyleInfoLib" width="200">Secteur d'activité </td>
<td class="StyleInfoData" width="340"><?=$this->naf?> - <?=$this->nafLib?></td>
</tr>
<?php if (isset($this->tabResult)){?>
<?php if ( isset($this->tabResult) ) {?>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Type de bilans</td>
@ -67,8 +67,18 @@
</tr>
<?php }?>
</table>
<?php if ( empty($this->AutrePage) && isset($this->tabResult) ) {?>
<div id="liasse-check-result" class="ui-state-highlight ui-corner-all" style="margin-top: 5px;">
<p><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
<a title="Cliquez ici pour vérifier l'intégration des éléments financiers"
href="<?=$this->url(array('controller'=>'finance','action'=>'liasseinfos','siren'=>$this->siren), null, true)?>"
id="liasse-check">Vérifier la disponibilité des derniers états financiers au Greffe.</a></p>
</div>
<?php endif;?>
<?php }?>
</div>
<?php }?>
<div class="paragraph">
@ -145,7 +155,7 @@
</div>
<?php if (empty($this->AutrePage)):?>
<?php if ( empty($this->AutrePage) ) {?>
<?=$this->render('cgu.phtml', $this->cgu)?>
</div>
<?php endif;?>
<?php }?>

View File

@ -1,37 +0,0 @@
<div id="paragraph">
<h2>Synthese</h2>
<?php if(!empty($this->annees)):?>
<h2>Eléments Financiers</h2>
<?php $i = 0;?>
<table id="synthese">
<tr>
<th></th>
<?php foreach ($this->annees as $annee => $duree):?>
<th class="date" colspan="2"><?php echo $annee;?><br /><?php echo $duree;?> Mois</th>
<?php endforeach;?>
</tr>
<?php foreach ($this->synthese as $champ => $element):?>
<?php $nom = explode(':', $champ);?>
<tr>
<td style="cursor:help" class="tooltip" title="<?php echo $this->commentaires[$nom[0]]['commentaires'];?>" class="head">
<b><?php echo $nom[1];?></b>
</td>
<?php foreach ($element as $item):?>
<td><?php echo number_format($item['Valeur'], 0, '', ' ');?> K€</td>
<td><?php echo $item['percent'];?> %</td>
<?php endforeach;?>
</tr>
<?php $i++;?>
<?php endforeach;?>
</table>
<?php else :?>
<table>
<tr>
<td width="30"></td>
<td colspan="2" valign="top" width="350" class="StyleInfoData">Aucune synthése diponnible.</td>
</tr>
</table>
<?php endif;?>
<?=$this->render('cgu.phtml', $this->cgu)?>
</div>

View File

@ -41,7 +41,7 @@ Votre fichier : <input type="file" name="fichier" />
</form>
<div id="progressbar"></div>
<div id="uploadOutput"></div>
<script type="text/javascript" src="/libs/form/jquery.form.js" />
<script type="text/javascript" src="/libs/form/jquery.form.min.js"/>
<script>
$('#uploadForm').ajaxForm({
beforeSubmit: function() {

View File

@ -1,6 +1,6 @@
<?php if (empty($this->AutrePage)):?>
<?php if ( empty($this->AutrePage) ) {?>
<div id="center">
<?php endif;?>
<?php }?>
<?php if (empty($this->AutrePage)){?>
<h1>SYNTHÈSE</h1>
@ -41,6 +41,16 @@
</tr>
<?php }?>
</table>
<?php if ( empty($this->AutrePage) ) {?>
<div id="liasse-check-result" class="ui-state-highlight ui-corner-all" style="margin-top: 5px;">
<p><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
<a title="Cliquez ici pour vérifier l'intégration des éléments financiers"
href="<?=$this->url(array('controller'=>'finance','action'=>'liasseinfos','siren'=>$this->siren), null, true)?>"
id="liasse-check">Vérifier la disponibilité des derniers états financiers au Greffe.</a></p>
</div>
<?php }?>
</div>
<?php }?>
@ -117,7 +127,7 @@ Aucun bilan disponible.
<?php }?>
<?php if (empty($this->AutrePage)):?>
<?php if ( empty($this->AutrePage) ) {?>
<?=$this->render('cgu.phtml', $this->cgu)?>
</div>
<?php endif;?>
<?php }?>

View File

@ -13,6 +13,6 @@ pour en savoir plus cliquez-ici</a></span>
<?=$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"/>
<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

@ -114,8 +114,8 @@ if ($item->deleted) {
<?php if( $this->edition ) {?>
<div style="float:right;">
<a class="dialog" title="Modifier le contact" href="<?=$this->url(array('controller'=>'saisie','action'=>'contact','mode'=>'edit','id'=>$item->id), null, true)?>"><img src="/themes/default/images/interfaces/editer.png" /></a>
<a class="dialog" title="Supprimer le contact" href="<?=$this->url(array('controller'=>'saisie','action'=>'contact','mode'=>'delete','id'=>$item->id), null, true)?>"><img src="/themes/default/images/interfaces/supprimer.png" /></a>
<a class="dialog" title="Modifier le contact" href="<?=$this->url(array('controller'=>'saisie','action'=>'contact', 'siret'=>$this->siret, 'mode'=>'edit','id'=>$item->id), null, true)?>"><img src="/themes/default/images/interfaces/editer.png" /></a>
<a class="dialog" title="Supprimer le contact" href="<?=$this->url(array('controller'=>'saisie','action'=>'contact', 'siret'=>$this->siret, 'mode'=>'delete','id'=>$item->id), null, true)?>"><img src="/themes/default/images/interfaces/supprimer.png" /></a>
</div>
<?php }?>
</td>

View File

@ -0,0 +1,11 @@
<?php if ( isset($this->page) ) {?>
<?=$this->page?>
<?php } else {?>
<div id="center" style="padding:0;">
<iframe src="<?=$this->corporamaUrl?>" width="100%" height="1000px" style="border:0;overflow-x:hidden;"></iframe>
</div>
<?php }?>

View File

@ -42,90 +42,79 @@
</table>
</div>
<h2>&Eacute;tablissements</h2>
<?php if (count($this->etabs)>0) { ?>
<div class="paragraph">
<table style="width:100%;">
<tr>
<td width="30">&nbsp;</td>
<td colspan="2" width="550" class="StyleInfoData">
<table>
<table class="data">
<?php foreach ($this->etabs as $etab) { ?>
<?php
if ($etab->Siege==1) $type = 'siège ';
else $type = 'établ. ';
if ($etab->Actif==1) $type.= 'actif';
else $type.= 'inactif';
if(intval($etab->Nic)==0 || intval($etab->Nic)>=99990) $type.=' provisoire';
$href = $this->url(array(
'controller' => 'identite',
'action' => 'fiche',
'siret' => $this->siren.$etab->Nic,
'id' => $this->id,
));
?>
<tr>
<td class="StyleInfoData" width="50" valign="top">
<b><a title="<?=$this->translate("Voir la fiche d'identité")?>" href="<?=$href?>"><?=$etab->Nic?></a></b>
</td>
<td class="StyleInfoData" width="70" valign="top"><?=$type?></td>
<td class="StyleInfoData" width="250">
<?php
if ($etab->Enseigne!='') {
?>
<b><?=$etab->Enseigne?></b><br/>
<?php
if (count($this->etabs)>0)
{
foreach ($this->etabs as $etab)
{
if ($etab->Siege==1) $type = 'siège ';
else $type = 'établ. ';
if ($etab->Actif==1) $type.= 'actif';
else $type.= 'inactif';
if(intval($etab->Nic)==0 || intval($etab->Nic)>=99990) $type.=' provisoire';
$href = $this->url(array(
'controller' => 'identite',
'action' => 'fiche',
'siret' => $this->siren.$etab->Nic,
'id' => $this->id,
));
?>
<tr>
<td class="StyleInfoData" width="30">
<b><a title="<?=$this->translate("Voir la fiche d'identité")?>" href="<?=$href?>"><?=$etab->Nic?></a></b>
</td>
<td class="StyleInfoData" width="80"><?=$type?></td>
<td class="StyleInfoData" width="190">
<?php
if ($etab->Enseigne!='') {
?>
<b><?=$etab->Enseigne?></b><br/>
<?php
}
?>
<?=$etab->Adresse?><br/>
<?php
if ($etab->Adresse2!='') {?>
<?=$etab->Adresse2?><br/>
<?php
}
?>
<b><?=$etab->CP?> <?=$etab->Ville?></b>
<?php
if ($etab->Tel!='') echo '<br/><i>T&eacute;l : '.$etab->Tel.'</i>&nbsp;&nbsp;&nbsp;';
if ($etab->Fax!='') echo '<br/><i>Fax : '.$etab->Fax.'</i>';
?>
</td>
<td class="StyleInfoData" width="260">
<?=$etab->NafEtab.' : '.$etab->NafEtabLib?>
<?php
if ($etab->Actif==1 && !empty($etab->EffEtTrLib) && !empty($etab->EffEtTr) && !in_array($etab->EffEtTr, array('N/C', 'NN', 0)) ){
?>
<br/><i><?=$etab->EffEtTrLib?></i>
<?php
}
?>
</td>
</tr>
<?php
}
}
?>
</table>
<?=$etab->Adresse?><br/>
<?php
if ($etab->Adresse2!='') {?>
<?=$etab->Adresse2?><br/>
<?php
}
?>
<b><?=$etab->CP?> <?=$etab->Ville?></b>
<?php
if ($etab->Tel!='') echo '<br/><i>T&eacute;l : '.$etab->Tel.'</i>&nbsp;&nbsp;&nbsp;';
if ($etab->Fax!='') echo '<br/><i>Fax : '.$etab->Fax.'</i>';
?>
</td>
</tr>
<?php if($this->hasPrefCarte){?>
<tr>
<td align="center" colspan="3">
<?=$this->action('carte', 'identite', null, array('siret'=>$this->siret, 'id'=>$this->id, 'actif'=>$this->actif) )?>
</td>
</tr>
<?php }?>
<td class="StyleInfoData" valign="top">
<?=$etab->NafEtab.' : '.$etab->NafEtabLib?>
<?php
if ($etab->Actif==1 && !empty($etab->EffEtTrLib) && !empty($etab->EffEtTr) && !in_array($etab->EffEtTr, array('N/C', 'NN', 0)) ){
?>
<br/><i><?=$etab->EffEtTrLib?></i>
<?php
}
?>
</td>
</tr>
<?php } ?>
</table>
</div>
<?php if (empty($this->AutrePage)):?>
<?php if($this->hasPrefCarte){?>
<div class="paragraph">
<?=$this->action('carte', 'identite', null, array('siret'=>$this->siret, 'id'=>$this->id, 'actif'=>$this->actif) )?>
</div>
<?php }?>
<?php } ?>
<?php if ( empty($this->AutrePage) ) {?>
<?=$this->render('cgu.phtml', $this->cgu)?>
<?php endif;?>
<?php }?>
</div>

View File

@ -1,4 +1,6 @@
<?php if ( empty($this->AutrePage) ) {?>
<div id="center">
<?php }?>
<h1>LISTE DES &Eacute;V&Eacute;NEMENTS</h1>
<div class="paragraph">
<table class="identite">
@ -23,17 +25,26 @@
<h2>&Eacute;v&eacute;nements INSEE</h2>
<?php if ( count($this->evens)==0 ) { ?>
<?php if ( empty($this->AutrePage) ) {?>
<div class="paragraph">
<table class="data">
<tr>
<td class="StyleInfoData" width="580">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Aucun &eacute;v&egrave;nement n'est pr&eacute;sent dans notre base
</td>
</tr>
</table>
<?php if ( $this->Entreprise == 1 ) {?>
Liste des événements de l'entreprise. <a href="<?=$this->url(array(
'controller'=>'identite',
'action'=>'evenements',
'siret'=>$this->siret,
'nic'=>$this->Nic), null, true)?>">Afficher uniquement les événements de l'établissement.</a>
<?php } else {?>
Liste des événements uniquement sur l'établissement <?=$this->Nic?>.
<a href="<?=$this->url(array(
'controller'=>'identite',
'action'=>'evenements',
'siret'=>$this->siret), null, true)?>">Afficher tous les événements de l'entreprise.</a>
<?php }?>
</div>
<?php }?>
<?php if ( count($this->evens)==0 ) { ?>
<div class="paragraph">Aucun &eacute;v&egrave;nement n'est pr&eacute;sent dans notre base</div>
<?php } else { ?>
<div class="paragraph">
<table class="data">
@ -76,7 +87,7 @@
</table>
</div>
<?php if ($this->PageTotal>1) {?>
<?php if ( $this->PageTotal>1 ) {?>
<div class="paragraph">
<div class="pagination clearfix">
<a class="first" href="<?=$this->url(array('page'=>1))?>">&laquo;</a>
@ -90,7 +101,7 @@
<?php }?>
<?php if (empty($this->AutrePage)) {?>
<?php if ( empty($this->AutrePage) ) {?>
<?=$this->render('cgu.phtml', $this->cgu)?>
</div>
<?php }?>

View File

@ -141,6 +141,11 @@ echo $this->partial('identite/fiche-item.phtml', $this->dBlock['EffectifEtab']);
<?=$this->action('geo', 'identite', null, array('infos' => $this->infos));?>
<?=$this->action('news', 'identite');?>
<div class="paragraph" style="clear:both;">
<a href="<?=$this->url(array('controller'=>'identite','action'=>'corporama', 'siret'=>$this->siret), null, true)?>" title="Toute la puissance des réseaux sociaux professionnels pour identifier rapidement un interlocuteur et accéder à ses coordonnées">
Actualités de la société <?=$this->raisonSociale?> sur le Web</a>
</div>
<?php if ( !empty($this->surveillance) ) {?>
<div class="paragraph" style="clear:both;">
<?=$surveillances?>

View File

@ -1,8 +1,10 @@
<?php if (count($this->docs)==0) {?>
Aucun document.
<?php } else {?>
<?php foreach ( $this->docs as $doc ) {?>
<?php } else {
$limit = 3;
foreach ( $this->docs as $key=>$doc ) {
$class = ($key<$limit)?'first':'all';?>
<div class="<?=$class?>" id="<?=$key ?>">
<a target="_blank" href="/fichier/groupes/<?=$doc->url?>" id="<?=$doc->date?>" class="lienDocDate"><?=$doc->label?></a>
<?php if ($this->edition) {?>
<a class="dialog" title="Supprimer le document" href="<?=$this->url(array('controller'=>'saisie','action'=>'liendoc','mode'=>'delete','id'=>$doc->id), null, true)?>">
@ -10,6 +12,29 @@ Aucun document.
</a>
<?php }?>
<br/>
</div>
<?php }?>
<div class="affiche" id="show" style="cursor:pointer;">Afficher tous les documents</div><br/>
<script>
$(document).ready(function(){
if (<?=$key?> >2) {
$("div.affiche").show();
} else {
$("div.affiche").hide();
}
$("div.all").hide();
});
<?php }?>
$("div.affiche").on("click", function(){
if ($(this).attr("id")=="show") {
$(this).attr("id", "hide");
$(this).text("Afficher les <?=$limit?> derniers documents");
$("div.all").show();
} else {
$(this).attr("id", "show");
$(this).text("Afficher tous les documents");
$("div.all").hide();
}
});
</script>
<?php }?>

View File

@ -1,9 +1,9 @@
<div>
<?php if ($this->result->PpPm == 'PP') {?>
<?php if (!empty($this->result->civilite)) {?>
<strong>
<?php if (!empty($this->result->civilite)) {?>
<?=$this->result->civilite?>&nbsp;
<?php }?>
<?php }?>
<?php if (!empty($this->result->nom)) {?>
<?=$this->result->nom?>&nbsp;
<?php }?>
@ -13,15 +13,28 @@
<?php if (!empty($this->result->nomUsage)) {?>
(<?=$this->result->nomUsage?>)&nbsp;
<?php }?>
<?php if (!empty($this->result->naissanceDate) && $this->result->naissanceDate!='0000-00-00') {?>
<br/>Née le <?=$this->result->naissanceDate?>&nbsp;
<?php }?>
<?php if (!empty($this->result->naissanceLieu)) {?>
à <?=$this->result->naissanceLieu?>&nbsp;
<?php }?>
<?php if (!empty($this->result->naissanceDeptPays)) {?>
(<?=$this->result->naissanceDeptPays?>)
<?php }?>
</strong><br/>
<?php
$message = '';
if (!empty($this->result->naissanceDate) && $this->result->naissanceDate!='0000-00-00') {
$date = new Zend_Date($this->result->naissanceDate, 'yyyy-MM-dd');
$message = $message.' '.$this->translate("le").' '.$date->toString('dd/MM/yyyy');
}
if (!empty($this->result->naissanceLieu) || !empty($this->result->naissanceDeptPays)) {
$message = $message.' '.$this->translate("à").' '.$this->result->naissanceLieu.' '.$this->result->naissanceDeptPays;
}
if ($message!='') {
if ($this->result->civilite=='' || $this->result->civilite==null) {
$message = $this->translate("Né(e)").' '.$message;
} else if ($this->result->civilite=='M') {
$message = $this->translate("Né").' '.$message;
} else {
$message = $this->translate("Née").' '.$message;
}?>
<?=$message;?>
<?php } ?>
<?php } else {?>
@ -62,6 +75,8 @@ $('a.dialogFiche').on('click', function(e){
</script>
<?php }?>
<?php if ( $this->idFiche>=1000 ) {?>
<div><b>Coordonnées : </b></div>
<div><?=($this->result->adresseNum==0) ? '' : $this->result->adresseNum . ' ' .
$this->result->adresseBtq. ' ' . $this->result->adresseCodeVoie. ' ' .
@ -82,9 +97,26 @@ else
<?=$this->result->isin;?>
</div>
<?php }?>
<?php if (count($this->result->identification->item)>0) {?>
<div><b>Identifiants nationaux</b></div>
<?php foreach ($this->result->identification->item as $id) {?>
<div><?=$id->label?> - <?=$id->num?></div>
<?php }?>
<?php }?>
<?php if ($this->result->PpPm == 'PP') {
$param = array(
'controller'=>'recherche',
'action'=>'dirigeant',
'dirNom'=>$this->result->nom,
'dirPrenom'=>$this->result->prenom,
'dirDateNaissJJ'=>$date?$date->get('dd'):'',
'dirDateNaissMM'=>$date?$date->get('MM'):'',
'dirDateNaissAAAA'=>$date?$date->get('YYYY'):''
);
?>
<br/><a href="<?=$this->url($param,null,true);?>">Lancer une recherche dirigeant</a>
<?php } ?>
<?php }?>

View File

@ -96,6 +96,37 @@
<a class="confirm" title="Fiche suppression" href="<?=$hrefSuppr; ?>">Supprimer la fiche</a>
</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' => 'liens',
'siret' => $this->siret
))?>
</td>
</tr>
<?php }?>
<?php if ($this->PP) {?>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib"></td>
<td width="350" class="StyleInfoLib">
<?php
$date = new Zend_Date($this->naissanceDate, 'YYYY-MM-dd');
$param = array(
'controller'=>'recherche',
'action'=>'dirigeant',
'dirNom'=>$this->nom,
'dirPrenom'=>$this->prenom,
'dirDateNaissJJ' =>$date?$date->get('dd'):'',
'dirDateNaissMM' =>$date?$date->get('MM'):'',
'dirDateNaissAAAA' =>$date?$date->get('YYYY'):''
); ?>
<a href="<?=$this->url($param,null,true);?>">Lancer une recherche dirigeant</a>
</td>
</tr>
<?php }?>
<?php }?>
</table>
</div>

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

@ -9,8 +9,8 @@
<?php else:?>
<script src="/libs/jcrop/jquery.Jcrop.js"></script>
<link rel="stylesheet" href="/libs/jcrop/jquery.Jcrop.css" type="text/css" />
<script src="/libs/jcrop/js/jquery.Jcrop.min.js"></script>
<link rel="stylesheet" href="/libs/jcrop/css/jquery.Jcrop.min.css" type="text/css" />
<script>
$(function(){
$('#cropbox').Jcrop({
@ -48,7 +48,7 @@ $('#crop').ajaxForm(options);
</script>
<img src="/fichier/logo/<?=$this->image?>" id="cropbox" />
<br/>
<form id="crop" name="crop"
<form id="crop" name="crop"
action="<?=$this->url(array('controller'=>'logo', 'action'=>'crop'),null, true);?>" method="post">
<input type="hidden" id="x" name="x" />
<input type="hidden" id="y" name="y" />

View File

@ -4,7 +4,7 @@
<p>Vous recevrez un email (sous 3/5 jours ouvrés) lorsque le document sera disponible.</p>
<p>Votre email : <b><?=$this->email?></b> </p>
<p>Email du compte : <b><?=$this->email?></b> </p>
<?php if ($this->emailValide===false) {?>
@ -14,6 +14,9 @@
<?php } else {?>
<div id="output">
<p><i>(Il est possible de modifier l'email après le passage de la commande)</i></p>
<form name="commande" action="<?=$this->url(array('controller'=>'pieces','action'=>'acte'),null,true)?>" method="post">
<input type="hidden" name="mode" value="<?=$this->mode?>"/>
<input type="hidden" name="siren" value="<?=$this->siren?>"/>
@ -32,10 +35,49 @@
<?php } else {?>
<?php if($this->msg) {?>
<?php if ($this->formEmail) {?>
<div id="output">
<b><?=$this->msg?></b>
<form name="commande" action="<?=$this->url(array('controller'=>'pieces','action'=>'acte'),null,true)?>" method="post">
<input type="hidden" name="mode" value="EMAIL"/>
<input type="hidden" name="refCommande" value="<?=$this->refCommande?>"/>
<div class="fieldgrp">
<label class="StyleInfoLib">Modifier l'adresse email</label>
<div class="field">
<input class="longfield" name="email" type="text" value="<?=$this->email?>" size="100"/>
</div>
</div>
</label>
</form>
</div>
<script>
$('#dialogcmd').dialog({ buttons: [
{ text: "Modifier email", click: function() {
var url = $('form[name=commande]').attr('action');
var formdata = $('form[name=commande]').serialize();
$('#dialogcmd > #output').html("Enregistrement en cours...");
$.post(url, formdata, function(data){
$('#dialogcmd > #output').html(data);
});
}
},
{ text: "Fermer", click: function() { $(this).dialog("close"); } }
] });
</script>
<?php } elseif($this->msg) {?>
<b><?=$this->msg?></b>
<?php } else {?>
<a href="<?=$this->url?>" target="_blank">Télécharger le fichier</a>
<?php }?>
<?php }?>

View File

@ -4,7 +4,7 @@
<p>Vous recevrez un email (sous 3/5 jours ouvrés) lorsque le document sera disponible.</p>
<p>Votre email : <b><?=$this->email?></b> </p>
<p>Email du compte : <b><?=$this->email?></b> </p>
<?php if ($this->emailValide===false) {?>
@ -14,6 +14,9 @@
<?php } else {?>
<div id="output">
<p><i>(Il est possible de modifier l'email après le passage de la commande)</i></p>
<form name="commande" action="<?=$this->url(array('controller'=>'pieces','action'=>'bilan'),null,true)?>" method="post">
<input type="hidden" name="mode" value="<?=$this->mode?>"/>
<input type="hidden" name="siren" value="<?=$this->siren?>"/>
@ -29,10 +32,33 @@
<?php } else {?>
<?php if($this->msg) {?>
<?=$this->msg?>
<?php if ( $this->formEmail ) {?>
<div id="output">
<b><?=$this->msg?></b>
<form name="commande" action="<?=$this->url(array('controller'=>'pieces','action'=>'bilan'),null,true)?>" method="post">
<input type="hidden" name="mode" value="EMAIL"/>
<input type="hidden" name="refCommande" value="<?=$this->refCommande?>"/>
<div class="fieldgrp">
<label class="StyleInfoLib">Modifier l'adresse email</label>
<div class="field">
<input class="longfield" name="email" type="text" value="<?=$this->email?>" size="100"/>
</div>
</div>
</label>
</form>
</div>
<?php } elseif ( $this->msg ) {?>
<b><?=$this->msg?></b>
<?php } else {?>
<a href="<?=$this->url?>" target="_blank">Télécharger le fichier</a>
<?php }?>
<?php }?>

View File

@ -1,5 +0,0 @@
<h2>Document déjà commandé</h2>
<p>
Vous avez déjà commandé ce document sous la référence
<?=$this->typeCommande?><?=$this->idCommande?>.
</p>

View File

@ -1,3 +0,0 @@
<h2>Document déjà commandé</h2>
<p>Une commande est déjà en cours, le document sera disponible
sous peu. Merci de revenir sur cette page.</p>

View File

@ -1,35 +0,0 @@
<div id="output">
<h2>Saisir une adresse email</h2>
<p>Recevoir le document directement par mail (sous 3/5 jours ouvrés)</p>
<p>Merci de préciser votre adresse email pour recevoir le document
et valider la commande.</p>
Siren : <?=$this->SirenTexte($this->siren)?>
<form name="commande" action="<?=$this->url(array(
'controller' => 'pieces',
'action' => 'sauvcmd',
), null, true)?>" method="post">
<input type="hidden" name="vue" value="<?=$this->vue?>"/>
<input type="hidden" name="idCommande" value="<?=$this->idCommande?>"/>
<input type="hidden" name="siret" value="<?=$this->siren?>"/>
<input type="hidden" name="info" value="<?=$this->info?>"/>
<input type="hidden" name="type" value="G"/>
<input type="hidden" name="ref" value="<?=$this->ref?>"/>
<label>Adresse email du destinataire</label>
<input name="emailCommande" type="text" value="<?=$this->email?>" size="40"/><br/>
<p><i>Votre commande ne sera pas validé si l'adresse email est vide.</i>
<br/><i>Après validation, patientez pour avoir votre référence de commande.</i></p>
</form>
</div>
<script type="text/javascript">
$('input[name=emailCommande]').focus();
$('form[name=commande]').submit(function(){
var email = $('input[name=emailCommande]').val();
if(!checkEmail(email)){
alert("Veuillez saisir une adresse email valide !");
return false;
} else {
return true;
}
});
</script>

View File

@ -1,98 +0,0 @@
<form name="kbis" method="post" action="<?=$this->url(array('controller'=>'pieces', 'action'=>'commande'))?>">
<input type="hidden" name="siret" value="<?=$this->partial()->view->siret?>"/>
<input type="hidden" name="op" value="kbis"/>
<div class="fieldgrp">
<div class="field">
<?php if($this->partial()->view->KbisErreurCJ){ ?>
K-Bis inexistant pour cette forme juridique
<?php } else {?>
<?php
$disable = '';
if($this->partial()->view->KbisErreurDEP){ $disable = ' disabled'; }
?>
<input class="noborder" type="radio" name="method" value="<?=$this->url(array('controller'=>'pieces', 'action'=>'kbis', 'siret'=>$this->partial()->view->siret))?>"<?=$disable?>/>
Visualiser/Télécharger le kbis
<?php if($this->partial()->view->KbisErreurDEP){ ?><br/>K-Bis en ligne indisponible pour ce département. -
Afin d'obtenir un extrait K-bis, vous pouvez contactez directement le greffe du tribunal à compétence commercial
dont vous trouverez les coordonnées <a href="<?=$this->url(array(
'controller' => 'juridique',
'action' => 'competences',
'type' => 'tri',
'siret' => $this->partial()->view->siret,
'id' => $this->partial()->view->id
))?>">ici</a> ou choisir de commander par nos services en sélectionnant les propositions ci-dessous.
<?php }?>
<br/>
<input class="noborder" type="radio" name="method" value="M" <?=$this->partial()->view->method=='M' ? 'checked' : ''?>/>Recevoir le kbis par email<br/>
<input class="noborder" type="radio" name="method" value="C" <?=$this->partial()->view->method=='C' ? 'checked' : ''?>/>Recevoir le kbis original par courrier<br/>
<?php if($this->partial()->view->KbisErreurDEP) { ?>
<p><i>Les pièces demandées seront commandées par courrier auprès du greffe. Prévoir un délai de 2 à 3 semaines.</i></p>
<?php } ?>
<?php } ?>
</div>
</div>
<div id="kbisM">
<div class="fieldgrp">
<label>E-mail</label>
<div class="field">
<?php
$user = $this->partial()->view->user;
?>
<input type="text" class="longfield" name="emailKbisM" value="<?=$user->getEmail()?>">
<span>Précisez votre e-mail pour recevoir le kbis.</span>
</div>
</div>
<div class="fieldgrp">
<label>Référence</label>
<div class="field">
<input type="text" class="longfield" name="ref" value="<?=$this->partial()->view->ref?>">
<span>Votre référence.</span>
</div>
</div>
<div class="fieldgrp">
<label>&nbsp;</label>
<div class="field"><input type="submit" class="button" name="kbis" value="Valider"></div>
</div>
</div>
<div id="kbisC">
<div class="fieldgrp">
<label>Votre E-mail</label>
<div class="field"><input class="longfield" type="text" name="emailKbisC" value="<?=$user->getEmail()?>"/></div>
</div>
<div class="fieldgrp">
<label>Votre Societe</label>
<div class="field"><input class="longfield" type="text" name="societe" value="<?=$this->partial()->view->societe?>"/></div>
</div>
<div class="fieldgrp">
<label>Votre Nom</label>
<div class="field"><input class="longfield" type="text" name="nom" value="<?=$user->getNom()?>"/></div>
</div>
<div class="fieldgrp">
<label>Votre Prenom</label>
<div class="field"><input class="longfield" type="text" name="prenom" value="<?=$user->getPrenom()?>"/></div>
</div>
<div class="fieldgrp">
<label>Votre Adresse</label>
<div class="field"><input class="longfield" type="text" name="adresse" value="<?=$this->partial()->view->adresse?>"/></div>
</div>
<div class="fieldgrp">
<label>Votre Code Postal</label>
<div class="field"><input class="longfield" type="text" name="cp" value="<?=$this->partial()->view->cp?>"/></div>
</div>
<div class="fieldgrp">
<label>Votre Ville</label>
<div class="field"><input class="longfield" type="text" name="ville" value="<?=$this->partial()->view->ville?>"/></div>
</div>
<div class="fieldgrp">
<label>&nbsp;</label>
<div class="field"><input type="submit" class="button" name="kbis" value="Valider"></div>
</div>
</div>
</form>

View File

@ -1,66 +0,0 @@
<form name="privileges" method="post" action="<?=$this->url(array('controller'=>'pieces', 'action'=>'commande'))?>">
<input type="hidden" name="siret" value="<?=$this->partial()->view->siret?>"/>
<input type="hidden" name="op" value="privileges"/>
<div class="fieldgrp">
<?php
$disponible = true;
if($this->partial()->view->KbisErreurCJ || $this->partial()->view->KbisErreurDEP){
$disponible = false;
}
if($disponible){
if( $this->partial()->view->permSurvPriv ){
?>
<input class="noborder type" type="checkbox" name="privileges[]" value="SprivSurv" <?=is_array($this->partial()->view->privileges) && in_array('SprivSurv',$this->partial()->view->privileges) ? 'checked' : ''?>/><b>Privilèges de la sécurité sociale et des régimes complémentaires et Trésor Public <br/>(avec surveillance, retour sous 48 à 72h)</b><br/>
<br/>
<?php } ?>
<input class="noborder type" type="checkbox" name="privileges[]" value="privSecu" <?=is_array($this->partial()->view->privileges) && in_array('privSecu',$this->partial()->view->privileges) ? 'checked' : ''?>/>Privilèges de la sécurité sociale et des régimes complémentaires (mail sous 12h ouvrées)<br/>
<input class="noborder type" type="checkbox" name="privileges[]" value="privTres" <?=is_array($this->partial()->view->privileges) && in_array('privTres',$this->partial()->view->privileges) ? 'checked' : ''?>/>Privilèges du Trésor Public (mail sous 12h ouvrées)<br/>
<br/>
<input class="noborder type" type="checkbox" name="privileges[]" value="nantFond" <?=is_array($this->partial()->view->privileges) && in_array('nantFond',$this->partial()->view->privileges) ? 'checked' : ''?>/>Nantissements du fonds de commerce ou du fonds artisanal (conventionnels et judiciaires)<br/>
<input class="noborder type" type="checkbox" name="privileges[]" value="nantVend" <?=is_array($this->partial()->view->privileges) && in_array('nantVend',$this->partial()->view->privileges) ? 'checked' : ''?>/>Privilèges du vendeur de fonds de commerce et d'action résolutoire<br/>
<input class="noborder type" type="checkbox" name="privileges[]" value="declCrea" <?=is_array($this->partial()->view->privileges) && in_array('declCrea',$this->partial()->view->privileges) ? 'checked' : ''?>/>Déclarations de créances<br/>
<?php
}else{
?>
<input class="noborder type" type="checkbox" name="privileges[]" value="privSecu" <?=is_array($this->partial()->view->privileges) && in_array('privSecu',$this->partial()->view->privileges) ? 'checked' : ''?>/>Privilèges de la sécurité sociale et des régimes complémentaires<br/>
<input class="noborder type" type="checkbox" name="privileges[]" value="privTres" <?=is_array($this->partial()->view->privileges) && in_array('privTres',$this->partial()->view->privileges) ? 'checked' : ''?>/>Privilèges du Trésor Public<br/>
<input class="noborder type" type="checkbox" name="privileges[]" value="nantCompl" <?=is_array($this->partial()->view->privileges) && in_array('nantCompl',$this->partial()->view->privileges) ? 'checked' : ''?>/>Etat complet des nantissements<br/>
<?php
}
?>
<br/>
<?php
if(!$disponible) {
?>
<p><i>Les pièces demandées seront commandées par courrier auprès du greffe. Prévoir un délai de 2 à 3 semaines.</i></p>
<?php
}
?>
</div>
<div id="privilegesM">
<div class="fieldgrp">
<label>E-mail</label>
<div class="field">
<input type="text" class="longfield" name="email" value="<?=$this->partial()->view->user->getEmail()?>">
<span>Précisez votre e-mail pour recevoir la commande.</span>
</div>
</div>
<div class="fieldgrp">
<label>Référence</label>
<div class="field">
<input type="text" class="longfield" name="ref" value="<?=$this->partial()->view->ref?>">
<span>Votre référence.</span>
</div>
</div>
<div class="fieldgrp">
<label>&nbsp;</label>
<div class="field"><input type="submit" name="submit" value="Valider" class="button"></div>
</div>
</div>
</form>

View File

@ -2,24 +2,20 @@
<h1>COMMANDES DE PI&Egrave;CES</h1>
<div class="paragraph">
<table class="identite">
<tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">
Num&eacute;ro identifiant Siren
</td>
<td width="350" class="StyleInfoData">
<?=$this->SirenTexte($this->siren)?>
</td>
</tr>
<tr>
<td width="200" class="StyleInfoLib">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">Dénomination Sociale</td>
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
</tr>
</tr>
</table>
</div>
<?php if(!empty($this->message)) { ?>
<?php if( !empty($this->message) ) { ?>
<div id="message"><?=$this->message?></div>
<?php } ?>
@ -29,23 +25,207 @@
#privilegesM {display:none;}
</style>
<h2>EXTRAIT KBIS</h2>
<div class="paragraph">
<?php if ($this->permKbis) {?>
<?=$this->partial('pieces/commande-kbis.phtml')?>
<form name="kbis" method="post" action="<?=$this->url(array('controller'=>'pieces', 'action'=>'commande'))?>">
<input type="hidden" name="siret" value="<?=$this->siret?>"/>
<input type="hidden" name="op" value="kbis"/>
<div class="fieldgrp">
<div class="field">
<?php if( $this->KbisErreurCJ ){ ?>
<?=$this->translate("K-Bis inexistant pour cette forme juridique");?>
<?php } else {?>
<p class="marge">Vous n'avez pas les droits d'accès pour cette fonctionalité.</p>
<?php
$disable = '';
if($this->KbisErreurDEP){ $disable = ' disabled'; }
?>
<input class="noborder" type="radio" name="method" value="<?=$this->url(array('controller'=>'pieces', 'action'=>'kbis', 'siret'=>$this->siret))?>"<?=$disable?>/>
<?=$this->translate("Visualiser/Télécharger le kbis");?>
<?php if($this->KbisErreurDEP){ ?>
<br/>K-Bis en ligne indisponible pour ce département. -
Afin d'obtenir un extrait K-bis, vous pouvez contactez directement le greffe du tribunal à compétence commercial
dont vous trouverez les coordonnées <a href="<?=$this->url(array(
'controller' => 'juridique',
'action' => 'competences',
'type' => 'tri',
'siret' => $this->siret,
'id' => $this->id
))?>">ici</a> ou choisir de commander par nos services en sélectionnant les propositions ci-dessous.
<?php }?>
<br/>
<input class="noborder" type="radio" name="method" value="M" <?=$this->method=='M' ? 'checked' : ''?>/><?=$this->translate("Recevoir le kbis par email");?><br/>
<input class="noborder" type="radio" name="method" value="C" <?=$this->method=='C' ? 'checked' : ''?>/><?=$this->translate("Recevoir le kbis original par courrier");?><br/>
<?php if($this->KbisErreurDEP) { ?>
<p><i><?=$this->translate("Les pièces demandées seront commandées par courrier auprès du greffe. Prévoir un délai de 2 à 3 semaines.");?></i></p>
<?php } ?>
<?php } ?>
</div>
</div>
<div id="kbisM">
<?php if( $this->emailValid ) {?>
<div class="fieldgrp"><p>
<?=$this->translate("Commande de KBIS demandé pour la société");?> <strong><?=$this->raisonSociale?> (<?=$this->siren;?>)</strong><br/>
<?=$this->translate("Vous recevrez un email (sous 3/5 jours ouvrés) lorsque le document sera disponible.");?>
</p></div>
<div class="fieldgrp">
<label><?=$this->translate("Votre email");?></label>
<div class="field">
<?=$this->user->getEmail()?>
</div>
</div>
<div class="fieldgrp">
<label><?=$this->translate("Votre référence");?></label>
<div class="field">
<input type="text" class="longfield" name="ref" value="<?=$this->ref?>">
<?=$this->translate("(facultatif)");?>
</div>
</div>
<div class="fieldgrp">
<label>&nbsp;</label>
<div class="field"><input type="submit" class="button" name="kbis" value="<?=$this->translate("Valider");?>"></div>
</div>
<?php } else {?>
<div class="fieldgrp">
<div class="field" style="color:red;"><?=$this->translate("Commande impossible. L'email de votre compte est invalide.");?></div>
</div>
<?php }?>
</div>
<div id="kbisC">
<?php if( $this->emailValid ) {?>
<div class="fieldgrp"><p>
<?=$this->translate("Commande de KBIS demandé pour la société");?> <strong><?=$this->raisonSociale?> (<?=$this->siren;?>)</strong><br/>
<?=$this->translate("Vous recevrez un email (sous 2 à 3 semaines) lorsque le document sera disponible.");?>
</p></div>
<div class="fieldgrp">
<label><?=$this->translate("Votre email");?></label>
<div class="field">
<?=$this->user->getEmail()?>
</div>
</div>
<div class="fieldgrp">
<label><?=$this->translate("Votre référence");?></label>
<div class="field"><input class="longfield" type="text" name="ref" value="<?=$this->ref?>">
<?=$this->translate("(facultatif)");?></div>
</div>
<div class="fieldgrp">
<label><?=$this->translate("Votre Societe");?></label>
<div class="field"><input class="longfield" type="text" name="societe" value="<?=$this->societe?>"/></div>
</div>
<div class="fieldgrp">
<label><?=$this->translate("Votre Nom");?></label>
<div class="field"><input class="longfield" type="text" name="nom" value="<?=$this->user->getNom()?>"/></div>
</div>
<div class="fieldgrp">
<label><?=$this->translate("Votre Prenom");?></label>
<div class="field"><input class="longfield" type="text" name="prenom" value="<?=$this->user->getPrenom()?>"/></div>
</div>
<div class="fieldgrp">
<label><?=$this->translate("Votre Adresse");?></label>
<div class="field"><input class="longfield" type="text" name="adresse" value="<?=$this->adresse?>"/></div>
</div>
<div class="fieldgrp">
<label><?=$this->translate("Votre Code Postal");?></label>
<div class="field"><input class="longfield" type="text" name="cp" value="<?=$this->cp?>"/></div>
</div>
<div class="fieldgrp">
<label><?=$this->translate("Votre Ville");?></label>
<div class="field"><input class="longfield" type="text" name="ville" value="<?=$this->ville?>"/></div>
</div>
<div class="fieldgrp">
<label>&nbsp;</label>
<div class="field"><input type="submit" class="button" name="kbis" value="<?=$this->translate("Valider");?>"></div>
</div>
<?php } else {?>
<div class="fieldgrp">
<div class="field" style="color:red;"><?=$this->translate("Commande impossible. L'email de votre compte est invalide");?></div>
</div>
<?php }?>
</div>
</form>
<?php } else {?>
<p class="marge"><?=$this->translate("Vous n'avez pas les droits d'accès pour cette fonctionalité."); ?></p>
<?php }?>
</div>
<h2>PRIVIL&Eacute;GES &amp; NANTISSEMENTS</h2>
<div class="paragraph">
<?php if ($this->permPriv) {?>
<?=$this->partial('pieces/commande-privileges.phtml')?>
<?php if ( $this->permPriv ) {?>
<form name="privileges" method="post" action="<?=$this->url(array('controller'=>'pieces', 'action'=>'commande'))?>">
<input type="hidden" name="siret" value="<?=$this->siret?>"/>
<input type="hidden" name="op" value="privileges"/>
<div class="fieldgrp">
<?php
$disponible = true;
if($this->KbisErreurCJ || $this->KbisErreurDEP){
$disponible = false;
}
if ( $disponible ) { ?>
<?php if( $this->permSurvPriv ) { ?>
<input class="noborder type" type="checkbox" name="privileges[]" value="SprivSurv" <?=is_array($this->privileges) && in_array('SprivSurv',$this->privileges) ? 'checked' : ''?>/><b>Privilèges de la sécurité sociale et des régimes complémentaires et Trésor Public <br/>(avec surveillance, retour sous 48 à 72h)</b><br/>
<br/>
<?php } ?>
<input class="noborder type" type="checkbox" name="privileges[]" value="privSecu" <?=is_array($this->privileges) && in_array('privSecu',$this->privileges) ? 'checked' : ''?>/>Privilèges de la sécurité sociale et des régimes complémentaires (mail sous 12h ouvrées)<br/>
<input class="noborder type" type="checkbox" name="privileges[]" value="privTres" <?=is_array($this->privileges) && in_array('privTres',$this->privileges) ? 'checked' : ''?>/>Privilèges du Trésor Public (mail sous 12h ouvrées)<br/>
<br/>
<input class="noborder type" type="checkbox" name="privileges[]" value="nantFond" <?=is_array($this->privileges) && in_array('nantFond',$this->privileges) ? 'checked' : ''?>/>Nantissements du fonds de commerce ou du fonds artisanal (conventionnels et judiciaires)<br/>
<input class="noborder type" type="checkbox" name="privileges[]" value="nantVend" <?=is_array($this->privileges) && in_array('nantVend',$this->privileges) ? 'checked' : ''?>/>Privilèges du vendeur de fonds de commerce et d'action résolutoire<br/>
<input class="noborder type" type="checkbox" name="privileges[]" value="declCrea" <?=is_array($this->privileges) && in_array('declCrea',$this->privileges) ? 'checked' : ''?>/>Déclarations de créances<br/>
<?php } else { ?>
<input class="noborder type" type="checkbox" name="privileges[]" value="privSecu" <?=is_array($this->privileges) && in_array('privSecu',$this->privileges) ? 'checked' : ''?>/>Privilèges de la sécurité sociale et des régimes complémentaires<br/>
<input class="noborder type" type="checkbox" name="privileges[]" value="privTres" <?=is_array($this->privileges) && in_array('privTres',$this->privileges) ? 'checked' : ''?>/>Privilèges du Trésor Public<br/>
<input class="noborder type" type="checkbox" name="privileges[]" value="nantCompl" <?=is_array($this->privileges) && in_array('nantCompl',$this->privileges) ? 'checked' : ''?>/>Etat complet des nantissements<br/>
<?php } ?>
<br/>
<?php if ( !$disponible ) { ?>
<p><i>Les pièces demandées seront commandées par courrier auprès du greffe. Prévoir un délai de 2 à 3 semaines.</i></p>
<?php } ?>
</div>
<div id="privilegesM">
<div class="fieldgrp">
<label>E-mail</label>
<div class="field">
<input type="text" class="longfield" name="email" value="<?=$this->user->getEmail()?>">
<span>Précisez votre e-mail pour recevoir la commande.</span>
</div>
</div>
<div class="fieldgrp">
<label>Référence</label>
<div class="field">
<input type="text" class="longfield" name="ref" value="<?=$this->ref?>">
<span>Votre référence.</span>
</div>
</div>
<div class="fieldgrp">
<label>&nbsp;</label>
<div class="field"><input type="submit" name="submit" value="Valider" class="button"></div>
</div>
</div>
</form>
<?php } else {?>
<p class="marge">Vous n'avez pas les droits d'accès pour cette fonctionalité.</p>
<p class="marge"><?=$this->translate("Vous n'avez pas les droits d'accès pour cette fonctionalité."); ?></p>
<?php }?>
</div>
</div>
</div>

View File

@ -0,0 +1,40 @@
<div id="center">
<h1>COMMANDES DE PI&Eacute;CES</h1>
<div class="paragraph">
<table class="identite">
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">
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">Dénomination Sociale</td>
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
</tr>
</table>
</div>
<h2>Extrait R.C.S</h2>
<div class="paragraph">
<?=$this->message?>
</div>
<div class="paragraph">
<?php if($this->mail) { ?>
</script>
<div id="formMail" style="display:none">
<form name="mailkbis" method="post" action="<?=$this->url(array('controller'=>'pieces', 'action'=>'kbis', 'siret'=>$this->siren))?>">
<input type="hidden" name="op" value="mailkbis"/>
<label>Votre Email : </label>
<input type="text" name="mail" value="<?=$this->email?>"/>
<input type="submit" name="mailkbis" value="Ok"/>
</form>
</div>
<?php } ?>
</div>
</div>

View File

@ -1,40 +0,0 @@
<div id="center">
<h1>COMMANDES DE PI&Eacute;CES</h1>
<div class="paragraph">
<table class="identite">
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">
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">Dénomination Sociale</td>
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
</tr>
</table>
</div>
<h2>Extrait R.C.S</h2>
<div class="paragraph">
<?=$this->message?>
</div>
<div class="paragraph">
<?php if($this->mail) { ?>
</script>
<div id="formMail" style="display:none">
<form name="mailkbis" method="post" action="<?=$this->url(array('controller'=>'pieces', 'action'=>'kbis', 'siret'=>$this->siren))?>">
<input type="hidden" name="op" value="mailkbis"/>
<label>Votre Email : </label>
<input type="text" name="mail" value="<?=$this->email?>"/>
<input type="submit" name="mailkbis" value="Ok"/>
</form>
</div>
<?php } ?>
</div>
</div>

View File

@ -85,7 +85,7 @@ $('select[name="even[]"]').change(function(){
<?php }?>
<script type="text/javascript" src="/libs/form/jquery.form.js"></script>
<script type="text/javascript" src="/libs/form/jquery.form.min.js"></script>
<script>
$('form#saisie').bind('submit', function(){
var options = {

View File

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

View File

@ -7,8 +7,9 @@
<?php }?>
<script>
var windowhref = window.location.href;
$('#dialog').dialog({ buttons: [
{ text: "Fermer", click: function() { $(this).dialog("close"); } }
{ text: "Fermer", click: function() { $(this).dialog("close"); window.location.href=windowhref; } }
] });
</script>
@ -19,12 +20,45 @@
<p>Supprimer l'élément id=<?=$this->id?> ?</p>
<form name="contact" action="<?=$this->url(array('controller'=>'saisie','action'=>'contact'),null,true)?>" method="post">
<input type="hidden" name="mode" value="delete" />
<input type="hidden" name="id" value="<?=$this->id?>"/>
<input type="hidden" name="siret" value="<?=$this->siret?>"/>
</form>
<?php } else {?>
<?php if ( count($this->Modif)>0 ) {?>
<?php foreach ( $this->Modif as $item ) {?>
<p>
<?php
switch ($item->type) {
case 'add':
$date = new Zend_Date($item->dateInsert, 'yyyy-MM-dd');
?>
Création le <?=$date->toString('dd/MM/yyyy')?> par <?$item->idUtilisateurName?>.
<?php
break;
case 'edit':
$date = new Zend_Date($item->dateUpdate, 'yyyy-MM-dd');
?>
Modification le <?=$date->toString('dd/MM/yyyy')?> par <?$item->idUpdateName?>.
<?php
break;
case 'del':
$date = new Zend_Date($item->dateSuppr, 'yyyy-MM-dd');
?>
Suppression le <?=$date->toString('dd/MM/yyyy')?> par <?$item->idSupprName?>.
<?php
break;
}
?>
</p>
<?php }?>
<?php }?>
<form name="contact" action="<?=$this->url(array('controller'=>'saisie','action'=>'contact'),null,true)?>" method="post">
<input type="hidden" name="mode" value="<?=$this->mode?>"/>
<?php if ($this->id) {?>
<input type="hidden" name="id" value="<?=$this->id?>"/>
<?php }?>
@ -40,7 +74,7 @@
</div>
<div>
<label>Valeur</label>
<input type="text" name="" value="<?=$this->value?>">
<input type="text" name="value" value="<?=$this->value?>">
</div>
<p>
Téléphone france saisit sans séparateur, maximum 10 chiffres (format: XXXXXXXXXX)

View File

@ -0,0 +1,110 @@
<style>
.err {
border-style:solid;
border-width:1px;
border-color:red;
}
</style>
<div class="fields">
<div class="fieldgrp">
<label><?=$this->translate("Civilité") ?></label>
<div class="field">
<?php
$civilites = array('M', 'MME', 'MLE');
foreach ($civilites as $civilite) {
$checked=(strcmp($civilite, $this->infos->Civilite)==0)?"checked":"";
?>
<?=$civilite ?><input type="radio" name="civilite" value="<?=$civilite?>" <?=$checked?>/>
<?php }?>
</div>
</div>
<div class="fieldgrp">
<label><?=$this->translate("Nom") ?></label>
<div class="field">
<input type="text" name="nom" value="<?=$this->infos->Nom?>"/>
</div>
</div>
<div class="fieldgrp">
<label><?=$this->translate("Prenom") ?></label>
<div class="field">
<input type="text" name="prenom" value="<?=$this->infos->Prenom?>"/>
</div>
</div>
<div class="fieldgrp">
<label><?=$this->translate("Nom d'usage") ?></label>
<div class="field">
<input type="text" name="nom_usage" value="<?=$this->infos->NomUsage?>"/>
</div>
</div>
<div class="fieldgrp">
<label><?=$this->translate("Fonction") ?></label>
<div class="field">
<select name="codFct" style="width:380px;">
<?php foreach ($this->fonction as $key=>$val) {
$selected=(intval($key)==intval($this->infos->Code))?"selected":""; ?>
<option value="<?=$key ?>" <?=$selected?>><?=$val?></option>
<?php }?>
</select>
</div>
</div>
<div class="fieldgrp">
<label><?=$this->translate("Date de naissance") ?></label>
<div class="field">
<?php
if (trim($this->infos->NaissDate) != '' && trim($this->infos->NaissDate)!='0000-00-00') {
$date = new Zend_Date($this->infos->NaissDate, 'yyyy-MM-dd');
$newDate = $date->toString('dd/MM/yyyy');
}
?>
<input type="text" name="naiss_date" value="<?=$newDate?>"/>
</div>
</div>
<div class="fieldgrp">
<label><?=$this->translate("Lieu de naissance") ?></label>
<div class="field">
<input type="text" name="naiss_lieu" value="<?=$this->infos->NaissVille?>"/>
</div>
</div>
<div class="fieldgrp">
<label><?=$this->translate("Téléphone") ?></label>
<div class="field">
<input type="text" name="tel" value="<?=$this->infos->Tel?>"/>
</div>
</div>
<div class="fieldgrp">
<label><?=$this->translate("Télécopie") ?></label>
<div class="field">
<input type="text" name="fax" value="<?=$this->infos->Fax?>"/>
</div>
</div>
<div class="fieldgrp">
<label><?=$this->translate("Email") ?></label>
<div class="field">
<input type="text" name="email" value="<?=$this->infos->Email?>"/>
</div>
</div>
</div>
<script>
$('input[name=email]').on("focusout", function(){
var regex = /^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if (!regex.test($(this).val())) {
$(this).addClass('err');
}
else {
$(this).removeClass('err');
}
});
$.datepicker.setDefaults( $.datepicker.regional["fr"] );
$('input[name=naiss_date]').datepicker({ changeMonth: true, changeYear: true, yearRange: "-100:+0", });
</script>

View File

@ -0,0 +1,29 @@
<form name="dirop" action="<?=$this->url(array('controller'=>'saisie', 'action'=>'diropsave'),null, true)?>" method="post">
<input type="hidden" name="mode" value="<?=$this->mode?>" />
<input type="hidden" name="siren" value="<?=$this->siren?>" />
<input type="hidden" name="nic" value="<?=$this->nic?>" />
<input type="hidden" name="id" value="<?=$this->id?>" />
<?php
if ($this->mode=='add') {
echo $this->translate("Ajouter un dirigeant opérationnel");
echo $this->partial('/saisie/diropcontrol-form.phtml', array('fonction'=>$this->fonction));
} else if ($this->mode=='edit') {
echo $this->translate("Modifier le dirigeant opérationnel");
echo $this->render('/saisie/diropcontrol-form.phtml');
} else if ($this->mode=='del')
echo $this->translate("Supprimer le dirigeant opérationnel");
?>
</form>
<script>
$('#dialog').dialog({ buttons: [
{ text: "Valider", click: function() {
var form = $('form[name=dirop]');
$.post(form.attr('action'), form.serialize(), function(data){
$('#dialog').html(data);
}).fail(function(){ alert('Unknown error'); });
}},
{ text: "Annuler", click: function() { $(this).dialog('close'); } }
] });
</script>

View File

@ -0,0 +1,12 @@
<?=$this->message ?>
<script>
$('#dialog').dialog({
buttons: [{
text: "Quitter",
click: function() {
location.reload();
$(this).dialog('close');
}
}]
});
</script>

View File

@ -0,0 +1,2 @@
<label>Compl&eacute;ment, huissier, opposition, etc...</label>
<input type="text" name="jugement[comp]" size="70" maxlength="255" value="" />

View File

@ -0,0 +1,7 @@
<label>Date de jouissance / effet :</label>
<input type="text" maxlength="10" class="date" name="jugement[dateFinPeriode]" value="<?=$this->saisie['dateFinPeriode']?>" />
<span class="left">(Format JJ/MM/AAAA)</span>
<label>Nom de l'acheteur</label>
<input type="text" name="jugement[AcheteurNom]" size="70" maxlength="100" value="" />
<label>SIREN de l'acheteur</label>
<input type="text" name="jugement[AcheteurSiren]" size="70" maxlength="11" value="" />

View File

@ -71,7 +71,7 @@ span.poste input { width:50px; }
$('span.unit').editable(function(value, settings) {
return value;
}, {
data : "{'U':'&euro;','K':'K&euro;','M':'M&euro;'}",
data : {'U':'&euro;','K':'K&euro;','M':'M&euro;', 'selected':'<?=$this->unite?>'},
type : 'select',
tooltip : 'Click to edit',
});

View File

@ -2626,7 +2626,7 @@
<td align="center">&nbsp;</td>
<td align="right"><?=$this->Editable('VH1',$this->liasse['VH1'],'poste');?></td>
<td align="center">&nbsp;</td>
<td align="right"><?=$this->Editable('VH3',$this->liasse['VH2'],'poste');?></td>
<td align="right"><?=$this->Editable('VH2',$this->liasse['VH2'],'poste');?></td>
<td align="right"><?=$this->Editable('VH3',$this->liasse['VH3'],'poste');?></td>
</tr>
<tr>

View File

@ -97,7 +97,7 @@ Liste des documents Infogreffe
</form>
</div>
<script type="text/javascript" src="/libs/form/jquery.form.js"></script>
<script type="text/javascript" src="/libs/form/jquery.form.min.js"/>
<script>
$.datepicker.setDefaults( $.datepicker.regional["fr"] );
$('input[name=fileDate]').datepicker({ changeMonth: true, changeYear: true });

View File

@ -121,7 +121,7 @@ Selectionner un pays pour afficher les identifiants locaux
<div class="fieldgrp">
<label>Téléphone</label>
<div class="field">
<div style="float-left;"></div><span id="indTel"></div><div></span><input type="text" name="tel" value="<?=$this->tel?>"/></div>
<div style="float-left;"></div><span id="indTel"></div><div></span><input type="text" name="tel" value="<?=$this->tel?>"/></div>
</div>
</div>
@ -249,7 +249,7 @@ $('input[name=dateNbActions]').datepicker({ changeMonth: true, changeYear: true
$('input[name=isin]').change(function(e){
$.post('/saisie/checkisin', {isin: $(this).val() }, function success(data) {
if (data){$('input[name=isin]').css("border-color", "red");}
if (data){$('input[name=isin]').css("border-color", "red");}
else {$('input[name=isin]').css("border-color", "");}
});
});
@ -301,17 +301,25 @@ function AddSelectCountry(code, n){
}
}
$('input[name=tel], input[name=fax]').on('blur', function(){
var input = $(this).val();
var output = $.trim(input.replace(/[^0-9]+/g, ''));
$(this).val(output);
});
$('a#google').on('click', function(e){
var val = $('input[name=nom]').val();
window.open('https://www.google.fr/#q='+encodeURIComponent(val));
});
$('input[name=adresse_codvoie]').autocomplete({
minLength: 2,
delay: 250,
source: function(request, response) {
var codvoie = $('input[name=adresse_codvoie]').val();
$.getJSON('<?=$this->url(array('controller'=>'saisie','action'=>'codvoie'),null,true)?>', { codvoie: codvoie },
function(data) { response(data); }
);
},
select: function( event, ui ) {
$('input[name=adresse_codvoie]').attr('value', ui.item.value);
}
});
$(document).ready(function(){
var code = $('select[name=adresse_pays]').val();
$('span#indTel').text('+'+countries[code]['indTel']);

View File

@ -190,12 +190,12 @@ $('input[name=dateNbActions]').datepicker({ changeMonth: true, changeYear: true
$('input[name=isin]').change(function(e){
$.post('/saisie/checkisin', {isin: $(this).val() }, function success(data) {
if (data){$('input[name=isin]').css("border-color", "red");}
if (data){$('input[name=isin]').css("border-color", "red");}
else {$('input[name=isin]').css("border-color", "");}
});
});
function cpville(inputFld, outputFld, countrySel=null, countryVal=null) {
function cpville(inputFld, outputFld, countrySel, countryVal) {
$('input[name='+inputFld+']').autocomplete({
minLength: 4,
delay: 250,
@ -214,13 +214,26 @@ function cpville(inputFld, outputFld, countrySel=null, countryVal=null) {
$('input[name='+inputFld+']').attr('value', ui.item.value);
$('input[name='+outputFld+']').attr('value', text);
if (countrySel!=null && countryVal!=null){
$('select[name='+countrySel+']').val(countryVal);
$('select[name='+countrySel+']').val(countryVal);
}
}
})
});
}
cpville('adresse_cp', 'adresse_ville');
$('input[name=adresse_codvoie]').autocomplete({
minLength: 2,
delay: 250,
source: function(request, response) {
var codvoie = $('input[name=adresse_codvoie]').val();
$.getJSON('<?=$this->url(array('controller'=>'saisie','action'=>'codvoie'),null,true)?>', { codvoie: codvoie },
function(data) { response(data); }
);
},
select: function( event, ui ) {
$('input[name=adresse_codvoie]').attr('value', ui.item.value);
}
});
</script>
<?php } else {?>

View File

@ -93,7 +93,7 @@ $('input[name=naissance_date]').datepicker({ changeMonth: true, changeYear: true
</div>
<script>
function cpville(inputFld, outputFld, countrySel=null, countryVal=null) {
function cpville(inputFld, outputFld, countrySel, countryVal) {
$('input[name='+inputFld+']').autocomplete({
minLength: 4,
delay: 250,
@ -105,21 +105,34 @@ function cpville(inputFld, outputFld, countrySel=null, countryVal=null) {
},
select: function( event, ui ) {
var text = ui.item.label;
text = text.replace(ui.item.value+': ','');
text = text.replace(ui.item.value+': ','');
if (inputFld==outputFld) {
ui.item.value = text;
}
$('input[name='+inputFld+']').attr('value', ui.item.value);
$('input[name='+outputFld+']').attr('value', text);
$('input[name='+outputFld+']').attr('value', text);
if (countrySel!=null && countryVal!=null){
$('select[name='+countrySel+']').val(countryVal);
$('select[name='+countrySel+']').val(countryVal);
}
}
})
});
}
cpville('adresse_cp', 'adresse_ville', 'adresse_pays', 'FRA');
cpville('naissance_lieu', 'naissance_lieu', 'naissance_dept_pays', 'FRA');
$('input[name=adresse_codvoie]').autocomplete({
minLength: 2,
delay: 250,
source: function(request, response) {
var codvoie = $('input[name=adresse_codvoie]').val();
$.getJSON('<?=$this->url(array('controller'=>'saisie','action'=>'codvoie'),null,true)?>', { codvoie: codvoie },
function(data) { response(data); }
);
},
select: function( event, ui ) {
$('input[name=adresse_codvoie]').attr('value', ui.item.value);
}
});
</script>
<div class="fieldgrp">

View File

@ -1,4 +1,4 @@
<?php if ($this->href) {?>
<?php if ( $this->href ) {?>
<a class="dialog" title="<?=$this->name?>" href="<?=$this->href?>"><?=$this->name?></a>
<script>
@ -16,52 +16,72 @@ $('a.dialog').on('click', function(e){
$(this).html('Chargement...');
$(this).load(href);
},
buttons: {'Fermer': function() { $(this).dialog('close'); }},
buttons: {"Fermer": function() { $(this).dialog('close'); }},
close: function() { $('#dialog').remove(); }};
$('<div id="dialog"></div>').dialog(dialogOpts);
return false;
});
</script>
<?php } else {?>
<style>
<?php } elseif ( $this->mode == 'todelete' ) {?>
<p>Etes vous sur de vouloir supprimer le cut-off sur le siren <?=$this->siren?> ? </p>
<form action="<?=$this->url(array('controller'=>'saisie', 'action'=>'scorecutoff'), null, true)?>" method="post">
<input type="hidden" name="siren" value="<?=$this->siren?>">
<input type="hidden" name="mode" value="delete">
<input type="hidden" name="encours" value="<?=$this->encours?>"/>
<input type="hidden" name="scoreConf" value="<?=$this->scoreConf?>"/>
<input type="hidden" name="scoreDir" value="<?=$this->scoreDir?>"/>
<input type="hidden" name="scoreSolv" value="<?=$this->scoreSolv?>"/>
<input type="hidden" name="remarque" value="<?=$this->remarque?>"/>
</form>
<script>
$('#dialog').dialog({ buttons: [
{text: "Oui", click: function() {
var values = $(this).find('form').serialize();
var url = $(this).find('form').attr('action');
$('#dialog').html('Chargement...');
$.post(url, values, function(data) {
$('#dialog').html(data);
});
}},
{text: "Non", click: function() { $(this).dialog('close'); }}
] });
</script>
<?php } elseif ( $this->mode == 'delete' || $this->mode == 'added' ) {?>
<div class="ui-widget">
<div class="ui-state-highlight ui-corner-all" style="margin-top: 20px; padding: 0 .7em;">
<p><?=$this->message?></p></p>
</div>
</div>
<script>
var windowhref = window.location.href;
$('#dialog').dialog({ buttons: [
{text: "Fermer", click: function() { $(this).dialog('close'); window.location.href = windowhref; }}
] });
</script>
<?php } else {?>
<style>
select, input {
width:5em;
}
.brsr {
border-style:solid;
border-width:1px;
border-color:red;
}
.loading
{
background-color: silver;
height: 450px;
top: 0px;
left: 0px;
position: absolute;
width: 720px;
opacity: 0.3;
display:none;
z-index: 1;
}
.message {
font-size: 10px;
width: 98%;
background-color: #FFFFDD;
border: 1px solid #FCEFA1;
border-radius: 4px;
padding-left: 15px;
}
</style>
<?php $getcutoff = $this->getcutoff; ?>
<?php if ($this->message!='') {?>
<div class='message'><p id='<?=$this->refresh ?>'><?=$this->message; ?></p></div>
<div class="ui-widget">
<div class="ui-state-highlight ui-corner-all" style="margin-top: 20px; padding: 0 .7em;">
<p><?=$this->message?></p></p>
</div>
</div>
<?php }?>
<?php if ($getcutoff['dateInsert']!='') { ?>
@ -70,7 +90,7 @@ select, input {
<div>Date de mise à jour Cut-off</div>
</div>
<div class="StyleInfoData" style="float:left; margin-top:20px; ">
<div id='dateInsert'>
<div>
<?php $date = new Zend_Date($getcutoff['dateInsert'], 'yyyy-MM-dd')?>
<?=$date->toString('dd/MM/yyyy')?>
</div>
@ -82,9 +102,8 @@ select, input {
<?php } ?>
<div style="margin-top:5em">
<form>
<form action="<?=$this->url(array('controller'=>'saisie', 'action'=>'scorecutoff'), null, true)?>" method="post">
<input type="hidden" name="siren" value="<?=$this->siren?>">
<input type="hidden" name="delete" value="0">
<div>
<label>Encours</label>
@ -121,8 +140,28 @@ foreach($select as $item => $val) {
</form>
</div>
<div class="loading"><center><img style="padding-top:25%" src="/themes/default/images/giant/19-1.gif" /></center></div>
<script type="text/javascript" src="/themes/default/scripts/scorecutoff.js" />
<script>
$('#dialog').dialog({ buttons: [
<?php if ($getcutoff['dateInsert']!='') { ?>
{text: "Supprimer", click: function() {
var values = $(this).find('form').serialize();
var url = $(this).find('form').attr('action') + '/mode/todelete';
$('#dialog').html('Chargement...');
$.post(url, values, function(data) {
$('#dialog').html(data);
});
}},
<?php }?>
{text: "Valider", click: function() {
var values = $(this).find('form').serialize();
var url = $(this).find('form').attr('action');
$('#dialog').html('Chargement...');
$.post(url, values, function(data) {
$('#dialog').html(data);
});
}},
{text: "Fermer", click: function() { $(this).dialog('close'); }}
] });
</script>
<?php }?>

View File

@ -72,7 +72,7 @@ $('#dialogsurv').dialog({ buttons: [ {
<div class="fieldgrp">
<label class="StyleInfoLib">Adresse email du destinataire</label>
<div class="field">
<input class="longfield" name="email" type="text" value="<?=$this->email?>" size="20"/>
<input class="longfield" name="email" type="text" value="<?=$this->email?>" size="100"/>
</div>
</div>
@ -102,13 +102,13 @@ function survSubmit(){
source.push($('input[name=source]').val());
}
$('#frmSurv').replaceWith('<div id="frmSurv">Mise sous surveillance en cours...</div>');
if (source.length>0) {
$.each( source, function( key, value ) {
$.post(action, {siret: siret, ref: ref, email: email, encours: encours, source: value} ,
function(data) { $('#frmSurv').append('<br/>'+data);
}, 'text');
});
$('#frmSurv').append('<br/>Mise sous surveillance terminé.');
$('#dialogsurv').dialog({ buttons: [
{ text: "Fermer", click: function() { window.location.href = windowhref; } }
]});
@ -117,7 +117,7 @@ function survSubmit(){
$('#dialogsurv').dialog({ buttons: [
{ text: "Fermer", click: function() { window.location.href = windowhref; } }
]});
}
}
}
</script>

View File

@ -0,0 +1,54 @@
<?php if ( $this->checkemail ) {?>
<strong><?=$this->msg?></strong>
<input type="hidden" name="email" value="<?=$this->email?>"/>
<?php if ($this->email!='') {?>
<p><i>Enregistrer les modifications en cliquant sur "Sauver", en bas de la page, après avoir fermer la fenêtre.</i></p>
<?php }?>
<script>
$('#dialog').dialog({ buttons: [
{ text: "Fermer", click: function() {
var email = $('#dialog input[name=email]').val();
if (email!='') {
$('div#email').html('<span>'+email+'</span>');
$('input[name="frmOptions[email]"]').val(email);
}
$(this).dialog('close');
} }
]});
</script>
<?php } else {?>
<style>
#bloc-addemail { display:none; }
</style>
<p>Email principal associé au compte utilisateur</p>
<form name="email" action="<?=$this->url(array('controller'=>'user', 'action'=>'email'), null, true)?>" method="post">
<label>Adresse Email principal :</label><br/>
<input type="text" size="50" maxlength="80" name="q" value="<?=$this->email?>"/>
<input type="hidden" name="check" value="1"/>
</form>
<p><i>L'email principal est utilisé pour toutes communications avec Scores & Decisions. Il doit donc être valide.</i></p>
<script>
$('#dialog').dialog({ buttons: [
{ text: "Valider", click: function() {
$.post($('form[name=email]').attr('action'), $('form[name=email]').serialize(), function(data){
$('#dialog').html(data);
}).fail(function() {
$('#dialog').html('<strong>Unknown error</strong>');
});
} },
{ text: "Quitter", click: function() { $(this).dialog('close'); } }
]});
</script>
<?php }?>

View File

@ -0,0 +1,65 @@
<?php if ( $this->msg ) {?>
<?=$this->msg?>
<script>
$('#dialog').dialog({ buttons: [
{ text: "Fermer", click: function() { $(this).dialog('close'); } }
]});
</script>
<?php } elseif( $this->mode == 'add' ) {?>
<form name="email" action="<?=$this->url(array('controller'=>'user', 'action'=>'emailsecondary'), null, true)?>">
<label>Saisisez l'email à ajouter : </label><br/>
<input type="text" size="50" maxlength="80" name="email" value=""/>
<input type="hidden" name="login" value="<?=$this->login?>">
<input type="hidden" name="mode" value="set">
</form>
<script>
$('#dialog').dialog({ buttons: [
{ text: "Valider", click: function() {
$.post($('form[name=email]').attr('action'), $('form[name=email]').serialize(), function(data) {
$('#dialog').html(data);
});
} },
{ text: "Fermer", click: function() { $(this).dialog('close'); } }
]});
</script>
<?php } else {?>
<p>Emails secondaires associés au compte <strong><?=$this->login?></strong></p>
<?php if ( count($this->emails)>0 ) {?>
<ul>
<?php foreach ($this->emails as $email) {?>
<li><?=$email->value?> (<a class="email-delete" href="<?=$this->url(array(
'controller'=>'user', 'action'=>'emailsecondary', 'login'=>$this->login,
'id'=>$email->id, 'email'=>$email->value, 'mode'=>'del'), null, true)?>">supprimer</a>)
</li>
<?php }?>
</ul>
<?php } else {?>
<strong>Aucun email secondaire.</strong>
<?php }?>
<script>
$('#dialog').dialog({ buttons: [
{ text: "Associer une nouvelle adresse email", click: function() {
$.post('<?=$this->url(array('controller'=>'user', 'action'=>'emailsecondary', 'mode'=> 'add', 'login' => $this->login), null, true)?>', function(data) {
$('#dialog').html(data);
});
} },
{ text: "Fermer", click: function() { $(this).dialog('close'); } }
]});
$('a.email-delete').on('click', function(e) {
e.preventDefault();
$.post($(this).attr('href'), function(data) {
$('#dialog').html(data);
});
});
</script>
<?php }?>

View File

@ -1 +1,3 @@
<?=json_encode($this->result);?>
<strong><?=$this->msg?></strong>
<input type="hidden" name="email" value="<?=$this->email?>"/>

View File

@ -43,22 +43,51 @@ if ($this->action != 'new') {
</div>
<div class="infoTitle StyleInfoLib">Adresse e-mail</div>
<div class="infoData">
<div class="infoData" id="email">
<?php $emails = explode(';', $this->options->email); ?>
<?php foreach ( $emails as $email ) {?>
<span><?=$email?></span><br/>
<?php }?>
</div>
<div style="float:left;">
<button id="user-emails">Editer les emails</button>
<button id="user-emails" data-href="<?=$this->url(array(
'controller' => 'user', 'action' => 'email',
'q' => $this->options->email,
))?>">Editer e-mail du compte</button>
<button id="user-emailsecondary" data-href="<?=$this->url(array(
'controller' => 'user', 'action' => 'emailsecondary',
'idClient' => $this->options->idClient,
'login' => $this->loginVu,
))?>">Voir ou associer des e-mails secondaires</button>
<script>
$('button#user-emails').button({
icons: { primary: "ui-icon-pencil" },
text: false
}).click(function( event ) {
event.preventDefault();
$('button#user-emails').button({ icons: { primary: "ui-icon-pencil" }, text: false}).click(function(e) {
e.preventDefault();
var title = $(this).text();
var href = '/user/emails/q/'+$('input[name="frmOptions[email]"]').val();
var href = $(this).data('href');
var dialogOpts = {
bgiframe: true,
title: title,
width: 500,
height: 300,
modal: true,
open: function(event, ui) {
$(this).html('Chargement...');
$(this).load(href);
},
buttons: {
Quitter: function() { $(this).dialog('close'); }
},
close: function() { $('#dialog').remove(); }
};
$('<div id="dialog"></div>').dialog(dialogOpts);
return false;
});
$('button#user-emailsecondary').button({icons: { primary: "ui-icon-plusthick" }, text: false}).click(function(e) {
e.preventDefault();
var title = $(this).text();
var href = $(this).data('href');;
var dialogOpts = {
bgiframe: true,
title: title,

View File

@ -1,647 +1,68 @@
<?php echo $this->doctype()?>
<?php echo $this->doctype(); ?>
<html>
<head>
<?php echo $this->headMeta()?>
<?php echo $this->headTitle()?>
<?php echo $this->headLink()?>
<?php echo $this->headScript()?>
<link rel="shortcut icon" type="image/x-icon" href="<?='http://'.$_SERVER['SERVER_NAME']?>/favicon.ico" />
<style>
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, dialog, figure, footer, header, hgroup, nav, section {
border: 0 none;
cursor: default;
font-family: inherit;
font-size: 100%;
font-weight: inherit;
margin: 0;
outline: 0 none;
padding: 0;
vertical-align: baseline;
}
html, body {
height: 100%;
}
article, aside, dialog, figure, footer, header, hgroup, nav, section {
display: block;
}
body {
line-height: 1.5;
}
table {
border-collapse: separate;
border-spacing: 0;
white-space: nowrap;
}
caption, th, td {
font-weight: normal;
text-align: left;
}
table, td, th {
vertical-align: middle;
}
a {
border: 0 none;
color: #000000;
text-decoration: none;
}
a, a *, input, input *, select, .button span, li, label {
cursor: pointer;
}
ul {
list-style: none outside none;
}
body {
background: none repeat scroll 0 0 #FEFEFE;
color: #000000;
font: 0.8em/1.6em "Lucida Grande",Arial,Verdana,sans-serif;
}
#body-user #header, #body-settings #header {
background: none repeat scroll 0 0 #1D2D44;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5), 0 -2px 10px #222222 inset;
height: 2.5em;
padding: 0.5em;
position: fixed;
top: 0;
width: 100%;
z-index: 100;
}
#body-login #header {
margin: -2em auto 0;
text-align: center;
height: 10em;
padding: 1em 0 .5em;
-moz-box-shadow: 0 0 1em rgba(0, 0, 0, .5);
-webkit-box-shadow: 0 0 1em rgba(0, 0, 0, .5);
box-shadow: 0 0 1em rgba(0, 0, 0, .5);
background: #1D2D44;
background: -moz-linear-gradient(top, #35537A 0%, #1D2D42 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #35537A), color-stop(100%, #1D2D42));
background: -webkit-linear-gradient(top, #35537A 0%, 1D2D42 100%);
background: -o-linear-gradient(top, #35537A 0%, #1D2D42 100%);
background: -ms-linear-gradient(top, #35537A 0%, #1D2D42 100%);
background: linear-gradient(top, #35537A 0%, #1D2D42 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#35537a', endColorstr='#1d2d42',GradientType=0 );
}
#body-login #header span {
color:#FFFFFF;
font-weight:bold;
font-size:1.6em;
line-height:5em;
}
input[type="text"], input[type="password"] {
cursor: text;
}
input, textarea, select, button, .button, #quota, div.jp-progress, .pager li a {
background: none repeat scroll 0 0 #FFFFFF;
border: 1px solid #DDDDDD;
border-radius: 0.5em 0.5em 0.5em 0.5em;
box-shadow: 0 1px 1px #FFFFFF, 0 1px 0 #BBBBBB inset;
color: #333333;
font-size: 1em;
margin: 0.3em;
outline: medium none;
padding: 0.6em 0.5em 0.4em;
width: 10em;
}
input[type="text"], input[type="password"], input[type="search"] {
background: none repeat scroll 0 0 #F8F8F8;
color: #555555;
cursor: text;
}
input[type="text"], input[type="password"], input[type="search"] {
-moz-appearance: textfield;
-moz-box-sizing: content-box;
}
input[type="text"]:hover, input[type="text"]:focus, input[type="text"]:active, input[type="password"]:hover, input[type="password"]:focus, input[type="password"]:active, .searchbox input[type="search"]:hover, .searchbox input[type="search"]:focus, .searchbox input[type="search"]:active {
background-color: #FFFFFF;
color: #333333;
opacity: 1;
}
input[type="submit"], input[type="button"], button, .button, #quota, div.jp-progress, select, .pager li a {
background: none repeat scroll 0 0 #F8F8F8;
border: 1px solid #DDDDDD;
border-radius: 0.5em 0.5em 0.5em 0.5em;
color: #555555;
cursor: pointer;
font-weight: bold;
padding: 0.4em;
text-shadow: 0 1px 0 #FFFFFF;
width: auto;
}
input[type="submit"]:hover, input[type="submit"]:focus, input[type="button"]:hover, select:hover, select:focus, select:active, input[type="button"]:focus, .button:hover {
background: none repeat scroll 0 0 #FFFFFF;
color: #333333;
}
input[type="checkbox"] {
width: auto;
}
#quota {
cursor: default;
}
#body-login input {
font-size: 1.5em;
}
#body-login input[type="text"], #body-login input[type="password"] {
width: 13em;
}
#body-login input.login {
float: right;
width: auto;
}
#remember_login {
margin: 0.8em 0.2em 0 1em;
}
.searchbox input[type="search"] {
-moz-transition: opacity 300ms ease 0s;
background: url("../img/actions/search.svg") no-repeat scroll 0.5em center #FFFFFF;
border: 0 none;
border-radius: 1em 1em 1em 1em;
font-size: 1.2em;
opacity: 0.7;
padding: 0.2em 0.5em 0.2em 1.5em;
position: fixed;
right: 3em;
top: 0.4em;
}
input.enabled[type="submit"] {
background: none repeat scroll 0 0 #66F866;
border: 1px solid #55EE55;
box-shadow: 0 1px 1px #F8F8F8, 0 1px 1px #CCFFCC inset;
}
input.highlight[type="submit"] {
background: none repeat scroll 0 0 #FFC100;
border: 1px solid #DDBB00;
box-shadow: 0 1px 1px #F8F8F8, 0 1px 1px #FFEEDD inset;
text-shadow: 0 1px 0 #FFEEDD;
}
#select_all {
margin-top: 0.4em !important;
}
#controls {
background: none repeat scroll 0 0 #F7F7F7;
border-bottom: 1px solid #EEEEEE;
box-shadow: 0 -3px 7px #000000;
height: 2.8em;
margin: 0;
padding: 0 0.5em;
position: fixed;
top: 3.5em;
width: 100%;
z-index: 50;
}
#controls .button {
display: inline-block;
}
#content {
left: 12.5em;
position: absolute;
top: 3.5em;
}
#leftcontent, .leftcontent {
background: none repeat scroll 0 0 #F8F8F8;
border-right: 1px solid #DDDDDD;
overflow: auto;
position: fixed;
top: 6.4em;
width: 20em;
}
#leftcontent li, .leftcontent li {
-moz-transition: background-color 200ms ease 0s;
background: none repeat scroll 0 0 #F8F8F8;
overflow: hidden;
padding: 0.5em 0.8em;
text-overflow: ellipsis;
white-space: nowrap;
}
#leftcontent li:hover, #leftcontent li:active, #leftcontent li.active, .leftcontent li:hover, .leftcontent li:active, .leftcontent li.active {
background: none repeat scroll 0 0 #EEEEEE;
}
#leftcontent li.active, .leftcontent li.active {
font-weight: bold;
}
#leftcontent li:hover, .leftcontent li:hover {
background: none repeat scroll 0 0 #DDDDDD;
color: #333333;
}
#leftcontent a {
display: block;
float: left;
height: 100%;
margin: 0;
padding: 0 1em 0 0;
}
#rightcontent, .rightcontent {
left: 32.5em;
overflow: auto;
position: fixed;
top: 6.4em;
}
#body-login {
background: none repeat scroll 0 0 #DDDDDD;
}
#body-login div.buttons {
text-align: center;
}
#body-login p.info {
color: #777777;
margin: 2em auto;
text-align: center;
text-shadow: 0 1px 0 #FFFFFF;
width: 22em;
}
#body-login p.info a {
color: #777777;
font-weight: bold;
}
#login {
background: none repeat scroll 0 0 #EEEEEE;
border-bottom: 1px solid #F8F8F8;
margin: 2em auto 0;
min-height: 30em;
}
#login form {
margin: 2em auto;
padding: 0;
width: 22em;
}
#login form fieldset {
background: none repeat scroll 0 center transparent;
border: 0 none;
margin-bottom: 2em;
padding: 0;
}
#login form fieldset legend {
font-weight: bold;
}
#login form label {
color: #666666;
margin: 0.95em 0 0 0.85em;
}
p.infield {
position: relative;
}
label.infield {
cursor: text !important;
}
#login form label.infield {
color: #AAAAAA;
font-size: 1.5em;
position: absolute;
}
#login #dbhostlabel, #login #directorylabel {
display: block;
margin: 0.95em 0 0.8em -8em;
}
#login form input[type="checkbox"] + label {
font-size: 1em;
margin: 0;
position: relative;
text-shadow: 0 1px 0 #FFFFFF;
}
#login form .errors {
background: none repeat scroll 0 0 #FED7D7;
border: 1px solid #FF0000;
margin: 0 0 2em;
padding: 1em;
}
#login form #selectDbType {
text-align: center;
}
#login form #selectDbType label {
background: none repeat scroll 0 0 #F8F8F8;
border: 1px solid #DDDDDD;
color: #555555;
cursor: pointer;
font-size: 1em;
font-weight: bold;
margin: 0 -0.3em 1em;
padding: 0.4em;
position: static;
text-shadow: 0 1px 0 #EEEEEE;
}
#login form #selectDbType label span {
cursor: pointer;
font-size: 0.9em;
}
#login form #selectDbType label.ui-state-hover span, #login form #selectDbType label.ui-state-active span {
color: #000000;
}
#login form #selectDbType label.ui-state-hover, #login form #selectDbType label.ui-state-active {
background-color: #CCCCCC;
color: #333333;
}
#navigation {
background: none repeat scroll 0 0 #EEEEEE;
border-right: 1px solid #CCCCCC;
box-shadow: -3px 0 7px #000000;
float: left;
height: 100%;
overflow: hidden;
padding: 0;
position: fixed;
top: 3.5em;
width: 12.5em;
z-index: 75;
}
#navigation a {
-moz-transition: background 300ms ease 0s;
background: none no-repeat scroll 1em center #EEEEEE;
border-bottom: 1px solid #DDDDDD;
border-top: 1px solid #FFFFFF;
color: #666666;
display: block;
font-size: 1.2em;
padding: 0.6em 0.5em 0.4em 2.5em;
text-decoration: none;
text-shadow: 0 1px 0 #F8F8F8;
}
#navigation a.active, #navigation a:hover, #navigation a:focus {
background-color: #DBDBDB;
border-bottom: 1px solid #CCCCCC;
border-top: 1px solid #D4D4D4;
color: #333333;
}
#navigation a.active {
background-color: #DDDDDD;
}
#navigation #settings {
bottom: 3.5em;
position: absolute;
width: 100%;
}
#expand {
cursor: pointer;
margin-bottom: -0.5em;
padding: 0.5em 10.1em 0.7em 1.2em;
position: relative;
z-index: 100;
}
#expand + span {
-moz-transition: opacity 300ms ease 0s;
color: #666666;
font-size: 1.2em;
margin: -1.7em 0 0 2.5em;
opacity: 0;
position: absolute;
text-shadow: 0 1px 0 #F8F8F8;
z-index: 99;
}
#expand:hover + span, #expand + span:hover {
cursor: pointer;
opacity: 1;
}
#logout {
padding: 1.2em 2em 0.55em 1.2em;
position: absolute;
right: 0;
top: 0;
}
.hidden {
display: none;
}
.bold {
font-weight: bold;
}
#notification {
background-color: #FFCC44;
border: 0 none;
border-bottom-left-radius: 1em;
border-bottom-right-radius: 1em;
cursor: pointer;
display: none;
left: 50%;
padding: 0 0.7em 0.3em;
position: fixed;
top: 0;
z-index: 101;
}
.action, .selectedActions a {
-moz-transition: opacity 200ms ease 0s;
opacity: 0.5;
}
.action {
height: 16px;
width: 16px;
}
#logout {
opacity: 0.8;
}
.action:hover, .selectedActions a:hover, #logout:hover {
opacity: 1;
}
table:not(.nostyle) tr {
-moz-transition: background-color 200ms ease 0s;
}
tbody tr:hover, tr:active {
background-color: #F8F8F8;
}
#body-settings .personalblock, #body-settings .helpblock {
background: none repeat scroll 0 0 #F8F8F8;
border-radius: 0.5em 0.5em 0.5em 0.5em;
color: #555555;
margin: 1em;
padding: 0.5em 1em;
text-shadow: 0 1px 0 #FFFFFF;
}
#body-settings #quota.personalblock {
padding: 0;
position: relative;
}
#body-settings #controls + .helpblock {
margin-top: 3em;
position: relative;
}
.personalblock > legend {
margin-top: 2em;
}
.personalblock > legend, th, dt, label {
font-weight: bold;
}
code {
font-family: "Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono",monospace;
}
#quota div, div.jp-play-bar, div.jp-seek-bar {
background: none repeat scroll 0 0 #E6E6E6;
border-bottom-left-radius: 0.4em;
border-top-left-radius: 0.4em;
font-weight: normal;
padding: 0;
white-space: nowrap;
}
#quotatext {
padding: 0.6em 1em;
}
div.jp-play-bar, div.jp-seek-bar {
padding: 0;
}
.pager {
display: inline;
float: right;
list-style: none outside none;
margin: 0.7em 13em 0 0;
}
.pager li {
display: inline-block;
}
li.error {
background: none no-repeat scroll 0.8em 0.8em #FFFFEE;
border: 1px solid #CCCCCC;
border-radius: 10px 10px 10px 10px;
color: #FF3B3B;
margin: 4em auto;
padding: 1em 1em 1em 4em;
width: 640px;
}
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
overflow: hidden;
text-overflow: ellipsis;
}
.hint {
background-image: url("/core/img/actions/info.png");
background-position: 0 0.3em;
background-repeat: no-repeat;
color: #777777;
padding-left: 25px;
}
.separator {
border-left: 1px solid #D3D3D3;
border-right: 1px solid #FFFFFF;
display: inline;
height: 10px;
margin: 4px;
width: 0;
}
a.bookmarklet {
background-color: #DDDDDD;
border: 1px solid #CCCCCC;
margin-top: 5px;
padding: 0 5px 2px;
text-decoration: none;
}
#dirtree {
width: 100%;
}
#filelist {
background-color: white;
height: 270px;
overflow: scroll;
width: 100%;
}
.filepicker_element_selected {
background-color: lightblue;
}
.filepicker_loader {
background-color: #333333;
height: 120px;
left: 0;
opacity: 0.3;
padding-top: 150px;
position: absolute;
text-align: center;
top: 0;
visibility: visible;
width: 100%;
}
#categoryform .scrollarea {
background: none repeat scroll 0 0 #F8F8F8;
border: 1px solid #DDDDDD;
bottom: 50px;
left: 10px;
overflow: auto;
position: absolute;
right: 10px;
top: 10px;
}
#categoryform .bottombuttons {
bottom: 10px;
position: absolute;
}
#categoryform .bottombuttons * {
float: left;
}
#categorylist li {
-moz-transition: background-color 500ms ease 0s;
background: none repeat scroll 0 0 #F8F8F8;
overflow: hidden;
padding: 0.3em 0.8em;
text-overflow: ellipsis;
white-space: nowrap;
}
#categorylist li:hover, li:active {
background: none repeat scroll 0 0 #EEEEEE;
}
#category_addinput {
width: 10em;
}
</style>
<!--[if IE 8]><style>input[type="checkbox"]{padding:0;}</style><![endif]-->
<script>
$(document).ready(function(){
$("label").inFieldLabels();
});
</script>
<?php echo $this->headMeta(); ?>
<?php echo $this->headTitle(); ?>
<?php echo $this->headStyle(); ?>
<?php echo $this->headLink(); ?>
<?php echo $this->headScript(); ?>
</head>
<body id="body-login">
<div id="login">
<header>
<div id="header">
<span>EXTRANET SCORES & DECISIONS</span>
</div>
</header>
<body>
<form method="post" action="<?=$this->url(array('controller'=>'user', 'action'=>'login'),null, true)?>">
<p style="text-align:center; color:red;"><span><?=$this->message?></span></p>
<fieldset>
<p class="infield">
<label for="user" class="infield">Identifiant</label>
<input type="text" name="login" id="user" value="" autofocus autocomplete="off" required />
</p>
<p class="infield">
<label for="password" class="infield">Mot de passe</label>
<input type="password" name="pass" id="password" value="" required />
</p>
<!-- <input type="checkbox" name="remember_login" value="1" id="remember_login" /><label for="remember_login">Remember</label> -->
<script>document.write('<input name="screenSize" type="hidden" value="'+ screen.width +'x'+screen.height + '">');</script>
<input type="submit" id="submit" class="login" value="Connexion" />
</fieldset>
</form>
<div id="wrap">
<div>
<a class="dlg" title="<?=$this->translate("Identifiants oubliés ?")?>" href="<?=$this->url(array('controller'=>'user', 'action'=>'motpasse'))?>">
<?=$this->translate("Identifiants oubliés ?")?></a>
<script>
$('a.dlg').on('click', function(e){
e.preventDefault();
var title = $(this).attr('title');
var href = $(this).attr('href');
var dlgOpts = {
bgiframe: true,
title: title,
width: 710,
height: 530,
modal: true,
resizable: false,
open: function(event, ui) {
$(this).html('Chargement...');
$(this).load(href);
},
buttons: {'Fermer': function() { $(this).dialog('close'); }},
close: function() { $('#dlg').remove(); }};
$('<div id="dlg"></div>').dialog(dlgOpts);
return false;
});
</script>
</div>
<div class="container">
</div>
<form class="form-signin" method="post" action="<?=$this->url(array('controller'=>'user', 'action'=>'login'),null, true)?>">
<footer>
<p class="info">
<a href="http://www.scores-decisions.com/">Scores & Décisions SAS</a>
</p>
</footer>
<h2 class="form-signin-heading">Extranet <small>Scores & Décisions</small></h2>
<div style="text-align:center;"><p class="text-danger"><span><?=$this->message?></span></p></div>
<input name="login" value="" type="text" class="form-control" placeholder="Identifiant" autofocus autocomplete="off" required />
<input name="pass" value="" type="password" class="form-control" placeholder="Mot de passe" required/>
<script>document.write('<input name="screenSize" type="hidden" value="'+ screen.width +'x'+screen.height + '">');</script>
<button class="btn btn-lg btn-primary btn-block clearfix"" type="submit">Connexion</button>
</form>
<div class="form-signin">
<a class="dlg pull-right" title="<?=$this->translate("Identifiants oubliés ?")?>" href="<?=$this->url(array('controller'=>'user', 'action'=>'motpasse'))?>">
<?=$this->translate("Identifiants oubliés ?")?></a>
<script>
$('a.dlg').on('click', function(e){
e.preventDefault();
var title = $(this).attr('title');
var href = $(this).attr('href');
var dlgOpts = {
bgiframe: true,
title: title,
width: 710,
height: 530,
modal: true,
resizable: false,
open: function(event, ui) {
$(this).html('Chargement...');
$(this).load(href);
},
buttons: {'Fermer': function() { $(this).dialog('close'); }},
close: function() { $('#dlg').remove(); }};
$('<div id="dlg"></div>').dialog(dlgOpts);
return false;
});
</script>
</div>
</div>
</div>
<div id="footer">
<div class="container">
<p class="text-muted credit"> &copy; <?=date('Y')?> <a href="http://www.scores-decisions.com">Scores & Décisions SAS</a>.</p>
</div>
</div>
<?php echo $this->inlineScript(); ?>
</body>
</html>

View File

@ -6,19 +6,34 @@
<?php } else {?>
<?php echo $this->doctype()?>
<?php echo $this->doctype(); ?>
<html>
<head>
<?=$this->headMeta();?>
<?=$this->headTitle();?>
<?php echo $this->headMeta(); ?>
<?php echo $this->headTitle(); ?>
<?php echo $this->headStyle(); ?>
<?php echo $this->headLink(); ?>
</head>
<body>
<h4 class="logout"><?=$this->translate("Vous avez été déconnecté.")?></h4>
<p><?=$this->message?></p>
<h5 class="logout">
<?=$this->translate("Si cette page ne disparait pas au bout de %1$s seconde(s)", $this->refresh)?>,
<?=$this->translate("veuillez cliquer ")?><a href="<?=$this->url?>"><?=$this->translate("ici")?></a>
</h5>
<div id="wrap">
<div class="container">
<h4><?=$this->translate("Vous avez été déconnecté.")?></h4>
<p><?=$this->message?></p>
<h5 class="logout">
<?=$this->translate("Si cette page ne disparait pas au bout de %1\$s seconde(s)", $this->refresh)?>,
<?=$this->translate("veuillez cliquer ")?><a href="<?=$this->url?>"><?=$this->translate("ici")?></a>
</h5>
</div>
</div>
<div id="footer">
<div class="container">
<p class="text-muted credit"> &copy; <?=date('Y')?> <a href="http://www.scores-decisions.com">Scores & Décisions SAS</a>.</p>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,35 @@
<?php
Class Zend_View_Helper_NewsDate extends Zend_View_Helper_Abstract
{
protected $mois = array (
'Jan' => 1,
'Feb' => 2,
'Mar' => 3,
'Apr' => 4,
'May' => 5,
'Jun' => 6,
'Jul' => 7,
'Aug' => 8,
'Sep' => 9,
'Oct' => 10,
'Nov' => 11,
'Dev' => 12,
);
public function NewsDate($date)
{
$tmp = explode(', ', $date);
$tabDate = explode(' ', $tmp[1]);
$tabTime = explode(':', $tabDate[3]);
$timestamp = gmmktime(
$tabTime[0]-1,
$tabTime[1],
$tabTime[2],
$this->mois[$tabDate[1]],
$tabDate[0],
$tabDate[2]
);
$pubDate = date('d/m/Y à H:i', $timestamp);
return $pubDate;
}
}

View File

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

View File

@ -0,0 +1,35 @@
<?php if ($this->source == 'google'):?>
<div id="infogeo_photo">
<?=$this->action('streetview', 'identite', null, array(
'lat' => $this->infos->GeoLat,
'lon' => $this->infos->GeoLon,
'siret' => $this->infos->Siret,
));?>
</div>
<?php elseif ($this->source == 'mappy'):?>
<div><img id="pp-cb-thumb" width="300px" /></div>
<script src="<?=$this->lienJs?>"></script>
<script type="text/javascript">
$(document).ready(function() {
var photoService = new Mappy.api.visiocity.PhotoService();
var geo = new Mappy.api.geolocation.Geocoder();
var address = "<?=$this->adresse?>";
geo.geocode(address, function(result) {
photoService.search(result[0], "f", serviceHandler);
}, function(error) {});
var serviceHandler = function(result) {
if (result instanceof Mappy.api.visiocity.Frontage) {
var current = result.getCurrent();
var img = $('<img src="' + current.getURL(320, null) +
'" alt="' + current.getDescription() +
'" width="300px" />');
$('#pp-cb-thumb').replaceWith(img);
}
};
});
</script>
<?php endif;?>

View File

@ -0,0 +1,18 @@
<?php if ( $this->texte ) {?>
<tr>
<td width="50" class="aide">
<?php if ( !empty($this->aide) ) {?>
<img src="/themes/default/images/interfaces/aideligne.png" width="16" height="16" style="display:none;"/>
<div id="<?=$this->id?>" style="display:none;"><?=$this->aide?></div>
<?php } ?></td>
<td width="200" class="StyleInfoLib"><?=$this->label?></td>
<?php
if (!empty($this->titre)) {
$titre = ' title="'.$this->titre.'"';
} else {
$titre = '';
}
?>
<td width="350" class="StyleInfoData"<?=$titre?>><?=$this->texte?></td>
</tr>
<?php } ?>

View File

@ -0,0 +1,81 @@
<div id="center">
<?php if ( empty($this->AutrePage) ) {?>
<h2 class="titre">FICHE D'IDENTIT&Eacute;</h2>
<?php }?>
<div class="paragraph">
<table>
<?php
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Siret']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['SiretSiege']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['TvaNumero']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Isin']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Capitalisation']);
echo $this->partial('identite/fiche-item.phtml', $this->logo);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['NumRC']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['AutreId']);
//echo $this->partial('identite/fiche-item.phtml', $this->dBlock['NumRM']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Actif']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['SituationJuridique']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['AutreSiren']);
?>
</table>
</div>
<div data-role="content">
<div data-role="collapsible-set">
<div data-role="collapsible">
<h3>Raison sociale &amp; Coordonnées</h3>
<table>
<?php
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['RaisonSociale']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['NomCommercial']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['EnseigneSigle']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['FormeJuridique']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['DateImmat']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['DateCreaEn']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['DateCreaEt']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Adresse']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Zones']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Tel']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Fax']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Web']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Mail']);
?>
</table>
</div>
</div>
<div data-role="collapsible">
<h3>Activité(s) &amp; Chiffre d'affaires</h3>
<table>
<?php
//Remplace Siren pour texte
//$this->dBlock['ActiviteEn']['texte'] = $this->RemplaceSiren($this->dBlock['ActiviteEn']['texte']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['ActiviteEn']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['ActiviteEt']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Naf4']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Nace']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['NatureActivite']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['SurfaceMagasin']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['OrigineFond']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['TypeExploitation']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Saisonnalite']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['NbEtabActif']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Capital']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['ChiffreAffaire']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Dirigeants']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Effectif']);
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['EffectifEtab']);
?>
</table>
</div>
<div data-role="collapsible">
<h3>Localisation géographique</h3>
<?=$this->action('geo', 'identite', null, array('infos' => $this->infos));?>
</div>
<div data-role="collapsible">
<h3>Information presse (Source Google News ©)</h3>
<?=$this->action('news', 'identite');?>
</div>
</div>
</div>

View File

@ -0,0 +1,37 @@
<h2>Localisation géographique</h2>
<div class="paragraph">
<div id="infogeo" class="clearfix">
<div id="infogeo_txt">
<?php if ( $this->infos->GeoLat && $this->infos->GeoLon ):?>
<span id=geolocalisation>
<b>Information géographique :</b><br/>
Latitude : <?=$this->decLat?> (<?=$this->infos->GeoLat?>)<br />
Longitude : <?=$this->decLon?> (<?=$this->infos->GeoLon?>)<br />
</span>
<a id="lien-google" href="<?=$this->mapsHref?>" target="_blank">
Afficher l'adresse sur Google Map &copy;</a><br/>
<br/>
<?endif;?>
<b>Code commune / Rivoli :</b><br/>
<?=$this->infos->Dept.' '.$this->infos->codeCommune.' / '.$this->infos->Rivoli; ?>
<?php
if (count($this->infos->InfosIris)>0){
$InfosIris = $this->infos->InfosIris;
$codComIris = str_replace($InfosIris->codIris, '', $InfosIris->codComIris);
?>
<br/><br/><b>Iris :</b>
<?php if (intval($InfosIris->codIris) == 0){ ?>
<br/>Commune non découpée en Iris
<?php } else {?>
<br/>Code : <?=$codComIris?> <?=$InfosIris->codIris?>
<br/>Libellé : <a title="Consulter le plan d'assemblage de la commune" href="<?=$this->url(array('controller'=>'identite', 'action'=>'iris', 'code'=>$codComIris), null, true)?>" target="_blank"><?=$InfosIris->libIris?></a>
<img title="<?=$InfosIris->typIris?>" style="vertical-align:middle;" src="/themes/default/images/info.gif">
<?php }?>
<?php }?>
</div>
<?php if($this->facade):?>
<?=$this->action('facade', 'identite', null, array('infos' => $this->infos));?>
<?php endif;?>
</div>
</div>

View File

@ -0,0 +1 @@
<img src="/fichier/imgcache/<?php echo $this->name;?>" />

View File

@ -0,0 +1,16 @@
<?php if(!$this->disable):?>
<div id="news">
<h2>Information presse (Source Google News &copy;)</h2>
<div id="paragraph">
<ul>
<?php foreach($this->items as $item):?>
<li style="padding-top:2px;">
<a target="_blank" href="<?=$item->link()?>">
Le <?=$this->NewsDate($item->pubDate())?> - <?=$item->title()?>
</a>
</li>
<?php endforeach;?>
</ul>
</div>
</div>
<?php endif;?>

View File

@ -0,0 +1,17 @@
<?php if ($this->url) {?>
<div id="legende-photo">Cliché à l'approche de l'adresse postale.</div>
<img id="pp-cb-thumb" src="<?=$this->url?>" width="320" height="320" />
<div>
<a class="street-heading" href="<?=$this->url(array(
'controller'=>'identite','action'=>'streetview', 'lat'=>$this->lat, 'lon'=>$this->lon, 'heading'=>$this->pagePrec))?>">&lt;</a>
-
<a class="street-heading" href="<?=$this->url(array(
'controller'=>'identite','action'=>'streetview', 'lat'=>$this->lat, 'lon'=>$this->lon, 'heading'=>$this->pageSuiv))?>">&gt;</a>
</div>
<script>
$('a.street-heading').click(function(e){
e.preventDefault();
$('#infogeo_photo').load($(this).attr('href'));
});
</script>
<?php }?>

View File

@ -0,0 +1,28 @@
<?=$this->doctype()?>
<html>
<head>
<?=$this->headMeta()?>
<?=$this->headTitle()?>
<?=$this->headStyle()?>
<?=$this->headLink()?>
<?=$this->headScript()?>
</head>
<body>
<div data-role="page">
<div data-role="header" role="banner">
<h2 class="ui-title" role="heading" aria-level="1">Extranet</h2>
<a href="#" data-role="button" role="button">Menu</a>
<a href="#" data-role="button" role="button">Search</a>
</div><!-- /header -->
<div role="main" class="ui-content">
<?=$this->layout()->content?>
</div><!-- /content -->
<div data-role="footer" data-position="fixed">
<h4>Scores & Decisions</h4>
</div><!-- /footer -->
</div><!-- /page -->
</body>
</html>

View File

@ -1,27 +0,0 @@
<?=$this->doctype()?>
<html>
<head>
<?=$this->headMeta()?>
<?=$this->headTitle()?>
<?=$this->headStyle()?>
<?=$this->headLink()?>
<?=$this->headScript()?>
</head>
<body>
<div data-role="page" data-theme="b">
<div data-role="header">
<a href="<?=$this->url(array('controller'=>'index'), null, true)?>" data-role="button"
data-icon="home" data-iconpos="notext">Menu</a>
<h1><?=$this->headTitle()?></h1>
<a href="<?=$this->url(array('controller'=>'index'), null, true)?>" data-role="button"
data-icon="search" data-iconpos="notext">Recherche</a>
</div>
<div data-role="content">
<?=$this->layout()->content?>
</div>
<div data-role="footer" data-position="fixed">
<h4>Menu</h4>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,36 @@
<?=$this->doctype()?>
<html>
<head>
<?=$this->headMeta()?>
<?=$this->headTitle()?>
<?=$this->headStyle()?>
<?=$this->headLink()?>
<?=$this->headScript()?>
</head>
<body>
<div data-role="page">
<div data-role="header" role="banner">
<h2 class="ui-title" role="heading" aria-level="1">Extranet</h2>
</div><!-- /header -->
<div role="main" class="ui-content">
<form method="post" action="<?=$this->url(array('controller'=>'user', 'action'=>'login'),null, true)?>">
<label for="user" class="ui-hidden-accessible">Identifiant</label>
<input name="login" id="user" placeholder="Identifiant" value="" type="text" required>
<label for="password" class="ui-hidden-accessible">Mot de passe</label>
<input name="pass" id="password" placeholder="Mot de passe" value="" type="password" required>
<input value="Connexion" data-icon="user" type="button">
</form>
</div><!-- /content -->
<div data-role="footer" data-position="fixed">
<h4>Scores & Décisions SAS</h4>
</div><!-- /footer -->
</div><!-- /page -->
</body>
</html>

248
bin/classmap_generator.php Normal file
View File

@ -0,0 +1,248 @@
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@zend.com so we can send you a copy immediately.
*
* @category Zend
* @package Zend_Loader
* @subpackage Exception
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
/**
* Generate class maps for use with autoloading.
*
* Usage:
* --help|-h Get usage message
* --library|-l [ <string> ] Library to parse; if none provided, assumes
* current directory
* --output|-o [ <string> ] Where to write autoload file; if not provided,
* assumes "autoload_classmap.php" in library directory
* --append|-a Append to autoload file if it exists
* --overwrite|-w Whether or not to overwrite existing autoload
* file
* --ignore|-i [ <string> ] Comma-separated namespaces to ignore
*/
$libPath = dirname(__FILE__) . '/../library';
if (!is_dir($libPath)) {
// Try to load StandardAutoloader from include_path
if (false === include('Zend/Loader/StandardAutoloader.php')) {
echo "Unable to locate autoloader via include_path; aborting" . PHP_EOL;
exit(2);
}
} else {
// Try to load StandardAutoloader from library
if (false === include(dirname(__FILE__) . '/../library/Zend/Loader/StandardAutoloader.php')) {
echo "Unable to locate autoloader via library; aborting" . PHP_EOL;
exit(2);
}
}
// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
realpath($libPath),
get_include_path(),
)));
$libraryPath = getcwd();
// Setup autoloading
$loader = new Zend_Loader_StandardAutoloader(array('autoregister_zf' => true));
$loader->setFallbackAutoloader(true);
$loader->register();
$rules = array(
'help|h' => 'Get usage message',
'library|l-s' => 'Library to parse; if none provided, assumes current directory',
'output|o-s' => 'Where to write autoload file; if not provided, assumes "autoload_classmap.php" in library directory',
'append|a' => 'Append to autoload file if it exists',
'overwrite|w' => 'Whether or not to overwrite existing autoload file',
'ignore|i-s' => 'Comma-separated namespaces to ignore',
);
try {
$opts = new Zend_Console_Getopt($rules);
$opts->parse();
} catch (Zend_Console_Getopt_Exception $e) {
echo $e->getUsageMessage();
exit(2);
}
if ($opts->getOption('h')) {
echo $opts->getUsageMessage();
exit(0);
}
$ignoreNamespaces = array();
if (isset($opts->i)) {
$ignoreNamespaces = explode(',', $opts->i);
}
$relativePathForClassmap = '';
if (isset($opts->l)) {
if (!is_dir($opts->l)) {
echo 'Invalid library directory provided' . PHP_EOL
. PHP_EOL;
echo $opts->getUsageMessage();
exit(2);
}
$libraryPath = $opts->l;
}
$libraryPath = str_replace(DIRECTORY_SEPARATOR, '/', realpath($libraryPath));
$usingStdout = false;
$appending = $opts->getOption('a');
$output = $libraryPath . '/autoload_classmap.php';
if (isset($opts->o)) {
$output = $opts->o;
if ('-' == $output) {
$output = STDOUT;
$usingStdout = true;
} elseif (is_dir($output)) {
echo 'Invalid output file provided' . PHP_EOL
. PHP_EOL;
echo $opts->getUsageMessage();
exit(2);
} elseif (!is_writeable(dirname($output))) {
echo "Cannot write to '$output'; aborting." . PHP_EOL
. PHP_EOL
. $opts->getUsageMessage();
exit(2);
} elseif (file_exists($output) && !$opts->getOption('w') && !$appending) {
echo "Autoload file already exists at '$output'," . PHP_EOL
. "but 'overwrite' or 'appending' flag was not specified; aborting." . PHP_EOL
. PHP_EOL
. $opts->getUsageMessage();
exit(2);
} else {
// We need to add the $libraryPath into the relative path that is created in the classmap file.
$classmapPath = str_replace(DIRECTORY_SEPARATOR, '/', realpath(dirname($output)));
// Simple case: $libraryPathCompare is in $classmapPathCompare
if (strpos($libraryPath, $classmapPath) === 0) {
$relativePathForClassmap = substr($libraryPath, strlen($classmapPath) + 1) . '/';
} else {
$libraryPathParts = explode('/', $libraryPath);
$classmapPathParts = explode('/', $classmapPath);
// Find the common part
$count = count($classmapPathParts);
for ($i = 0; $i < $count; $i++) {
if (!isset($libraryPathParts[$i]) || $libraryPathParts[$i] != $classmapPathParts[$i]) {
// Common part end
break;
}
}
// Add parent dirs for the subdirs of classmap
$relativePathForClassmap = str_repeat('../', $count - $i);
// Add library subdirs
$count = count($libraryPathParts);
for (; $i < $count; $i++) {
$relativePathForClassmap .= $libraryPathParts[$i] . '/';
}
}
}
}
if (!$usingStdout) {
if ($appending) {
echo "Appending to class file map '$output' for library in '$libraryPath'..." . PHP_EOL;
} else {
echo "Creating class file map for library in '$libraryPath'..." . PHP_EOL;
}
}
// Get the ClassFileLocator, and pass it the library path
$l = new Zend_File_ClassFileLocator($libraryPath);
// Iterate over each element in the path, and create a map of
// classname => filename, where the filename is relative to the library path
$map = new stdClass;
foreach ($l as $file) {
$filename = str_replace($libraryPath . '/', '', str_replace(DIRECTORY_SEPARATOR, '/', $file->getPath()) . '/' . $file->getFilename());
// Add in relative path to library
$filename = $relativePathForClassmap . $filename;
foreach ($file->getClasses() as $class) {
foreach ($ignoreNamespaces as $ignoreNs) {
if ($ignoreNs == substr($class, 0, strlen($ignoreNs))) {
continue 2;
}
}
$map->{$class} = $filename;
}
}
if ($appending) {
$content = var_export((array) $map, true) . ';';
// Prefix with dirname(__FILE__); modify the generated content
$content = preg_replace("#(=> ')#", "=> dirname(__FILE__) . '", $content);
// Fix \' strings from injected DIRECTORY_SEPARATOR usage in iterator_apply op
$content = str_replace("\\'", "'", $content);
// Convert to an array and remove the first "array("
$content = explode("\n", $content);
array_shift($content);
// Load existing class map file and remove the closing "bracket ");" from it
$existing = file($output, FILE_IGNORE_NEW_LINES);
array_pop($existing);
// Merge
$content = implode("\n", array_merge($existing, $content));
} else {
// Create a file with the class/file map.
// Stupid syntax highlighters make separating < from PHP declaration necessary
$content = '<' . "?php\n"
. "// Generated by ZF's ./bin/classmap_generator.php\n"
. 'return ' . var_export((array) $map, true) . ';';
// Prefix with dirname(__FILE__); modify the generated content
$content = preg_replace("#(=> ')#", "=> dirname(__FILE__) . '", $content);
// Fix \' strings from injected DIRECTORY_SEPARATOR usage in iterator_apply op
$content = str_replace("\\'", "'", $content);
}
// Remove unnecessary double-backslashes
$content = str_replace('\\\\', '\\', $content);
// Exchange "array (" width "array("
$content = str_replace('array (', 'array(', $content);
// Align "=>" operators to match coding standard
preg_match_all('(\n\s+([^=]+)=>)', $content, $matches, PREG_SET_ORDER);
$maxWidth = 0;
foreach ($matches as $match) {
$maxWidth = max($maxWidth, strlen($match[1]));
}
$content = preg_replace('(\n\s+([^=]+)=>)e', "'\n \\1' . str_repeat(' ', " . $maxWidth . " - strlen('\\1')) . '=>'", $content);
// Make the file end by EOL
$content = rtrim($content, "\n") . "\n";
// Write the contents to disk
file_put_contents($output, $content);
if (!$usingStdout) {
echo "Wrote classmap file to '" . realpath($output) . "'" . PHP_EOL;
}

44
bin/zf.bat Normal file
View File

@ -0,0 +1,44 @@
@ECHO off
REM Zend Framework
REM
REM LICENSE
REM
REM This source file is subject to the new BSD license that is bundled
REM with this package in the file LICENSE.txt.
REM It is also available through the world-wide-web at this URL:
REM http://framework.zend.com/license/new-bsd
REM If you did not receive a copy of the license and are unable to
REM obtain it through the world-wide-web, please send an email
REM to license@zend.com so we can send you a copy immediately.
REM
REM Zend
REM Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
REM http://framework.zend.com/license/new-bsd New BSD License
REM Test to see if this was installed via pear
SET ZTMPZTMPZTMPZ=@ph
SET TMPZTMPZTMP=%ZTMPZTMPZTMPZ%p_bin@
REM below @php_bin@
FOR %%x IN ("@php_bin@") DO (if %%x=="%TMPZTMPZTMP%" GOTO :NON_PEAR_INSTALLED)
GOTO PEAR_INSTALLED
:NON_PEAR_INSTALLED
REM Assume php.exe is executable, and that zf.php will reside in the
REM same file as this one
SET PHP_BIN=php.exe
SET PHP_DIR=%~dp0
GOTO RUN
:PEAR_INSTALLED
REM Assume this was installed via PEAR and use replacements php_bin & php_dir
SET PHP_BIN=@php_bin@
SET PHP_DIR=@php_dir@
GOTO RUN
:RUN
SET ZF_SCRIPT=%PHP_DIR%\zf.php
"%PHP_BIN%" -d safe_mode=Off -f "%ZF_SCRIPT%" -- %*

624
bin/zf.php Normal file
View File

@ -0,0 +1,624 @@
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@zend.com so we can send you a copy immediately.
*
* @category Zend
* @package Zend_Tool
* @subpackage Framework
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
/**
* ZF
*
* @category Zend
* @package Zend_Tool
* @subpackage Framework
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class ZF
{
/**
* @var bool
*/
protected $_clientLoaded = false;
/**
* @var string
*/
protected $_mode = 'runTool';
/**
* @var array of messages
*/
protected $_messages = array();
/**
* @var string
*/
protected $_homeDirectory = null;
/**
* @var string
*/
protected $_storageDirectory = null;
/**
* @var string
*/
protected $_configFile = null;
/**
* main()
*
* @return void
*/
public static function main()
{
$zf = new self();
$zf->bootstrap();
$zf->run();
}
/**
* bootstrap()
*
* @return ZF
*/
public function bootstrap()
{
// detect settings
$this->_mode = $this->_detectMode();
$this->_homeDirectory = $this->_detectHomeDirectory();
$this->_storageDirectory = $this->_detectStorageDirectory();
$this->_configFile = $this->_detectConfigFile();
// setup
$this->_setupPHPRuntime();
$this->_setupToolRuntime();
}
/**
* run()
*
* @return ZF
*/
public function run()
{
switch ($this->_mode) {
case 'runError':
$this->_runError();
$this->_runInfo();
break;
case 'runSetup':
if ($this->_runSetup() === false) {
$this->_runInfo();
}
break;
case 'runInfo':
$this->_runInfo();
break;
case 'runTool':
default:
$this->_runTool();
break;
}
return $this;
}
/**
* _detectMode()
*
* @return ZF
*/
protected function _detectMode()
{
$arguments = $_SERVER['argv'];
$mode = 'runTool';
if (!isset($arguments[0])) {
return $mode;
}
if ($arguments[0] == $_SERVER['PHP_SELF']) {
$this->_executable = array_shift($arguments);
}
if (!isset($arguments[0])) {
return $mode;
}
if ($arguments[0] == '--setup') {
$mode = 'runSetup';
} elseif ($arguments[0] == '--info') {
$mode = 'runInfo';
}
return $mode;
}
/**
* _detectHomeDirectory() - detect the home directory in a variety of different places
*
* @param bool $mustExist Should the returned value already exist in the file system
* @param bool $returnMessages Should it log messages for output later
* @return string
*/
protected function _detectHomeDirectory($mustExist = true, $returnMessages = true)
{
$homeDirectory = null;
$homeDirectory = getenv('ZF_HOME'); // check env var ZF_HOME
if ($homeDirectory) {
$this->_logMessage('Home directory found in environment variable ZF_HOME with value ' . $homeDirectory, $returnMessages);
if (!$mustExist || ($mustExist && file_exists($homeDirectory))) {
return $homeDirectory;
} else {
$this->_logMessage('Home directory does not exist at ' . $homeDirectory, $returnMessages);
}
}
$homeDirectory = getenv('HOME'); // HOME environment variable
if ($homeDirectory) {
$this->_logMessage('Home directory found in environment variable HOME with value ' . $homeDirectory, $returnMessages);
if (!$mustExist || ($mustExist && file_exists($homeDirectory))) {
return $homeDirectory;
} else {
$this->_logMessage('Home directory does not exist at ' . $homeDirectory, $returnMessages);
}
}
$homeDirectory = getenv('HOMEPATH');
if ($homeDirectory) {
$this->_logMessage('Home directory found in environment variable HOMEPATH with value ' . $homeDirectory, $returnMessages);
if (!$mustExist || ($mustExist && file_exists($homeDirectory))) {
return $homeDirectory;
} else {
$this->_logMessage('Home directory does not exist at ' . $homeDirectory, $returnMessages);
}
}
$homeDirectory = getenv('USERPROFILE');
if ($homeDirectory) {
$this->_logMessage('Home directory found in environment variable USERPROFILE with value ' . $homeDirectory, $returnMessages);
if (!$mustExist || ($mustExist && file_exists($homeDirectory))) {
return $homeDirectory;
} else {
$this->_logMessage('Home directory does not exist at ' . $homeDirectory, $returnMessages);
}
}
return false;
}
/**
* _detectStorageDirectory() - Detect where the storage directory is from a variaty of possiblities
*
* @param bool $mustExist Should the returned value already exist in the file system
* @param bool $returnMessages Should it log messages for output later
* @return string
*/
protected function _detectStorageDirectory($mustExist = true, $returnMessages = true)
{
$storageDirectory = false;
$storageDirectory = getenv('ZF_STORAGE_DIR');
if ($storageDirectory) {
$this->_logMessage('Storage directory path found in environment variable ZF_STORAGE_DIR with value ' . $storageDirectory, $returnMessages);
if (!$mustExist || ($mustExist && file_exists($storageDirectory))) {
return $storageDirectory;
} else {
$this->_logMessage('Storage directory does not exist at ' . $storageDirectory, $returnMessages);
}
}
$homeDirectory = ($this->_homeDirectory) ? $this->_homeDirectory : $this->_detectHomeDirectory(true, false);
if ($homeDirectory) {
$storageDirectory = $homeDirectory . '/.zf/';
$this->_logMessage('Storage directory assumed in home directory at location ' . $storageDirectory, $returnMessages);
if (!$mustExist || ($mustExist && file_exists($storageDirectory))) {
return $storageDirectory;
} else {
$this->_logMessage('Storage directory does not exist at ' . $storageDirectory, $returnMessages);
}
}
return false;
}
/**
* _detectConfigFile() - Detect config file location from a variety of possibilities
*
* @param bool $mustExist Should the returned value already exist in the file system
* @param bool $returnMessages Should it log messages for output later
* @return string
*/
protected function _detectConfigFile($mustExist = true, $returnMessages = true)
{
$configFile = null;
$configFile = getenv('ZF_CONFIG_FILE');
if ($configFile) {
$this->_logMessage('Config file found environment variable ZF_CONFIG_FILE at ' . $configFile, $returnMessages);
if (!$mustExist || ($mustExist && file_exists($configFile))) {
return $configFile;
} else {
$this->_logMessage('Config file does not exist at ' . $configFile, $returnMessages);
}
}
$homeDirectory = ($this->_homeDirectory) ? $this->_homeDirectory : $this->_detectHomeDirectory(true, false);
if ($homeDirectory) {
$configFile = $homeDirectory . '/.zf.ini';
$this->_logMessage('Config file assumed in home directory at location ' . $configFile, $returnMessages);
if (!$mustExist || ($mustExist && file_exists($configFile))) {
return $configFile;
} else {
$this->_logMessage('Config file does not exist at ' . $configFile, $returnMessages);
}
}
$storageDirectory = ($this->_storageDirectory) ? $this->_storageDirectory : $this->_detectStorageDirectory(true, false);
if ($storageDirectory) {
$configFile = $storageDirectory . '/zf.ini';
$this->_logMessage('Config file assumed in storage directory at location ' . $configFile, $returnMessages);
if (!$mustExist || ($mustExist && file_exists($configFile))) {
return $configFile;
} else {
$this->_logMessage('Config file does not exist at ' . $configFile, $returnMessages);
}
}
return false;
}
/**
* _setupPHPRuntime() - parse the config file if it exists for php ini values to set
*
* @return void
*/
protected function _setupPHPRuntime()
{
// set php runtime settings
ini_set('display_errors', true);
// support the changing of the current working directory, necessary for some providers
$cwd = getenv('ZEND_TOOL_CURRENT_WORKING_DIRECTORY');
if ($cwd != '' && realpath($cwd)) {
chdir($cwd);
}
if (!$this->_configFile) {
return;
}
$zfINISettings = parse_ini_file($this->_configFile);
$phpINISettings = ini_get_all();
foreach ($zfINISettings as $zfINIKey => $zfINIValue) {
if (substr($zfINIKey, 0, 4) === 'php.') {
$phpINIKey = substr($zfINIKey, 4);
if (array_key_exists($phpINIKey, $phpINISettings)) {
ini_set($phpINIKey, $zfINIValue);
}
}
}
}
/**
* _setupToolRuntime() - setup the tools include_path and load the proper framwork parts that
* enable Zend_Tool to work.
*
* @return void
*/
protected function _setupToolRuntime()
{
$includePathPrepend = getenv('ZEND_TOOL_INCLUDE_PATH_PREPEND');
$includePathFull = getenv('ZEND_TOOL_INCLUDE_PATH');
// check if the user has not provided anything
if (!($includePathPrepend || $includePathFull)) {
if ($this->_tryClientLoad()) {
return;
}
}
// if ZF is not in the include_path, but relative to this file, put it in the include_path
if ($includePathPrepend || $includePathFull) {
if (isset($includePathPrepend) && ($includePathPrepend !== false)) {
set_include_path($includePathPrepend . PATH_SEPARATOR . get_include_path());
} elseif (isset($includePathFull) && ($includePathFull !== false)) {
set_include_path($includePathFull);
}
}
if ($this->_tryClientLoad()) {
return;
}
$zfIncludePath['relativePath'] = dirname(__FILE__) . '/../library/';
if (file_exists($zfIncludePath['relativePath'] . 'Zend/Tool/Framework/Client/Console.php')) {
set_include_path(realpath($zfIncludePath['relativePath']) . PATH_SEPARATOR . get_include_path());
}
if (!$this->_tryClientLoad()) {
$this->_mode = 'runError';
return;
}
}
/**
* _tryClientLoad() - Attempt to load the Zend_Tool_Framework_Client_Console to enable the tool to run.
*
* This method will return false if its not loaded to allow the consumer to alter the environment in such
* a way that it can be called again to try loading the proper file/class.
*
* @return bool if the client is actuall loaded or not
*/
protected function _tryClientLoad()
{
$this->_clientLoaded = false;
$fh = @fopen('Zend/Tool/Framework/Client/Console.php', 'r', true);
if (!$fh) {
return $this->_clientLoaded; // false
} else {
fclose($fh);
unset($fh);
include 'Zend/Tool/Framework/Client/Console.php';
$this->_clientLoaded = class_exists('Zend_Tool_Framework_Client_Console');
}
return $this->_clientLoaded;
}
/**
* _runError() - Output the error screen that tells the user that the tool was not setup
* in a sane way
*
* @return void
*/
protected function _runError()
{
echo <<<EOS
***************************** ZF ERROR ********************************
In order to run the zf command, you need to ensure that Zend Framework
is inside your include_path. There are a variety of ways that you can
ensure that this zf command line tool knows where the Zend Framework
library is on your system, but not all of them can be described here.
The easiest way to get the zf command running is to give it the include
path via an environment variable ZEND_TOOL_INCLUDE_PATH or
ZEND_TOOL_INCLUDE_PATH_PREPEND with the proper include path to use,
then run the command "zf --setup". This command is designed to create
a storage location for your user, as well as create the zf.ini file
that the zf command will consult in order to run properly on your
system.
Example you would run:
$ ZEND_TOOL_INCLUDE_PATH=/path/to/library zf --setup
Your are encourged to read more in the link that follows.
EOS;
}
/**
* _runInfo() - this command will produce information about the setup of this script and
* Zend_Tool
*
* @return void
*/
protected function _runInfo()
{
echo 'Zend_Tool & CLI Setup Information' . PHP_EOL
. '(available via the command line "zf --info")'
. PHP_EOL;
echo ' * ' . implode(PHP_EOL . ' * ', $this->_messages) . PHP_EOL;
echo PHP_EOL;
echo 'To change the setup of this tool, run: "zf --setup"';
echo PHP_EOL;
}
/**
* _runSetup() - parse the request to see which setup command to run
*
* @return void
*/
protected function _runSetup()
{
$setupCommand = (isset($_SERVER['argv'][2])) ? $_SERVER['argv'][2] : null;
switch ($setupCommand) {
case 'storage-directory':
$this->_runSetupStorageDirectory();
break;
case 'config-file':
$this->_runSetupConfigFile();
break;
default:
$this->_runSetupMoreInfo();
break;
}
}
/**
* _runSetupStorageDirectory() - if the storage directory does not exist, create it
*
* @return void
*/
protected function _runSetupStorageDirectory()
{
$storageDirectory = $this->_detectStorageDirectory(false, false);
if (file_exists($storageDirectory)) {
echo 'Directory already exists at ' . $storageDirectory . PHP_EOL
. 'Cannot create storage directory.';
return;
}
mkdir($storageDirectory);
echo 'Storage directory created at ' . $storageDirectory . PHP_EOL;
}
/**
* _runSetupConfigFile()
*
* @return void
*/
protected function _runSetupConfigFile()
{
$configFile = $this->_detectConfigFile(false, false);
if (file_exists($configFile)) {
echo 'File already exists at ' . $configFile . PHP_EOL
. 'Cannot write new config file.';
return;
}
$includePath = get_include_path();
$contents = 'php.include_path = "' . $includePath . '"';
file_put_contents($configFile, $contents);
$iniValues = ini_get_all();
if ($iniValues['include_path']['global_value'] != $iniValues['include_path']['local_value']) {
echo 'NOTE: the php include_path to be used with the tool has been written' . PHP_EOL
. 'to the config file, using ZEND_TOOL_INCLUDE_PATH (or other include_path setters)' . PHP_EOL
. 'is no longer necessary.' . PHP_EOL . PHP_EOL;
}
echo 'Config file written to ' . $configFile . PHP_EOL;
}
/**
* _runSetupMoreInfo() - return more information about what can be setup, and what is setup
*
* @return void
*/
protected function _runSetupMoreInfo()
{
$homeDirectory = $this->_detectHomeDirectory(false, false);
$storageDirectory = $this->_detectStorageDirectory(false, false);
$configFile = $this->_detectConfigFile(false, false);
echo <<<EOS
ZF Command Line Tool - Setup
----------------------------
Current Paths (Existing or not):
Home Directory: {$homeDirectory}
Storage Directory: {$storageDirectory}
Config File: {$configFile}
Important Environment Variables:
ZF_HOME
- the directory this tool will look for a home directory
- directory must exist
ZF_STORAGE_DIR
- where this tool will look for a storage directory
- directory must exist
ZF_CONFIG_FILE
- where this tool will look for a configuration file
ZF_TOOL_INCLUDE_PATH
- set the include_path for this tool to use this value
ZF_TOOL_INCLUDE_PATH_PREPEND
- prepend the current php.ini include_path with this value
Search Order:
Home Directory:
- ZF_HOME, then HOME (*nix), then HOMEPATH (windows)
Storage Directory:
- ZF_STORAGE_DIR, then {home}/.zf/
Config File:
- ZF_CONFIG_FILE, then {home}/.zf.ini, then {home}/zf.ini,
then {storage}/zf.ini
Commands:
zf --setup storage-directory
- setup the storage directory, directory will be created
zf --setup config-file
- create the config file with some default values
EOS;
}
/**
* _runTool() - This is where the magic happens, dispatch Zend_Tool
*
* @return void
*/
protected function _runTool()
{
$configOptions = array();
if (isset($this->_configFile) && $this->_configFile) {
$configOptions['configOptions']['configFilepath'] = $this->_configFile;
}
if (isset($this->_storageDirectory) && $this->_storageDirectory) {
$configOptions['storageOptions']['directory'] = $this->_storageDirectory;
}
// ensure that zf.php loads the Zend_Tool_Project features
$configOptions['classesToLoad'] = 'Zend_Tool_Project_Provider_Manifest';
$console = new Zend_Tool_Framework_Client_Console($configOptions);
$console->dispatch();
}
/**
* _logMessage() - Internal method used to log setup and information messages.
*
* @param string $message
* @param bool $storeMessage
* @return void
*/
protected function _logMessage($message, $storeMessage = true)
{
if (!$storeMessage) {
return;
}
$this->_messages[] = $message;
}
}
if (!getenv('ZF_NO_MAIN')) {
ZF::main();
}

45
bin/zf.sh Normal file
View File

@ -0,0 +1,45 @@
#!/bin/sh
#############################################################################
# Zend Framework
#
# LICENSE
#
# This source file is subject to the new BSD license that is bundled
# with this package in the file LICENSE.txt.
# It is also available through the world-wide-web at this URL:
# http://framework.zend.com/license/new-bsd
# If you did not receive a copy of the license and are unable to
# obtain it through the world-wide-web, please send an email
# to license@zend.com so we can send you a copy immediately.
#
# Zend
# Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
# http://framework.zend.com/license/new-bsd New BSD License
#############################################################################
# find php: pear first, command -v second, straight up php lastly
if test "@php_bin@" != '@'php_bin'@'; then
PHP_BIN="@php_bin@"
elif command -v php 1>/dev/null 2>/dev/null; then
PHP_BIN=`command -v php`
else
PHP_BIN=php
fi
# find zf.php: pear first, same directory 2nd,
if test "@php_dir@" != '@'php_dir'@'; then
PHP_DIR="@php_dir@"
else
SELF_LINK="$0"
SELF_LINK_TMP="$(readlink "$SELF_LINK")"
while test -n "$SELF_LINK_TMP"; do
SELF_LINK="$SELF_LINK_TMP"
SELF_LINK_TMP="$(readlink "$SELF_LINK")"
done
PHP_DIR="$(dirname "$SELF_LINK")"
fi
"$PHP_BIN" -d safe_mode=Off -f "$PHP_DIR/zf.php" -- "$@"

View File

@ -453,6 +453,37 @@ div.ui-state-highlight p {margin: 10px;}
div.ui-state-highlight a {text-decoration: underline;}
.noborder {border:0;}
img {vertical-align:middle;}
.pagination {border:1px solid #CDCDCD;border-radius:3px;width:224px;margin:0 auto;}
.pagination span {
border: medium none;
float: left;
height: 26px;
font-size: 14px;
line-height: 24px;
outline: medium none;
padding: 0;
text-align: center;
vertical-align: middle;
width: 120px;
}
.pagination a:first-child {border: medium none;border-radius: 2px 0 0 2px;}
.pagination a:last-child {border:medium none;border-radius:0 2px 2px 0;}
.pagination a {border-left: 1px solid #CDCDCD; border-right: 1px solid #CDCDCD;}
.pagination a {
background: -moz-linear-gradient(center top , #F3F3F3 0%, #D3D3D3 100%) repeat scroll 0 0 rgba(0, 0, 0, 0);
color: #555555;
display: block;
float: left;
font-family: Times,'Times New Roman',Georgia,Palatino;
font-size: 18px;
font-weight: bold;
height: 26px;
outline: medium none;
text-align: center;
text-decoration: none;
vertical-align: middle;
width: 25px;
}
/* Menu
----------------------------------*/
@ -544,10 +575,10 @@ a.AncienSiege { background-color: #4D90FE; border: 1px solid #3079ED; color: #FF
#liasseForm th {color:#606060;font-weight:bold;}
#liasseForm {margin-left:30px;}
#liasseForm td {color:#606060;}
#synthese {border-collapse: collapse;clear: both;font-size: 12px;padding: 2px;text-align: left;width: 100%;font-family: arial,sans-serif;font-size: 11px;}
#synthese .head {font-weight: bold;}
#synthese th {background: none repeat scroll 0 0 #B9C9FE;border: 1px solid #FFFFFF;color: #003399;font-size: 13px;font-weight: normal;padding: 4px;}
#synthese td.right {text-align: right;}
#synthese {border-collapse: collapse;clear: both;font-size: 12px;margin: 10px 0px 0;padding: 2px;text-align: left;width: 100%;font-family: arial,sans-serif;font-size: 11px;}
#synthese td {background: none repeat scroll 0 0 #E8EDFF;border: 1px solid #FFFFFF;color: #666699;padding: 4px;}
#synthese tr:hover td {background: none repeat scroll 0 0 #D0DAFD;}
#tabbed_box {margin: 0px auto 0px auto;width:300px;}
@ -601,13 +632,6 @@ div.blocdegrade .echelleleft{float:left;}
div.blocdegrade .echelleright{float:right;}
.textdegrademin { position:absolute;overflow:hidden; margin-left:10px;line-height: 20px;color: #000;font-size:11px;font-weight: bold;font-family: monospace;}
.regle {clear:both; }
.clearfix:after {clear: both;content: ".";display: block;height: 0;visibility: hidden;}
#synthese .head {font-weight: bold;}
#synthese th {background: none repeat scroll 0 0 #B9C9FE;border: 1px solid #FFFFFF;color: #003399;font-size: 13px;font-weight: normal;padding: 4px;}
#synthese td.right {text-align: right;}
#synthese{border-collapse: collapse;clear: both;font-size: 12px;margin: 10px 0px 0;padding: 2px;text-align: left;width: 100%;font-family: arial,sans-serif;font-size: 11px;}
#synthese td {background: none repeat scroll 0 0 #E8EDFF;border: 1px solid #FFFFFF;color: #666699;padding: 4px;}
#synthese tr:hover td {background: none repeat scroll 0 0 #D0DAFD;}
/* Comment
----------------------------------*/
@ -659,8 +683,6 @@ div.blocdegrade .echelleright{float:right;}
#formSurveillance input.search {border:1px solid; padding:3px 5px;width:200px;}
#formSurveillance input.search:focus {border:1px solid #4D90FE;}
#formSurveillance input.submit {font-weight:bold;padding:2px 5px; background-color:#4D90FE; border:1px solid #3079ED;color:#ffffff; }
.pagination {background: none repeat scroll 0 0 transparent; border: 0 none; font-weight: bold; margin: 0; min-width: 1.5em; padding: 0.3em 0.5em;}
.pagination:hover {background: black repeat scroll 0 0;color:white;}
/* Pieces
----------------------------------*/

View File

@ -135,6 +135,16 @@ Session
Application must override the session.save_path, soap.wsdl_cache_dir to define it's own path.
Project Configuration
---------------------
- Autoloader
See in the public/index.php. We use Classmpap Autloader which store Class Key and his file
path.
To generate classmap file use bin/classmap_generator.php
-
WKHTMLTOPDF
-----------

View File

@ -1,12 +1,6 @@
<?php
class Application_Controller_Plugin_Auth extends Zend_Controller_Plugin_Abstract
{
/**
* Vérifie les autorisations
* Utilise _request et _response hérités et injectés par le FC
*
* @param Zend_Controller_Request_Abstract $request : non utilisé, mais demandé par l'héritage
*/
public function preDispatch(Zend_Controller_Request_Abstract $request)
{
$checkAuth = true;
@ -125,17 +119,22 @@ class Application_Controller_Plugin_Auth extends Zend_Controller_Plugin_Abstract
//Pas Authentifié
} else {
if ($request->isXmlHttpRequest()) {
if ( $request->isXmlHttpRequest() ) {
$request->setModuleName('default')
->setControllerName('user')
->setActionName('logout')
->setParam('ajax', 1);
} else {
$session = new Zend_Session_Namespace('login');
$session->url = $_SERVER['REQUEST_URI'];
$request->setModuleName('default')
->setControllerName('user')
->setControllerName('user')
->setActionName('login');
}
}

View File

@ -1,10 +1,10 @@
<?php
class Application_Controller_Plugin_Theme extends Zend_Controller_Plugin_Abstract
{
public function routeShutdown(Zend_Controller_Request_Abstract $request)
public function preDispatch(Zend_Controller_Request_Abstract $request)
{
$auth = Zend_Auth::getInstance();
$theme = 'default';
$theme = 'default'; //$theme = 'mobile';
if ( $auth->hasIdentity() ) {
$theme = !empty($auth->getIdentity()->theme) ? $auth->getIdentity()->theme : 'default';
}
@ -35,7 +35,7 @@ class Application_Controller_Plugin_Theme extends Zend_Controller_Plugin_Abstrac
$view = $bootstrap->bootstrap('View')->getResource('View');
$view->setBasePath($viewPath);
$layout = $bootstrap->bootstrap('Layout')->getResource('Layout');
$layout->setLayout('main');
$layout->setLayout('layout');
$layout->setLayoutPath($layoutPath);
//Load default style and javascript files for the selected theme
@ -50,10 +50,27 @@ class Application_Controller_Plugin_Theme extends Zend_Controller_Plugin_Abstrac
->appendHttpEquiv('Content-Type', 'text/html; charset=UTF-8')
->appendHttpEquiv('Content-Language', 'fr-FR');
$view->headLink()
->headLink(array('rel' => 'favicon', 'type' => 'image/png', 'href' => '/favicon.png'));
$view->headLink()
->headLink(array('rel' => 'shortcut icon', 'type' => 'image/x-icon', 'href' => '/favicon.ico'));
//Favicon - Touch icon for iOS 2.0+ and Android 2.1+
$view->headLink()->headLink(array(
'rel' => 'apple-touch-icon-precomposed',
'href' => '/favicon-152.png'
));
//Favicon - targeted to any additional png size
$view->headLink()->headLink(array(
'rel' => 'icon',
'type' => 'image/png',
'href' => '/favicon-32.png'
));
$view->headLink()->headLink(array(
'rel' => 'shortcut icon',
'type' => 'image/x-icon',
'href' => '/favicon.ico')
);
$UserLogin = false;
if ( $controller == 'user' && ( $action == 'login' || $action == 'logout' ) ) {
$UserLogin = true;
}
/**
* Detect IE
@ -67,24 +84,41 @@ class Application_Controller_Plugin_Theme extends Zend_Controller_Plugin_Abstrac
/**
* ===> Standard Styles
*/
$view->headLink()->appendStylesheet($paramsTheme->pathStyle.'/main.css', 'all');
if ($isIE6) {
//Old CSS for IE6
if ( $UserLogin ) {
$view->headLink()
->appendStylesheet($paramsTheme->pathStyle.'/ie6.css', 'all')
->appendStylesheet('/libs/ui-1.9.2/themes/smoothness/jquery-ui.css', 'all');
->appendStylesheet('/libs/bootstrap-3.1.1/css/bootstrap.min.css', 'all')
->appendStylesheet('/themes/default/styles/user-login.css', 'all');
} else {
$view->headLink()
->appendStylesheet('/libs/ui-1.10.4/themes/smoothness/jquery-ui.min.css', 'all');
$view->headLink()
->appendStylesheet('/libs/pace/themes/pace-theme-flash.css', 'all')
->appendStylesheet($paramsTheme->pathStyle.'/main.css', 'all');
}
$view->headLink()->appendStylesheet('/libs/qtip/jquery.qtip.css', 'all');
if ($isIE6) {
//Old CSS for IE6
$view->headLink()
->appendStylesheet($paramsTheme->pathStyle.'/ie6.css', 'all')
->appendStylesheet('/libs/ui-1.9.2/themes/smoothness/jquery-ui.css', 'all');
} else {
$view->headLink()
->appendStylesheet('/libs/ui-1.10.4/themes/smoothness/jquery-ui.min.css', 'all');
}
$view->headLink()->appendStylesheet('/libs/qtip/jquery.qtip.css', 'all');
/**
* ===> Standard Javascript
*/
$view->headScript()
->appendFile('/libs/jquery/jquery-1.11.0.min.js', 'text/javascript');
if ( $UserLogin ) {
$view->headScript()
->appendFile('/libs/html5shiv.js', 'text/javascript', array('conditional' => 'lt IE 9'))
->appendFile('/libs/respond.min.js', 'text/javascript', array('conditional' => 'lt IE 9'))
->appendFile('/libs/jquery/jquery-1.11.0.min.js', 'text/javascript')
->appendFile('/libs/bootstrap-3.1.1/js/bootstrap.min.js', 'text/javascript');
} else {
$view->headScript()
->appendFile('/libs/pace/pace.min.js', 'text/javascript')
->appendFile('/libs/jquery/jquery-1.11.0.min.js', 'text/javascript');
}
if ($isIE6) {
//Old JQuery version for IE6
@ -97,9 +131,12 @@ class Application_Controller_Plugin_Theme extends Zend_Controller_Plugin_Abstrac
->appendFile('/libs/ui-1.10.4/jquery-ui.min.js', 'text/javascript')
->appendFile('/libs/ui-1.10.4/jquery-ui-i18n.min.js', 'text/javascript');
}
$view->headScript()
->appendFile('/libs/qtip/jquery.qtip.js', 'text/javascript')
->appendFile($paramsTheme->pathScript.'/script.js', 'text/javascript');
if ( ! $UserLogin ) {
$view->headScript()
->appendFile('/libs/qtip/jquery.qtip.js', 'text/javascript')
->appendFile($paramsTheme->pathScript.'/script.js', 'text/javascript');
}
/**
* ===> Specific Style and Script by Controller/Action
@ -175,20 +212,38 @@ class Application_Controller_Plugin_Theme extends Zend_Controller_Plugin_Abstrac
case 'mobile': //@todo
$view->doctype('HTML5');
$view->doctype('HTML5');
$view->headMeta()
->appendName('charset', 'utf-8')
->appendName('viewport', 'width=device-width, initial-scale=1');
$view->headMeta()
->appendHttpEquiv('Content-Type', 'text/html; charset=UTF-8')
->appendHttpEquiv('Content-Language', 'fr-FR')
->appendName('viewport', 'width=device-width, initial-scale=1');
//Favicon - Touch icon for iOS 2.0+ and Android 2.1+
$view->headLink()->headLink(array(
'rel' => 'apple-touch-icon-precomposed',
'href' => '/favicon-152.png'
));
//Favicon - targeted to any additional png size
$view->headLink()->headLink(array(
'rel' => 'icon',
'type' => 'image/png',
'href' => '/favicon-32.png'
));
$view->headLink()->headLink(array(
'rel' => 'shortcut icon',
'type' => 'image/x-icon',
'href' => '/favicon.ico')
);
//Style
$view->headLink()
->appendStylesheet('/libs/mobile/1.4.0/jquery.mobile-1.4.0.min.css', 'all');
->appendStylesheet('/libs/mobile/1.4.2/jquery.mobile-1.4.2.min.css', 'all');
//JavaScript
$view->headScript()
->appendFile('/libs/jquery/jquery-1.11.0.min.js', 'text/javascript')
->appendFile('/libs/mobile/1.4.0/jquery.mobile-1.4.0.min.js', 'text/javascript')
->appendFile('/libs/jquery/jquery-2.1.0.min.js', 'text/javascript')
->appendFile('/libs/mobile/1.4.2/jquery.mobile-1.4.2.min.js', 'text/javascript')
->appendFile($paramsTheme->pathScript.'/script.js', 'text/javascript');
break;

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