diff --git a/application/controllers/PrestaController.php b/application/controllers/PrestaController.php new file mode 100644 index 0000000..8e4055b --- /dev/null +++ b/application/controllers/PrestaController.php @@ -0,0 +1,5 @@ +getRequest(); + + //Get parameters + $siren = $request->getParam('siren'); + + + //Control the prestation with the database - inject additionnaly parameters + + //Launch report + + $report = new Scores_Partner_Report('indiscore3', '552144503', 'mricois', 'ju2loh6o'); + $html = $report->getContent(); + file_put_contents('test.html', $html); + + //Write links to get the HTML and/or PDF + + } + + public function pdfAction() + { + //Unlink the file + + //if HTML exist, make a pdf + + //Distribute it to the output + + } + +} \ No newline at end of file diff --git a/application/views/scripts/error/error.phtml b/application/views/scripts/error/error.phtml new file mode 100644 index 0000000..ede0829 --- /dev/null +++ b/application/views/scripts/error/error.phtml @@ -0,0 +1,37 @@ + + + + + Extranet - Erreur + + +
+

Erreur

+
+ message ?> +
+ + exception)): ?> +

Exception information:

+
+

+ Message:

exception->getMessage() ?>
+

+
+
+ +

Stack trace:

+
+
exception->getTraceAsString() ?>
+
+
+ +

Request Parameters:

+
+
request->getParams(), true) ?>
+
+ + +
+ + diff --git a/application/views/scripts/index/index.phtml b/application/views/scripts/index/index.phtml index 517cd48..f59cde7 100644 --- a/application/views/scripts/index/index.phtml +++ b/application/views/scripts/index/index.phtml @@ -1,7 +1,7 @@

Programme Partenaires

-

Créer de la valeur ajoutée avec nos solutions autour de notre expertises sur les entreprises.

+

Créer de la valeur ajoutée avec nos solutions autour de notre expertise sur les entreprises.

Détails

@@ -9,7 +9,7 @@

Rapport financier

-

Créer des rapports financier en marque blanche

+

Créer des rapports financiers en marque blanche

Details »

diff --git a/application/views/scripts/presta/presta.phtml b/application/views/scripts/presta/presta.phtml new file mode 100644 index 0000000..b3d9bbc --- /dev/null +++ b/application/views/scripts/presta/presta.phtml @@ -0,0 +1 @@ +0) { + $this->annonces = $annonces; + $this->triAnnonces(); + krsort($this->annoncesBodacc); + krsort($this->annoncesBalo); + krsort($this->annoncesAsso); + krsort($this->annoncesBomp); + } + } + + /** + * Enter description here ... + * @param unknown_type $ann + */ + public function getAnnonceDesc($ann) + { + if ($this->isBalo($ann->BodaccCode)) { + + return 'BALO n°'.$ann->BodaccNum.' du '. + $this->dateAnnonce($ann->DateParution).'.'; + + } elseif ($this->isAsso($ann->BodaccCode)) { + + return 'J.O. ASSOCIATION n°'.$ann->BodaccNum.' du '. + $this->dateAnnonce($ann->DateParution).'.'; + + } elseif ($this->isBomp($ann->BodaccCode)){ + + return 'Annonce n°'.$ann->NumAnnonce . '. ' . + 'Source ' . $ann->BodaccCode . ' ' . + 'n°' . ($ann->BodaccNum*1) . ' ' . + ' du '.$this->dateAnnonce($ann->DateParution). + '. Département n°'.$ann->Departement.'.'; + + } else { + + $tabSource = explode('-', $ann->BodaccCode); + $source = $tabSource[0]; + $idSource = $tabSource[1]; + if ($source[0] == 'B') { + $logo = '/themes/default/images/annonces/logo_jo.png'; + if ($ann->BodaccNum==0){ + $libelle = 'Source BODACC '.substr($ann->BodaccCode,-1). + ' du '.$this->dateAnnonce($ann->DateParution); + } else { + $view = new Zend_View(); + $session = new SessionEntreprise(null); + $href = $view->url(array( + 'controller' => 'juridique', + 'action' => 'competences', + 'type' => 'tri', + 'siret' => $session->getSiret(), + ), null, true); + $libelle = 'Source BODACC n°'.$ann->BodaccNum.' '. + substr($ann->BodaccCode,-1). + ' du '.$this->dateAnnonce($ann->DateParution). + '. Département n°'.$ann->Departement. + '. '.$ann->Tribunal.''; + } + } elseif ($source[0] == 'G' || $source[0] == 'T') { + $logo = '/themes/default/images/annonces/logo_greffe.png'; + $libelle = 'Source Greffe du Tribunal'. + ' du '.$this->dateAnnonce($ann->DateParution). + '. Département n°'.$ann->Departement. + '. '.$ann->Tribunal.''; + } elseif ($source[0] == 'P') { + $logo = '/themes/default/images/annonces/logo_inpi.png'; + $libelle = 'Source Registre National du Commerce'; + } else { + $logo = '/themes/default/images/annonces/logo_jal.png'; + $libelle = ''; + $user = new Scores_Utilisateur(); + if( $user->checkModeEdition() && + (substr($source,0,2)=='JT' || $source=='ANTE') ){ + $libelle = 'Source TESSI - '; + } + $libelle.= 'Source Journal Annonces Légales'; + } + return ' '.$libelle.'.'; + } + } + + /** + * + * Enter description here ... + * @param unknown_type $ann + */ + public function getAnnonceEntree($ann) + { + if ($this->isBalo($ann->BodaccCode)) { + + return 'Entré n°'.$ann->NumAnnonce.'.'; + + } elseif ($this->isAsso($ann->BodaccCode)) { + + return 'Annonce n°'.$ann->NumAnnonce.'.'; + + } elseif ($this->isBomp($ann->BodaccCode)){ + return ''; + + } else { + + if ($ann->dateInsertionSD!='') { + return ' - Entrée en base : '. + $this->dateAnnonce($ann->dateInsertionSD); + } + + } + } + + /** + * + * Enter description here ... + * @param unknown_type $ann + */ + public function getAnnonceEntreeSD($ann) + { + if ($this->isBodacc($annBodaccCode)) { + + } elseif ($this->isBalo($ann->BodaccCode)) { + + return 'Entrée en base S&D : '. + $this->dateAnnonce($ann->dateInsertionSD).'.'; + + } elseif ($this->isAsso($ann->BodaccCode)) { + + return 'Entrée en base S&D : '. + $this->dateAnnonce($ann->dateInsertionSD).'.'; + + } elseif ($this->isBomp($ann->BodaccCode)){ + return ''; + } else { + + } + } + + /** + * + * Enter description here ... + * @param unknown_type $ann + */ + public function getAnnonceEven($ann) + { + $output = ''; + foreach ($ann->evenements->item as $i=>$even) { + $output.= $even->LibEven.'
'; + } + return $output; + } + + /** + * + * Enter description here ... + * @param unknown_type $ann + */ + public function getAnnonceTexte($ann) + { + /* + $pattern = "/((?:[0-9]{9,9})|(?:[0-9]{3,3} [0-9]{3,3} [0-9]{3,3})|(?:[0-9]{3,3}\.[0-9]{3,3}\.[0-9]{3,3})|(?:[0-9]{3,3}-[0-9]{3,3}-[0-9]{3,3}))/"; + return preg_replace_callback($pattern, 'replace_siren', $ann['texteAnnonce']); + */ + return $ann->texteAnnonce; + } + + public function getAnnonceEntite($ann) + { + return $ann->entites->item; + } + + /** + * + * Enter description here ... + * @param unknown_type $ann + */ + public function getAnnonceResume($ann) + { + return array( + 'date' => $this->dateAnnonce($ann->DateParution), + 'title' => $this->logoTitleAnnonce($ann), + 'logo' => $this->logoAnnonce($ann), + 'idAnn' => $ann->id, + 'lib' => $this->libAnnonce($ann), + 'texte' => $this->getAnnonceTexte($ann), + 'type' => $this->getType($ann), + 'deleted' => $ann->deleted, + ); + } + + /** + * + * Enter description here ... + * @param unknown_type $ann + */ + protected function hrefAnnonce($ann) + { + /* + $href = false; + if ($this->isBodacc($ann->BodaccCode)) { + $href = 'idan='.$ann->id.'&vue=bodacc'; + } elseif ($this->isBalo($ann->BodaccCode)) { + $href = 'idan='.$ann->id.'&vue=balo'; + } elseif ($this->isAsso($ann->BodaccCode)) { + $href = 'idan='.$ann->id.'&vue=asso'; + } elseif ($this->isBomp($ann->BodaccCode)){ + $href = 'idan='.$ann->id.'&vue=bomp'; + } else { + $href = 'idan='.$ann->id.'&vue=bodacc'; + } + return $href; + */ + } + + /** + * Retourne une date formatté + * @param string $date + */ + protected function dateAnnonce($date) + { + return WDate::dateT('Y-m-d', 'd/m/Y', $date); + } + + protected function logoTitleAnnonce($ann) + { + $title = ''; + if ($this->isBalo($ann->BodaccCode)) { + $title = 'Source BALO n°'.$annBodaccNum; + } elseif ($this->isAsso($ann->BodaccCode)) { + $title = 'Source JO ASSOCIATION n°'.$ann->BodaccNum; + } elseif ($this->isBomp($ann->BodaccCode)) { + if ($ann->BodaccCode == 'MAPA' ) { + $title = 'Source '.$ann->BodaccCode . ' ' . + ($ann->BodaccNum*1); + } else { + $title = 'Source '.$ann->BodaccCode . ' ' . + 'n°' . ($ann->BodaccNum*1) . ' de ' . + substr($ann->DateParution,0,4); + } + } else { + $tabSource = explode('-', $ann->BodaccCode); + $source = $tabSource[0]; + $idSource = $tabSource[1]; + if ($source[0] == 'B') { + $title = 'Source BODACC ' . $ann->BodaccNum . ' ' . + substr($source,-1) . ' ' . + 'de ' . substr($ann->DateParution,0,4); + } else if ($source[0] == 'G' || $source[0] == 'T') { + $title = 'Source Collecte Greffe'; + } else if ($source[0] == 'P') { + $title = 'Source Collecte RNCS'; + } else { + $title = 'Source Collecte JAL'; + if ($idSource>0) $title.= ' '.$idSource; + } + } + return $title; + } + + /** + * logoAnnonce + * @param array $ann + */ + protected function logoAnnonce($ann) + { + $src = ''; + if ($this->isBalo($ann->BodaccCode)) { + $src = 'logo_jo.png'; + } elseif ($this->isAsso($ann->BodaccCode)) { + $src = 'logo_jo.png'; + } elseif ($this->isBomp($ann->BodaccCode)) { + $src = 'logo_jo.png'; + } else { + $tabSource = explode('-', $ann->BodaccCode); + $source = $tabSource[0]; + if ($source[0] == 'B') { + $src = 'logo_jo.png'; + } else if ($source[0] == 'G' || $source[0] == 'T') { + $src = 'logo_greffe.png'; + } else if ($source[0] == 'P') { + $src = 'logo_inpi.png'; + } else { + $src = 'logo_jal.png'; + } + } + if ($src != '') { + return $src; + } else { + return false; + } + } + + /** + * Retourne le libellé de l'annonce + * @param array $ann + */ + protected function libAnnonce($ann) + { + $lib = ''; + foreach ($ann->evenements->item as $i=>$even) { + $lib.= $even->LibEven; + $tabSource = explode('-', $ann->BodaccCode); + $source = $tabSource[0]; + $idSource = $tabSource[1]; + $numEven = $even->CodeEven*1; + if ($numEven>3000 && $numEven<3999) { + if (isset($ann->dateEffet)){ + $lib.= ' (clôture au '.WDate::dateT('Y-m-d','d/m/Y',$ann->dateEffet).')'; + } + } + $user = new Scores_Utilisateur(); + if( $user->checkModeEdition() && + (substr($source,0,2)=='JT' || $source=='ANTE') ){ + $lib.= ' - (Source TESSI)'; + } + + $lib.= '
'; + } + return $lib; + } + + /** + * Tri les annonces en fonction de la source + */ + protected function triAnnonces() + { + foreach ($this->annonces as $i => $ann) + { + //Génération id pour tri + $id = WDate::dateT('Y-m-d','Ymd',$ann->DateParution).':'.$ann->id; + if ($this->isBodacc($ann->BodaccCode)){ + $this->annoncesBodacc[$id] = $ann; + } elseif ($this->isBalo($ann->BodaccCode)) { + $this->annoncesBalo[$id] = $ann; + } elseif ($this->isAsso($ann->BodaccCode)) { + $this->annoncesAsso[$id] = $ann; + } elseif ($this->isBomp($ann->BodaccCode)){ + $this->annoncesBomp[$id] = $ann; + } else { + $this->annoncesBodacc[$id] = $ann; + } + } + } + + public function getAnnee($ann) + { + return WDate::dateT('Y-m-d','Y',$ann->DateParution); + } + + public function getNum($ann) + { + return $ann->BodaccNum; + } + + public function getType($ann) + { + if ($this->isBodacc($ann->BodaccCode)){ + return 'bodacc'; + } elseif ($this->isBalo($ann->BodaccCode)) { + return 'balo'; + } elseif ($this->isAsso($ann->BodaccCode)) { + return 'asso'; + } elseif ($this->isBomp($ann->BodaccCode)){ + return 'bomp'; + } else { + return 'bodacc'; + } + } + + public function getCode($ann) + { + return $ann->BodaccCode; + } + + public function isDeleted($ann) + { + if ($ann->deleted!='') { + return $this->dateAnnonce($ann->deleted); + } + return ''; + } + + /** + * Détermine si l'annonce est une annonce BODACC + * @param string $code + */ + protected function isBodacc($code) + { + if (in_array($code, array('BODA', 'BODB', 'BODC'))){ + return true; + } else { + return false; + } + } + + /** + * Détermine si l'annonce est une annonce BALO + * @param string $code + */ + protected function isBalo($code) + { + if ($code == 'BALO'){ + return true; + } else { + return false; + } + } + + /** + * Détermine si l'annonce est une annonce ASSO + * @param string $code + */ + protected function isAsso($code) + { + if ($code == 'ASSO'){ + return true; + } else { + return false; + } + } + + /** + * Détermine si l'annonce est une annonce BOAMP + * @param string $code + */ + protected function isBomp($code) + { + if (in_array($code, array('BOMP A', 'BOMP B', 'BOMP C', 'MAPA'))){ + return true; + } else { + return false; + } + } + +} \ No newline at end of file diff --git a/library/Scores/AuthAdapter.php b/library/Scores/AuthAdapter.php new file mode 100644 index 0000000..f72c6b4 --- /dev/null +++ b/library/Scores/AuthAdapter.php @@ -0,0 +1,151 @@ +_username = $username; + $this->_password = $password; + if ($iponly){ + $this->_password = 'iponly:'.$_SERVER['REMOTE_ADDR']; + } + $this->_checkIp = $iponly; + } + + public function authenticate() + { + $adressIp = $_SERVER['REMOTE_ADDR']; + + require_once 'Scores/WsScores.php'; + $ws = new WsScores($this->_username, $this->_password); + $InfosLogin = $ws->getInfosLogin($this->_username, $adressIp); + $identity = new stdClass(); + $identity->username = $this->_username; + $identity->password = $this->_password; + $identity->email = $InfosLogin->result->email; + $identity->profil = $InfosLogin->result->profil; + $identity->pref = $InfosLogin->result->pref; + $identity->droits = $InfosLogin->result->droits; + $identity->droitsClients = $InfosLogin->result->droitsClients; + $identity->nom = $InfosLogin->result->nom; + $identity->prenom = $InfosLogin->result->prenom; + $identity->tel = $InfosLogin->result->tel; + $identity->fax = $InfosLogin->result->fax; + $identity->mobile = $InfosLogin->result->mobile; + $identity->id = $InfosLogin->result->id; + $identity->idClient = $InfosLogin->result->idClient; + $identity->reference = $InfosLogin->result->reference; + $identity->nbReponses = $InfosLogin->result->nbReponses; + $identity->typeScore = $InfosLogin->result->typeScore; + $identity->dateValidation = $InfosLogin->result->dateValidation; + $identity->nombreConnexions = $InfosLogin->result->nombreConnexions; + $identity->dateDerniereConnexion = $InfosLogin->result->dateDerniereConnexion; + $identity->dateDebutCompte = $InfosLogin->result->dateDebutCompte; + $identity->dateFinCompte = $InfosLogin->result->dateFinCompte; + $identity->acceptationCGU = $InfosLogin->result->acceptationCGU; + $identity->ip = $adressIp; + $identity->modeEdition = false; + + $timeout = (!empty($InfosLogin->result->timeout)) ? $InfosLogin->result->timeout : $this->_timeout; + $identity->timeout = $timeout; + + $identity->time = time() + $timeout; + + $lang = in_array($InfosLogin->result->lang, array('fr','en')) ? $InfosLogin->result->lang : 'fr'; + $identity->lang = $lang; + $identity->langtmp = $lang; + + /* + * Adresse Ip interdites + */ + $ipInterdites = + '81.252.88.0-81.252.88.7' // CTE D AGGLOMERATION DE SOPHIA + . ';' . '195.200.187.163' // PacWan + . ';' . '213.11.81.41' // Verizon France SAS + . ';' . '83.206.171.252' // FR-BASE-D-INFORMATIONS-LEGALES-BI + . ';' . '81.255.32.139' + . ';' . '212.155.191.1*' // Satair A/S + . ';' . '217.70.1*.17' // OJSC "Sibirtelecom" + . ';' . '212.37.196.156' // GENERALE-MULTIMEDIA-SUD + . ';' . '80.245.60.121' // Planete Marseille - Mailclub + . ';' . '213.246.57.101' // IKOULA + . ';' . '193.104.158.0-193.104.158.255' // Altares.fr + . ';' . '195.6.3.0-195.6.3.255' // ORT + . ';' . '217.144.112.0-217.144.116.63' // Coface + ; + if ( $this->checkPlagesIp($ipInterdites, $adressIp) ) { + return new Zend_Auth_Result(Zend_Auth_Result::FAILURE_UNCATEGORIZED, $identity); + } + + // Renvoi + if ( is_string($InfosLogin) || $InfosLogin->error->errnum!=0){ + $message = $InfosLogin; + return new Zend_Auth_Result(Zend_Auth_Result::FAILURE_CREDENTIAL_INVALID, $identity, array($message)); + } elseif ($this->_username == $InfosLogin->result->login) { + return new Zend_Auth_Result(Zend_Auth_Result::SUCCESS, $identity); + } else { + return new Zend_Auth_Result(Zend_Auth_Result::FAILURE_UNCATEGORIZED, $identity); + } + } + + /** + * Controle si une adresse IP est dans une liste des IP communiquées sous la forme 192.168.3.5-192.68.3.10;192.168.3.*;192.168.3.10 + * @param string $strPlageIP La plage d'adresses IP + * @param string $adresseIP L'adresse IP à tester + */ + protected function checkPlagesIp($strPlageIP, $adresseIP) + { + $connected = false; + $tabIpAllowed = explode(';', trim($strPlageIP)); + if (count($tabIpAllowed)==1 && $tabIpAllowed[0]=='') $tabIpAllowed = array(); + + foreach ($tabIpAllowed as $ip) { + $tabPlages = explode('-', $ip); + // C'est une plage d'adresse '-' + if (isset($tabPlages[1])) + $connected = $this->in_plage($tabPlages[0],$tabPlages[1],$adresseIP); + else { + // C'est une adresse avec ou sans masque '*' + if (preg_match('/^'.str_replace('*','.*',str_replace('.','\.',$ip)).'$/', $adresseIP) ) + $connected=true; + } + if ($connected) break; + } + if (count($tabIpAllowed)==0) return false; + elseif (!$connected) { + return false; + } + return true; + } + + /** + * Enter description here ... + * @param unknown_type $plage_1 + * @param unknown_type $plage_2 + * @param unknown_type $ip + * @return boolean + */ + protected function in_plage($plage_1,$plage_2,$ip) + { + $ip2 = $this->getIpNumber($ip); + if ($ip2>=$this->getIpNumber($plage_1) && $ip2<=$this->getIpNumber($plage_2)) + return true; + else + return false; + } + + /** + * Converti une IP en nombre + * @param string $ip Adresse IP + * @return integer + */ + protected function getIpNumber($ip) { + $tab=explode('.', $ip); + return (($tab[0]*256*256*256) + ($tab[1]*256*256) + ($tab[2]*256) + ($tab[3])); + } + +} \ No newline at end of file diff --git a/library/Scores/AvisSituation.php b/library/Scores/AvisSituation.php new file mode 100644 index 0000000..4e007c8 --- /dev/null +++ b/library/Scores/AvisSituation.php @@ -0,0 +1,282 @@ +pathAvisPdf = $c->profil->path->files; + $this->pathLog = realpath($c->profil->path->data).'/log'; + $this->fichierErreur = $this->pathLog.'/aviserreur.lock'; + $this->siret = $siret; + } + + public function erreurcpt($action) + { + switch($action){ + case 'plus': + if (file_exists($this->fichierErreur)){ + $handle = fopen($this->fichierErreur, 'r'); + $data = fgetcsv($handle, '1000', ';'); + $date_creation = $data[0]; + $date_modification = time(); + $nb = $data[2]; + fclose($handle); + } else { + $date_creation = time(); + $date_modification = time(); + $nb = 0; + } + $nb++; + $handle = fopen($this->fichierErreur, 'w'); + fputcsv($handle, array($date_creation, $date_modification, $nb), ';'); + fclose($handle); + break; + case 'raz': + $handle = fopen($this->fichierErreur, 'w'); + $date_creation = time(); + $date_modification = time(); + $nb = 0; + fputcsv($handle, array($date_creation, $date_modification, $nb), ';'); + fclose($handle); + break; + } + } + + public function nberreur() + { + if (file_exists($this->fichierErreur)){ + $handle = fopen($this->fichierErreur, 'r'); + $data = fgetcsv($handle, '1000', ';'); + $nb = $data[2]; + fclose($handle); + } else { + $nb = 1; + } + return $nb; + } + + public function erreur() + { + if (file_exists($this->fichierErreur)) + { + $handle = fopen($this->fichierErreur, 'r'); + $data = fgetcsv($handle, '1000', ';'); + $date_creation = $data[0]; + $date_modification = $data[1]; + $nb = $data[2]; + fclose($handle); + } else { + $date_creation = 0; + $date_modification = 0; + } + if ($nb>0 && $date_modification<$date_creation+$this->retryDelay){ + return true; + } else { + return false; + } + } + + public function mailerreur() + { + $user = new Scores_Utilisateur(); + + $objet = "AVIS INSEE - (Date :".date("d")."/".date("m")."/".date("Y").")"; + $texte = 'Accès impossible au site de situation INSEE : '. + $this->siret.EOL. + 'http://avis-situation-sirene.insee.fr'.EOL. + 'pour login '.$user->getLogin().EOL; + + require_once 'Scores/Mail.php'; + $mail = new Mail(); + $mail->setFrom('contact'); + $mail->addToKey('support'); + $mail->setSubject($objet); + $mail->setBodyText($texte); + $mail->send(); + } + + public function erreurmsg(){ + return "

Le site partenaire n'a pas répondu correctement ou est indisponible. Merci d'essayer à nouveau ultérieurement.

"; + } + + /** + * Récupére l'avis de situtation à partir du site au format pdf + * @param string $format Format 'pdf' ou 'array' + * @param boolean $force True aller obligatoirement le chercher à l'insee + * @return string Le PDF demandé + */ + public function get($format='pdf', $force=0) + { + $force=$force*1; + $date=date('Ymd'); + $siren=trim(substr($this->siret,0,9)); + $nic=trim(substr($this->siret,9,5)); + $fichier = $this->pathAvisPdf.'/avis-'.$siren.'-'.$nic.'-'.$date.'.pdf'; + if ($format!='pdf') return 'Format pdf uniquement'; + if ($force==0 && file_exists($fichier)) + { + // On délivre l'avis en base + return file_get_contents($fichier); + } + else + { + /** Initialisation de la session sur le site de l'Insee **/ + $url = 'http://avis-situation-sirene.insee.fr/avisitu/jsp/avis.jsp'; + //http://avis-situation-sirene.insee.fr/avisituV2/jsp/avis.jsp'; + $referer = $cookie = ''; + $page = getUrl($url, $cookie, '', $referer, false, 'avis-situation-sirene.insee.fr', '', $this->timeout); + //Code en 4xx ou 5xx signifie une erreur du serveur + $codeN = floor($page['code']/100); + if($codeN==4 || $codeN==5) + { + return false; + } + else + { + $referer = $url; + $body = $page['body']; + $serviceDispo = true; + + //On doit retrouver sur la page + /* +
$siren, + 'critere' => $crit, // S pour le siège ou vide avec un NIC !!! + 'nic' => $nic, + 'departement' => $dep, + 'departement_actif' => $depActif, + 'bSubmit' => 'Valider'); + $page = getUrl($url, $cookie, $post, $referer, false, 'avis-situation-sirene.insee.fr', '', AVIS_TIMEOUT); + + $body = $page['body']; + $fp=@fopen($fichier, "a"); + @fwrite($fp, $body); + @fclose($fp); + + if (preg_match("/

Fiche établissement<\/h3>/Uis", $body, $matches))//
  • établissement
  • + $tabInfos['fiche']='etab'; + + if (preg_match('/
    (.*)/Uis', $body, $matches)) { + $tabInfos['raiSoc']=trim($matches[1]); + } + + if (preg_match("/Dernière mise à jour : (.*)<\/div>/Uis", $body, $matches)) + $tabInfos['dateMaj']=trim($matches[1]); + + $s1=substr($siren,0,3); + $s2=substr($siren,3,3); + $s3=substr($siren,6,3); + if (preg_match('/
    (?:.*)('.$s1.'(?:.*)'.$s2.'(?:.*)'.$s3.')(?:.*)('.$nic.')(?:.*)<\/div>/Uis', $body, $matches)) { + $tabInfos['siren'] = trim($matches[1]); + $tabInfos['nic'] = trim($matches[2]); + } + + if (preg_match('/
    +
    +

    + + \ No newline at end of file diff --git a/library/Scores/Partner/Templates/indiscore3/header.phtml b/library/Scores/Partner/Templates/indiscore3/header.phtml new file mode 100644 index 0000000..b8411f1 --- /dev/null +++ b/library/Scores/Partner/Templates/indiscore3/header.phtml @@ -0,0 +1,16 @@ + + + + + + +
    + +
    + +
    + +

    RAPPORT COMPLET

    +
    +

    SOCIÉTÉ : raisonSociale?>

    +
    diff --git a/library/Scores/Partner/Templates/indiscore3/identite.phtml b/library/Scores/Partner/Templates/indiscore3/identite.phtml new file mode 100644 index 0000000..312f12f --- /dev/null +++ b/library/Scores/Partner/Templates/indiscore3/identite.phtml @@ -0,0 +1,68 @@ +

    FICHE D'IDENTITÉ

    +
    + + + +dBlock) && $this->dBlock[$item]['texte']!='' ) {?> + + + + dBlock[$item]['titre'])) { + $titre = ' title="'.$this->dBlock[$item]['titre'].'"'; + } else { + $titre = ''; + } + ?> + + + + +
    dBlock[$item]['label']?>>dBlock[$item]['texte']?>
    +
    + +

    Raison sociale & Coordonnées

    +
    + + + +dBlock) && $this->dBlock[$item]['texte']!='' ) {?> + + + + dBlock[$item]['titre'])) { + $titre = ' title="'.$this->dBlock[$item]['titre'].'"'; + } else { + $titre = ''; + } + ?> + + + + +
    dBlock[$item]['label']?>>dBlock[$item]['texte']?>
    +
    + +

    Activité(s) & Chiffre d'affaires

    +
    + + + +dBlock) && $this->dBlock[$item]['texte']!='' ) {?> + + + + dBlock[$item]['titre'])) { + $titre = ' title="'.$this->dBlock[$item]['titre'].'"'; + } else { + $titre = ''; + } + ?> + + + + +
    dBlock[$item]['label']?>>dBlock[$item]['texte']?>
    +
    diff --git a/library/Scores/Partner/Templates/indiscore3/indiscore.phtml b/library/Scores/Partner/Templates/indiscore3/indiscore.phtml new file mode 100644 index 0000000..13b28c6 --- /dev/null +++ b/library/Scores/Partner/Templates/indiscore3/indiscore.phtml @@ -0,0 +1,164 @@ +

    COMMENTAIRES

    +
    +
    +comment?> +
    +
    + + +

    INDISCORE©

    + +

    Évaluation

    +
    + + + + + + + +indiscore->NbBilansScore > 0 && $this->indiscore->Bilans->item[0]->Millesime >= $millesimeMax):?> + + + + + + + + + + + + + + + + + + +
      + L'évaluation indiScore© est en partie basée sur les points notables suivants :
    + +

    Conformité légale :

    +
    +
      +
    • + indiscore->AnalyseConfor; ?> +
      + Conformité edition) { echo '('.$this->indiscore->ScoreConfor.')';}?> +
      +
      +
      +
    • +
    +
    + +

    Dirigeance :

    +
    +
      +
    • + indiscore->AnalyseDirigeance?> +
      + Dirigeance edition) { echo '('.$this->indiscore->ScoreDirigeance.')';}?> +
      +
      +
      +
    • +
    +
    + +

    Solvabilité :

    +
    +
      +
    • + L'analyse de la solvabilité est indiscore->AnalyseSolvabilite?> +
      + Solvabilité edition) { echo '('.$this->indiscore->Indiscore.')';}?> +
      +
      +
      +
    • +
    +
    + +
      + A la lecture du dernier bilan, la situation financière de l'entreprise Nom;?> est indiscore->tabInfosNotations->SituationFinanciere;?>.
    + + indiscore->tabInfosNotations->ProbabiliteDefaut) <> 'En défaut') + echo 'La probabilité de défaillance associée à cette note avoisine les '. number_format($this->indiscore->tabInfosNotations->ProbabiliteDefaut,3,',',' ') .' %'; + else + echo 'Cette entreprise est défaillante ou sur le point de le devenir.'; + //[EquivalenceBDF] + ?> +
      + Pour information, les méthodes standards donnent : Conan & Holder = indiscore->scores->ConanH;?>, + Afdcc2 = indiscore->scores->Afdcc2;?> et Score Z = indiscore->scores->Z;?>. +
      + La situation financière de l'entreprise ne peut être évaluée en détail car + indiscore->Bilans->item[0]->Millesime < $millesimeMax && count($this->indiscore->Bilans) > 0 ) { + echo 'le dernier bilan disponible date de '.substr($this->indiscore->Bilans->item[0]->Millesime,0,4).'.'; + } else { + echo 'aucun bilan n\'est disponible.'; + } ?> +
    +
    + +

    Paiements

    +
    + + + + + +
      + indiscore->infoPaiement)):?> + indiscore->infoPaiement);?> + + Aucune information sur les paiements disponible. + +
    +
    + +

    Conclusion

    +
    + + + + + + +
      + + Compte tenu des informations disponibles auprès des sources officielles + Scores et Décisions présente la conclusion suivante :
    + typeScore) + { + case '20': + $maxIndiscore = $this->typeScore; + $indiscore = $this->indiscore->Indiscore20; + break; + case '100': + default: + $maxIndiscore = empty($this->typeScore)? '100' : $this->typeScore; + $indiscore = $this->indiscore->Indiscore; + break; + } + ?> +

    LE SCORE EST DE SUR POINTS

    + indiscore->infoEncours != '' && !is_numeric($this->indiscore->encours) && $this->indiscore->encours == 'N/A'){ ?> +

    indiscore->infoEncours;?>

    + + + La tendance de la note est indiscore->TendanceIndiscore;?> +

    L'ENCOURS MAXIMUM CONSEILLÉ EST DE indiscore->encours / 1000);?> K€

    + +

    indiscore->infoEncours;?>

    + +
    +
    diff --git a/library/Scores/Partner/Templates/indiscore3/juridique/annonces-resume.phtml b/library/Scores/Partner/Templates/indiscore3/juridique/annonces-resume.phtml new file mode 100644 index 0000000..aaae30b --- /dev/null +++ b/library/Scores/Partner/Templates/indiscore3/juridique/annonces-resume.phtml @@ -0,0 +1,31 @@ +deleted!='') { + $class = ' class="deleted"'; +} +?> +> + + Le date?> + + + + logo)) {?> + + + + + + + lib?> + + RemplaceSiren($this->texte)?> + + diff --git a/library/Scores/Partner/Templates/indiscore3/liens.phtml b/library/Scores/Partner/Templates/indiscore3/liens.phtml new file mode 100644 index 0000000..6f58ca5 --- /dev/null +++ b/library/Scores/Partner/Templates/indiscore3/liens.phtml @@ -0,0 +1,127 @@ +

    LIENS FINANCIERS

    + + + + + +

    Actionnariat

    + +

    Participations

    + + +
    + +PP && $part == 'actionnaires') {?> + +Cette entreprise est une personne physique exerçant son activité en nom propre sous la forme d'une entreprise individuelle. + + + + $part)>0 ) {?> + + $part as $lien) {?> + + + + + + +
    + PDetention>0) echo $lien->PDetention.' %'; + elseif ($lien->MajMin=='+') echo 'major.'; // Traiter l'affichage ou les arbres comme si %=51 + elseif ($lien->MajMin=='-') echo 'minor.'; + elseif ($lien->MajMin=='C') echo 'contrôle'; // Traiter l'affichage ou les arbres comme si %=51 + elseif ($lien->MajMin=='S') echo 'scission'; // Traiter l'affichage ou les arbres comme si %=0 + elseif ($lien->MajMin=='F') echo 'absorption'; // Traiter l'affichage ou les arbres comme si %=100 + elseif ($lien->MajMin=='P') echo 'projet fusion'; // Traiter l'affichage ou les arbres comme si %=100 + elseif ($lien->MajMin=='T') echo 'TUP'; // Traiter l'affichage ou les arbres comme si %=100 + elseif ($lien->MajMin=='L') echo 'tutelle'; + elseif ($lien->MajMin=='E') echo 'franchise'; + // elseif ($lien->MajMin=='A') echo 'absorbant'; + else echo ' '; + ?> + + siren)!=0) {?> + + + + + nom?> + + + siren) && intval($lien->siren)!=0 ) { + $href = $this->url(array( + 'controller' => 'identite', + 'action' => 'fiche', + 'siret' => $lien->siren + ), null, true); + echo 'Siren '.$this->SirenTexte($lien->siren).''; + } + else ' '; + + if ($lien->pays<>'France') echo ''.$lien->pays.''; + ?> +
    + + +
    Aucun actionnaire référencé par nos services.
    + lienStatuts) {?> + lienStatuts && $this->FJ1) {?> +
    Afin d’identifier l'unique actionnaire de cette entreprise, consulter ses statuts.
    + lienStatuts) {?> +
    Afin d’identifier les actionnaires de cette entreprise, consulter ses statuts.
    + + + +
    Aucune participation référencée par nos services.
    + lienBilans) {?> + lienStatuts) {?> +
    Afin d’identifier les participations de cette entreprise, consulter son dernier bilan publié.
    + + + + + +
    + + + +directions)>0 ) {?> +

    Fonctions de directions

    +
    + +directions as $lien) {?> + + + + + + +
    fonction?> de + nom?> + dirNom!='' ) {?> +
    représenté par dirNom?> + dirNaissDate && $lien->dirNaissDate!='0000-00-00' ) {?> + née le dirNaissDate,8,2).'/'.substr($lien->dirNaissDate,5,2).'/'.substr($lien->dirNaissDate,0,4)?> + dirNaissLieu ) {?> à dirNaissLieu?> + +
    + siren) && intval($lien->siren)!=0 ) { + $href = $this->url(array( + 'controller' => 'identite', + 'action' => 'fiche', + 'siret' => $lien->siren + ), null, true); + echo 'Siren '.$this->SirenTexte($lien->siren).''; + }?> +
    +
    + diff --git a/library/Scores/Partner/Templates/indiscore3/ratios.phtml b/library/Scores/Partner/Templates/indiscore3/ratios.phtml new file mode 100644 index 0000000..9a3de43 --- /dev/null +++ b/library/Scores/Partner/Templates/indiscore3/ratios.phtml @@ -0,0 +1,44 @@ +

    RATIOS

    +
    + +tabResult)){?> + + + + +tabResult as $item) { ?> + + + + + + + + + + + + + + + + + +
    + +
    +
    + + + +
    EntrepriseSecteurPosition
    + +
    diff --git a/library/Scores/Partner/Templates/indiscore3/synthese.phtml b/library/Scores/Partner/Templates/indiscore3/synthese.phtml new file mode 100644 index 0000000..a739ab7 --- /dev/null +++ b/library/Scores/Partner/Templates/indiscore3/synthese.phtml @@ -0,0 +1,76 @@ +

    SYNTHÈSE

    +tabResult)){?> + +
    +Aucun bilan disponible. +
    + + + +
    + + + + + + + + + + + + + + +tabRatio as $ratio => $info) { ?> + + + + + + + + + + + + +
    + tabRatio)==1){?> + + Retour à la page complète + + + tabResult[0]['dateCloture']?>
    tabResult[0]['duree']?>
    EvolutiontabResult[1]['dateCloture']?>
    tabResult[1]['duree']?>
    EvolutiontabResult[2]['dateCloture']?>
    tabResult[2]['duree']?>
    Evolution 
    + + tabResult[0]['entrep'][$ratio]?>tabResult[0]['entrepEvol'][$ratio]?>tabResult[1]['entrep'][$ratio]?>tabResult[1]['entrepEvol'][$ratio]?>tabResult[2]['entrep'][$ratio]?>tabResult[2]['entrepEvol'][$ratio]?> + graph): ?> + + Visionner le graphique + + + +
    +
    + +
    +graph) {?> +action('synthesegraphcompare', 'finance', null, array('siret'=>$this->siret, 'id'=>$this->id, 'typeBilan'=>$this->typeBilan))?> + +Les informations sont insufisantes pour générer le graphique de synthèse. + +
    + + diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/1x1.png b/library/Scores/Partner/Templates/pages/themes/default/images/1x1.png new file mode 100644 index 0000000..1914264 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/1x1.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/1-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/1-1.gif new file mode 100644 index 0000000..d0bce15 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/1-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/10-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/10-1.gif new file mode 100644 index 0000000..b9fc304 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/10-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/11-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/11-1.gif new file mode 100644 index 0000000..5516707 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/11-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/12-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/12-1.gif new file mode 100644 index 0000000..3dcce9a Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/12-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/13-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/13-1.gif new file mode 100644 index 0000000..c48e97e Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/13-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/14-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/14-1.gif new file mode 100644 index 0000000..de2e8b6 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/14-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/15-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/15-1.gif new file mode 100644 index 0000000..9880edb Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/15-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/16-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/16-1.gif new file mode 100644 index 0000000..40e3890 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/16-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/17-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/17-1.gif new file mode 100644 index 0000000..49b6d85 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/17-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/18-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/18-1.gif new file mode 100644 index 0000000..2fd8e07 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/18-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/19-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/19-1.gif new file mode 100644 index 0000000..cc70a7a Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/19-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/2-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/2-1.gif new file mode 100644 index 0000000..5b33f7e Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/2-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/20-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/20-1.gif new file mode 100644 index 0000000..e158443 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/20-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/21-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/21-1.gif new file mode 100644 index 0000000..e2a116c Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/21-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/22-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/22-1.gif new file mode 100644 index 0000000..65bf403 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/22-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/23-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/23-1.gif new file mode 100644 index 0000000..2538b9c Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/23-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/24-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/24-1.gif new file mode 100644 index 0000000..1c72ebb Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/24-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/25-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/25-1.gif new file mode 100644 index 0000000..c69e937 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/25-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/26-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/26-1.gif new file mode 100644 index 0000000..cbe59fb Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/26-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/27-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/27-1.gif new file mode 100644 index 0000000..ddb7ff1 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/27-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/28-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/28-1.gif new file mode 100644 index 0000000..078b55f Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/28-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/29-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/29-1.gif new file mode 100644 index 0000000..097b914 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/29-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/3-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/3-1.gif new file mode 100644 index 0000000..408af5c Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/3-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/30-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/30-1.gif new file mode 100644 index 0000000..c97ec6e Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/30-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/31-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/31-1.gif new file mode 100644 index 0000000..c101053 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/31-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/32-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/32-1.gif new file mode 100644 index 0000000..031c908 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/32-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/33-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/33-1.gif new file mode 100644 index 0000000..b8d06f6 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/33-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/34-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/34-1.gif new file mode 100644 index 0000000..4fb7c23 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/34-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/35-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/35-1.gif new file mode 100644 index 0000000..0ca7ada Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/35-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/4-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/4-1.gif new file mode 100644 index 0000000..e192ca8 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/4-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/5-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/5-1.gif new file mode 100644 index 0000000..3288d10 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/5-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/6-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/6-1.gif new file mode 100644 index 0000000..1560b64 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/6-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/7-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/7-1.gif new file mode 100644 index 0000000..c14d375 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/7-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/8-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/8-1.gif new file mode 100644 index 0000000..d84f653 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/8-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ajax/9-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/9-1.gif new file mode 100644 index 0000000..72fb406 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ajax/9-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/annonces/logo_greffe.png b/library/Scores/Partner/Templates/pages/themes/default/images/annonces/logo_greffe.png new file mode 100644 index 0000000..f8953c7 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/annonces/logo_greffe.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/annonces/logo_indiscore.png b/library/Scores/Partner/Templates/pages/themes/default/images/annonces/logo_indiscore.png new file mode 100644 index 0000000..5b54368 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/annonces/logo_indiscore.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/annonces/logo_inpi.png b/library/Scores/Partner/Templates/pages/themes/default/images/annonces/logo_inpi.png new file mode 100644 index 0000000..25e0b68 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/annonces/logo_inpi.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/annonces/logo_jal.png b/library/Scores/Partner/Templates/pages/themes/default/images/annonces/logo_jal.png new file mode 100644 index 0000000..d46175e Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/annonces/logo_jal.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/annonces/logo_jo.png b/library/Scores/Partner/Templates/pages/themes/default/images/annonces/logo_jo.png new file mode 100644 index 0000000..120b194 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/annonces/logo_jo.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/boutton_precedent_off.gif b/library/Scores/Partner/Templates/pages/themes/default/images/boutton_precedent_off.gif new file mode 100644 index 0000000..b07ec8c Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/boutton_precedent_off.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/boutton_precedent_on.gif b/library/Scores/Partner/Templates/pages/themes/default/images/boutton_precedent_on.gif new file mode 100644 index 0000000..72f3a14 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/boutton_precedent_on.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/boutton_suivant_off.gif b/library/Scores/Partner/Templates/pages/themes/default/images/boutton_suivant_off.gif new file mode 100644 index 0000000..b1198b3 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/boutton_suivant_off.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/boutton_suivant_on.gif b/library/Scores/Partner/Templates/pages/themes/default/images/boutton_suivant_on.gif new file mode 100644 index 0000000..44a2371 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/boutton_suivant_on.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/boutton_valider_off.gif b/library/Scores/Partner/Templates/pages/themes/default/images/boutton_valider_off.gif new file mode 100644 index 0000000..03f49a1 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/boutton_valider_off.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/boutton_valider_on.gif b/library/Scores/Partner/Templates/pages/themes/default/images/boutton_valider_on.gif new file mode 100644 index 0000000..f27db11 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/boutton_valider_on.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/comment/li-egale.gif b/library/Scores/Partner/Templates/pages/themes/default/images/comment/li-egale.gif new file mode 100644 index 0000000..47d9d87 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/comment/li-egale.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/comment/li-moins.gif b/library/Scores/Partner/Templates/pages/themes/default/images/comment/li-moins.gif new file mode 100644 index 0000000..8876b8d Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/comment/li-moins.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/comment/li-plus.gif b/library/Scores/Partner/Templates/pages/themes/default/images/comment/li-plus.gif new file mode 100644 index 0000000..f24dc2e Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/comment/li-plus.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/comment/li-point.gif b/library/Scores/Partner/Templates/pages/themes/default/images/comment/li-point.gif new file mode 100644 index 0000000..1f9ac9c Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/comment/li-point.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/customrapport/logo_ordertocash.jpg b/library/Scores/Partner/Templates/pages/themes/default/images/customrapport/logo_ordertocash.jpg new file mode 100644 index 0000000..870cb0f Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/customrapport/logo_ordertocash.jpg differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/customrapport/logo_ordertocash_background.jpg b/library/Scores/Partner/Templates/pages/themes/default/images/customrapport/logo_ordertocash_background.jpg new file mode 100644 index 0000000..8281108 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/customrapport/logo_ordertocash_background.jpg differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/drapeaux/de.png b/library/Scores/Partner/Templates/pages/themes/default/images/drapeaux/de.png new file mode 100644 index 0000000..ac4a977 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/drapeaux/de.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/drapeaux/en.png b/library/Scores/Partner/Templates/pages/themes/default/images/drapeaux/en.png new file mode 100644 index 0000000..ff701e1 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/drapeaux/en.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/drapeaux/fr.png b/library/Scores/Partner/Templates/pages/themes/default/images/drapeaux/fr.png new file mode 100644 index 0000000..8332c4e Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/drapeaux/fr.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/drapeaux/it.png b/library/Scores/Partner/Templates/pages/themes/default/images/drapeaux/it.png new file mode 100644 index 0000000..89692f7 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/drapeaux/it.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/drapeaux/nl.png b/library/Scores/Partner/Templates/pages/themes/default/images/drapeaux/nl.png new file mode 100644 index 0000000..fe44791 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/drapeaux/nl.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/exclamation.png b/library/Scores/Partner/Templates/pages/themes/default/images/exclamation.png new file mode 100644 index 0000000..678ccff Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/exclamation.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/finance/char_bar.png b/library/Scores/Partner/Templates/pages/themes/default/images/finance/char_bar.png new file mode 100644 index 0000000..9051fbc Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/finance/char_bar.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/finance/pbar-ani.gif b/library/Scores/Partner/Templates/pages/themes/default/images/finance/pbar-ani.gif new file mode 100644 index 0000000..cb59a04 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/finance/pbar-ani.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/finance/ratios_bon.png b/library/Scores/Partner/Templates/pages/themes/default/images/finance/ratios_bon.png new file mode 100644 index 0000000..0e247cd Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/finance/ratios_bon.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/finance/ratios_mauvais.png b/library/Scores/Partner/Templates/pages/themes/default/images/finance/ratios_mauvais.png new file mode 100644 index 0000000..7329735 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/finance/ratios_mauvais.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/giant/19-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/giant/19-1.gif new file mode 100644 index 0000000..cc70a7a Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/giant/19-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/giant/26-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/giant/26-1.gif new file mode 100644 index 0000000..cbe59fb Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/giant/26-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/giant/8-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/giant/8-1.gif new file mode 100644 index 0000000..d84f653 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/giant/8-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/giant/9-1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/giant/9-1.gif new file mode 100644 index 0000000..72fb406 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/giant/9-1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/giant/annonces/BODACC.png b/library/Scores/Partner/Templates/pages/themes/default/images/giant/annonces/BODACC.png new file mode 100644 index 0000000..120b194 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/giant/annonces/BODACC.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/giant/annonces/GREFFE.png b/library/Scores/Partner/Templates/pages/themes/default/images/giant/annonces/GREFFE.png new file mode 100644 index 0000000..f8953c7 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/giant/annonces/GREFFE.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/giant/annonces/INPI.png b/library/Scores/Partner/Templates/pages/themes/default/images/giant/annonces/INPI.png new file mode 100644 index 0000000..25e0b68 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/giant/annonces/INPI.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/giant/annonces/flag_green.png b/library/Scores/Partner/Templates/pages/themes/default/images/giant/annonces/flag_green.png new file mode 100644 index 0000000..e4bc611 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/giant/annonces/flag_green.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/giant/annonces/flag_orange.png b/library/Scores/Partner/Templates/pages/themes/default/images/giant/annonces/flag_orange.png new file mode 100644 index 0000000..e632024 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/giant/annonces/flag_orange.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/giant/annonces/flag_red.png b/library/Scores/Partner/Templates/pages/themes/default/images/giant/annonces/flag_red.png new file mode 100644 index 0000000..e8a602d Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/giant/annonces/flag_red.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/giant/cartes/be.JPG b/library/Scores/Partner/Templates/pages/themes/default/images/giant/cartes/be.JPG new file mode 100644 index 0000000..7eb3d5b Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/giant/cartes/be.JPG differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/giant/cartes/es.JPG b/library/Scores/Partner/Templates/pages/themes/default/images/giant/cartes/es.JPG new file mode 100644 index 0000000..b16b655 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/giant/cartes/es.JPG differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/giant/cartes/fr.png b/library/Scores/Partner/Templates/pages/themes/default/images/giant/cartes/fr.png new file mode 100644 index 0000000..dd60d65 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/giant/cartes/fr.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/giant/cartes/nl.JPG b/library/Scores/Partner/Templates/pages/themes/default/images/giant/cartes/nl.JPG new file mode 100644 index 0000000..1e866e1 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/giant/cartes/nl.JPG differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/giant/cartes/uk.JPG b/library/Scores/Partner/Templates/pages/themes/default/images/giant/cartes/uk.JPG new file mode 100644 index 0000000..80f2501 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/giant/cartes/uk.JPG differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/giant/collapsed.gif b/library/Scores/Partner/Templates/pages/themes/default/images/giant/collapsed.gif new file mode 100644 index 0000000..6d87881 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/giant/collapsed.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/giant/down.png b/library/Scores/Partner/Templates/pages/themes/default/images/giant/down.png new file mode 100644 index 0000000..a9bf895 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/giant/down.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/giant/error.png b/library/Scores/Partner/Templates/pages/themes/default/images/giant/error.png new file mode 100644 index 0000000..628cf2d Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/giant/error.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/giant/expanded.gif b/library/Scores/Partner/Templates/pages/themes/default/images/giant/expanded.gif new file mode 100644 index 0000000..f1d588e Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/giant/expanded.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/giant/tag_blue.png b/library/Scores/Partner/Templates/pages/themes/default/images/giant/tag_blue.png new file mode 100644 index 0000000..9757fc6 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/giant/tag_blue.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/giant/up.png b/library/Scores/Partner/Templates/pages/themes/default/images/giant/up.png new file mode 100644 index 0000000..ee99c39 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/giant/up.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-0.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-0.png new file mode 100644 index 0000000..ccca247 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-0.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-1.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-1.png new file mode 100644 index 0000000..ccca247 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-1.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-10.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-10.png new file mode 100644 index 0000000..bf3ef84 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-10.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-100.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-100.png new file mode 100644 index 0000000..aa17601 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-100.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-11.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-11.png new file mode 100644 index 0000000..89548aa Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-11.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-12.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-12.png new file mode 100644 index 0000000..b77c1cb Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-12.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-13.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-13.png new file mode 100644 index 0000000..f69f9f0 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-13.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-14.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-14.png new file mode 100644 index 0000000..d3175bc Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-14.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-15.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-15.png new file mode 100644 index 0000000..ba5e761 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-15.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-16.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-16.png new file mode 100644 index 0000000..1b99486 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-16.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-17.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-17.png new file mode 100644 index 0000000..09ccc6b Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-17.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-18.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-18.png new file mode 100644 index 0000000..5941a57 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-18.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-19.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-19.png new file mode 100644 index 0000000..4917f31 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-19.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-2.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-2.png new file mode 100644 index 0000000..51c44ae Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-2.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-20.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-20.png new file mode 100644 index 0000000..c01fd7a Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-20.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-21.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-21.png new file mode 100644 index 0000000..a400373 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-21.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-22.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-22.png new file mode 100644 index 0000000..d02962c Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-22.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-23.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-23.png new file mode 100644 index 0000000..17604f9 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-23.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-24.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-24.png new file mode 100644 index 0000000..797965a Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-24.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-25.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-25.png new file mode 100644 index 0000000..1abadaf Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-25.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-26.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-26.png new file mode 100644 index 0000000..a6722de Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-26.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-27.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-27.png new file mode 100644 index 0000000..0348295 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-27.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-28.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-28.png new file mode 100644 index 0000000..f7ac693 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-28.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-29.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-29.png new file mode 100644 index 0000000..a4dbf85 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-29.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-3.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-3.png new file mode 100644 index 0000000..0e0f9e0 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-3.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-30.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-30.png new file mode 100644 index 0000000..698039a Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-30.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-31.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-31.png new file mode 100644 index 0000000..28c70ae Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-31.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-32.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-32.png new file mode 100644 index 0000000..d333111 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-32.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-33.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-33.png new file mode 100644 index 0000000..2594b81 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-33.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-34.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-34.png new file mode 100644 index 0000000..de146b0 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-34.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-35.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-35.png new file mode 100644 index 0000000..58b78ca Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-35.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-36.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-36.png new file mode 100644 index 0000000..452cbbb Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-36.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-37.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-37.png new file mode 100644 index 0000000..24fdf90 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-37.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-38.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-38.png new file mode 100644 index 0000000..1f55789 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-38.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-39.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-39.png new file mode 100644 index 0000000..3c7d714 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-39.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-4.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-4.png new file mode 100644 index 0000000..585cf29 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-4.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-40.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-40.png new file mode 100644 index 0000000..34a5134 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-40.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-41.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-41.png new file mode 100644 index 0000000..c538eab Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-41.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-42.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-42.png new file mode 100644 index 0000000..daf0c53 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-42.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-43.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-43.png new file mode 100644 index 0000000..09dc4b6 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-43.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-44.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-44.png new file mode 100644 index 0000000..2dc6b96 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-44.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-45.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-45.png new file mode 100644 index 0000000..6b9e9a8 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-45.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-46.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-46.png new file mode 100644 index 0000000..1d775a3 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-46.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-47.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-47.png new file mode 100644 index 0000000..d2867b1 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-47.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-48.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-48.png new file mode 100644 index 0000000..0651077 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-48.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-49.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-49.png new file mode 100644 index 0000000..167cb3b Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-49.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-5.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-5.png new file mode 100644 index 0000000..32865eb Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-5.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-50.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-50.png new file mode 100644 index 0000000..914cc0d Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-50.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-51.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-51.png new file mode 100644 index 0000000..eff31e1 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-51.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-52.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-52.png new file mode 100644 index 0000000..3f25c59 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-52.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-53.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-53.png new file mode 100644 index 0000000..e4899ba Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-53.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-54.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-54.png new file mode 100644 index 0000000..7acba61 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-54.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-55.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-55.png new file mode 100644 index 0000000..fb9a607 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-55.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-56.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-56.png new file mode 100644 index 0000000..cf0b2f8 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-56.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-57.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-57.png new file mode 100644 index 0000000..fa53424 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-57.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-58.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-58.png new file mode 100644 index 0000000..2025f0a Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-58.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-59.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-59.png new file mode 100644 index 0000000..e9e427b Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-59.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-6.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-6.png new file mode 100644 index 0000000..9a27956 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-6.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-60.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-60.png new file mode 100644 index 0000000..61be3c4 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-60.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-61.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-61.png new file mode 100644 index 0000000..1f53f0d Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-61.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-62.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-62.png new file mode 100644 index 0000000..66aee9e Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-62.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-63.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-63.png new file mode 100644 index 0000000..eb54b42 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-63.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-64.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-64.png new file mode 100644 index 0000000..4fce2ea Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-64.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-65.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-65.png new file mode 100644 index 0000000..43314df Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-65.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-66.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-66.png new file mode 100644 index 0000000..4c980cb Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-66.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-67.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-67.png new file mode 100644 index 0000000..4282e17 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-67.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-68.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-68.png new file mode 100644 index 0000000..54696d1 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-68.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-69.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-69.png new file mode 100644 index 0000000..8a78c7a Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-69.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-7.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-7.png new file mode 100644 index 0000000..b677fb9 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-7.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-70.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-70.png new file mode 100644 index 0000000..6b104cb Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-70.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-71.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-71.png new file mode 100644 index 0000000..ebf0fa5 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-71.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-72.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-72.png new file mode 100644 index 0000000..e1fe5a9 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-72.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-73.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-73.png new file mode 100644 index 0000000..6750fc7 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-73.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-74.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-74.png new file mode 100644 index 0000000..ac0cd2b Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-74.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-75.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-75.png new file mode 100644 index 0000000..b31cbaa Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-75.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-76.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-76.png new file mode 100644 index 0000000..022d2a2 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-76.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-77.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-77.png new file mode 100644 index 0000000..02c13d3 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-77.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-78.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-78.png new file mode 100644 index 0000000..c3f0536 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-78.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-79.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-79.png new file mode 100644 index 0000000..f6ad981 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-79.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-8.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-8.png new file mode 100644 index 0000000..bf60569 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-8.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-80.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-80.png new file mode 100644 index 0000000..b7c35d9 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-80.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-81.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-81.png new file mode 100644 index 0000000..e6d3e80 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-81.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-82.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-82.png new file mode 100644 index 0000000..7fad582 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-82.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-83.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-83.png new file mode 100644 index 0000000..f8805b1 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-83.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-84.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-84.png new file mode 100644 index 0000000..b5513b5 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-84.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-85.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-85.png new file mode 100644 index 0000000..7c36a95 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-85.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-86.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-86.png new file mode 100644 index 0000000..fcff076 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-86.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-87.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-87.png new file mode 100644 index 0000000..6bb02c8 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-87.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-88.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-88.png new file mode 100644 index 0000000..cfe5fed Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-88.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-89.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-89.png new file mode 100644 index 0000000..1e94dc1 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-89.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-9.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-9.png new file mode 100644 index 0000000..18bb817 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-9.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-90.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-90.png new file mode 100644 index 0000000..e45a55f Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-90.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-91.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-91.png new file mode 100644 index 0000000..f927821 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-91.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-92.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-92.png new file mode 100644 index 0000000..95af8c8 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-92.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-93.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-93.png new file mode 100644 index 0000000..93c4c01 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-93.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-94.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-94.png new file mode 100644 index 0000000..a1a46d5 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-94.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-95.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-95.png new file mode 100644 index 0000000..ad98f6e Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-95.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-96.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-96.png new file mode 100644 index 0000000..c958694 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-96.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-97.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-97.png new file mode 100644 index 0000000..4cce4b8 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-97.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-98.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-98.png new file mode 100644 index 0000000..2d06130 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-98.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-99.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-99.png new file mode 100644 index 0000000..4fb733b Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/imgscores-99.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/logo_indiscore.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/logo_indiscore.png new file mode 100644 index 0000000..5b54368 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/logo_indiscore.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/reglette.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/reglette.png new file mode 100644 index 0000000..5a2660a Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/reglette.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/sgradiant2.png b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/sgradiant2.png new file mode 100644 index 0000000..9b03e18 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/indiscore/sgradiant2.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/info.gif b/library/Scores/Partner/Templates/pages/themes/default/images/info.gif new file mode 100644 index 0000000..cb24afb Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/info.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/aideligne.png b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/aideligne.png new file mode 100644 index 0000000..a571221 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/aideligne.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/ajouter.png b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/ajouter.png new file mode 100644 index 0000000..477bd65 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/ajouter.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/delete.gif b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/delete.gif new file mode 100644 index 0000000..83fd604 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/delete.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/domiciliation.png b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/domiciliation.png new file mode 100644 index 0000000..60639b5 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/domiciliation.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/edit0.gif b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/edit0.gif new file mode 100644 index 0000000..ef435bf Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/edit0.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/edit1.gif b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/edit1.gif new file mode 100644 index 0000000..38936b7 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/edit1.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/editer.png b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/editer.png new file mode 100644 index 0000000..1a86350 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/editer.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/editer_trans.png b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/editer_trans.png new file mode 100644 index 0000000..cd10c96 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/editer_trans.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/even.png b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/even.png new file mode 100644 index 0000000..18b7c67 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/even.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/exclamation.png b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/exclamation.png new file mode 100644 index 0000000..678ccff Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/exclamation.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/icone_courrier.png b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/icone_courrier.png new file mode 100644 index 0000000..4e5dce4 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/icone_courrier.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/icone_pdf.gif b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/icone_pdf.gif new file mode 100644 index 0000000..221af11 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/icone_pdf.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/page_swap.png b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/page_swap.png new file mode 100644 index 0000000..a557dc0 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/page_swap.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/page_white_put.png b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/page_white_put.png new file mode 100644 index 0000000..ef25c0b Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/page_white_put.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/pdf.png b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/pdf.png new file mode 100644 index 0000000..b624387 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/pdf.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/printer.png b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/printer.png new file mode 100644 index 0000000..5935c7f Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/printer.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/save_copy.png b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/save_copy.png new file mode 100644 index 0000000..41afdf8 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/save_copy.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/supprimer.png b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/supprimer.png new file mode 100644 index 0000000..454aa63 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/supprimer.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/xml.png b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/xml.png new file mode 100644 index 0000000..5c6b4b8 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/interfaces/xml.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/logos/logo_sd.gif b/library/Scores/Partner/Templates/pages/themes/default/images/logos/logo_sd.gif new file mode 100644 index 0000000..d4bc4a9 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/logos/logo_sd.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/logos/logo_sd.png b/library/Scores/Partner/Templates/pages/themes/default/images/logos/logo_sd.png new file mode 100644 index 0000000..7431989 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/logos/logo_sd.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/maps/admin0.png b/library/Scores/Partner/Templates/pages/themes/default/images/maps/admin0.png new file mode 100644 index 0000000..90a5d70 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/maps/admin0.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/maps/admin1.png b/library/Scores/Partner/Templates/pages/themes/default/images/maps/admin1.png new file mode 100644 index 0000000..7957d5b Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/maps/admin1.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/maps/domi0.png b/library/Scores/Partner/Templates/pages/themes/default/images/maps/domi0.png new file mode 100644 index 0000000..e272949 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/maps/domi0.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/maps/domi1.png b/library/Scores/Partner/Templates/pages/themes/default/images/maps/domi1.png new file mode 100644 index 0000000..f6e6817 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/maps/domi1.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/maps/entrepot0.png b/library/Scores/Partner/Templates/pages/themes/default/images/maps/entrepot0.png new file mode 100644 index 0000000..c26ab62 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/maps/entrepot0.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/maps/entrepot1.png b/library/Scores/Partner/Templates/pages/themes/default/images/maps/entrepot1.png new file mode 100644 index 0000000..b512f65 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/maps/entrepot1.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/maps/etab0.png b/library/Scores/Partner/Templates/pages/themes/default/images/maps/etab0.png new file mode 100644 index 0000000..20760c0 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/maps/etab0.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/maps/etab1.png b/library/Scores/Partner/Templates/pages/themes/default/images/maps/etab1.png new file mode 100644 index 0000000..82f6699 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/maps/etab1.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/maps/pers0.png b/library/Scores/Partner/Templates/pages/themes/default/images/maps/pers0.png new file mode 100644 index 0000000..8eebd44 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/maps/pers0.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/maps/pers1.png b/library/Scores/Partner/Templates/pages/themes/default/images/maps/pers1.png new file mode 100644 index 0000000..9b733fd Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/maps/pers1.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/maps/shop0.png b/library/Scores/Partner/Templates/pages/themes/default/images/maps/shop0.png new file mode 100644 index 0000000..4bb96e5 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/maps/shop0.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/maps/shop1.png b/library/Scores/Partner/Templates/pages/themes/default/images/maps/shop1.png new file mode 100644 index 0000000..4a2d537 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/maps/shop1.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/maps/siege.png b/library/Scores/Partner/Templates/pages/themes/default/images/maps/siege.png new file mode 100644 index 0000000..77d2883 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/maps/siege.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/maps/siege0.png b/library/Scores/Partner/Templates/pages/themes/default/images/maps/siege0.png new file mode 100644 index 0000000..6b5c14d Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/maps/siege0.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/maps/siege1.png b/library/Scores/Partner/Templates/pages/themes/default/images/maps/siege1.png new file mode 100644 index 0000000..2213038 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/maps/siege1.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/maps/tractor0.png b/library/Scores/Partner/Templates/pages/themes/default/images/maps/tractor0.png new file mode 100644 index 0000000..f46bf51 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/maps/tractor0.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/maps/tractor1.png b/library/Scores/Partner/Templates/pages/themes/default/images/maps/tractor1.png new file mode 100644 index 0000000..9bfd55f Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/maps/tractor1.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/maps/usine0.png b/library/Scores/Partner/Templates/pages/themes/default/images/maps/usine0.png new file mode 100644 index 0000000..002cf99 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/maps/usine0.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/maps/usine1.png b/library/Scores/Partner/Templates/pages/themes/default/images/maps/usine1.png new file mode 100644 index 0000000..94a9e85 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/maps/usine1.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/menu/collapsed.gif b/library/Scores/Partner/Templates/pages/themes/default/images/menu/collapsed.gif new file mode 100644 index 0000000..6d87881 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/menu/collapsed.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/menu/expanded.gif b/library/Scores/Partner/Templates/pages/themes/default/images/menu/expanded.gif new file mode 100644 index 0000000..f1d588e Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/menu/expanded.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/menu/linkarrow.gif b/library/Scores/Partner/Templates/pages/themes/default/images/menu/linkarrow.gif new file mode 100644 index 0000000..059a0de Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/menu/linkarrow.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/menu/logo_menu.gif b/library/Scores/Partner/Templates/pages/themes/default/images/menu/logo_menu.gif new file mode 100644 index 0000000..d4bc4a9 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/menu/logo_menu.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/menu/title.gif b/library/Scores/Partner/Templates/pages/themes/default/images/menu/title.gif new file mode 100644 index 0000000..f18be19 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/menu/title.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_alert.gif b/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_alert.gif new file mode 100644 index 0000000..cc74925 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_alert.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_orangebaisse.gif b/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_orangebaisse.gif new file mode 100644 index 0000000..2d1b98d Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_orangebaisse.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_orangebaisse45.gif b/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_orangebaisse45.gif new file mode 100644 index 0000000..a0757bf Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_orangebaisse45.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_orangeconstant.gif b/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_orangeconstant.gif new file mode 100644 index 0000000..c75a192 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_orangeconstant.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_orangehausse.gif b/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_orangehausse.gif new file mode 100644 index 0000000..b99f16d Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_orangehausse.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_orangehausse45.gif b/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_orangehausse45.gif new file mode 100644 index 0000000..cbc03ac Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_orangehausse45.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_rougebaisse.gif b/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_rougebaisse.gif new file mode 100644 index 0000000..0fdcb15 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_rougebaisse.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_rougebaisse45.gif b/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_rougebaisse45.gif new file mode 100644 index 0000000..7029981 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_rougebaisse45.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_rougeconstant.gif b/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_rougeconstant.gif new file mode 100644 index 0000000..56ffd91 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_rougeconstant.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_rougehausse.gif b/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_rougehausse.gif new file mode 100644 index 0000000..8f4113b Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_rougehausse.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_rougehausse45.gif b/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_rougehausse45.gif new file mode 100644 index 0000000..1e9b58b Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_rougehausse45.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_vertbaisse.gif b/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_vertbaisse.gif new file mode 100644 index 0000000..e4b6037 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_vertbaisse.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_vertbaisse45.gif b/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_vertbaisse45.gif new file mode 100644 index 0000000..7a23543 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_vertbaisse45.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_vertconstant.gif b/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_vertconstant.gif new file mode 100644 index 0000000..916fe08 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_vertconstant.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_verthausse.gif b/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_verthausse.gif new file mode 100644 index 0000000..89ee077 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_verthausse.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_verthausse45.gif b/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_verthausse45.gif new file mode 100644 index 0000000..bff7e38 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/portefeuille/score_verthausse45.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/scoring/feux_orange.png b/library/Scores/Partner/Templates/pages/themes/default/images/scoring/feux_orange.png new file mode 100644 index 0000000..3fe13a8 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/scoring/feux_orange.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/scoring/feux_rouge.png b/library/Scores/Partner/Templates/pages/themes/default/images/scoring/feux_rouge.png new file mode 100644 index 0000000..2e18f65 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/scoring/feux_rouge.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/scoring/feux_vert.png b/library/Scores/Partner/Templates/pages/themes/default/images/scoring/feux_vert.png new file mode 100644 index 0000000..38ab774 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/scoring/feux_vert.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/scoring/logo_creditsafe.png b/library/Scores/Partner/Templates/pages/themes/default/images/scoring/logo_creditsafe.png new file mode 100644 index 0000000..5972074 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/scoring/logo_creditsafe.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/siretdirect.gif b/library/Scores/Partner/Templates/pages/themes/default/images/siretdirect.gif new file mode 100644 index 0000000..c1d40bc Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/siretdirect.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/ui-anim_basic_16x16.gif b/library/Scores/Partner/Templates/pages/themes/default/images/ui-anim_basic_16x16.gif new file mode 100644 index 0000000..084ecb8 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/ui-anim_basic_16x16.gif differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/worldcheck/first.png b/library/Scores/Partner/Templates/pages/themes/default/images/worldcheck/first.png new file mode 100644 index 0000000..cfcc323 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/worldcheck/first.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/worldcheck/last.png b/library/Scores/Partner/Templates/pages/themes/default/images/worldcheck/last.png new file mode 100644 index 0000000..6dab793 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/worldcheck/last.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/worldcheck/next.png b/library/Scores/Partner/Templates/pages/themes/default/images/worldcheck/next.png new file mode 100644 index 0000000..21f6cf2 Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/worldcheck/next.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/worldcheck/prev.png b/library/Scores/Partner/Templates/pages/themes/default/images/worldcheck/prev.png new file mode 100644 index 0000000..6013ddc Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/worldcheck/prev.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/worldcheck/wc-blanc.png b/library/Scores/Partner/Templates/pages/themes/default/images/worldcheck/wc-blanc.png new file mode 100644 index 0000000..819e6be Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/worldcheck/wc-blanc.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/worldcheck/wc.png b/library/Scores/Partner/Templates/pages/themes/default/images/worldcheck/wc.png new file mode 100644 index 0000000..40f4a9e Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/worldcheck/wc.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/images/worldcheck/wc0.png b/library/Scores/Partner/Templates/pages/themes/default/images/worldcheck/wc0.png new file mode 100644 index 0000000..883e66f Binary files /dev/null and b/library/Scores/Partner/Templates/pages/themes/default/images/worldcheck/wc0.png differ diff --git a/library/Scores/Partner/Templates/pages/themes/default/styles/main.css b/library/Scores/Partner/Templates/pages/themes/default/styles/main.css new file mode 100644 index 0000000..ddd972c --- /dev/null +++ b/library/Scores/Partner/Templates/pages/themes/default/styles/main.css @@ -0,0 +1,680 @@ +/*! normalize.css v2.1.2 */ + +/* ========================================================================== + HTML5 display definitions + ========================================================================== */ + +/** + * Correct `block` display not defined in IE 8/9. + */ + +article, +aside, +details, +figcaption, +figure, +footer, +header, +hgroup, +main, +nav, +section, +summary { + display: block; +} + +/** + * Correct `inline-block` display not defined in IE 8/9. + */ + +audio, +canvas, +video { + display: inline-block; +} + +/** + * Prevent modern browsers from displaying `audio` without controls. + * Remove excess height in iOS 5 devices. + */ + +audio:not([controls]) { + display: none; + height: 0; +} + +/** + * Address styling not present in IE 8/9. + */ + +[hidden] { + display: none; +} + +/* ========================================================================== + Base + ========================================================================== */ + +/** + * 1. Set default font family to sans-serif. + * 2. Prevent iOS text size adjust after orientation change, without disabling + * user zoom. + */ + +html { + font-family: sans-serif; /* 1 */ + -ms-text-size-adjust: 100%; /* 2 */ + -webkit-text-size-adjust: 100%; /* 2 */ +} + +/** + * Remove default margin. + */ + +body { + margin: 0; +} + +/* ========================================================================== + Links + ========================================================================== */ + +/** + * Address `outline` inconsistency between Chrome and other browsers. + */ + +a:focus { + outline: thin dotted; +} + +/** + * Improve readability when focused and also mouse hovered in all browsers. + */ + +a:active, +a:hover { + outline: 0; +} + +/* ========================================================================== + Typography + ========================================================================== */ + +/** + * Address variable `h1` font-size and margin within `section` and `article` + * contexts in Firefox 4+, Safari 5, and Chrome. + */ + +h1 { + font-size: 2em; + margin: 0.67em 0; +} + +/** + * Address styling not present in IE 8/9, Safari 5, and Chrome. + */ + +abbr[title] { + border-bottom: 1px dotted; +} + +/** + * Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome. + */ + +b, +strong { + font-weight: bold; +} + +/** + * Address styling not present in Safari 5 and Chrome. + */ + +dfn { + font-style: italic; +} + +/** + * Address differences between Firefox and other browsers. + */ + +hr { + -moz-box-sizing: content-box; + box-sizing: content-box; + height: 0; +} + +/** + * Address styling not present in IE 8/9. + */ + +mark { + background: #ff0; + color: #000; +} + +/** + * Correct font family set oddly in Safari 5 and Chrome. + */ + +code, +kbd, +pre, +samp { + font-family: monospace, serif; + font-size: 1em; +} + +/** + * Improve readability of pre-formatted text in all browsers. + */ + +pre { + white-space: pre-wrap; +} + +/** + * Set consistent quote types. + */ + +q { + quotes: "\201C" "\201D" "\2018" "\2019"; +} + +/** + * Address inconsistent and variable font size in all browsers. + */ + +small { + font-size: 80%; +} + +/** + * Prevent `sub` and `sup` affecting `line-height` in all browsers. + */ + +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sup { + top: -0.5em; +} + +sub { + bottom: -0.25em; +} + +/* ========================================================================== + Embedded content + ========================================================================== */ + +/** + * Remove border when inside `a` element in IE 8/9. + */ + +img { + border: 0; +} + +/** + * Correct overflow displayed oddly in IE 9. + */ + +svg:not(:root) { + overflow: hidden; +} + +/* ========================================================================== + Figures + ========================================================================== */ + +/** + * Address margin not present in IE 8/9 and Safari 5. + */ + +figure { + margin: 0; +} + +/* ========================================================================== + Forms + ========================================================================== */ + +/** + * Define consistent border, margin, and padding. + */ + +fieldset { + border: 1px solid #c0c0c0; + margin: 0 2px; + padding: 0.35em 0.625em 0.75em; +} + +/** + * 1. Correct `color` not being inherited in IE 8/9. + * 2. Remove padding so people aren't caught out if they zero out fieldsets. + */ + +legend { + border: 0; /* 1 */ + padding: 0; /* 2 */ +} + +/** + * 1. Correct font family not being inherited in all browsers. + * 2. Correct font size not being inherited in all browsers. + * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome. + */ + +button, +input, +select, +textarea { + font-family: inherit; /* 1 */ + font-size: 100%; /* 2 */ + margin: 0; /* 3 */ +} + +/** + * Address Firefox 4+ setting `line-height` on `input` using `!important` in + * the UA stylesheet. + */ + +button, +input { + line-height: normal; +} + +/** + * Address inconsistent `text-transform` inheritance for `button` and `select`. + * All other form control elements do not inherit `text-transform` values. + * Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+. + * Correct `select` style inheritance in Firefox 4+ and Opera. + */ + +button, +select { + text-transform: none; +} + +/** + * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` + * and `video` controls. + * 2. Correct inability to style clickable `input` types in iOS. + * 3. Improve usability and consistency of cursor style between image-type + * `input` and others. + */ + +button, +html input[type="button"], /* 1 */ +input[type="reset"], +input[type="submit"] { + -webkit-appearance: button; /* 2 */ + cursor: pointer; /* 3 */ +} + +/** + * Re-set default cursor for disabled elements. + */ + +button[disabled], +html input[disabled] { + cursor: default; +} + +/** + * 1. Address box sizing set to `content-box` in IE 8/9. + * 2. Remove excess padding in IE 8/9. + */ + +input[type="checkbox"], +input[type="radio"] { + box-sizing: border-box; /* 1 */ + padding: 0; /* 2 */ +} + +/** + * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome. + * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome + * (include `-moz` to future-proof). + */ + +input[type="search"] { + -webkit-appearance: textfield; /* 1 */ + -moz-box-sizing: content-box; + -webkit-box-sizing: content-box; /* 2 */ + box-sizing: content-box; +} + +/** + * Remove inner padding and search cancel button in Safari 5 and Chrome + * on OS X. + */ + +input[type="search"]::-webkit-search-cancel-button, +input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} + +/** + * Remove inner padding and border in Firefox 4+. + */ + +button::-moz-focus-inner, +input::-moz-focus-inner { + border: 0; + padding: 0; +} + +/** + * 1. Remove default vertical scrollbar in IE 8/9. + * 2. Improve readability and alignment in all browsers. + */ + +textarea { + overflow: auto; /* 1 */ + vertical-align: top; /* 2 */ +} + +/* ========================================================================== + Tables + ========================================================================== */ + +/** + * Remove most spacing between table cells. + */ + +table { + border-collapse: collapse; + border-spacing: 0; +} + +/* Main +----------------------------------*/ +body{font-family: Verdana, Arial, sans-serif;font-size: 11px;text-align: center; /* pour corriger le bug de centrage IE */ } +#global {text-align:left;} +#content {padding:0;margin:0;} +#center {background-color:#fff;padding:5px 0;} +#footer {clear:both;text-align:center;margin-top:15px;} +#footer p {font:0.9em Arial, Helvetica, sans-serif; } +#center h1 {clear:both;margin:5px;padding:5px; background:#606060; color:#ffffff;font:600 1.4em Arial, Verdana, Sans-serif; letter-spacing:1px; line-height:1.2em;} +#center h2 {clear:both; margin:5px; padding:5px; background:#00008c; color:#ffffff; font:bold 1.2em Arial, Verdana, Sans-serif; } +div.paragraph {margin:5px;padding:5px;} +.clearfix:after {content: ".";display: block;height: 0;clear: both;visibility: hidden;zoom:1;} +a:link {color: #9c093a; text-decoration:none;} +a:visited {color: #0000CC; text-decoration:none;} +a:hover {color: #000066; text-decoration:none;} +.StyleInfoLib {font-family: Arial, Helvetica, sans-serif;font-size: 11px;font-weight: bold;color:#535353; vertical-align:top;} +.StyleInfoData {font-family: Arial, Helvetica, sans-serif;font-size: 11px;color:#535353;} +.StyleInfoDataActif {font-family: Arial, Helvetica, sans-serif;font-size: 11px;} +table.identite {border-collapse:separate;border-spacing:4px;} +table.data {width:100%;} +table.data td {border:1px solid #ccc; padding:5px;} +.confidentiel {border-top:1px solid; padding-top:5px; font-style:italic; font-size:9px;} +.ui-dialog {text-align:left;} +.ui-widget {font-size: 1em;} +input, select {border: 1px solid #999999;vertical-align: middle;font: 11px Arial,Helvetica,sans-serif;} +.ui-autocomplete-loading {background: white url('/themes/default/images/ui-anim_basic_16x16.gif') right center no-repeat; } +div.ui-state-highlight p {margin: 10px;} +div.ui-state-highlight a {text-decoration: underline;} +.noborder {border:0;} +img { vertical-align:middle; } + + +/* Menu +----------------------------------*/ +div#menu {display:none;} +div#menu .ui-widget {font-family:Arial, Sans-serif;font-size:12px;} +div#menu ul.navigation li {list-style-type:none;} +div#menu ul.navigation li a {display:block;padding:0 20px;text-decoration:none;font-weight:bold;color:#fff;height:25px;line-height:25px;background:#808080 url(/themes/default/images/menu/title.gif);} +div#menu ul.navigation li ul {padding:0;overflow:hidden;} +div#menu ul.navigation li ul li a {padding:0 5px;margin:0;background:#eee;border-bottom:1px solid #ddd;text-decoration:none;color:#066;font-weight:normal;} +div#menu ul.navigation li ul li a:hover {background:#066 url(/themes/default/images/menu/linkarrow.gif) no-repeat right center; color: #fff;} +div#menu ul.navigation li ul li a.inactif {color:gray;} +div#menu ul.navigation li a .ui-icon-triangle-1-e {background:url(/themes/default/images/menu/collapsed.gif) no-repeat left center; } +div#menu ul.navigation li a .ui-icon-triangle-1-s {background:url(/themes/default/images/menu/expanded.gif) no-repeat left center; } +div#menu ul.navigation li ul li a .ui-icon {margin:0;padding:0;background:none;} +.ui-accordion-content {overflow: hidden;} +div#menu ul.navigation li a.ui-corner-all {border-radius: 0;} +div#menu ul.navigation li a.ui-corner-top {border-top-left-radius: 0;border-top-right-radius: 0;} +div#menu ul.navigation li a.ui-accordion-header {margin-top: 0;} +div#menu ul.navigation li a.ui-state-default, +div#menu ul.navigation li a.ui-state-hover, +div#menu ul.navigation li a.ui-state-active {border: 0;} +div#menu div.icones {text-align:center;margin-top:5px;} + +/* Recherche +----------------------------------*/ +/*#center{padding:5px;}*/ +#center-recherche{text-align:center; padding:0;} +#recherche{margin:78px auto 20px auto;} +#recherche h3{color:#ffffff; font-size:medium; font-weight:bold;} +#recherche-info{text-align:center;} +#recherche-page{text-align:center;} +#recherche-page img{vertical-align:middle;} +form.recherche{padding:0; text-align:left;} +form.recherche label {clear:both;float:left;width:250px;line-height:20px;font-weight:bold;text-align:right;padding-right:5px;} +form.recherche div.field {float:left;} +form.recherche div.row {clear:both;padding:5px 0;} +form.recherche div.submit {text-align:center;} +form.recherche div.field input, form.recherche div.field select {margin:0 2px;} +form.recherche input {font-family: arial, sans-serif;border:1px solid #999999;} +form.recherche select {font-family: arial, sans-serif;border:1px solid #999999;} +ul.derniereRecherche {margin:5px;} +ul.derniereRecherche li {margin:5px;} +ul.derniereRecherche p {text-decoration:underline;} +ol {text-align:left;margin:10px;padding:0 20px;} +ol li {margin:5px; padding:5px;} +.ui-autocomplete {text-align:left;} + +/* Identite +----------------------------------*/ +.datemaj span { display:none; } +div.adresse { float:left; margin:5px 5px 0 0; } +div.adresse span { clear:both; float:left; vertical-align:middle; } +div.domiciliation { float:left; margin:5px 0 0 5px; line-height:16px; } +div.domiciliation img { vertical-align:middle; } +div.domiciliation span{ display:none; } +a.AncienSiege { background-color: #4D90FE; border: 1px solid #3079ED; color: #FFFFFF; font-weight: bold; padding: 2px 5px; } + +/* Finance +----------------------------------*/ +.bilans {font-family:"Lucida Sans Unicode", "Lucida Grande", Sans-Serif; font-size:12px; margin: 10px 0 0 0; width:100%; text-align:left; border-collapse:collapse;} +.bilans th {padding:4px; font-weight:normal; font-size:11px; border:1px solid #000; color:#000; background:#b9c9fe; text-align:center; font-weight:bold;} +.bilans td {font-size:11px;padding:4px; border:1px solid #000; color:#000;} +.bilans td.graph {padding:0; margin:0;} +.bilans th.date {font-size:10px;cursor:pointer} +.bilans td.right {text-align:right;} +.bilans td.center {text-align: center;} +.bilans td.italique {font-style:italic;} +.bilans tr.subhead td {font-size:10px;padding:4px; background:#b9c9fe; border: 1px solid #000; font-weight:bold; color:#000;} +.bilans tr.darkblue td {padding:4px; background:#00008c; border: 1px solid #000; font-weight:bold; color:#fff;} +.bilans tr {font-size:10px}; +.entete {margin:1px;} +.subentete {margin:2px;} +.bilanDatas:hover td{background-color:#E5EBFF;} +#ratios { font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif; width:100%; border-collapse:collapse; } +#ratios a { color:#000000; cursor:help; } +#ratios th { padding:8px; font-weight:normal; font-size:13px; color:#039; background:#b9c9fe; } +#ratios td { padding:8px; border:1px solid #000; color:#000; } +#ratios td.center { text-align:center; } +#ratios td.italique { font-style:italic ; } +#ratios td.right { text-align:right; } +#ratios td.position { text-align:center; } +#ratios td.position a { cursor:default; } +#ratios tr.subhead td { padding:8px; background:#b9c9fe; border:1px solid #000; font-weight:bold; color:#000; } +#ratios tr:hover td { background-color:#E5EBFF; } +#rowGraph:hover {background-color: silver;} +#ratio {clear: both;font-family: "Lucida Sans Unicode","Lucida Grande",Sans-Serif;font-size: 12px;margin: 10px 0 0;text-align: left;width: 100%;} +#LiasseTable {border-collapse: collapse;color:#606060;margin:5px 0 10px 0;} +#LiasseTable td {font-size:11px;font-family: arial,sans-serif;border:1px solid silver;padding:2px;} +#LiasseTable td.amount-value {min-width:70px;} +#liasseForm th {color:#606060;font-weight:bold;} +#liasseForm {margin-left:30px;} +#liasseForm td {color:#606060;} +#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;} +.tabbed_box h4 {font-family:Arial, Helvetica, sans-serif;font-size:23px;color:#ffffff;letter-spacing:-1px;margin-bottom:10px;} +.tabbed_box h4 small {color:#e3e9ec;font-weight:normal;font-size:9px;font-family:Verdana, Arial, Helvetica, sans-serif;text-transform:uppercase;position:relative;top:-4px;left:6px;letter-spacing:0px;} +.tabbed_area {text-align:center;background-color:#636d76;padding:8px;} +ul.tabs {margin:0px; padding:0px;margin-top:5px;margin-bottom:6px;} +ul.tabs li {list-style:none;display:inline;line-height:32px;} +ul.tabs li a {background-color:#464c54;color:#ffebb5;padding:8px 14px 8px 14px;text-decoration:none;font-size:9px;font-family:Verdana, Arial, Helvetica, sans-serif;font-weight:bold;text-transform:uppercase;border:1px solid #FFFFFF;} +ul.tabs li a:hover {background-color:#2f343a;border-color:#2f343a;} +ul.tabs li a.active {background-color:#ffffff;color:#282e32;border:1px solid #464c54;border-bottom: 1px solid #ffffff;} +.content {background-color:#ffffff;margin:10px 0;padding:0;} +.content a {font-size:1.5em;font-weight:bold;} +.content ul {margin:0px;padding:0px 20px 0px 20px;} +.content ul li {list-style:none;border-bottom:1px solid #d6dde0;padding-top:15px;padding-bottom:15px;font-size:13px;} +.content ul li a {text-decoration:none;color:#3e4346;} +.content ul li a small {color:#8b959c;font-size:9px;text-transform:uppercase;font-family:Verdana, Arial, Helvetica, sans-serif;position:relative;left:4px;top:0px;} +.content ul li:last-child {border-bottom:none;} + +/* Géolocalisation +----------------------------------*/ +#infogeo_txt {float:left;width:320px;padding:10px 0;} +#infogeo_photo {float:left;margin:0;padding:0;width:320px;} +#legende-photo {margin:5px 0; padding:10px;border:1px solid #0000ff;color:#0000ff;} +#pp-cb-thumb div.left {float:left;position:relative;width:256px;height:128px;overflow:hidden;} +#pp-cb-thumb div.right {float:left;position:relative;width:44px;height:128px;overflow:hidden;} +#pp-cb-thumb div.left img{position:relative;left:-256px;top:-140px;} +#pp-cb-thumb div.right img{position:relative;top:-140px;} + +/* Juridique +----------------------------------*/ +#annoncesDate p {margin:0; line-height:16px; vertical-align:middle;} +#annoncesImg { float:right; border:0; margin:0 20px 0 0;} +#annoncesImg img {margin:0; border:0;} +.listeCompetences { margin:5px 5px 5px 50px;} +.listeCompetences li {margin:10px 5px 20px 5px;} +tr.deleted {text-decoration:line-through;} + +/* Evaluation +----------------------------------*/ +h3 { margin-top:10px; } +h3 u { font-size:13px; color:#535353; font-weight:bold;} +div.stats ul { width: 400px; list-style: none; margin:10px;padding:10px;} +div.stats .percent {display: block;height: 1.5em;line-height: 1.5em;margin: 5px 10px 0 10px;padding: 0 5px;text-align: right;color: #fff;font-weight: bold;font-family: monospace;-moz-border-radius: 5px;border-bottom: 1px solid #aaa;border-right: 1px solid #aaa;cursor: default;} +.blocdegrade {width:300px;} +.imgdegrade {width:310px;} +.textdegrade {position:absolute;overflow:hidden;margin-left:10px;line-height: 18px;color: #000;font-size:11px;font-weight: bold;font-family: monospace;} +div.blocdegrade div { margin:0; } +div.blocdegrade .echelle{width:100%;} +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 +----------------------------------*/ +#commentaires h1 {clear:both;margin:20px 0 5px 0;padding:0;background:none;color:#000000;font:bold 1.2em Arial, Verdana, Sans-serif;border:0;} +#commentaires h2 {clear:both;margin:20px 0 5px 0;padding:0;background:none;color:#000000;font:italic 1.1em Arial, Verdana, Sans-serif;border:0;} +#commentaires h3 {clear:both;margin:10px 0;padding:0;background:none;color:#000000;font:normal 1em Arial, Verdana, Sans-serif;border:0;text-decoration:underline;} +#commentaires h4 {clear:both;margin:10px 0;padding:0;background:none;color:#000000;font:normal 0.8em Arial, Verdana, Sans-serif;border:0;text-decoration:underline;} +#commentaires table td, #commentaires table th {border:1px solid #000000;padding:5px;} +#commentaires table {border-collapse:collapse;margin:5px 0;width:100%;} +#commentaires table td {color:#000000;} +#commentaires table.TABLEAUDEFAUTPLUS {width:48%;float:left;margin:2px;} +#commentaires table.TABLEAUDEFAUTMOINS {width:48%;float:left;margin:2px;} +#commentaires table.TABLEAUDEFAUTNORME {clear:both;width:100%;} +#commentaires table.TABLEAUDEFINANCIER {clear:both; width:100%;} +#commentaires table.TABLEAUDEFINANCIER NORMAL { } +#commentaires table tr.TITRES {background:#000000;color:#ffffff;} +#commentaires table tr.VERT {background:#00ff99;color:#000000;} +#commentaires table tr.ROUGE {background:#ff3030;color:#000000;} +#commentaires table tr.JAUNE {background:#ffff66;color:#000000;} +#commentaires span{padding-left:15px;} +#commentaires span.plus{background: white url('/themes/default/images/comment/li-plus.gif') no-repeat left center;} +#commentaires span.moins{background: white url('/themes/default/images/comment/li-moins.gif') no-repeat left center;} +#commentaires span.point{background: white url('/themes/default/images/comment/li-point.gif') no-repeat left center;} +#commentaires div.texth1 {margin-left:2px;} +#commentaires div.texth2 {margin-left:10px;} +#commentaires div.texth3 {margin-left:10px;} +#commentaires div.texth4 {margin-left:10px;} + +/* Surveillances +----------------------------------*/ +#surveillance {width:100%;border-collapse:collapse; border:1px solid; font:normal 11px Arial, Verdana, Sans-serif; letter-spacing:1px;line-height: 1em;} +#surveillance tr {border:1px solid;} +#surveillance th {border:1px solid; padding:5px;font-weight:bold;} +#surveillance td {border:1px solid;text-align:center;padding:2px;} +#surveillance .aleft {text-align:left;} +#surveillance .action {clear:both; margin:0;padding:0; } +#surveillance td p {line-height:16px;margin: 0;} +#surveillance .action p {display:inline-block; float:left; line-height:16px; margin:0; font-size:11px;} +#surveillance .action a {display:inline-block; float:right;} +#surveillance .action img {vertical-align:middle;} +#surveillance #type {width:120px;} +#tri li {list-style-type:none; margin-left:10px; display:inline; font-size:11px; } +.options { margin-left:10px; margin-top:5px; font-size:11px; } +#telechargementjsMsg { margin-left:10px; margin-top:5px; } +.valign img, .valign span {vertical-align: middle; display: inline-block;} +#surveillance td.encours { text-align:right; } +#surveillance th.score { width:60px; } +#surveillance td a.editencours { display:none; } +#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 +----------------------------------*/ +.marge {margin-left:30px;} +/*#identite { margin-left:30px; }*/ +form em { color:#FF0000;} +fieldset {border:0; margin:0; padding:0;} +fieldset legend{ padding:0 0 0 10px;} +.fieldgrp{clear:both; margin:0 0 .5em 30px; overflow:hidden;} +.fieldgrp:after{content:"."; display:block; clear:both; visibility:hidden; line-height:0; height:0; } +.fieldgrp label{font-weight:bold; margin-left:30px; width:100px; clear:both; padding:0 10px 0 0; line-height:22px;_padding-top:3px; float:left; display:block; font-size:108%;} +.fieldgrp label span{font-weight:normal;} +.fieldgrp label abbr{color:#4B911C; font-size:120%; vertical-align:middle;} +.field { float:left; padding:0 5px 0 0; line-height:22px; _padding-top:3px;} +.field .longfield{width:215px;} +.field .longfield-select{width:220px;} +.field .smallfield{width:95px;} +.field .medfield{width:110px;} +.field span { display:block; } +.field input, .field select{ font-size:110%; margin:2px 0; } +.field input[type="radio"] { margin:0 5px 0 5px; border:0; } +input[type="checkbox"] { margin:0 5px 0 5px; border:0; } +.submit {text-align:center;} +.noborder {border:none;} +#message {margin:10px 0 10px 30px;} +table.greffe {width:100%;border-collapse:collapse;} +table.greffe th {border:1px solid #000000;padding:8px 4px 8px 4px;background-color:#eeeeee;text-align:center; } +table.greffe td.date {text-align:center;background-color:#2b2b8b;color:white;font-weight:bold;width:90px;} +table.greffe td { border:1px solid #000000;padding:8px 4px 8px 4px;} +table.greffe td.decision {} +table.greffe td.type {text-align:center;} + +/* Kbis +----------------------------------*/ +/* progress bar container */ +#progressbar { border:1px solid black;width:200px;height:20px;position:relative;color:black;} +/* color bar */ +#progressbar div.progress {position:absolute;width:0;height:100%;overflow:hidden;background-color:#369;} +/* text on bar */ +#progressbar div.progress .text {position:absolute;text-align:center;color:white;} +/* text off bar */ +#progressbar div.text {position:absolute;width:100%;height:100%;text-align:center;} + diff --git a/library/Scores/RapportComment.php b/library/Scores/RapportComment.php new file mode 100644 index 0000000..6b615fb --- /dev/null +++ b/library/Scores/RapportComment.php @@ -0,0 +1,781 @@ +commentaires = $tabCommentaires; + $c = Zend_Registry::get('config'); + $this->pathImage = $c->profil->path->pages.'/imgcache/'; + + $this->idEntreprise = $id; + $this->siret = $siret; + $this->siren = substr($siret, 0,9); + + //Traitement des ratios + if (count($RatiosInfos->item)>0) { + foreach($RatiosInfos->item as $item) { + $this->ratiosInfos[$item->id] = $item; + } + } + if (count($BilansInfos->item)>0) { + foreach($BilansInfos->item as $item) { + if ($item->typeBilan == 'N') { + $this->bilansInfos[$item->dateCloture] = $item; + foreach($item->RatiosEntrep->item as $ratiosItem) { + $this->ratiosEntrep[$item->dateCloture][$ratiosItem->id] = $ratiosItem->val; + } + } + } + ksort($this->bilansInfos); + ksort($this->ratiosEntrep); + } + + if (count($RatiosSecteur->item)>0) { + foreach($RatiosSecteur->item as $item) { + foreach($item->liste->item as $ratiosItem) { + $this->ratiosSecteur[$item->annee][$ratiosItem->id] = $ratiosItem->val; + } + } + } + + //Traitement pour les projections + if (count($tabProjection)>0) { + $vars = $tabProjection->CA_Y; + if (count($vars->item)>0) { + foreach($vars->item as $var) { + $this->tabProjection['CA_Y'][] = $var; + } + } + } + $this->parse(); + } + + public function out() + { + return $this->commentairesOutput; + } + + protected function parse() + { + $couleurs = array(); + if(count($this->commentaires)>0) { + $totalLigne = count($this->commentaires); + $currentLigne = 0; + $inH = 0; + $inTable = false; + foreach($this->commentaires as $key => $commentaires) + { + $output = ''; + $ligne = true; + $currentLigne++; + if(!is_array($commentaires) && !empty($commentaires)) + { + //Traitement préalable des lignes + //$commentaires = utf8_decode($commentaires); + $commentaires = html_entity_decode($commentaires, ENT_QUOTES, 'UTF-8'); + //Traitement des balises siren + $commentaires = $this->siren($commentaires); + //Traitement des balises lien + $commentaires = $this->lien($commentaires); + //Traitement des balises li+, li-, li:, li + $commentaires = $this->liste($commentaires); + //Traitement des images + $commentaires = $this->image($commentaires); + //Récupération des couleurs pour les graphiques + $couleurs = $this->graphique_couleur($commentaires); + if (count($couleurs)>0){ + $graphCouleurs = $couleurs; + $commentaires = preg_replace('/COULEUR\([^\)]*\)/', '', $commentaires); + $couleurs = array(); + } + //Traitement des graphiques + $commentaires = $this->graphique($commentaires); + + //Traitement pour bloc texte + if (preg_match('/(.*?)\(.*?)\<\/h[0-9]{1}\>(.*)/', $commentaires, $matches)){ + //Fermeture + if ($inH>0){ + $commentaires = $matches[1].'
    '.$matches[3].''; + } + //Ouverture + $commentaires = $commentaires.'
    '; + + if (!empty($matches[4])) { + $commentaires.= '
    '.$matches[4].'
    '; + } + + $inH++; + $ligne = false; + } + + //Fermeture dernier div + if ($currentLigne == $totalLigne){ + $commentaires = $commentaires.'
    '; + } + + //Traitement pour fin bloc texte; + $output.= $commentaires."\n"; + + //Détection des début et fin de tableau + if ( preg_match('/<(table)/i', $commentaires) ){ + $inTable = true; + } + if ( preg_match('/<\/(table)>/i', $commentaires) ){ + $inTable = false; + } + //Nouvelle ligne + + if($inTable){ $ligne = false;} + if($ligne){ $output.= '
    '; } + } + $this->commentairesOutput.= $output; + } + } + } + + + protected function siren($content){ + $pattern = '/(.*?)([0-9]{3})(?: )?([0-9]{3})(?: )?([0-9]{3})<\/siren>(.*?)/i'; + $replace = '$1$2 $3 $4$5'; + $output = preg_replace($pattern, $replace, $content); + return $output; + } + + protected function liste($content){ + $output = $content; + $pattern = '/(.*?)(.*)/i'; + $pattern_all = '/(.*)(?:)/isU'; + preg_match_all($pattern_all, $content, $listes); + if ( isset($listes[0]) && count($listes[0])>0 ){ + //FB::log($listes, 'listes'); + foreach ( $listes[0] as $index => $elementR ){ + $output = $this->liste_replace($elementR, $listes[2][$index], + $listes[1][$index], $output); + //FB::log($output, 'output'); + } + } elseif ( preg_match($pattern, $content, $matches) ){ + //FB::log($content, 'liste'); + switch($matches[2]){ + case '+': + $replace = '$1$3'; + break; + case '-': + $replace = '$1$3'; + break; + case '=': + $replace = '$1$3'; + break; + case ':': + $replace = '$1$3'; + break; + default: + $replace = '$1$3'; + break; + } + $output = preg_replace($pattern, $replace, $content); + } + return $output; + } + + protected function liste_replace($elementR, $element, $type, $content){ + switch ( $type ){ + case '+': + $replace = ''.$element.'
    '; + break; + case '-': + $replace = ''.$element.'
    '; + break; + case '=': + $replace = ''.$matches[2].'
    '; + break; + case ':': + $replace = ''.$element.'
    '; + break; + default: + $replace = ''.$element.'
    '; + break; + } + $output = str_replace($elementR, $replace, $content); + return $output; + } + + + protected function image($content){ + $pattern = '/IMAGE\((.*?)\)/i'; + preg_match($pattern, $content, $matches); + $replace = ''; + $output = str_replace($matches[0], $replace, $content); + return $output; + } + + protected function lien($content) + { + $path = array( + 'pdf' => '/commentaires', + 'html' => '/commentaires', + ); + $pattern = "/(.*?)<\/lien>/i"; + preg_match($pattern, $content, $matches); + if(count($matches)>0){ + switch($matches[2]){ + case 'pdf': + $content = str_replace( + $matches[0], + "". + $matches[3]."", + $content); + break; + case 'htm': + case 'html': + $content = str_replace( + $matches[0], + "". + $matches[3]."", + $content); + break; + } + } + return $content; + } + + protected function graphique_couleur($content) + { + $this->graphCouleurs = array(); + //Association des couleurs Nom => code Hexa + $assocNomCouleurs = array( + 'BLA' => 0xFFFFFF, + 'BLA1' => 0xFFFAFA, + 'BLA2' => 0xF0FFFF, + 'BLA3' => 0xFFFFF0, + 'BLE' => 0x0000FF, + 'BLE1' => 0x00BFFF, + 'BLE2' => 0x00008B, + 'BLE3' => 0x87F0FA, + 'JAU' => 0xFFF000, + 'JAU1' => 0xFFEFD5, + 'JAU2' => 0xFFA500, + 'JAU3' => 0xFFFFE0, + 'LUM' => 0xADFF2F, + 'LUM1' => 0x00FFFF, + 'LUM2' => 0xFF00FF, + 'LUM3' => 0xF0FFF0, + 'MAR' => 0xD2691E, + 'MAR1' => 0xF4A460, + 'MAR2' => 0x8B4513, + 'MAR3' => 0xF5DEB3, + 'MET' => 0xFFD700, + 'MET1' => 0xFFF8DC, + 'MET2' => 0xC0C0C0, + 'MET3' => 0xFDF5E6, + 'NOI' => 0x000000, + 'NOI1' => 0x808080, + 'NOI2' => 0x2F4F4F, + 'NOI3' => 0xDCDCDC, + 'ROU' => 0xFF0000, + 'ROU1' => 0xFF7F50, + 'ROU2' => 0xB22222, + 'ROU3' => 0xFFDAB9, + 'VER' => 0x228B22, + 'VER1' => 0x66CDAA, + 'VER2' => 0x066400, + 'VER3' => 0x98FB98, + 'VIO' => 0xC71585, + 'VIO1' => 0xEE82EE, + 'VIO2' => 0x8B008B, + 'VIO3' => 0xFFF0F5, + ); + $pattern = '/COULEUR\((.*)\)/i'; + ///Detection couleur + if ( preg_match($pattern, $content, $matches) ) { + Zend_Registry::get('firebug')->info('DETECTION Couleurs'); + $listeCouleurs = $matches[1]; + //Récupération des couleurs + $pattern = '/([a-z0-9]{3,4})/i'; + if ( preg_match_all($pattern, $listeCouleurs, $matches) ) { + Zend_Registry::get('firebug')->info($matches); + $nbCouleurs = count($matches[1]); + for($i=0;$i<$nbCouleurs;$i++){ + $this->graphCouleurs[] = $assocNomCouleurs[$matches[1][$i]]; + } + } + } + return $this->graphCouleurs; + } + + + protected function graphique($content) + { + $pattern = '/\[GRAPHIQUE id=(.*?) titre=\'(.*?)\',(.*)\]/'; + if( preg_match($pattern, $content, $matches) ){ + Zend_Registry::get('firebug')->info($content); + $image_id = $matches[1]; + $titre = $matches[2]; + //Génération id/nom fichier graphique + if (($this->siret*1)==0 || ($this->siren*1)<100){ + $id = 'gcomment-'.$this->idEntreprise.'-'.$image_id; + }else{ + $id = 'gcomment-'.$this->siret.'-'.$image_id; + } + + //Determine le type du graphique + $detectType = ''; + $typePattern = array( + 'projection' => '/(R\[.*\]#H,.*_Y#L)/', + 'stacked' => '/((R\[.*\]#HS,?){1,};?){1,}/', + 'histo' => '/(Rs?\[.*\]#[H|L|T],?){1,}/', + 'radar' => '/(R\[.*\]#R,?){1,}/', + ); + foreach($typePattern as $type => $pattern){ + if (preg_match($pattern,$matches[3], $match_type)>0){ + $detectType = $type; + break; + } + } + + Zend_Registry::get('firebug')->info('Graphique : '.$type); + + switch($detectType){ + case 'histo': + $image_file = $this->graph_histo($id, $titre, $matches[3]); + break; + case 'radar': + $image_file = $this->graph_radar($id, $titre, $matches[3]); + break; + case 'stacked': + $image_file = $this->graph_stacked($id, $titre, $matches[3]); + break; + case 'projection': + $image_file = $this->graph_histo($id, $titre, $matches[3]); + break; + default: + $image_file = 'Erreur'; + break; + } + + //Le fichier image existe + if( file_exists($this->pathImage.$image_file) ){ + + $content = str_replace( + $matches[0], + '', + $content); + }else{ + $content = str_replace( + $matches[0], + 'Erreur génération graphique', + $content); + } + } + return $content; + } + + protected function graph_stacked($id, $titre, $strRatios) + { + $file = $id.'.png'; + if( $this->cache_graph($this->pathImage.$file) ){ //@todo cache_graph + $output = $file; + } else { + $couleurs = array(); + if(count($this->graphCouleurs)>0){ + $couleurs = $this->graphCouleurs; + } else { + $couleurs = array( + 0xaaaaff, + 0x6666ff, + 0x3cb371, /*medium sea green*/ + 0xff8080, + 0x000000, /*noir*/ + /*0x80ff80,*/ + 0xffe4c4, /*abricot*/ + 0xbc8f8f, /*rosy brown*/ + 0xc0c0c0, /*silver*/ + 0xfffff0, /*ivoire*/ + /*0xf0ffff, /*azure*/ + 0xff7f50, /*coral*/ + 0xa0522d, /*marron*/ + 0xffd700, /*gold*/ + 0x8866ff, + 0x0000cd, /*blue*/ + 0xee82e2, /*violet*/ + ); + } + + $bilansInfos = end($this->bilansInfos); + $ratiosEntrep = end($this->ratiosEntrep); + $dateCloture = substr($bilansInfos->dateCloture,0,4); + + //Génération du graphique + $c = new XYChart(548, 300); + $c->addTitle($titre, 'times.ttf', 10); + $c->setPlotArea(70, 30, 200, 200); + $legendObj = $c->addLegend2(300, 50, -2, "times.ttf", 9); + $legendObj->setBackground(Transparent, Transparent); + $labels = array($dateCloture); + $c->xAxis->setLabels($labels); + $layer = $c->addBarLayer2(Stack); + $layer->setBorderColor(Transparent, softLighting(Left)); + $cpt_couleur = 0; + $pattern = '/(Rs?)\[(.*)]#.{1}/'; + $ratios = explode(';', $strRatios); + $div = 1; + foreach ( $ratios as $indexGroup => $groupRatios ){ + $stackRatios = explode(',', $groupRatios); + $layer->addDataGroup('Group'.$indexGroup); + //Analyse pour unité correcte + foreach ( $stackRatios as $ratio ){ + preg_match($pattern, $ratio, $matches); + $value = $ratiosEntrep['r'.$matches[2]]; + if ( !isset($dUnite) ) { + $dUnite = $this->ratiosInfos['r'.$matches[2]]['unite']; + } + if ( $dUnite == 'EUR' ){ + if ( $div<1000000 && abs($value)/1000000>0 ){ + $dUnite = 'M EUR'; + $div = 1000000; + } elseif ( $div<1000 && abs($value)/1000>0 ){ + $dUnite = 'K EUR'; + $div = 1000; + } + } + } + //Assignation valeur + foreach ( $stackRatios as $ratio ){ + preg_match($pattern, $ratio, $matches); + $value = $ratiosEntrep['r'.$matches[2]]/$div; + //FB::log($couleurs[$cpt_couleur], 'Couleur r'.$matches[2]); + $titre = htmlspecialchars_decode($this->ratiosInfos['r'.$matches[2]]['libelle'],ENT_QUOTES); + $layer->addDataSet(array($value), $couleurs[$cpt_couleur], $titre); + $cpt_couleur++; + if($cpt_couleur>=count($couleurs)) { $cpt_couleur=0; } + } + } + + if ( !isset($dUnite) ) { $dUnite = 'EUR'; } + $layer->setBarGap(0.2, 0); + $c->yAxis->setAutoScale(0.2); + $c->yAxis->setTitle($dUnite); + $c->yAxis->setWidth(2); + $c->xAxis->setTitle('Années'); + $c->xAxis->setWidth(2); + $c->xAxis->setLabels($labelsX); + if ( $c->makeChart($this->pathImage.$file) === true ){ + $output = $file; + } else { + $output = false; + } + } + return $output; + } + + + protected function graph_histo($id, $titre, $strRatios) + { + $file = $id.'.png'; + if( $this->cache_graph($this->pathImage.$file) ){ + $output = $file; + } else { + Zend_Registry::get('firebug')->info('Histo - id : '.$id); + Zend_Registry::get('firebug')->info('Histo - titre : '.$titre); + Zend_Registry::get('firebug')->info('Histo - strRatios : '.$strRatios); + //Gestion des couleurs + if(count($this->graphCouleurs)>0){ + $couleurs = $this->graphCouleurs; + } else { + $couleurs = array(0xff8080, 0x80ff80, 0x8080ff); + } + $ratios = explode(',', $strRatios); + $data = array(); + $dataInfos = array(); + $nbRatio = 0; + //Détection des ratios + $patternR = '/(Rs?)\[(.*)]#(.{1})/'; + $patternP = '/(.*)_Y#(.{1})/'; + foreach ( $ratios as $ratio ) { + //Ratios secteur et entreprise + if( preg_match($patternR, $ratio, $matches) ){ + $typeRatio = $matches[1]; + $numRatio = $matches[2]; + $titreRatio = $this->graph_lib($numRatio); + $unite = $this->ratiosInfos['r'.$numRatio]->unite; + $div = 1; + switch ( $typeRatio ){ + case 'R' : + $titreRatio.= ' - Entreprise'; + $tabRatio = $this->ratiosEntrep; + break; + case 'Rs' : + $titreRatio.= ' - Secteur'; + $tabRatio = $this->ratiosSecteur; + break; + } + + //Informations données + $dataInfos[$nbRatio] = array( + 'titre' => $titreRatio, + 'style' => $matches[3], + ); + + //Assignation données + $xPrec = 0; + foreach ( $tabRatio as $key => $valRatio ){ + $index = substr($key,0,4); + ($xPrec != 0) ? $diff = $xPrec-$index : $diff = 1; + if ($diff != 0){ + $data[$index][$nbRatio] = $valRatio['r'.$numRatio]; + if ( $unite == 'EUR' ){ + if ( $div<1000000 && abs($valRatio['r'.$numRatio])/1000000>0 ){ + $unite = 'M EUR'; + $div = 1000000; + } elseif ( $div<1000 && abs($valRatio['r'.$numRatio])/1000>0 ){ + $unite = 'K EUR'; + $div = 1000; + } + } + } + $xPrec = $index; + } + $nbRatio++; + //Ratios de projection + } elseif ( preg_match($patternP, $ratio, $matches) ){ + + $titreRatio = $matches[1]; + $dataInfos[$nbRatio] = array( + 'titre' => $titreRatio.' - Projection', + 'style' => $matches[2], + ); + $tabRatio = $this->tabProjection[$titreRatio.'_Y']; + krsort($tabRatio); // @todo : il se peut que $tabRatio = null + foreach ( $tabRatio as $valRatio ){ + $index = (int)substr($valRatio->id,0,4); + $data[$index][$nbRatio] = $valRatio->val; + } + $nbRatio++; + } + } + if ( !isset($unite) ) { $unite = 'EUR'; } + Zend_Registry::get('firebug')->info($data); + //Graphique + if ( count($data)<=1 ){ + $output = false; + } else { + ksort($data); + $labelsX = array_keys($data); + $valuesY = array(); + for ( $i = 0; $i < $nbRatio ; $i++ ){ + foreach ( $data as $values ){ + $valuesY[$i][] = isset($values[$i]) ? (int)$values[$i]/$div : 0; + } + } + //Génération du graphique + $c = new XYChart(548, 350); + $c->addTitle($titre, 'times.ttf', 10); + $c->yAxis->setTitle($unite); + $c->yAxis->setWidth(2); + $c->xAxis->setTitle('Années'); + $c->xAxis->setWidth(2); + $c->xAxis->setLabels($labelsX); + $legendObj = $c->addLegend2(25, 25, -2, "times.ttf", 9); + $legendObj->setBackground(Transparent, Transparent); + $c->setPlotArea(110, 90, 300, 200); + //Application layer pour line + $lineLayer = $c->addLineLayer2(Side); + $lineLayer->setBorderColor(Transparent, softLighting(Left)); + $lineLayer->setLineWidth(2); + //Application layer pour bar + $barLayer = $c->addBarLayer2(Side); + $barLayer->setBorderColor(Transparent, softLighting(Left)); + for ( $i = 0; $i < $nbRatio ; $i++ ){ + if ( $dataInfos[$i]['style'] == 'H' || $dataInfos[$i]['style'] == 'T' ){ + $barLayer->addDataSet($valuesY[$i], $couleurs[$i], $dataInfos[$i]['titre']); + } else if ( $dataInfos[$i]['style'] == 'L' ){ + $dataSetObj = $lineLayer->addDataSet($valuesY[$i], $couleurs[$i], $dataInfos[$i]['titre']); + $dataSetObj->setDataSymbol(SquareSymbol, 7); + } + } + if( $c->makeChart($this->pathImage.$file) === true ){ + $output = $file; + } else { + $output = false; + } + } + } + return $output; + } + + protected function graph_radar($id, $titre, $strRatios) + { + $file = $id.'.png'; + if( $this->cache_graph($this->pathImage.$file) && 0 ){ + $output = $file; + } else { + if(count($this->graphCouleurs)>0){ + $couleurs = $this->graphCouleurs; + } else { + $couleurs = array(0x9999ff); + } + //FB::log($couleurs, 'RADAR-couleur'); + $ratios = explode(',', $strRatios); + $data = array(); + $pattern = '/(Rs?)\[(.*)]#(.{1})/'; + foreach($ratios as $ratio){ + if( preg_match($pattern, $ratio, $matches) ){ + $typeRatio = $matches[1]; + $numRatio = $matches[2]; + $titreRatio = $this->graph_lib($numRatio); + $supPattern = '/\(.*?\)/'; + $titreRatio = preg_replace($supPattern, '', $titreRatio); + $supPattern = '/[ ]/'; + $titreRatio = preg_replace($supPattern, '<*br*>', $titreRatio); + $data['y'][] = array( + 'titre' => $titreRatio, + 'data' => $this->graph_y($typeRatio, $numRatio), + ); + } + } + $data['x'] = $this->graph_x(); + + //Graphique + if(count($data)<=1){ + $output = 0; + }else{ + //Tri des données + foreach($data['y'] as $yKey => $y){ + $i = 0; + foreach($y['data'] as $val){ + $dataTri[$data['x'][$i]] = $val; + $i++; + } + ksort($dataTri); + $data['y'][$yKey]['data'] = array_values($dataTri); + } + sort($data['x']); + foreach($data['y'] as $val){ + $num = count($val['data'])-1; + $gdata[] = $val['data'][$num]; + $labels[] = $val['titre']; + } + } + //FB::log($gdata, 'DATA'); + + $c = new PolarChart(548, 480); + $c->setPlotArea(270, 240, 150); + $c->addAreaLayer($gdata, $couleurs[0]); + $c->angularAxis->setLabels($labels); + if( $c->makeChart($this->pathImage.$file) === true ){ + $output = $file; + } else { + $output = false; + } + } + return $output; + } + + protected function graph_lib($numRatio) + { + return htmlspecialchars_decode($this->ratiosInfos['r'.$numRatio]->libelle,ENT_QUOTES); + } + + protected function graphp_x($ratio) + { + $output = array(); + $tabRatio = $this->tabProjection[$ratio.'_Y']; + krsort($tabRatio); + foreach($tabRatio as $key => $val){ + $output[] = (int)substr($key,0,4); + } + return $output; + } + + protected function dateBilanAAAA($value) + { + return (int)substr($value, 0, 4); + } + + + protected function graph_x() + { + $output = array(); + foreach($this->bilansInfos as $bilan){ + $output[] = $bilan->dateCloture; + } + return $output; + } + + + protected function graph_y($typeRatio, $numRatio) + { + switch ($typeRatio) { + case 'R' : $tabRatio = $this->ratiosEntrep; break; + case 'Rs' : $tabRatio = $this->ratiosSecteur; break; + case 'projection' : $tabRatio = $this->tabProjection; break; + } + $output = array(); + if ($typeRatio != 'projection') { + foreach($tabRatio as $key => $val){ + $value = $val['r'.$numRatio]; + if (is_numeric($value)) { + $output[$key] = $value; + } elseif (is_string($value) && substr($value,0,1)=='>') { + $output[$key] = (int) substr($value,1); + } + } + } else { + $tabRatio = $tabRatio[$numRatio.'_Y']; + krsort($tabRatio); + foreach($tabRatio as $val){ + $output[] = $val; + } + } + return $output; + } + + protected function cache_graph($filename) + { + $user = new Scores_Utilisateur(); + if( $user->checkModeEdition() ){ + return false; + } elseif ( file_exists($filename) && !$this->timeover($filename) ) { + return true; + } else { + return false; + } + } + + protected function timeover($file) + { + $dateFile = filemtime($file); + $now = mktime(date('G'), date('i'), date('s'), date("m") , date("d"), date("Y")); + $maxTime = mktime( + date('G',$dateFile)+8, + date('i',$dateFile), + date('s',$dateFile), + date("m",$dateFile), + date("d",$dateFile), + date("Y",$dateFile)); + if( $now>$maxTime ) { + return true; + } + return false; + } + +} \ No newline at end of file diff --git a/library/Scores/RechercheHistorique.php b/library/Scores/RechercheHistorique.php new file mode 100644 index 0000000..e1b3399 --- /dev/null +++ b/library/Scores/RechercheHistorique.php @@ -0,0 +1,122 @@ + array('siret', 'raisonSociale', 'numero', 'voie', 'cpVille', 'telFax', 'naf', 'pays', 'fj'), + 'dir' => array('dirNom', 'dirPrenom', 'dirDateNaissJJ', 'dirDateNaissMM', 'dirDateNaissAAAA', 'dirCpVille'), + 'act' => array('actNomRs', 'cpVille', 'siret', 'pays', 'pctMin', 'pctMax'), + 'wcheck' => array('dirNom', 'dirPrenom', 'dirType'), + 'annonce' => array('formA'), + 'refclient' => array('ref'), + ); + + public function __construct() + { + $session = new Zend_Session_Namespace($this->index); + $this->listeRecherche = $session->liste; + } + + /** + * Sauvegarde des éléments pour la recherche + * @param string $type + * @param array $params + * @return string + */ + public function save($type, $params) + { + //Controle des éléments + $elements = array(); + foreach($params as $key => $value){ + if (in_array($key, $this->listParams[$type])){ + $elements[$key] = $value; + } + } + //Vérification du nombre d'éléments + if (count($this->listeRecherche)>=$this->rechercheMax){ + array_shift($this->listeRecherche); + } + + $token = uniqid(); + + $this->listeRecherche[] = array( + 'type' => $type, + 'token' => $token, + 'params' => $elements, + ); + $session = new Zend_Session_Namespace($this->index); + $session->liste = $this->listeRecherche; + + return $token; + } + + /** + * Assigne les informations pour une recherche (type = dir|ent) + * @param string $siret + * @param integer $id + * @param string $raisonSociale + */ + public function assignInfo($siret, $id, $raisonSociale) + { + $rindex = count($this->listeRecherche)-1; + $this->listeRecherche[$rindex]['consult'] = array( + 'siret' => $siret, + 'id' => $id, + 'raisonSociale' => $raisonSociale, + ); + $session = new Zend_Session_Namespace($this->index); + $session->liste = $this->listeRecherche; + } + + /** + * Retourne la liste des éléments de la session dans le bon ordre + */ + public function liste() + { + if (count($this->listeRecherche)>0) { + return array_reverse($this->listeRecherche); + } else { + return array(); + } + } + + /** + * Retourne un élément de la liste + * @param integer $index + */ + public function item($index) + { + $rindex = count($this->listeRecherche)-1-$index; + return $this->listeRecherche[$rindex]; + } + + public function get($token) + { + if (count($this->listeRecherche)>0) { + foreach($this->listeRecherche as $item) { + if($token == $item['token']){ + return $item; + break; + } + } + } + return false; + } + +} \ No newline at end of file diff --git a/library/Scores/SelectLang.php b/library/Scores/SelectLang.php new file mode 100644 index 0000000..22b133f --- /dev/null +++ b/library/Scores/SelectLang.php @@ -0,0 +1,22 @@ +curLang = $utilisateur->getLang(); + } + + /** + * Retourne le titre de la colonne de la table selon la langue choisie + * @param string Column Name + * @return string New Column Name + */ + public function langSetDB($colName) + { + $newColName = ($this->curLang == 'fr') ? $colName : $colName.ucfirst($this->curLang); + return $newColName; + } +} \ No newline at end of file diff --git a/library/Scores/Serializer/Adapter/Xml.php b/library/Scores/Serializer/Adapter/Xml.php new file mode 100644 index 0000000..2aaef6b --- /dev/null +++ b/library/Scores/Serializer/Adapter/Xml.php @@ -0,0 +1,164 @@ + 'root', + ); + + /** + * Serialize PHP value to XML + * + * @param mixed $value + * @param array $opts + * @return string + * @throws Zend_Serializer_Exception on XML encoding exception + */ + public function serialize($value, array $opts = array()) + { + $opts = $opts + $this->_options; + + try { + $dom = new DOMDocument('1.0', 'utf-8'); + $root = $dom->appendChild($dom->createElement($opts['rootNode'])); + $this->createNodes($dom, $value, $root, false); + return $dom->saveXml(); + } catch (Exception $e) { + require_once 'Zend/Serializer/Exception.php'; + throw new Zend_Serializer_Exception('Serialization failed', 0, $e); + } + } + + /** + * Deserialize XML to PHP value + * + * @param string $json + * @param array $opts + * @return mixed + */ + public function unserialize($xml, array $opts = array()) + { + try { + Zend_Json::fromXml($xml); + return (array) Zend_Json::decode($json, Zend_Json::TYPE_OBJECT); + } catch (Exception $e) { + require_once 'Zend/Serializer/Exception.php'; + throw new Zend_Serializer_Exception('Unserialization failed by previous error', 0, $e); + } + } + + private function createNodes($dom, $data, &$parent) + { + switch (gettype($data)) { + case 'string': + case 'integer': + case 'double': + $parent->appendChild($dom->createTextNode($data)); + break; + + case 'boolean': + switch ($data) { + case true: + $value = 'true'; + break; + + case false: + $value = 'false'; + break; + } + + $parent->appendChild($dom->createTextNode($value)); + break; + + case 'object': + case 'array': + foreach ($data as $key => $value) { + + if (is_object($value) and $value instanceOf DOMDocument and !empty($value->firstChild)) { + $node = $dom->importNode($value->firstChild, true); + $parent->appendChild($node); + } else { + $attributes = null; + + // SimpleXMLElements can contain key with @attribute as the key name + // which indicates an associated array that should be applied to the xml element + + if (is_object($value) and $value instanceOf SimpleXMLElement) { + $attributes = $value->attributes(); + $value = (array) $value; + } + + // don't emit @attribute as an element of it's own + if ($key[0] !== '@') + { + if (gettype($value) == 'array' and !is_numeric($key)) { + $child = $parent->appendChild($dom->createElement($key)); + + if ($attributes) + { + foreach ($attributes as $attrKey => $attrValue) + { + $child->setAttribute($attrKey, $attrValue); + } + } + + $this->createNodes($dom, $value, $child); + } else { + + if (is_numeric($key)) { + $key = sprintf('%s', $this->depluralize($parent->tagName)); + } + + $child = $parent->appendChild($dom->createElement($key)); + + if ($attributes) + { + foreach ($attributes as $attrKey => $attrValue) + { + $child->setAttribute($attrKey, $attrValue); + } + } + + $this->createNodes($dom, $value, $child); + } + } + } + } + + break; + } + } + + private function depluralize($word) { + $rules = array( + 'ss' => false, + 'os' => 'o', + 'ies' => 'y', + 'xes' => 'x', + 'oes' => 'o', + 'ies' => 'y', + 'ves' => 'f', + 's' => null + ); + + // Loop through all the rules + foreach(array_keys($rules) as $key) { + // If the end of the word doesn't match the key, it's not a candidate for replacement. + if (substr($word, (strlen($key) * -1)) != $key) { + continue; + } + + // If the value of the key is false, stop looping and return the original version of the word. + if ($key === false) { + return $word; + } + + // apply the rule + return substr($word, 0, strlen($word) - strlen($key)) . $rules[$key]; + } + + return $word; + } +} diff --git a/library/Scores/SessionEntreprise.php b/library/Scores/SessionEntreprise.php new file mode 100644 index 0000000..cf6a010 --- /dev/null +++ b/library/Scores/SessionEntreprise.php @@ -0,0 +1,160 @@ +checkSession($siret, $id) ){ + $this->getInfoEntrep($siret, $id); + } + } + } + + public function getId() + { + return $this->get('id'); + } + + public function getSiren() + { + return $this->get('siren'); + } + + public function getSiret() + { + return $this->get('siret'); + } + + public function getAutreId() + { + return $this->get('AutreId'); + } + + public function getSiretSiege() + { + return $this->get('siretSiege'); + } + + public function getRaisonSociale() + { + return $this->get('raisonSociale'); + } + + public function setInfoEntrep($identite) + { + $this->setSession($identite); + } + + public function getFormeJuridique() + { + return $this->get('fj'); + } + + public function getNaf() + { + return $this->get('nafEn'); + } + + public function getCodeCommune() + { + return $this->get('codeCommune'); + } + + public function getTva() + { + return $this->get('tva'); + } + + public function getIsin() + { + return $this->get('isin'); + } + + public function getSource() + { + return $this->get('Source'); + } + + public function getSourceId() + { + return $this->get('SourceId'); + } + + protected function get($key) + { + $session = new Zend_Session_Namespace($this->index); + return $session->$key; + } + + protected function getInfoEntrep($siret, $id = 0) + { + Zend_Registry::get('firebug')->info('getInfoEntrep'); + require_once 'Scores/WsScores.php'; + $ws = new WsScores(); + $etab = $ws->getIdentiteLight($siret, $id); + $this->setSession($etab); + } + + protected function setSession($etab) + { + $session = new Zend_Session_Namespace($this->index); + $session->raisonSociale = $etab->Nom; + $session->id = $etab->id; + $session->siren = $etab->Siren; + $session->siret = $etab->Siret; + $session->siretSiege = $etab->SiretSiege; + $session->tva = $etab->TvaNumero; + $session->isin = $etab->Isin; + $session->AutreId = $etab->AutreId; + $session->Source = $etab->Source; + $session->SourceId = $etab->SourceId; + $session->codeCommune = $etab->Dept.$etab->codeCommune; + $session->nafEn = $etab->NafEnt; + $session->nafEnt = $etab->NafEtab; + $session->fj = $etab->FJ; + } + + protected function checkSession($siret, $id = 0) + { + $compare = false; + + if (!Zend_Session::namespaceIsset($this->index)) { + return false; + } + + $session = new Zend_Session_Namespace($this->index); + + $compare = false; + // Comparaison Siren / Siret + if ( !empty($siret) && intval($siret) != 0) { + if (strlen($siret) == 9) { + // Comparaison entre siren + if ($siret == $session->siren) { + $compare = true; + } + } else if (strlen($siret) == 14) { + // Comparaison entre siret + if ($siret == $session->siret) { + $compare = true; + } + } + } + + // Comparaison id + if ( empty($siret) || intval($siret) == 0) { + if ($id != 0 && $id == $session->id) { + $compare = true; + } + } + + return $compare; + } + +} diff --git a/library/Scores/Siren.php b/library/Scores/Siren.php new file mode 100644 index 0000000..7c1a8e1 --- /dev/null +++ b/library/Scores/Siren.php @@ -0,0 +1,58 @@ +isSirenExistant($siren); + } +} \ No newline at end of file diff --git a/library/Scores/Utilisateur.php b/library/Scores/Utilisateur.php new file mode 100644 index 0000000..49247cb --- /dev/null +++ b/library/Scores/Utilisateur.php @@ -0,0 +1,338 @@ +hasIdentity() ) { + $this->identity = $auth->getIdentity(); + } + } + + /** + * Récupére les valeurs du profil depuis le webservice + * @param stdClass $InfosLogin + * @params string $password + * @return stdClass + */ + public function updateProfil($InfosLogin, $password = null) + { + $identity = new stdClass; + $identity->username = $InfosLogin->result->login; + if ($password === null) { + $identity->password = $this->identity->password; + } else { + $identity->password = $password; + } + $identity->email = $InfosLogin->result->email; + $identity->profil = $InfosLogin->result->profil; + $identity->pref = $InfosLogin->result->pref; + $identity->droits = $InfosLogin->result->droits; + $identity->droitsClients = $InfosLogin->result->droitsClients; + $identity->nom = $InfosLogin->result->nom; + $identity->prenom = $InfosLogin->result->prenom; + $identity->tel = $InfosLogin->result->tel; + $identity->fax = $InfosLogin->result->fax; + $identity->mobile = $InfosLogin->result->mobile; + $identity->id = $InfosLogin->result->id; + $identity->idClient = $InfosLogin->result->idClient; + $identity->reference = $InfosLogin->result->reference; + $identity->nbReponses = $InfosLogin->result->nbReponses; + $identity->typeScore = $InfosLogin->result->typeScore; + $identity->dateValidation = $InfosLogin->result->dateValidation; + $identity->nombreConnexions = $InfosLogin->result->nombreConnexions; + $identity->dateDerniereConnexion = $InfosLogin->result->dateDerniereConnexion; + $identity->dateDebutCompte = $InfosLogin->result->dateDebutCompte; + $identity->dateFinCompte = $InfosLogin->result->dateFinCompte; + $identity->ip = $_SERVER['REMOTE_ADDR']; + $identity->timeout = (!empty($InfosLogin->result->timeout)) ? + $InfosLogin->result->timeout : 1800; + $identity->time = time() + $identity->timeout; + $identity->modeEdition = false; + $identity->acceptationCGU = $InfosLogin->result->acceptationCGU; + $lang = in_array($InfosLogin->result->lang,array('fr','en')) ? $InfosLogin->result->lang : 'fr'; + $identity->lang = $lang; + $identity->langtmp = $lang; + $identity->browser = $this->getBrowserInfo(); + + $this->identity = $identity; + + return $identity; + } + + /** + * Check if user is log in + * @return boolean + */ + public function isLog() + { + if ( $this->identity === null ) { + return false; + } + + return true; + } + + /** + * Détermine si l'utilisateur est Administrateur + */ + public function isAdmin() + { + if ($this->identity->profil == 'Administrateur'){ + return true; + } + return false; + } + + /** + * Détermine si l'utilisateur est SuperAdministrateur + */ + public function isSuperAdmin() + { + if ($this->identity->profil == 'SuperAdministrateur'){ + return true; + } + return false; + } + + /** + * Retourne le profile utilisateur + */ + public function getProfil() + { + return $this->identity->profil; + } + + /** + * Retourne l'identifiant client + */ + public function getIdClient() + { + return $this->identity->idClient; + } + + /** + * Retourne l'identifiant de l'utilisateur + */ + public function getId() + { + return $this->identity->id; + } + + /** + * Retourne le login de l'utiliateur + */ + public function getLogin() + { + return $this->identity->username; + } + + /** + * Retourne le password de l'utilisateur + */ + public function getPassword() + { + return $this->identity->password; + } + + /** + * Retourne le nom de l'utiliateur + */ + public function getNom() + { + return $this->identity->nom; + } + + /** + * Retourne le prénom de l'utiliateur + */ + public function getPrenom() + { + return $this->identity->prenom; + } + + /** + * Retourne l'email de l'utilisateur + */ + public function getEmail() + { + return $this->identity->email; + } + + /** + * Retourne le téléphone de l'utilisateur + */ + public function getTel() + { + return $this->identity->tel; + } + + /** + * Retourne le fax de l'utilisateur + */ + public function getFax() + { + return $this->identity->fax; + } + + /** + * Retourne le type de score + */ + public function getTypeScore() + { + if (isset($this->identity->typeScore) + && !empty($this->identity->typeScore)){ + return $this->identity->typeScore; + } + return '100'; + } + + /** + * Retourne le nombre de réponse + */ + public function getNbRep() + { + return $this->identity->nbReponses; + } + + /** + * Retourne l'adresse Ip de l'utilisateur + */ + public function getIpAddress() + { + if ( !isset($this->identity->ip) || empty($this->identity->ip) ){ + return $_SERVER['REMOTE_ADDR']; + } + return $this->identity->ip; + } + + /** + * Retourne la date de dernière connexion + */ + public function getDateDerniereConnexion() + { + return $this->identity->dateDerniereConnexion; + } + + /** + * Vérifie que l'utiliasteur a le mode edition + * @return boolean + */ + public function checkModeEdition() + { + //On vérfie le mode edition dans les permissions + if ( $this->checkPerm('edition') ) { + return true; + } + //On vérfie le mode edition dans la session + if ( $this->identity->modeEdition ) { + return true; + } + return false; + } + + + /** + * Vérifie que l'utilisateur possède bien un droits + * @param string $perm + * Le code de la permission + * @return boolean + */ + public function checkPerm($perm) + { + $hasPerm = false; + if (preg_match('/\b'.$perm.'\b/i', $this->identity->droits)){ + $hasPerm = true; + } + return $hasPerm; + } + + /** + * Vérifie que l'utilisateur à cocher cette préférence + * @param string $pref + */ + public function checkPref($pref) + { + $hasPref = false; + if (preg_match('/\b'.$pref.'\b/i', $this->identity->pref)){ + $hasPref = true; + } + return $hasPref; + } + + /** + * Retourne la langue par défaut du client + */ + public function getLang() + { + return $this->identity->lang; + } + + /** + * Retourne la langue de l'interface du client + */ + public function getLangTmp() + { + return $this->identity->langtmp; + } + + /** + * Sets interface's language new value + * @param $langtmp + */ + public function setLangTmp($langtmp) + { + $this->identity->langtmp = $langtmp; + } + + /** + * Get browser information + */ + public function getBrowserInfo() + { + return $this->identity->browser; + } + + /** + * Set browser information + * @param string $name + * @param string $version + * @param int $mobile + * @param string $screenSize + */ + public function setBrowserInfo($platform, $name, $version, $mobile, $screenSize = 'unknow') + { + //Save info to session + $browserInfo = new stdClass(); + $browserInfo->platform = $platform; + $browserInfo->name = $name; + $browserInfo->version = $version; + $browserInfo->mobile = $mobile; + $browserInfo->screenSize = $screenSize; + $this->identity->browser = $browserInfo; + $auth = Zend_Auth::getInstance(); + $auth->getStorage()->write($this->identity); + + //Save info to database + $data = array( + 'idClient' => $this->getIdClient(), + 'login' => $this->getLogin(), + 'dateInsert' => date('Y-m-d H:i:s'), + 'platform' => $platform, + 'browserName' => $name, + 'browserVersion' => $version, + 'isMobile' => $mobile, + 'screenSize' => $screenSize + ); + $clientstatM = new Application_Model_ClientStat(); + $id = $clientstatM->insert($data); + Zend_Registry::get('firebug')->info('Insertion : '.$id); + } + +} \ No newline at end of file diff --git a/library/Scores/Wkhtmltopdf.php b/library/Scores/Wkhtmltopdf.php new file mode 100644 index 0000000..0688b23 --- /dev/null +++ b/library/Scores/Wkhtmltopdf.php @@ -0,0 +1,53 @@ +wkhtml = $c->profil->wkhtmltopdf->path; + } + + /** + * Défini les options supplémentaires à l'execution de wkhtmltopdf + * -n, --disable-javascript Do not allow webpages to run javascript. + * --disable-internal-links Do no make local links + * --disable-external-links Do no make links to remote web pages + * --user-style-sheet Specify a user style sheet, to load with every page. + * --print-media-type Use print media-type instead of screen. + * --header-left|right + * @param string $name + * @param string $value + */ + public function setOptions($name, $value = '') + { + $this->options[$name] = $value; + } + + /** + * Imprime un fichier HTML en PDF avec l'utilitaire wkhtmltopdf + * @param string $fileIn + * @param string $fileOut + * @return string Nom du fichier + */ + public function exec($fileIn, $fileOut = '') + { + if (empty($fileOut)) {$fileOut = str_replace('.html', '.pdf', $fileIn); } + if(file_exists($fileOut)){ unlink($fileOut); } + + $options = '--disable-internal-links'; + if ( count($this->options) ) + { + foreach ( $this->options as $name => $value ) + { + $options.= ' --'.$name; + if ($value!= '') $options.= ' "'.$value.'"'; + } + } + + $cmd = $this->wkhtml.' '.$options.' "'.$fileIn.'" "'.$fileOut.'"'; + exec( $cmd ); + return $fileOut; + } +} \ No newline at end of file diff --git a/library/Scores/WsScores.php b/library/Scores/WsScores.php new file mode 100644 index 0000000..e11b55c --- /dev/null +++ b/library/Scores/WsScores.php @@ -0,0 +1,2897 @@ +profil->webservice->location; + + $cWS = new Zend_Config_Ini(realpath(dirname(__FILE__)) . '/webservices.ini'); + $config = $cWS->toArray(); + if (APPLICATION_ENV == 'staging' && array_key_exists($location.'-staging', $config)) { + $location.= '-staging'; + } + $this->webservices = $config[$location]['webservices']; + if ( !empty($login) && !empty($password) ){ + $this->login = $login; + $this->password = $password; + } else { + $user = new Scores_Utilisateur(); + $this->login = $user->getLogin(); + $this->password = $user->getPassword(); + $this->nbReponses = $user->getNbRep(); + if ( $user->checkModeEdition() ) { + //Don't use the cache + $this->cacheEnable = false; + //Don't write cache + if ( APPLICATION_ENV == 'staging' ) { + $this->cacheWrite = false; + } + } + } + } + + /** + * loadClient + * @param unknown_type $webservice + */ + protected function loadClient($webservice) + { + $wsdl = $this->webservices[$webservice]['wsdl']; + $options = $this->webservices[$webservice]['options']; + $options['features'] = SOAP_USE_XSI_ARRAY_TYPE + SOAP_SINGLE_ELEMENT_ARRAYS; + $options['compression'] = SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP | SOAP_COMPRESSION_DEFLATE; + $options['login'] = $this->login; + $options['password'] = $this->password; + if (APPLICATION_ENV == 'development'){ + $options['cache_wsdl'] = WSDL_CACHE_NONE; + } + $options['trace'] = true; + $options['encoding'] = 'utf-8'; + $client = false; + try { + $client = new SoapClient($wsdl, $options); + } catch (Exception $e) { + Zend_Registry::get('firebug')->info($e->getMessage()); + throw new Exception('Application Error'); + } + return $client; + } + + public function getEntrepriseValo($siren, $nic=0, $niveau=2) + { + $filename = 'getvalo-'.$siren.'-'.$nic.'-'.$niveau; + + if ($this->cacheWrite) { + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock(); + } + } + + $params = new stdClass(); + $params->siren = $siren; + $params->nic = $nic; + $params->niveau = $niveau; + $client = $this->loadClient('entreprise'); + try { + $reponse = $client->getValo($params); + if ($this->cacheWrite) { + $cache->deletefile(); + $cache->setBlock($reponse->getValoResult); + } + return $reponse->getValoResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + public function setSurveillancesMail($login, $email) + { + $params = new stdClass(); + $params->login = $login; + $params->email = $email; + $client = $this->loadClient('gestion'); + try { + $reponse = $client->setSurveillancesMail($params); + return $reponse->setSurveillancesMailResult; + } catch (SoapFault $fault) { + Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring); + if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){ + return $fault->faultstring; + } else { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + } + + public function setUserService($login, $code) + { + $params = new stdClass(); + $params->login = $login; + $params->code = $code; + $client = $this->loadClient('gestion'); + try { + $reponse = $client->setUserService($params); + return $reponse->setUserServiceResult; + } catch (SoapFault $fault) { + Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring); + if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){ + return $fault->faultstring; + } else { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + } + + public function getCatalogEvent($id, $columns) + { + $params = new stdClass(); + $params->id = $id; + $params->columns = $columns; + $client = $this->loadClient('catalog'); + try { + $reponse = $client->getEvent($params); + return $reponse->getEventResult; + } catch (SoapFault $fault) { + if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){ + return $fault->faultstring; + } else { + echo $client->__getLastResponse(); + //$this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + } + + public function getCatalogNaf5($id, $columns) + { + $params = new stdClass(); + $params->id = $id; + $params->columns =$columns; + $client = $this->loadClient('catalog'); + try { + $reponse = $client->getNaf5($params); + return $reponse->getNaf5Result; + } catch (SoapFault $fault) { + if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){ + return $fault->faultstring; + } else { + echo $client->__getLastResponse(); + //$this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + } + + public function getCatalogFctDir($id, $columns) + { + $params = new stdClass(); + $params->id = $id; + $params->columns =$columns; + $client = $this->loadClient('catalog'); + try { + $reponse = $client->getDirFonction($params); + return $reponse->getDirFonctionResult; + } catch (SoapFault $fault) { + if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){ + return $fault->faultstring; + } else { + echo $client->__getLastResponse(); + //$this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + } + + public function getCatalogLegalForm($id, $columns) + { + $params = new stdClass(); + $params->id = $id; + $params->columns =$columns; + $client = $this->loadClient('catalog'); + try { + $reponse = $client->getLegalForm($params); + return $reponse->getLegalFormResult; + } catch (SoapFault $fault) { + if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){ + return $fault->faultstring; + } else { + echo $client->__getLastResponse(); + //$this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + } + + public function setLienChange($action, $idLien, $id) + { + $params = new stdClass(); + $params->action = $action; + $params->idLien = $idLien; + $params->id = $id; + $client = $this->loadClient('saisie'); + try { + $reponse = $client->setLienChange($params); + return $reponse->setLienChangeResult; + } catch (SoapFault $fault) { + Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring); + if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){ + return $fault->faultstring; + } else { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + } + + /** + * Set Score Cut Off + * @param string $siren + * @param int $encours + * @param int $scoreSolv + * @param int $scoreDir + * @param int $scoreConf + * @param string $remarque + * @param boolean delete + * @return boolean + */ + public function setScoreCutoff($siren, $encours, $scoreSolv, $scoreDir, $scoreConf, $remarque, $delete) + { + $infos = array( + 'siren' => $siren, + 'encours' => $encours, + 'scoreSolv' => $scoreSolv, + 'scoreDir' => $scoreDir, + 'scoreConf' => $scoreConf, + 'remarque' => $remarque, + ); + $params = new stdClass(); + $params->infos = json_encode($infos); + $params->delete = $delete; + $client = $this->loadClient('saisie'); + try { + $reponse = $client->setScoreCutoff($params); + return $reponse->setScoreCutoffResult; + } catch (SoapFault $fault) { + Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring); + return $fault->faultstring; + } + } + + /** + * Get Score Cut Off + * @param string $siren + * @return Cutoff values or False + */ + public function getScoreCutoff($siren) + { + $params = new stdClass(); + $params->siren = $siren; + $client = $this->loadClient('saisie'); + try { + $reponse = $client->getScoreCutoff($params); + return $reponse->getScoreCutoffResult; + } catch (SoapFault $fault) { + Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring); + return $fault->faultstring; + } + } + + /** + * Delete Score Cut Off + * @param string $siren + * @return boolean + */ + public function delScoreCutoff($siren) + { + $params = new stdClass(); + $params->siren = $siren; + $client = $this->loadClient('saisie'); + try { + $reponse = $client->delScoreCutoff($params); //change name when webservice is ready + return $reponse->delScoreCutoffResult; //change name when webservice is ready + } catch (SoapFault $fault) { + Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring); + return $fault->faultstring; + } + } + + public function searchLogin($idClient, $query) + { + $params = new stdClass(); + $params->idClient = $idClient; + $params->query = $query; + $client = $this->loadClient('gestion'); + try { + $reponse = $client->searchLogin($params); + return $reponse->searchLoginResult; + } catch (SoapFault $fault) { + Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring); + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + public function getCatalogCurrency() + { + $filename = 'catalog-currency'; + $cache = new Cache($filename); + if ( $cache->exist() ){ + return $cache->getBlock(); + } + + $params = new stdClass(); + $params->id = null; + $client = $this->loadClient('catalog'); + try { + $reponse = $client->getCurrency($params); + $cache->deletefile(); + $cache->setBlock($reponse->getCurrencyResult); + return $reponse->getCurrencyResult; + } catch (SoapFault $fault) { + Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring); + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + public function getCatalogCountry() + { + $filename = 'catalog-country'; + $cache = new Cache($filename); + if ( $cache->exist() ){ + return $cache->getBlock(); + } + + $params = new stdClass(); + $params->id = null; + $params->columns = array( + 'codPays3', + 'libPays', + 'devise', + 'indTel', + ); + $client = $this->loadClient('catalog'); + try { + $reponse = $client->getCountry($params); + $cache->deletefile(); + $cache->setBlock($reponse->getCountryResult); + return $reponse->getCountryResult; + } catch (SoapFault $fault) { + Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring); + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + public function setBourse($isin, $infos) + { + $params = new stdClass(); + $params->isin = $isin; + $params->infos = $infos; + $client = $this->loadClient('saisie'); + try { + $reponse = $client->setBourse($params); + return $reponse->setBourseResult; + } catch (SoapFault $fault) { + Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring); + if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){ + return $fault->faultstring; + } else { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + } + + public function getSaisieBourse($isin) + { + $params = new stdClass(); + $params->isin = $isin; + $client = $this->loadClient('saisie'); + try { + $reponse = $client->getBourse($params); + return $reponse->getBourseResult; + } catch (SoapFault $fault) { + Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring); + if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){ + return $fault->faultstring; + } else { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + } + + public function setClientTarif($idClient, $log, $service, $type, $priceUnit, $limit, $date, $duree, $doublon) + { + $params = new stdClass(); + $params->idClient = $idClient; + $params->tarif->log = $log; + $params->tarif->service = $service; + $params->tarif->type = $type; + $params->tarif->priceUnit = $priceUnit; + $params->tarif->limit = $limit; + $params->tarif->date = $date; + $params->tarif->duree = $duree; + $params->tarif->doublon = $doublon; + $client = $this->loadClient('gestion'); + try { + $reponse = $client->setClientTarif($params); + return $reponse->setClientTarifResult; + } catch (SoapFault $fault) { + Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring); + if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){ + return $fault->faultstring; + } else { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + } + + public function getClientTarifs($idClient, $service = null) + { + $params = new stdClass(); + $params->idClient = $idClient; + $params->service = $service; + $client = $this->loadClient('gestion'); + try { + $reponse = $client->getClientTarifs($params); + return $reponse->getClientTarifsResult; + } catch (SoapFault $fault) { + Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring); + if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){ + return $fault->faultstring; + } else { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + } + + public function setService($idClient, $infos) + { + $params = new stdClass(); + $params->idClient = $idClient; + $params->infos = $infos; + $client = $this->loadClient('gestion'); + try { + $reponse = $client->setService($params); + return $reponse->setServiceResult; + } catch (SoapFault $fault) { + Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring); + if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){ + return $fault->faultstring; + } else { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + } + + public function getServiceUsers($idClient, $service) + { + $params = new stdClass(); + $params->idClient = $idClient; + $params->serviceCode = $service; + $client = $this->loadClient('gestion'); + try { + $reponse = $client->getServiceUsers($params); + Zend_Registry::get('firebug')->info($reponse); + return $reponse->getServiceUsersResult; + } catch (SoapFault $fault) { + Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring); + if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){ + return $fault->faultstring; + } else { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + } + + public function getServices($idClient) + { + $params = new stdClass(); + $params->idClient = $idClient; + $client = $this->loadClient('gestion'); + try { + $reponse = $client->getServices($params); + return $reponse->getServicesResult; + } catch (SoapFault $fault) { + Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring); + if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){ + return $fault->faultstring; + } else { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + } + + public function getCountryId($code) + { + $params = new stdClass(); + $params->codeCountry = $code; + $client = $this->loadClient('interne'); + try { + $reponse = $client->getCountryId($params); + return $reponse->getCountryIdResult; + } catch (SoapFault $fault) { + Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring); + if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){ + return $fault->faultstring; + } else { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + } + + public function getSaisieLien($id) + { + $params = new stdClass(); + $params->id = $id; + $client = $this->loadClient('saisie'); + try { + $reponse = $client->getLien($params); + return $reponse->getLienResult; + } catch (SoapFault $fault) { + Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring); + if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){ + return $fault->faultstring; + } else { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + } + + public function getLienDoc($id, $type = null, $groupe = false) + { + $params = new stdClass(); + $params->id = $id; + $params->type = $type; + $params->groupe = $groupes; + $client = $this->loadClient('saisie'); + try { + $reponse = $client->getLienDoc($params); + return $reponse->getLienDocResult; + } catch (SoapFault $fault) { + Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring); + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + public function setLienDoc($infos, $id = null) + { + $params = new stdClass(); + $params->infos = $infos; + $params->id = $id; + $client = $this->loadClient('saisie'); + try { + $reponse = $client->setLienDoc($params); + return $reponse->setLienDocResult; + } catch (SoapFault $fault) { + Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring); + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + public function setLien($infos, $id = null) + { + $params = new stdClass(); + $params->infos = $infos; + $params->id = $id; + $client = $this->loadClient('saisie'); + try { + $reponse = $client->setLien($params); + return $reponse->setLienResult; + } catch (SoapFault $fault) { + Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring); + if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){ + return $fault->faultstring; + } else { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + } + + public function getSaisieLienRef($id) + { + $params = new stdClass(); + $params->id = $id; + $client = $this->loadClient('saisie'); + try { + $reponse = $client->getLienRef($params); + return $reponse->getLienRefResult; + } catch (SoapFault $fault) { + Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring); + if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){ + return $fault->faultstring; + } else { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + } + + public function getLienRef($id) + { + $params = new stdClass(); + $params->id = $id; + $client = $this->loadClient('entreprise'); + try { + $reponse = $client->getLienRef($params); + return $reponse->getLienRefResult; + } catch (SoapFault $fault) { + Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring); + if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){ + return $fault->faultstring; + } else { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + } + + public function setLienRef($infos, $id = null) + { + $params = new stdClass(); + $params->infos = $infos; + $params->id = $id; + $client = $this->loadClient('saisie'); + try { + $reponse = $client->setLienRef($params); + return $reponse->setLienRefResult; + } catch (SoapFault $fault) { + Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring); + if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){ + return $fault->faultstring; + } else { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + } + + public function searchLienRef($query, $type = null) + { + $params = new stdClass(); + $params->query = $query; + $params->type = $type; + $client = $this->loadClient('saisie'); + try { + $reponse = $client->searchLienRef($params); + return $reponse->searchLienRefResult; + } catch (SoapFault $fault) { + Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring); + if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){ + return $fault->faultstring; + } else { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + } + + public function setActeAsso($siren, $waldec, $type, $libelle, $date) + { + $params = new stdClass(); + $params->siren = $siren; + $params->waldec = $waldec; + $params->type = $type; + $params->libelle = $libelle; + $params->date = $date; + $client = $this->loadClient('saisie'); + try { + $reponse = $client->setActeAsso($params); + return $reponse->setActeAssoResult; + } catch (SoapFault $fault) { + Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring); + if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){ + return $fault->faultstring; + } else { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + } + + public function setBilan($siren, $unite, $dateCloture, $dureeMois, $dateCloturePre, $dureeMoisPre, $typeBilan, $postes, $step = 'normal') + { + $params = new stdClass(); + $params->siren = $siren; + $params->data->unite = $unite; + $params->data->dateCloture = $dateCloture; + $params->data->dureeMois = $dureeMois; + $params->data->dateCloturePre = $dateCloturePre; + $params->data->dureeMoisPre = $dureeMoisPre; + $params->data->typeBilan = $typeBilan; + $params->data->postes = $postes; + $params->step = $step; + $client = $this->loadClient('saisie'); + try { + $reponse = $client->setBilan($params); + return $reponse->setBilanResult; + } catch (SoapFault $fault) { + Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring); + if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){ + return $fault->faultstring; + } else { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + } + + /** + * Liste des bilans + * @param string $siren + * @todo : Cache + */ + public function getPiecesBilans($siren) + { + $params = new stdClass(); + $params->identifiant = $siren; + $client = $this->loadClient('pieces'); + try { + $reponse = $client->getBilans($params); + return $reponse->getBilansResult; + } catch (SoapFault $fault) { + Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring); + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * Bilan URL + * @param string $siren + * @param string $diffusion + * @param string $dateCloture + * @param string $reference + */ + public function getPiecesBilan($siren, $diffusion, $dateCloture, $reference) + { + $params = new stdClass(); + $params->identifiant = $siren; + $params->diffusion = $diffusion; + $params->dateCloture = $dateCloture; + $params->reference = $reference; + $client = $this->loadClient('pieces'); + try { + $reponse = $client->getBilan($params); + Zend_Registry::get('firebug')->info($reponse); + return $reponse->getBilanResult; + } catch (SoapFault $fault) { + Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring); + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + public function setCGU() + { + $params = new stdClass(); + $params->application =''; + $client = $this->loadClient('gestion'); + try { + $reponse = $client->setCGU($params); + Zend_Registry::get('firebug')->info($reponse); + return $reponse->setCGUResult; + } catch(SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * Get all infos for a user (Admin) + * @param string $login + */ + public function getUser($login) + { + $params = new stdClass(); + $params->login = $login; + $client = $this->loadClient('gestion'); + try { + $reponse = $client->getUser($params); + return $reponse->getUserResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * Retourne les infos du groupe + * @param string $siren + */ + public function getGroupeInfos($siren) + { + $params = new stdClass(); + $params->siren = $siren; + $client = $this->loadClient('interne'); + try { + $reponse = $client->getGroupeInfos($params); + return $reponse->getGroupeInfosResult; + } catch (SoapFault $fault) { + if ( in_array($fault->faultcode, array('Error')) ){ + return $fault->faultstring; + } else { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + } + + /** + * Retourne l'arborescence d'un groupe + * @param string $siren + * @param int pctMin + * @param int $nbNiveaux + */ + public function getGroupesArbo($siren, $pctMin=33, $nbNiveaux=10) + { + $filename = 'groupesarbo-'.$siren.'-'.$pctMin; + + if ($this->cacheWrite) { + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock(); + } + } + + $params = new StdClass; + $params->siren = $siren; + $params->pctMin = $pctMin; + $params->stopAtIsin = false; + $params->nbNiveaux = $nbNiveaux; + $client = $this->loadClient('interne'); + try { + $reponse = $client->getGroupesArbo($params); + if ($this->cacheWrite) { + $cache->deletefile(); + $cache->setBlock($reponse->getGroupesArboResult); + } + return $reponse->getGroupesArboResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * Récupération des kbis + */ + public function getKbis($siren) + { + $params = new StdClass; + $params->siren = $siren; + $client = $this->loadClient('pieces'); + try { + $reponse = $client->getKbis($params); + return $reponse->getKbisResult; + } catch (SoapFault $fault) { + if ( in_array($fault->faultcode, array('0000', 'MSG')) ){ + Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring); + return $fault->faultstring; + } else { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + } + + /** + * Enter description here ... + * @param unknown_type $siren + * @param unknown_type $id + * @param unknown_type $codeEven + */ + public function setAnnonceEven($siren, $id, $codeEven) + { + $params = new stdClass(); + $params->siren = $siren; + $params->id = $id; + $params->codeEven = $codeEven; + $client = $this->loadClient('saisie'); + try { + $reponse = $client->setAnnonceEven($params); + return $reponse->setAnnonceEvenResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * Recherche par référence client + * @param string $search + * @param integer $position + * @param integer $nbRep + */ + public function searchRefClient($search, $position=0, $nbRep=20) + { + $params = new stdClass(); + $params->search = $search; + $params->position = $position; + $params->nbRep = $nbRep; + $client = $this->loadClient('entreprise'); + try { + $reponse = $client->searchRefClient($params); + return $reponse->searchRefClientResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * Enter description here ... + * @param unknown_type $siren + * @return Ambigous |boolean + */ + public function getListeDepots($siren) + { + $filename = 'listedepots-'.$siren; + + if ($this->cacheWrite) { + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock(); + } + } + + $params = new stdClass(); + $params->siren = $siren; + $client = $this->loadClient('interne'); + try { + $reponse = $client->getListeDepots($params); + if ($this->cacheWrite) { + $cache->deletefile(); + $cache->setBlock($reponse->getListeDepotsResult); + } + return $reponse->getListeDepotsResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * Commande d'une enquete intersud + * @param string $siren + * @param array $infoEnq + * @param array $infoUser + */ + public function commandeEnquete($siren, $infoEnq, $infoUser) + { + $params = new stdClass(); + $params->siren = $siren; + $params->infoEnq = json_encode($infoEnq); + $params->infoDemande = json_encode($infoUser); + $client = $this->loadClient('interne'); + try { + $reponse = $client->commandeEnquete($params); + return $reponse->commandeEnqueteResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * Enter description here ... + * @param string $siret + * @param integer $id + * @param array $infos + * @return boolean + */ + public function setInfosEntrep($siret, $id, $infos) + { + $params = new stdClass(); + $params->siret = $siret; + $params->idEntreprise = $siret; + $params->infos = json_encode($infos); + $client = $this->loadClient('saisie'); + try { + $reponse = $client->setInfosEntrep($params); + return $reponse->setInfosEntrepResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + + /** + * Enter description here ... + * @param unknown_type $idAnn + * @param unknown_type $siret + */ + public function supprAnnonceCollecte($idAnn, $siret = '') + { + $params = new stdClass(); + $params->idAnn= $idAnn; + $params->siret= $siret; + $client = $this->loadClient('saisie'); + try { + $reponse = $client->supprAnnonceCollecte($params); + return $reponse->supprAnnonceCollecteResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * supprAnnonce + * @param integer $source + * @param string $idAnn + * @param string $siret + */ + public function supprAnnonce($source, $idAnn, $siret = '') + { + $params = new stdClass(); + $params->source= $source; + $params->idAnn= $idAnn; + $params->siret = $siret; + $client = $this->loadClient('saisie'); + try { + $reponse = $client->supprAnnonce($params); + return $reponse->supprAnnonceResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * dupliqueAnnonce + * @param integer $source + * @param string $idAnn + * @param string $siretIn + * @param string $siretOut + * @return boolean + */ + public function dupliqueAnnonce($source, $idAnn, $siretIn = '', $siretOut = '') + { + $params = new stdClass(); + $params->source= $source; + $params->idAnn= $idAnn; + $params->siretIn = $siretIn; + $params->siretOut = $siretOut; + $client = $this->loadClient('saisie'); + try { + $reponse = $client->dupliqueAnnonce($params); + return $reponse->dupliqueAnnonceResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * Enter description here ... + * @param string $idAnn + * @param string $siret + */ + public function getAnnonceCollecte($idAnn, $siret) + { + $params = new stdClass(); + $params->idAnn= $idAnn; + $params->siret = $siret; + $client = $this->loadClient('interne'); + try { + $reponse = $client->getAnnonceCollecte($params); + return $reponse->getAnnonceCollecteResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * getRapport + * @param string $siren + * @param integer $niveau + * @param integer $id + * @param boolean $plus + * @param string $ref + * @param integer $encours + * @param string $email + */ + public function getRapport($siren, $niveau=3, $id=0, $plus=false, $ref='', $encours=0, $email='') + { + $filename = 'getrapport-'.$siren.'-'.$niveau.'-'.$id; + + if ($this->cacheWrite) { + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock(); + } + } + + $params = new stdClass(); + $params->siren = $siren; + $params->niveau = $niveau; + $params->id = $id; + $params->plus = $plus; + $params->ref = $ref; + $params->encours = $encours; + $params->email = $email; + $client = $this->loadClient('entreprise'); + try { + ini_set('default_socket_timeout', 600); + set_time_limit(300); + $reponse = $client->getRapport($params); + if ($this->cacheWrite) { + $cache->deletefile(); + $cache->setBlock($reponse->getRapportResult); + } + return $reponse->getRapportResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * getPortefeuilleCsv + * @param unknown_type $login + * @param unknown_type $idClient + */ + public function getPortefeuilleCsv($login='', $idClient=0) + { + $params = new stdClass(); + $params->login = $login; + $params->idClient = $idClient; + + //@todo : Seulement pour aider Altysis + $c = Zend_Registry::get('config'); + $location = $c->profil->webservice->location; + + $cWS = new Zend_Config_Ini(realpath(dirname(__FILE__)) . '/webservices.ini'); + $config = $cWS->toArray(); + $this->webservices = $config[$location]['webservices']; + //@todo + + $client = $this->loadClient('interne'); + try { + $reponse = $client->getPortefeuilleCsv($params); + return $reponse->getPortefeuilleCsvResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * getListeSurveillanceCsv + * @param unknown_type $source + * @param unknown_type $login + * @param unknown_type $idClient + */ + public function getListeSurveillancesCsv($source='', $login='', $idClient=0) + { + $params = new stdClass(); + $params->source = $source; + $params->login = $login; + $params->idClient = $idClient; + $client = $this->loadClient('interne'); + try { + $reponse = $client->getListeSurveillancesCsv($params); + return $reponse->getListeSurveillancesCsvResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * getLogsClients + * @param unknown_type $mois + * @param unknown_type $detail + * @param unknown_type $idClient + * @param unknown_type $login + * @param unknown_type $all + */ + public function getLogsClients($mois, $detail=0, $idClient=0, $login='', $all=0) + { + $params = new stdClass(); + $params->mois = $mois; + $params->detail = $detail; + $params->idClient = $idClient; + $params->login = $login; + $params->all = $all; + $client = $this->loadClient('gestion'); + try { + $reponse = $client->getLogsClients($params); + return $reponse->getLogsClientsResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + + /** + * getIndiScore + * @param string $siren + * @param string $nic + * @param integer $niveau + * @param boolean $plus + * @param string $ref + * @param integer $encours + * @param string $email + */ + public function getIndiScore($siren, $nic=0, $niveau=2, $plus=false, $ref='', $encours=0, $email='') + { + $filename = 'getindiscore-'.$siren.'-'.$nic.'-'.$niveau; + + if ($this->cacheWrite) { + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock(); + } + } + + $params = new stdClass(); + $params->siren = $siren; + $params->nic = $nic; + $params->niveau = $niveau; + $params->plus = $plus; + $params->ref = $ref; + $params->encours = $encours; + $params->email = $email; + $client = $this->loadClient('entreprise'); + try { + $reponse = $client->getIndiScore($params); + if ($this->cacheWrite) { + $cache->deletefile(); + $cache->setBlock($reponse->getIndiScoreResult); + } + return $reponse->getIndiScoreResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * setLog + * @param string $page + * @param string $siret + * @param string $id + * @param string $ref + */ + public function setLog ($page, $siret, $id=0, $ref = '') + { + $params = new stdClass(); + $params->page = $page; + $params->siret = $siret; + $params->id = $id; + $params->ref = $ref; + $client = $this->loadClient('interne'); + try { + $reponse = $client->setLog($params); + return true; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * getListeClients + * @param unknown_type $idClient + */ + public function getListeClients($idClient=false) + { + $params = new stdClass(); + $params->idClient = $idClient; + $client = $this->loadClient('gestion'); + try { + $reponse = $client->getListeClients($params); + return $reponse->getListeClientsResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * setMandataire + * Enter description here ... + * @param unknown_type $infos + */ + public function setMandataire($infos) + { + $params = new stdClass(); + $params->infos->id = $infos['id']; + $params->infos->sirenGrp = $infos['sirenGrp']; + $params->infos->sirenMand = $infos['sirenMand']; + $params->infos->Nom = $infos['Nom']; + $params->infos->Prenom = $infos['Prenom']; + $params->infos->type = $infos['type']; + $params->infos->stagiaire = $infos['stagiaire']; + $params->infos->coursAppel = $infos['coursAppel']; + $params->infos->coursAppel2 = $infos['coursAppel2']; + $params->infos->tribunal = $infos['tribunal']; + $params->infos->Statut = $infos['Statut']; + $params->infos->adresse = $infos['adresse']; + $params->infos->adresseComp = $infos['adresseComp']; + $params->infos->cp = $infos['cp']; + $params->infos->ville = $infos['ville']; + $params->infos->tel = $infos['tel']; + $params->infos->fax = $infos['fax']; + $params->infos->email = $infos['email']; + $params->infos->web = $infos['web']; + $params->infos->contact = $infos['contact']; + $client = $this->loadClient('interne'); + try { + $reponse = $client->setMandataire($params); + return $reponse->setMandataireResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * getIdCourAppel + * @param string $codeTribunal + */ + public function getIdCoursAppel($codeTribunal) + { + $params = new stdClass(); + $params->codeTribunal = $codeTribunal; + $client = $this->loadClient('interne'); + try { + $reponse = $client->getIdCoursAppel($params); + return $reponse->getIdCoursAppelResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * searchMandataires + * @param unknown_type $nom + * @param unknown_type $type + * @param unknown_type $cpDep + */ + public function searchMandataires($nom, $type=array(), $cpDep=0) + { + $params = new stdClass(); + $params->nom = $nom; + $params->type = $type; + $params->cpDep = $cpDep; + $client = $this->loadClient('interne'); + try { + $reponse = $client->searchMandataires($params); + return $reponse->searchMandatairesResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * getMandataire + * @param string $idMand + */ + public function getMandataire($idMand) + { + $params = new stdClass(); + $params->id = $idMand; + $client = $this->loadClient('saisie'); + try { + $reponse = $client->getMandataire($params); + return $reponse->getMandataireResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * Recherche Annonce + * @param string $source + * @param string $dateAnnee + * @param integer $numParution + * @param integer $numAnnonce + */ + public function rechercheAnnonce($source, $dateAnnee, $numParution, $numAnnonce) + { + $params = new stdClass(); + $params->source = $source; + $params->dateAnnee = $dateAnnee; + $params->numParution = $numParution; + $params->numAnnonce = $numAnnonce; + $client = $this->loadClient('entreprise'); + try { + $reponse = $client->rechercheAnnonce($params); + return $reponse->rechercheAnnonceResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * Recherche Historique + * @param string $recherche + * @param string $annee + * @param string $typeBod + * @param integer $deb + */ + public function rechercheHisto($recherche, $annee, $typeBod, $deb = 0) + { + $params = new stdClass(); + $params->recherche = $recherche; + $params->annee = $annee; + $params->typeBod = $typeBod; + $params->deb = $deb; + $params->nbRep = $this->nbReponses; + $client = $this->loadClient('interne'); + try { + $reponse = $client->rechercheHisto($params); + return $reponse->rechercheHistoResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * Recherche par dirigeants + * @param array $criteres + * @param integer $deb + * @param integer $nbRep + * @param integer $maxRep + */ + public function searchDir($criteres, $deb=0, $nbRep=20, $maxRep=200) + { + $params = new stdClass(); + $params->criteres->nom = $criteres['dirNom']; + $params->criteres->prenom = $criteres['dirPrenom']; + $params->criteres->dateNaiss = $criteres['dirDateNaiss']; + $params->criteres->lieuNaiss = $criteres['lieuNaiss']; + $params->criteres->pertinence = ($criteres['pertinence']===true) ? true : false ; + $params->deb = $deb; + $params->nbRep = $nbRep; + $params->maxRep = $maxRep; + $client = $this->loadClient('entreprise'); + try { + $reponse = $client->searchDir($params); + return $reponse->searchDirResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * Recherche Actionnaire + * @param unknown_type $nom + * @param unknown_type $cpVille + * @param unknown_type $siren + * @param unknown_type $pays + * @param unknown_type $pctMin + * @param unknown_type $pctMax + * @param unknown_type $deb + * @param unknown_type $nbRep + * @param unknown_type $maxRep + * @param unknown_type $pertinence + */ + public function searchAct($nom, $cpVille='', $siren='', $pays='', $pctMin=0, $pctMax=100, $deb=0) + { + $params = new stdClass(); + $params->nom = $nom; + $params->cpVille = $cpVille; + $params->siren = $siren; + $params->pays = $pays; + $params->pctMin = $pctMin; + $params->pctMax= $pctMax; + $params->pertinence = false; + $params->deb = $deb; + $params->nbRep = $this->nbReponses; + //$params->maxRep = $maxRep; + $client = $this->loadClient('interne'); + try { + $reponse = $client->searchAct($params); + return $reponse->searchActResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + + /** + * getTribunaux + * Enter description here ... + * @param unknown_type $tabTypes + */ + public function getTribunaux($tabTypes = array()) + { + $params = new stdClass(); + $params->tabTypes = $tabTypes; + $client = $this->loadClient('interne'); + try { + $reponse = $client->getTribunaux($params); + return $reponse->getTribunauxResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * getListeJalCollecte + * Enter description here ... + */ + public function getListeJalCollecte() + { + $filename = 'listejalcollecte'; + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock(); + } + $params = new stdClass(); + $client = $this->loadClient('interne'); + try { + $reponse = $client->getListeJalCollecte(); + $cache->deletefile(); + $cache->setBlock($reponse->getListeJalCollecteResult); + return $reponse->getListeJalCollecteResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * getDevises + * Enter description here ... + * @param unknown_type $codeIsoDevise + */ + public function getDevises($codeIsoDevise = '') + { + $params = new stdClass(); + $params->codeIsoDevise = $codeIsoDevise; + $client = $this->loadClient('interne'); + try { + $reponse = $client->getDevises($params); + return $reponse->getDevisesResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * getPrivilegesCumul + * Enter description here ... + * @param unknown_type $siren + * @param unknown_type $tabTypes + */ + public function getPrivilegesCumul($siren, $tabTypes = array() ) + { + $params = new stdClass(); + $params->siren = $siren; + $params->tabTypes = $tabTypes; + $client = $this->loadClient('interne'); + try { + $reponse = $client->getPrivilegesCumul($params); + return $reponse->getPrivilegesCumulResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * getPrivilegesDetail + * Enter description here ... + * @param unknown_type $siren + * @param unknown_type $tabTypes + */ + public function getPrivilegesDetail($siren, $tabTypes = array() ) + { + $params = new stdClass(); + $params->siren = $siren; + $params->tabTypes = $tabTypes; + $client = $this->loadClient('interne'); + try { + $reponse = $client->getPrivilegesDetail($params); + return $reponse->getPrivilegesDetailResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * setSurveillance + * Enter description here ... + * @param string $siret + * @param string $email + * @param string $ref + * @param string $source + * @param boolean $delete + * @param integer $encoursClient + */ + public function setSurveillance($siret, $email, $ref = '', $source='annonces', $delete=false, $encoursClient=0) + { + $params = new stdClass(); + $params->siret = $siret; + $params->email = $email; + $params->ref = $ref; + $params->source = $source; + $params->delete = $delete; + $params->encoursClient = $encoursClient; + $client = $this->loadClient('entreprise'); + try { + $reponse = $client->setSurveillance($params); + return $reponse->setSurveillanceResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * getListeUtilisateurs + * Enter description here ... + * @param string $login + * @param integer $idClient + */ + public function getListeUtilisateurs($login, $idClient = -1) + { + $params = new stdClass(); + $params->login = $login; + $params->idClient = $idClient; + $client = $this->loadClient('gestion'); + try { + $reponse = $client->getListeUtilisateurs($params); + return $reponse->getListeUtilisateursResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * getMarques + * Enter description here ... + * @param string $siren + * @param integer $idDepot + */ + public function getMarques($siren, $idDepot = 0) + { + $filename = 'marques-'.$siren.'-'.$idDepot; + + if ($this->cacheWrite) { + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock(); + } + } + + $params = new stdClass(); + $params->siren = $siren; + $params->idDepot = $idDepot; + $client = $this->loadClient('interne'); + try { + $reponse = $client->getMarques($params); + if ($this->cacheWrite) { + $cache->deletefile(); + $cache->setBlock($reponse->getMarquesResult); + } + return $reponse->getMarquesResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * getListeConventions + * Enter description here ... + * @param string $siren + */ + public function getListeConventions($siren) + { + $filename = 'conventions-'.$siren; + + if ($this->cacheWrite) { + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock(); + } + } + + $params = new stdClass(); + $params->siren = $siren; + $client = $this->loadClient('interne'); + try { + $reponse = $client->getListeConventions($params); + if ($this->cacheWrite) { + $cache->deletefile(); + $cache->setBlock($reponse->getListeConventionsResult); + } + return $reponse->getListeConventionsResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * getListeCompetences + * Enter description here ... + * @param string $siret + * @param string $type + * @param string $codeInsee + */ + public function getListeCompetences($siret, $type, $codeInsee) + { + $filename = 'competences-'.$siret.'-'.$type.'-'.$codeInsee; + + if ($this->cacheWrite) { + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock(); + } + } + + $params = new stdClass(); + $params->siret = $siret; + $params->type = $type; + $params->codeInsee = $codeInsee; + $client = $this->loadClient('entreprise'); + try { + $reponse = $client->getListeCompetences($params); + if ($this->cacheWrite) { + $cache->deletefile(); + $cache->setBlock($reponse->getListeCompetencesResult); + } + return $reponse->getListeCompetencesResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * getInfosReg + * @param string $siren + * @param mixed $id + */ + public function getInfosReg($siren, $id = false) + { + $filename = 'infosreg-'.$siren.'-'.$id; + + if ($this->cacheWrite) { + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock(); + } + } + + $params = new stdClass(); + $params->siren = $siren; + $params->id = $id; + $client = $this->loadClient('entreprise'); + try { + $reponse = $client->getInfosReg($params); + if ($this->cacheWrite) { + $cache->deletefile(); + $cache->setBlock($reponse->getInfosRegResult); + } + return $reponse->getInfosRegResult; + } catch (SoapFault $fault) { + if ($fault->faultcode=='1030'){ + return $fault->faultstring; + } else { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + } + + public function getAnnoncesNum($siren) + { + $filename = 'annoncesnum-'.$siren; + + if ($this->cacheWrite) { + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock(); + } + } + + $params = new stdClass(); + $params->siren = $siren; + $client = $this->loadClient('entreprise'); + try { + $reponse = $client->getAnnoncesNum($params); + if ($this->cacheWrite) { + $cache->deletefile(); + $cache->setBlock($reponse->getAnnoncesNumResult); + } + return $reponse->getAnnoncesNumResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + public function getAnnoncesBalo($siren, $idAnn=null, $filtre=null, $position=0, $nbRep=20) + { + $filename = 'annoncesbalo-'.$siren.'-'.$idAnn.'-'.$position.'-'.$nbRep; + + if ($this->cacheWrite) { + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock(); + } + } + + $params = new stdClass(); + $params->siren = $siren; + $params->idAnn = $idAnn; + $params->filtre = $filtre; + $params->position = $position; + $params->nbRep = $nbRep; + $client = $this->loadClient('entreprise'); + try { + $reponse = $client->getAnnoncesBalo($params); + if ($this->cacheWrite) { + $cache->deletefile(); + $cache->setBlock($reponse->getAnnoncesBaloResult); + } + return $reponse->getAnnoncesBaloResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + public function getAnnoncesBoamp($siren, $idAnn=null, $filtre = null, $position=0, $nbRep=20) + { + $filename = 'annoncesboamp-'.$siren.'-'.$idAnn.'-'.$position.'-'.$nbRep; + + if ($this->cacheWrite) { + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock(); + } + } + + $params = new stdClass(); + $params->siren = $siren; + $params->idAnn = $idAnn; + + $params->filtre = null; + if (!empty($filtre) && in_array($filtre,array('A','M'))) { + $filtreStruct = new stdClass(); + $filtreStruct->key = 'type'; + $filtreStruct->value = $filtre; + $params->filtre[] = $filtreStruct; + } + + $params->position = $position; + $params->nbRep = $nbRep; + $client = $this->loadClient('entreprise'); + try { + $reponse = $client->getAnnoncesBoamp($params); + if ($this->cacheWrite) { + $cache->deletefile(); + $cache->setBlock($reponse->getAnnoncesBoampResult); + } + return $reponse->getAnnoncesBoampResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + public function getAnnoncesAsso($siren, $idAnn=null, $filtre=null, $position=0, $nbRep=20) + { + $filename = 'annoncesasso-'.$siren.'-'.$idAnn.'-'.$position.'-'.$nbRep; + + if ($this->cacheWrite) { + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock(); + } + } + + $params = new stdClass(); + $params->siren = $siren; + $params->idAnn = $idAnn; + $params->filtre = $filtre; + $params->position = $position; + $params->nbRep = $nbRep; + $client = $this->loadClient('entreprise'); + try { + $reponse = $client->getAnnoncesAsso($params); + if ($this->cacheWrite) { + $cache->deletefile(); + $cache->setBlock($reponse->getAnnoncesAssoResult); + } + return $reponse->getAnnoncesAssoResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + public function getAnnoncesLegales($siren, $idAnn=null, $filtre=null, $position=0, $nbRep=20) + { + $filename = 'annonceslegales-'.$siren.'-'.$idAnn.'-'.$position.'-'.$nbRep; + + if ($this->cacheWrite) { + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock(); + } + } + + $params = new stdClass(); + $params->siren = $siren; + $params->idAnn = $idAnn; + $params->filtre = $filtre; + $params->position = $position; + $params->nbRep = $nbRep; + $client = $this->loadClient('entreprise'); + try { + $reponse = $client->getAnnoncesLegales($params); + Zend_Registry::get('firebug')->info($reponse); + if ($this->cacheWrite) { + $cache->deletefile(); + $cache->setBlock($reponse->getAnnoncesLegalesResult); + } + return $reponse->getAnnoncesLegalesResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * getAnnonces + * @param string $siren + * @param integer $filtre + * @param string $idAnn + * @param integer $position + * @param integer $nbRep + */ + public function getAnnonces($siren, $filtre=0, $idAnn='', $position=0, $nbRep=100) + { + $filename = 'annonces-'.$siren.'-'.$filtre.'-'.$idAnn.'-'.$position.'-'.$nbRep; + + if ($this->cacheWrite) { + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock(); + } + } + + $params = new stdClass(); + $params->siren = $siren; + $params->filtre = $filtre; + $params->idAnn = $idAnn; + $client = $this->loadClient('entreprise'); + try { + $reponse = $client->getAnnonces($params); + if ($this->cacheWrite) { + $cache->deletefile(); + $cache->setBlock($reponse->getAnnoncesResult); + } + return $reponse->getAnnoncesResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * isSirenExistant + * @param string $siren + */ + public function isSirenExistant($siren) + { + $params = new stdClass(); + $params->siren = $siren; + $client = $this->loadClient('entreprise'); + try { + $reponse = $client->isSirenExistant($params); + return $reponse->isSirenExistantResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * getPortefeuille + * @param object $filtre + * @param integer $position + * @param integer $nbAffichage + */ + public function getPortefeuille($filtre, $position = 0, $nbAffichage = 100) + { + $params = new StdClass; + $params->filtre = $filtre; + $params->deb = $position; + $params->nbRep = $nbAffichage; + $client = $this->loadClient('interne'); + try { + $reponse = $client->getPortefeuille($params); + return $reponse->getPortefeuilleResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * getSurveillances + * @param object $filtre + * @param integer $deb + * @param integer $nbRep + * @param string $tri + */ + public function getSurveillances($filtre, $deb=0, $nbRep=100) + { + $params = new StdClass; + $params->filtre = $filtre; + $params->position = $deb; + $params->nbRep = $nbRep; + $client = $this->loadClient('entreprise'); + try { + $reponse = $client->getSurveillances($params); + return $reponse->getSurveillancesResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * getListeBilans + * @param string $siren + */ + public function getListeBilans($siren) + { + $filename = 'listebilans-'.$siren; + + if ($this->cacheWrite) { + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock(); + } + } + + $params = new StdClass; + $params->siren = $siren; + $client = $this->loadClient('entreprise'); + try { + $reponse = $client->getListeBilans($params); + if ($this->cacheWrite) { + $cache->deletefile(); + $cache->setBlock($reponse->getListeBilansResult); + } + return $reponse->getListeBilansResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * getBilan + * @param string $siren + * @param unknown_type $millesime + * @param unknown_type $typeBilan + * @param unknown_type $ref + */ + public function getBilan($siren, $millesime, $typeBilan, $ref) + { + $filename = 'bilan-'.$siren.'-'.$millesime.'-'.$typeBilan.'-'.$ref; + + if ($this->cacheWrite) { + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock(); + } + } + + $params = new StdClass; + $params->siren = $siren; + $params->millesime = $millesime; + $params->typeBilan = $typeBilan; + $params->ref = $ref; + $client = $this->loadClient('entreprise'); + try { + $reponse = $client->getBilan($params); + if ($this->cacheWrite) { + $cache->deletefile(); + $cache->setBlock($reponse->getBilanResult); + } + return $reponse->getBilanResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * getBanques + * @param string $siren + */ + public function getBanques($siren) + { + $filename = 'banques-'.$siren; + + if ($this->cacheWrite) { + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock(); + } + } + + $params = new StdClass; + $params->siren = $siren; + $client = $this->loadClient('entreprise'); + try { + $reponse = $client->getBanques($params); + if ($this->cacheWrite) { + $cache->deletefile(); + $cache->setBlock($reponse->getBanquesResult); + } + return $reponse->getBanquesResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * getInfosBourse + * @param string $siren + */ + public function getInfosBourse($siren) + { + $filename = 'infosbourse-'.$siren; + + if ($this->cacheWrite) { + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock(); + } + } + + $params = new StdClass; + $params->siren = $siren; + $client = $this->loadClient('entreprise'); + try { + $reponse = $client->getInfosBourse($params); + if ($this->cacheWrite) { + $cache->deletefile(); + $cache->setBlock($reponse->getInfosBourseResult); + } + return $reponse->getInfosBourseResult; + } catch (SoapFault $fault) { + if ($fault->faultcode=='1030'){ + return $fault->faultstring; + } else { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + } + + /** + * getRatios + * @param string $siren + * @param string $page + */ + public function getRatios($siren, $page = 'ratios') + { + $filename = 'ratios-'.$siren.'-'.$page; + + if ($this->cacheWrite) { + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock(); + } + } + + $params = new StdClass(); + $params->siren = $siren; + $params->page = $page; + $client = $this->loadClient('entreprise'); + try { + $reponse = $client->getRatios($params); + if ($this->cacheWrite) { + $cache->deletefile(); + $cache->setBlock($reponse->getRatiosResult); + } + return $reponse->getRatiosResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + + /** + * getDirigeants + * @param string $siren + * @param boolean $histo + */ + public function getDirigeants($siren, $histo=false) + { + $filename = 'dirigeants-'.$siren.'-'.intval($histo); + + if ($this->cacheWrite) { + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock(); + } + } + + $params = new StdClass(); + $params->siren = $siren; + $params->histo = $histo; + $client = $this->loadClient('entreprise'); + try { + $reponse = $client->getDirigeants($params); + if ($this->cacheWrite) { + $cache->deletefile(); + $cache->setBlock($reponse->getDirigeantsResult); + } + return $reponse->getDirigeantsResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * getDirigeantsOp + * @param string $siren + */ + public function getDirigeantsOp($siren) + { + $filename = 'dirigeantsop-'.$siren; + + if ($this->cacheWrite) { + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock(); + } + } + + $params = new StdClass(); + $params->siren = $siren; + $client = $this->loadClient('interne'); + try { + $reponse = $client->getDirigeantsOp($params); + if ($this->cacheWrite) { + $cache->deletefile(); + $cache->setBlock($reponse->getDirigeantsOpResult); + } + return $reponse->getDirigeantsOpResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * getIdentiteLight + * @param string $siret + * @param int $id + * @return mixed + */ + public function getIdentiteLight($siret, $id = 0) + { + $filename = 'identitelight-'.$siret.'-'.$id; + + if ($this->cacheWrite) { + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock(); + } + } + + $params = new StdClass(); + $params->siret = $siret; + $params->id = $id; + $client = $this->loadClient('interne'); + try { + $reponse = $client->getIdentiteLight($params); + if ($this->cacheWrite) { + $cache->deletefile(); + $cache->setBlock($reponse->getIdentiteLightResult); + } + return $reponse->getIdentiteLightResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * getIdentite + * @param string $siret + * @param int $id + * @return mixed + */ + public function getIdentite($siret, $id = 0) + { + $filename = 'identite-'.$siret.'-'.$id; + + if ($this->cacheWrite) { + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock(); + } + } + + $params = new StdClass(); + $params->siret = $siret; + $params->id = $id; + $client = $this->loadClient('entreprise'); + try { + $reponse = $client->getIdentite($params); + if ($this->cacheWrite) { + $cache->deletefile(); + $cache->setBlock($reponse->getIdentiteResult); + } + return $reponse->getIdentiteResult; + } catch (SoapFault $fault) { + if (in_array($fault->getCode(), '1020')) { + return $fault->getMessage(); + } else { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + } + + /** + * getIdentiteProcol + * @param string $siret + * @param int $id + * @return mixed + */ + public function getIdentiteProcol($siret, $id = 0) + { + $filename = 'identiteprocol-'.$siret.'-'.$id; + + if ($this->cacheWrite) { + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock(); + } + } + + $params = new StdClass(); + $params->siret = $siret; + $params->id = $id; + $client = $this->loadClient('entreprise'); + try { + $reponse = $client->getIdentiteProcol($params); + if ($this->cacheWrite) { + $cache->deletefile(); + $cache->setBlock($reponse->getIdentiteProcolResult); + } + return $reponse->getIdentiteProcolResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + throw new Zend_Soap_Client_Exception($fault); + return false; + } + } + + /** + * getLiensById + * @param int $id + * @return mixed + */ + public function getLiensById($id) + { + $filename = 'liensbyid-'.$id; + + if ($this->cacheWrite) { + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock(); + } + } + + $params = new StdClass(); + $params->id = $id; + $client = $this->loadClient('entreprise'); + try { + $reponse = $client->getLiensById($params); + if ($this->cacheWrite) { + $cache->deletefile(); + $cache->setBlock($reponse->getLiensByIdResult); + } + return $reponse->getLiensByIdResult; + } catch (SoapFault $fault) { + if ($fault->getCode()=='MSG') { + return $fault->getMessage(); + } else { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + } + + /** + * getLiens + * @param string $siren + * @return mixed + */ + public function getLiens($siren) + { + $filename = 'liens-'.$siren; + + if ($this->cacheWrite) { + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock(); + } + } + + $params = new StdClass(); + $params->siren = $siren; + $client = $this->loadClient('entreprise'); + try { + $reponse = $client->getLiens($params); + if ($this->cacheWrite) { + $cache->deletefile(); + $cache->setBlock($reponse->getLiensResult); + } + return $reponse->getLiensResult; + } catch (SoapFault $fault) { + if ($fault->getCode()=='MSG') { + return $fault->getMessage(); + } else { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + } + + /** + * getListeEvenements + * @param string $siren + * @param string $nic + * @param integer $position + * @param integer $nbRep + * @return mixed + */ + public function getListeEvenements($siren, $nic=0, $position=0, $nbRep=200) + { + $filename = 'listeevenements-'.$siren.'-'.$nic.'-'.$position.'-'.$nbRep; + + if ($this->cacheWrite) { + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock(); + } + } + + $params = new stdClass(); + $params->siren = $siren; + $params->nic = $nic; + $params->position = $position; + $params->nbRep = $nbRep; + $client = $this->loadClient('entreprise'); + try { + $reponse = $client->getListeEvenements($params); + if ($this->cacheWrite) { + $cache->deletefile(); + $cache->setBlock($reponse->getListeEvenementsResult); + } + return $reponse->getListeEvenementsResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + + } + + /** + * getListeEtablissements + * @param string $siren + * @return mixed + */ + public function getListeEtablissements($siren, $actif = -1, $position = 0) + { + $filename = 'listeetablissements-'.$siren.'-'.$position; + if ($actif != -1){ + $filename.= '-'.$actif; + } + + if ($this->cacheWrite) { + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock(); + } + } + + $params = new StdClass(); + $params->siren = $siren; + $params->dep = 0; + $params->actif = $actif; + $params->position = $position; + $params->nbRep = 200; + $client = $this->loadClient('entreprise'); + try { + $reponse = $client->getListeEtablissements($params); + if ($this->cacheWrite) { + $cache->deletefile(); + $cache->setBlock($reponse->getListeEtablissementsResult); + } + return $reponse->getListeEtablissementsResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + + /** + * searchEntreprise + * @param array $criteres + * @param int $position + * @param int $nbRep + * @param int $actif + */ + public function searchEntreprise($criteres, $position = 0, $nbRep = null) + { + $params = new StdClass; + $params->criteres = new StdClass; + $params->criteres->identifiant = $criteres['identifiant']; + $params->criteres->raisonSociale = $criteres['raisonSociale']; + $params->criteres->adresse = $criteres['adresse']; + $params->criteres->codePostal = $criteres['codePostal']; + $params->criteres->ville = $criteres['ville']; + $params->criteres->telFax = $criteres['telFax']; + $params->criteres->naf = $criteres['naf']; + $params->criteres->siege = false; + $params->criteres->actif = in_array($criteres['actif'], array(0,1,2)) ? $criteres['actif'] : 2; + $params->criteres->fj = $criteres['fj']; + $params->position = $position; + $params->nbRep = empty($nbRep) ? $this->nbReponses : $nbRep ; + $client = $this->loadClient('entreprise'); + try { + $reponse = $client->searchEntreprise($params); + return $reponse->searchEntrepriseResult; + } catch (SoapFault $fault) { + if (in_array($fault->faultcode, array('1010', '1020'))){ + return $fault->faultstring; + } else { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + } + + /** + * setCmdAsso + * @param unknown_type $infosCommande + * @param unknown_type $infosDemandeur + * @return boolean + */ + public function setCmdAsso($infosCommande, $infosDemandeur) + { + $params = new stdClass(); + $params->infosCommande = $infosCommande; + $params->infosDemandeur = $infosDemandeur; + try { + $client = $this->loadClient('interne'); + $reponse = $client->setCmdAsso($params); + return $reponse->setCmdAssoResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + Zend_Registry::get('firebug')->info($fault); + //Placer exception pour affichage message + return false; + } + } + + /** + * Enregistre ou modifie un client + * @param unknown_type $infos + * @return boolean + */ + public function setClient($infos) + { + $params = new stdClass(); + $params->infos = json_encode($infos); + try { + $client = $this->loadClient('gestion'); + $reponse = $client->setClient($params); + return $reponse->setClientResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + Zend_Registry::get('firebug')->info($fault); + //Placer exception pour affichage message + return false; + } + } + + /** + * setInfosLogin + * @param string $login + * @param string $action + * @param array $infos + */ + public function setInfosLogin($login, $action, $infos = null) + { + $params = new stdClass(); + $params->login = $login; + $params->action = $action; + if ($infos !== null ) { + $params->infos = json_encode($infos); + } + try { + $client = $this->loadClient('gestion'); + $reponse = $client->setInfosLogin($params); + return $reponse->setInfosLoginResult; + } catch (SoapFault $fault) { + if (in_array($fault->getCode(),array('MSG','ERR'))) { + return $fault->getMessage(); + } else { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + Zend_Registry::get('firebug')->info($fault); + //Placer exception pour affichage message + + return false; + } + } + } + + /** + * getInfosLogin + * @param string $login + * @param string $ipUtilisateur + */ + public function getInfosLogin($login, $ipUtilisateur = '') + { + $params = new stdClass(); + $params->login = $login; + $params->ipUtilisateur = $ipUtilisateur; + try { + $client = $this->loadClient('gestion'); + $reponse = $client->getInfosLogin($params); + return $reponse->getInfosLoginResult; + } catch (SoapFault $fault) { + if (substr($fault->faultcode,0,1)=='0'){ + return $fault->faultstring; + } else { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + return false; + } + } + } + + /** + * getNextLogin + * @param int $idClient + */ + public function getNextLogin($idClient) + { + $params = new stdClass(); + $params->idClient = $idClient; + try { + $client = $this->loadClient('gestion'); + $reponse = $client->getNextLogin($params); + Zend_Registry::get('firebug')->info($reponse); + return $reponse->getNextLoginResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + Zend_Registry::get('firebug')->info($fault); + //Placer exception pour affichage message + return false; + } + } + + /** + * getLogs + */ + public function getLogs() + { + $filename = 'logs'; + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock('logs'); + } + try { + $client = $this->loadClient('gestion'); + $reponse = $client->getLogs(); + $cache->deletefile(); + $cache->setBlock($reponse->getLogsResult); + return $reponse->getLogsResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + //Placer exception pour affichage message + return false; + } + } + + /** + * getListePrefs + */ + public function getListePrefs() + { + $filename = 'prefs'; + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock('prefs'); + } + try { + $client = $this->loadClient('gestion'); + $reponse = $client->getListePrefs(); + $cache->deletefile(); + $cache->setBlock($reponse->getListePrefsResult); + return $reponse->getListePrefsResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + //Placer exception pour affichage message + return false; + } + } + + /** + * getListeDroits + */ + public function getListeDroits() + { + $filename = 'droits'; + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock('droits'); + } + try { + $client = $this->loadClient('gestion'); + $reponse = $client->getListeDroits(); + $cache->deletefile(); + $cache->setBlock($reponse->getListeDroitsResult); + return $reponse->getListeDroitsResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + //Placer exception pour affichage message + return false; + } + } + + /** + * getCategory + */ + public function getCategory() + { + $filename = 'category'; + $cache = new Cache($filename); + if ($cache->exist() && $this->cacheEnable ){ + return $cache->getBlock('category'); + } + try { + $client = $this->loadClient('gestion'); + $reponse = $client->getCategory(); + $cache->deletefile(); + $cache->setBlock($reponse->getCategoryResult); + return $reponse->getCategoryResult; + } catch (SoapFault $fault) { + $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse()); + //Placer exception pour affichage message + return false; + } + + } + + /** + * soaperror + * @param string $method + * @param soapfault $fault + * @param string $requete + * @param string $reponse + */ + protected function soaperror($method, $fault, $requete, $reponse) + { + $message = ''; + $message.= 'Erreur SOAP - Code : '.$fault->faultcode.' - Message : '.$fault->faultstring; + $message.= ' - Utilisateur : '.$this->login; + $message.= "\n\n"; + + $message.= "Method : ".$method.", File :".$fault->getFile().", Ligne : ".$fault->getLine(); + $message.= "\n\n"; + + $message.= "Detail :\n".$fault->getTraceAsString(); + $message.= "\n\n"; + + if ( $controller = Zend_Controller_Front::getInstance() ) { + $message.= "Request Parameters :\n ".print_r($controller->getRequest()->getParams(), true); + $message.= "\n\n"; + } + + $message.= "Referer : ".$_SERVER['HTTP_REFERER']."\n\n"; + + $message.= "Requete :\n ".$requete."\n"; + $message.= "Reponse :\n ".$reponse."\n"; + $c = Zend_Registry::get('config'); + require_once 'Scores/Mail.php'; + $mail = new Mail(); + $mail->setSubject('[ERREUR SOAP] - '.$c->profil->server->name.' -'.date('Ymd')); + $mail->setBodyTexte($message); + $mail->setFrom('supportdev'); + $mail->addToKey('supportdev'); + $mail->send(); + } +} \ No newline at end of file diff --git a/library/Scores/classMMap.php b/library/Scores/classMMap.php new file mode 100644 index 0000000..ca72de7 --- /dev/null +++ b/library/Scores/classMMap.php @@ -0,0 +1,173 @@ +0 ) + return floor($dec); + else + return ceil($dec); + } +} + +if ( !function_exists('dec2dms') ) +{ + function dec2dms($dec) { + $d = supprDecimales($dec); + $m = supprDecimales(($dec - $d) * 60); + $s = abs(round(((($dec - $d) * 60) - $m) * 60)); + $m = abs($m); + return $d.'°'.$m."'".$s.'"'; + } +} + +/** Retourne la distance en kilomètres entre 2 points à la surface de la terre + ** Calcul effectué avec la sphère « GRS80 » de rayon R = 6378,187 km + ** Autre sphère possible : « Picard » de rayon R = 6371,598 km + ** + ** @param double $latA Latitude du point A en décimal + ** @param double $lonA Longitude du point A en décimal + ** @param double $latB Latitude du point B en décimal + ** @param double $lonB Longitude du point B en décimal + ** @return unknown + **/ +function distance($latA=0, $lonA=0, $latB=0, $lonB=0) { +//s(AB) = arc cos (sinjA sinjB + cos jA cosjB cosdl) +// avec dl = lB - lA + $e=pi()*$latA/180; + $f=pi()*$lonA/180; + $g=pi()*$latB/180; + $h=pi()*$lonB/180; + + $j=acos(cos($e)*cos($g)*cos($f)*cos($h) + cos($e)*sin($f)*cos($g)*sin($h) + sin($e)*sin($g)); + + return round(6371.598*$j,3); // div par 1.852 ==> résultat en miles nautiques +} + +class MMap { + + public $body = ''; + public $header = ''; + public $cookie = ''; + public $codeRetour = 0; + public $codeRetour2 = 0; + + public $latitudeDec= 0; // Latitude en Décimal + public $latitudeDeg= 0; // Latitude en Dégrés + public $longitudeDec= 0; // Longitude en Décimal + public $longitudeDeg= 0; // Longitude en Dégrés + + public $precision = 0; + public $adresseValidee=''; + + function __construct($adresse, $cp, $ville, $pays='France') { +/* + $referer='http://maps.google.fr/?output=html'; + $page=getUrl($referer, '', '', $referer, false, 'maps.google.fr'); + $this->body=$page['body']; + $this->codeRetour=$page['code']; + $this->header=$page['header']; + $this->cookie=$this->header['Set-Cookie']; + + $url='http://maps.google.fr/maps?f=q&output=html&q='.urlencode($adresse.', '.$cp.' '. $ville.', '.$pays); + $page=getUrl($url, $this->cookie, '', $referer, false, 'maps.google.fr'); + $this->body=$page['body']; + $this->codeRetour=$page['code']; + $this->header=$page['header']; + if (strpos($this->body, '

    Nous ne sommes pas parvenus à localiser l\'adresse :
    ')===true) return false; + + $this->adresseValidee=strtoupper(htmlspecialchars_decode(str_replace('
    ', ', ', @getTextInHtml($this->body, '

    ')), ENT_QUOTES)); + + $this->latitudeDec=@getTextInHtml($this->body, 'latitude_e6=', '=','&')/1000000; + $this->longitudeDec=@getTextInHtml($this->body, 'longitude_e6=', '=','&'); + if ($this->longitudeDec>1000000000) + $this->longitudeDec=-(4294967293-$this->longitudeDec)/1000000; + else + $this->longitudeDec=$this->longitudeDec/1000000; + + $this->latitudeDeg=dec2dms($this->latitudeDec); + $this->longitudeDeg=dec2dms($this->longitudeDec); + + if ($this->codeRetour==200) + return true; + + //$latitude_range = (180 * $range) / ($pi * $radius_of_earth); + //$longitude_range = (180 * $range) / ($pi * $radius_of_earth * sin((90 - $alat) * $pi / 180)); +*/ + $apiKey='ABQIAAAAuKBtUyFonYJBl1fqfc78tRQvADPcxwXf3Q2QIE-M32vuSkrxiBRLUHDB_YSLeTscTDeWRKM_wILaaw'; + $url='http://maps.google.com/maps/geo?q='.urlencode($adresse.', '.$cp.' '. $ville.', '.$pays).'&output=xml&key='.$apiKey; + $referer='';//http://maps.google.fr/?output=html'; + $page=getUrl($url, '', '', $referer, false, 'maps.google.com', '', 2); + $this->body=$page['body']; + $this->codeRetour=$page['code']; + $this->header=$page['header']; + //die($this->body=$page['body']); + //{"name":"3 rue viète, 75017 paris, france","Status":{"code":200,"request":"geocode"},"Placemark":[{"id":"p1","address":"3, Rue Viète, 75017 17ème Arrondissement, Paris, France","AddressDetails":{"Country":{"CountryNameCode":"FR","AdministrativeArea":{"AdministrativeAreaName":"Ile-de-France","SubAdministrativeArea":{"SubAdministrativeAreaName":"Paris","Locality":{"LocalityName":"Paris","DependentLocality":{"DependentLocalityName":"17ème Arrondissement","Thoroughfare":{"ThoroughfareName":"3, Rue Viète"},"PostalCode":{"PostalCodeNumber":"75017"}}}}}},"Accuracy": 8},"Point":{"coordinates":[2.306174,48.883705,0]}}]} + /*3 rue viète, 75017 paris, france200geocode
    3, Rue Viète, 75017 17ème Arrondissement, Paris, France
    FRIle-de-FranceParisParis17ème Arrondissement3, Rue Viète750172.306174,48.883705,0
    */ + +/* +0 Unknown location. (Since 2.59) +1 Country level accuracy. (Since 2.59) +2 Region (state, province, prefecture, etc.) level accuracy. (Since 2.59) +3 Sub-region (county, municipality, etc.) level accuracy. (Since 2.59) +4 Town (city, village) level accuracy. (Since 2.59) +5 Post code (zip code) level accuracy. (Since 2.59) +6 Street level accuracy. (Since 2.59) +7 Intersection level accuracy. (Since 2.59) +8 Address level accuracy. (Since 2.59) +*/ + $this->precision=@getTextInHtml($this->body, '
    ', ' nowrap>', '