Compare commits
No commits in common. "SD-32" and "release-1.4" have entirely different histories.
SD-32
...
release-1.
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,4 +0,0 @@
|
||||
/.settings/
|
||||
/.buildpath
|
||||
/.project
|
||||
/vendor/
|
9
TODELETE
9
TODELETE
@ -1,9 +0,0 @@
|
||||
table => actes_files
|
||||
library\Application\Model\ActesFiles.php
|
||||
|
||||
table commandes
|
||||
table commandes_erreur
|
||||
table commandes_kbis
|
||||
table commandes_pieces
|
||||
table commandes_statut
|
||||
table commandes_tarifs => Needed dans GenCourrier
|
@ -1,183 +0,0 @@
|
||||
<?php
|
||||
use Monolog\Logger;
|
||||
use Monolog\Handler\StreamHandler;
|
||||
use Monolog\Processor\IntrospectionProcessor;
|
||||
use Monolog\Handler\ChromePHPHandler;
|
||||
|
||||
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
||||
{
|
||||
/**
|
||||
* Set config available in all apps
|
||||
*/
|
||||
protected function _initConfig()
|
||||
{
|
||||
$config = new Zend_Config($this->getOptions());
|
||||
Zend_Registry::set('config', $config);
|
||||
return $config;
|
||||
}
|
||||
|
||||
/**
|
||||
* Init controller with modules
|
||||
*/
|
||||
protected function _initController()
|
||||
{
|
||||
$this->bootstrap('frontController');
|
||||
$front = $this->getResource('frontController');
|
||||
$front->setControllerDirectory(array(
|
||||
'default' => __DIR__ . '/modules/default/controllers',
|
||||
'admin' => __DIR__ . '/modules/admin/controllers',
|
||||
'file' => __DIR__ . '/modules/file/controllers',
|
||||
));
|
||||
|
||||
return $front;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialisation global des paramètres de vue
|
||||
*/
|
||||
protected function _initViewSettings()
|
||||
{
|
||||
$this->bootstrap('view');
|
||||
$view = $this->getResource('view');
|
||||
$view->setEncoding('UTF-8');
|
||||
$view->headTitle()->setSeparator(' - ');
|
||||
$view->headTitle('Extranet Scores & Décisions');
|
||||
}
|
||||
|
||||
/**
|
||||
* Some specific route
|
||||
* @return unknown
|
||||
*/
|
||||
protected function _initRouter()
|
||||
{
|
||||
$this->bootstrap('frontController');
|
||||
$front = $this->getResource('frontController');
|
||||
$router = $front->getRouter();
|
||||
|
||||
$localauthRoute = new Zend_Controller_Router_Route('localauth/', array(
|
||||
'module' => 'default',
|
||||
'controller' => 'user',
|
||||
'action' => 'login'
|
||||
));
|
||||
$router->addRoute('localauth', $localauthRoute);
|
||||
|
||||
$printRoute = new Zend_Controller_Router_Route('editer/:action/:fichier', array(
|
||||
'module' => 'default',
|
||||
'controller' => 'print',
|
||||
'fichier' => '',
|
||||
));
|
||||
$router->addRoute('print', $printRoute);
|
||||
|
||||
$ssoRoute = new Zend_Controller_Router_Route('sso/:partner/', array(
|
||||
'module' => 'default',
|
||||
'controller' => 'auth',
|
||||
'action' => 'index',
|
||||
));
|
||||
$router->addRoute('sso', $ssoRoute);
|
||||
|
||||
return $router;
|
||||
}
|
||||
|
||||
protected function _initLogging()
|
||||
{
|
||||
//Firebug
|
||||
$writer = new Zend_Log_Writer_Firebug();
|
||||
if(APPLICATION_ENV=='production') {
|
||||
$writer->setEnabled(false);
|
||||
}
|
||||
$logger = new Zend_Log($writer);
|
||||
Zend_Registry::set('firebug', $logger);
|
||||
|
||||
//Application Logger en Production
|
||||
$AppLogger = new Zend_Log();
|
||||
if (APPLICATION_ENV == 'production')
|
||||
{
|
||||
$Mail = new Zend_Mail();
|
||||
$Mail->setFrom('production@scores-decisions.com')
|
||||
->addTo('supportdev@scores-decisions.com');
|
||||
$AppMailWriter = new Zend_Log_Writer_Mail($Mail);
|
||||
$AppMailWriter->setSubjectPrependText('ERREUR');
|
||||
$AppMailWriter->addFilter(Zend_Log::ERR);
|
||||
$AppLogger->addWriter($AppMailWriter);
|
||||
}
|
||||
Zend_Registry::set('log', $AppLogger);
|
||||
}
|
||||
|
||||
/**
|
||||
* Logs and Debug
|
||||
*/
|
||||
protected function _initLogger()
|
||||
{
|
||||
$config = new Zend_Config($this->getOptions());
|
||||
$logFile = $config->profil->path->shared.'/log/application.log';
|
||||
|
||||
$log = new Logger('APP');
|
||||
|
||||
// Console Handler
|
||||
if (in_array(APPLICATION_ENV, array('development', 'staging'))) {
|
||||
//$log->pushHandler(new BrowserConsoleHandler());
|
||||
//$log->pushHandler(new ChromePHPHandler());
|
||||
}
|
||||
|
||||
// File Handler
|
||||
if (APPLICATION_ENV == 'development') {
|
||||
$level = Logger::DEBUG;
|
||||
} else {
|
||||
$level = Logger::INFO;
|
||||
}
|
||||
$log->pushHandler(new StreamHandler($logFile), $level);
|
||||
|
||||
// Processor
|
||||
$log->pushProcessor(new IntrospectionProcessor());
|
||||
|
||||
Zend_Registry::set('logger', $log);
|
||||
}
|
||||
|
||||
/**
|
||||
* Init database
|
||||
*/
|
||||
protected function _initDb()
|
||||
{
|
||||
$c = Zend_Registry::get('config');
|
||||
try {
|
||||
$db = Zend_Db::factory($c->profil->db->sdv1);
|
||||
$db->getConnection();
|
||||
} catch ( Exception $e ) {
|
||||
if (APPLICATION_ENV == 'development') {
|
||||
echo '<pre>'; print_r($e); echo '</pre>';
|
||||
} else {
|
||||
echo "Le service rencontre actuellement un problème technique.";
|
||||
}
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the default adapter to use with all model
|
||||
*/
|
||||
Zend_Db_Table::setDefaultAdapter($db);
|
||||
|
||||
/**
|
||||
* Set Firebug Database profiler
|
||||
*/
|
||||
if (APPLICATION_ENV == 'development') {
|
||||
$profiler = new Zend_Db_Profiler_Firebug('All DB Queries');
|
||||
$profiler->setEnabled(true);
|
||||
$db->setProfiler($profiler);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Init cache
|
||||
*/
|
||||
protected function _initCache()
|
||||
{
|
||||
// @todo : Remove for PHP7 Compatibility
|
||||
//MetadataCache pour la base de données
|
||||
$cache = Zend_Cache::factory('Core', 'Apc',
|
||||
array('lifetime' => 28800, 'automatic_serialization' => true),
|
||||
array()
|
||||
);
|
||||
Zend_Db_Table_Abstract::setDefaultMetadataCache($cache);
|
||||
}
|
||||
|
||||
}
|
1
application/configs/.gitignore
vendored
1
application/configs/.gitignore
vendored
@ -1 +0,0 @@
|
||||
/application.ini
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -1,68 +0,0 @@
|
||||
<?php
|
||||
//Menu
|
||||
$this->translate('RECHERCHES');
|
||||
$this->translate('Rechercher une entreprise');
|
||||
$this->translate('Rechercher par dirigeant');
|
||||
$this->translate('Recherche Internationale');
|
||||
$this->translate('Rechercher une annonce');
|
||||
$this->translate('Rechercher par actionnaire');
|
||||
$this->translate('Dernière recherche');
|
||||
$this->translate('Liste des dernières recherches');
|
||||
$this->translate('Centrale IparI');
|
||||
$this->translate('IDENTITE');
|
||||
$this->translate('Fiche d\'identité');
|
||||
$this->translate('Fiche Procédure Collective');
|
||||
$this->translate('Liste des établissements');
|
||||
$this->translate('Liens inter-entreprises');
|
||||
$this->translate('Informations Groupe');
|
||||
$this->translate('Modifications Insee');
|
||||
$this->translate('DIRIGEANTS');
|
||||
$this->translate('Liste des dirigeants');
|
||||
$this->translate('Historique des dirigeants');
|
||||
$this->translate('ELEMENTS FINANCIERS');
|
||||
$this->translate('Synthèse');
|
||||
$this->translate('Bilans, Compte de résultat');
|
||||
$this->translate('Ratios');
|
||||
$this->translate('Flux de trésorerie');
|
||||
$this->translate('Liasse fiscale');
|
||||
$this->translate('Bourse & Cotations');
|
||||
$this->translate('Relations bancaires');
|
||||
$this->translate('ELEMENTS JURIDIQUES');
|
||||
$this->translate('Annonces Légales');
|
||||
$this->translate('Information Réglementée');
|
||||
$this->translate('Compétences Territoriales');
|
||||
$this->translate('Conventions collectives');
|
||||
$this->translate('Marques déposées');
|
||||
$this->translate('BANQUE DE FRANCE');
|
||||
$this->translate('27. Panorama');
|
||||
$this->translate('28. Concours Bancaires');
|
||||
$this->translate('29. Impayés');
|
||||
$this->translate('40. Relations Bancaires');
|
||||
$this->translate('51. Dirigeants');
|
||||
$this->translate('Autres');
|
||||
$this->translate('EVALUATION');
|
||||
$this->translate('IndiScore');
|
||||
$this->translate('Rapport de synthèse');
|
||||
$this->translate('Rapport complet');
|
||||
$this->translate('Valorisation');
|
||||
$this->translate('Scoring Credit Safe');
|
||||
$this->translate('Enquête commerciale');
|
||||
$this->translate('PIECES OFFICIELLES');
|
||||
$this->translate('Commande de Pièces');
|
||||
$this->translate('Comptes annuels');
|
||||
$this->translate('Actes & Statuts');
|
||||
$this->translate('Suivi Privilèges');
|
||||
$this->translate('OPTIONS');
|
||||
$this->translate('Nouveautés');
|
||||
$this->translate('Mes options');
|
||||
$this->translate('Mes surveillances');
|
||||
$this->translate('Surveillances fichier');
|
||||
$this->translate('Mon portefeuille');
|
||||
$this->translate('Administration');
|
||||
$this->translate('Surveillances');
|
||||
$this->translate('Se déconnecter');
|
||||
$this->translate('GESTION S&D');
|
||||
$this->translate('Gestion');
|
||||
$this->translate('Saisie / Edition');
|
||||
$this->translate('Saisie Fiche Etrangère');
|
||||
?>
|
@ -1,7 +0,0 @@
|
||||
<p>© 2006-<?php echo date('Y')?> Scores & Décisions SAS -
|
||||
<?=$this->translate("Tous droits réservés")?> -
|
||||
<a href="http://www.scores-decisions.com/mentions.php" target="_blank">
|
||||
<?=$this->translate("Mentions légales")?></a> -
|
||||
<img class='flag' id="fr" src="/themes/default/images/drapeaux/fr.png"/>
|
||||
<img class='flag' id="en" src="/themes/default/images/drapeaux/en.png"/>
|
||||
</p>
|
@ -1,43 +0,0 @@
|
||||
<?php if ($this->navigation()->menu()->hasPages()) { ?>
|
||||
<div id="menu">
|
||||
<div id="logo">
|
||||
<img src="/themes/default/images/logos/logo_sd.gif" width="200" height="65" />
|
||||
</div>
|
||||
<?=$this->navigation()->menu();?>
|
||||
<div class="icones">
|
||||
<?php if ($this->print) {?>
|
||||
<a target="_blank" title="Impression" href="/editer/ecran/<?=$this->print.'.html'?>">
|
||||
<img alt="<?=$this->translate("Impression")?>" src="/themes/default/images/interfaces/printer.png">
|
||||
</a>
|
||||
<?php }?>
|
||||
|
||||
<?php if ($this->pdf) {?>
|
||||
<a target="_blank" title="Impression PDF" href="/editer/pdf/<?=$this->pdf.'.pdf'?>">
|
||||
<img alt="<?=$this->translate("Impression en PDF")?>" src="/themes/default/images/interfaces/pdf.png">
|
||||
</a>
|
||||
<?php }?>
|
||||
|
||||
<?php if ($this->xml) {?>
|
||||
<a target="_blank" title="Export XML" href="/editer/xml/<?=$this->xml.'.xml'?>">
|
||||
<img alt="<?=$this->translate("Export en XML")?>" src="/themes/default/images/interfaces/xml.png">
|
||||
</a>
|
||||
<?php }?>
|
||||
|
||||
<?php if ($this->aide) {?>
|
||||
<a id="aideLigne" title="Aide en ligne" href="#">
|
||||
<img alt="<?=$this->translate("Activer l'aide en ligne")?>" src="/themes/default/images/interfaces/aideligne.png">
|
||||
</a>
|
||||
<?php }?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$('div#menu ul.navigation').accordion({
|
||||
header: '.header',
|
||||
autoHeight: false,
|
||||
collapsible: true,
|
||||
heightStyle: "content",
|
||||
active: <?=$this->menuId?>
|
||||
});
|
||||
</script>
|
||||
<?php }?>
|
@ -1,21 +0,0 @@
|
||||
<?php echo $this->doctype()?>
|
||||
<html>
|
||||
<head>
|
||||
<?php echo $this->headMeta()?>
|
||||
<?php echo $this->headTitle()?>
|
||||
<?php echo $this->headLink()?>
|
||||
<?php echo $this->headScript()?>
|
||||
</head>
|
||||
<body>
|
||||
<div id="global">
|
||||
<?php echo $this->render('header.phtml')?>
|
||||
<div id="content">
|
||||
<?php echo $this->layout()->content?>
|
||||
<div id="footer">
|
||||
<?php echo $this->render('footer.phtml')?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo $this->inlineScript()?>
|
||||
</body>
|
||||
</html>
|
@ -1,19 +0,0 @@
|
||||
<?php
|
||||
class Zend_View_Helper_Editable extends Zend_View_Helper_Abstract
|
||||
{
|
||||
public function Editable($name, $value, $category)
|
||||
{
|
||||
$class = 'editable-change';
|
||||
if ( null === $value ) {
|
||||
$value = $name;
|
||||
$class = 'editable';
|
||||
}
|
||||
if ( !empty($class) ) {
|
||||
$class = 'class="'.$class.' '.$category.'"';
|
||||
}
|
||||
$html = '<span id="'.$name.'" '.$class.'>';
|
||||
$html.= $value;
|
||||
$html.= '</span>';
|
||||
return $html;
|
||||
}
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
<?php
|
||||
Class Zend_View_Helper_FormatPct extends Zend_View_Helper_Abstract {
|
||||
|
||||
public function FormatPct($pct)
|
||||
{
|
||||
$pct = round($pct / 10, 0) * 10;
|
||||
if ($pct == 0) $pct = 10;
|
||||
if ($pct > 100) $pct = 100;
|
||||
return $pct;
|
||||
}
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
<?php
|
||||
class Zend_View_Helper_MenuScript extends Zend_View_Helper_Abstract
|
||||
{
|
||||
public function menuScript()
|
||||
{
|
||||
$i = 0;
|
||||
$container = $this->view->navigation()->getContainer();
|
||||
$submenu = $this->view->navigation()->findActive($container);
|
||||
if ($submenu != null){
|
||||
$parentLabel = $submenu['page']->getParent()->getLabel();
|
||||
foreach($container as $page){
|
||||
if ($page->label == $parentLabel){
|
||||
break;
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
return $i;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -1,35 +0,0 @@
|
||||
<?php
|
||||
Class Zend_View_Helper_NewsDate extends Zend_View_Helper_Abstract
|
||||
{
|
||||
protected $mois = array (
|
||||
'Jan' => 1,
|
||||
'Feb' => 2,
|
||||
'Mar' => 3,
|
||||
'Apr' => 4,
|
||||
'May' => 5,
|
||||
'Jun' => 6,
|
||||
'Jul' => 7,
|
||||
'Aug' => 8,
|
||||
'Sep' => 9,
|
||||
'Oct' => 10,
|
||||
'Nov' => 11,
|
||||
'Dev' => 12,
|
||||
);
|
||||
|
||||
public function NewsDate($date)
|
||||
{
|
||||
$tmp = explode(', ', $date);
|
||||
$tabDate = explode(' ', $tmp[1]);
|
||||
$tabTime = explode(':', $tabDate[3]);
|
||||
$timestamp = gmmktime(
|
||||
$tabTime[0]-1,
|
||||
$tabTime[1],
|
||||
$tabTime[2],
|
||||
$this->mois[$tabDate[1]],
|
||||
$tabDate[0],
|
||||
$tabDate[2]
|
||||
);
|
||||
$pubDate = date('d/m/Y à H:i', $timestamp);
|
||||
return $pubDate;
|
||||
}
|
||||
}
|
@ -1,40 +0,0 @@
|
||||
<?php
|
||||
class Zend_View_Helper_RemplaceSiren extends Zend_View_Helper_Abstract
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
require_once 'Scores/Siren.php';
|
||||
}
|
||||
|
||||
public function RemplaceSiren($texte)
|
||||
{
|
||||
$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, array($this, 'replace_siren'), $texte);
|
||||
}
|
||||
|
||||
public function replace_siren($matches)
|
||||
{
|
||||
foreach ($matches as $i => $sirenBrut) {
|
||||
$siren = strtr($sirenBrut, array(' '=>'', '.'=>'', '-'=>''));
|
||||
if (strlen($sirenBrut)==9) {
|
||||
$sirenBrut = implode(' ', str_split($sirenBrut, 3));
|
||||
}
|
||||
$sirenMethod = new Siren();
|
||||
if ($sirenMethod->valide($siren)) {
|
||||
if ($sirenMethod->exist($siren)){
|
||||
$href = $this->view->url(array(
|
||||
'controller' => 'identite',
|
||||
'action' => 'fiche',
|
||||
'siret' => $siren,
|
||||
), null, true);
|
||||
return '<a href="'.$href.'" title="Voir la fiche identité de cette entreprise">'.$sirenBrut.'</a>';
|
||||
} else {
|
||||
return $sirenBrut;
|
||||
}
|
||||
}
|
||||
return $sirenBrut;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,10 +0,0 @@
|
||||
<?php
|
||||
class Zend_View_Helper_SirenTexte extends Zend_View_Helper_Abstract
|
||||
{
|
||||
public function SirenTexte($siren)
|
||||
{
|
||||
return substr($siren, 0, 3).' '.
|
||||
substr($siren, 3, 3).' '.
|
||||
substr($siren, 6, 3);
|
||||
}
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
<?php
|
||||
class Zend_View_Helper_SiretTexte extends Zend_View_Helper_Abstract
|
||||
{
|
||||
public function SiretTexte($siret)
|
||||
{
|
||||
if (intval(substr($siret,0,9))<1000) {
|
||||
return '';
|
||||
}
|
||||
|
||||
$fSiret = substr($siret, 0, 3).' '.
|
||||
substr($siret, 3, 3).' '.
|
||||
substr($siret, 6, 3);
|
||||
|
||||
$nic = substr($siret, 9, 5);
|
||||
if (intval($nic)>0) {
|
||||
$fSiret.= ' <i>'.$nic.'</i>';
|
||||
}
|
||||
|
||||
return $fSiret;
|
||||
}
|
||||
}
|
@ -1,118 +0,0 @@
|
||||
<?php
|
||||
class AideController extends Zend_Controller_Action
|
||||
{
|
||||
protected $theme;
|
||||
|
||||
/**
|
||||
* Logger
|
||||
* @var \Monolog\Logger
|
||||
*/
|
||||
protected $logger;
|
||||
|
||||
public function init()
|
||||
{
|
||||
if (Zend_Registry::isRegistered('logger')) {
|
||||
$this->logger = Zend_Registry::get('logger');
|
||||
}
|
||||
|
||||
// --- Theme
|
||||
$this->theme = Zend_Registry::get('theme');
|
||||
}
|
||||
|
||||
/**
|
||||
* Afficher bulle pour les nouveautés
|
||||
*/
|
||||
public function newAction()
|
||||
{
|
||||
$nbNewsMax = 5;
|
||||
$nbJourGlisssant = 5;
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
$date = $user->getDateDerniereConnexion();
|
||||
$nouveautes = array();
|
||||
if ( $date!=null || $date!='0000-00-00 00:00:00' )
|
||||
{
|
||||
$time = mktime(0, 0, 0, date('m'), date('d')-$nbJourGlisssant, date('Y'));
|
||||
$dateglissant = date('Y-m-d', $time);
|
||||
$now = date('Y-m-d');
|
||||
|
||||
$nouveautesM = new Application_Model_Nouveautes();
|
||||
$sql = $nouveautesM->select()
|
||||
->where("date>='".$dateglissant."' AND date<='".$now."'")
|
||||
->order('date DESC')
|
||||
->limit($nbNewsMax);
|
||||
$nouveautes = $nouveautesM->fetchAll($sql);
|
||||
}
|
||||
$this->view->assign('nouveautes', $nouveautes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Afficher la liste des nouveautés
|
||||
*/
|
||||
public function newlisteAction()
|
||||
{
|
||||
$this->view->headTitle()->prepend('Nouveautés');
|
||||
|
||||
$request = $this->getRequest();
|
||||
|
||||
//Selection
|
||||
$nouveautesM = new Application_Model_Nouveautes();
|
||||
$sql = $nouveautesM->select()
|
||||
->from('nouveautes', array('categorie', 'intitule', "date", 'fichier'))
|
||||
->order('date DESC');
|
||||
$nouveautes = $nouveautesM->fetchAll($sql);
|
||||
$this->view->assign('nouveautes', $nouveautes);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Affichage et validation de "cgu"
|
||||
* Conditions d’accès à l'extranet
|
||||
*/
|
||||
public function cguAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$request = $this->getRequest();
|
||||
|
||||
$accept = $request->getParam('accept', 0);
|
||||
|
||||
if ( $accept == 1 ) {
|
||||
require_once 'Scores/WsScores.php';
|
||||
$ws = new WsScores();
|
||||
$accept = $ws->setCGU();
|
||||
$this->logger->info($accept);
|
||||
if ($accept) {
|
||||
//Put in session
|
||||
$auth = Zend_Auth::getInstance();
|
||||
$identity = $auth->getIdentity();
|
||||
$identity->acceptationCGU = date('Y-m-d H:i:s');
|
||||
$auth->getStorage()->write($identity);
|
||||
//Redirect
|
||||
$this->redirect('/');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Afficher des propriétés du navigateur
|
||||
* Compatibilités et version
|
||||
*/
|
||||
public function navinfoAction()
|
||||
{
|
||||
$bootstrap = $this->getInvokeArg('bootstrap');
|
||||
$userAgent = $bootstrap->getResource('useragent');
|
||||
|
||||
$device = $userAgent->getDevice();
|
||||
|
||||
echo $device->getFeature('browser_compatibility').'<br/>';
|
||||
echo $device->getFeature('browser_version').'<br/>';
|
||||
|
||||
echo "<pre>";
|
||||
print_r($device);
|
||||
echo "</pre>";
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,276 +0,0 @@
|
||||
<?php
|
||||
class AuthController extends Zend_Controller_Action
|
||||
{
|
||||
protected $theme;
|
||||
|
||||
protected $partnerConfig = array(
|
||||
'inextenso' => array(
|
||||
'logo' => 'logo-in-extenso.gif',
|
||||
'clientId' => 195,
|
||||
'serviceCode' => 'SSO',
|
||||
'authType' => 'userSSO',
|
||||
'login' => 'mail',
|
||||
'token' => 'token',
|
||||
)
|
||||
);
|
||||
|
||||
/**
|
||||
* Logger
|
||||
* @var \Monolog\Logger
|
||||
*/
|
||||
protected $logger;
|
||||
|
||||
public function init()
|
||||
{
|
||||
if (Zend_Registry::isRegistered('logger')) {
|
||||
$this->logger = Zend_Registry::get('logger');
|
||||
}
|
||||
|
||||
// --- Theme
|
||||
$this->theme = Zend_Registry::get('theme');
|
||||
}
|
||||
|
||||
/**
|
||||
* Point d'entrée pour les connexions partenaires.
|
||||
* L'utilisateur s'identifie sur son portail habituel.
|
||||
*/
|
||||
public function indexAction()
|
||||
{
|
||||
// --- Désactiver le layout
|
||||
$this->_helper->layout()->disableLayout();
|
||||
|
||||
$this->view->headLink()
|
||||
->appendStylesheet($this->theme->pathStyle.'/inexweb.css', 'all')
|
||||
->appendStylesheet($this->theme->pathStyle.'/user.css', 'all');
|
||||
|
||||
$request = $this->getRequest();
|
||||
|
||||
/**
|
||||
* Get partner name - see route in bootstrap
|
||||
*/
|
||||
$partner = $request->getParam('partner');
|
||||
if ( array_key_exists($partner, $this->partnerConfig) ) {
|
||||
$config = $this->partnerConfig[$partner];
|
||||
$this->view->logo = $config['logo'];
|
||||
$params = $request->getParams();
|
||||
$objectParams = array();
|
||||
foreach ($params as $label => $value) {
|
||||
if (in_array($label, array('controller', 'action'))) continue;
|
||||
$object = new stdClass();
|
||||
$object->label = $label;
|
||||
$object->value = $value;
|
||||
$objectParams[] = $object;
|
||||
}
|
||||
$this->view->Params = $objectParams;
|
||||
|
||||
$login = $params[$config['login']];
|
||||
$part = strstr($login, '@', true);
|
||||
if ($part !== false) {
|
||||
$login = $part;
|
||||
}
|
||||
$token = $params[$config['token']];
|
||||
|
||||
try {
|
||||
$parameters = new stdClass();
|
||||
$parameters->client = $config['clientId'];
|
||||
$parameters->login = $login;
|
||||
$parameters->token = $token;
|
||||
$parameters->params = $objectParams;
|
||||
$ws = new Scores_Ws_Client('account', '0.1');
|
||||
$hash = $ws->ssoAuthenticate($parameters);
|
||||
// --- Utilisateur inexistant
|
||||
if ( $hash === 'false' || $hash === false ) {
|
||||
$this->view->NoUser = true;
|
||||
$urlParams = array('controller'=>'auth', 'action'=>'userssoform');
|
||||
$urlParams = array_merge($params, $urlParams);
|
||||
$this->view->FormUrlParams = $urlParams;
|
||||
}
|
||||
// --- Redirection
|
||||
else {
|
||||
|
||||
$auth = Zend_Auth::getInstance();
|
||||
|
||||
// --- Set partial identity
|
||||
$identity = new stdClass();
|
||||
$identity->username = $login;
|
||||
$identity->password = $hash;
|
||||
$auth->getStorage()->write($identity);
|
||||
// --- End Set partial identity
|
||||
|
||||
// --- Get InfosLogin
|
||||
$adressIp = $_SERVER['REMOTE_ADDR'];
|
||||
$parameters = new stdClass();
|
||||
$parameters->login = $login;
|
||||
$parameters->ipUtilisateur = $adressIp;
|
||||
$parameters->from = 'auth';
|
||||
try {
|
||||
$ws = new Scores_Ws_Client('gestion', '0.3');
|
||||
$InfosLogin = $ws->getInfosLogin($parameters);
|
||||
$this->logger->info(print_r($InfosLogin,1));
|
||||
if ( is_string($InfosLogin) || $InfosLogin->error->errnum != 0 ) {
|
||||
$this->view->Error = true;
|
||||
} else {
|
||||
$user = new Scores_Utilisateur();
|
||||
$identity = $user->updateProfil($InfosLogin);
|
||||
$auth->getStorage()->write($identity);
|
||||
// --- Redirect
|
||||
$this->redirect('/');
|
||||
}
|
||||
} catch ( Exception $e ) {
|
||||
switch ( $e->getCode() ) {
|
||||
case 'MSG':
|
||||
$this->view->Message = $e->getMessage();
|
||||
break;
|
||||
default:
|
||||
$this->view->Error = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
// --- End Get InfosLogin
|
||||
}
|
||||
} catch ( Exception $e ) {
|
||||
switch ( $e->getCode() ) {
|
||||
case 'MSG':
|
||||
$this->view->Message = $e->getMessage();
|
||||
break;
|
||||
default:
|
||||
$this->view->Error = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$this->view->Message = "Erreur dans les paramètres.";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Affichage du formulaire pour l'inscription des utilisateurs
|
||||
*/
|
||||
public function userssoformAction()
|
||||
{
|
||||
// --- Désactiver le layout
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$this->view->headLink()->appendStylesheet($this->theme->pathStyle.'/user.css', 'all');
|
||||
$request = $this->getRequest();
|
||||
|
||||
/**
|
||||
* Get partner name - see route in bootstrap
|
||||
*/
|
||||
$partner = $request->getParam('partner');
|
||||
if ( array_key_exists($partner, $this->partnerConfig) ) {
|
||||
$config = $this->partnerConfig[$partner];
|
||||
$this->view->logo = $config['logo'];
|
||||
$params = $request->getParams();
|
||||
$objectParams = array();
|
||||
foreach ($params as $label => $value) {
|
||||
if (in_array($label, array('controller', 'action'))) continue;
|
||||
$object = new stdClass();
|
||||
$object->label = $label;
|
||||
$object->value = $value;
|
||||
$objectParams[] = $object;
|
||||
}
|
||||
$this->view->Params = $objectParams;
|
||||
|
||||
$login = $params[$config['login']];
|
||||
$part = strstr($login, '@', true);
|
||||
if ($part !== false) {
|
||||
$login = $part;
|
||||
}
|
||||
$token = $params[$config['token']];
|
||||
|
||||
$this->view->NoUser = true;
|
||||
// --- Set form value
|
||||
$this->view->FormPartner = $partner;
|
||||
$this->view->FormIdentifiant = $login;
|
||||
$this->view->FormCourriel = $request->getParam('mail');
|
||||
$this->view->FormSiret = $request->getParam('siret');
|
||||
$this->view->FormNom = $request->getParam('lastname');
|
||||
$this->view->FormPrenom = $request->getParam('name');
|
||||
}
|
||||
else {
|
||||
$this->view->Message = "Erreur dans les paramètres.";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Creation d'un utilisateur en SSO
|
||||
*/
|
||||
public function userssocreateAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
|
||||
$request = $this->getRequest();
|
||||
|
||||
$partner = $request->getParam('partner');
|
||||
if ( array_key_exists($partner, $this->partnerConfig) ) {
|
||||
$config = $this->partnerConfig[$partner];
|
||||
$this->view->logo = $config['logo'];
|
||||
$data = array(
|
||||
'idClient' => $config['clientId'],
|
||||
'login' => $request->getParam('login'),
|
||||
'email' => $request->getParam('email', ''),
|
||||
'actif' => 1,
|
||||
'nom' => $request->getParam('nom', ''),
|
||||
'prenom' => $request->getParam('prenom', ''),
|
||||
'siret' => str_replace(' ', '', $request->getParam('siret', '')),
|
||||
'tel' => str_replace(array(' ','.'), array('',''), $request->getParam('tel', '')),
|
||||
'Service' => $config['serviceCode'],
|
||||
);
|
||||
|
||||
try {
|
||||
$ws = new Scores_Ws_Client('account', '0.1');
|
||||
$parameters = new stdClass();
|
||||
$parameters->data = json_encode($data);
|
||||
$created = $ws->setUserSSO($parameters);
|
||||
if ($created === false ) {
|
||||
$this->view->Message = "Erreur lors de la création de votre compte.";
|
||||
} else {
|
||||
$this->view->UserCreated = true;
|
||||
// --- Data to go back
|
||||
$params = $request->getParams();
|
||||
$urlArgs = array();
|
||||
foreach ($params as $label => $value) {
|
||||
if (in_array($label, array('controller', 'action'))) continue;
|
||||
if (substr($label, 0, 2) == 'P-') {
|
||||
$urlArgs[substr($label, 2)] = $value;
|
||||
}
|
||||
}
|
||||
$urlArgs['partner'] = 'inextenso';
|
||||
$this->view->UrlArgs = $urlArgs;
|
||||
}
|
||||
} catch ( Exception $e ) {
|
||||
switch ( $e->getCode() ) {
|
||||
case 'MSG':
|
||||
$this->view->Message = $e->getMessage();
|
||||
break;
|
||||
default:
|
||||
$this->view->Error = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
$this->view->Message = "Erreur dans les paramètres.";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Lien de validation depuis email
|
||||
* Paramètres
|
||||
* - login ou email
|
||||
* - key
|
||||
* L'action renvoi sur un affichage spécifique suivant le type de client
|
||||
*/
|
||||
public function validateAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
|
||||
//Validation en erreur
|
||||
|
||||
//Validation invalide
|
||||
|
||||
//Validation Ok => Comment afficher les particularités
|
||||
|
||||
}
|
||||
|
||||
}
|
@ -1,198 +0,0 @@
|
||||
<?php
|
||||
class BdfController extends Zend_Controller_Action
|
||||
{
|
||||
protected $theme;
|
||||
|
||||
/**
|
||||
* Logger
|
||||
* @var \Monolog\Logger
|
||||
*/
|
||||
protected $logger;
|
||||
|
||||
public function init()
|
||||
{
|
||||
if (Zend_Registry::isRegistered('logger')) {
|
||||
$this->logger = Zend_Registry::get('logger');
|
||||
}
|
||||
|
||||
// --- Theme
|
||||
$this->theme = Zend_Registry::get('theme');
|
||||
}
|
||||
|
||||
public function indexAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
|
||||
//Type de module
|
||||
$module = $request->getParam('module', '');
|
||||
$siret = $request->getParam('siret', '');
|
||||
$req = $request->getParam('req', '');
|
||||
$denom = $request->getParam('denom', '');
|
||||
$type = $request->getParam('type', '');
|
||||
$code = $request->getParam('code', '');
|
||||
$rechet = $request->getParam('rechet', '');
|
||||
$ape = $request->getParam('ape', '');
|
||||
$service = $request->getParam('service', '');
|
||||
|
||||
if ($siret != '' && $req != '' && substr($siret, 0, 9) != $req) {
|
||||
$siret = '';
|
||||
} else if (substr($siret, 0, 9) == $req || empty($req)) {
|
||||
$req = substr($siret, 0, 9);
|
||||
}
|
||||
|
||||
if (is_array($module)){
|
||||
$session = new Zend_Session_Namespace('BDF');
|
||||
$session->module = $module;
|
||||
}
|
||||
|
||||
//Titre
|
||||
$title = 'Banque De France - '.strtoupper($service);
|
||||
if ($siret == '') {
|
||||
$title .= ' - '.$req;
|
||||
} else {
|
||||
$title .= substr($siren,0,9);
|
||||
}
|
||||
$this->view->headTitle()->prepend('Banque de France - '.$titre);
|
||||
|
||||
|
||||
require_once 'Scores/Bdf.php';
|
||||
$bdf = new BDF();
|
||||
|
||||
$this->view->assign('siret', $siret);
|
||||
$this->view->assign('req', $req);
|
||||
$this->view->assign('module', $session->module);
|
||||
|
||||
//Liste module FIBEN
|
||||
$listModulesFiben = $bdf->bdf_modules_fiben();
|
||||
$this->view->assign('listModulesFiben', $listModulesFiben);
|
||||
|
||||
//Liste module FCC
|
||||
$listModulesFcc = $bdf->bdf_modules_fcc();
|
||||
$this->view->assign('listModulesFcc', $listModulesFcc);
|
||||
|
||||
}
|
||||
|
||||
public function moduleAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
|
||||
//Type de module
|
||||
$module = $request->getParam('bdfmodule', '');
|
||||
$siret = $request->getParam('siret', '');
|
||||
$req = $request->getParam('req', '');
|
||||
$denom = $request->getParam('denom', '');
|
||||
$type = $request->getParam('type', 'u');
|
||||
$code = $request->getParam('code', '');
|
||||
$rechet = $request->getParam('rechet', '');
|
||||
$ape = $request->getParam('ape', '');
|
||||
$service = $request->getParam('service', '');
|
||||
|
||||
if ($siret != '' && $req != '' && substr($siret, 0, 9) != $req) {
|
||||
$siret = '';
|
||||
} else if (substr($siret, 0, 9) == $req || empty($req)) {
|
||||
$req = substr($siret, 0, 9);
|
||||
}
|
||||
|
||||
$this->logger->info($module);
|
||||
|
||||
$content = array();
|
||||
|
||||
require_once 'Scores/Bdf.php';
|
||||
$bdf = new BDF();
|
||||
|
||||
//Mode multi module
|
||||
if ($type=='u') {
|
||||
if (is_array($module)) {
|
||||
foreach($module as $m) {
|
||||
if (array_key_exists($m, $bdf->bdf_modules_fiben())){
|
||||
$service = 'fiben';
|
||||
} elseif ($service=='ficp' && array_key_exists($m, $bdf->bdf_modules_ficp())){
|
||||
$service = 'ficp';
|
||||
} elseif (array_key_exists($m, $bdf->bdf_modules_fcc())){
|
||||
$service = 'fcc';
|
||||
}
|
||||
$func_module = 'bdf_modules_'.$service;
|
||||
$listModules = $bdf->{$func_module}();
|
||||
$retour['html'] = $bdf->displayModule($req, $m, $service, $listModules);
|
||||
$retour['titre'] = $req.' - Module '.$listModules[$m]['titre'];
|
||||
$content[] = $retour;
|
||||
}
|
||||
} else {
|
||||
if (array_key_exists($module, $bdf->bdf_modules_fiben())){
|
||||
$service = 'fiben';
|
||||
} elseif ($service=='ficp' && array_key_exists($module, $bdf->bdf_modules_ficp())){
|
||||
$service = 'ficp';
|
||||
} elseif (array_key_exists($module, $bdf->bdf_modules_fcc())){
|
||||
$service = 'fcc';
|
||||
}
|
||||
$func_module = 'bdf_modules_'.$service;
|
||||
$listModules = $bdf->{$func_module}();
|
||||
$content[]['html'] = $bdf->displayModule($req, $module, $service, $listModules);
|
||||
$content[]['titre'] = $req.' - Module '.$listModules[$module]['titre'];
|
||||
}
|
||||
}
|
||||
//Mode multi-identifiant
|
||||
elseif ($type=='m') {
|
||||
if (is_array($module))
|
||||
{
|
||||
foreach($module as $m)
|
||||
{
|
||||
if (array_key_exists($module, $bdf->bdf_modules_fiben())){
|
||||
$service = 'fiben';
|
||||
} elseif ($service=='ficp' && array_key_exists($module, $bdf->bdf_modules_ficp())){
|
||||
$service = 'ficp';
|
||||
} elseif (array_key_exists($module, $bdf->bdf_modules_fcc())){
|
||||
$service = 'fcc';
|
||||
}
|
||||
$func_module = 'bdf_modules_'.$service;
|
||||
$listModules = $bdf->{$func_module}();
|
||||
$content[]['html'] = $bdf->displayModule($req, $module, $service, $listModules);
|
||||
$content[]['titre'] = 'Module '.$listModules[$module]['titre'];
|
||||
}
|
||||
}
|
||||
}
|
||||
$this->view->assign('content', $content);
|
||||
}
|
||||
|
||||
public function module27Action()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$params['siret'] = $request->getParam('siret');
|
||||
$params['bdfmodule'] = array(27);
|
||||
$this->_forward('module', null, null, $params);
|
||||
}
|
||||
|
||||
public function module28Action()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$params['siret'] = $request->getParam('siret');
|
||||
$params['bdfmodule'] = array(28);
|
||||
$this->_forward('module', null, null, $params);
|
||||
}
|
||||
|
||||
public function module29Action()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$params['siret'] = $request->getParam('siret');
|
||||
$params['bdfmodule'] = array(29);
|
||||
$this->_forward('module', null, null, $params);
|
||||
}
|
||||
|
||||
public function module40Action()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$params['siret'] = $request->getParam('siret');
|
||||
$params['bdfmodule'] = array(40);
|
||||
$this->_forward('module', null, null, $params);
|
||||
}
|
||||
|
||||
public function module51Action()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$params['siret'] = $request->getParam('siret');
|
||||
$params['bdfmodule'] = array(51);
|
||||
$this->_forward('module', null, null, $params);
|
||||
}
|
||||
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -1,138 +0,0 @@
|
||||
<?php
|
||||
class DirigeantController extends Zend_Controller_Action
|
||||
{
|
||||
protected $theme;
|
||||
protected $siret;
|
||||
protected $id;
|
||||
|
||||
/**
|
||||
* Logger
|
||||
* @var \Monolog\Logger
|
||||
*/
|
||||
protected $logger;
|
||||
|
||||
public function init()
|
||||
{
|
||||
if (Zend_Registry::isRegistered('logger')) {
|
||||
$this->logger = Zend_Registry::get('logger');
|
||||
}
|
||||
|
||||
// --- Theme
|
||||
$this->theme = Zend_Registry::get('theme');
|
||||
|
||||
$request = $this->getRequest();
|
||||
$this->siret = $request->getParam('siret');
|
||||
$this->id = $request->getParam('id', 0);
|
||||
|
||||
require_once 'Scores/WsScores.php';
|
||||
}
|
||||
|
||||
/**
|
||||
* Affichage de la liste des dirigeants
|
||||
*/
|
||||
public function listeAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$autrePage = $this->getRequest()->getParam('apage');
|
||||
|
||||
$siren = substr($this->siret, 0, 9);
|
||||
|
||||
if (empty($autrePage)) {
|
||||
$this->view->headTitle()->prepend('Liste des dirigeants');
|
||||
$this->view->headTitle()->prepend('Siret '.$this->siret);
|
||||
}
|
||||
|
||||
$ws = new WsScores();
|
||||
$infos = $ws->getDirigeants($siren);
|
||||
|
||||
if ($infos === false){
|
||||
$this->forward('soap', 'error');
|
||||
}
|
||||
|
||||
$dirigeants = $infos->result->item;
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
$session = new Scores_Session_Entreprise($this->siret, $this->id);
|
||||
|
||||
if ($user->checkPerm('dirigeantsop')){
|
||||
$href = $this->view->url(array('controller'=>'dirigeant', 'action'=>'op', 'siret'=>$this->siret), 'default', true);
|
||||
$this->view->assign('dirigeantsop', $href);
|
||||
}
|
||||
|
||||
$this->view->assign('edition', $user->checkModeEdition());
|
||||
$this->view->assign('accessWorldCheck', $user->checkPerm('WORLDCHECK'));
|
||||
|
||||
$this->view->assign('siren', $siren);
|
||||
$this->view->assign('siret', $this->siret);
|
||||
$this->view->assign('raisonSociale', $session->getRaisonSociale());
|
||||
$this->view->assign('dirigeants', $dirigeants);
|
||||
$this->view->assign('exportObjet', $dirigeants);
|
||||
|
||||
$this->view->assign('AutrePage', $this->getRequest()->getParam('apage'));
|
||||
$this->view->assign('surveillance', $user->checkPerm('survdirigeants'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Affichage de l'historiques des dirigeants
|
||||
*/
|
||||
public function histoAction()
|
||||
{
|
||||
$siren = substr($this->siret, 0, 9);
|
||||
|
||||
$this->view->headTitle()->prepend('Historique des dirigeants');
|
||||
$this->view->headTitle()->prepend('Siret '.$this->siret);
|
||||
|
||||
$ws = new WsScores();
|
||||
$infos = $ws->getDirigeants($siren, true);
|
||||
|
||||
if ($infos === false){
|
||||
$this->_forward('soap', 'error');
|
||||
}
|
||||
|
||||
$dirigeants = $infos->result->item;
|
||||
|
||||
$session = new Scores_Session_Entreprise($this->siret, $this->id);
|
||||
|
||||
$this->view->assign('dirigeants', $dirigeants);
|
||||
$this->view->assign('exportObjet', $dirigeants);
|
||||
$this->view->assign('siren', $siren);
|
||||
$this->view->assign('siret', $this->siret);
|
||||
$this->view->assign('raisonSociale', $session->getRaisonSociale());
|
||||
$this->view->assign('infos', $infos);
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
$this->view->assign('surveillance', $user->checkPerm('survdirigeants'));
|
||||
}
|
||||
|
||||
public function opAction()
|
||||
{
|
||||
$siren = substr($this->siret, 0, 9);
|
||||
|
||||
$this->view->headTitle()->prepend('Liste des dirigeants opérationnels');
|
||||
$this->view->headTitle()->prepend('Siret '.$this->siret);
|
||||
|
||||
$ws = new WsScores();
|
||||
$infos = $ws->getDirigeantsOp($siren);
|
||||
|
||||
if ($infos === false){
|
||||
$this->_forward('soap', 'error');
|
||||
}
|
||||
|
||||
$dirigeants = $infos->item;
|
||||
|
||||
$session = new Scores_Session_Entreprise($this->siret, $this->id);
|
||||
|
||||
$this->view->assign('siren', $siren);
|
||||
$this->view->assign('siret', $this->siret);
|
||||
$this->view->assign('raisonSociale', $session->getRaisonSociale());
|
||||
$this->view->assign('dirigeants', $dirigeants);
|
||||
$this->view->assign('exportObjet', $dirigeants);
|
||||
|
||||
$this->view->assign('AutrePage', $this->getRequest()->getParam('apage'));
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
$this->view->assign('accessWorldCheck', $user->checkPerm('WORLDCHECK'));
|
||||
$this->view->assign('surveillance', $user->checkPerm('survdirigeants'));
|
||||
$this->view->assign('edition', $user->checkModeEdition());
|
||||
}
|
||||
}
|
@ -1,107 +0,0 @@
|
||||
<?php
|
||||
class ErrorController extends Zend_Controller_Action
|
||||
{
|
||||
protected $theme;
|
||||
|
||||
/**
|
||||
* Logger
|
||||
* @var \Monolog\Logger
|
||||
*/
|
||||
protected $logger;
|
||||
|
||||
public function init()
|
||||
{
|
||||
if (Zend_Registry::isRegistered('logger')) {
|
||||
$this->logger = Zend_Registry::get('logger');
|
||||
}
|
||||
|
||||
// --- Theme
|
||||
$this->theme = Zend_Registry::get('theme');
|
||||
}
|
||||
|
||||
public function errorAction()
|
||||
{
|
||||
$params = $this->getRequest()->getParams();
|
||||
$unknow = array('MSOffice', '_vti_bin', 'crossdomain.xml');
|
||||
if (in_array($params['controller'], $unknow)){
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$this->_helper->viewRenderer->setNoRender(true);
|
||||
echo '';
|
||||
} else {
|
||||
|
||||
$errors = $this->_getParam('error_handler');
|
||||
switch ($errors->type) {
|
||||
case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ROUTE:
|
||||
case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_CONTROLLER:
|
||||
case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ACTION:
|
||||
|
||||
// 404 error -- controller or action not found
|
||||
$this->getResponse()->setHttpResponseCode(404);
|
||||
$this->view->message = 'Page not found';
|
||||
break;
|
||||
|
||||
default:
|
||||
// application error
|
||||
$this->getResponse()->setHttpResponseCode(500);
|
||||
$this->view->message = 'Application error';
|
||||
break;
|
||||
}
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
|
||||
//Envoyer les erreurs par mail
|
||||
if (APPLICATION_ENV != 'development') {
|
||||
$message = '';
|
||||
$message.= 'Erreur Applicative : ';
|
||||
$message.= "\n";
|
||||
$message.= 'Message : '.$errors->exception->getMessage();
|
||||
$message.= "\n";
|
||||
$message.= 'Utilisateur : '.$user->getLogin();
|
||||
$message.= "\n";
|
||||
$message.= "File :".$errors->exception->getFile().", Ligne : ".$errors->exception->getLine();
|
||||
$message.= "\n";
|
||||
$message.= "Detail :\n".$errors->exception->getTraceAsString();
|
||||
$message.= "\n\n";
|
||||
$message.= "Request Parameters :\n ".print_r($this->getRequest()->getParams(), true)."\n";
|
||||
|
||||
$message.= "Referer : ".$_SERVER['HTTP_REFERER']."\n";
|
||||
|
||||
$c = Zend_Registry::get('config');
|
||||
$mail = new Scores_Mail_Method();
|
||||
$mail->setSubject('[ERREUR APPLICATIVE] - '.$c->profil->server->name.' -'.date('Ymd'));
|
||||
$mail->setBodyText($message);
|
||||
$mail->setFromKey('support');
|
||||
$mail->addToKey('supportdev');
|
||||
$mail->execute();
|
||||
}
|
||||
// Log exception, if logger available
|
||||
if ($log = $this->getLog()) {
|
||||
$log->crit($this->view->message, $errors->exception);
|
||||
}
|
||||
|
||||
// conditionally display exceptions
|
||||
if ($this->getInvokeArg('displayExceptions') == true) {
|
||||
$this->view->exception = $errors->exception;
|
||||
}
|
||||
|
||||
$this->view->request = $errors->request;
|
||||
}
|
||||
}
|
||||
|
||||
public function soapAction(){}
|
||||
|
||||
public function permsAction(){}
|
||||
|
||||
public function paramsAction(){}
|
||||
|
||||
public function getLog()
|
||||
{
|
||||
$bootstrap = $this->getInvokeArg('bootstrap');
|
||||
if (!$bootstrap->hasPluginResource('Log')) {
|
||||
return false;
|
||||
}
|
||||
$log = $bootstrap->getResource('Log');
|
||||
return $log;
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,447 +0,0 @@
|
||||
<?php
|
||||
require_once 'Giant/WSgiant.php';
|
||||
require_once 'Giant/Controllers.lib.php';
|
||||
require_once 'Giant/RequestDatabase.lib.php';
|
||||
require_once 'Giant/Functions.lib.php';
|
||||
|
||||
class GiantController extends Zend_Controller_Action
|
||||
{
|
||||
protected $theme;
|
||||
protected $TestIndication = false;
|
||||
protected $config = array();
|
||||
|
||||
protected $TestCompanies = array(
|
||||
'BE' => array(
|
||||
'0439546194', '0436576412', '0430459076', '0430000604', '0404869783', '0404869783',
|
||||
'0406952018'
|
||||
),
|
||||
'ES' => array(
|
||||
'A00000000', 'A80192727'
|
||||
),
|
||||
'GB' => array(
|
||||
'00000086', '00082932', '98888888', '214436', '1777777', '991581', '1800000'
|
||||
),
|
||||
'NL' => array(
|
||||
'533885', '1383988', '1383989', '891962239', '891974008', '892130032', '896614719',
|
||||
'896614735', '896614735', '896615243'
|
||||
),
|
||||
'FR' => array(
|
||||
'55214450300018', '49496793800031', '47997411500012', '48765114300017',
|
||||
'43235433000040', '39435613300022', '39504742600014', '76980020200020',
|
||||
'35379698000020', '56202109700018', '70204756400068', '70204756400068'
|
||||
),
|
||||
);
|
||||
|
||||
protected $Companies = array(
|
||||
'FR' =>'France',
|
||||
'BE' => 'Belgium',
|
||||
'ES' => 'Spain',
|
||||
'GB' => 'United Kingdom',
|
||||
'NL' => 'The Netherlands',
|
||||
);
|
||||
|
||||
/**
|
||||
* Logger
|
||||
* @var \Monolog\Logger
|
||||
*/
|
||||
protected $logger;
|
||||
|
||||
public function init()
|
||||
{
|
||||
if (Zend_Registry::isRegistered('logger')) {
|
||||
$this->logger = Zend_Registry::get('logger');
|
||||
}
|
||||
|
||||
// --- Theme
|
||||
$this->theme = Zend_Registry::get('theme');
|
||||
|
||||
$this->view->headLink()->appendStylesheet($this->theme->pathStyle.'/giant.css', 'all');
|
||||
$this->view->headScript()->appendFile($this->theme->pathScript.'/giant.js', 'text/javascript');
|
||||
$this->view->debug = false;
|
||||
$this->config = new Zend_Config_Ini( APPLICATION_PATH.'/../library/Giant/giant.ini' );
|
||||
$this->TestIndication = $this->config->test->TestIndication;
|
||||
}
|
||||
|
||||
public function searchAction()
|
||||
{
|
||||
$user = new Scores_Utilisateur();
|
||||
$params = $this->getRequest()->getParams();
|
||||
$search = new GiantRechercheController($params['pays'], $this->TestIndication);
|
||||
$result = $search->Liste($params, $this->getRequest()->getParam('page'));
|
||||
$this->view->TestIndication= $this->TestIndication;
|
||||
$this->view->TestCompanies = $this->TestCompanies[$params['pays']];
|
||||
$this->view->label = $search->getObjet()->getLabelDesc();
|
||||
$this->view->labelResults = $search->getObjet()->getLabelResults();
|
||||
$this->view->pays = $params['pays'];
|
||||
$this->view->currentPage = $search->getObjet()->getCurrentPage();
|
||||
$this->view->userMaxResult = $user->getNbRep();
|
||||
$this->view->resultats = $result;
|
||||
$this->view->page = $this->getRequest()->getParam('page');
|
||||
$this->view->referer = $search->getObjet()->getQuery();
|
||||
$this->view->lienReferer = $search->getQueryLink($params);
|
||||
if($this->view->debug)
|
||||
$this->view->soap = $search->soapG;
|
||||
}
|
||||
|
||||
public function identiteAction()
|
||||
{
|
||||
$rechercheParams = new Scores_Session_Recherche();
|
||||
$giantFunction = new GiantFunction();
|
||||
$test = $this->getRequest()->getParam('test');
|
||||
if($test == true){
|
||||
$this->TestIndication = true;
|
||||
}
|
||||
if (count($rechercheParams->liste()) > 0)
|
||||
{
|
||||
$recherche = $rechercheParams->item(0);
|
||||
$type = $recherche['type'];
|
||||
$params = $recherche['params'];
|
||||
}
|
||||
$Commande = new Commandes();
|
||||
$user = new Scores_Utilisateur();
|
||||
$listeCommandes = $Commande->getCommandesByLogin($user->getLogin());
|
||||
$total = 0;
|
||||
$liste = $giantFunction->divCommande($listeCommandes, $total);
|
||||
$ListeRapport = new GiantRechercheController($params['pays'], $this->TestIndication);
|
||||
$giantController = new GiantControllerLib($this->getRequest()->getParam('CompanyId'));
|
||||
$result = $giantController->commandePays($this->getRequest()->getParam('CompanyId'),$params['pays'], $this->TestIndication);
|
||||
$this->view->TestIndication = $this->TestIndication;
|
||||
$this->view->total = $total;
|
||||
$this->view->listeCommandes = $liste;
|
||||
$this->view->modification = (isset($result->MonitoringOptions))?($ListeRapport->getModification($result->MonitoringOptions->MonitoringOption[0])):null;
|
||||
$this->view->description = $ListeRapport->getDescription();
|
||||
$this->view->raisonSociale = $this->getRequest()->getParam('raisonSociale');
|
||||
$this->view->listeRapport = $result;
|
||||
$this->view->telephone = $this->getRequest()->getParam('telephone');
|
||||
$this->view->CompanyId = $this->getRequest()->getParam('CompanyId');
|
||||
$this->view->raisonSociale = $this->getRequest()->getParam('raisonSociale');
|
||||
$this->view->CompanyRegisterNumber = $this->getRequest()->getParam('CompanyRegisterNumber');
|
||||
$this->view->Pays = $this->getRequest()->getParam('Pays');
|
||||
$this->view->Adresse = explode(':', $this->getRequest()->getParam('Adresse'));
|
||||
if($this->view->debug)
|
||||
$this->view->soap = $ListeRapport->soapG;
|
||||
}
|
||||
|
||||
public function creditrecommendationAction()
|
||||
{
|
||||
$test = $this->getRequest()->getParam('test');
|
||||
if($test == true){
|
||||
$this->TestIndication = true;
|
||||
}
|
||||
$giantController = new GiantControllerLib($this->getRequest()->getParam('CompanyId'));
|
||||
$id = $giantController->commande($this->getRequest()->getParam('CompanyId'),
|
||||
$this->getRequest()->getParam('Type'),
|
||||
$this->getRequest()->getParam('Pays'),
|
||||
$this->getRequest()->getParam('Language'),
|
||||
$this->TestIndication
|
||||
);
|
||||
$creditrecommendationAction = array('getAvisDeCredit' => 'CreditRecommendation');
|
||||
$creditrecommendation = unserialize(base64_decode($id));
|
||||
$identiteController = new GiantIdentiteController($creditrecommendation);
|
||||
$giantConstroller = new GiantControllerLib($this->getRequest()->getParam('CompanyId').'-'.$this->getRequest()->getParam('Type'));
|
||||
$identiteController->ficheAction();
|
||||
$fiche = $identiteController->getObjet('fiche');
|
||||
|
||||
foreach($creditrecommendationAction as $action => $val) {
|
||||
if(isset($creditrecommendation->DataSet->Company->$val)) {
|
||||
$creditrecommendation = $giantConstroller->$action($creditrecommendation);
|
||||
}
|
||||
}
|
||||
$fiche = $giantConstroller->getInformationGenerale($creditrecommendation);
|
||||
$this->view->carte = $this->getRequest()->getParam('Pays');
|
||||
$this->view->reportType = $this->getRequest()->getParam('Type');
|
||||
$this->view->report = $fiche;
|
||||
$this->view->Type = $this->getRequest()->getParam('Type');
|
||||
$this->view->assign('exportObjet', $creditrecommendation);
|
||||
}
|
||||
|
||||
public function compactAction()
|
||||
{
|
||||
$test = $this->getRequest()->getParam('test');
|
||||
if($test == true){
|
||||
$this->TestIndication = true;
|
||||
}
|
||||
$giantController = new GiantControllerLib($this->getRequest()->getParam('CompanyId'));
|
||||
$id = $giantController->commande($this->getRequest()->getParam('CompanyId'),
|
||||
$this->getRequest()->getParam('Type'),
|
||||
$this->getRequest()->getParam('Pays'),
|
||||
$this->getRequest()->getParam('Language'),
|
||||
$this->TestIndication
|
||||
);
|
||||
$compactAction = array('getAvisDeCredit' => 'CreditRecommendation', 'getPositionFinanciere' => 'FinancialSummary',
|
||||
'getStructureEntreprise' => 'Associated', 'getDirigeant' => 'Position'
|
||||
);
|
||||
$compact = unserialize(base64_decode($id));
|
||||
$identiteController = new GiantIdentiteController($compact);
|
||||
$giantConstroller = new GiantControllerLib($this->getRequest()->getParam('CompanyId').'-'.$this->getRequest()->getParam('Type'));
|
||||
$identiteController->ficheAction();
|
||||
$fiche = $identiteController->getObjet('fiche');
|
||||
foreach($compactAction as $action => $val) {
|
||||
if(isset($compact->DataSet->Company->$val)) {
|
||||
$compact = $giantConstroller->$action($compact);
|
||||
}
|
||||
}
|
||||
$fiche = $giantConstroller->getInformationGenerale($compact);
|
||||
$this->view->carte = $this->getRequest()->getParam('Pays');
|
||||
$this->view->reportType = $this->getRequest()->getParam('Type');
|
||||
$this->view->report = $fiche;
|
||||
$this->view->Type = $this->getRequest()->getParam('Type');
|
||||
$this->view->assign('exportObjet', $compact);
|
||||
}
|
||||
|
||||
public function fullAction()
|
||||
{
|
||||
$test = $this->getRequest()->getParam('test');
|
||||
if($test == true){
|
||||
$this->TestIndication = true;
|
||||
}
|
||||
$giantController = new GiantControllerLib($this->getRequest()->getParam('CompanyId').'-'.$this->getRequest()->getParam('Type'));
|
||||
$id = $giantController->commande($this->getRequest()->getParam('CompanyId'),
|
||||
$this->getRequest()->getParam('Type'),
|
||||
$this->getRequest()->getParam('Pays'),
|
||||
$this->getRequest()->getParam('Language'),
|
||||
$this->TestIndication
|
||||
);
|
||||
$fullAction = array('getAvisDeCredit' => 'CreditRecommendation', 'getComptesAnnuels' => 'AnnualAccounts', 'getPositionFinanciere' => 'FinancialSummary',
|
||||
'getComportementPaiement' => 'PaymentBehaviour', 'getStructureEntreprise' => 'Associated', 'getDirigeant' => 'Position',
|
||||
'getComparaisonValeurs'=> 'PeerGroup', 'getHistoriques' => 'Event'
|
||||
);
|
||||
$full = unserialize(base64_decode($id));
|
||||
$full->DataSet->Company->CompanyId= $this->getRequest()->getParam('CompanyId');
|
||||
$identiteController = new GiantIdentiteController($full);
|
||||
$giantConstroller = new GiantControllerLib($this->getRequest()->getParam('CompanyId').'-'.$this->getRequest()->getParam('Type'));
|
||||
$identiteController->ficheAction();
|
||||
$fiche = $identiteController->getObjet('fiche');
|
||||
|
||||
foreach($fullAction as $action => $val) {
|
||||
if(isset($full->DataSet->Company->$val))
|
||||
$full = $giantConstroller->$action($full);
|
||||
}
|
||||
$fiche = $giantConstroller->getInformationGenerale($full);
|
||||
$this->view->carte = $this->getRequest()->getParam('Pays');
|
||||
$this->view->reportType = $this->getRequest()->getParam('Type');
|
||||
$this->view->report = $fiche;
|
||||
$this->view->Type = $this->getRequest()->getParam('Type');
|
||||
$this->view->assign('exportObjet', $full);
|
||||
}
|
||||
|
||||
public function getForm()
|
||||
{
|
||||
$form = new Zend_Form();
|
||||
$form->setMethod('post')
|
||||
->setAction('investigation');
|
||||
|
||||
$reference = $form->createElement('text', 'reference', array('label' => 'Votre Reference'));
|
||||
$reference->setRequired(true);
|
||||
$elements[] = $reference;
|
||||
|
||||
$telephone = $form->createElement('text', 'telephone', array('label' => 'Votre téléphone'));
|
||||
$telephone->setRequired(true);
|
||||
$elements[] = $telephone;
|
||||
|
||||
$mail = $form->createElement('text', 'mail', array('label' => 'Adresse Email'));
|
||||
$mail->setRequired(true);
|
||||
$elements[] = $mail;
|
||||
|
||||
$elements[] = $form->createElement('textarea', 'remarque', array('label' => 'Remarque ou commentaire à destination de l\'enquêteur :'));
|
||||
$elements[] = $form->createElement('text', 'domiciliation', array('label' => 'Domiciliation Bancaire :'));
|
||||
$elements[] = $form->createElement('text', 'Encours', array('label' => 'Encours demandé :'));
|
||||
$elements[] = $form->createElement('text', 'nbEcheance', array('label' => 'Nombre d\'échéances :'));
|
||||
|
||||
$form->addElements($elements)
|
||||
->addElement('submit', 'Envoyer', array('label' => 'Envoyer'));
|
||||
return ($form);
|
||||
}
|
||||
|
||||
public function investigationAction()
|
||||
{
|
||||
|
||||
if($this->getRequest()->isPost()) {
|
||||
$data = $this->getRequest()->getPost();
|
||||
if($this->getForm()->isValid($data))
|
||||
$this->view->form = $this->getRequest()->getParam('reference');
|
||||
else {
|
||||
return ($this->view->form = $this->getForm());
|
||||
}
|
||||
} else
|
||||
$this->view->form = $this->getForm();
|
||||
}
|
||||
public function startmonitoringAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$this->view->headLink()->appendStylesheet($this->theme->pathStyle.'/giant.css', 'all');
|
||||
$this->view->headScript()->appendFile($this->theme->pathScript.'/giant.js', 'text/javascript');
|
||||
$this->view->lang = $this->getRequest()->getParam('lang');
|
||||
$this->view->CompanyId = $this->getRequest()->getParam('CompanyId');
|
||||
$this->view->Pays = $this->getRequest()->getParam('Pays');
|
||||
$this->view->CompanyName = $this->getRequest()->getParam('CompanyName');
|
||||
$this->view->action = $this->getRequest()->getParam('action');
|
||||
$this->view->values = $this->getRequest()->getParams();
|
||||
$result = new GiantControllerLib();
|
||||
foreach($this->Companies as $key=>$pays){
|
||||
if(($value = $result->getCache($key)) === false || empty($value->MonitoringOptions->MonitoringOption[0]->LanguageCodes->LanguageCode)) {
|
||||
unset($this->Companies[$key]);
|
||||
}
|
||||
}
|
||||
$this->view->countries = $this->Companies;
|
||||
if ($this->getRequest()->isPost()) {
|
||||
$giantController = new GiantControllerLib($this->getRequest()->getParam('CompanyId'));
|
||||
$result = $giantController->startmonitoring($this->getRequest()->getParam('CompanyId'),
|
||||
$this->getRequest()->getParam('CategoryName'),
|
||||
$this->getRequest()->getParam('EventType'),
|
||||
$this->getRequest()->getParam('StartDate'),
|
||||
$this->getRequest()->getParam('EndDate'),
|
||||
$this->getRequest()->getParam('Version'),
|
||||
$this->getRequest()->getParam('LanguageCode'),
|
||||
$this->getRequest()->getParam('Pays'),
|
||||
$this->TestIndication,
|
||||
$this->getRequest()->getParam('CompanyName')
|
||||
);
|
||||
$this->view->result = $result;
|
||||
}
|
||||
|
||||
}
|
||||
public function stopmonitoringAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$this->view->headLink()->appendStylesheet($this->theme->pathStyle.'/giant.css', 'all');
|
||||
$this->view->CompanyId = $this->getRequest()->getParam('CompanyId');
|
||||
$this->view->InternalOrderId = $this->getRequest()->getParam('InternalOrderId');
|
||||
$this->view->Pays = $this->getRequest()->getParam('Pays');
|
||||
$this->view->InternalOrderId = $this->getRequest()->getParam('InternalOrderId');
|
||||
$this->view->CompanyName = $this->getRequest()->getParam('CompanyName');
|
||||
$this->view->action = $this->getRequest()->getParam('action');
|
||||
$this->view->values = $this->getRequest()->getParams();
|
||||
|
||||
if ($this->getRequest()->isPost()) {
|
||||
$giantController = new GiantControllerLib($this->getRequest()->getParam('CompanyId'));
|
||||
$result = $giantController->stopmonitoring($this->getRequest()->getParam('CompanyId'),
|
||||
$this->getRequest()->getParam('EndDate'),
|
||||
$this->getRequest()->getParam('InternalOrderId'),
|
||||
$this->getRequest()->getParam('Pays'),
|
||||
$this->TestIndication
|
||||
);
|
||||
$this->view->result = $result;
|
||||
}
|
||||
}
|
||||
public function updatemonitoringAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$this->view->headLink()->appendStylesheet($this->theme->pathStyle.'/giant.css', 'all');
|
||||
$this->view->lang = $this->getRequest()->getParam('lang');
|
||||
$this->view->CompanyId = $this->getRequest()->getParam('CompanyId');
|
||||
$this->view->InternalOrderId = $this->getRequest()->getParam('InternalOrderId');
|
||||
$this->view->Pays = $this->getRequest()->getParam('Pays');
|
||||
$this->view->CompanyName = $this->getRequest()->getParam('CompanyName');
|
||||
$this->view->action = $this->getRequest()->getParam('action');
|
||||
$this->view->values = $this->getRequest()->getParams();
|
||||
|
||||
if ($this->getRequest()->isPost()) {
|
||||
$giantController = new GiantControllerLib($this->getRequest()->getParam('CompanyId'));
|
||||
$result = $giantController->updatemonitoring($this->getRequest()->getParam('CompanyId'),
|
||||
$this->getRequest()->getParam('InternalOrderId'),
|
||||
$this->getRequest()->getParam('CategoryName'),
|
||||
$this->getRequest()->getParam('EventType'),
|
||||
$this->getRequest()->getParam('StartDate'),
|
||||
$this->getRequest()->getParam('Version'),
|
||||
$this->getRequest()->getParam('LanguageCode'),
|
||||
$this->getRequest()->getParam('Pays'),
|
||||
$this->TestIndication
|
||||
);
|
||||
$this->view->result = $result;
|
||||
}
|
||||
|
||||
}
|
||||
public function retriveAction()
|
||||
{
|
||||
$this->view->headScript()->appendFile($this->theme->pathScript.'/giant_monitoring.js', 'text/javascript');
|
||||
$giantController = new GiantControllerLib();
|
||||
$auth = Zend_Auth::getInstance();
|
||||
if ( $auth->hasIdentity() ) {
|
||||
$identity = $auth->getIdentity();
|
||||
}
|
||||
$result = $auth->getStorage()->read($identity);
|
||||
if(!empty($result->result->mon_result)){
|
||||
$result = $result->result->mon_result;
|
||||
}
|
||||
else{
|
||||
$result = $giantController->retrive(1,$this->TestIndication,'RetrieveMonitoringEventsForCustomer');
|
||||
$sess = new stdClass();
|
||||
$sess->mon_result = $result;
|
||||
$identity->result = $sess;
|
||||
$auth->getStorage()->write($identity);
|
||||
}
|
||||
$resultDB = $giantController->retrivDB();
|
||||
$this->view->resultDB = $resultDB;
|
||||
$this->view->result = $result;
|
||||
$merged =Array();
|
||||
foreach ($result->MonitoringEvents->MonitoringEvent as $MonitoringEvent):
|
||||
if ($merged[$MonitoringEvent->ProviderOrderId]){
|
||||
array_push($merged[$MonitoringEvent->ProviderOrderId],$MonitoringEvent) ;
|
||||
} else {
|
||||
$merged[$MonitoringEvent->ProviderOrderId][]=$MonitoringEvent;
|
||||
}
|
||||
endforeach;
|
||||
$this->view->val = $merged;
|
||||
|
||||
$merged_siren =Array();
|
||||
foreach ($result->MonitoringEvents->MonitoringEvent as $MonitoringEvent):
|
||||
if ($merged_siren[$MonitoringEvent->Company->CompanyId]){
|
||||
array_push($merged_siren[$MonitoringEvent->Company->CompanyId],$MonitoringEvent) ;
|
||||
} else {
|
||||
$merged_siren[$MonitoringEvent->Company->CompanyId][]=$MonitoringEvent;
|
||||
}
|
||||
endforeach;
|
||||
$this->view->val_siren = $merged_siren;
|
||||
|
||||
|
||||
}
|
||||
public function retAction()
|
||||
{
|
||||
$giantController = new GiantControllerLib();
|
||||
$resultDB = $giantController->retrivDB($this->getRequest()->getParam('date_st'));
|
||||
print_r(serialize($resultDB[0]));
|
||||
}
|
||||
public function getpaysAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$pays = $this->getRequest()->getParam('Pays');
|
||||
$result = new GiantControllerLib();
|
||||
if(($value = $result->getCache($pays)) === false || empty($value->MonitoringOptions->MonitoringOption[0]->LanguageCodes->LanguageCode)) {
|
||||
print_r(array('no'));
|
||||
}
|
||||
else {
|
||||
print_r(json_encode($value->MonitoringOptions->MonitoringOption[0]->LanguageCodes->LanguageCode));
|
||||
}
|
||||
}
|
||||
public function reteventsAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$this->view->headScript()->appendFile($this->theme->pathScript.'/giant_monitoring.js', 'text/javascript');
|
||||
$this->view->headScript()->appendFile($this->theme->pathScript.'/giant.js', 'text/javascript');
|
||||
$auth = Zend_Auth::getInstance();
|
||||
$identity = $auth->getIdentity();
|
||||
$result = $auth->getStorage()->read($identity);
|
||||
$result = $result->result->mon_result;
|
||||
$merged_siren = Array();
|
||||
foreach ($result->MonitoringEvents->MonitoringEvent as $MonitoringEvent):
|
||||
if ($merged_siren[$MonitoringEvent->Company->CompanyId]){
|
||||
array_push($merged_siren[$MonitoringEvent->Company->Event[0]->EventCode],$MonitoringEvent) ;
|
||||
} else {
|
||||
$merged_siren[$MonitoringEvent->Company->Event[0]->EventCode][]=$MonitoringEvent;
|
||||
}
|
||||
endforeach;
|
||||
$type = $this->getRequest()->getParam('Type');
|
||||
$id = $this->getRequest()->getParam('Id');
|
||||
|
||||
$merged = Array();
|
||||
foreach ($merged_siren[$type] as $MonitoringEvent):
|
||||
if ($merged[$MonitoringEvent->ProviderOrderId]){
|
||||
array_push($merged[$MonitoringEvent->ProviderOrderId],$MonitoringEvent) ;
|
||||
} else {
|
||||
$merged[$MonitoringEvent->ProviderOrderId][]=$MonitoringEvent;
|
||||
}
|
||||
endforeach;
|
||||
$this->view->result = $merged[$id];
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -1,131 +0,0 @@
|
||||
<?php
|
||||
class IndexController extends Zend_Controller_Action
|
||||
{
|
||||
protected $theme;
|
||||
|
||||
/**
|
||||
* Logger
|
||||
* @var \Monolog\Logger
|
||||
*/
|
||||
protected $logger;
|
||||
|
||||
public function init()
|
||||
{
|
||||
if (Zend_Registry::isRegistered('logger')) {
|
||||
$this->logger = Zend_Registry::get('logger');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Page d'accueil et de redirection
|
||||
*/
|
||||
public function indexAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$page = $request->getParam('page');
|
||||
if ($page == 'annonces')
|
||||
{
|
||||
$siret = $request->getParam('siret');
|
||||
$source = $request->getParam('source');
|
||||
$idAnn = $request->getParam('idAnn');
|
||||
$lien = '/juridique/annonces/siret/'.$siret;
|
||||
if (!empty($source)) $lien.= '/source/'.$source;
|
||||
if (!empty($idAnn)) $lien.= '/idAnn/'.$idAnn;
|
||||
$this->_redirect($lien);
|
||||
}
|
||||
elseif ( Zend_Registry::get('theme')->name=='mobile' )
|
||||
{
|
||||
//Afficher le menu pour la version mobile
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->_forward('entreprise', 'recherche');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Retourne l'url pour le csv d'export du portefeuille
|
||||
*/
|
||||
public function portefeuillecsvAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$this->_helper->viewRenderer->setNoRender(true);
|
||||
|
||||
//'login' and 'hach' detecte from AuthAdapter
|
||||
|
||||
$request = $this->getRequest();
|
||||
$version = $request->getParam('v', 1);
|
||||
|
||||
if (intval($version) == 2) {
|
||||
|
||||
$log = Zend_Registry::get('config')->profil->path->shared.'/log/altisys.log';
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
$login = $user->getLogin();
|
||||
$idClient = $user->getIdClient();
|
||||
|
||||
$file = 'listesurv-score-'.$login.'-'.$idClient.'.csv';
|
||||
|
||||
$content_type = 'application/csv-tab-delimited-table';
|
||||
$c = Zend_Registry::get('config');
|
||||
$path = $c->profil->path->shared.'/files/';
|
||||
//Envoi du fichier sur la sortie standard
|
||||
if ( file_exists($path.$file) ) {
|
||||
header('Content-Transfer-Encoding: none');
|
||||
header('Content-type: ' . $content_type.'');
|
||||
header('Content-Length: ' . filesize($path.$file));
|
||||
header('Content-MD5: ' . base64_encode(md5_file($path.$file)));
|
||||
header('Content-Disposition: filename="' . basename($path.$file) . '"');
|
||||
header('Cache-Control: private, max-age=0, must-revalidate');
|
||||
header('Pragma: public');
|
||||
ini_set('zlib.output_compression', '0');
|
||||
echo file_get_contents($path.$file);
|
||||
file_put_contents($log, date('Y-m-d H:i:s')." APPEL ALTISYS - OK $file\n", FILE_APPEND);
|
||||
} else {
|
||||
echo 'Impossible de charger le fichier.';
|
||||
file_put_contents($log, date('Y-m-d H:i:s')." APPEL ALTISYS - ERREUR $file\n", FILE_APPEND);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
require_once 'Scores/WsScores.php';
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
$login = $user->getLogin();
|
||||
$idClient = $user->getIdClient();
|
||||
|
||||
$ws = new WsScores();
|
||||
$reponse = $ws->getPortefeuilleCsv($login, $idClient);
|
||||
|
||||
$log = Zend_Registry::get('config')->profil->path->shared.'/log/altisys.log';
|
||||
|
||||
if ($reponse === false){
|
||||
file_put_contents($log, date('Y-m-d H:i:s')." - URL = ERREUR\n", FILE_APPEND);
|
||||
echo "Erreur";
|
||||
} elseif (!empty($reponse->result->Url)) {
|
||||
file_put_contents($log, date('Y-m-d H:i:s')." - URL = ".$reponse->result->Url."\n", FILE_APPEND);
|
||||
echo $reponse->result->Url;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public function odeaAction()
|
||||
{
|
||||
$this->redirect('http://odea.scores-decisions.com');
|
||||
}
|
||||
|
||||
/**
|
||||
* Display browser agent
|
||||
*/
|
||||
public function browserAction()
|
||||
{
|
||||
$info = get_browser();
|
||||
echo $_SERVER['HTTP_USER_AGENT'];
|
||||
echo "<pre>";
|
||||
print_r($info);
|
||||
echo "</pre>";
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
@ -1,701 +0,0 @@
|
||||
<?php
|
||||
class JuridiqueController extends Zend_Controller_Action
|
||||
{
|
||||
protected $theme;
|
||||
protected $siret = null;
|
||||
protected $id = 0;
|
||||
|
||||
/**
|
||||
* Logger
|
||||
* @var \Monolog\Logger
|
||||
*/
|
||||
protected $logger;
|
||||
|
||||
public function init()
|
||||
{
|
||||
if (Zend_Registry::isRegistered('logger')) {
|
||||
$this->logger = Zend_Registry::get('logger');
|
||||
}
|
||||
|
||||
// --- Theme
|
||||
$this->theme = Zend_Registry::get('theme');
|
||||
|
||||
$request = $this->getRequest();
|
||||
$this->siret = $request->getParam('siret');
|
||||
$this->id = $request->getParam('id', 0);
|
||||
|
||||
require_once 'Scores/WsScores.php';
|
||||
}
|
||||
|
||||
/**
|
||||
* Affichage de la liste des annonces ou d'une annonce
|
||||
*/
|
||||
public function annoncesAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
|
||||
$autrePage = $request->getParam('apage');
|
||||
|
||||
$idAnn = $request->getParam('idAnn', null);
|
||||
$siren = substr($this->siret, 0,9);
|
||||
|
||||
$vue = $request->getParam('vue', 'bodacc');
|
||||
$source = $request->getParam('source');
|
||||
if (!empty($source)) {
|
||||
switch ($source){
|
||||
case 1: $vue = 'bodacc'; break;
|
||||
case 2: $vue = 'balo'; break;
|
||||
case 3: $vue = 'asso'; break;
|
||||
}
|
||||
}
|
||||
$session = new Scores_Session_Entreprise($this->siret, $this->id);
|
||||
$fj = $session->getFormeJuridique();
|
||||
if ($fj > 9000 && $fj < 9999 && intval($siren) == 0) {
|
||||
$vue = 'asso';
|
||||
}
|
||||
|
||||
$this->view->assign('id', $session->getId());
|
||||
$this->view->assign('siren', $siren);
|
||||
$this->view->assign('siret', $this->siret);
|
||||
$this->view->assign('raisonSociale', $session->getRaisonSociale());
|
||||
$this->view->assign('AutrePage', $autrePage);
|
||||
|
||||
if ($session->getSource() == '006' || $session->getSourceId() == '007') {
|
||||
$this->view->assign('AutreSource', true);
|
||||
} else {
|
||||
$this->view->assign('vue', $vue);
|
||||
|
||||
// Pagination
|
||||
$page = $request->getParam('page', 1);
|
||||
if ($page <= 0) {
|
||||
$page = 1;
|
||||
}
|
||||
$nbAffichage = 20;
|
||||
$position = ($page - 1) * $nbAffichage;
|
||||
|
||||
$ws = new WsScores();
|
||||
switch ($vue) {
|
||||
case 'balo':
|
||||
$infos = $ws->getAnnoncesBalo($siren, $idAnn, null, $position, $nbAffichage);
|
||||
break;
|
||||
case 'asso':
|
||||
if (intval($siren) == 0 && substr($session->getAutreId(),0,1) == 'W') {
|
||||
$infos = $ws->getAnnoncesAsso($session->getAutreId(), $idAnn, null, $position, $nbAffichage);
|
||||
} elseif (intval($siren) != 0) {
|
||||
$infos = $ws->getAnnoncesAsso($siren, $idAnn, null, $position, $nbAffichage);
|
||||
} else {
|
||||
$idAnn = $session->getSourceId();
|
||||
$this->redirect($this->view->url(array('controller'=>'juridique',
|
||||
'action'=>'annonce', 'siret'=>$this->siret, 'id'=>$this->id,
|
||||
'idAnn'=>$idAnn, 'vue'=>$vue), 'default', true));
|
||||
}
|
||||
break;
|
||||
case 'bomp':
|
||||
$filtre = $request->getParam('filtre', 'A');
|
||||
$this->view->assign('filtre', $filtre);
|
||||
$this->logger->info("getAnnoncesBoamp");
|
||||
$infos = $ws->getAnnoncesBoamp($siren, $idAnn, $filtre, $position, $nbAffichage);
|
||||
break;
|
||||
case 'bodacc':
|
||||
case 'abod':
|
||||
default:
|
||||
if(intval($siren) == 0) {
|
||||
$idAnn = $session->getSourceId();
|
||||
$this->redirect($this->view->url(array('controller'=>'juridique',
|
||||
'action'=>'annonce', 'siret'=>$this->siret, 'id'=>$this->id,
|
||||
'idAnn'=>$idAnn, 'vue'=>$vue), 'default', true));
|
||||
}
|
||||
$infos = $ws->getAnnoncesLegales($siren, $idAnn, null, $position, $nbAffichage);
|
||||
break;
|
||||
}
|
||||
$this->logger->info(print_r($infos,1));
|
||||
if ($infos === false) {
|
||||
$this->forward('soap', 'error');
|
||||
}
|
||||
|
||||
require_once 'Scores/Annonces.php';
|
||||
$objAnnonces = new Annonces($infos->result->item);
|
||||
|
||||
$typeAnnonces = array(
|
||||
'Bodacc',
|
||||
'Balo',
|
||||
'Bomp',
|
||||
'Asso',
|
||||
);
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
$this->view->assign('hasModeEdition', $user->checkModeEdition());
|
||||
$this->view->assign('exportObjet', $infos);
|
||||
$this->view->assign('surveillance', $user->checkPerm('survannonce'));
|
||||
|
||||
// --- Titre de la page
|
||||
if ( empty($autrePage) ) {
|
||||
if( empty($siren) ){
|
||||
$titre = 'Identifiant '.$this->id;
|
||||
} else {
|
||||
$titre = 'Siret '.$siren;
|
||||
}
|
||||
$this->view->headTitle()->prepend('Annonces Légales - '.$titre);
|
||||
}
|
||||
|
||||
// ---- Calcul pagination
|
||||
$nbReponses = count($infos->result->item);
|
||||
$nbReponsesTotal = $infos->nbReponses;
|
||||
if ($nbReponses < $nbReponsesTotal) {
|
||||
$pageTotal = ceil( $nbReponsesTotal / $nbAffichage );
|
||||
$pageCurrent = $page;
|
||||
$pagePrev = $page - 1;
|
||||
if ($pagePrev < 1) {
|
||||
$pagePrev = 1;
|
||||
}
|
||||
$pageNext = $page + 1;
|
||||
if( $pageNext > $pageTotal ) {
|
||||
$pageNext = $pageTotal;
|
||||
}
|
||||
} else {
|
||||
$pageTotal = $pageCurrent = 1;
|
||||
$pagePrev = 1;
|
||||
$pageNext = 1;
|
||||
}
|
||||
$this->view->assign('PageTotal', $pageTotal);
|
||||
$this->view->assign('PagePrev', $pagePrev);
|
||||
$this->view->assign('PageNext', $pageNext);
|
||||
$this->view->assign('PageCurrent', $pageCurrent);
|
||||
|
||||
$this->view->assign('nbReponses', empty($nbReponses) ? 0 : $nbReponses);
|
||||
$this->view->assign('nbReponsesTotal', empty($nbReponsesTotal) ? 0 : $nbReponsesTotal);
|
||||
|
||||
$classType = 'annonces'.ucfirst($vue);;
|
||||
$annonces = array();
|
||||
if (count($objAnnonces->$classType) > 0) {
|
||||
foreach($objAnnonces->$classType as $ann) {
|
||||
$annonces[] = $objAnnonces->getAnnonceResume($ann);
|
||||
}
|
||||
$this->logger->info(print_r($annonces,1));
|
||||
$this->view->assign('annonces', $annonces);
|
||||
}
|
||||
$this->view->headScript()->appendFile($this->theme->pathScript.'/annonces.js', 'text/javascript');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Affichage d'une annonce
|
||||
*/
|
||||
public function annonceAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
|
||||
$autrePage = $request->getParam('apage');
|
||||
|
||||
$idAnn = $request->getParam('idAnn', null);
|
||||
$siren = substr($this->siret, 0,9);
|
||||
|
||||
$vue = $request->getParam('vue', 'bodacc');
|
||||
$source = $request->getParam('source');
|
||||
if (!empty($source)) {
|
||||
switch ($source){
|
||||
case 1: $vue = 'bodacc'; break;
|
||||
case 2: $vue = 'balo'; break;
|
||||
case 3: $vue = 'asso'; break;
|
||||
}
|
||||
}
|
||||
$session = new Scores_Session_Entreprise($this->siret, $this->id);
|
||||
$fj = $session->getFormeJuridique();
|
||||
if ($fj > 9000 && $fj < 9999 && intval($siren) == 0) {
|
||||
$vue = 'asso';
|
||||
}
|
||||
|
||||
$page = $request->getParam('page');
|
||||
$this->view->assign('page', $page);
|
||||
|
||||
$this->view->assign('id', $session->getId());
|
||||
$this->view->assign('siren', $siren);
|
||||
$this->view->assign('siret', $this->siret);
|
||||
$this->view->assign('raisonSociale', $session->getRaisonSociale());
|
||||
$this->view->assign('AutrePage', $autrePage);
|
||||
|
||||
if ($session->getSource() == '006' || $session->getSourceId() == '007') {
|
||||
$this->view->assign('AutreSource', true);
|
||||
} else {
|
||||
$this->view->assign('vue', $vue);
|
||||
$ws = new WsScores();
|
||||
switch ($vue) {
|
||||
case 'balo':
|
||||
$infos = $ws->getAnnoncesBalo($siren, $idAnn, null, $position, $nbAffichage);
|
||||
break;
|
||||
case 'asso':
|
||||
if ( intval($siren)==0 && substr($session->getAutreId(),0,1)=='W' ) {
|
||||
$infos = $ws->getAnnoncesAsso($session->getAutreId(), $idAnn, null, $position, $nbAffichage);
|
||||
} elseif (intval($siren)!=0) {
|
||||
$infos = $ws->getAnnoncesAsso($siren, $idAnn, null, $position, $nbAffichage);
|
||||
} else {
|
||||
$idAnn = $session->getSourceId();
|
||||
$infos = $ws->getAnnoncesAsso($siren, $idAnn, null, $position, $nbAffichage);
|
||||
}
|
||||
break;
|
||||
case 'bomp':
|
||||
$filtre = $request->getParam('filtre', 'A');
|
||||
$this->view->assign('filtre', $filtre);
|
||||
$infos = $ws->getAnnoncesBoamp($siren, $idAnn, $filtre, $position, $nbAffichage);
|
||||
break;
|
||||
case 'bodacc':
|
||||
case 'abod':
|
||||
default:
|
||||
if(intval($siren)==0) {
|
||||
$idAnn = $session->getSourceId();
|
||||
}
|
||||
$infos = $ws->getAnnoncesLegales($siren, $idAnn, null, $position, $nbAffichage);
|
||||
break;
|
||||
}
|
||||
$this->logger->info(print_r($infos,1));
|
||||
if ($infos === false) {
|
||||
$this->forward('soap', 'error');
|
||||
}
|
||||
|
||||
require_once 'Scores/Annonces.php';
|
||||
$objAnnonces = new Annonces($infos->result->item);
|
||||
|
||||
$typeAnnonces = array(
|
||||
'Bodacc',
|
||||
'Balo',
|
||||
'Bomp',
|
||||
'Asso',
|
||||
);
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
$this->view->assign('hasModeEdition', $user->checkModeEdition());
|
||||
$this->view->assign('exportObjet', $infos);
|
||||
$this->view->assign('surveillance', $user->checkPerm('survannonce'));
|
||||
|
||||
if ( $user->checkModeEdition() ){
|
||||
$this->view->headScript()
|
||||
->appendFile($this->theme->pathScript.'/saisieannonces.js', 'text/javascript');
|
||||
}
|
||||
|
||||
$classType = 'annonces'.ucfirst($vue);
|
||||
foreach($objAnnonces->$classType as $ann) {
|
||||
if($ann->id==$idAnn) break;
|
||||
}
|
||||
$this->logger->info(print_r($ann,1));
|
||||
$annonce = array(
|
||||
'Desc' => $objAnnonces->getAnnonceDesc($ann),
|
||||
'Entree' => $objAnnonces->getAnnonceEntree($ann),
|
||||
'EntreeSD' => $objAnnonces->getAnnonceEntreeSD($ann),
|
||||
'Even' => $objAnnonces->getAnnonceEven($ann),
|
||||
'Texte' => $objAnnonces->getAnnonceTexte($ann),
|
||||
'Type' => $objAnnonces->getType($ann),
|
||||
'Code' => $objAnnonces->getCode($ann),
|
||||
'Annee' => $objAnnonces->getAnnee($ann),
|
||||
'Num' => $objAnnonces->getNum($ann),
|
||||
'Deleted' => $objAnnonces->isDeleted($ann),
|
||||
'Entites' => $objAnnonces->getAnnonceEntite($ann)
|
||||
);
|
||||
|
||||
$this->view->assign('source', $session->getSource());
|
||||
if (intval($this->siret) == 0){
|
||||
$this->view->assign('sourceId', $session->getSourceId());
|
||||
} else {
|
||||
$this->view->assign('sourceId', null);
|
||||
}
|
||||
$this->view->assign('idAnn', $idAnn);
|
||||
$this->view->assign('annonce', $annonce);
|
||||
|
||||
if ($request->getParam('q') == 'ajax') {
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$this->view->assign('ajax', 1);
|
||||
} else {
|
||||
// Définir url pour téléchargement pdf
|
||||
if (in_array($annonce['Code'], array('BODA', 'BODB', 'BODC'))) {
|
||||
$datePublication = DateTime::createFromFormat('Y-m-d', $ann->DateParution);
|
||||
$dateBodacc = DateTime::createFromFormat('Ymd', '20080101');
|
||||
$dateTemoinA = DateTime::createFromFormat('Ymd', '20161115');
|
||||
$dateTemoinB = DateTime::createFromFormat('Ymd', '20161011');
|
||||
$dateTemoinC = DateTime::createFromFormat('Ymd', '20160223');
|
||||
|
||||
$params = null;
|
||||
if ($annonce['Code'] == 'BODA' && $datePublication >= $dateTemoinA) {
|
||||
$params = array('unit'=>1);
|
||||
$this->view->assign('bodaccLinkLabel', 'Télécharger le témoin de publication');
|
||||
} elseif ($annonce['Code'] == 'BODB' && $datePublication >= $dateTemoinB) {
|
||||
$params = array('unit'=>1);
|
||||
$this->view->assign('bodaccLinkLabel', 'Télécharger le témoin de publication');
|
||||
} elseif ($annonce['Code'] == 'BODC' && $datePublication >= $dateTemoinC) {
|
||||
$params = array('unit'=>1);
|
||||
$this->view->assign('bodaccLinkLabel', 'Télécharger le témoin de publication');
|
||||
} elseif ($datePublication >= $dateBodacc) {
|
||||
$params = array();
|
||||
$this->view->assign('bodaccLinkLabel', 'Télécharger le bulletin officiel');
|
||||
}
|
||||
|
||||
if ($params !== null) {
|
||||
$params = array_merge($params, array('controller'=>'juridique',
|
||||
'action'=>'bodaccpdf', 'siren'=>$siren, 'type'=>substr($annonce['Code'],3,1),
|
||||
'parution'=>$annonce['Annee'].str_pad($ann->BodaccNum, 4, '0', STR_PAD_LEFT),
|
||||
'annonce'=>$ann->NumAnnonce
|
||||
));
|
||||
$lienBodacc = $this->view->url($params, 'default', true);
|
||||
$this->view->assign('bodaccLink', $lienBodacc);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Liste des contentieux
|
||||
*/
|
||||
public function ctxAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$session = new Scores_Session_Entreprise($this->siret, $this->id);
|
||||
|
||||
$this->view->headTitle()->prepend("Contentieux");
|
||||
$this->view->headTitle()->prepend("Siret ".$this->siret);
|
||||
|
||||
$siren = substr($this->siret, 0,9);
|
||||
$type = $request->getParam('type', 'DF');
|
||||
$this->view->Type = $type;
|
||||
$typeList = array(
|
||||
'DE' => 'demandeur',
|
||||
'DF' => 'défendeur',
|
||||
);
|
||||
$this->view->TypeLabel = '';
|
||||
if (array_key_exists($type, $typeList)) {
|
||||
$this->view->TypeLabel = $typeList[$type];
|
||||
}
|
||||
$this->view->TypeList = $typeList;
|
||||
|
||||
$nbReponses = 20;
|
||||
$page = $request->getParam('page', 1);
|
||||
if ( $page <= 0 ) $page = 1;
|
||||
$position = ($page - 1 ) * $nbReponses;
|
||||
|
||||
$params = new stdClass();
|
||||
$params->companyId = $siren;
|
||||
$params->tiers = $type;
|
||||
$params->p = $position;
|
||||
$params->limit = $nbReponses;
|
||||
|
||||
try {
|
||||
$ws = new Scores_Ws_Client('entreprise', '0.9');
|
||||
$response = $ws->getGreffeAffaireList($params);
|
||||
if ($response === false) {
|
||||
$this->view->msg = "Erreur";
|
||||
} else {
|
||||
|
||||
$this->view->List = isset($response->List->item)?$response->List->item:null;
|
||||
// --- Pagination
|
||||
$nbReponsesTotal = $response->Nb;
|
||||
if ($nbReponses < $nbReponsesTotal) {
|
||||
$pageTotal = ceil( $nbReponsesTotal / $nbReponses );
|
||||
$pageCurrent = $page;
|
||||
$pagePrev = $page - 1;
|
||||
if ($pagePrev < 1) {
|
||||
$pagePrev = 1;
|
||||
}
|
||||
$pageNext = $page + 1;
|
||||
if( $pageNext > $pageTotal ) {
|
||||
$pageNext = $pageTotal;
|
||||
}
|
||||
} else {
|
||||
$pageTotal = $pageCurrent = 1;
|
||||
$pagePrev = 1;
|
||||
$pageNext = 1;
|
||||
}
|
||||
$this->view->assign('PageTotal', $pageTotal);
|
||||
$this->view->assign('PagePrev', $pagePrev);
|
||||
$this->view->assign('PageNext', $pageNext);
|
||||
$this->view->assign('PageCurrent', $pageCurrent);
|
||||
|
||||
$this->view->assign('nbReponses', empty($nbReponses) ? 0 : $nbReponses);
|
||||
$this->view->assign('nbReponsesTotal', empty($nbReponsesTotal) ? 0 : $nbReponsesTotal);
|
||||
|
||||
$this->view->assign('siren', $siren);
|
||||
$this->view->assign('siret', $this->siret);
|
||||
$this->view->assign('raisonSociale', $session->getRaisonSociale());
|
||||
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
$this->view->msg = $e->getMessage();
|
||||
}
|
||||
}
|
||||
|
||||
public function ctxdetailAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$session = new Scores_Session_Entreprise($this->siret, $this->id);
|
||||
$siren = substr($this->siret, 0,9);
|
||||
|
||||
$this->view->headTitle()->prepend("Contentieux");
|
||||
$this->view->headTitle()->prepend("Siret ".$this->siret);
|
||||
|
||||
$this->view->assign('siren', $siren);
|
||||
$this->view->assign('siret', $this->siret);
|
||||
$this->view->assign('raisonSociale', $session->getRaisonSociale());
|
||||
|
||||
$id = $request->getParam('affaireId');
|
||||
|
||||
$params = new stdClass();
|
||||
$params->id = $id;
|
||||
|
||||
try {
|
||||
$ws = new Scores_Ws_Client('entreprise', '0.9');
|
||||
$response = $ws->getGreffeAffaireDetail($params);
|
||||
if ($response === false) {
|
||||
$this->view->msg = "Erreur";
|
||||
} else {
|
||||
$this->view->Affaire = $response;
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
$this->view->msg = $e->getMessage();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Affichage infos réglementées
|
||||
*/
|
||||
public function infosregAction()
|
||||
{
|
||||
$this->view->headTitle()->prepend("Informations Réglementées");
|
||||
$this->view->headTitle()->prepend("Siret ".$this->siret);
|
||||
|
||||
$request = $this->getRequest();
|
||||
$idAnn = $request->getParam('idann', false);
|
||||
$siren = substr($this->siret, 0,9);
|
||||
$session = new Scores_Session_Entreprise($this->siret, $this->id);
|
||||
|
||||
$ws = new WsScores();
|
||||
if ($idAnn!=false) {
|
||||
$this->view->assign('idAnn', $idAnn);
|
||||
$infos = $ws->getInfosReg($siren,$idAnn);
|
||||
} else {
|
||||
$infos = $ws->getInfosReg($siren);
|
||||
}
|
||||
if ($infos === false) $this->forward('soap', 'error');
|
||||
|
||||
if (is_string($infos)){
|
||||
$this->view->assign('message', $infos);
|
||||
}
|
||||
|
||||
$objAnnonces = $infos->result->item;
|
||||
$annonces = array();
|
||||
if (count($objAnnonces)>0) {
|
||||
foreach ( $objAnnonces as $item ) {
|
||||
$dateParution = new Zend_Date($item->DateParution, 'yyyy-MM-dd');
|
||||
$dateInsertion = new Zend_Date($item->dateInsertionSD, 'yyyy-MM-dd');
|
||||
$annonces[] = array(
|
||||
'id' => $item->id,
|
||||
'titre' => $item->titre,
|
||||
'communique' => $item->communique,
|
||||
'source' => $item->source,
|
||||
'DateParution' => $dateParution->toString('dd/MM/yyyy'),
|
||||
'dateInsertionSD' => $dateInsertion->toString('dd/MM/yyyy'),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
$this->view->assign('annonces', $annonces);
|
||||
$this->view->assign('siren', $siren);
|
||||
$this->view->assign('siret', $this->siret);
|
||||
$this->view->assign('raisonSociale', $session->getRaisonSociale());
|
||||
$this->view->assign('exportObjet', $infos);
|
||||
}
|
||||
|
||||
/**
|
||||
* Affichage listes des compétences
|
||||
*/
|
||||
public function competencesAction()
|
||||
{
|
||||
$this->view->headTitle()->prepend("Compétences Territoriales");
|
||||
$this->view->headTitle()->prepend("Siret ".$this->siret);
|
||||
|
||||
$request = $this->getRequest();
|
||||
$type = $request->getParam('type', '');
|
||||
$siren = substr($this->siret,0,9);
|
||||
$session = new Scores_Session_Entreprise($this->siret, $this->id);
|
||||
|
||||
$abbrev = array(
|
||||
' TGI ' => 'TRIBUNAL DE GRANDE INSTANCE DE ',
|
||||
' TI ' => 'TRIBUNAL D\'INSTANCE DE ',
|
||||
' TC ' => 'TRIBUNAL DE COMMERCE DE ',
|
||||
' TGICC ' => 'TRIBUNAL DE GRANDE INSTANCE A COMPETENCE COMMERCIALE ',
|
||||
' TICC ' => 'TRIBUNAL D\'INSTANCE A COMPETENCE COMMERCIALE '
|
||||
);
|
||||
|
||||
if (!empty($type)){
|
||||
$ws = new WsScores();
|
||||
$infos = $ws->getListeCompetences($this->siret, $type, $session->getCodeCommune());
|
||||
if ($infos === false) $this->_forward('soap', 'error');
|
||||
|
||||
$competences = $infos->result->item;
|
||||
$this->logger->info(print_r($infos,1));
|
||||
if( $type=='tri' || $type=='cfe' ) {
|
||||
$i=0;
|
||||
foreach($competences as $comp){
|
||||
$competences[$i]->Nom = strtr(' '.strtoupper($comp->Nom), $abbrev);
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
$this->view->assign('competences', $competences);
|
||||
$this->view->assign('type', $type);
|
||||
$this->view->assign('exportObjet', $infos);
|
||||
}
|
||||
|
||||
$this->view->assign('siren', $siren);
|
||||
$this->view->assign('siret', $this->siret);
|
||||
$this->view->assign('raisonSociale', $session->getRaisonSociale());
|
||||
}
|
||||
|
||||
/**
|
||||
* Affichage des la listes des conventions collectives
|
||||
* Enter description here ...
|
||||
*/
|
||||
public function conventionsAction()
|
||||
{
|
||||
$this->view->headTitle()->prepend("Conventions Collectives");
|
||||
$this->view->headTitle()->prepend("Siret ".$this->siret);
|
||||
|
||||
$siren = substr($this->siret, 0,9);
|
||||
$session = new Scores_Session_Entreprise($this->siret, $this->id);
|
||||
$this->view->assign('siren', $siren);
|
||||
$this->view->assign('siret', $this->siret);
|
||||
$this->view->assign('raisonSociale', $session->getRaisonSociale());
|
||||
$ws = new WsScores();
|
||||
$infos = $ws->getListeConventions($siren);
|
||||
$conventions = $infos->result->item;
|
||||
$this->logger->info(print_r($conventions,1));
|
||||
$this->view->assign('conventions', $conventions);
|
||||
$this->view->assign('exportObjet', $infos);
|
||||
}
|
||||
|
||||
/**
|
||||
* Affichage des marques déposées
|
||||
*/
|
||||
public function marquesAction()
|
||||
{
|
||||
$this->view->headTitle()->prepend("Marques Déposées");
|
||||
$this->view->headTitle()->prepend("Siret ".$this->siret);
|
||||
|
||||
$this->view->headScript()->appendFile($this->theme->pathScript.'/marques.js', 'text/javascript');
|
||||
|
||||
$request = $this->getRequest();
|
||||
$idObject = $request->getParam('idObject', 0);
|
||||
$siren = substr($this->siret, 0,9);
|
||||
$session = new Scores_Session_Entreprise($this->siret, $this->id);
|
||||
$this->view->assign('siren', $siren);
|
||||
$this->view->assign('siret', $this->siret);
|
||||
$this->view->assign('raisonSociale', $session->getRaisonSociale());
|
||||
$ws = new WsScores();
|
||||
$infos = $ws->getMarques($siren, $idObject);
|
||||
if ($infos === false) $this->_forward('soap', 'error');
|
||||
|
||||
$marques = $infos->result->item;
|
||||
$this->view->assign('marques', $marques);
|
||||
$this->view->assign('idObject', $idObject);
|
||||
$this->view->assign('exportObjet', $marques);
|
||||
$this->logger->info(print_r($infos,1));
|
||||
}
|
||||
|
||||
/**
|
||||
* Affiche le lien pour télécharger le fichier concernant le dépot
|
||||
*/
|
||||
public function getmarqueAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$this->_helper->viewRenderer->setNoRender(true);
|
||||
$request = $this->getRequest();
|
||||
$numdepot = $request->getParam('numdepot', '');
|
||||
if (empty($numdepot)){
|
||||
echo 'Paramètres incorrects';
|
||||
exit;
|
||||
}
|
||||
$c = Zend_Registry::get('config');
|
||||
$directory = $c->profil->path->shared.'/persist/marques';
|
||||
$file = $numdepot.'.pdf';
|
||||
|
||||
//Le fichier n'existe pas alors on le télécharger
|
||||
if(!file_exists($directory.'/'.$file)
|
||||
|| filesize($directory.'/'.$file)==0 ) {
|
||||
$cmd = 'php ' . APPLICATION_PATH . '/../scripts/jobs/getMarque.php ' . $numdepot;
|
||||
$this->logger->info($cmd);
|
||||
$result = exec($cmd);
|
||||
$this->logger->info($result);
|
||||
}
|
||||
//On vérfie que le fichier existe après le téléchargement
|
||||
if(file_exists($directory.'/'.$file) && filesize($directory.'/'.$file)>0) {
|
||||
$href = $this->view->url(array('module'=>'file', 'controller'=>'index', 'action'=>'marque', 'q'=>$file), 'default', true);
|
||||
echo '<a href="'.$href.'" target="_blank">Télécharger le PDF de l\'insciption au BOPI.</a>';
|
||||
} else {
|
||||
echo 'Document introuvable.';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Gestion téléchargement du Bodacc au format pdf
|
||||
*/
|
||||
public function bodaccpdfAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$this->_helper->viewRenderer->setNoRender(true);
|
||||
$request = $this->getRequest();
|
||||
|
||||
$siren = $request->getParam('siren');
|
||||
$type = $request->getParam('type');
|
||||
$parution = $request->getParam('parution');
|
||||
$annonce = $request->getParam('annonce');
|
||||
$unit = $request->getParam('unit');
|
||||
$annee = substr($parution,0,4);
|
||||
|
||||
$c = Zend_Registry::get('config');
|
||||
$path = $c->profil->path->shared.'/persist/bodacc/'.$type.'/'.$annee;
|
||||
if ($unit == 1) {
|
||||
$file = $path."/BODACC_".$type."_".$annee."_".substr($parution,4)."_".$annonce.".pdf";
|
||||
} else {
|
||||
$file = $path."/BODACC_".$type."_".$annee."_".substr($parution,4).".pdf";
|
||||
}
|
||||
|
||||
if (!file_exists($file)) {
|
||||
$cli = "/../scripts/jobs/getBodaccPdf.php";
|
||||
$params = "--siren ".$siren."--type ".$type." --parution ".$parution." --annonce ".$annonce;
|
||||
exec('php ' . APPLICATION_PATH . "$cli $params >> getBodaccPdf.log");
|
||||
}
|
||||
|
||||
if (file_exists($file)) {
|
||||
$href = $this->view->url(array('module'=>'file', 'controller'=>'bodacc',
|
||||
'action'=>'actual', 'q' => basename($file)), 'default', true);
|
||||
echo "<a target=\"_blank\" href=\"".$href."\">Cliquer ici pour télécharger le fichier.</a>";
|
||||
} else {
|
||||
echo "Erreur lors du chargement du fichier.";
|
||||
}
|
||||
}
|
||||
|
||||
public function annoncenumAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
|
||||
$request = $this->getRequest();
|
||||
$siren = $request->getParam('siren');
|
||||
|
||||
$ws = new WsScores();
|
||||
$result = $ws->getAnnoncesNum($siren);
|
||||
$this->logger->info(print_r($result,1));
|
||||
$numWS = array();
|
||||
if (count($result->item)>0) {
|
||||
foreach ($result->item as $item) {
|
||||
$numWS[$item->type] = $item->num;
|
||||
}
|
||||
}
|
||||
$types = array('bodacc', 'balo', 'boamp', 'asso');
|
||||
|
||||
$num = array();
|
||||
foreach($types as $type) {
|
||||
if ( array_key_exists($type, $numWS) ) {
|
||||
$num['Type'.ucfirst($type)] = $numWS[$type];
|
||||
}
|
||||
}
|
||||
|
||||
$this->view->assign('num', $num);
|
||||
}
|
||||
|
||||
}
|
@ -1,461 +0,0 @@
|
||||
<?php
|
||||
class LogoController extends Zend_Controller_Action
|
||||
{
|
||||
protected $theme;
|
||||
protected $pathLogo = '';
|
||||
|
||||
/**
|
||||
* Logger
|
||||
* @var \Monolog\Logger
|
||||
*/
|
||||
protected $logger;
|
||||
|
||||
public function init()
|
||||
{
|
||||
if (Zend_Registry::isRegistered('logger')) {
|
||||
$this->logger = Zend_Registry::get('logger');
|
||||
}
|
||||
|
||||
// --- Theme
|
||||
$this->theme = Zend_Registry::get('theme');
|
||||
|
||||
$c = Zend_Registry::get('config');
|
||||
$this->pathLogo = $c->profil->path->shared.'/persist/logos';
|
||||
}
|
||||
|
||||
public function indexAction()
|
||||
{
|
||||
$this->_helper->layout->disableLayout();
|
||||
$request = $this->getRequest();
|
||||
$siren = $request->getParam('siren', '');
|
||||
$isin = $request->getParam('isin', '');
|
||||
$logo = $this->_findlogo($siren, $isin);
|
||||
|
||||
$this->view->assign('siren', $siren);
|
||||
$this->view->assign('logo', $logo);
|
||||
}
|
||||
|
||||
public function uploadAction()
|
||||
{
|
||||
$this->_helper->layout->disableLayout();
|
||||
$request = $this->getRequest();
|
||||
|
||||
$siren = $request->getParam('siren');
|
||||
|
||||
if ($request->isPost()) {
|
||||
|
||||
if ( !empty($siren) && isset($_FILES['file']) && $_FILES['file']['error']!=UPLOAD_ERR_NO_FILE )
|
||||
{
|
||||
$logoFile = $_FILES['file'];
|
||||
$tmp_file = $logoFile['tmp_name'];
|
||||
if ( $logoFile['error']!=UPLOAD_ERR_OK ) {
|
||||
$output.= '';
|
||||
} elseif ( !is_uploaded_file($tmp_file) ){
|
||||
$output.= '';
|
||||
} else {
|
||||
// On vérifie maintenant l'extension
|
||||
$extAuthorized = array('jpeg', 'jpg', 'png', 'gif', 'bmp');
|
||||
$type_file = str_replace('image/', '',$logoFile['type']);
|
||||
$ext = '';
|
||||
if ( in_array($type_file, $extAuthorized) ){
|
||||
$ext = $type_file;
|
||||
}
|
||||
if ( !empty($ext) ){
|
||||
// on copie le fichier dans le dossier de destination
|
||||
$name_file = $siren.'.'.$ext;
|
||||
if ( file_exists(PATH_LOGOS . $name_file) ){
|
||||
unlink($this->pathLogo.'/'.$name_file);
|
||||
}
|
||||
if( !move_uploaded_file($tmp_file, $this->pathLogo.'/'.$name_file) ) {
|
||||
$output.= '';
|
||||
} else {
|
||||
$this->view->assign('image', $name_file);
|
||||
}
|
||||
} else {
|
||||
$output.= '';
|
||||
}
|
||||
}
|
||||
}
|
||||
$this->view->assign('isPost', true);
|
||||
}
|
||||
$this->view->assign('siren', $siren);
|
||||
}
|
||||
|
||||
public function cropAction()
|
||||
{
|
||||
$this->_helper->layout->disableLayout();
|
||||
$request = $this->getRequest();
|
||||
|
||||
$siren = $request->getParam('siren');
|
||||
$image = $request->getParam('image');
|
||||
|
||||
if ($request->isPost())
|
||||
{
|
||||
$jpeg_quality = 90;
|
||||
$png_quality = 9;
|
||||
|
||||
list($name, $ext) = explode('.', $image);
|
||||
|
||||
$src = $name.'.'.$ext;
|
||||
$dst = str_replace('tmp_', '', $src);
|
||||
|
||||
//Création image
|
||||
switch($ext){
|
||||
case 'gif':
|
||||
$img_r = imagecreatefromgif($this->pathLogo.'/'.$src);
|
||||
break;
|
||||
case 'png':
|
||||
$img_r = imagecreatefrompng($this->pathLogo.'/'.$src);
|
||||
break;
|
||||
case 'jpgeg':
|
||||
case 'jpg':
|
||||
$img_r = imagecreatefromjpeg($this->pathLogo.'/'.$src);
|
||||
break;
|
||||
}
|
||||
//Resample
|
||||
$dst_r = ImageCreateTrueColor( $_POST['w'], $_POST['h'] );
|
||||
imagecopyresampled($dst_r,$img_r,0,0,$_POST['x'],$_POST['y'],
|
||||
$_POST['w'],$_POST['h'],$_POST['w'],$_POST['h']);
|
||||
//Enregistrement comme le format de départ
|
||||
if ( file_exists($this->pathLogo.'/'.$dst) ) {
|
||||
unlink($this->pathLogo.'/'.$dst);
|
||||
}
|
||||
switch($ext){
|
||||
case 'gif':
|
||||
imagegif($dst_r,$this->pathLogo.'/'.$dst);
|
||||
break;
|
||||
case 'png':
|
||||
imagepng($dst_r,$this->pathLogo.'/'.$dst, $png_quality);
|
||||
break;
|
||||
case 'jpgeg':
|
||||
case 'jpg':
|
||||
imagejpeg($dst_r,$this->pathLogo.'/'.$dst, $jpeg_quality);
|
||||
break;
|
||||
}
|
||||
$this->view->assign('image', $dst);
|
||||
$this->view->assign('isPost', true);
|
||||
} else {
|
||||
$this->view->assign('image', $image);
|
||||
}
|
||||
$this->view->assign('siren', $siren);
|
||||
}
|
||||
|
||||
public function saveAction()
|
||||
{
|
||||
$this->_helper->layout->disableLayout();
|
||||
$request = $this->getRequest();
|
||||
|
||||
$file = $request->getParam('image');
|
||||
|
||||
if ( !empty($file) ) {
|
||||
list($name, $ext) = explode('.', $file);
|
||||
$name_dst = str_replace('tmp_','',$name);
|
||||
//Vérifier les dimensions
|
||||
$max_width = 350;
|
||||
$max_height = 150;
|
||||
$size = GetImageSize($this->pathLogo.'/'.$file); // Read the size
|
||||
$width = $size[0];
|
||||
$height = $size[1];
|
||||
$x_ratio = $max_width / $width;
|
||||
$y_ratio = $max_height / $height;
|
||||
if( ($width <= $max_width) && ($height <= $max_height) )
|
||||
{
|
||||
$tn_width = $width;
|
||||
$tn_height = $height;
|
||||
}
|
||||
elseif (($x_ratio * $height) < $max_height)
|
||||
{
|
||||
$tn_height = ceil($x_ratio * $height);
|
||||
$tn_width = $max_width;
|
||||
}
|
||||
else
|
||||
{
|
||||
$tn_width = ceil($y_ratio * $width);
|
||||
$tn_height = $max_height;
|
||||
}
|
||||
//Création image
|
||||
switch($ext){
|
||||
case 'gif':
|
||||
$src = imagecreatefromgif($this->pathLogo.'/'.$src);
|
||||
break;
|
||||
case 'png':
|
||||
$src = imagecreatefrompng($this->pathLogo.'/'.$src);
|
||||
break;
|
||||
case 'jpgeg':
|
||||
case 'jpg':
|
||||
$src = imagecreatefromjpeg($this->pathLogo.'/'.$src);
|
||||
break;
|
||||
}
|
||||
$dst = imagecreatetruecolor($tn_width, $tn_height);
|
||||
imagecopyresized($dst, $src, 0, 0, 0, 0, $tn_width, $tn_height, $width, $height);
|
||||
switch($ext){
|
||||
case 'gif':
|
||||
imagegif($dst,$this->pathLogo.'/'.$name_dst.'.'.$ext);
|
||||
break;
|
||||
case 'png':
|
||||
imagepng($dst,$this->pathLogo.'/'.$name_dst.'.'.$ext);
|
||||
break;
|
||||
case 'jpgeg':
|
||||
case 'jpg':
|
||||
imagejpeg($dst,$this->pathLogo.'/'.$name_dst.'.'.$ext);
|
||||
break;
|
||||
}
|
||||
//Affecté au siren
|
||||
$dst = $this->pathLogo.'/'.str_replace('tmp_', '', $file);
|
||||
if (rename($this->pathLogo.'/'.$file, $dst)){
|
||||
chmod($dst, 0755);
|
||||
$message = 'Image affecté.';
|
||||
} else {
|
||||
$message = 'Erreur.';
|
||||
}
|
||||
}
|
||||
$this->view->assign('message', $message);
|
||||
|
||||
}
|
||||
|
||||
public function urlAction()
|
||||
{
|
||||
$this->_helper->layout->disableLayout();
|
||||
$request = $this->getRequest();
|
||||
|
||||
$siren = $request->getParam('siren');
|
||||
|
||||
if ($request->isPost()){
|
||||
|
||||
$logoUrl = $request->getParam('url');
|
||||
$tabTmp = parse_url($logoUrl);
|
||||
$hostUrl = $tabTmp['host'];
|
||||
$pathUrl = $tabTmp['path'];
|
||||
$tmp = explode('.', basename($pathUrl));
|
||||
$ext = strtolower(end($tmp));
|
||||
|
||||
$extAuthorized = array('jpeg', 'jpg', 'png', 'gif', 'bmp');
|
||||
|
||||
//Vérification fichier est une image
|
||||
if ( in_array($ext, $extAuthorized ) )
|
||||
{
|
||||
$name_file = $siren.'.'.$ext;
|
||||
|
||||
try {
|
||||
$client = new Zend_Http_Client($logoUrl);
|
||||
$client->setStream();
|
||||
$response = $client->request('GET');
|
||||
if ( $response->isSuccessful()
|
||||
&& copy($response->getStreamName(), $this->pathLogo.'/'.$name_file) ) {
|
||||
$this->view->assign('image', $name_file);
|
||||
}
|
||||
} catch (Zend_Http_Client_Exception $e) {}
|
||||
}
|
||||
$this->view->assign('isPost', true);
|
||||
}
|
||||
$this->view->assign('siren', $siren);
|
||||
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
{
|
||||
$this->_helper->layout->disableLayout();
|
||||
$request = $this->getRequest();
|
||||
|
||||
$file = $request->getParam('image');
|
||||
|
||||
if ( !empty($file) ){
|
||||
$message = "Erreur suppression fichier.";
|
||||
if ( unlink($this->pathLogo.'/'.$file)){
|
||||
$message = 'Fichier supprimé.';
|
||||
}
|
||||
}
|
||||
|
||||
$this->view->assign('message', $message);
|
||||
}
|
||||
|
||||
//====> Function interne
|
||||
|
||||
function _logo( $siren )
|
||||
{
|
||||
$message = '';
|
||||
if ( isset($_FILES['logoFile']) &&
|
||||
$_FILES['logoFile']['error']!=UPLOAD_ERR_NO_FILE ) {
|
||||
|
||||
/** Un fichier a été uploadé **/
|
||||
$logoFile = $_FILES['logoFile'];
|
||||
$tmp_file = $logoFile['tmp_name'];
|
||||
|
||||
if ( $logoFile['error']!=UPLOAD_ERR_OK ) {
|
||||
$message = 'Erreur lors de la copie du fichier';
|
||||
}
|
||||
|
||||
if ( !is_uploaded_file($tmp_file) ){
|
||||
$message = "Le fichier est introuvable";
|
||||
} else {
|
||||
// on vérifie maintenant l'extension
|
||||
$type_file = $logoFile['type'];
|
||||
$ext = '';
|
||||
if ( strstr($type_file, 'jpg')) $ext='jpg';
|
||||
elseif( strstr($type_file, 'jpeg')) $ext='jpeg';
|
||||
elseif( strstr($type_file, 'bmp')) $ext='bmp';
|
||||
elseif( strstr($type_file, 'gif')) $ext='gif';
|
||||
elseif( strstr($type_file, 'png')) $ext='png';
|
||||
if ($ext=='') {
|
||||
$message = "Le fichier n'est pas une image";
|
||||
} else {
|
||||
// on copie le fichier dans le dossier de destination
|
||||
$name_file = $siren.'.'.$ext;
|
||||
if( !move_uploaded_file($tmp_file, $this->pathLogo.'/'.$name_file) ) {
|
||||
$message = "Impossible de copier le fichier dans ".$this->pathLogo;
|
||||
} else {
|
||||
$message = "Le fichier a bien été uploadé";
|
||||
}
|
||||
}
|
||||
}
|
||||
//Suppression ou URL fichier image
|
||||
} elseif ( isset($_REQUEST['logoUrl']['del']) ||
|
||||
( isset($_REQUEST['logoUrl']['url']) &&
|
||||
$_REQUEST['logoUrl']['url']!='' ) ) {
|
||||
|
||||
//Suppression du fichier
|
||||
if ( isset($_REQUEST['logoUrl']['del']) && $_REQUEST['logoUrl']['del'] )
|
||||
{
|
||||
$extensions = array('jpeg', 'jpg', 'png', 'gif', 'bmp');
|
||||
foreach ( $extensions as $ext ) {
|
||||
if ( file_exists(PATH_LOGOS.$siren.'.'.$ext) ){
|
||||
unlink($this->pathLogo.'/'.$siren.'.'.$ext);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$this->_getlogo($siren);
|
||||
}
|
||||
}
|
||||
return $message;
|
||||
}
|
||||
|
||||
function _saveimg( $siren )
|
||||
{
|
||||
$message = '';
|
||||
if ( isset($_FILES['logoFile']) &&
|
||||
$_FILES['logoFile']['error']!=UPLOAD_ERR_NO_FILE ) {
|
||||
$logoFile = $_FILES['logoFile'];
|
||||
$tmp_file = $logoFile['tmp_name'];
|
||||
if ( $logoFile['error']!=UPLOAD_ERR_OK ) {
|
||||
$output = '';
|
||||
} elseif ( !is_uploaded_file($tmp_file) ){
|
||||
$output = '';
|
||||
} else {
|
||||
// On vérifie maintenant l'extension
|
||||
$extAuthorized = array('jpeg', 'jpg', 'png', 'gif', 'bmp');
|
||||
$type_file = $logoFile['type'];
|
||||
$ext = '';
|
||||
if ( !in_array($type_file, $extAuthorized ) )
|
||||
{
|
||||
$ext = $type_file;
|
||||
}
|
||||
if ( !empty($ext) ){
|
||||
// on copie le fichier dans le dossier de destination
|
||||
$name_file = 'tmp_'.$siren.'.'.$ext;
|
||||
if( !move_uploaded_file($tmp_file, $this->pathLogo.'/'.$name_file) ) {
|
||||
$output = '';
|
||||
} else {
|
||||
chmod($this->pathLogo.'/'.$name_file, 0755);
|
||||
$output = $name_file;
|
||||
}
|
||||
} else {
|
||||
$output = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
function _findlogo( $siren, $isin = '' )
|
||||
{
|
||||
$img = '';
|
||||
$extensions = array('jpeg', 'jpg', 'png', 'gif', 'bmp');
|
||||
//Recherche image sur base siren
|
||||
foreach ( $extensions as $ext ) {
|
||||
if ( file_exists($this->pathLogo.'/'.$siren.'.'.$ext) ) {
|
||||
$img = $siren.'.'.$ext;
|
||||
break;
|
||||
}
|
||||
}
|
||||
//Recherche image sur base isin
|
||||
if ( $img == '' && $isin != '' ) {
|
||||
foreach ( $extensions as $ext ) {
|
||||
if ( file_exists($this->pathLogo.'/'.$isin.'.'.$ext) ) {
|
||||
$img = $isin.'.'.$ext;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return $img;
|
||||
}
|
||||
|
||||
|
||||
function _loadlogo( $siren, $isin = '' )
|
||||
{
|
||||
$urlImg = '';
|
||||
$locImg = $this->pathLogo.'/'.$siren;
|
||||
$extensions = array('jpeg', 'jpg', 'png', 'gif', 'bmp');
|
||||
|
||||
//Recherche image sur base siren
|
||||
foreach ( $extensions as $ext ) {
|
||||
if ( file_exists($locImg.'.'.$ext) ) {
|
||||
$urlImg = '/logos/'.$siren.'.'.$ext;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
//Recherche image sur base isin
|
||||
if ( $urlImg == '' && $isin != '' ) {
|
||||
$locImg = PATH_LOGOS . $isin;
|
||||
foreach ( $extensions as $ext ) {
|
||||
if ( file_exists($locImg.'.'.$ext) ) {
|
||||
$urlImg = '/logos/'.$isin.'.'.$ext;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$output = '';
|
||||
//Redimensionnement
|
||||
if ( $urlImg != '' ) {
|
||||
$tabTmp = getimagesize($locImg.'.'.$ext);
|
||||
$w = $tabTmp[0];
|
||||
$h = $tabTmp[1];
|
||||
if ( $w>350 ) {
|
||||
$strSize = redimage($locImg.'.'.$ext,350,150);
|
||||
} else {
|
||||
$strSize = '';
|
||||
}
|
||||
|
||||
$output = '<img src="'.$urlImg.'" '.$strSize.'/>';
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
function _getlogo( $siren )
|
||||
{
|
||||
$logoUrl = $_REQUEST['logoUrl']['url'];
|
||||
$extAuthorized = array('jpeg', 'jpg', 'png', 'gif', 'bmp');
|
||||
|
||||
try {
|
||||
$client = new Zend_Http_Client($pathUrl);
|
||||
$client->setStream();
|
||||
$response = $client->request('GET');
|
||||
if ( $response->isSuccessful() ) {
|
||||
|
||||
$tmp = explode('.', basename($response->getStreamName()));
|
||||
$ext = strtolower(end($tmp));
|
||||
if ( !in_array($ext, $extAuthorized ) )
|
||||
{
|
||||
$tmp = explode('/', $page['header']['Content-Type']);
|
||||
$ext = trim ( str_replace('?', '',strtolower(end($tmp)) ) );
|
||||
}
|
||||
$name_file = $siren.'.'.$ext;
|
||||
if( copy($response->getStreamName(), $this->pathLogo.'/'.$name_file) ) {
|
||||
chmod($this->pathLogo.'/'.$name_file, 0755);
|
||||
}
|
||||
}
|
||||
} catch (Zend_Http_Client_Exception $e) {}
|
||||
}
|
||||
|
||||
}
|
@ -1,312 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @todo vérifier contenu de la table des cours d'appel en dur
|
||||
* au 20150305:
|
||||
* 98713 PAPEETE CEDEX
|
||||
* 97262 FORT DE FRANCE CEDEX
|
||||
* Chambre Détachée de la Cour d'Appel de Fort de France à Cayenne", "triCP"=>"97300
|
||||
* qui devrait être "cours d'appel de Cayenne"
|
||||
* 97600 MAMOUDZOU
|
||||
* 97500 ST PIERRE ET MIQUELON
|
||||
*
|
||||
*/
|
||||
class MandataireController extends Zend_Controller_Action
|
||||
{
|
||||
protected $theme;
|
||||
|
||||
protected $coursAppel = array(
|
||||
array( "triId"=>"1756", "triCode"=>"AIXPRL", "triNom"=>"Cour d'Appel d'Aix-en-Provence", "triCP"=>"13616" ),
|
||||
array( "triId"=>"1757", "triCode"=>"AMIENL", "triNom"=>"Cour d'Appel d'Amiens", "triCP"=>"80027" ),
|
||||
array( "triId"=>"1758", "triCode"=>"ANGERL", "triNom"=>"Cour d'Appel d'Angers", "triCP"=>"49043" ),
|
||||
array( "triId"=>"1759", "triCode"=>"BASSEL", "triNom"=>"Cour d'Appel de Basse-Terre", "triCP"=>"97109" ),
|
||||
array( "triId"=>"1760", "triCode"=>"BASTIL", "triNom"=>"Cour d'Appel de Bastia", "triCP"=>"20407" ),
|
||||
array( "triId"=>"1761", "triCode"=>"BESANL", "triNom"=>"Cour d'Appel de Besançon", "triCP"=>"25017" ),
|
||||
array( "triId"=>"1762", "triCode"=>"BORDEL", "triNom"=>"Cour d'Appel de Bordeaux", "triCP"=>"33077" ),
|
||||
array( "triId"=>"1763", "triCode"=>"BOURGL", "triNom"=>"Cour d'Appel de Bourges", "triCP"=>"18023" ),
|
||||
array( "triId"=>"1764", "triCode"=>"CAENL", "triNom"=>"Cour d'Appel de Caen", "triCP"=>"14050" ),
|
||||
array( "triId"=>"1765", "triCode"=>"CHAMBL", "triNom"=>"Cour d'Appel de Chambéry", "triCP"=>"73018" ),
|
||||
array( "triId"=>"1766", "triCode"=>"COLMAL", "triNom"=>"Cour d'Appel de Colmar", "triCP"=>"68027" ),
|
||||
array( "triId"=>"1767", "triCode"=>"DIJONL", "triNom"=>"Cour d'Appel de Dijon", "triCP"=>"21034" ),
|
||||
array( "triId"=>"1768", "triCode"=>"DOUAIL", "triNom"=>"Cour d'Appel de Douai", "triCP"=>"59507" ),
|
||||
array( "triId"=>"1769", "triCode"=>"FORTFL", "triNom"=>"Cour d'Appel de Fort-de-France", "triCP"=>"97200" ),
|
||||
array( "triId"=>"1770", "triCode"=>"GRENOL", "triNom"=>"Cour d'Appel de Grenoble", "triCP"=>"38019" ),
|
||||
array( "triId"=>"1771", "triCode"=>"LIMOGL", "triNom"=>"Cour d'Appel de Limoges", "triCP"=>"87031" ),
|
||||
array( "triId"=>"1772", "triCode"=>"LYONL", "triNom"=>"Cour d'Appel de Lyon", "triCP"=>"69321" ),
|
||||
array( "triId"=>"1773", "triCode"=>"METZL", "triNom"=>"Cour d'Appel de Metz", "triCP"=>"57036" ),
|
||||
array( "triId"=>"1774", "triCode"=>"MONTPL", "triNom"=>"Cour d'Appel de Montpellier", "triCP"=>"34023" ),
|
||||
array( "triId"=>"1775", "triCode"=>"NANCYL", "triNom"=>"Cour d'Appel de Nancy", "triCP"=>"54035" ),
|
||||
array( "triId"=>"1776", "triCode"=>"NIMESL", "triNom"=>"Cour d'Appel de Nîmes", "triCP"=>"30031" ),
|
||||
array( "triId"=>"1777", "triCode"=>"NOUMEL", "triNom"=>"Cour d'Appel de Nouméa", "triCP"=>"98848" ),
|
||||
array( "triId"=>"1778", "triCode"=>"PAPEEL", "triNom"=>"Cour d'Appel de Papeete", "triCP"=>"98714" ),
|
||||
array( "triId"=>"1779", "triCode"=>"PARISL", "triNom"=>"Cour d'Appel de Paris", "triCP"=>"75055" ),
|
||||
array( "triId"=>"1780", "triCode"=>"PAUL", "triNom"=>"Cour d'Appel de Pau", "triCP"=>"64034" ),
|
||||
array( "triId"=>"1781", "triCode"=>"POITIL", "triNom"=>"Cour d'Appel de Poitiers", "triCP"=>"86020" ),
|
||||
array( "triId"=>"1782", "triCode"=>"REIMSL", "triNom"=>"Cour d'Appel de Reims", "triCP"=>"51096" ),
|
||||
array( "triId"=>"1783", "triCode"=>"RENNEL", "triNom"=>"Cour d'Appel de Rennes", "triCP"=>"35064" ),
|
||||
array( "triId"=>"1784", "triCode"=>"RIOML", "triNom"=>"Cour d'Appel de Riom", "triCP"=>"63201" ),
|
||||
array( "triId"=>"1785", "triCode"=>"ROUENL", "triNom"=>"Cour d'Appel de Rouen", "triCP"=>"76037" ),
|
||||
array( "triId"=>"1786", "triCode"=>"STDENL", "triNom"=>"Cour d'Appel de Saint-Denis-de-La Réunion", "triCP"=>"97488" ),
|
||||
array( "triId"=>"1787", "triCode"=>"TOULOL", "triNom"=>"Cour d'Appel de Toulouse", "triCP"=>"31068" ),
|
||||
array( "triId"=>"1788", "triCode"=>"VERSAL", "triNom"=>"Cour d'Appel de Versailles", "triCP"=>"78011" ),
|
||||
array( "triId"=>"1789", "triCode"=>"ORLEAL", "triNom"=>"Cour d'Appel d'Orléans", "triCP"=>"45044" ),
|
||||
array( "triId"=>"1790", "triCode"=>"CAYENL", "triNom"=>"Chambre Détachée de la Cour d'Appel de Fort de France à Cayenne", "triCP"=>"97300" ),
|
||||
array( "triId"=>"1798", "triCode"=>"AGENL", "triNom"=>"Cour d'Appel d'Agen", "triCP"=>"47916" ),
|
||||
);
|
||||
|
||||
/**
|
||||
* Logger
|
||||
* @var \Monolog\Logger
|
||||
*/
|
||||
protected $logger;
|
||||
|
||||
public function init()
|
||||
{
|
||||
if (Zend_Registry::isRegistered('logger')) {
|
||||
$this->logger = Zend_Registry::get('logger');
|
||||
}
|
||||
|
||||
// --- Theme
|
||||
$this->theme = Zend_Registry::get('theme');
|
||||
|
||||
require_once 'Scores/WsScores.php';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Enregistrement d'un mandataire
|
||||
*/
|
||||
public function addAction()
|
||||
{
|
||||
$this->_helper->layout->disableLayout();
|
||||
|
||||
$request = $this->getRequest();
|
||||
$idMandataire = $request->getParam('idMand', '');
|
||||
$tribunal = $request->getParam('tribunal', '');
|
||||
|
||||
$ws = new WsScores();
|
||||
|
||||
$this->logger->info('idMandataire : '.$idMandataire);
|
||||
|
||||
//Mode edition
|
||||
if ($idMandataire != '') {
|
||||
$idMandataire = (int)substr($idMandataire,1);
|
||||
$reponse = $ws->getMandataire($idMandataire);
|
||||
$this->logger->info(print_r($reponse,1));
|
||||
if ($reponse!==false) {
|
||||
$tabMandataires = json_decode($reponse, true);
|
||||
} else {
|
||||
$message = 'Une erreur est survenue durant la recherche de mandataire.';
|
||||
}
|
||||
//Mode ajout
|
||||
} else {
|
||||
$tabMandataires = $request->getParam('tabMandataires');
|
||||
}
|
||||
|
||||
if ($tribunal!='') {
|
||||
//La cour d'appel suivant le tribunal sélectionné
|
||||
$codeCourAppel = $ws->getIdCoursAppel($tribunal);
|
||||
|
||||
//Les tribunaux
|
||||
$tmp = $ws->getTribunaux(array('C','I','G')); //
|
||||
|
||||
$tribunaux = $tmp->result->item;
|
||||
}else{
|
||||
$message = 'Pas de tribunal sélectionné.';
|
||||
}
|
||||
|
||||
$this->view->assign('message', $message);
|
||||
$this->view->assign('tabMandataires', $tabMandataires);
|
||||
$this->view->assign('coursAppel', $this->coursAppel);
|
||||
$this->view->assign('tribunal', $tribunal);
|
||||
$this->view->assign('tribunaux', $tribunaux);
|
||||
}
|
||||
|
||||
/**
|
||||
* Edition d'un mandataire
|
||||
*/
|
||||
public function editAction()
|
||||
{
|
||||
$this->_forward('add');
|
||||
}
|
||||
|
||||
/**
|
||||
* Recherche d'un mandataire à partir d'une chaine de caractères
|
||||
* "nom, departement"
|
||||
*/
|
||||
public function searchAction()
|
||||
{
|
||||
$this->_helper->layout->disableLayout();
|
||||
$this->_helper->viewRenderer->setNoRender();
|
||||
|
||||
$request = $this->getRequest();
|
||||
$search = $request->getParam('search', '');
|
||||
|
||||
if (empty($search)) { echo ''; }
|
||||
else { $search = strtolower($search); }
|
||||
|
||||
list($searchStr, $filtre) = explode(',', $search);
|
||||
$searchStr = trim($searchStr);
|
||||
$filtre = str_replace(' ', '', $filtre);
|
||||
if( strlen($filtre) != 5 && strlen($filtre) != 2 ){
|
||||
$filtre = '';
|
||||
}
|
||||
|
||||
$ws = new WsScores();
|
||||
$reponse = $ws->searchMandataires(
|
||||
$searchStr,
|
||||
array('V', 'N', 'H', 'A', 'M'), //types de mandataires
|
||||
$filtre
|
||||
);
|
||||
|
||||
if ($reponse == false){
|
||||
echo 'Erreur durant la recherche';
|
||||
exit;
|
||||
}
|
||||
|
||||
$mandataires = $reponse->result->item;
|
||||
|
||||
$output = array();
|
||||
$output[] = array(
|
||||
'label' => "A l'adresse du bien vendu",
|
||||
'id' => 'adresse'
|
||||
);
|
||||
|
||||
/*
|
||||
REGEX Code Postal : ^(F-)?((2[A|B])|[0-9]{2})[0-9]{3}$
|
||||
(?<!/BP /i) Ne pas avoir la présence de BP devant les 5 chiffres
|
||||
*/
|
||||
//Recherche des codes postaux
|
||||
if( count($mandataires)>0 ) {
|
||||
$tableResults = array();
|
||||
$i=0;
|
||||
foreach ($mandataires as $mandataire) {
|
||||
$tabResults[$i]['code'] = $mandataire->id;
|
||||
$tabResults[$i]['lib'] = htmlspecialchars_decode(
|
||||
html_entity_decode($mandataire->mand, ENT_COMPAT | ENT_HTML401, 'UTF-8')
|
||||
, ENT_QUOTES);
|
||||
|
||||
preg_match('/(?<!bp )((2[A|B])|[0-9]{2})[0-9]{3}( )/i', $mandataire->mand, $matches);
|
||||
$tabResults[$i]['cp'] = $matches[0];
|
||||
$i++;
|
||||
}
|
||||
foreach ($tabResults as $key => $row){
|
||||
$code[$key] = $row['code'];
|
||||
$lib[$key] = $row['lib'];
|
||||
$cp[$key] = $row['cp'];
|
||||
}
|
||||
//Classement du tableau
|
||||
array_multisort($cp, SORT_NUMERIC, $tabResults);
|
||||
|
||||
//Affichage des valeurs
|
||||
foreach ($tabResults as $item){
|
||||
$output[] = array(
|
||||
'label' => $item['lib'],
|
||||
'id' => $item['code']
|
||||
);
|
||||
}
|
||||
}
|
||||
echo json_encode($output);
|
||||
}
|
||||
|
||||
public function getAction()
|
||||
{
|
||||
$this->_helper->layout->disableLayout();
|
||||
$this->_helper->viewRenderer->setNoRender(true);
|
||||
|
||||
$request = $this->getRequest();
|
||||
$siren = $request->getParam('siren');
|
||||
$siren = str_replace(' ','',$siren); //Remplacer les espaces
|
||||
|
||||
if ( $siren=='' || strlen($siren)!=14 ) {
|
||||
$output = array(
|
||||
'Siret' => 'Siret incorrect',
|
||||
);
|
||||
echo json_encode($output);
|
||||
exit;
|
||||
}
|
||||
|
||||
$tabEntrep = array();
|
||||
$ws = new WsScores();
|
||||
$tabEntrep = $ws->getIdentite($siren);
|
||||
if ($tabEntrep!==false){
|
||||
/**
|
||||
* Utiliser la dénomination sociale la plus longue
|
||||
* Nom, Nom2, NomLong
|
||||
*/
|
||||
if (!empty($tabEntrep->NomLong) && strlen($tabEntrep->NomLong)>strlen($tabEntrep->Nom)){
|
||||
$tabEntrep->Nom = $tabEntrep->NomLong;
|
||||
}
|
||||
|
||||
//Retourner le tableau sous forme json
|
||||
echo json_encode($tabEntrep);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function saveAction()
|
||||
{
|
||||
$this->_helper->layout->disableLayout();
|
||||
$this->_helper->viewRenderer->setNoRender();
|
||||
|
||||
$request = $this->getRequest();
|
||||
|
||||
$error = false;
|
||||
|
||||
$tabMandataires = $request->getParam('tabMandataires', array());
|
||||
|
||||
//Vérification des données
|
||||
$fields = array();
|
||||
if($tabMandataires['sirenGrp']=='' && $tabMandataires['sirenMand']==''){
|
||||
$fields[] ='Siret'; $error = true;
|
||||
}
|
||||
if($tabMandataires['sirenGrp'] == $tabMandataires['sirenMand']){
|
||||
$fields[] ='Siret de la société civile identique au Siret du mandataire';
|
||||
$error = true;
|
||||
}
|
||||
if( (strlen($tabMandataires['sirenGrp'])!=14 && empty($tabMandataires['sirenMand'])) ||
|
||||
(empty($tabMandataires['sirenGrp']) && strlen($tabMandataires['sirenMand'])!=14) ){
|
||||
$fields = 'Siret avec la bonne taille';
|
||||
$error = true;
|
||||
}
|
||||
|
||||
if($tabMandataires['Nom']=='' ){$fields[] ='Nom'; $error = true;}
|
||||
if($tabMandataires['type']==''){$fields[] ='Type'; $error = true;}
|
||||
if($tabMandataires['tribunal']==''){$fields[] ='Tribunal'; $error = true;}
|
||||
if($tabMandataires['coursAppel']==''){$fields[] ='Cours d\'appel'; $error = true;}
|
||||
if($tabMandataires['Statut']==''){$fields[] ='Statut'; $error = true;}
|
||||
if($tabMandataires['adresse']==''){$fields[] ='Adresse'; $error = true;}
|
||||
if($tabMandataires['cp']==''){$fields[] ='Code Postal'; $error = true;}
|
||||
if($tabMandataires['ville']==''){$fields[] ='Ville'; $error = true;}
|
||||
if($tabMandataires['tel']==''){$fields[] ='Téléphone'; $error = true;}
|
||||
|
||||
//Envoi de la requête au webservices
|
||||
if ($error==true){
|
||||
$message = '<font color="red">';
|
||||
$message.= 'Veuillez remplir les champs suivants : ';
|
||||
$message.= join(', ', $fields);
|
||||
$message.= '</font>';
|
||||
} else {
|
||||
$message='';
|
||||
$ws = new WsScores();
|
||||
$reponse = $ws->setMandataire($tabMandataires);
|
||||
if ( $reponse===false ){
|
||||
$message = "Une erreur s'est produite durant l'enregistrement";
|
||||
} elseif ( is_string($reponse) ) {
|
||||
$message = $reponse;
|
||||
}
|
||||
}
|
||||
echo $message;
|
||||
}
|
||||
|
||||
protected function htmlentitydecode_deep($value)
|
||||
{
|
||||
$value = is_array($value) ?
|
||||
array_map(array('MandataireController' ,'htmlentitydecode_deep'), $value) :
|
||||
html_entity_decode($value, ENT_QUOTES);
|
||||
return $value;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
@ -1,235 +0,0 @@
|
||||
<?php
|
||||
class OrderController extends Zend_Controller_Action
|
||||
{
|
||||
protected $theme;
|
||||
|
||||
/**
|
||||
* Logger
|
||||
* @var \Monolog\Logger
|
||||
*/
|
||||
protected $logger;
|
||||
|
||||
public function init()
|
||||
{
|
||||
if (Zend_Registry::isRegistered('logger')) {
|
||||
$this->logger = Zend_Registry::get('logger');
|
||||
}
|
||||
|
||||
// --- Theme
|
||||
$this->theme = Zend_Registry::get('theme');
|
||||
}
|
||||
|
||||
public function indexAction(){}
|
||||
|
||||
public function kbisAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
|
||||
// --- Année de départ
|
||||
$user = new Scores_Utilisateur();
|
||||
$startYear = substr($user->identity->dateDebutCompte,0,4);
|
||||
if (empty($startYear)) {
|
||||
$startYear = 2006;
|
||||
}
|
||||
|
||||
// --- Date
|
||||
$date = new Zend_Date();
|
||||
$year = $date->toString('yyyy'); //Année en cours
|
||||
$month = $date->toString('MM'); //Mois en cours
|
||||
|
||||
$nbYear = $year - $startYear + 1;
|
||||
$selectYear = array();
|
||||
for( $i=0; $i<$nbYear; $i++ ) {
|
||||
$selectYear[] = $startYear + $i;
|
||||
}
|
||||
$this->view->Years = $selectYear;
|
||||
|
||||
$selectMonth = array('01','02','03','04','05','06','07','08','09','10','11','12');
|
||||
$this->view->Months = $selectMonth;
|
||||
|
||||
$selectedYear = $request->getParam('y', date('Y'));
|
||||
$this->view->year = $selectedYear;
|
||||
$selectedMonth = $request->getParam('m', date('m'));
|
||||
$this->view->month = $selectedMonth;
|
||||
// --- Fin Date
|
||||
|
||||
$ws = new Scores_Ws_Client('order', '0.1');
|
||||
$params = new stdClass();
|
||||
$params->month = $selectedYear.'-'.$selectedMonth;
|
||||
$response = $ws->getKbisList($params);
|
||||
if ($response === false) {
|
||||
$this->view->Error = true;
|
||||
} else {
|
||||
$this->view->Cmd = $response->item;
|
||||
}
|
||||
}
|
||||
|
||||
public function bilaninputAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
|
||||
// --- Année de départ
|
||||
$user = new Scores_Utilisateur();
|
||||
$startYear = substr($user->identity->dateDebutCompte,0,4);
|
||||
if (empty($startYear)) {
|
||||
$startYear = 2006;
|
||||
}
|
||||
|
||||
// --- Date
|
||||
$date = new Zend_Date();
|
||||
$year = $date->toString('yyyy'); //Année en cours
|
||||
$month = $date->toString('MM'); //Mois en cours
|
||||
|
||||
$nbYear = $year - $startYear + 1;
|
||||
$selectYear = array();
|
||||
for( $i=0; $i<$nbYear; $i++ ) {
|
||||
$selectYear[] = $startYear + $i;
|
||||
}
|
||||
$this->view->Years = $selectYear;
|
||||
|
||||
$selectMonth = array('01','02','03','04','05','06','07','08','09','10','11','12');
|
||||
$this->view->Months = $selectMonth;
|
||||
|
||||
$selectedYear = $request->getParam('y', date('Y'));
|
||||
$this->view->year = $selectedYear;
|
||||
$selectedMonth = $request->getParam('m', date('m'));
|
||||
$this->view->month = $selectedMonth;
|
||||
// --- Fin Date
|
||||
|
||||
$ws = new Scores_Ws_Client('order', '0.1');
|
||||
$params = new stdClass();
|
||||
$params->month = $selectedYear.'-'.$selectedMonth;
|
||||
$response = $ws->getBilanInputList($params);
|
||||
|
||||
if ($response === false) {
|
||||
$this->view->Error = true;
|
||||
} else {
|
||||
$this->view->Cmd = $response->item;;
|
||||
}
|
||||
}
|
||||
|
||||
public function greffebilanAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
|
||||
// --- Année de départ
|
||||
$user = new Scores_Utilisateur();
|
||||
$startYear = substr($user->identity->dateDebutCompte,0,4);
|
||||
if (empty($startYear)) {
|
||||
$startYear = 2006;
|
||||
}
|
||||
|
||||
// --- Date
|
||||
$date = new Zend_Date();
|
||||
$year = $date->toString('yyyy'); //Année en cours
|
||||
$month = $date->toString('MM'); //Mois en cours
|
||||
|
||||
$nbYear = $year - $startYear + 1;
|
||||
$selectYear = array();
|
||||
for( $i=0; $i<$nbYear; $i++ ) {
|
||||
$selectYear[] = $startYear + $i;
|
||||
}
|
||||
$this->view->Years = $selectYear;
|
||||
|
||||
$selectMonth = array('01','02','03','04','05','06','07','08','09','10','11','12');
|
||||
$this->view->Months = $selectMonth;
|
||||
|
||||
$selectedYear = $request->getParam('y', date('Y'));
|
||||
$this->view->year = $selectedYear;
|
||||
$selectedMonth = $request->getParam('m', date('m'));
|
||||
$this->view->month = $selectedMonth;
|
||||
// --- Fin Date
|
||||
|
||||
$ws = new Scores_Ws_Client('order', '0.1');
|
||||
$params = new stdClass();
|
||||
$params->month = $selectedYear.'-'.$selectedMonth;
|
||||
$response = $ws->getBilanList($params);
|
||||
|
||||
if ($response === false) {
|
||||
$this->view->Error = true;
|
||||
} else {
|
||||
$this->view->Cmd = $response->item;;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function greffeacteAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
|
||||
// --- Année de départ
|
||||
$user = new Scores_Utilisateur();
|
||||
$startYear = substr($user->identity->dateDebutCompte,0,4);
|
||||
if (empty($startYear)) {
|
||||
$startYear = 2006;
|
||||
}
|
||||
|
||||
// --- Date
|
||||
$date = new Zend_Date();
|
||||
$year = $date->toString('yyyy'); //Année en cours
|
||||
$month = $date->toString('MM'); //Mois en cours
|
||||
|
||||
$nbYear = $year - $startYear + 1;
|
||||
$selectYear = array();
|
||||
for( $i=0; $i<$nbYear; $i++ ) {
|
||||
$selectYear[] = $startYear + $i;
|
||||
}
|
||||
$this->view->Years = $selectYear;
|
||||
|
||||
$selectMonth = array('01','02','03','04','05','06','07','08','09','10','11','12');
|
||||
$this->view->Months = $selectMonth;
|
||||
|
||||
$selectedYear = $request->getParam('y', date('Y'));
|
||||
$this->view->year = $selectedYear;
|
||||
$selectedMonth = $request->getParam('m', date('m'));
|
||||
$this->view->month = $selectedMonth;
|
||||
// --- Fin Date
|
||||
|
||||
$ws = new Scores_Ws_Client('order', '0.1');
|
||||
$params = new stdClass();
|
||||
$params->month = $selectedYear.'-'.$selectedMonth;
|
||||
$response = $ws->getActeList($params);
|
||||
|
||||
if ($response === false) {
|
||||
$this->view->Error = true;
|
||||
} else {
|
||||
$this->view->Cmd = $response->item;;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function assostatutAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
|
||||
// --- Année de départ
|
||||
$user = new Scores_Utilisateur();
|
||||
$startYear = substr($user->identity->dateDebutCompte,0,4);
|
||||
if (empty($startYear)) {
|
||||
$startYear = 2006;
|
||||
}
|
||||
|
||||
// --- Date
|
||||
$date = new Zend_Date();
|
||||
$year = $date->toString('yyyy'); //Année en cours
|
||||
$month = $date->toString('MM'); //Mois en cours
|
||||
|
||||
$nbYear = $year - $startYear + 1;
|
||||
$selectYear = array();
|
||||
for( $i=0; $i<$nbYear; $i++ ) {
|
||||
$selectYear[] = $startYear + $i;
|
||||
}
|
||||
$this->view->Years = $selectYear;
|
||||
|
||||
$selectMonth = array('01','02','03','04','05','06','07','08','09','10','11','12');
|
||||
$this->view->Months = $selectMonth;
|
||||
|
||||
$selectedYear = $request->getParam('y', date('Y'));
|
||||
$this->view->year = $selectedYear;
|
||||
$selectedMonth = $request->getParam('m', date('m'));
|
||||
$this->view->month = $selectedMonth;
|
||||
// --- Fin Date
|
||||
|
||||
}
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -1,253 +0,0 @@
|
||||
<?php
|
||||
class PrintController extends Zend_Controller_Action
|
||||
{
|
||||
protected $theme;
|
||||
|
||||
/**
|
||||
* Logger
|
||||
* @var \Monolog\Logger
|
||||
*/
|
||||
protected $logger;
|
||||
|
||||
public function init()
|
||||
{
|
||||
if (Zend_Registry::isRegistered('logger')) {
|
||||
$this->logger = Zend_Registry::get('logger');
|
||||
}
|
||||
|
||||
// --- Theme
|
||||
$this->theme = Zend_Registry::get('theme');
|
||||
}
|
||||
|
||||
/**
|
||||
* Renvoie les paramètres pour l'impression
|
||||
*/
|
||||
protected function pageParams($fichierPart)
|
||||
{
|
||||
$elements = explode('-', $fichierPart);
|
||||
$controller = $elements[0];
|
||||
$action = $elements[1];
|
||||
$params = array();
|
||||
switch($controller){
|
||||
case 'identite':
|
||||
case 'dirigeant':
|
||||
$params['siret'] = $elements[2];
|
||||
$params['id'] = $elements[3];
|
||||
break;
|
||||
case 'finance':
|
||||
switch($action){
|
||||
case 'synthese':
|
||||
case 'bilan':
|
||||
$params['typeBilan'] = $elements[4];
|
||||
break;
|
||||
case 'ratios':
|
||||
$params['typeBilan'] = $elements[4];
|
||||
$params['mil'] = $elements[5];
|
||||
break;
|
||||
case 'liasse':
|
||||
$params['date'] = $elements[3];
|
||||
break;
|
||||
}
|
||||
$params['siret'] = $elements[2];
|
||||
$params['id'] = $elements[3];
|
||||
break;
|
||||
case 'juridique':
|
||||
switch($action){
|
||||
case 'annonces':
|
||||
$params['siret'] = $elements[2];
|
||||
$params['id'] = $elements[3];
|
||||
$params['idAnn'] = $elements[4];
|
||||
$params['vue'] = $elements[5];
|
||||
$params['p'] = $elements[6];
|
||||
break;
|
||||
case 'infosreg':
|
||||
case 'conventions':
|
||||
$params['siret'] = $elements[2];
|
||||
$params['id'] = $elements[3];
|
||||
break;
|
||||
case 'competences':
|
||||
$params['siret'] = $elements[2];
|
||||
$params['id'] = $elements[3];
|
||||
$params['type'] = $elements[4];
|
||||
break;
|
||||
case 'marques':
|
||||
$params['siret'] = $elements[2];
|
||||
$params['id'] = $elements[3];
|
||||
$params['idObject'] = $elements[4];
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 'evaluation':
|
||||
$params['siret'] = $elements[2];
|
||||
$params['id'] = $elements[3];
|
||||
switch($action){
|
||||
case 'scoreshisto':
|
||||
$params['type'] = $elements[4];
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 'giant':
|
||||
$params['Pays'] = $elements[2];
|
||||
$params['Type'] = $elements[3];
|
||||
$params['CompanyId'] = $elements[4];
|
||||
$params['Language'] = $elements[5];
|
||||
break;
|
||||
case 'surveillance':
|
||||
switch($action){
|
||||
case 'fichier':
|
||||
$params['nomFic'] = $elements[2];
|
||||
$params['filtre'] = $elements[3];
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 'worldcheck':
|
||||
$params['matchIdentifier'] = $elements[2];
|
||||
$params['nameType'] = $elements[3];
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
return array(
|
||||
'controller' => $controller,
|
||||
'action' => $action,
|
||||
'params' => $params
|
||||
);
|
||||
}
|
||||
|
||||
public function indexAction(){}
|
||||
|
||||
/**
|
||||
* Imprime la page en PDF
|
||||
* Par défaut, le contenu html a déjà été enregistré..
|
||||
* Mais si ce n'est pas le cas retrouver le contenu
|
||||
* Générer le PDF gràce à wkhtmltopdf
|
||||
* Attention à bien retrouver les css spécifiques pour l'impression
|
||||
* !! Cacher le menu display:none
|
||||
*/
|
||||
public function pdfAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$fichier = $request->getParam('fichier');
|
||||
|
||||
if (substr($fichier,-4)!='.pdf') {
|
||||
echo 'Fichier incorrect';
|
||||
exit;
|
||||
}
|
||||
$fichier = str_replace('.pdf', '', $fichier);
|
||||
|
||||
$c = Zend_Registry::get('config');
|
||||
$file = $c->profil->path->shared.'/pages/'.$fichier.'.html';
|
||||
if (!file_exists($file))
|
||||
{
|
||||
echo 'Fichier introuvable';
|
||||
exit;
|
||||
}
|
||||
|
||||
$pdf = new Scores_Wkhtml_Pdf();
|
||||
$pdf->setOptions('footer-right', 'Page [page] sur [toPage]');
|
||||
$pdf->setOptions('header-right', date('d/m/Y H:i:s'));
|
||||
$output_file = $pdf->exec($file);
|
||||
|
||||
//Envoi au navigateur
|
||||
if(!file_exists($output_file))
|
||||
{
|
||||
echo 'Impossible de générer le fichier PDF';
|
||||
exit;
|
||||
}
|
||||
|
||||
$content_type = 'application/pdf';
|
||||
$dest = 'I';
|
||||
switch($dest)
|
||||
{
|
||||
case 'I': //Send to standard output
|
||||
header('Content-type: '.$content_type.'');
|
||||
header('Content-Length: '.filesize($output_file));
|
||||
header('Content-MD5: '.base64_encode(md5_file($output_file)));
|
||||
header('Content-Disposition: inline; filename="'.basename($output_file).'"');
|
||||
header('Cache-Control: private, max-age=0, must-revalidate');
|
||||
header('Pragma: public');
|
||||
ini_set('zlib.output_compression','0');
|
||||
echo file_get_contents($output_file);
|
||||
exit; // nécessaire pour être certain de ne pas envoyer de fichier corrompu
|
||||
|
||||
break;
|
||||
|
||||
case 'D': //Download file
|
||||
header('Content-Tranfer-Encoding: none');
|
||||
header('Content-Length: '.filesize($output_file));
|
||||
header('Content-MD5: '.base64_encode(md5_file($output_file)));
|
||||
header('Content-Type: application/octetstream; name="'.basename($output_file).'"');
|
||||
header('Content-Disposition: attachment; filename="'.basename($output_file).'"');
|
||||
header('Cache-Control: private, max-age=0, must-revalidate');
|
||||
header('Pragma: public');
|
||||
ini_set('zlib.output_compression','0');
|
||||
//header('Date: '.gmdate(DATE_RFC1123););
|
||||
//header('Expires: '.gmdate(DATE_RFC1123, time()+1));
|
||||
//header('Last-Modified: '.gmdate(DATE_RFC1123, filemtime($output_file)));
|
||||
echo file_get_contents($output_file);
|
||||
exit; // nécessaire pour être certain de ne pas envoyer de fichier corrompu
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Imprime la page en activant le javascript d'impression
|
||||
* Il faut récupérer le controller et l'action du nom du fichier, ainsi que
|
||||
* les paramètres
|
||||
* Par exemple :
|
||||
* identite-fiche-siret-id.html
|
||||
*/
|
||||
public function ecranAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$fichier = $request->getParam('fichier', '');
|
||||
|
||||
if (substr($fichier,-5)!='.html') {
|
||||
echo 'Fichier incorrect';
|
||||
exit;
|
||||
}
|
||||
|
||||
$fichier = str_replace('.html', '', $fichier);
|
||||
$elements = $this->pageParams($fichier);
|
||||
if ($elements===false){
|
||||
exit;
|
||||
}
|
||||
$this->view->assign('controller', $elements['controller']);
|
||||
$this->view->assign('action', $elements['action']);
|
||||
$this->logger->info(print_r($elements['params'],1));
|
||||
$this->view->assign('params', $elements['params']);
|
||||
}
|
||||
|
||||
/**
|
||||
* Envoi le fichier XML de l'objet sérialiser sur la sortie standard
|
||||
*/
|
||||
public function xmlAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$this->_helper->viewRenderer->setNoRender(true);
|
||||
$request = $this->getRequest();
|
||||
$fichier = $request->getParam('fichier', '');
|
||||
|
||||
if (substr($fichier,-4)!='.xml') {
|
||||
echo 'Fichier incorrect.';
|
||||
exit;
|
||||
}
|
||||
|
||||
$c = Zend_Registry::get('config');
|
||||
$file = $c->profil->path->shared.'/files/'.$fichier;
|
||||
if (!file_exists($file)){
|
||||
echo "Erreur lors de la génération du fichier.";
|
||||
exit;
|
||||
}
|
||||
|
||||
header("Content-type: application/xml");
|
||||
header("Content-Disposition: attachement; filename=\"$fichier\"");
|
||||
flush();
|
||||
echo file_get_contents($file);
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,340 +0,0 @@
|
||||
<?php
|
||||
class TelechargementController extends Zend_Controller_Action
|
||||
{
|
||||
/**
|
||||
* Temps de mis en cache en heure
|
||||
* @var interger
|
||||
*/
|
||||
protected $filetime = 8;
|
||||
|
||||
/**
|
||||
* Répertoire de stockage pour le fichier
|
||||
* @var string
|
||||
*/
|
||||
protected $path = '';
|
||||
|
||||
/**
|
||||
* Logger
|
||||
* @var \Monolog\Logger
|
||||
*/
|
||||
protected $logger;
|
||||
|
||||
public function init()
|
||||
{
|
||||
if (Zend_Registry::isRegistered('logger')) {
|
||||
$this->logger = Zend_Registry::get('logger');
|
||||
}
|
||||
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$this->_helper->viewRenderer->setNoRender(true);
|
||||
|
||||
$c = Zend_Registry::get('config');
|
||||
$this->path = $c->profil->path->shared.'/files';
|
||||
|
||||
require_once 'Scores/WsScores.php';
|
||||
}
|
||||
|
||||
/**
|
||||
* Vérifie ou télécharge le fichier sur une url
|
||||
* @param string $url
|
||||
* URL of file to download
|
||||
* @param mixed $filename
|
||||
* Override filename
|
||||
*/
|
||||
protected function getFile($url, $filename=null)
|
||||
{
|
||||
if (!is_dir($this->path)) mkdir($this->path);
|
||||
|
||||
// --- Recuperation du nom du fichier
|
||||
if ( $filename === null ) {
|
||||
$tableau = explode('/', $url);
|
||||
$file = $tableau[sizeof($tableau) - 1];
|
||||
} else {
|
||||
$file = $filename;
|
||||
}
|
||||
|
||||
// --- Suppression du fichier si le temps de cache est depasse
|
||||
if ( $this->filetime == 0 && file_exists($this->path.'/'.$file) ){
|
||||
unlink($this->path.'/'.$file);
|
||||
} elseif ( file_exists($this->path.'/'.$file) ) {
|
||||
$dateFile = filemtime($this->path.'/'.$file);
|
||||
$now = mktime(date('G'), date('i'), date('s'),
|
||||
date('m') , date('d'), date('Y'));
|
||||
$maxTime = mktime(date('G',$dateFile)+$this->filetime, date('i',$dateFile),
|
||||
date('s',$dateFile), date('m',$dateFile),
|
||||
date('d',$dateFile), date('Y',$dateFile));
|
||||
if ( $maxTime - $now < 0 ) {
|
||||
unlink($this->path.'/'.$file);
|
||||
}
|
||||
}
|
||||
|
||||
// --- Lock file exist
|
||||
if ( file_exists($this->path.'/'.$file.'.lock') ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// --- Recuperation du fichier sur le serveur
|
||||
if ( file_exists($this->path.'/'.$file) ) {
|
||||
return $file;
|
||||
} else {
|
||||
// --- On check si le fichier est present sur l'url
|
||||
try {
|
||||
$client = new Zend_Http_Client($url);
|
||||
$client->setStream();
|
||||
$response = $client->request('GET');
|
||||
if ( $response->isSuccessful() ) {
|
||||
// --- Add a lock
|
||||
file_put_contents($this->path.'/'.$file.'.lock', '');
|
||||
if ( copy($response->getStreamName(), $this->path.'/'.$file) ) {
|
||||
// --- Remove lock
|
||||
unlink($this->path.'/'.$file.'.lock');
|
||||
return $file;
|
||||
}
|
||||
// --- Remove lock
|
||||
unlink($this->path.'/'.$file.'.lock');
|
||||
}
|
||||
return null;
|
||||
} catch (Zend_Http_Client_Exception $e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Télécharge la consommation client sous forme de fichier csv et affiche le lien
|
||||
*/
|
||||
public function consommationAction()
|
||||
{
|
||||
$this->filetime = 0;
|
||||
|
||||
$request = $this->getRequest();
|
||||
$start = $request->getParam('start', false);
|
||||
|
||||
//On souhaite récupérer l'url du fichier
|
||||
if ( $start == 1 ) {
|
||||
$mois = $request->getParam('mois');
|
||||
$detail = $request->getParam('detail', 0);
|
||||
$idClient = $request->getParam('idClient', 0);
|
||||
$login = $request->getParam('login', '');
|
||||
$all = $request->getParam('all', 0);
|
||||
|
||||
$date = substr($mois, 3, 4).substr($mois, 0, 2);
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
if (empty($login) && (!$user->isAdmin() && !$user->isSuperAdmin()) ) {
|
||||
$login = $user->getLogin();
|
||||
}
|
||||
|
||||
$ws = new WsScores();
|
||||
$reponse = $ws->getLogsClients($date, $detail, $idClient, $login, $all);
|
||||
|
||||
if ( !empty($reponse->result->Url) ) {
|
||||
echo $reponse->result->Url;
|
||||
} else {
|
||||
echo 'FALSE';
|
||||
}
|
||||
} else {
|
||||
$url = $request->getParam('url', '');
|
||||
$file = $this->getFile($url);
|
||||
|
||||
// --- En attente
|
||||
if ( $file === null ) {
|
||||
echo '';
|
||||
}
|
||||
// --- Fichier en erreur
|
||||
elseif ( $file === false ) {
|
||||
echo 'Erreur lors du chargement du fichier.';
|
||||
}
|
||||
// --- Fichier disponible
|
||||
elseif ( file_exists($this->path.'/'.$file) ) {
|
||||
echo '<u><a title="Télécharger le fichier"'.
|
||||
' target="_blank" href="'.$this->view->url(array('module'=>'file', 'controller'=>'index',
|
||||
'action'=>'consommation', 'q'=>$file), 'default', true).
|
||||
'">Cliquez-ici pour télécharger le fichier.</a></u>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Télécharge les surveillances sous forme de fichier csv et affiche le lien
|
||||
*/
|
||||
public function surveillanceAction()
|
||||
{
|
||||
$this->filetime = 4;
|
||||
|
||||
$request = $this->getRequest();
|
||||
$start = $request->getParam('start', false);
|
||||
|
||||
// --- Get File Url
|
||||
if ( $start == 1) {
|
||||
$source = $request->getParam('source', '');
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
$login = $user->getLogin();
|
||||
$idClient = $user->getIdClient();
|
||||
|
||||
$ws = new WsScores();
|
||||
$reponse = $ws->getListeSurveillancesCsv($source, $login, $idClient);
|
||||
if ( !empty($reponse->result->Url) ) {
|
||||
echo $reponse->result->Url;
|
||||
} else {
|
||||
echo 'FALSE';
|
||||
}
|
||||
}
|
||||
// --- Get File
|
||||
else {
|
||||
$url = $request->getParam('url', '');
|
||||
$file = $this->getFile($url);
|
||||
|
||||
// --- En attente
|
||||
if ( $file === null ) {
|
||||
echo '';
|
||||
}
|
||||
// --- Fichier en erreur
|
||||
elseif ( $file === false ) {
|
||||
echo 'Erreur lors du chargement du fichier.';
|
||||
}
|
||||
// --- Fichier disponible
|
||||
elseif ( file_exists($this->path.'/'.$file) ) {
|
||||
echo '<u><a title="Télécharger le fichier"'.
|
||||
' target="_blank" href="'.$this->view->url(array('module'=>'file', 'controller'=>'index',
|
||||
'action'=>'surveillance', 'q'=>$file), 'default', true).
|
||||
'">Cliquez-ici pour télécharger le fichier.</a></u>';
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Télécharge le portefeuille sous forme de fichier csv et affiche le lien
|
||||
* Enter description here ...
|
||||
*/
|
||||
public function portefeuilleAction()
|
||||
{
|
||||
$this->filetime = 4;
|
||||
|
||||
$request = $this->getRequest();
|
||||
$start = $request->getParam('start', false);
|
||||
|
||||
if ($start==1) {
|
||||
$user = new Scores_Utilisateur();
|
||||
$login = $user->getLogin();
|
||||
$idClient = $user->getIdClient();
|
||||
|
||||
$ws = new WsScores();
|
||||
$reponse = $ws->getPortefeuilleCsv($login, $idClient);
|
||||
|
||||
if ( !empty($reponse->result->Url) ) {
|
||||
echo $reponse->result->Url;
|
||||
} else {
|
||||
echo 'FALSE';
|
||||
}
|
||||
|
||||
} else {
|
||||
$url = $request->getParam('url', '');
|
||||
$file = $this->getFile($url);
|
||||
|
||||
// --- En attente
|
||||
if ( $file === null ) {
|
||||
echo '';
|
||||
}
|
||||
// --- Fichier en erreur
|
||||
elseif ( $file === false ) {
|
||||
echo 'Erreur lors du chargement du fichier.';
|
||||
}
|
||||
// --- Fichier disponible
|
||||
elseif ( file_exists($this->path.'/'.$file) ) {
|
||||
echo '<u><a title="Télécharger le fichier"'.
|
||||
' target="_blank" href="'.$this->view->url(array('module'=>'file', 'controller'=>'index',
|
||||
'action'=>'portefeuille', 'q'=>$file), 'default', true).
|
||||
'">Cliquez-ici pour télécharger le fichier.</a></u>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Download pdf of bodacc history
|
||||
*/
|
||||
public function histopdfAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
|
||||
$q = $request->getParam('q', '');
|
||||
$host = base64_decode($request->getParam('host', ''));
|
||||
|
||||
//Authenticate info
|
||||
$auth = Zend_Auth::getInstance();
|
||||
$identity = $auth->getIdentity();
|
||||
$authinfo = '/login/'.$identity->username.'/hach/'.$identity->password;
|
||||
$url = $host.$authinfo.'/q/'.$q;
|
||||
|
||||
$this->logger->info($url);
|
||||
|
||||
$file = $this->getFile($url, uniqid('histo-').'.pdf');
|
||||
|
||||
// --- En attente
|
||||
if ( $file === null ) {
|
||||
echo '';
|
||||
}
|
||||
// --- Fichier en erreur
|
||||
elseif ( $file === false ) {
|
||||
echo 'Erreur lors du chargement du fichier.';
|
||||
}
|
||||
// --- Fichier disponible
|
||||
elseif ( file_exists($this->path.'/'.$file) ) {
|
||||
if (filesize($this->path.'/'.$file) > 0) {
|
||||
echo '<u><a title="Télécharger le fichier" target="_blank" href="'.$this->view->url(array('module'=>'file',
|
||||
'controller'=>'bodacc', 'action'=>'histo', 'q'=>$file), 'default', true).
|
||||
'">Cliquez-ici pour télécharger le fichier.</a></u>';
|
||||
} else {
|
||||
echo "Erreur lors du téléchargement du fichier.";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Download bilan pdf file
|
||||
*/
|
||||
public function bilanAction()
|
||||
{
|
||||
$this->filetime = 40;
|
||||
|
||||
$request = $this->getRequest();
|
||||
$siren = $request->getParam('siren');
|
||||
$dateCloture = $request->getParam('dateCloture');
|
||||
$reference = $request->getParam('reference');
|
||||
|
||||
//Récupération du l'URL
|
||||
require_once 'Scores/WsScores.php';
|
||||
$ws = new WsScores();
|
||||
$url = $ws->getPiecesBilan($siren, 'T', $dateCloture, $reference);
|
||||
|
||||
//Téléchargement
|
||||
if( $url !== false) {
|
||||
$this->logger->info($url);
|
||||
$file = $this->getFile($url);
|
||||
$this->logger->info('File:'.$this->path.'/'.$file);
|
||||
// --- En attente
|
||||
if ( $file === null ) {
|
||||
echo '';
|
||||
}
|
||||
// --- Fichier en erreur
|
||||
elseif ( $file === false ) {
|
||||
echo 'Erreur lors du chargement du fichier.';
|
||||
}
|
||||
// --- Fichier disponible
|
||||
elseif ( file_exists($this->path.'/'.$file) ) {
|
||||
if (filesize($this->path.'/'.$file) > 0) {
|
||||
echo '<br/><u><a title="Télécharger le fichier" target="_blank" href="'.$this->view->url(array(
|
||||
'module'=>'file', 'controller'=>'greffe', 'action'=>'bilan', 'q'=>$file), 'default', true).
|
||||
'">Cliquez-ici pour télécharger le fichier.</a></u>';
|
||||
} else {
|
||||
echo "<br/>Erreur lors du téléchargement du fichier.";
|
||||
}
|
||||
}
|
||||
} else {
|
||||
echo "<br/>Erreur.";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -1,759 +0,0 @@
|
||||
<?php
|
||||
class UserController extends Zend_Controller_Action
|
||||
{
|
||||
protected $theme;
|
||||
|
||||
/**
|
||||
* Return a ramdom password
|
||||
* @param int $length
|
||||
* Length of the string
|
||||
* @param int $strength
|
||||
* $strength = 1:- 0-9
|
||||
* $strength = 2:- A-Z0-9
|
||||
* $strength = 3:- A-Za-z0-9
|
||||
* $strength = 4:- A-Za-z0-9 and # $ % &
|
||||
* $strength = 5:- A-Za-z0-9 and # $ % & = > ? @
|
||||
* @return string
|
||||
*/
|
||||
protected function randomPassword($length,$strength)
|
||||
{
|
||||
$char_sets=array('48-57','65-90','97-122','35-38','61-64');
|
||||
$new_password='';
|
||||
srand(microtime()*10000000);
|
||||
for($i=0;$i<$length;$i++){
|
||||
$random=rand(0,$strength-1);
|
||||
list($start,$end)=explode('-',$char_sets[$random]);
|
||||
$new_password.=chr(rand($start,$end));
|
||||
}
|
||||
return $new_password;
|
||||
}
|
||||
|
||||
/**
|
||||
* Logger
|
||||
* @var \Monolog\Logger
|
||||
*/
|
||||
protected $logger;
|
||||
|
||||
public function init()
|
||||
{
|
||||
if (Zend_Registry::isRegistered('logger')) {
|
||||
$this->logger = Zend_Registry::get('logger');
|
||||
}
|
||||
|
||||
// --- Theme
|
||||
$this->theme = Zend_Registry::get('theme');
|
||||
|
||||
require_once 'Scores/WsScores.php';
|
||||
}
|
||||
|
||||
/**
|
||||
* Affiche le fomulaire d'edition des paramètres utilisateur
|
||||
*/
|
||||
public function indexAction()
|
||||
{
|
||||
$this->view->headLink()->appendStylesheet($this->theme->pathStyle.'/user.css', 'all');
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
|
||||
if (!$user->checkPerm('MONPROFIL')){
|
||||
$this->forward('perms', 'error');
|
||||
}
|
||||
|
||||
$this->view->assign('device_type', $user->getBrowserInfo()->mobile);
|
||||
$this->view->assign('browser_info', $user->getBrowserInfo()->name.' '.$user->getBrowserInfo()->version);
|
||||
|
||||
$this->view->headScript()->appendFile($this->theme->pathScript.'/user.js', 'text/javascript');
|
||||
|
||||
$request = $this->getRequest();
|
||||
|
||||
$messages = '';
|
||||
$isProfilUpdated = false;
|
||||
$isPasswordUpdated = false;
|
||||
$updateResult = false;
|
||||
|
||||
$login = $request->getParam('login', '');
|
||||
$op = $request->getParam('op');
|
||||
|
||||
//Récupération des informations de l'identité
|
||||
$auth = Zend_Auth::getInstance();
|
||||
$identity = $auth->getIdentity();
|
||||
|
||||
//Save data
|
||||
if ( $request->isPost() ) {
|
||||
$options = $request->getParam('frmOptions', '');
|
||||
$action = $options['action'];
|
||||
|
||||
if ($login=='') $login = $options['login'];
|
||||
|
||||
//Enregistrement des données new & update
|
||||
if (in_array($action, array('new','update'))) {
|
||||
|
||||
if ( $options['changepwd'] != 1 ) {
|
||||
$options['password'] = '';
|
||||
}
|
||||
|
||||
if ( in_array($options['profil'], array('Administrateur', 'SuperAdministrateur'))
|
||||
&& !in_array('monprofil', $options['droits']) ) {
|
||||
$options['droits'][] = 'monprofil';
|
||||
}
|
||||
|
||||
if( !isset($options['profil']) ) {
|
||||
$options['profil'] = 'Utilisateur';
|
||||
}
|
||||
$ws = new WsScores();
|
||||
$this->logger->info('setInfosLogin');
|
||||
$this->logger->info(print_r($options,1));
|
||||
$reponse = $ws->setInfosLogin($login, $action, $options);
|
||||
$this->logger->info(print_r($response,1));
|
||||
|
||||
$isProfilUpdated = true;
|
||||
$message = 'Erreur lors de la mise à jour du compte !';
|
||||
if (is_string($reponse)) {
|
||||
$message = $reponse;
|
||||
} elseif ($reponse){
|
||||
$updateResult = true;
|
||||
$message = 'Compte mis à jour.';
|
||||
}
|
||||
}
|
||||
|
||||
// --- Write change in session
|
||||
if ($identity->idClient == $options['idClient'] && $identity->username == $login) {
|
||||
// --- Modification lors du changement de mot de passe
|
||||
if ($options['changepwd']==1 && $updateResult) {
|
||||
$identity->password = md5($login.'|'.$options['password']);
|
||||
$auth->getStorage()->write($identity);
|
||||
}
|
||||
// --- Mise à jour du profil
|
||||
if ($isProfilUpdated && $updateResult) {
|
||||
$ws = new Scores_Ws_Client('gestion', '0.3');
|
||||
$adressIp = $_SERVER['REMOTE_ADDR'];
|
||||
$parameters = new stdClass();
|
||||
$parameters->login = $identity->username;
|
||||
$parameters->ipUtilisateur = $adressIp;
|
||||
$parameters->from = null;
|
||||
$InfosLogin = $ws->getInfosLogin($parameters);
|
||||
$identity = $user->updateProfil($InfosLogin);
|
||||
$auth->getStorage()->write($identity);
|
||||
}
|
||||
// --- Gestion mode edition en SESSION
|
||||
if ($action=='update') {
|
||||
$modeEdition = $request->getParam('modeEdition', false);
|
||||
if ( $modeEdition ) {
|
||||
$identity->modeEdition = true;
|
||||
$auth->getStorage()->write($identity);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( $isProfilUpdated || $isPasswordUpdated ) {
|
||||
$this->view->assign('message', $message);
|
||||
}
|
||||
|
||||
$isAdmin = false;
|
||||
if ( $identity->profil == 'Administrateur'
|
||||
|| $identity->profil == 'SuperAdministrateur' ) {
|
||||
$isAdmin = true;
|
||||
}
|
||||
$this->view->assign('isAdmin', $isAdmin);
|
||||
|
||||
$isSuperAdmin = false;
|
||||
if ($identity->profil == 'SuperAdministrateur') {
|
||||
$isSuperAdmin = true;
|
||||
}
|
||||
$this->view->assign('isSuperAdmin', $isSuperAdmin);
|
||||
|
||||
if ($op=='new')
|
||||
{
|
||||
$idClient = $request->getParam('idClient', '');
|
||||
if ($idClient == '') {
|
||||
$idClient = $identity->idClient;
|
||||
}
|
||||
$ws = new WsScores();
|
||||
$reponse = $ws->getNextLogin($idClient);
|
||||
$options->idClient = $idClient;
|
||||
if ($identity->idClient!=1 && $identity->profil!='SuperAdministrateur') {
|
||||
$options->profil = 'Utilisateur';
|
||||
}
|
||||
$this->view->assign('options', $options);
|
||||
|
||||
$this->view->assign('password', $this->randomPassword(10, 3));
|
||||
$this->view->assign('loginNew', $reponse->result->racine);
|
||||
$this->view->assign('droitsClients', explode(' ', strtolower($reponse->result->droitsClients)));
|
||||
$this->view->assign('action', 'new');
|
||||
$this->view->assign('pref', array());
|
||||
}
|
||||
elseif (!empty($op) || $op!='new')
|
||||
{
|
||||
if ( !empty($login) && $identity->username != $login ) {
|
||||
$ws = new Scores_Ws_Client('gestion', '0.3');
|
||||
$adressIp = $_SERVER['REMOTE_ADDR'];
|
||||
$parameters = new stdClass();
|
||||
$parameters->login = $login;
|
||||
$parameters->ipUtilisateur = $adressIp;
|
||||
$parameters->from = null;
|
||||
try {
|
||||
$reponse = $ws->getInfosLogin($parameters);
|
||||
if ($reponse === false) {
|
||||
$this->view->message = "Impossible d'afficher l'utilisateur.";
|
||||
} else {
|
||||
$this->view->assign('options', $reponse->result);
|
||||
$this->view->assign('loginVu', $reponse->result->login);
|
||||
$this->view->assign('droits', explode(' ', strtolower($reponse->result->droits)));
|
||||
$this->view->assign('droitsClients', explode(' ', strtolower($reponse->result->droitsClients)));
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
$this->view->message = $e->getMessage();
|
||||
}
|
||||
} else {
|
||||
$this->view->assign('options', $identity);
|
||||
$this->view->assign('loginVu', $identity->username);
|
||||
$this->view->assign('droits', explode(' ', strtolower($identity->droits)));
|
||||
$this->view->assign('droitsClients', explode(' ', strtolower($identity->droitsClients)));
|
||||
}
|
||||
$this->view->assign('loginNew', '');
|
||||
$this->view->assign('action', 'update');
|
||||
$this->view->assign('pref', explode(' ',$identity->pref));
|
||||
}
|
||||
|
||||
$ws = new WsScores();
|
||||
//Liste des catégories des accès
|
||||
$reponse = $ws->getCategory();
|
||||
$wscategory = $reponse->item;
|
||||
$this->view->assign('wscategory', $wscategory);
|
||||
|
||||
//Liste de tous les droits
|
||||
$listeDroits = $ws->getListeDroits();
|
||||
$droitsLib = array();
|
||||
foreach($listeDroits->item as $droit) {
|
||||
$droitsLib[strtoupper($droit->code)] = $droit->desc;
|
||||
}
|
||||
$this->view->assign('droitsLib', $droitsLib);
|
||||
|
||||
//Liste de toutes les préférences
|
||||
$listePrefs = $ws->getListePrefs();
|
||||
$prefsLib = array();
|
||||
foreach($listePrefs->item as $pref) {
|
||||
$prefsLib[strtoupper($pref->code)] = $pref->desc;
|
||||
}
|
||||
$this->view->assign('prefsLib', $prefsLib);
|
||||
}
|
||||
|
||||
/**
|
||||
* Display box to enter emails
|
||||
* One main email and two secondary
|
||||
* Email length 80 * 3 = 240
|
||||
* 255 chars is the length to store emails (email1;email2;email3)
|
||||
*/
|
||||
public function emailAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
|
||||
$request = $this->getRequest();
|
||||
|
||||
$check = $request->getParam('check');
|
||||
$email = $request->getParam('q');
|
||||
|
||||
if ( $check == 1) {
|
||||
|
||||
$this->view->assign('checkemail', true);
|
||||
|
||||
$valid = false;
|
||||
|
||||
$this->view->assign('msg', 'Email invalide !');
|
||||
|
||||
if (null !== $email) {
|
||||
$validateur = new Zend_Validate_EmailAddress();
|
||||
$valid = $validateur->isValid($email);
|
||||
|
||||
if ( $valid ) {
|
||||
$this->view->assign('msg', 'Modification effectué.');
|
||||
$this->view->assign('email', $email);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
$this->view->assign('email', $email);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function emailsecondaryAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
|
||||
$request = $this->getRequest();
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
|
||||
$mode = $request->getParam('mode');
|
||||
$this->view->assign('mode', $mode);
|
||||
$email = $request->getParam('email');
|
||||
$login = $request->getParam('login', $user->getLogin());
|
||||
$this->view->assign('login', $login);
|
||||
|
||||
$idClient = $request->getParam('client', $user->getIdClient());
|
||||
|
||||
if ( $mode === null ) {
|
||||
|
||||
$ws = new WsScores();
|
||||
$result = $ws->getGestionEmail($login);
|
||||
$emails = array();
|
||||
if (count($result->item)>0) {
|
||||
$emails = $result->item;
|
||||
}
|
||||
$this->view->assign('emails', $emails);
|
||||
|
||||
} elseif ( $mode == 'set' ) {
|
||||
|
||||
$this->view->assign('msg', 'Email invalide !');
|
||||
|
||||
if (null !== $email) {
|
||||
$validateur = new Zend_Validate_EmailAddress();
|
||||
$valid = $validateur->isValid($email);
|
||||
|
||||
if ( $valid ) {
|
||||
$ws = new WsScores();
|
||||
$result = $ws->setGestionEmail($email, $login);
|
||||
if ( $result ) {
|
||||
$this->view->assign('msg', 'Modification effectué.');
|
||||
$this->view->assign('email', $email);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
} elseif ( $mode == 'del' ) {
|
||||
|
||||
$this->view->assign('msg', 'Erreur lors de la suppression !');
|
||||
|
||||
$id = $request->getParam('id');
|
||||
|
||||
$ws = new WsScores();
|
||||
$result = $ws->setGestionEmail($email, $login, $id, $mode);
|
||||
if ( $result ) {
|
||||
$this->view->assign('msg', 'Adresse email supprimé.');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Téléchargement de la consommation au format CSV
|
||||
*/
|
||||
public function consoAction()
|
||||
{
|
||||
$this->view->headScript()->appendFile($this->theme->pathScript.'/conso.js', 'text/javascript');
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
|
||||
$request = $this->getRequest();
|
||||
$idClient = $request->getParam('idClient', $user->getIdClient());
|
||||
$login = $request->getParam('login', '');
|
||||
|
||||
$this->view->assign('idClient', $idClient);
|
||||
$this->view->assign('login', $login);
|
||||
$this->view->assign('profil', $user->getProfil());
|
||||
}
|
||||
|
||||
/**
|
||||
* Renvoi vers le formulaire utilisateur avec les paramètres de la requete
|
||||
*/
|
||||
public function editAction()
|
||||
{
|
||||
$params = $this->getRequest()->getParams();
|
||||
$this->_forward('index', 'user', null, $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* Suppression d'un utilisateur
|
||||
*/
|
||||
public function deleteAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$login = $request->getParam('login');
|
||||
$action = 'delete';
|
||||
$ws = new WsScores();
|
||||
$ws->setInfosLogin($login, $action);
|
||||
//Redirect
|
||||
$this->_forward('liste');
|
||||
}
|
||||
|
||||
/**
|
||||
* Activation d'un utilisateur
|
||||
*/
|
||||
public function enableAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$login = $request->getParam('login');
|
||||
$action = 'enable';
|
||||
$ws = new WsScores();
|
||||
$ws->setInfosLogin($login, $action);
|
||||
//Redirect
|
||||
$this->_forward('liste');
|
||||
}
|
||||
|
||||
/**
|
||||
* Désactivation d'un utilisateur
|
||||
*/
|
||||
public function disableAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$login = $request->getParam('login');
|
||||
$action = 'disable';
|
||||
$ws = new WsScores();
|
||||
$ws->setInfosLogin($login, $action);
|
||||
//Redirect
|
||||
$this->_forward('liste');
|
||||
}
|
||||
|
||||
/**
|
||||
* Méthode AJAX pour modifier le password d'un utilisateur
|
||||
*/
|
||||
public function changepwdAction()
|
||||
{
|
||||
//Redirect
|
||||
}
|
||||
|
||||
/**
|
||||
* Affiche la liste des utiliateurs
|
||||
*/
|
||||
public function listeAction()
|
||||
{
|
||||
$user = new Scores_Utilisateur();
|
||||
|
||||
$request = $this->getRequest();
|
||||
$idClient = $request->getParam('idClient', $user->getIdClient());
|
||||
|
||||
if (!$user->isSuperAdmin() && !$user->isAdmin()) {
|
||||
$this->renderScript('error/perms.phtml');
|
||||
}
|
||||
if ($user->isAdmin()){
|
||||
$idClient = $user->getIdClient();
|
||||
}
|
||||
$ws = new WsScores();
|
||||
$infos = $ws->getListeUtilisateurs($user->getLogin(), $idClient);
|
||||
$utilisateurs = $infos->result->item;
|
||||
$this->view->assign('utilisateurs', $utilisateurs);
|
||||
$this->view->assign('idClient', $idClient);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gestion de l'authentification
|
||||
*/
|
||||
public function loginAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$this->view->headTitle()->append('Connexion');
|
||||
$form = new Application_Form_Login();
|
||||
$this->view->form = $form;
|
||||
$request = $this->getRequest();
|
||||
if ( $request->isPost() ) {
|
||||
$formData = $request->getPost();
|
||||
if ($form->isValid($formData)) {
|
||||
$login = $form->getValue('login');
|
||||
$pass = $form->getValue('pass');
|
||||
|
||||
$auth = Zend_Auth::getInstance();
|
||||
$authAdapter = new Scores_Auth_Adapter_Ws($login, $pass);
|
||||
$result = $auth->authenticate($authAdapter);
|
||||
|
||||
//Auth is valid
|
||||
if ( $result->isValid() ) {
|
||||
|
||||
//Save browser information
|
||||
$screenSize = $request->getParam('screenSize', 'unknow');
|
||||
$user = new Scores_Utilisateur();
|
||||
$info = get_browser();
|
||||
$isMobile = ($info->ismobiledevice==1) ? 1 : 0;
|
||||
$user->setBrowserInfo($info->platform, $info->browser, $info->version, $isMobile, $screenSize);
|
||||
|
||||
//Get previous url if user has been disconnected
|
||||
$url = '';
|
||||
if (Zend_Session::namespaceIsset('login')){
|
||||
$session = new Zend_Session_Namespace('login');
|
||||
if (isset($session->url)) {
|
||||
$url = $session->url;
|
||||
}
|
||||
}
|
||||
if (!empty($url) && $url!='/user/login' && $url!='/user/logout' && $url!='/localauth'){
|
||||
$this->redirect($url);
|
||||
}
|
||||
$this->redirect('/');
|
||||
}
|
||||
//Auth error
|
||||
else {
|
||||
$this->view->message = '';
|
||||
$this->logger->info(print_r($result));
|
||||
foreach ($result->getMessages() as $message) {
|
||||
$this->view->message.= $message."<br/>";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// Pas de validation du formulaire
|
||||
else {
|
||||
$this->logger->info('DISPLAY');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gestion de la déconnexion
|
||||
*/
|
||||
public function logoutAction()
|
||||
{
|
||||
Zend_Auth::getInstance()->clearIdentity();
|
||||
$session = new Zend_Session_Namespace('wcheck');
|
||||
$session->unsetAll();
|
||||
$this->_helper->layout()->disableLayout();
|
||||
|
||||
$request = $this->getRequest();
|
||||
$message = $request->getParam('message');
|
||||
$this->view->assign('message', $message);
|
||||
|
||||
$ajax = $request->getParam('ajax', 0);
|
||||
$this->view->assign('ajax', $ajax);
|
||||
|
||||
$refresh = 5;
|
||||
|
||||
$url = 'http://'.$_SERVER['SERVER_NAME'].$this->view->url(array(
|
||||
'controller' => 'user',
|
||||
'action' => 'login',
|
||||
), 'default', true);
|
||||
|
||||
$this->view->assign('url', $url);
|
||||
|
||||
if ( $ajax == 0 ) {
|
||||
$this->view->assign('refresh', $refresh);
|
||||
$this->view->headMeta()->appendHttpEquiv('refresh', $refresh.'; url='.$url);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Erreur pour les connexions en ipOnly
|
||||
*/
|
||||
public function iponlyAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$request = $this->getRequest();
|
||||
$message = $request->getParam('message');
|
||||
$this->view->assign('message', $message);
|
||||
}
|
||||
|
||||
/**
|
||||
* Mettre à jour le mode edition en session sans refresh de la page
|
||||
*/
|
||||
public function editionsessionAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$this->_helper->viewRenderer->setNoRender(true);
|
||||
$request = $this->getRequest();
|
||||
$mode = $request->getParam('mode', 'false');
|
||||
$auth = Zend_Auth::getInstance();
|
||||
$identity = $auth->getIdentity();
|
||||
if ($identity->idClient == 1) {
|
||||
if ($mode == 'false') {
|
||||
$identity->modeEdition = false;
|
||||
echo 0;
|
||||
} else {
|
||||
$identity->modeEdition = true;
|
||||
echo 1;
|
||||
}
|
||||
$auth->getStorage()->write($identity);
|
||||
} else {
|
||||
echo 0;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Override email in surveillance portfolio
|
||||
*/
|
||||
public function emailsurveillanceAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$request = $this->getRequest();
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
|
||||
//Execute webservice operation
|
||||
if ( $request->isPost() ) {
|
||||
$email = trim($request->getParam('email'));
|
||||
if ($user->isAdmin() || $user->isSuperAdmin()) {
|
||||
$login = $request->getParam('login');
|
||||
}
|
||||
|
||||
if (empty($email)) {
|
||||
$result = "Aucun email défini!";
|
||||
} else if (empty($login)) {
|
||||
$result = "Aucun utilisateur défini!";
|
||||
} else {
|
||||
$ws = new WsScores();
|
||||
$result = $ws->setSurveillancesMail($login, $email);
|
||||
}
|
||||
|
||||
$this->view->assign('result', $result);
|
||||
}
|
||||
//Display form in dialog
|
||||
else {
|
||||
if ($user->isAdmin() || $user->isSuperAdmin()) {
|
||||
$login = $request->getParam('login');
|
||||
} else {
|
||||
$login = $user->getLogin();
|
||||
}
|
||||
$this->view->assign('login', $login);
|
||||
$this->view->assign('dialog',true);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Changer la langue de l'utilisateur
|
||||
*/
|
||||
public function langAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$this->_helper->viewRenderer->setNoRender(true);
|
||||
|
||||
$lang = $this->getRequest()->getParam('lang', null);
|
||||
|
||||
$auth = Zend_Auth::getInstance();
|
||||
$identity = $auth->getIdentity();
|
||||
|
||||
$identity->langtmp = $lang;
|
||||
|
||||
$auth->getStorage()->write($identity);
|
||||
}
|
||||
|
||||
/**
|
||||
* Changer le theme de l'utilisateur
|
||||
*/
|
||||
public function changethemeAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$this->_helper->viewRenderer->setNoRender(true);
|
||||
|
||||
$request = $this->getRequest();
|
||||
$nom = $request->getParam('nom', 'default');
|
||||
|
||||
$auth = Zend_Auth::getInstance();
|
||||
$identity = $auth->getIdentity();
|
||||
|
||||
$identity->theme = $nom;
|
||||
|
||||
$auth->getStorage()->write($identity);
|
||||
|
||||
//Rediriger vers l'écran de recherche
|
||||
$this->_redirect('/');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Display browser informations on a simple page
|
||||
*/
|
||||
public function browserAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$this->_helper->viewRenderer->setNoRender(true);
|
||||
|
||||
//Load bootstrap
|
||||
$bootstrap = Zend_Controller_Front::getInstance()->getParam('bootstrap');
|
||||
|
||||
//Get useragent and device informations
|
||||
$userAgent = $bootstrap->getResource('useragent');
|
||||
$device = $userAgent->getDevice();
|
||||
|
||||
//Display
|
||||
echo "<pre>";
|
||||
print_r(get_browser());
|
||||
print_r($device->getAllFeatures());
|
||||
echo "</pre>";
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends email to the specific client, who requests for forgotten password
|
||||
*/
|
||||
public function motpasseAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$name = 'Identifiants oubliés ?';
|
||||
$params = array(
|
||||
'identifiant' => '',
|
||||
'telephone' => '',
|
||||
'email' => '',
|
||||
'nom' => '',
|
||||
'prenom' => '',
|
||||
'fonction' => '',
|
||||
'service' => '',
|
||||
'rsociale' => '',
|
||||
);
|
||||
|
||||
$this->_helper->layout()->disableLayout();
|
||||
if ( $request->isPost() ) {
|
||||
$params = $request->getParams();
|
||||
$message = '';
|
||||
|
||||
$paramlist = array(
|
||||
'telephone' => 'Numéro de téléphone direct',
|
||||
'email' => 'Adresse email',
|
||||
'nom' => 'Nom',
|
||||
'prenom' => 'Prénom',
|
||||
'fonction' => 'Fonction',
|
||||
'service' => 'Service',
|
||||
'rsociale' => 'Sociale',
|
||||
);
|
||||
|
||||
foreach ($paramlist as $item => $val) {
|
||||
if (!isset($params[$item])) {
|
||||
$message .= "Champs $val vide !<br/>";
|
||||
}
|
||||
}
|
||||
|
||||
$validator = new Zend_Validate_EmailAddress();
|
||||
if (isset($params['email'])){
|
||||
if (!$validator->isValid($params['email'])) {
|
||||
$message .="Adresse email invalide ! <br/>";
|
||||
}
|
||||
}
|
||||
|
||||
if ($message == '') {
|
||||
|
||||
$mailbody = '<style type="text/css">table {font-family:Arial, Helvetica, sans-serif; font-size: 12px; width: 550px; border: none;}table td{padding: 4px 8px;}</style>';
|
||||
$mailbody .= "Demande d'envoi des identifiants.<br /><br />";
|
||||
$mailbody .= "L'un de nos clients a égaré son(ses) identifiant(s).<br />";
|
||||
$mailbody .= "Via notre lien -identifiants oubliés- il a effectué une demande de transmission de ces codes.<br />";
|
||||
$mailbody .= "<p>A l'aide des informations ci-dessous, merci de retrouver ces codes et les lui envoyer par email.</p>";
|
||||
$mailbody .= "<table><tr bgcolor='#eeeeee'><td width='200px'><strong>Identifiant :</strong></td><td>".$params['identifiant']."</td></tr>";
|
||||
$mailbody .= "<tr><td><strong>Adresse email:</strong></td><td>".$params['email']."</td></tr>";
|
||||
$mailbody .= "<tr bgcolor='#eeeeee'><td><strong>Numéro de téléphone direct:</strong></td><td>".$params['telephone']."</td></tr>";
|
||||
$mailbody .= "<tr><td><strong>Nom:</strong></td><td>".$params['nom']."</td></tr>";
|
||||
$mailbody .= "<tr bgcolor='#eeeeee'><td><strong>Prénom:</strong></td><td>".$params['prenom']."</td></tr>";
|
||||
$mailbody .= "<tr><td><strong>Fonction:</strong></td><td>".$params['fonction']."</td></tr>";
|
||||
$mailbody .= "<tr bgcolor='#eeeeee'><td><strong>Service:</strong></td><td>".$params['service']."</td></tr>";
|
||||
$mailbody .= "<tr><td><strong>Dénomination Sociale:</strong></td><td>".$params['rsociale']."</td></tr></table>";
|
||||
$mailbody .= "<p>Si les informations fournies ne permettent pas d'identifier correctement l'utilisateur, ";
|
||||
$mailbody .= "merci d'émettre un message sur le mail communiquer en précisant que \"Les éléments confiés ne permettent pas d'identifier l'utilisateur ";
|
||||
$mailbody .= "et par conséquence de vous délivrer les codes d'accès demandés\".<br />";
|
||||
$mailbody .= "Aussi nous vous invitons à vous rapprocher de votre interlocuteur commercial habituel ";
|
||||
$mailbody .= "ou de votre responsable suivi relations Scores & Décisions au sein de votre société.</p>";
|
||||
|
||||
$mail = new Scores_Mail_Method();
|
||||
$mail->setSubject("Demande d'envoi des identifiants");
|
||||
$mail->setBodyHtmlC($mailbody);
|
||||
$mail->setFromKey('supportdev');
|
||||
$mail->addToKey('support');
|
||||
$mail->setReplyTo($params['email']);
|
||||
try {
|
||||
$mail->execute();
|
||||
$this->view->assign('sendEmail' , true);
|
||||
}
|
||||
catch ( Zend_Mail_Transport_Exception $e ){
|
||||
$message = $e->getMessage();
|
||||
}
|
||||
|
||||
}
|
||||
$this->view->assign('message', $message);
|
||||
}
|
||||
}
|
||||
}
|
@ -1,342 +0,0 @@
|
||||
<?php
|
||||
class WorldcheckController extends Zend_Controller_Action
|
||||
{
|
||||
protected $theme;
|
||||
protected $wcConfig;
|
||||
|
||||
/**
|
||||
* Logger
|
||||
* @var \Monolog\Logger
|
||||
*/
|
||||
protected $logger;
|
||||
|
||||
public function init()
|
||||
{
|
||||
if (Zend_Registry::isRegistered('logger')) {
|
||||
$this->logger = Zend_Registry::get('logger');
|
||||
}
|
||||
|
||||
// --- Theme
|
||||
$this->theme = Zend_Registry::get('theme');
|
||||
|
||||
require_once 'WorldCheck/WsWorldCheck.php';
|
||||
require_once 'Scores/Cache.php';
|
||||
|
||||
$configWC = new Zend_Config_Ini(APPLICATION_PATH . '/../library/WorldCheck/applicationWC.ini');
|
||||
$this->wcConfig = $configWC->worldcheck->toArray();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get nameIdentifier and set all data into the session
|
||||
*/
|
||||
public function indexAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$param = new stdClass();
|
||||
$dirNom = $request->getParam('dirNom');
|
||||
$param->dirNom = ($dirNom)?$dirNom:$request->getParam('dirSociete');
|
||||
$param->dirPrenom = $request->getParam('dirPrenom');
|
||||
$param->dirType = $request->getParam('dirType');
|
||||
|
||||
$entityId = $request->getParam('entityId', null);
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
$wc = new WsWorldCheck();
|
||||
$wcLocal = new Application_Model_Worldcheck();
|
||||
|
||||
$param->idClient = $user->getIdClient();
|
||||
$param->login = $user->getLogin();
|
||||
$localDBParams = $wcLocal->getScreenerId($param);
|
||||
$param->matchCount = $localDBParams->matchCount;
|
||||
$param->nameIdentifier = $localDBParams->nameIdentifier;
|
||||
|
||||
if ($entityId===null) {
|
||||
//$this->_redirect('/worldcheck/list');
|
||||
$params = array(
|
||||
'nameIdentifier' => $param->nameIdentifier,
|
||||
'matchCount' => $param->matchCount
|
||||
);
|
||||
$this->forward('list', null, null, $params);
|
||||
} else {
|
||||
$id = $request->getParam('id', null);
|
||||
|
||||
$data = new stdClass();
|
||||
$data->nameIdentifier = $param->nameIdentifier;
|
||||
$data->matchType = 'WATCHLIST';
|
||||
$matchArr = $wc->getMatchesArrName($data);
|
||||
|
||||
$paramAssoc = new stdClass();
|
||||
$paramAssoc->matchIdentifier = $matchArr[$entityId];
|
||||
$paramAssoc->nameType = $param->dirType;
|
||||
|
||||
$nodeParam = $wc->getAssociates($paramAssoc);
|
||||
$wcLocal->setTree($nodeParam);
|
||||
|
||||
$this->redirect('/worldcheck/orgchildren/entityid/'.$entityId.'/id/'.$id);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* List results of WorldCheck search
|
||||
*/
|
||||
public function listAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
|
||||
$wc = new WsWorldCheck();
|
||||
$param = new stdClass();
|
||||
|
||||
$nameIdentifier = $request->getParam('nameIdentifier');
|
||||
$matchCount = $request->getParam('matchCount');
|
||||
$dirNom = $request->getParam('dirNom');
|
||||
$param->dirNom = ($dirNom)?$dirNom:$request->getParam('dirSociete');
|
||||
$param->dirPrenom = $request->getParam('dirPrenom');
|
||||
$param->dirType = $request->getParam('dirType');
|
||||
print_r($param);
|
||||
if ($matchCount!==0)
|
||||
{
|
||||
$summary = new stdClass();
|
||||
$summary->nameIdentifier = $nameIdentifier;
|
||||
$summary->matchType = 'WATCHLIST';
|
||||
|
||||
$cache = new Cache();
|
||||
$unfilteredWC = $cache->wcCache($this->wcConfig['cachedir'], $wc, "getSummariesArr", $summary, $nameIdentifier);
|
||||
|
||||
//check if display all results (search by lastName), or filtered results (search by fullName)
|
||||
$filtre = $request->getParam('filtre', 'tout');
|
||||
$resultWC = $unfilteredWC;
|
||||
if ($filtre=='filtered')
|
||||
{
|
||||
//get results by fullName (lastName and givenName)
|
||||
$filteredWC = array();
|
||||
foreach ($unfilteredWC as $entityId=>$shortData)
|
||||
{
|
||||
if (stripos($shortData->lastName, $param->dirNom)!==false || stripos($param->dirNom, $shortData->lastName)!==false) {
|
||||
if (stripos($shortData->givenName, $param->dirPrenom)!==false || stripos($param->dirPrenom, $shortData->givenName)!==false) {
|
||||
$filteredWC[$entityId] = $shortData;
|
||||
}
|
||||
}
|
||||
}
|
||||
//end
|
||||
$resultWC = $filteredWC;
|
||||
}
|
||||
|
||||
$filtres = array(
|
||||
'tout' => array(
|
||||
'txt'=>'Résultats par Nom',
|
||||
'select'=>'',
|
||||
'value' => 2,
|
||||
),
|
||||
'filtered' => array(
|
||||
'txt'=>'Résultats précis',
|
||||
'select'=>'',
|
||||
'value' => 1,
|
||||
)
|
||||
);
|
||||
|
||||
$filtres[$filtre]['select'] = ' selected';
|
||||
|
||||
$this->view->assign('filtres', $filtres);
|
||||
//end
|
||||
|
||||
//paginate results list
|
||||
Zend_View_Helper_PaginationControl::setDefaultViewPartial('worldcheck/controls.phtml');
|
||||
$paginator = Zend_Paginator::factory($resultWC);
|
||||
$this->view->paginator = $paginator;
|
||||
$itemCount = $this->wcConfig['page']['items'];
|
||||
$page = $this->_getParam('page', 1);
|
||||
$ol_number = ($page-1)*$itemCount+1;
|
||||
|
||||
$paginator->setCurrentPageNumber($page);
|
||||
$paginator->setItemCountPerPage($itemCount);
|
||||
|
||||
$this->view->assign('ol_number', $ol_number);
|
||||
$this->view->assign('itemCount', $itemCount);
|
||||
//end
|
||||
|
||||
$this->view->assign('resultWC', $resultWC);
|
||||
$this->view->assign('allMatches', $wc->getMatchesArrName($summary));
|
||||
$this->view->assign('param', $param);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Affichage le quantite des occurences de la bdd en popup.
|
||||
*/
|
||||
public function occurenceAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
|
||||
if ( $request->isXmlHttpRequest() ) {
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$data = new stdClass();
|
||||
if ($request->getParam('dirType')) $data->Type = $request->getParam('dirType');
|
||||
if ($request->getParam('dirNom')) $data->Nom = $request->getParam('dirNom');
|
||||
if ($request->getParam('dirPrenom')) $data->Prenom = $request->getParam('dirPrenom');
|
||||
if ($request->getParam('dirSociete')) $data->Societe = $request->getParam('dirSociete');
|
||||
|
||||
$data->Soc = new stdClass();
|
||||
if ($request->getParam('dirSocNom2')) $data->Soc->Nom2 = $request->getParam('dirSocNom2');
|
||||
if ($request->getParam('dirSocNomLong')) $data->Soc->NomLong = $request->getParam('dirSocNomLong');
|
||||
if ($request->getParam('dirSocCommercial')) $data->Soc->NomCommercial = $request->getParam('dirSocCommercial');
|
||||
if ($request->getParam('dirSocSigle')) $data->Soc->Sigle = $request->getParam('dirSocSigle');
|
||||
if ($request->getParam('dirSocSigleLong')) $data->Soc->SigleLong = $request->getParam('dirSocSigleLong');
|
||||
if ($request->getParam('dirSocEnseigne')) $data->Soc->Enseigne = $request->getParam('dirSocEnseigne');
|
||||
if ($request->getParam('dirSocEnseigneLong')) $data->Soc->EnseigneLong = $request->getParam('dirSocEnseigneLong');
|
||||
|
||||
$wcLocal = new Application_Model_Worldcheck();
|
||||
$this->view->assign('occurrence', $wcLocal->getCount($data));
|
||||
$this->view->assign('data', $data);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Affichage le resultat de recherche en WorldCheck
|
||||
*/
|
||||
public function matchcontentAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
|
||||
$param = new stdClass();
|
||||
$param->matchIdentifier = $request->getParam('matchIdentifier');
|
||||
$param->nameType = $request->getParam('nameType');
|
||||
|
||||
$wc = new WsWorldCheck();
|
||||
$nodeParam = $wc->getAssociates($param);
|
||||
|
||||
$db = new Application_Model_Worldcheck();
|
||||
$db->setTree($nodeParam);
|
||||
|
||||
$cache = new Cache();
|
||||
$content = $cache->wcCache($this->wcConfig['cachedir'], $wc, "getDetailsContent", $param, $param->matchIdentifier);
|
||||
|
||||
$this->view->assign('content', $content[0]);
|
||||
$this->view->assign('nameType', $param->nameType);
|
||||
$this->view->assign('exportObjet', $content[0]);
|
||||
}
|
||||
|
||||
/**
|
||||
* le Parent de l'organigramme des associés
|
||||
*/
|
||||
public function organigrammeAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$wc = new WsWorldCheck();
|
||||
|
||||
$request = $this->getRequest();
|
||||
$entityId = $request->getParam('entityid', null);
|
||||
|
||||
$wcLocal = new Application_Model_Worldcheck();
|
||||
$currentBranch = $wcLocal->getTree($entityId);
|
||||
|
||||
$primary = $currentBranch['primary'];
|
||||
|
||||
$parent = array();
|
||||
|
||||
$data = new stdClass();
|
||||
$data->title = $primary['fullName'];
|
||||
$data->icon = "/themes/default/images/worldcheck/".strtolower($primary['nameType']).".png";
|
||||
|
||||
$attr = new stdClass();
|
||||
$attr->id = uniqid('wc_');
|
||||
$attr->entityId = $primary['entityId'];
|
||||
$attr->nameType = $primary['nameType'];
|
||||
$attr->lastName = $primary['lastName'];
|
||||
$attr->givenName = $primary['givenName'];
|
||||
|
||||
$parent[] = array(
|
||||
"data" => $data,
|
||||
"attr" => $attr,
|
||||
"state" => "closed",
|
||||
"parent" => "#"
|
||||
);
|
||||
|
||||
$jData = json_encode($parent);
|
||||
$this->view->assign('data', $jData);
|
||||
}
|
||||
|
||||
/**
|
||||
* les associés du parent de l'organigramme
|
||||
*/
|
||||
public function orgchildrenAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$wc = new WsWorldCheck();
|
||||
|
||||
$request = $this->getRequest();
|
||||
$entityId = $request->getParam('entityid', null);
|
||||
$id = $request->getParam('id', null);
|
||||
|
||||
$wcLocal = new Application_Model_Worldcheck();
|
||||
$currentBranch = $wcLocal->getTree($entityId);
|
||||
|
||||
$associates = $currentBranch['associates'];
|
||||
|
||||
$children = array();
|
||||
|
||||
foreach ($associates as $associate) {
|
||||
|
||||
$data = new stdClass();
|
||||
$data->title = $associate['fullName'];
|
||||
$data->icon = "/themes/default/images/worldcheck/".strtolower($associate['nameType']).".png";
|
||||
|
||||
$attr = new stdClass();
|
||||
$attr->id = uniqid('wc_');
|
||||
$attr->entityId = $associate['entityId'];
|
||||
$attr->nameType = $associate['nameType'];
|
||||
$attr->lastName = $associate['lastName'];
|
||||
$attr->givenName = $associate['givenName'];
|
||||
|
||||
$children[] = array(
|
||||
"data" => $data,
|
||||
"attr" => $attr,
|
||||
"state" => "closed",
|
||||
"parent" => $id,
|
||||
);
|
||||
}
|
||||
|
||||
$jData = json_encode($children);
|
||||
$this->view->assign('data', $jData);
|
||||
}
|
||||
|
||||
/**
|
||||
* Affichage de l'information courte de chaque node dans le popup
|
||||
*/
|
||||
public function popupAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$request = $this->getRequest();
|
||||
$entityId = $request->getParam('entityId', null);
|
||||
$entityIdP = $request->getParam('entityIdP', null);
|
||||
|
||||
$wc = new WsWorldCheck();
|
||||
$user = new Scores_Utilisateur();
|
||||
|
||||
$paramP = new stdClass();
|
||||
$paramP->idClient = $user->getIdClient();
|
||||
$paramP->dirNom = $request->getParam('dirNomP');
|
||||
$paramP->dirPrenom = $request->getParam('dirPrenomP');
|
||||
$paramP->dirType = $request->getParam('dirTypeP');
|
||||
|
||||
$wcLocal = new Application_Model_Worldcheck();
|
||||
$result = $wcLocal->getScreenerId($paramP);
|
||||
|
||||
$data = new stdClass();
|
||||
$data->nameIdentifier = $result->nameIdentifier;
|
||||
$data->matchType = "WATCHLIST";
|
||||
$matches = $wc->getMatchesArrName($data);
|
||||
|
||||
$param = new stdClass();
|
||||
$param->matchIdentifier = $matches[$entityIdP];
|
||||
$param->nameType = $paramP->dirType;
|
||||
$associates = $wc->getAssociates($param);
|
||||
|
||||
foreach($associates['associates'] as $assoc)
|
||||
{
|
||||
if ($assoc['entityId']==$entityId)
|
||||
break;
|
||||
}
|
||||
|
||||
$this->view->assign('data', $assoc);
|
||||
}
|
||||
}
|
@ -1,108 +0,0 @@
|
||||
<?=$this->doctype();?>
|
||||
<html>
|
||||
<head>
|
||||
<?=$this->headMeta();?>
|
||||
<?=$this->headTitle();?>
|
||||
<?=$this->headStyle();?>
|
||||
<?=$this->headLink();?>
|
||||
<?=$this->headScript();?>
|
||||
<style>
|
||||
p { margin:10px 0;}
|
||||
div#content { float:none; width:auto;}
|
||||
</style>
|
||||
<script>
|
||||
$(function(){
|
||||
$('input[type=checkbox][name=accept]').click(function(e){
|
||||
$('form[name=cgu]').css('display', 'none');
|
||||
$('#msgsave').css('display', 'block');
|
||||
$('form[name=cgu]').submit();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="global">
|
||||
<div id="content">
|
||||
|
||||
<div id="center">
|
||||
|
||||
<h1>Conditions d’accès à l'extranet (comptes d'accès test et comptes payants)</h1>
|
||||
<div class="paragraph">
|
||||
<p>Ce site est destiné uniquement aux professionnels et non au grand public.</p>
|
||||
|
||||
<p>Ce site est destiné uniquement aux entreprises ayant une représentation juridique France,
|
||||
il a spécialement été conçu pour les professionnels français et ne peut être considéré comme une
|
||||
offre d’achat ou de vente, ni comme une incitation à l’achat ou à la vente dans toute autre
|
||||
juridiction que la France.</p>
|
||||
</div>
|
||||
|
||||
<h2>Mises en garde</h2>
|
||||
<div class="paragraph">
|
||||
<p>Les informations communiquées par l’intermédiaire de ce site Web ne vous sont communiquées
|
||||
qu’aux termes et conditions des présentes et ne sont destinées qu'à votre utilisation à des fins
|
||||
professionnelles et légitimes (les « fins autorisées »). Sans l’accord écrit de Scores & Décisions,
|
||||
vous n’êtes pas autorisé à stocker, télécharger, reproduire, vendre, redistribuer ou disposer des
|
||||
informations de toute manière ou à toute autre fin que celles autorisées.</p>
|
||||
|
||||
<p>La consultation ou la réception de documents n'entraîne aucun transfert de droit de propriété
|
||||
intellectuelle en faveur du Client. Ce dernier s'engage à ne pas rediffuser ou reproduire les
|
||||
données fournies autrement que pour son usage dans le cadre de la relation contractuelle établie ou
|
||||
le test entre Scores & Décisions SAS et "le Client".</p>
|
||||
|
||||
<p>Scores & Décisions garantit que les informations sont conforme à la réglementation en vigueur et
|
||||
notamment au Code de la Propriété Intellectuelle.</p>
|
||||
<p>La base de données Scores & Décisions est pour partie issue du RNCS de l'INSEE, de la DILA et
|
||||
de diverses collectes internes et privés.</p>
|
||||
|
||||
<p>Bien que Scores & Décisions utilise des procédures rigoureuses et mette en œuvre toutes les
|
||||
diligences requises par les usages de la profession pour tenir à jour la présente base de données
|
||||
et fournir des informations précises, les informations peuvent comporter une certaine marge d'erreur.</p>
|
||||
<p>En raison des conditions d'accès à l’information et autres aléas de traitements, les informations
|
||||
issue des sources privées sont données "en l'état" sans aucune garantie, ni quelconque force
|
||||
juridique ou opposabilité aux tiers. L'utilisateur recherche, traite et interprète les données sous
|
||||
sa propre responsabilité.</p>
|
||||
|
||||
Les informations présentées sur le présent service constituent des œuvres protégeables du Code la
|
||||
propriété intellectuelle, dont le producteur est seul auteur et propriétaire exclusif, toute
|
||||
retransmission d'information ou données à un "tiers, personne physique ou morale" pourra faire
|
||||
l'objet de poursuite par Scores & Décisions SAS le cas échéant. L'utilisateur final s'engage donc
|
||||
à faire un usage strictement personnel et professionnel de ces informations, et en aucun cas pour
|
||||
constituer des fichiers destinés notamment à la location ou à la (re)vente ou pour (re)diffuser ces
|
||||
informations à des tiers de façon payante ou même gracieuse. »
|
||||
|
||||
<p>Scores & Décisions se réserve le droit d’accorder ou de révoquer l’autorisation d’utiliser les
|
||||
sites scores-decisions.com à son entière discrétion dans le cadre d'un test. Bien que toutes les
|
||||
précautions raisonnables aient été prises pour veiller à l’exactitude, la sécurité et la
|
||||
confidentialité des informations disponibles par l’intermédiaire des sites Extranets
|
||||
scores-decisions.com, Scores & Décisions ne saurait cependant être tenue responsable des
|
||||
conséquences des agissements d’un utilisateur autorisé ou non autorisé. Scores & Décisions
|
||||
communique uniquement des informations, données identifiées et sourçables et issues de sources
|
||||
officielles et privées.</p>
|
||||
|
||||
<p>Les données communiquées dans les présentes et l’utilisation que vous en faites ultérieurement
|
||||
peuvent, le cas échéant, être soumises à certaines réglementations, conditions et restrictions
|
||||
externes légales ou autres. Toutes les utilisations que vous faites des informations doivent
|
||||
respecter les réglementations, conditions et restrictions applicables à la région ou au territoire
|
||||
où vous utilisez les informations des présentes ainsi que les présentes conditions d'utilisation.</p>
|
||||
|
||||
<form name="cgu" method="post" action="<?=$this->url(array('controller'=>'aide','action'=>'cgu'),null,true)?>">
|
||||
<p style="font-size:14px; font-weight:bold;">
|
||||
<input type="checkbox" value="1" name="accept" />
|
||||
Je certifie être un Professionnel (au sens visé ci-dessus) et avoir pris connaissance, compris et accepté les conditions d’accès et de mise en garde.
|
||||
</p>
|
||||
</form>
|
||||
|
||||
<p id="msgsave" style="display:none; font-size:14px; font-weight:bold;">Enregistrement de votre acceptation des CGU...</p>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
<?=$this->render('footer.phtml')?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,19 +0,0 @@
|
||||
<?php if ( count($this->nouveautes)>0 ) {?>
|
||||
<div style="position:absolute;width:680px;top:5px;" class="ui-state-highlight ui-corner-all">
|
||||
<p>
|
||||
<span style="float:left;margin-right:0.3em;" class="ui-icon ui-icon-info"></span>
|
||||
<strong>Nouveau !</strong>
|
||||
<?php $cpt = 0;?>
|
||||
<?php foreach ( $this->nouveautes as $nouveaute) {?>
|
||||
<a href="<?=$this->url(array('module'=>'file','controller'=>'index', 'action'=>'new',
|
||||
'q'=>$nouveaute->fichier))?>" target="_blank">
|
||||
<?=$nouveaute->intitule?></a>
|
||||
<?php $cpt++;?>
|
||||
<?php if ( $cpt < count($this->nouveautes) ) {?>,<?php }?>
|
||||
<?php }?>
|
||||
<br/>
|
||||
<span style="font-size:10px;">Cliquez sur les intitulés pour consulter le document,
|
||||
ou <a href="<?=$this->url(array('controller'=>'aide', 'action'=>'newliste'))?>">ici</a> pour retrouver la liste des modifications</span>
|
||||
</p>
|
||||
</div>
|
||||
<?php }?>
|
@ -1,42 +0,0 @@
|
||||
<style>
|
||||
table { width:100%; }
|
||||
table th { border:1px solid; font-weight:bold; padding:5px; }
|
||||
table tr { }
|
||||
table td { border:1px solid; padding:5px; }
|
||||
</style>
|
||||
|
||||
<div id="center">
|
||||
<h1>Nouveautés</h1>
|
||||
<div class="paragraph">
|
||||
<!-- Tri par date - Tri par catégorie -->
|
||||
</div>
|
||||
|
||||
<h2>Liste par date</h2>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>Intitulé</th>
|
||||
<th>Catégorie</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if ( count($this->nouveautes)>0 ){?>
|
||||
<?php foreach ( $this->nouveautes as $nouveau) {?>
|
||||
<tr>
|
||||
<td><?=substr($nouveau->date,8,2).'/'.substr($nouveau->date,5,2).'/'.substr($nouveau->date,0,4)?></td>
|
||||
<td>
|
||||
<a href="<?=$this->url(array('module'=>'file', 'controller'=>'index', 'action'=>'new',
|
||||
'q'=>$nouveau->fichier))?>" target="_blank">
|
||||
<?=$nouveau->intitule?></a>
|
||||
</td>
|
||||
<td><?=$nouveau->categorie?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
@ -1,96 +0,0 @@
|
||||
<?php echo $this->doctype(); ?>
|
||||
<html>
|
||||
<head>
|
||||
<?php echo $this->headMeta(); ?>
|
||||
<?php echo $this->headTitle(); ?>
|
||||
<?php echo $this->headStyle(); ?>
|
||||
<?php echo $this->headLink(); ?>
|
||||
<?php echo $this->headScript(); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="wrap">
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
|
||||
<h1 class="text-center">Scores & Decisions</h1>
|
||||
<br/>
|
||||
|
||||
<p>
|
||||
Scores & Decisions est l'éditeur d'une base de données de référence sur toutes les entreprises de France.
|
||||
Scores & Decisions est licencié officiel depuis 2008 pour la rediffusion du répertoire Sirène (INSEE), du RNCS
|
||||
Registre National du Commerce et des Sociétés (INPI) et des Journaux Officiels (DILA). Scores & Decisions est
|
||||
un service privé distinct des services publics cités.
|
||||
</p>
|
||||
<br/>
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<p class="text-primary">Spécialiste de l'information légales et financières sur les entreprises, Scores & Décisions vous permet par
|
||||
confirmation des éléments ci-contre d'accéder à toute sa base de données.</p>
|
||||
|
||||
<ul class="list-group">
|
||||
<li class="list-group-item">
|
||||
Télécharger nos Conditions Générales de Services
|
||||
<a href="<?=$this->baseUrl()?>/documents/inextenso_cgs.pdf" target="_blank">
|
||||
<span class="glyphicon glyphicon-file pull-right" aria-hidden="true"></span></a>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
Télécharger nos Conditions Tarifaires
|
||||
<a href="#" target="_blank">
|
||||
<span class="glyphicon glyphicon-file pull-right" aria-hidden="true"></span></a>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
Télécharger les coordonnées de vos contacts
|
||||
<a href="<?=$this->baseUrl()?>/documents/inextenso_contacts.pdf" target="_blank">
|
||||
<span class="glyphicon glyphicon-file pull-right" aria-hidden="true"></span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
|
||||
<h2>Trouvez les réponses à vos questions !</h2>
|
||||
|
||||
<ul class="arguments">
|
||||
|
||||
<li><strong>Disposez de certitudes sur l'identité de vos interlocuteurs, les liens financiers et les liens
|
||||
dirigeants... ></strong> Mon client a t il une existence légale ? Quels sont les derniers événements qui ont touché l'entreprise ?</li>
|
||||
|
||||
<li><strong>Évitez les mauvais payeurs ></strong>
|
||||
Ce prospect paye t'il rapidement, est-il en procédure collective ? Quel est sa rentabilité, son niveau de
|
||||
trésorerie ?</li>
|
||||
|
||||
<li><strong>Surveillez la solvabilité de vos partenaires, clients et fournisseurs ou concurrents ></strong>
|
||||
Mes clients sont ils viables dans la durée, puis je continuer et développer les ventes ?</li>
|
||||
|
||||
<li><strong>Découvrez la valeur de votre entreprises ou celles de vos concurrents ></strong> Mon entreprise a t elle de la
|
||||
valeur ? combien me coûterait le rachat d'un concurrent ?</li>
|
||||
|
||||
<li><strong>Trouvez vos futurs clients ></strong> Où sont et qui sont mes prospects ?</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<p>Les données agrégées sont officielles, exhaustives, fraîches et opposables aux tiers. Elles sont utilisées
|
||||
par des grands groupes et institutionnels dans des cadres contentieux, de conformité, de fraude...</p>
|
||||
|
||||
<?php if ($this->FormUrlParams) {?>
|
||||
<a type="button" class="btn btn-success btn-lg" href="<?=$this->url($this->FormUrlParams, 'default', true)?>">Accédez au site</a>
|
||||
<?php }?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php echo $this->inlineScript(); ?>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1,58 +0,0 @@
|
||||
<?php echo $this->doctype(); ?>
|
||||
<html>
|
||||
<head>
|
||||
<?php echo $this->headMeta(); ?>
|
||||
<?php echo $this->headTitle(); ?>
|
||||
<?php echo $this->headStyle(); ?>
|
||||
<?php echo $this->headLink(); ?>
|
||||
<?php echo $this->headScript(); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="wrap">
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-6"><img src="/themes/default/images/partner/<?=$this->logo?>"/></div>
|
||||
<div class="col-md-6">
|
||||
|
||||
<h2 class="form-signin-heading">Extranet <small>Scores & Décisions</small></h2>
|
||||
<?php
|
||||
//Error
|
||||
if ($this->Error) {?>
|
||||
<div style="text-align:center;"><p class="text-danger"><span>Une erreur est survenue</span></p></div>
|
||||
<?php
|
||||
}
|
||||
//Message
|
||||
else if ($this->Message) {?>
|
||||
<div style="text-align:center;"><p class="text-danger"><span><?=$this->Message?></span></p></div>
|
||||
<?php
|
||||
}
|
||||
//OK
|
||||
else if ($this->UserCreated) {?>
|
||||
<div>
|
||||
<p class="text-success">
|
||||
<span>Votre compte a été crée avec succès.</span>
|
||||
<a href="<?=$this->url(array_merge(array('controller'=> 'auth', 'action' => 'index'), $this->UrlArgs))?>">
|
||||
Cliquez ici pour être redirigé vers la page d'accueil.</a>
|
||||
</p>
|
||||
</div>
|
||||
<?php }?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
<div class="container">
|
||||
<p class="text-muted credit"> © <?=date('Y')?> <a href="http://www.scores-decisions.com">Scores & Décisions SAS</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php echo $this->inlineScript(); ?>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1,126 +0,0 @@
|
||||
<?php echo $this->doctype(); ?>
|
||||
<html>
|
||||
<head>
|
||||
<?php echo $this->headMeta(); ?>
|
||||
<?php echo $this->headTitle(); ?>
|
||||
<?php echo $this->headStyle(); ?>
|
||||
<?php echo $this->headLink(); ?>
|
||||
<?php echo $this->headScript(); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="wrap">
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<p><img src="/themes/default/images/partner/<?=$this->logo?>"/></p>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<p class="text-primary">Spécialiste de l'information légales et financières sur les entreprises, Scores & Décisions vous permet par
|
||||
confirmation des éléments ci-contre d'accéder à toute sa base de données.</p>
|
||||
|
||||
<ul class="list-group">
|
||||
<li class="list-group-item">
|
||||
Télécharger nos Conditions Générales de Services
|
||||
<a href="<?=$this->baseUrl()?>/documents/inextenso_cgs.pdf" target="_blank">
|
||||
<span class="glyphicon glyphicon-file pull-right" aria-hidden="true"></span></a>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
Télécharger nos Conditions Tarifaires
|
||||
<a href="#" target="_blank">
|
||||
<span class="glyphicon glyphicon-file pull-right" aria-hidden="true"></span></a>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
Télécharger les coordonnées de vos contacts
|
||||
<a href="<?=$this->baseUrl()?>/documents/inextenso_contacts.pdf" target="_blank">
|
||||
<span class="glyphicon glyphicon-file pull-right" aria-hidden="true"></span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
|
||||
<form method="post" action="<?=$this->url(array('controller'=>'auth', 'action'=>'userssocreate'), 'default', true)?>">
|
||||
<h2 class="form-signin-heading">Extranet <small>Scores & Décisions</small></h2>
|
||||
<?php
|
||||
//Error
|
||||
if ($this->Error) {?>
|
||||
<div style="text-align:center;"><p class="text-danger"><span>Une erreur est survenue</span></p></div>
|
||||
<?php
|
||||
}
|
||||
//Message
|
||||
else if ($this->Message) {?>
|
||||
<div style="text-align:center;"><p class="text-danger"><span><?=$this->Message?></span></p></div>
|
||||
<?php
|
||||
}
|
||||
//NoUser
|
||||
else if ($this->NoUser) {?>
|
||||
<div><p class="text-warning"><span>
|
||||
Votre compte n'existe pas encore. Compléter le formulaire puis valider pour créer votre compte.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
<?php foreach ($this->Params as $item) {?>
|
||||
<input type="hidden" name="P-<?=$item->label?>" value="<?=$item->value?>"/>
|
||||
<?php }?>
|
||||
|
||||
<input type="hidden" name="partner" value="<?=$this->FormPartner?>"/>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="identifiant">Identifiant</label>
|
||||
<input type="text" id="identifiant" value="<?=$this->FormIdentifiant?>" class="form-control" disabled>
|
||||
<input type="hidden" name="login" value="<?=$this->FormIdentifiant?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="email">Email</label>
|
||||
<input type="text" class="form-control" value="<?=$this->FormCourriel?>" disabled>
|
||||
<input type="hidden" name="email" value="<?=$this->FormCourriel?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="siret">SIRET</label>
|
||||
<input type="text" class="form-control" name="siret" value="<?=$this->FormSiret?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="nom">Nom</label>
|
||||
<input type="text" class="form-control" name="nom" value="<?=$this->FormNom?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="prenom">Prénom</label>
|
||||
<input type="text" class="form-control" name="prenom" value="<?=$this->FormPrenom?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="tel">Téléphone</label>
|
||||
<input type="text" class="form-control" name="tel" value="<?=$this->FormTel?>">
|
||||
</div>
|
||||
|
||||
<button class="btn btn-lg btn-primary btn-block clearfix" type="submit">Valider</button>
|
||||
|
||||
<?php }?>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
<div class="container">
|
||||
<p class="text-muted credit"> © <?=date('Y')?> <a href="http://www.scores-decisions.com">Scores & Décisions SAS</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php echo $this->inlineScript(); ?>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1,190 +0,0 @@
|
||||
<style>
|
||||
#identifiant {
|
||||
float:left;
|
||||
width:40%;
|
||||
}
|
||||
#modules {
|
||||
float:left;
|
||||
width:40%;
|
||||
}
|
||||
|
||||
#listeModules {
|
||||
position:absolute;
|
||||
width:500px;
|
||||
display:none;
|
||||
background-color:#FBF7AA;
|
||||
border:1px solid #000000;
|
||||
z-index:3;
|
||||
}
|
||||
|
||||
#closelisteModules {
|
||||
float:right;
|
||||
padding:0.4em 1em;
|
||||
}
|
||||
|
||||
#listeModules ul {
|
||||
width:100%;
|
||||
margin-left:-10px;
|
||||
list-style-type:none;
|
||||
}
|
||||
|
||||
#listeModules ul li {
|
||||
display:inline;
|
||||
float:left;
|
||||
width:50%;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div id="center">
|
||||
|
||||
<h1>Banque de France - Modules</h1>
|
||||
<h2>Recherche FIBEN / FCC identifiant unique</h2>
|
||||
<div class="paragraph">
|
||||
<form name="rFibenU" method="post" action="<?=$this->url(array('controller'=>'bdf', 'action'=>'module'))?>">
|
||||
<input type="hidden" name="type" value="u"/>
|
||||
<input type="hidden" name="siret" value="<?=$this->siret?>"/>
|
||||
|
||||
<div id="identifiant">
|
||||
<label>Identifiant</label> <input type="text" name="req" value="<?=$this->req?>"/>
|
||||
<br/><span>SIREN ou clé BDF</span>
|
||||
</div>
|
||||
<div id="modules" class="clearfix">
|
||||
<a href='#' id="listeModulesD">Liste des modules</a>
|
||||
<span id="selected">
|
||||
<?php if ($this->module && is_array($this->module)){ ?>
|
||||
<?php
|
||||
foreach ($this->listModulesFiben as $id => $module) {
|
||||
if (isset($module['liste']) == false || $module['liste'] !== false) {
|
||||
if (in_array($id, $this->module))
|
||||
{
|
||||
echo '<br/>'.$module['titre'];
|
||||
}
|
||||
}
|
||||
}
|
||||
foreach ($this->listModulesFcc as $id => $module) {
|
||||
if (isset($module['liste']) == false || $module['liste'] !== false) {
|
||||
if (in_array($id, $this->module))
|
||||
{
|
||||
echo '<br/>'.$module['titre'];
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
<?php } ?>
|
||||
</span>
|
||||
</div>
|
||||
<div id="listeModules">
|
||||
<a href="#" id="closelisteModules">Fermer</a>
|
||||
<ul>
|
||||
<?php
|
||||
foreach ($this->listModulesFiben as $id => $module) {
|
||||
if (isset($module['liste']) == false || $module['liste'] !== false) {
|
||||
$checked = '';
|
||||
if (isset($this->module) && is_array($this->module) && in_array($id, $this->module))
|
||||
{
|
||||
$checked = 'checked';
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<input type="checkbox" name="bdfmodule[]" value="<?=$id?>" <?=$checked?>/>
|
||||
<?=$module['titre']?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
foreach ($this->listModulesFcc as $id => $module) {
|
||||
if (isset($module['liste']) == false || $module['liste'] !== false) {
|
||||
$checked = '';
|
||||
if (isset($this->module) && is_array($this->module) && in_array($id, $this->module))
|
||||
{
|
||||
$checked = 'checked';
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<input type="checkbox" name="module[]" value="<?=$id?>" <?=$checked?>/>
|
||||
<?=$module['titre']?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<br/>
|
||||
</div>
|
||||
<input class="button" type="submit" name="rFiben" value="Afficher"/>
|
||||
</form>
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
<h2>Recherche FIBEN / FCC identifiants multiples</h2>
|
||||
<div class="paragraph">
|
||||
<form name="rFibenM" method="post" action="<?=$this->url(array('controller'=>'bdf', 'action'=>'module'))?>">
|
||||
<input type="hidden" name="type" value="m"/>
|
||||
<input type="hidden" name="siret" value="<?=$siret?>"/>
|
||||
<div id="identifiant">
|
||||
<label>Identifiant</label>
|
||||
<input type="text" name="identifiant[]" value="<?=$req?>" />
|
||||
<a href="#" id="addIdentifiant">Ajouter</a>
|
||||
</div>
|
||||
|
||||
<div id="modules" class="clearfix">
|
||||
<label>Module</label>
|
||||
<select name="bdfmodule">
|
||||
<?php
|
||||
foreach ($this->listModulesFiben as $id => $module) {
|
||||
if (isset($module['liste']) == false || $module['liste'] !== false) {
|
||||
echo '<option value="'.$id.'">'.$module['titre'].'</option>';
|
||||
}
|
||||
}
|
||||
foreach ($this->listModulesFcc as $id => $module) {
|
||||
if (isset($module['liste']) == false || $module['liste'] !== false) {
|
||||
echo '<option value="'.$id.'">'.$module['titre'].'</option>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
<input class="button" type="submit" name="rFiben" value="Afficher"/>
|
||||
</form>
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
<h2>Recherche FICP</h2>
|
||||
<div class="paragraph">
|
||||
<form name="rFicp" method="post" action="<?=$this->url(array('controller'=>'bdf', 'action'=>'module'))?>">
|
||||
<input type="hidden" name="bdfmodule" value="G"/>
|
||||
<input type="hidden" name="service" value="ficp"/>
|
||||
<label>Clé BDF</label>
|
||||
<input type="text" name="req"/>
|
||||
<input class="button" type="submit" name="rFicp" value="Ok"/>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
$('#listeModulesD').click(function(){
|
||||
var position = $(this).position();
|
||||
$('#listeModules').css('top', position.top);
|
||||
$('#listeModules').css('left', position.left-200);
|
||||
var display = $('#listeModules').css('display');
|
||||
if(display=='none') $('#listeModules').css('display', 'block');
|
||||
else $('#listeModules').css('display', 'none');
|
||||
});
|
||||
|
||||
$('#closelisteModules').click(function(){
|
||||
$('#listeModules').css('display', 'none');
|
||||
$('#modules > #selected').html('');
|
||||
$('input[name="module[]"]').each(function(){
|
||||
if ($(this).prop('checked')){
|
||||
$('#modules > #selected').append('<br/>'+$(this).parent().text());
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$('#addIdentifiant').click(function(){
|
||||
$('form[name=rFibenM] > #identifiant').append('<br/><label>Identifiant</label> <input type="text" name="identifiant[]" />');
|
||||
});
|
||||
});
|
||||
</script>
|
@ -1,8 +0,0 @@
|
||||
<h1 class="titre"><?=$this->titre?></h1>
|
||||
<div class="paragraph">
|
||||
<?php if ( !empty($this->html) ) {?>
|
||||
<?=$this->html?>
|
||||
<?php } else {?>
|
||||
ERREUR
|
||||
<?php }?>
|
||||
</div>
|
@ -1,42 +0,0 @@
|
||||
<style>
|
||||
#identifiant {
|
||||
float:left;
|
||||
width:40%;
|
||||
}
|
||||
#modules {
|
||||
float:left;
|
||||
width:40%;
|
||||
}
|
||||
|
||||
#listeModules {
|
||||
position:absolute;
|
||||
width:500px;
|
||||
display:none;
|
||||
background-color:#FBF7AA;
|
||||
border:1px solid #000000;
|
||||
z-index:3;
|
||||
}
|
||||
|
||||
#closelisteModules {
|
||||
float:right;
|
||||
padding:0.4em 1em;
|
||||
}
|
||||
|
||||
#listeModules ul {
|
||||
width:100%;
|
||||
margin-left:-10px;
|
||||
list-style-type:none;
|
||||
}
|
||||
|
||||
#listeModules ul li {
|
||||
display:inline;
|
||||
float:left;
|
||||
width:50%;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div id="center">
|
||||
<?php foreach ( $this->content as $item ) {?>
|
||||
<?=$this->partial('bdf/module-content.phtml', array('titre'=>$item['titre'],'html'=>$item['html']))?>
|
||||
<?php }?>
|
||||
</div>
|
@ -1,5 +0,0 @@
|
||||
<div class="paragraph">
|
||||
<p class="confidentiel">
|
||||
<?=$this->cgu?>
|
||||
</p>
|
||||
</div>
|
@ -1,526 +0,0 @@
|
||||
<style type="text/css">
|
||||
.close { display: none; }
|
||||
.open { display: block; }
|
||||
.field span { display:inline; }
|
||||
fieldset { margin:10px 0;}
|
||||
fieldset legend { font-weight:bold; font-size: 108%; padding:0; }
|
||||
div.submit { clear: both; text-align: center; }
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
|
||||
$('.menu-close').click(function(){
|
||||
$('div.blockh2').css('display','none');
|
||||
$(this).next('div.blockh2').css('display','block');
|
||||
});
|
||||
|
||||
$('a#addIp').click(function(e){
|
||||
e.preventDefault();
|
||||
var text = $('div.formip').html();
|
||||
var title = $(this).html();
|
||||
var dialogOpts = {
|
||||
bgiframe: true,
|
||||
title: title,
|
||||
width: 250,
|
||||
height: 130,
|
||||
modal: true,
|
||||
open: function(event, ui) { $(this).html(text); },
|
||||
buttons: {
|
||||
'Ajouter' : function() {
|
||||
var select1 = $('#formip input[name=ip0]').val()+'.'+
|
||||
$('#formip input[name=ip1]').val()+'.'+
|
||||
$('#formip input[name=ip2]').val()+'.'+
|
||||
$('#formip input[name=ip3]').val();
|
||||
var select2 = $('#formip input[name=ip4]').val()+'.'+
|
||||
$('#formip input[name=ip5]').val()+'.'+
|
||||
$('#formip input[name=ip6]').val()+'.'+
|
||||
$('#formip input[name=ip7]').val();
|
||||
VerifIp = new RegExp('^([0-9]{1,3}\.){3}[0-9]{1,3}$');
|
||||
if ( (VerifIp.test(select1) && VerifIp.test(select2)) || (VerifIp.test(select1) && select2=='...') ){
|
||||
var txt = $('input[name=filtres_ip]').val();
|
||||
if (select2=='...'){
|
||||
select = select1;
|
||||
} else {
|
||||
select = select1+'-'+select2;
|
||||
}
|
||||
(txt.length>0) ? txt = txt+';'+select : txt = select;
|
||||
var concat = '';
|
||||
var liste = txt.split(';');
|
||||
for (item in liste){
|
||||
concat = concat+liste[item]+' [<a href="#" class="deleteIP" id="'+liste[item]+'">Suppression</a>]<br/>';
|
||||
}
|
||||
$('input[name=filtres_ip]').val(txt);
|
||||
$('#listeip').html(concat);
|
||||
}
|
||||
$(this).dialog('close');
|
||||
},
|
||||
'Fermer': function() { $(this).dialog('close'); }
|
||||
},
|
||||
close: function() { $('div#formip').remove(); }
|
||||
};
|
||||
$('<div id="formip"></div>').dialog(dialogOpts);
|
||||
return false;
|
||||
});
|
||||
|
||||
$('body').delegate('.deleteIP', 'click', function(e){
|
||||
e.preventDefault();
|
||||
var select = $(this).attr('id');
|
||||
var txt = '';
|
||||
var concat = '';
|
||||
var strListe = $('input[name=filtres_ip]').val();
|
||||
strListe = strListe.substring(0, strListe.length-1);
|
||||
var liste = strListe.split(';');
|
||||
for (item in liste){
|
||||
if (liste[item]!=select){
|
||||
(txt.length>0) ? txt = txt+';'+liste[item] : txt = liste[item];
|
||||
concat = concat+liste[item]+' [<a href="#" class="deleteIP" id="'+liste[item]+'">Suppression</a>]<br/>';
|
||||
}
|
||||
}
|
||||
$('input[name=filtres_ip]').val(txt);
|
||||
$('#listeip').html(concat);
|
||||
});
|
||||
|
||||
$('input.checkskin[type=checkbox]').checkbox();
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
<div id="center">
|
||||
|
||||
<h1><?=$this->titre?></h1>
|
||||
|
||||
<div class="formip" style="display: none;">
|
||||
<input type="text" maxlength="3" size="3" name="ip0" /> .
|
||||
<input type="text" maxlength="3" size="3" name="ip1" /> .
|
||||
<input type="text" maxlength="3" size="3" name="ip2" /> .
|
||||
<input type="text" maxlength="3" size="3" name="ip3" /> -
|
||||
<input type="text" maxlength="3" size="3" name="ip4" /> .
|
||||
<input type="text" maxlength="3" size="3" name="ip5" /> .
|
||||
<input type="text" maxlength="3" size="3" name="ip6" /> .
|
||||
<input type="text" maxlength="3" size="3" name="ip7" />
|
||||
</div>
|
||||
|
||||
<form name="client" method="post" action="<?=$this->url(array('controller'=>'dashboard', 'action'=>'clientsave'), null, true)?>">
|
||||
<input type="hidden" name="action" value="client" />
|
||||
<input type="hidden" name="idClient" value="<?=$this->idClient?>" />
|
||||
|
||||
<h2 class="menu-close">Identification</h2>
|
||||
<div class="blockh2 close">
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Nom</label>
|
||||
<div class="field">
|
||||
<input name="nom" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->nom : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Siren</label>
|
||||
<div class="field">
|
||||
<input name="siren" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->siren : '';?>" />
|
||||
<a href="#">Obtention Dénomination sociale</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Nic du siège</label>
|
||||
<div class="field">
|
||||
<input name="nic" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->nic : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Racine des identifiants</label>
|
||||
<div class="field">
|
||||
<input name="racineLogin" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->racineLogin: '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Test</label>
|
||||
<div class="field">
|
||||
<select name="test">
|
||||
<option value="Oui" <?php if ($this->InfosClient->test=='Oui') echo 'selected';?>>Oui</option>
|
||||
<option value="Non" <?php if ($this->InfosClient->test=='Non') echo 'selected';?>>Non</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Actif</label>
|
||||
<div class="field">
|
||||
<select name="actif">
|
||||
<option value="Oui" <?php if ($this->InfosClient->actif=='Oui') echo 'selected';?>>Oui</option>
|
||||
<option value="Non" <?php if ($this->InfosClient->actif=='Non') echo 'selected';?>>Non</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Date de signature</label>
|
||||
<div class="field">
|
||||
<input name="dateSignature" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->dateSignature : '';?>" />
|
||||
(AAAA-MM-YY)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Type de contrat</label>
|
||||
<div class="field">
|
||||
<select name="typeContrat">
|
||||
<option value="Contrat" <?php if ($this->InfosClient->typeContrat=='Contrat') echo 'selected';?>>Contrat</option>
|
||||
<option value="Marché" <?php if ($this->InfosClient->typeContrat=='Marché') echo 'selected';?>>Marché</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Commercial S&D</label>
|
||||
<div class="field">
|
||||
<input name="respComSD" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->respComSD : '';?>" disabled />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Nom de l'apporteur d'affaire</label>
|
||||
<div class="field">
|
||||
<input name="apporteurAffaire" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->apporteurAffaire: '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Type d'accès</label>
|
||||
<div class="field">
|
||||
<select name="typeAcces">
|
||||
<option value="userPassword" <?php if ($this->InfosClient->typeAcces=='userPassword') echo 'selected';?>>userPassword</option>
|
||||
<option value="userPasswordIP" <?php if ($this->InfosClient->typeAcces=='userPasswordIP') echo 'selected';?>>userPasswordIP</option>
|
||||
<option value="IP" <?php if ($this->InfosClient->typeAcces=='IP') echo 'selected';?>>IP</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Remarques / Observations</label>
|
||||
<div class="field">
|
||||
<textarea name="remarque">
|
||||
<?php echo isset($this->InfosClient) ? $this->InfosClient->remarque : '';?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2 class="menu-close">Facturation</h2>
|
||||
<div class="blockh2 close">
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>N° de TVA</label>
|
||||
<div class="field">
|
||||
<input name="tva" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->tva : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Compte client rattaché</label>
|
||||
<div class="field">
|
||||
<input name="xxxx" type="text" value="" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Editer la facture automatiquement</label>
|
||||
<div class="field">
|
||||
<select name="editerFacture">
|
||||
<option value="Oui" <?php if ($this->InfosClient->editerFacture=='Oui') echo 'selected';?>>Oui</option>
|
||||
<option value="Non" <?php if ($this->InfosClient->editerFacture=='Non') echo 'selected';?>>Non</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Editer le détail de la facture</label>
|
||||
<div class="field">
|
||||
<select name="fact_detail">
|
||||
<option value="Oui" <?php if ($this->InfosClient->editerFacture=='Oui') echo 'selected';?>>Oui</option>
|
||||
<option value="Non" <?php if ($this->InfosClient->fact_detail=='Non') echo 'selected';?>>Non</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Nom du destinataire de la facture</label>
|
||||
<div class="field">
|
||||
<input name="fac_dest" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->fac_dest : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Adresse1</label>
|
||||
<div class="field">
|
||||
<input name="fac_adr1" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->fac_adr1 : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Adresse2</label>
|
||||
<div class="field">
|
||||
<input name="fac_adr2" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->fac_adr2 : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Adresse3</label>
|
||||
<div class="field">
|
||||
<input name="fac_adr3" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->fac_adr3 : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Email</label>
|
||||
<div class="field">
|
||||
<input name="fac_email" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->fac_email : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Téléphone</label>
|
||||
<div class="field">
|
||||
<input name="fac_tel" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->fac_tel : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>RIB joint à la facture</label>
|
||||
<div class="field">
|
||||
<select name="fact_rib">
|
||||
<option value="BPOSTALE" <?php if ($this->InfosClient->fact_rib=='BPOSTALE') echo 'selected';?>>BPOSTALE</option>
|
||||
<option value="CCOOP" <?php if ($this->InfosClient->fact_rib=='CCOOP') echo 'selected';?>>CCOOP</option>
|
||||
<option value="CDNORD" <?php if ($this->InfosClient->fact_rib=='CDNORD') echo 'selected';?>>CDNORD</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<h2 class="menu-close">Livraison : Informations sur le destinataire de la livraison</h2>
|
||||
<div class="blockh2 close">
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Nom</label>
|
||||
<div class="field">
|
||||
<input name="liv_dest" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->liv_dest : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Adresse1</label>
|
||||
<div class="field">
|
||||
<input name="liv_adr1" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->liv_adr1 : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Adresse2</label>
|
||||
<div class="field">
|
||||
<input name="liv_adr2" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->liv_adr2 : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Adresse3</label>
|
||||
<div class="field">
|
||||
<input name="liv_adr3" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->liv_adr3 : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Email</label>
|
||||
<div class="field">
|
||||
<input name="liv_email" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->liv_email : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Téléphone</label>
|
||||
<div class="field">
|
||||
<input name="liv_tel" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->liv_tel : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<h2 class="menu-close">Paramétrage</h2>
|
||||
<div class="blockh2 close">
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>IndiScore</label>
|
||||
<div class="field">
|
||||
<select name="typeScore">
|
||||
<option value="100" <?php if ($this->InfosClient->typeScore=='100') echo 'selected';?>>100</option>
|
||||
<option value="20" <?php if ($this->InfosClient->typeScore=='20') echo 'selected';?>>20</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Liste des adresses IP</label>
|
||||
<div class="field">
|
||||
<?php
|
||||
$text_ip = '';
|
||||
$filtres_ip = '';
|
||||
if (isset($this->InfosClient) && !empty($this->InfosClient->filtres_ip)){
|
||||
$ips = explode(';',$this->InfosClient->filtres_ip);
|
||||
foreach ($ips as $ip){
|
||||
$filtres_ip.= $ip.';';
|
||||
$text_ip.= $ip.' [<a href="#" class="deleteIP" id="'.$ip.'">Suppression</a>]<br/>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
<input type="hidden" name="filtres_ip" value="<?php echo $filtres_ip?>">
|
||||
<span id="listeip">
|
||||
<?php
|
||||
if (!empty($text_ip)){
|
||||
echo $text_ip;
|
||||
} else {
|
||||
echo "Aucune IPs.";
|
||||
}
|
||||
?> </span> <br /> <a href="#" id="addIp">Ajouter une adresse IP</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Listes des Droits</label>
|
||||
<div class="field">
|
||||
<?php $listedroits = explode(' ', $this->InfosClient->droits); ?>
|
||||
<?php foreach($this->wscategory as $category) { ?>
|
||||
<fieldset>
|
||||
<legend><?=$category->desc?></legend>
|
||||
<?php foreach($category->droits->item as $droit) {
|
||||
$check = '';
|
||||
if (in_array(strtolower($droit), $listedroits)) {
|
||||
$check = ' checked';
|
||||
}
|
||||
?>
|
||||
<input class="checkskin" type="checkbox" name="droits[]" value="<?=strtolower($droit)?>"<?=$check?>/>
|
||||
<?=$this->wsdroits[$droit]?><br/>
|
||||
<?php } ?>
|
||||
</fieldset>
|
||||
<?php }?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Timeout</label>
|
||||
<div class="field">
|
||||
<input type="text" name="timeout" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->timeout : '3600';?>" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2 class="menu-close">Tarification</h2>
|
||||
<div class="blockh2 close">
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>forfaitExtranetPeriode</label>
|
||||
<div class="field">
|
||||
<select name="forfaitExtranetPeriode">
|
||||
<option value="Mensuel" <?php if ($this->InfosClient->forfaitExtranetPeriode=='Mensuel') echo 'selected';?>>Mensuel</option>
|
||||
<option value="Trimestriel" <?php if ($this->InfosClient->forfaitExtranetPeriode=='Trimestriel') echo 'selected';?>>Trimestriel</option>
|
||||
<option value="Semestriel" <?php if ($this->InfosClient->forfaitExtranetPeriode=='Semestriel') echo 'selected';?>>Semestriel</option>
|
||||
<option value="Annuel" <?php if ($this->InfosClient->forfaitExtranetPeriode=='Annuel') echo 'selected';?>>Annuel</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>forfaitExtranetMontant</label>
|
||||
<div class="field">
|
||||
<input type="text" name="forfaitExtranetMontant" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->forfaitExtranetMontant : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>reconductionAuto</label>
|
||||
<div class="field">
|
||||
<select name="reconductionAuto">
|
||||
<option value="Oui" <?php if ($this->InfosClient->reconductionAuto=='Oui') echo 'selected';?>>Oui</option>
|
||||
<option value="Non" <?php if ($this->InfosClient->reconductionAuto=='Non') echo 'selected';?>>Non</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Nombre de pièces officielles inclues dans le forfait client</label>
|
||||
<div class="field">
|
||||
<input type="text" name="forfaitPiecesNb" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->forfaitPiecesNb : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Montant du forfait des pièces officielles</label>
|
||||
<div class="field">
|
||||
<input type="text" name="forfaitPiecesMt" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->forfaitPiecesMt : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Tarif unitaire en cas de dépassement</label>
|
||||
<div class="field">
|
||||
<input type="text" name="forfaitPiecesDep" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->forfaitPiecesDep : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Nombre d'investigations incluses dans le forfait client</label>
|
||||
<div class="field">
|
||||
<input type="text" name="forfaitInvestigNb" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->forfaitInvestigNb : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Montant du forfait des investigations</label>
|
||||
<div class="field">
|
||||
<input type="text" name="forfaitInvestigMt" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->forfaitInvestigMt : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Tarif unitaire pour les indiscore</label>
|
||||
<div class="field">
|
||||
<input type="text" name="tarifIndiscore" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->tarifIndiscore : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<h2 class="menu-close">Divers</h2>
|
||||
<div class="blockh2 close">
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Accès Webservice</label>
|
||||
<div class="field">
|
||||
<input type="text" name="accesWS" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->accesWS : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="fieldgrp">
|
||||
<label>Intersud - Login</label>
|
||||
<div class="field">
|
||||
<input type="text" name="InterSudLogin" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->InterSudLogin : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Intersud - Mot de passe</label>
|
||||
<div class="field">
|
||||
<input type="text" name="InterSudPass" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->InterSudPass : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="submit">
|
||||
<p class="submit-button">
|
||||
<input type="submit" class="button" value="<?php echo $this->submitValue?>" />
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
@ -1,85 +0,0 @@
|
||||
<style type="text/css">
|
||||
#utilisateur { border-collapse:collapse; width:100%;}
|
||||
#utilisateur tr.titre td { background-color: #D9EEF1; font-weight:bold; }
|
||||
#utilisateur tr.border td { border:1px dashed #939393; padding:5px; margin:0; vertical-align:top; }
|
||||
#utilisateur tr.bordertop td { border:1px dashed #939393; border-top:1px solid; padding:5px; margin:0; vertical-align:top; }
|
||||
#utilisateur tr.borderbottom td { border:1px dashed #939393; border-bottom:1px solid; padding:5px; margin:0; vertical-align:top; }
|
||||
#utilisateur tr.actif { background-color:#D9EEF1; }
|
||||
#utilisateur tr.noactif { background-color:#F0F0F6; }
|
||||
.cadreinfo {display:none;}
|
||||
</style>
|
||||
|
||||
<div id="center">
|
||||
|
||||
<h1>GESTION DES CLIENTS</h1>
|
||||
<div class="paragraph">
|
||||
<a href="<?=$this->url(array('action'=>'client'))?>">Créer un client</a>
|
||||
</div>
|
||||
|
||||
<h2>Liste des clients</h2>
|
||||
<div class="paragraph">
|
||||
<table id="utilisateur" >
|
||||
<tr class="border titre">
|
||||
<td class="StyleInfoLib">Nom</td>
|
||||
<td class="StyleInfoLib">Actions</td>
|
||||
</tr>
|
||||
<?php
|
||||
if (count($this->ListeClients) > 0) {
|
||||
foreach ($this->ListeClients as $cl) {
|
||||
if ($cl->actif == 'Oui') {
|
||||
$class = 'actif';
|
||||
} else {
|
||||
$class = 'noactif';
|
||||
}
|
||||
?>
|
||||
<tr class="bordertop <?=$class?>">
|
||||
<td><?=$cl->nom?></td>
|
||||
<td>
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<button class="action">Action</button>
|
||||
<button class="select">Select an action</button>
|
||||
</div>
|
||||
<ul style="position:absolute;z-index:1;">
|
||||
<?php if ($cl->actif == 'Oui') {?>
|
||||
<li><a href="<?=$this->url(array('controller'=>'dashboard','action'=>'client','idClient'=>$cl->idClient),null,true)?>">Editer</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="<?=$this->url(array('controller'=>'dashboard','action'=>'prestations','idClient'=>$cl->idClient),null,true)?>">Prestations fichier</a></li>
|
||||
<li><a href="<?=$this->url(array('controller'=>'dashboard','action'=>'tarifs','idClient'=>$cl->idClient),null,true)?>">Tarification</a></li>
|
||||
<li><a href="<?=$this->url(array('controller'=>'dashboard','action'=>'services','idClient'=>$cl->idClient),null,true)?>">Services</a></li>
|
||||
<li><a href="<?=$this->url(array('controller'=>'dashboard','action'=>'users','idClient' => $cl->idClient),null,true)?>">Utilisateurs</a></li>
|
||||
<?php }?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
$( ".action" ).button().click(function() {
|
||||
alert( "Selectionner une action" );
|
||||
}).next().button({
|
||||
text: false,
|
||||
icons: { primary: "ui-icon-triangle-1-s" }
|
||||
}).click(function() {
|
||||
var menu = $( this ).parent().next().show().position({
|
||||
my: "left top",
|
||||
at: "left bottom",
|
||||
of: this
|
||||
});
|
||||
$( document ).one( "click", function() {
|
||||
menu.hide();
|
||||
});
|
||||
return false;
|
||||
}).parent().buttonset().next().hide().menu();
|
||||
</script>
|
@ -1,10 +0,0 @@
|
||||
<div id="center">
|
||||
<h1>GESTION CLIENTS</h1>
|
||||
|
||||
<div class="paragraph">
|
||||
Client créer.<br/>
|
||||
<a href="<?=$this->url(array('controller'=>'dashboard', 'action'=>'clients'))?>">Liste des clients</a>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
@ -1,132 +0,0 @@
|
||||
<style type="text/css">
|
||||
table {width:100%; border-collapse:collapse; margin:5px 0;}
|
||||
table tr.odd {background-color:#e6eeee;}
|
||||
table tr.even {}
|
||||
table tr {
|
||||
border-top:2px solid;
|
||||
vertical-align:top;
|
||||
border-bottom:2px solid;
|
||||
}
|
||||
table th, table td {border:1px dashed; padding:5px;}
|
||||
select {font-size:11px;}
|
||||
</style>
|
||||
|
||||
<div id="center">
|
||||
<h1>Gestion des commandes Greffes</h1>
|
||||
|
||||
<h2>Rechercher une commande</h2>
|
||||
|
||||
<div class="paragraph">
|
||||
<form>
|
||||
<label>N° de commande ou siren</label><input type="text" name="num" value="<?=$this->num?>" />
|
||||
<input type="submit" name="submit" value="Ok" />
|
||||
<br/>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="paragraph">
|
||||
<form>
|
||||
<label>Login</label><input type="text" name="login" value="<?=$this->login?>" />
|
||||
<label>Mois</label>
|
||||
<select name="date">
|
||||
<?php foreach($this->dateSelect as $item):?>
|
||||
<option value="<?=$item['value']?>"<?=$item['select']?>><?=$item['affichage']?></option>
|
||||
<?php endforeach;?>
|
||||
</select>
|
||||
<input type="submit" name="submit" value="Ok" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="paragraph">
|
||||
<form>
|
||||
<label>Etat</label>
|
||||
<select name="etat">
|
||||
<?php foreach($this->etatSelect as $item):?>
|
||||
<option value="<?=$item['value']?>"<?=$item['select']?>><?=$item['affichage']?></option>
|
||||
<?php endforeach;?>
|
||||
</select>
|
||||
<label>Mode</label>
|
||||
<select name="mode">
|
||||
<?php foreach($this->modeSelect as $item):?>
|
||||
<option value="<?=$item['value']?>"<?=$item['select']?>><?=$item['affichage']?></option>
|
||||
<?php endforeach;?>
|
||||
</select>
|
||||
<label>Mois</label>
|
||||
<select name="date">
|
||||
<?php foreach($this->dateSelect as $item):?>
|
||||
<option value="<?=$item['value']?>"<?=$item['select']?>><?=$item['affichage']?></option>
|
||||
<?php endforeach;?>
|
||||
</select>
|
||||
<input type="submit" name="submit" value="Ok" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<h2>Liste des commandes</h2>
|
||||
<div class="paragraph">
|
||||
<?php if (count($this->commandes)>0): ?>
|
||||
<table>
|
||||
<tbody>
|
||||
<?php $compteur = 0;?>
|
||||
<?php foreach ($this->commandes as $item):?>
|
||||
<?php
|
||||
if ($compteur%2) $class = ' even';
|
||||
else $class = ' odd';
|
||||
$compteur++;
|
||||
?>
|
||||
<tr class="<?=$class?>">
|
||||
<td><b><?=$item->typeCommande?><?=$item->idCommande?></b></td>
|
||||
<td width="20%">
|
||||
<a href="<?=$item->sirenLien?>"><?=$this->SirenTexte($item->siren)?></a><br/>
|
||||
<b><a href="<?=$this->url(array(
|
||||
'controller' => 'dashboard',
|
||||
'action' => 'rs',
|
||||
'siren' => $item->siren,
|
||||
), null, true)?>" class="rs">Dénomination sociale</a>
|
||||
</b>
|
||||
</td>
|
||||
<td width="40%">
|
||||
<?php if ($item->typeCommande=='G'):?>
|
||||
<u>Commande Greffe standard</u><br/>
|
||||
<?php elseif ($item->typeCommande=='C'):?>
|
||||
<u>Commande Greffe par <a href="<?=$this->url(array('controller'=>'dashboard', 'action'=>'courrier', 'commande'=>'C'.$item->idCommande))?>" target="_blank">courrier</a> S&D</u><br/>
|
||||
<a href="<?=$this->url(array(
|
||||
'controller'=>'dashboard',
|
||||
'action' => 'courrier',
|
||||
'commande' => 'C'.$item->idCommande,
|
||||
), null, true)?>" target="_blank">
|
||||
Générer le courrier</a><br/>
|
||||
<?php endif;?>
|
||||
|
||||
Document : <?=$item->document?> <br/>
|
||||
<br/>
|
||||
Ref : <?=$item->refDocument?><br/>
|
||||
Lib : <?=$item->libDocument?><br/>
|
||||
<br/>
|
||||
Login : <?=$item->login?><br/>
|
||||
Email : <?=$item->emailCommande?><br/>
|
||||
|
||||
</td>
|
||||
<td width="40%">
|
||||
Date de commande : <?=$item->dateCommande?><br/>
|
||||
<b>Date de reception : <?=$item->dateReception?></b><br/>
|
||||
<br/>
|
||||
<form action="<?=$this->url(array('controller'=>'dashboard', 'action'=>'commandesetatchange', 'type'=>'greffe'))?>">
|
||||
Changer l'etat :
|
||||
<select name="<?=$item->idCommande?>" class="changeEtat">
|
||||
<?php foreach($item->cmdEtatSelect as $etat) {?>
|
||||
<option value="<?=$etat['value']?>"<?=$etat['select']?>><?=$etat['affichage']?></option>
|
||||
<?php }?>
|
||||
</select>
|
||||
</form>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php else:?>
|
||||
Aucune commandes.
|
||||
<?php endif;?>
|
||||
</div>
|
||||
|
||||
</div>
|
@ -1,109 +0,0 @@
|
||||
<style type="text/css">
|
||||
table {width:100%; border-collapse:collapse; margin:5px 0;}
|
||||
table tr.odd {background-color:#e6eeee;}
|
||||
table tr.even {}
|
||||
table tr {
|
||||
border-top:2px solid;
|
||||
vertical-align:top;
|
||||
border-bottom:2px solid;
|
||||
}
|
||||
table th, table td {border:1px dashed; padding:5px;}
|
||||
select {font-size:11px;}
|
||||
</style>
|
||||
|
||||
<div id="center">
|
||||
<h1>Gestion des commandes KBIS</h1>
|
||||
|
||||
<h2>Rechercher une commande</h2>
|
||||
|
||||
<div class="paragraph">
|
||||
<form>
|
||||
N° de commande ou siren <input type="text" name="num" value="<?=$this->num?>" />
|
||||
<input type="submit" name="submit" value="Ok" />
|
||||
<br/>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="paragraph">
|
||||
<form>
|
||||
Etat
|
||||
<select name="etat">
|
||||
<?php foreach($this->etatSelect as $item):?>
|
||||
<option value="<?=$item['value']?>"<?=$item['select']?>><?=$item['affichage']?></option>
|
||||
<?php endforeach;?>
|
||||
</select>
|
||||
<br/>
|
||||
Mode
|
||||
<select name="mode">
|
||||
<?php foreach($this->modeSelect as $item):?>
|
||||
<option value="<?=$item['value']?>"<?=$item['select']?>><?=$item['affichage']?></option>
|
||||
<?php endforeach;?>
|
||||
</select>
|
||||
<br/>
|
||||
Mois
|
||||
<select name="date">
|
||||
<?php foreach($this->dateSelect as $item):?>
|
||||
<option value="<?=$item['value']?>"<?=$item['select']?>><?=$item['affichage']?></option>
|
||||
<?php endforeach;?>
|
||||
</select>
|
||||
<input type="submit" name="submit" value="Ok" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<h2>Liste des commandes</h2>
|
||||
<div class="paragraph">
|
||||
<?php if (count($this->commandes)>0): ?>
|
||||
<table>
|
||||
<tbody>
|
||||
<?php $compteur = 0;?>
|
||||
<?php foreach ($this->commandes as $item):?>
|
||||
<?php
|
||||
if ($compteur%2) $class = ' even';
|
||||
else $class = ' odd';
|
||||
$compteur++;
|
||||
?>
|
||||
<tr class="<?=$class?>">
|
||||
<td><b>K<?=$item->id?></b></td>
|
||||
<td width="26%">
|
||||
<a href="<?=$this->url(array(
|
||||
'controller' => 'identite',
|
||||
'action' => 'fiche',
|
||||
'siret' => $item->siren
|
||||
), null, true)?>"><?=$this->SirenTexte($item->siren)?></a><br/>
|
||||
<b><?=$item->raisonSociale?></b>
|
||||
</td>
|
||||
<td width="34%">
|
||||
<?php if ($item->type=='M'){?>
|
||||
<u>Commande de kbis par Mail</u> (<a href="<?=$this->url(array('controller'=>'dashboard', 'action'=>'courrier', 'commande'=>'K'.$item->id))?>" target="_blank">Courrier</a>)<br/>
|
||||
<?php } elseif ($item->type=='C') {?>
|
||||
<u>Commande de kbis original par <a href="<?=$this->url(array('controller'=>'dashboard', 'action'=>'courrier', 'commande'=>'K'.$item->id))?>" target="_blank">Courrier</a></u><br/>
|
||||
<?=$item->societe?><br/>
|
||||
<?=$item->nom?><br/>
|
||||
<?=$item->adresse?><br/>
|
||||
<?=$item->cp . ' ' . $item->ville?><br/>
|
||||
<?php }?>
|
||||
Email : <?=$item->email?><br/>
|
||||
Etat : ...
|
||||
</td>
|
||||
<td width="34%">
|
||||
Date de commande : <?=$item->dateCommande?></br>
|
||||
Date de reception : <?=$item->dateReception?><br/>
|
||||
<form action="<?=$this->url(array('controller'=>'dashboard', 'action'=>'commandesetatchange', 'type'=>'kbis'))?>">
|
||||
Changer l'etat : <select name="<?=$item->id?>" class="changeEtat">
|
||||
<?php foreach($item->cmdEtatSelect as $etat) {?>
|
||||
<option value="<?=$etat['value']?>"<?=$etat['select']?>><?=$etat['affichage']?></option>
|
||||
<?php }?>
|
||||
</select>
|
||||
</form>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php else:?>
|
||||
Aucunes commandes.
|
||||
<?php endif;?>
|
||||
</div>
|
||||
|
||||
</div>
|
@ -1,16 +0,0 @@
|
||||
<div id="center">
|
||||
<h1>Gestion des commandes</h1>
|
||||
<div class="paragraph">
|
||||
|
||||
<?php foreach($this->typesCommande as $type):?>
|
||||
<a href="<?=$this->url(array(
|
||||
'controller' => 'dashboard',
|
||||
'action' => 'commandes',
|
||||
'type' => $type
|
||||
))?>" title="Gérer vos commandes">Gestion des commandes <?=$type?></a>
|
||||
<br/>
|
||||
|
||||
<?php endforeach;?>
|
||||
|
||||
</div>
|
||||
</div>
|
@ -1,27 +0,0 @@
|
||||
<div class="contrat">
|
||||
<div>Du <?=$contrat->dateBegin?> au <?=$contrat->dateEnd?></div>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Log</th>
|
||||
<th>Service</th>
|
||||
<th>Type</th>
|
||||
<th>Prix unitaire</th>
|
||||
<th>Limit</th>
|
||||
<th>Dédoublonnage</th>
|
||||
</tr>
|
||||
<?php foreach ($contrat->tarifs->item as $tarif ) {?>
|
||||
<tr>
|
||||
<td><?=$tarif->log?></td>
|
||||
<td><?=$tarif->service?></td>
|
||||
<td><?=$tarif->type?></td>
|
||||
<td><?=$tarif->priceUnit?></td>
|
||||
<td><?=$tarif->limit?></td>
|
||||
<td><?=$tarif->doublon?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
<div style="line-height:16px;">
|
||||
<a class="tarif-add" title="Ajouter un tarif" href="#">
|
||||
<img style="vertical-align:middle;" src="/themes/default/images/interfaces/ajouter.png" />Ajouter un tarif</a>
|
||||
</div>
|
||||
</div>
|
@ -1,10 +0,0 @@
|
||||
<div id="center">
|
||||
<h1>Gestion Système</h1>
|
||||
|
||||
<div class="paragraph">
|
||||
<?php foreach ($this->Liens as $lien):?>
|
||||
<a href="<?=$lien['url']?>"><?=$lien['libelle']?></a><br/>
|
||||
<?php endforeach;?>
|
||||
</div>
|
||||
|
||||
</div>
|
@ -1,45 +0,0 @@
|
||||
<div id="center">
|
||||
<h2>Gestion des nouveautés</h2>
|
||||
<div class="paragraph">
|
||||
|
||||
<form id="uploadForm" name="uploadForm" action="<?=$this->url(array('controller'=>'dashboard', 'action'=>'newupload'))?>" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="APC_UPLOAD_PROGRESS" id="key" value="<?=uniqid()?>"/>
|
||||
<input type="hidden" name="MAX_FILE_SIZE" value="50000000" />
|
||||
Catégorie : <input type="text" name="categorie" />
|
||||
<br/>
|
||||
Intitulé : <input type="text" name="intitule" />
|
||||
<br/>
|
||||
Date : <input type="text" name="date" /> (Format AAAA-MM-JJ)
|
||||
<br/>
|
||||
Fichier PDF : <input type="file" name="fichier" />
|
||||
<br/>
|
||||
<input type="submit" name="upload" value="Valider" />
|
||||
</form>
|
||||
<div id="uploadOutput"></div>
|
||||
<script type="text/javascript" src="/libs/form/jquery.form.min.js"/>
|
||||
<script>
|
||||
var timer;
|
||||
|
||||
function checkProgress() {
|
||||
$.getJSON('<?=$this->url(array('controller'=>'dashboard', 'action'=>'newprogress'))?>',
|
||||
{key: $('#key').val()}, function(data) {
|
||||
$('#uploadOutput').html(data.current+'/'+data.total);
|
||||
});
|
||||
}
|
||||
|
||||
$(function() {
|
||||
$('#uploadForm').ajaxForm({
|
||||
beforeSubmit: function() {
|
||||
$('#uploadOutput').html('Envoi en cours...');
|
||||
timer = setInterval(checkProgress,500);
|
||||
},
|
||||
success: function(data) {
|
||||
clearInterval(timer);
|
||||
$('#uploadOutput').html(data);
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
</div>
|
@ -1,291 +0,0 @@
|
||||
<style type="text/css">
|
||||
.close {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.open {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.fieldgrp {
|
||||
clear: both;
|
||||
width: 100%;
|
||||
margin-bottom: .5em;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.fieldgrp:after {
|
||||
content: ".";
|
||||
display: block;
|
||||
clear: both;
|
||||
visibility: hidden;
|
||||
line-height: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.fieldgrp label {
|
||||
font-weight: bold;
|
||||
margin-left: 30px;
|
||||
width: 180px;
|
||||
clear: both;
|
||||
padding: 0 10px 0 0;
|
||||
line-height: 22px;
|
||||
_padding-top: 3px;
|
||||
float: left;
|
||||
display: block;
|
||||
font-size: 108%;
|
||||
}
|
||||
|
||||
.field {
|
||||
width: 320px;
|
||||
float: left;
|
||||
padding: 0 10px 0 0;
|
||||
line-height: 22px;
|
||||
_padding-top: 3px;
|
||||
}
|
||||
|
||||
.field .longfield {
|
||||
width: 215px;
|
||||
}
|
||||
|
||||
.field .longfield-select {
|
||||
width: 220px;
|
||||
}
|
||||
|
||||
.field .smallfield {
|
||||
width: 95px;
|
||||
}
|
||||
|
||||
.field .medfield {
|
||||
width: 110px;
|
||||
}
|
||||
|
||||
.field input,.field select {
|
||||
font-size: 110%;
|
||||
margin: 2px 0;
|
||||
}
|
||||
|
||||
.field input[type="radio"] {
|
||||
margin: 0 5px 0 5px;
|
||||
}
|
||||
|
||||
fieldset { margin:10px 0;}
|
||||
fieldset legend { font-weight:bold; font-size: 108%; }
|
||||
|
||||
div.submit {
|
||||
clear: both;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
</style>
|
||||
<div id="center">
|
||||
<h1>Prestations fichier client (idClient=<?=$this->idClient?>)</h1>
|
||||
<div class="paragraph">
|
||||
|
||||
<form>
|
||||
<input type="hidden" name="idClient" value="<?=$this->idClient?>"/>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Type de prestation : </label>
|
||||
<div class="field">
|
||||
<select name="typeprestation">
|
||||
<option>-</option>
|
||||
<option value="Diffusion">Diffusion</option>
|
||||
<option value="Surveillance">Surveillance</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Source</label>
|
||||
<div class="field">
|
||||
<select name="source">
|
||||
<option>-</option>
|
||||
<option value="Bodacc">Bodacc</option>
|
||||
<option value="Insee">Insee</option>
|
||||
<option value="Rncs">Rncs</option>
|
||||
<option value="Bilans">Bilans</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Date de mise en place</label>
|
||||
<div class="field">
|
||||
<input type="text" name="datemiseenplace" value=""/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Date première facture</label>
|
||||
<div class="field">
|
||||
<input type="text" name="datepremierefacture" value=""/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Fréquence de facturation (en mois)</label>
|
||||
<div class="field">
|
||||
<select name="freqfacturation">
|
||||
<option value="Unitaire">Unitaire</option>
|
||||
<option value="Quotidien">Quotidien</option>
|
||||
<option value="Hebdo">Hebdo</option>
|
||||
<option value="Mensuel">Mensuel</option>
|
||||
<option value="Trimestriel">Trimestriel</option>
|
||||
<option value="Semestriel">Semestriel</option>
|
||||
<option value="Annuel">Annuel</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Date de fin</label>
|
||||
<div class="field">
|
||||
<input type="text" name="datefinprestation" value=""/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Test</label>
|
||||
<div class="field">
|
||||
<select name="prestatest">
|
||||
<option value="0">Non</option>
|
||||
<option value="1">Oui</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Identifiant</label>
|
||||
<div class="field">
|
||||
<input type="text" name="identifiantPrestation" value=""/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Password</label>
|
||||
<div class="field">
|
||||
<input type="text" name="passwordprestation" value=""/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Support de livraison</label>
|
||||
<div class="field">
|
||||
<select name="supportprestation">
|
||||
<option value="FTP">FTP</option>
|
||||
<option value="Email">EMAIL</option>
|
||||
<option value="CD/DVD">CD/DVD</option>
|
||||
<option value="CFT">CFT</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Identifiant CFT</label>
|
||||
<div class="field">
|
||||
<input type="text" name="identifiantCFT" value=""/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Durée du contrat</label>
|
||||
<div class="field">
|
||||
<input type="text" name="dureecontrat" value=""/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Montant annuel facturation</label>
|
||||
<div class="field">
|
||||
<input type="text" name="montantannuelfact" value=""/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Fréquence des envois</label>
|
||||
<div class="field">
|
||||
<select name="freqenvois">
|
||||
<option value="Unitaire">Unitaire</option>
|
||||
<option value="Quotidien">Quotidien</option>
|
||||
<option value="Hebdo">Hebdo</option>
|
||||
<option value="Mensuel">Mensuel</option>
|
||||
<option value="Trimestriel">Trimestriel</option>
|
||||
<option value="Semestriel">Semestriel</option>
|
||||
<option value="Annuel">Annuel</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Options (format INI)</label>
|
||||
<div class="field">
|
||||
<textarea name="optionsprestation"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Active</label>
|
||||
<div class="field">
|
||||
<select name="prestationactive">
|
||||
<option value="oui">Oui</option>
|
||||
<option value="non">Non</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Options support (format INI)</label>
|
||||
<div class="field">
|
||||
<textarea name="optionssupport"></textarea>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Main d'info fichier entrant</label>
|
||||
<div class="field">
|
||||
<input type="text" name="mailIN" value=""/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Main d'info fichier sortant</label>
|
||||
<div class="field">
|
||||
<input type="text" name="mailOUT" value=""/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>osClient</label>
|
||||
<div class="field">
|
||||
<select name="osClient">
|
||||
<option value="WINDOWS">WINDOWS</option>
|
||||
<option value="LINUX">LINUX</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Compression</label>
|
||||
<div class="field">
|
||||
<select name="compression">
|
||||
<option value="none">none</option>
|
||||
<option value="zip">zip</option>
|
||||
<option value="gzip">gzip</option>
|
||||
<option value="bzip2">bzip2</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="submit">
|
||||
<p class="submit-button">
|
||||
<input type="submit" class="button" value="<?=$this->submitValue?>" />
|
||||
</p>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
@ -1,55 +0,0 @@
|
||||
<style type="text/css">
|
||||
#utilisateur { border-collapse:collapse; width:100%;}
|
||||
#utilisateur tr.titre td { background-color: #D9EEF1; font-weight:bold; }
|
||||
#utilisateur tr.border td {
|
||||
border:1px dashed #939393; padding:5px; margin:0; vertical-align:top; }
|
||||
#utilisateur tr.actif { background-color:#D9EEF1; }
|
||||
#utilisateur tr.noactif { background-color:#F0F0F6; }
|
||||
.cadreinfo {display:none;}
|
||||
</style>
|
||||
<div id="center">
|
||||
<h1>Prestations fichier client (idClient=<?=$this->idClient?>)</h1>
|
||||
<div class="paragraph">
|
||||
<a href="<?=$this->url(array('controller'=>'dashboard','action'=>'prestation'))?>">Ajouter une prestation</a>
|
||||
</div>
|
||||
|
||||
<h2>Liste</h2>
|
||||
<div class="paragraph">
|
||||
<?php if (count($this->prestations) > 0) { ?>
|
||||
<table id="utilisateur" >
|
||||
<tr class="border titre">
|
||||
<td class="StyleInfoLib">Nom</td>
|
||||
<td class="StyleInfoLib">Type</td>
|
||||
<td class="StyleInfoLib">Debut</td>
|
||||
<td class="StyleInfoLib">Fin</td>
|
||||
<td class="StyleInfoLib"></td>
|
||||
</tr>
|
||||
<?php
|
||||
foreach ($this->prestations as $prestation) {
|
||||
if ($prestation->active == 'Oui') {
|
||||
$class = 'actif';
|
||||
} else {
|
||||
$class = 'noactif';
|
||||
}
|
||||
?>
|
||||
<tr class="border <?=$class?>">
|
||||
<td><?=$prestation->identifiant?></td>
|
||||
<td><?=$prestation->type?></td>
|
||||
<td><?=$prestation->dateDebut?></td>
|
||||
<td><?=$prestation->dateFin?></td>
|
||||
<td><?php if ($prestation->active == 'Oui') { ?>
|
||||
<a href="<?=$this->url(array('controller'=>'dashboard','action'=>'prestation','id'=>$prestation->id))?>">
|
||||
<img src="/themes/default/images/interfaces/editer_trans.png" title="Editer" width="16" height="16"/>
|
||||
</a><?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
} else {
|
||||
?>
|
||||
Aucune prestation.
|
||||
<?php }?>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
@ -1 +0,0 @@
|
||||
<?php
|
@ -1,47 +0,0 @@
|
||||
<div id="center">
|
||||
|
||||
<h1>Ajout d'un service</h1>
|
||||
|
||||
<?php if ($this->message) {?>
|
||||
|
||||
<?=$this->message?>
|
||||
|
||||
<?php } else {?>
|
||||
|
||||
<form method="post" action="<?=$this->url(array('controller'=>'dashboard','action'=>'service'),null,true)?>">
|
||||
<div class="paragraph">
|
||||
|
||||
<input type="hidden" name="idClient" value="<?=$this->idClient?>"/>
|
||||
Code <input type="text" name="code" value="<?=$this->code?>" />,
|
||||
Libellé <input type="text" name="label" value="<?=$this->label?>" />
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Droits d'accès</div>
|
||||
<div class="infoData">
|
||||
<?php foreach($this->wscategory as $category) {?>
|
||||
<fieldset>
|
||||
<legend><?=$category->desc?></legend>
|
||||
<?php
|
||||
foreach($category->droits->item as $droit) {
|
||||
$droit = strtolower($droit);
|
||||
if (in_array($droit, $this->droitsClients)) {
|
||||
$check = '';
|
||||
if ( count($this->droits)>0 && in_array($droit, $this->droits) ) {
|
||||
$check = ' checked';
|
||||
}
|
||||
?>
|
||||
<input type="checkbox" name="droits[]" value="<?=$droit?>"<?=$check?> class="noborder"/>
|
||||
<?=$this->droitsLib[strtoupper($droit)]?><br/>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</fieldset>
|
||||
<?php }?>
|
||||
</div>
|
||||
|
||||
<div class="submit"><p class="submit-button"><input type="submit" name="submit" value="Ajouter" class="button"/></p></div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<?php }?>
|
||||
|
||||
</div>
|
@ -1,12 +0,0 @@
|
||||
<div id="center">
|
||||
<h1>Toutes les statistiques</h1>
|
||||
|
||||
<?php
|
||||
$statTypes = $this->statTypes;
|
||||
while($statType = current($statTypes)) {
|
||||
echo "<h2>" . key($statTypes) . "</h2>";
|
||||
echo "<div style='padding-left: 50px'><img src='/themes/default/images/charts/chart-".$statType.".png' /></div>";
|
||||
next($statTypes);
|
||||
}
|
||||
?>
|
||||
</div>
|
@ -1,61 +0,0 @@
|
||||
<?php if ($this->error) {?>
|
||||
<?=$this->error?>
|
||||
<?php } else {?>
|
||||
<form method="post" action="<?=$this->url(array('controller'=>'dashboard','action'=>'tarif'),null,true)?>">
|
||||
<input type="hidden" name="idClient" value="<?=$this->idClient?>"/>
|
||||
|
||||
<label>Log</label>
|
||||
<select name="log">
|
||||
<?php foreach($this->logs as $log) {?>
|
||||
<?php $select = ''; if ($log->code==$this->log) $select = ' selected';?>
|
||||
<option value="<?=$log->code?>"<?=$select?>><?=$log->desc?> (<?=$log->code?>)</option>
|
||||
<?php }?>
|
||||
</select>
|
||||
<br/>
|
||||
|
||||
<label>Service</label>
|
||||
<select name="service">
|
||||
<option value="DEFAULT"<?php if ('DEFAULT'==$this->service) echo ' selected';?>>Default</option>
|
||||
<?php foreach($this->services as $service) {?>
|
||||
<?php $select = ''; if ($service->code==$this->service) $select = ' selected';?>
|
||||
<option value="<?=$service->code?>"<?=$select?>><?=$service->label?> (<?=$service->code?>)</option>
|
||||
<?php }?>
|
||||
</select>
|
||||
<br/>
|
||||
|
||||
<label>Type</label>
|
||||
<select name="type">
|
||||
<option value="Unitaire"<?=$select?>>Unitaire</option>
|
||||
<option value="ForfaitLimit"<?=$select?>>Forfait avec limite</option>
|
||||
<option value="ForfaitNoLimit"<?=$select?>>Forfait sans limite</option>
|
||||
</select><br/>
|
||||
<label>Prix unitaire</label> <input type="text" name="priceUnit"/><br/>
|
||||
<label>Nb Limit</label> <input type="text" name="limit"/><br/>
|
||||
<label>Date</label> <input type="text" name="date"/> (AAAAMMJJ)<br/>
|
||||
<label>Durée</label> <input type="text" name="duree"/> (Jours)<br/>
|
||||
<label>Doublon</label>
|
||||
<select name="doublon">
|
||||
<option value="none"<?=$select?>>Aucun</option>
|
||||
<option value="jour"<?=$select?>>Mois</option>
|
||||
<option value="mois"<?=$select?>>Jour</option>
|
||||
<option value="period"<?=$select?>>Periode du contrat</option>
|
||||
</select>
|
||||
<br/>
|
||||
|
||||
</form>
|
||||
<script>
|
||||
var windowhref = window.location.href;
|
||||
$('#dialog').dialog({ buttons: [
|
||||
{ text: "Valider", click: function() { survSubmit(); } },
|
||||
{ text: "Annuler", click: function() { $(this).dialog("close"); } }
|
||||
]});
|
||||
|
||||
function survSubmit(){
|
||||
$('#dialogsurv').dialog({buttons: []});
|
||||
|
||||
$('#dialogsurv').dialog({ buttons: [
|
||||
{ text: "Fermer", click: function() { window.location.href = windowhref; $(this).dialog("close"); } }
|
||||
]});
|
||||
}
|
||||
</script>
|
||||
<?php }?>
|
@ -1 +0,0 @@
|
||||
<?php
|
@ -1,102 +0,0 @@
|
||||
<div id="center">
|
||||
<h1>TARIFS</h1>
|
||||
<div class="paragraph">
|
||||
<a class="contrat-add" href="#">Créer une nouvelle période de tarification</a>
|
||||
</div>
|
||||
|
||||
<h2>Liste des tarifs</h2>
|
||||
<div class="paragraph">
|
||||
<?php if(count($this->contrats)>0) {?>
|
||||
<style>
|
||||
table {width:100%;}
|
||||
table th {border:1px solid #cccccc; padding:2px; text-align:center;}
|
||||
table td {border:1px solid #cccccc; padding:2px; height:16px; text-align:center;}
|
||||
</style>
|
||||
|
||||
<?php foreach ( $this->contrats as $contrat ) {?>
|
||||
<div class="contrat">
|
||||
<div>Du <span class="date-begin"><?=$contrat->dateBegin?></span> au <span><?=$contrat->dateEnd?></span></div>
|
||||
<br/>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Element</th>
|
||||
<th>Service</th>
|
||||
<th>Type</th>
|
||||
<th>Prix unitaire</th>
|
||||
<th>Limite</th>
|
||||
<th>Dédoublonnage</th>
|
||||
</tr>
|
||||
<?php foreach ($contrat->tarifs->item as $tarif ) {?>
|
||||
<tr>
|
||||
<td class="edit-log"><?=$tarif->log?></td>
|
||||
<td class="edit-service"><?=$tarif->service?></td>
|
||||
<td class="edit-type"><?=$tarif->type?></td>
|
||||
<td class="edit-priceUnit"><?=$tarif->priceUnit?></td>
|
||||
<td class="edit-limit"><?=$tarif->limit?></td>
|
||||
<td class="edit-doublon"><?=$tarif->doublon?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
<br/>
|
||||
<div style="line-height:16px;">
|
||||
<a class="tarif-add" title="Ajouter un tarif" href="<?=$this->url(array('controller'=>'dashboard','action'=>'tarif','date'=>$contrat->dateBegin))?>">
|
||||
<img style="vertical-align:middle;" src="/themes/default/images/interfaces/ajouter.png" />Ajouter un tarif</a>
|
||||
</div>
|
||||
<br/>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
<hr/>
|
||||
|
||||
<?php } else {?>
|
||||
Aucun tarif défini.
|
||||
<?php }?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<script>
|
||||
$('a.tarif-add').click(function(e){
|
||||
e.preventDefault();
|
||||
var title = "Ajout d'un tarif";
|
||||
var href = $(this).attr('href');
|
||||
var dialogOpts = {
|
||||
bgiframe: true,
|
||||
title: title,
|
||||
width: 500,
|
||||
height: 400,
|
||||
modal: true,
|
||||
open: function(event, ui) {
|
||||
$(this).html('Chargement...');
|
||||
$(this).load(href);
|
||||
},
|
||||
buttons: {
|
||||
Annuler: function() { $(this).dialog('close'); }
|
||||
},
|
||||
close: function() { $('#dialog').remove(); }
|
||||
};
|
||||
$('<div id="dialog"></div>').dialog(dialogOpts);
|
||||
});
|
||||
|
||||
$('a.contrat-add').click(function(e){
|
||||
e.preventDefault();
|
||||
var title = "Ajout d'un contrat";
|
||||
var href = $(this).attr('href');
|
||||
var dialogOpts = {
|
||||
bgiframe: true,
|
||||
title: title,
|
||||
width: 500,
|
||||
height: 200,
|
||||
modal: true,
|
||||
open: function(event, ui) {
|
||||
$(this).html('Chargement...');
|
||||
$(this).load(href);
|
||||
},
|
||||
buttons: {
|
||||
Annuler: function() { $(this).dialog('close'); }
|
||||
},
|
||||
close: function() { $('#dialog').remove(); }
|
||||
};
|
||||
$('<div id="dialog"></div>').dialog(dialogOpts);
|
||||
});
|
||||
</script>
|
@ -1,310 +0,0 @@
|
||||
<div id="center">
|
||||
|
||||
<?php if (!empty($this->message)) { ?>
|
||||
<div style="margin:5px; padding: 5pt 0.7em;" class="ui-state-highlight ui-corner-all">
|
||||
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-info"></span>
|
||||
<?=$this->message?>
|
||||
</p></div>
|
||||
<?php } ?>
|
||||
|
||||
<h1 class="titre">PROFIL UTILISATEUR</h1>
|
||||
|
||||
<form id="moncompte" name="moncompte" action="/dashboard/user/op/save" method="post">
|
||||
|
||||
<div class="paragraph">
|
||||
|
||||
<input type="hidden" name="frmOptions[idClient]" value="<?=$this->options['idClient']?>"/>
|
||||
<input type="hidden" name="frmOptions[action]" value="<?=$this->action?>"/>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Identifiant utilisateur</div>
|
||||
<div class="infoData">
|
||||
<?php
|
||||
if ($this->action == 'new') {
|
||||
?>
|
||||
<input type="text" size="20" maxlength="80" name="frmOptions[login]" value="<?=$this->loginNew?>"/>
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
<input type="text" size="20" maxlength="80" name="frmOptions[login]" value="<?=$this->options['login']?>"/>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Identité (NOM/Prénom)</div>
|
||||
<div class="infoData">
|
||||
<input type="text" size="20" maxlength="80" name="frmOptions[nom]" value="<?=$this->options['nom']?>"/>
|
||||
<input type="text" size="20" maxlength="80" name="frmOptions[prenom]" value="<?=$this->options['prenom']?>"/>
|
||||
</div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Réf. facturation (service, etc...)</div>
|
||||
<div class="infoData">
|
||||
<input type="text" size="20" maxlength="80" name="frmOptions[reference]" value="<?=$this->options['referenceParDefaut']?>"/>
|
||||
</div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Adresse e-mail</div>
|
||||
<div class="infoData">
|
||||
<input type="text" size="30" maxlength="80" name="frmOptions[email]" value="<?=$this->options['email']?>"/>
|
||||
<?php if ($this->action != 'new') {?>
|
||||
<br/><a id="email-surveillance"
|
||||
href="<?=$this->url(array('controller'=>'user', 'action'=>'emailsurveillance', 'login'=>$this->options['login']), null, true)?>"
|
||||
title="Initialiser email des surveillances">Initialiser email des surveillances</a>
|
||||
<?php }?>
|
||||
</div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">
|
||||
Numéros de téléphone<br/><i>(Fixe, Fax, Mobile)</i>
|
||||
</div>
|
||||
<div class="infoData">
|
||||
<input type="text" size="10" maxlength="15" name="frmOptions[tel_fix]" value="<?=$this->options['tel']?>"/>
|
||||
<input type="text" size="10" maxlength="15" name="frmOptions[tel_fax]" value="<?=$this->options['fax']?>"/>
|
||||
<input type="text" size="10" maxlength="15" name="frmOptions[tel_mob]" value="<?=$this->options['mobile']?>"/>
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Mot de passe</div>
|
||||
<div class="infoData last">
|
||||
<?php
|
||||
if ($this->action=='new') {
|
||||
$typeChamp = 'text';
|
||||
$changePassword = 1;
|
||||
?>
|
||||
<input type="<?=$typeChamp?>" name="frmOptions[password]" value="<?=$this->password?>"/>
|
||||
<input type="hidden" name="frmOptions[changepwd]" value="<?=$changePassword?>"/>
|
||||
<?php
|
||||
} else {
|
||||
$typeChamp = 'hidden';
|
||||
$changePassword = 0;
|
||||
?>
|
||||
<a href="#" id="password">Modifier le mot de passe.</a>
|
||||
<input type="<?=$typeChamp?>" name="frmOptions[password]" value="<?=$this->options['password']?>"/>
|
||||
<input type="hidden" name="frmOptions[changepwd]" value="<?=$changePassword?>"/>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Langue de l'interface par défaut</div>
|
||||
<div class="infoData">
|
||||
<select name="frmOptions[lang]">
|
||||
<?php
|
||||
$lngOpts = array('fr' => 'Français', 'en' => 'English');
|
||||
foreach($lngOpts as $lngKey => $lngVal)
|
||||
{
|
||||
$selected = '';
|
||||
if($lngKey == $this->options['lang']) $selected = 'selected';
|
||||
?><option value="<?=$lngKey?>" <?=$selected?>><?=$lngVal?></option><?php
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>Paramètres spécifiques</h2>
|
||||
<div class="paragraph">
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Résultats par page</div>
|
||||
<div class="infoData">
|
||||
<select name="frmOptions[nbReponses]">
|
||||
<?php
|
||||
$opts = array(10, 20, 30, 40, 50, 100, 150, 200);
|
||||
foreach($opts as $opt)
|
||||
{
|
||||
$selected = '';
|
||||
if($opt == $this->options['nbReponses']) $selected = 'selected';
|
||||
?><option value="<?=$opt?>" <?=$selected?>><?=$opt?></option><?php
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Type de Compte</div>
|
||||
<div class="infoData">
|
||||
<select name="frmOptions[typeCompte]">
|
||||
<?php
|
||||
$opts = array('PROD', 'TEST');
|
||||
foreach($opts as $opt)
|
||||
{
|
||||
$selected = '';
|
||||
if($opt == $this->options['typeCompte']) $selected = 'selected';
|
||||
?><option value="<?=$opt?>" <?=$selected?>><?=$opt?></option><?php
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Format mail</div>
|
||||
<div class="infoData">
|
||||
<select name="frmOptions[formatMail]">
|
||||
<?php
|
||||
$opts = array(
|
||||
'txt1'=> 'Une annonce par mail',
|
||||
'txt2' => 'Toutes les annonces dans un mail',
|
||||
'csv' => 'Toutes les annonces dans un mail, fichier csv joint',
|
||||
'pdf' => 'Une annonce par mail, fichier pdf joint',
|
||||
'pdf1' => 'Toutes les annonces dans un mail, fichier pdf joint',
|
||||
'xls' => 'XLS',
|
||||
'htm'=> 'HTML');
|
||||
foreach($opts as $opt => $lib)
|
||||
{
|
||||
$selected = '';
|
||||
if($opt == $this->options['formatMail']) $selected = 'selected';
|
||||
?><option value="<?=$opt?>" <?=$selected?>><?=$lib?></option><?php
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Lien vers annonces légales dans mail</div>
|
||||
<div class="infoData">
|
||||
<select name="frmOptions[lienExtranetMail]">
|
||||
<?php
|
||||
$opts = array( '0'=> 'Non', '1' => 'Oui');
|
||||
foreach($opts as $opt => $lib)
|
||||
{
|
||||
$selected = '';
|
||||
if($opt == $this->options['lienExtranetMail']) $selected = 'selected';
|
||||
?><option value="<?=$opt?>" <?=$selected?>><?=$lib?></option><?php
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Liste Evenement</div>
|
||||
<div class="infoData">
|
||||
<textarea name="frmOptions[listeEven]">
|
||||
<?=$this->options['listeEven']?>
|
||||
</textarea>
|
||||
<br/><span>Liste de code évenements séparés par des ;</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Date de debut de compte</div>
|
||||
<div class="infoData">
|
||||
<input type="text" name="frmOptions[dateDebutCompte]" value="<?=$this->options['dateDebutCompte']?>"/>
|
||||
<br/><span>Format AAAA-MM-JJ</span>
|
||||
</div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Date de fin de compte</div>
|
||||
<div class="infoData">
|
||||
<input type="text" name="frmOptions[dateFinCompte]" value="<?=$this->options['dateFinCompte']?>"/>
|
||||
<br/><span>Format AAAA-MM-JJ</span>
|
||||
</div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Appliquer le Filtre IP du compte Client</div>
|
||||
<div class="infoData">
|
||||
<select name="frmOptions[ip]">
|
||||
<?php
|
||||
$opts = array( 1 => 'Oui', 0 => 'Non');
|
||||
foreach($opts as $opt)
|
||||
{
|
||||
$selected = '';
|
||||
if($this->options['filtre_ip'] == $this->options['filtreIpClient']) $selected = 'selected';
|
||||
?><option value="<?=$opt?>" <?=$selected?>><?=$opt?></option><?php
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<br/><span><?=$this->options['filtre_ip']?></span>
|
||||
</div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Type de recherche par référence</div>
|
||||
<div class="infoData">
|
||||
<select name="frmOptions[rechRefType]">
|
||||
<?php
|
||||
$opts = array('UTI', 'CLI');
|
||||
foreach($opts as $opt)
|
||||
{
|
||||
$selected = '';
|
||||
if($opt == $this->options['rechRefType']) $selected = 'selected';
|
||||
?><option value="<?=$opt?>" <?=$selected?>><?=$opt?></option><?php
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Accès WebService</div>
|
||||
<div class="infoData">
|
||||
<select name="frmOptions[accesWS]">
|
||||
<?php
|
||||
$opts = array(0 =>'Non', 1=>'Oui');
|
||||
foreach($opts as $opt => $lib)
|
||||
{
|
||||
$selected = '';
|
||||
if($opt == $this->options['accesWS']) $selected = 'selected';
|
||||
?><option value="<?=$opt?>" <?=$selected?>><?=$lib?></option><?php
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<h2>Gestion des droits</h2>
|
||||
<div class="paragraph">
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Type de profil</div>
|
||||
<div class="infoData">
|
||||
|
||||
<select name="frmOptions[profil]">
|
||||
<?php
|
||||
$profil = array('Utilisateur', 'Administrateur', 'SuperAdministrateur');
|
||||
foreach ($profil as $item){
|
||||
$select = '';
|
||||
if ($this->options['profil'] == $item) {
|
||||
$select = ' selected';
|
||||
}
|
||||
?>
|
||||
<option value="<?=$item?>"<?=$select?>><?=$item?></option>
|
||||
<?php }?>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Droits d'accès</div>
|
||||
<div class="infoData">
|
||||
<?php foreach($this->wscategory as $category) {?>
|
||||
<fieldset>
|
||||
<legend><?=$category->desc?></legend>
|
||||
<?php
|
||||
foreach($category->droits->item as $droit) {
|
||||
$droit = strtolower($droit);
|
||||
if (in_array($droit, $this->droitsClients)) {
|
||||
$check = '';
|
||||
if ( count($this->droits)>0 && in_array($droit, $this->droits) ) {
|
||||
$check = ' checked';
|
||||
}
|
||||
?>
|
||||
<input type="checkbox" name="frmOptions[droits][]" value="<?=$droit?>"<?=$check?> class="noborder"/>
|
||||
<?=$this->droitsLib[strtoupper($droit)]?><br/>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</fieldset>
|
||||
<?php }?>
|
||||
</div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Préférences</div>
|
||||
<div class="infoData last">
|
||||
<?php
|
||||
foreach ($this->prefsLib as $code => $lib) {
|
||||
$check = '';
|
||||
if ($this->prefs && in_array(strtolower($code), $this->prefs)) {
|
||||
$check = ' checked';
|
||||
}
|
||||
?>
|
||||
<input type="checkbox" name="frmOptions[pref][]" value="<?=strtolower($code)?>"<?=$check?> class="noborder"/>
|
||||
<?=$lib?><br/>
|
||||
<?php }?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="submit"><p class="submit-button"><input type="submit" class="button" value="Sauver"/></p></div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="dialog-password" title="Modifier le mot de passe">
|
||||
<form>
|
||||
<label for="npass1">Nouveau mot de passe</label><br/>
|
||||
<input type="password" name="npass1" size="15" maxlength="32"/><br/>
|
||||
<label for="npass2">Répéter le nouveau mot de passe</label><br/>
|
||||
<input type="password" name="npass2" size="15" maxlength="32"/><br/>
|
||||
<span id="form-message"></span>
|
||||
</form>
|
||||
</div>
|
@ -1,196 +0,0 @@
|
||||
<script>
|
||||
$(function(){
|
||||
|
||||
$('a.user-service').click(function(e){
|
||||
e.preventDefault();
|
||||
var title = $(this).attr('title');
|
||||
var href = $(this).attr('href');
|
||||
var dialogOpts = {
|
||||
bgiframe: true,
|
||||
title: title,
|
||||
width: 500,
|
||||
height: 350,
|
||||
modal: true,
|
||||
open: function(event, ui) {
|
||||
$(this).html('Chargement...');
|
||||
$(this).load(href);
|
||||
},
|
||||
buttons: {
|
||||
'Fermer': function() { $(this).dialog('close'); }
|
||||
},
|
||||
close: function() { $('#dialog').remove(); }
|
||||
};
|
||||
$('<div id="dialog"></div>').dialog(dialogOpts);
|
||||
return false;
|
||||
});
|
||||
|
||||
$('a.delete').on('click', function(e){
|
||||
e.preventDefault();
|
||||
var href = $(this).attr('href');
|
||||
var title = $(this).attr('title');
|
||||
if (confirm(title)) {
|
||||
document.location.href=href;
|
||||
}
|
||||
});
|
||||
|
||||
$('a.enable').on('click', function(e){
|
||||
e.preventDefault();
|
||||
var href = $(this).attr('href');
|
||||
var title = $(this).attr('title');
|
||||
if (confirm(title)) {
|
||||
document.location.href=href;
|
||||
}
|
||||
});
|
||||
|
||||
$('a.disable').on('click', function(e){
|
||||
e.preventDefault();
|
||||
var href = $(this).attr('href');
|
||||
var title = $(this).attr('title');
|
||||
if (confirm(title)) {
|
||||
document.location.href=href;
|
||||
}
|
||||
});
|
||||
|
||||
$('input[name=searchLogin]').autocomplete({
|
||||
minLength:3,
|
||||
source: function(request, response) {
|
||||
$.getJSON('<?=$this->url(array('controller'=>'dashboard','action'=>'usersearch','idClient'=>$this->idClient))?>', { q: request.term },
|
||||
function(data) { response(data); }
|
||||
);
|
||||
},
|
||||
select: function (event, ui) {
|
||||
var href = '<?=$this->url(array('controller'=>'dashboard','action'=>'user','op'=>'edit','idClient'=>$this->idClient))?>/login/'+ui.item.value;
|
||||
document.location.href=href;
|
||||
}
|
||||
});
|
||||
|
||||
$('select[name=service]').change(function(e){
|
||||
e.preventDefault();
|
||||
document.location.href='<?=$this->url(array('controller'=>'dashboard','action'=>'users','idClient'=>$this->idClient),null,true)?>/service/'+$(this).val();
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
<div id="center">
|
||||
<h1>GESTION DES CLIENTS</h1>
|
||||
<div class="paragraph">
|
||||
Recherche de login <input type="text" name="searchLogin"/>
|
||||
<a href="<?=$this->url(array('controller'=>'dashboard','action'=>'user','op' =>'new'))?>">
|
||||
Créer un profil utilisateur</a>
|
||||
</div>
|
||||
<h2>Services</h2>
|
||||
<div class="paragraph">
|
||||
<select name="service">
|
||||
<option value="">Afficher tout</option>
|
||||
<option value="DEFAULT"<?php if ('DEFAULT'==$this->service) echo ' selected';?>>Default</option>
|
||||
<?php foreach($this->services as $service) {?>
|
||||
<?php $select = ''; if ($service->code==$this->service) $select = ' selected';?>
|
||||
<option value="<?=$service->code?>"<?=$select?>><?=$service->label?> (<?=$service->code?>)</option>
|
||||
<?php }?>
|
||||
</select>
|
||||
<a href="<?=$this->url(array('controller'=>'dashboard','action'=>'service','idClient'=>$this->idClient),null,true)?>">
|
||||
Editer le service</a>
|
||||
| <a href="<?=$this->url(array('controller'=>'dashboard','action'=>'service','idClient'=>$this->idClient),null,true)?>">
|
||||
Créer un service</a>
|
||||
</div>
|
||||
|
||||
<?php if (!empty($this->service)) {?>
|
||||
<div class="paragraph">
|
||||
<input type="button" class="button" name="overrideAccess" Value="Ecraser les droits de tous les utilisateurs"/>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
<h2>Liste des profils utilisateurs</h2>
|
||||
<div class="paragraph">
|
||||
<table id="utilisateur">
|
||||
<?php if (isset($message) && $message != '') {?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td colspan="5" class="StyleInfoData" align="center">
|
||||
<h3><?=$message?></h3>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr class="border titre">
|
||||
<td class="StyleInfoLib">Login</td>
|
||||
<td class="StyleInfoLib">Informations</td>
|
||||
<td class="StyleInfoLib">Référence</td>
|
||||
<td class="StyleInfoLib">Service</td>
|
||||
<td class="StyleInfoLib">Actions</td>
|
||||
<td class="StyleInfoLib">Actif</td>
|
||||
</tr>
|
||||
<?php if (count($this->utilisateurs)>0) { ?>
|
||||
<?php
|
||||
foreach ($this->utilisateurs as $uti) {
|
||||
$lienParams = ' login="'.$uti->login.'"';
|
||||
?>
|
||||
<tr class="border">
|
||||
<td class="StyleInfoData"><?=$uti->login;?></td>
|
||||
<td class="StyleInfoData">
|
||||
<?=$uti->nom.' '.$uti->prenom?><br/>
|
||||
<a href="mailto:<?=$uti->email?>">
|
||||
<?=str_replace(array(';',','), array('<br/>', '<br/>'), $uti->email);?>
|
||||
</a>
|
||||
</td>
|
||||
<td class="StyleInfoData"><?=$uti->reference?></td>
|
||||
<td class="StyleInfoData">
|
||||
<a title="Définir un service"
|
||||
href="<?=$this->url(array('controller'=>'dashboard','action'=>'userservice',
|
||||
'idClient'=>$uti->idClient,'login'=>$uti->login,'service'=>$uti->service),null,true)?>"
|
||||
class="user-service">
|
||||
<?php if (!empty($uti->service)) {?>
|
||||
<?=$uti->service?>
|
||||
<?php } else {?>
|
||||
Default
|
||||
<?php }?>
|
||||
</a>
|
||||
</td>
|
||||
<td align="center" valign="middle">
|
||||
<a href="<?=$this->url(array(
|
||||
'controller' => 'dashboard',
|
||||
'action' => 'user',
|
||||
'op' => 'edit',
|
||||
'login' => $uti->login,
|
||||
))?>" class="edit">
|
||||
<img src="/themes/default/images/interfaces/edit0.gif" title="Editer le profil utilisateur" width="16" height="16"/>
|
||||
</a>
|
||||
<a href="<?=$this->url(array(
|
||||
'controller' => 'dashboard',
|
||||
'action' => 'user',
|
||||
'op' => 'delete',
|
||||
'login' => $uti->login,
|
||||
'idUti' => $uti->idUti,
|
||||
))?>" class="delete" title="Supprimer l'utilisateur <?=$uti->login?>">
|
||||
<img src="/themes/default/images/interfaces/delete.gif" title="Supprimer le profil utilisateur" width="11" height="11"/>
|
||||
</a>
|
||||
</td>
|
||||
<td class="StyleInfoData">
|
||||
<?php if ($uti->actif == 1) { ?>
|
||||
<a href="<?=$this->url(array(
|
||||
'controller' => 'dashboard',
|
||||
'action' => 'user',
|
||||
'op' => 'disable',
|
||||
'login' => $uti->login,
|
||||
'idUti' => $uti->idUti,
|
||||
))?>" class="disable" title="Désactiver le profil utilisateur <?=$uti->login?>">
|
||||
<u><font color="green">Oui</font></u>
|
||||
</a>
|
||||
<?php } else { ?>
|
||||
<a href="<?=$this->url(array(
|
||||
'controller' => 'dashboard',
|
||||
'action' => 'user',
|
||||
'op' => 'enable',
|
||||
'login' => $uti->login,
|
||||
'idUti' => $uti->idUti,
|
||||
))?>" class="enable" title="Activer le profil utilisateur <?=$uti->login?>">
|
||||
<u><font color="red">Non</font></u>
|
||||
</a>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
@ -1 +0,0 @@
|
||||
<?=json_encode($this->output)?>
|
@ -1,37 +0,0 @@
|
||||
<?php if ($this->post) {?>
|
||||
|
||||
<script>
|
||||
$('#dialog').dialog({ buttons: [
|
||||
{ text: "Fermer", click: function() { $(this).dialog('close'); } }
|
||||
] });
|
||||
</script>
|
||||
|
||||
<?php } else {?>
|
||||
<div id="result">
|
||||
<div>Définir un service pour le login <?=$this->login?></div>
|
||||
|
||||
<form action="<?=$this->url(array('controller'=>'dashboard','action'=>'userservice'))?>">
|
||||
<input type="hidden" name="login" value="<?=$this->login?>"/>
|
||||
<div>
|
||||
Service : <select name="service">
|
||||
<option value="DEFAULT"<?php if ('DEFAULT'==$this->service) echo ' selected';?>>Default</option>
|
||||
<?php foreach($this->services as $service) {?>
|
||||
<?php $select = ''; if ($service->code==$this->service) $select = ' selected';?>
|
||||
<option value="<?=$service->code?>"<?=$select?>><?=$service->label?> (<?=$service->code?>)</option>
|
||||
<?php }?>
|
||||
</select>
|
||||
</div>
|
||||
</form>
|
||||
<script>
|
||||
$('#dialog').dialog({ buttons: [
|
||||
{ text: "Valider", click: function() {
|
||||
var url = $('#dialog form').attr('action');
|
||||
var login = $('#dialog input[name=login]').val();
|
||||
var service = $('#dialog select[name=service] option:selected').val();
|
||||
$.post(url, { login: login, service: service}, function(data) { $('#result').html(data); });
|
||||
} },
|
||||
{ text: "Annuler", click: function() { $(this).dialog('close'); } }
|
||||
] });
|
||||
</script>
|
||||
</div>
|
||||
<?php }?>
|
@ -1,62 +0,0 @@
|
||||
<div id="center">
|
||||
<h1><?=$this->translate("DIRIGEANTS")?></h1>
|
||||
<div class="paragraph">
|
||||
<table class="identite">
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib"><?=$this->translate("Numéro identifiant Siren")?></td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->SirenTexte($this->siren)?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib"><?=$this->translate("Dénomination Sociale")?></td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
|
||||
</tr>
|
||||
<?php if ($this->surveillance) {?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td colspan="2" width="550" class="StyleInfoData">
|
||||
<?=$this->action('infos','surveillance', null, array(
|
||||
'source' => 'dirigeants',
|
||||
'siret' => $this->siret
|
||||
))?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2><?=$this->translate("Historique des dirigeants")?></h2>
|
||||
<div class="paragraph">
|
||||
|
||||
<?php if (count($this->dirigeants) > 0) {?>
|
||||
<table class="data">
|
||||
<?php foreach ($this->dirigeants as $dir) {?>
|
||||
<tr>
|
||||
<td class="StyleInfoData" width="270"><?=$dir->Titre?></td>
|
||||
<td class="StyleInfoData" width="200"><?=$dir->Societe.' '.$dir->Nom.' '.$dir->Prenom?></td>
|
||||
<td class="StyleInfoData" width="200">
|
||||
<?php
|
||||
if ($dir->DateFct != '0000-00-00') {
|
||||
$date = new Zend_Date($dir->DateFct,'yyyy-MM-dd'); ?>
|
||||
<?php if ( Zend_Date::isDate($date) ) { ?>
|
||||
<?=$this->translate("Modification le") . ' ' . $date->toString('dd/MM/yyyy');?>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
<?php } else {?>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="StyleInfoData" width="550">
|
||||
<?=$this->translate("Aucune donnée n'est présente dans notre base")?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php }?>
|
||||
</div>
|
||||
|
||||
<?=$this->render('cgu.phtml', $this->cgu)?>
|
||||
</div>
|
@ -1,177 +0,0 @@
|
||||
<?php if (empty($this->AutrePage)) {?>
|
||||
<div id="center">
|
||||
<?php }?>
|
||||
|
||||
<?php if (empty($this->AutrePage)){?>
|
||||
<h1><?=$this->translate("DIRIGEANTS")?></h1>
|
||||
<div class="paragraph">
|
||||
<table class="identite">
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib"><?=$this->translate("Numéro identifiant Siren")?></td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->SirenTexte($this->siren)?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib"><?=$this->translate("Dénomination Sociale")?></td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
|
||||
</tr>
|
||||
<?php if ($this->surveillance) {?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td colspan="2" width="550" class="StyleInfoData">
|
||||
<?=$this->action('infos','surveillance', null, array(
|
||||
'source' => 'dirigeants',
|
||||
'siret' => $this->siret
|
||||
))?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if( $this->dirigeantsop ){ ?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td colspan="2" width="550" class="StyleInfoData">
|
||||
<a href="<?=$this->dirigeantsop?>"><?=$this->translate("Consulter la liste des dirigeants opérationnels")?></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
<h2><?=$this->translate("Liste des dirigeants actifs")?></h2>
|
||||
<div class="paragraph">
|
||||
<?php if ( count($this->dirigeants)>0 ) { ?>
|
||||
<table class="data">
|
||||
<?php foreach ($this->dirigeants as $dir) {?>
|
||||
<tr>
|
||||
<td class="StyleInfoData" width="200"><?=$dir->Titre?></td>
|
||||
<td class="StyleInfoData" width="320">
|
||||
|
||||
<?php if ($dir->Societe != '') { ?>
|
||||
<a href="<?=$this->url(array('controller' => 'recherche', 'action' => 'liste', 'type' => 'ent','raisonSociale' => $dir->Societe), 'default', true)?>"
|
||||
title="<?=$this->translate("Recherche à partir de la dénomination sociale")?>">
|
||||
<?=$dir->Societe?>
|
||||
</a>
|
||||
<br/>
|
||||
<?php }?>
|
||||
|
||||
<?php if ($dir->Nom != '') { ?>
|
||||
<a href="<?=$this->url(array(
|
||||
'controller' => 'recherche',
|
||||
'action' => 'liste',
|
||||
'type' => 'dir',
|
||||
'dirNom' => $dir->Nom,
|
||||
'dirPrenom' => $dir->Prenom,
|
||||
'dirDateNaissJJ' => substr($dir->NaissDate,0,2),
|
||||
'dirDateNaissMM' => substr($dir->NaissDate,3,2),
|
||||
'dirDateNaissAAAA' => substr($dir->NaissDate,6,4),
|
||||
'dirCpVille' => $dir->NaissVille,
|
||||
), 'default', true)?>" title="<?=$this->translate("Recherche à partir du nom du dirigeant")?>">
|
||||
<?=$dir->Nom.' '.$dir->Prenom?>
|
||||
</a>
|
||||
<?php
|
||||
if (trim($dir->NaissDate) != '' && trim($dir->NaissVille.' '.$dir->NaissDepPays) != '') { ?>
|
||||
<br/>né(e) le <?=$dir->NaissDate?> à <?=$dir->NaissVille?>
|
||||
<?php if (trim($dir->NaissDepPays) != '') { ?> (<?=$dir->NaissDepPays?>)<?php }?>
|
||||
<?php } else if (trim($dir->NaissDate) != '') { ?>
|
||||
né(e) le <?=$dir->NaissDate?>
|
||||
<?php } else if (trim($dir->NaissVille.' '.$dir->NaissDepPays) != '') { ?>
|
||||
né(e) à <?=$dir->NaissVille?> (<?=$dir->NaissDepPays?>)
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
</td>
|
||||
<td class="StyleInfoData" width="100" valign="top">
|
||||
<?php if ($dir->Siren!='') {?>
|
||||
<a title="<?=$this->translate("Consulter la fiche identité")?>" href="<?=$this->url(array('controller'=>'identite', 'action'=>'fiche', 'siret'=>$dir->Siren), 'default', true)?>">
|
||||
<?=$this->SirenTexte($dir->Siren)?></a>
|
||||
|
||||
<?php if (empty($this->AutrePage) && $this->edition) {?>
|
||||
<div style="line-height:16px;">
|
||||
<a class="dialog" title="<?=$this->translate("Ajouter un actionnaire")?>" href="<?=$this->url(array('controller'=>'saisie','action'=>'lien','type'=>'actionnaire','mode'=>'add','siren'=>$this->siren,'createfiche'=>$dir->Siren),null,true)?>">
|
||||
<img style="vertical-align:middle;" src="/themes/default/images/interfaces/ajouter.png" /></a>
|
||||
</div>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
</td>
|
||||
<?php if (empty($this->AutrePage) && $this->accessWorldCheck) {?>
|
||||
<td>
|
||||
<?php if ($dir->Societe != '') { ?>
|
||||
<img style="cursor:pointer;" class="wcheck" data-url="<?=$this->url(array(
|
||||
'controller'=>'worldcheck','action'=>'occurence','siren'=>substr($this->siret,0,9),
|
||||
'dirType'=>'ORGANISATION','dirSociete'=>$dir->Societe),'default',true);?>" src="/themes/default/images/worldcheck/wc.png"/>
|
||||
<?php }?>
|
||||
<?php if ($dir->Nom != '') { ?>
|
||||
<img style="cursor:pointer;" class="wcheck" data-url="<?=$this->url(array(
|
||||
'controller'=>'worldcheck','action'=>'occurence','siren'=>substr($this->siret,0,9),
|
||||
'dirType'=>'INDIVIDUAL','dirNom'=>$dir->Nom,'dirPrenom'=>$dir->Prenom),'default',true);?>" src="/themes/default/images/worldcheck/wc.png"/>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<?php }?>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
<?php } else { ?>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="StyleInfoData" width="550">
|
||||
<?=$this->translate("Aucune donnée n'est présente dans notre base")?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<?php if (empty($this->AutrePage)) {?>
|
||||
<?=$this->render('cgu.phtml', $this->cgu)?>
|
||||
<?php }?>
|
||||
|
||||
<?php if (empty($this->AutrePage)) {?>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
<?php if (empty($this->AutrePage) && $this->edition) {?>
|
||||
<script>
|
||||
$('a.dialog').on('click', function(){
|
||||
var href = $(this).attr('href');
|
||||
if (href!='#') {
|
||||
var title = $(this).attr('title');
|
||||
var dialogOpts = {
|
||||
bgiframe: true,
|
||||
title: title,
|
||||
width: 650,
|
||||
height: 600,
|
||||
modal: true,
|
||||
open: function(event, ui) {
|
||||
$(this).html('Chargement...');
|
||||
$(this).load(href);
|
||||
},
|
||||
buttons: {
|
||||
Quitter: function() { $(this).dialog('close'); }
|
||||
},
|
||||
close: function() { $('#dialog').remove(); }
|
||||
};
|
||||
$('<div id="dialog"></div>').dialog(dialogOpts);
|
||||
return false;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<?php }?>
|
||||
|
||||
<?php if (empty($this->AutrePage) && $this->accessWorldCheck) {?>
|
||||
<script>
|
||||
$('img.wcheck').each(function(){
|
||||
$(this).qtip({
|
||||
hide: { event: 'unfocus' },
|
||||
show: { solo: true, delay: 500 },
|
||||
content: {
|
||||
button: true,
|
||||
title: 'WorlCheck',
|
||||
text: "Chargement...",
|
||||
ajax: { url: $(this).data('url') } },
|
||||
position: { my: 'right center', at: 'left center' }
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php }?>
|
@ -1,178 +0,0 @@
|
||||
<?php if (empty($this->AutrePage)){?>
|
||||
<div id="center">
|
||||
<?php }?>
|
||||
|
||||
<?php if (empty($this->AutrePage)){?>
|
||||
<h1><?=$this->translate("DIRIGEANTS OPÉRATIONNELS")?></h1>
|
||||
<div class="paragraph">
|
||||
<table class="identite">
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib"><?=$this->translate("Numéro identifiant Siren")?></td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->SirenTexte($this->siren)?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib"><?=$this->translate("Dénomination Sociale")?></td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
|
||||
</tr>
|
||||
<?php if ($this->surveillance) {?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td colspan="2" width="550" class="StyleInfoData">
|
||||
<?=$this->action('infos','surveillance', null, array(
|
||||
'source' => 'dirigeants',
|
||||
'siret' => $this->siret
|
||||
))?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
<h2><?=$this->translate("Liste des dirigeants actifs")?></h2>
|
||||
<div class="paragraph">
|
||||
<?php if ($this->edition) {?>
|
||||
<a class="dialog" title="Ajouter un dirigeant" href="<?=$this->url(array('controller'=>'saisie','action'=>'diropcontrol','mode'=>'add','siret'=>$this->siret), 'default', true)?>">
|
||||
<img style="vertical-align:middle;" src="/themes/default/images/interfaces/ajouter.png" /><?=$this->translate("Ajouter un dirigeant")?></a>
|
||||
<?php }?>
|
||||
<?php if ( count($this->dirigeants)>0 ) {?>
|
||||
<table class="data">
|
||||
<?php foreach ($this->dirigeants as $dir) {?>
|
||||
<tr>
|
||||
<td class="StyleInfoData" width="140"><?=$dir->Titre?></td>
|
||||
<td class="StyleInfoData" id="<?=$dir->Id?>" width="200">
|
||||
<?php if ($dir->Societe != '') { ?>
|
||||
<a href="<?=$this->url(array(
|
||||
'controller' => 'recherche',
|
||||
'action' => 'liste',
|
||||
'type' => 'ent',
|
||||
'raisonSociale' => $dir->Societe
|
||||
), 'default', true)?>"
|
||||
title="<?=$this->translate("Recherche à partir de la Dénomination sociale")?>">
|
||||
<?=$dir->Societe?>
|
||||
</a>
|
||||
|
||||
<?php }?>
|
||||
<?php if ($dir->Nom != '') { ?>
|
||||
<a href="<?=$this->url(array(
|
||||
'controller' => 'recherche',
|
||||
'action' => 'liste',
|
||||
'type' => 'dir',
|
||||
'dirNom' => $dir->Nom,
|
||||
'dirPrenom' => $dir->Prenom,
|
||||
), 'default', true)?>" title="<?=$this->translate("Recherche à partir du nom du dirigeant")?>">
|
||||
<?=$dir->Civilite.' '.$dir->Nom.' '.$dir->Prenom?>
|
||||
</a>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td class="StyleInfoData" width="200">
|
||||
<?php
|
||||
$message = '';
|
||||
if (trim($dir->NaissDate) != '' && trim($dir->NaissDate)!='0000-00-00') {
|
||||
$date = new Zend_Date($dir->NaissDate, 'yyyy-MM-dd');
|
||||
$message = $message.' '.$this->translate("le").' '.$date->toString('dd/MM/yyyy');
|
||||
}
|
||||
|
||||
if (trim($dir->NaissVille.' '.$dir->NaissDepPays) != '') {
|
||||
$message = $message.' '.$this->translate("à").' '.$dir->NaissVille;
|
||||
}
|
||||
|
||||
if ($message!='') {
|
||||
if ($dir->Civilite=='' || $dir->Civilite==null) {
|
||||
$message = $this->translate("né(e)").' '.$message;
|
||||
} else if ($dir->Civilite=='M') {
|
||||
$message = $this->translate("né").' '.$message;
|
||||
} else {
|
||||
$message = $this->translate("née").' '.$message;
|
||||
}
|
||||
echo $message;
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<?php if ($this->edition) {?>
|
||||
<td>
|
||||
<a class="dialog" title="Modifier le dirigeant" href="<?=$this->url(array('controller'=>'saisie','action'=>'diropcontrol','mode'=>'edit','siret'=>$this->siret,'id'=>$dir->Id), 'default', true)?>">
|
||||
<img src="/themes/default/images/interfaces/editer.png" /></a>
|
||||
<a class="dialog" title="Supprimer le dirigeant" href="<?=$this->url(array('controller'=>'saisie','action'=>'diropcontrol','mode'=>'del','siret'=>$this->siret,'id'=>$dir->Id), 'default', true)?>">
|
||||
<img src="/themes/default/images/interfaces/supprimer.png" /></a>
|
||||
</td>
|
||||
<?php if (empty($this->AutrePage) && $this->accessWorldCheck) {?>
|
||||
<td>
|
||||
<?php if ($dir->Societe != '') { ?>
|
||||
<img style="cursor:pointer;" class="wcheck" data-url="<?=$this->url(array(
|
||||
'controller'=>'worldcheck','action'=>'occurence','siren'=>$this->siren,
|
||||
'dirType'=>'ORGANISATION','dirSociete'=>$dir->Societe),'default',true);?>" src="/themes/default/images/worldcheck/wc.png"/>
|
||||
<?php }?>
|
||||
<?php if ($dir->Nom != '') {
|
||||
$param = array(
|
||||
'controller'=>'worldcheck',
|
||||
'action'=>'occurence',
|
||||
'siren'=>$this->siren,
|
||||
'dirType'=>'INDIVIDUAL',
|
||||
'dirNom'=>$dir->Nom,
|
||||
'dirPrenom'=>$dir->Prenom,
|
||||
);
|
||||
?>
|
||||
<img style="cursor:pointer;" class="wcheck" data-url="<?=$this->url($param,'default',true);?>" src="/themes/default/images/worldcheck/wc.png"/>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
<?php } else { ?>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="StyleInfoData" width="550">
|
||||
<?=$this->translate("Aucune donnée n'est présente dans notre base")?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<?php if (empty($this->AutrePage)){?>
|
||||
<?=$this->render('cgu.phtml', $this->cgu)?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<script>
|
||||
$('img.wcheck').each(function(){
|
||||
$(this).qtip({
|
||||
hide: { event: 'unfocus' },
|
||||
show: { solo: true, delay: 1000 },
|
||||
content: {
|
||||
button: true,
|
||||
title: 'WorlCheck',
|
||||
text: "Chargement...",
|
||||
ajax: { url: $(this).data('url') } },
|
||||
position: { my: 'right center', at: 'left center' }
|
||||
});
|
||||
});
|
||||
|
||||
$('a.dialog').on('click', function(){
|
||||
var href = $(this).attr('href');
|
||||
if (href!='#') {
|
||||
var title = $(this).attr('title');
|
||||
var dialogOpts = {
|
||||
bgiframe: true,
|
||||
title: title,
|
||||
width: 600,
|
||||
height: 550,
|
||||
modal: true,
|
||||
open: function(event, ui) {
|
||||
$(this).html('Chargement...');
|
||||
$(this).load(href);
|
||||
},
|
||||
buttons: {
|
||||
Quitter: function() { $(this).dialog('close'); }
|
||||
},
|
||||
close: function() { $('#dialog').remove(); }
|
||||
};
|
||||
$('<div id="dialog"></div>').dialog(dialogOpts);
|
||||
return false;
|
||||
}
|
||||
});
|
||||
</script>
|
@ -1,37 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>Extranet - Erreur</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="center">
|
||||
<h1>Erreur</h1>
|
||||
<div class="paragraph">
|
||||
<b><?php echo $this->message ?></b>
|
||||
</div>
|
||||
|
||||
<?php if (isset($this->exception)): ?>
|
||||
<h2>Exception information:</h2>
|
||||
<div class="paragraph">
|
||||
<p>
|
||||
<b>Message:</b> <pre><?php echo $this->exception->getMessage() ?></pre>
|
||||
</p>
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
<h2>Stack trace:</h2>
|
||||
<div class="paragraph">
|
||||
<pre><?php echo $this->exception->getTraceAsString() ?></pre>
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
<h2>Request Parameters:</h2>
|
||||
<div class="paragraph">
|
||||
<pre><?php echo var_export($this->request->getParams(), true) ?></pre>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,12 +0,0 @@
|
||||
<div id="center">
|
||||
<h2>Erreur</h2>
|
||||
<div class="paragraph">
|
||||
<?php
|
||||
$message = 'Paramètres incorrectes!';
|
||||
?>
|
||||
<div style="padding:0.7em;" class="ui-state-error ui-corner-all">
|
||||
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
|
||||
<strong>Erreur :</strong> <?=$message?></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@ -1,11 +0,0 @@
|
||||
<div id="center">
|
||||
<h2>Droits d'accès</h2>
|
||||
<div class="paragraph">
|
||||
<?php $message = 'Vous n\'avez pas les droits nécessaires pour afficher cette page.'; ?>
|
||||
<div style="padding:0.7em;" class="ui-state-error ui-corner-all">
|
||||
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
|
||||
<strong>Erreur :</strong> <?=$message?></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1,16 +0,0 @@
|
||||
<div id="center">
|
||||
<h2>Erreur</h2>
|
||||
|
||||
<div class="paragraph">
|
||||
|
||||
<div style="padding:0.7em;" class="ui-state-error ui-corner-all">
|
||||
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
|
||||
Une erreur est survenue lors de votre requête...<br/>
|
||||
Un message à été envoyé à l'administrateur.<br/>
|
||||
Nous vous remercions de bien vouloir renouveler votre demande ultérieurement.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
@ -1,253 +0,0 @@
|
||||
<style>
|
||||
#center p { margin:5px; padding:5px;}
|
||||
.infoTitle {clear:both; float:left; width:250px; margin-left:30px; padding:0 10px 0 0;}
|
||||
.infoData {float:left; width:320px; margin:2px 0;}
|
||||
form { }
|
||||
form em { color:#FF0000;}
|
||||
fieldset {border:0; margin:0; padding:0;}
|
||||
fieldset legend{ padding:0 0 0 10px;}
|
||||
.fieldgrp{clear:both; width:100%; margin-bottom:.5em; overflow:hidden;}
|
||||
.fieldgrp:after{content:"."; display:block; clear:both; visibility:hidden; line-height:0; height:0; }
|
||||
.fieldgrp label{font-weight:bold; margin-left:30px; width:250px; 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 {width:320px; float:left; padding:0 10px 0 0; line-height:22px; _padding-top:3px;}
|
||||
.field .longfield{width:215px;}
|
||||
.field .longfield-select{width:220px;}
|
||||
.field .smallfield{width:95px;}
|
||||
.field .medfield{width:110px;}
|
||||
.field input, .field select{ font-size:110%; margin:2px 0; }
|
||||
.field input[type="radio"] { margin:0 5px 0 5px; }
|
||||
div.submit{ margin-left:200px; padding-left:0px; margin-top:1em; }
|
||||
div.submit p.submit-button{margin-top:0;}
|
||||
div.submit p.details{font-size:85%;color:#666;margin:0;}
|
||||
div.submit p.required-note{margin-top:1em;}
|
||||
div.submit p.required-note span{color:#4B911C;_color:#666;font-size:170%;vertical-align:top;}
|
||||
.noborder {border:none;}
|
||||
</style>
|
||||
|
||||
<div id="center">
|
||||
<h1 class="titre">Demande d'avis de credit personnalisé</h1>
|
||||
|
||||
<?php
|
||||
if($this->commande == false){
|
||||
?>
|
||||
|
||||
<div id="message"><?=$this->message;?></div>
|
||||
|
||||
<form action="<?=$this->url(array('controller'=>'evaluation', 'action'=>'aviscredit'))?>" method="post" enctype="multipart/form-data">
|
||||
|
||||
<h2>Entreprise concernée : </h2>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Numéro identifiant Siren</div>
|
||||
<div class="infoData">
|
||||
<?=$this->SirenTexte($this->Etab->Siren)?>
|
||||
<input type="hidden" name="InfoEnq[Siren]" value="<?=$this->Etab->Siren?>"/>
|
||||
</div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Numéro identifiant Siret</div>
|
||||
<div class="infoData"><?=$this->SiretTexte($this->Etab->Siret)?></div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Numéro de TVA Intracom.</div>
|
||||
<div class="infoData"><?=substr($this->Etab->TvaNumero,0,2).' '.substr($this->Etab->TvaNumero,2,2).' '.substr($this->Etab->TvaNumero,-9)?></div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Dénomination Sociale</div>
|
||||
<div class="infoData"><?=$this->Etab->Nom?></div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Adresse</div>
|
||||
<div class="infoData"><?=$this->Etab->Adresse.' '.$this->Etab->CP.' '.$this->Etab->Ville?></div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Téléphone <?php if (trim($this->Etab->Tel)==''){?><font color="Red">*</font><?php }?> / Fax</label>
|
||||
<div class="field">
|
||||
<?php if (trim($this->Etab->Tel)!=''){ print $this->Etab->Tel; }else{?><input type="text" name="InfoEnq[Entrep][Tel]" value="<?=$this->InfoEnq['Entrep']['Tel']?>"/><?php } ?> <b>/</b>
|
||||
<?php if (trim($this->Etab->Fax)!=''){ print $this->Etab->Fax; }else{?><input type="text" name="InfoEnq[Entrep][Fax]" value="<?=$this->InfoEnq['Entrep']['Fax']?>"/><?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (trim($this->Etab->Tel)!=''){?>
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib"> Autre téléphone :</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[Entrep][AutreTel]" value="<?=$this->InfoEnq['Entrep']['AutreTel'];?>"/> </div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">E-mail</label>
|
||||
<div class="field"><?php if (trim($this->Etab->Mail)!=''){ print $this->Etab->Mail; }else{?><input type="text" name="InfoEnq[Entrep][Mail]" value="<?=$this->InfoEnq['Entrep']['Mail']?>"/><?php }?></div>
|
||||
</div>
|
||||
|
||||
<?php if (trim($this->Etab->Mail)!=''){ ?>
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Autre e-mail</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[Entrep][AutreMail]" value="<?=$this->InfoEnq['Entrep']['AutreMail']?>"/></div>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Site Web</label>
|
||||
<div class="field"><?php if (trim($this->Etab->Web)!=''){ print $this->Etab->Web; }else{?><input type="text" name="InfoEnq[Entrep][Web]" value="<?=$this->InfoEnq['Entrep']['Web']?>"/><?php }?></div>
|
||||
</div>
|
||||
|
||||
<h2>Demandeur : </h2>
|
||||
|
||||
<input type="hidden" name="login" value="<?=$this->user->getLogin()?>" />
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Votre Identité</label>
|
||||
<div class="field"><input type="text" name="InfoUser[Identite]" value="<?=$this->user->getNom().' '.$this->user->getPrenom(); ?>"/></div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Votre Téléphone <font color="Red"></font>:</label>
|
||||
<div class="field"><input type="text" name="InfoUser[Tel]" value="<?php
|
||||
if(isset($this->InfoUser['Tel'])){echo $this->InfoUser['Tel'];}
|
||||
else echo $this->user->getTel(); ?>" /></div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Votre E-mail <font color="Red">*</font></label>
|
||||
<div class="field"><input type="text" name="InfoUser[Email]" value="<?php
|
||||
if(isset($this->InfoUser['Email'])){echo $this->InfoUser['Email'];}
|
||||
else echo $this->user->getEmail(); ?>"/></div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Votre Référence</label>
|
||||
<div class="field"><input type="text" name="InfoUser[Ref]" value="<?php
|
||||
if(isset($this->InfoUser['Ref'])){echo $this->InfoUser['Ref'];}
|
||||
?>"/></div>
|
||||
</div>
|
||||
|
||||
<h2>La relation commerciale : </h2>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Précisions sur la demande</label>
|
||||
<div class="field">
|
||||
<select id="precision" name="InfoEnq[PrecisionsChoix]">
|
||||
<option value="">Choisissez...</option>
|
||||
<option value="Sur un client" <?php if($this->InfoEnq['PrecisionsChoix']=='Sur un client'){print 'selected="selected"';};?>>Sur un client</option>
|
||||
<option value="Sur un prospect" <?php if($this->InfoEnq['PrecisionsChoix']=='Sur un prospect'){print 'selected="selected"';};?>>Sur un prospect</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Ancienneté de la relation :</label>
|
||||
<div class="field">
|
||||
<input type="text" name="InfoEnq[Anciennete]" size="2" value="<?=$this->InfoEnq['Anciennete']?>"/>
|
||||
<input class="noborder" type="radio" name="InfoEnq[AncienneteDuree]" value="Mois" <?php if($this->InfoEnq['AncienneteDuree']=='Mois'){ print 'checked="checked"';}?>/>Mois
|
||||
<input class="noborder" type="radio" name="InfoEnq[AncienneteDuree]" value="Annees" <?php if($this->InfoEnq['AncienneteDuree']=='Annees'){ print 'checked="checked"';}?>/>Années
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Impayées :</label>
|
||||
<div class="field">
|
||||
<input class="noborder" type="radio" name="InfoEnq[ImpayeesChoix]" value="oui" <?php if($this->InfoEnq['ImpayeesChoix']=='oui'){ print 'checked="checked"';}?>/>Oui
|
||||
<input class="noborder" type="radio" name="InfoEnq[ImpayeesChoix]" value="non" <?php if($this->InfoEnq['ImpayeesChoix']=='non'){ print 'checked="checked"';}?>/>Non
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="impayees">
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Montant :</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[Impayees][Montant]" value="<?=$this->InfoEnq['Impayees']['Montant']?>"/> €</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Nombre :</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[Impayees][Nombre]" value="<?=$this->InfoEnq['Impayees']['Nombre']?>"/></div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Date :</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[Impayees][Date]" value="<?=$this->InfoEnq['Impayees']['Date']?>"/> (Format : JJ/MM/AAAA)</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Retard de paiement :</label>
|
||||
<div class="field">
|
||||
<input class="noborder" type="radio" name="InfoEnq[RetardPaiementChoix]" value="oui" <?php if($this->InfoEnq['RetardPaiementChoix']=='oui'){ print 'checked="checked"';}?>/>Oui
|
||||
<input class="noborder" type="radio" name="InfoEnq[RetardPaiementChoix]" value="non" <?php if($this->InfoEnq['RetardPaiementChoix']=='non'){ print 'checked="checked"';}?>/>Non
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="retardpaiement">
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Montant :</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[RetardPaiement][Montant]" value="<?=$this->InfoEnq['RetardPaiement']['Montant']?>"/> €</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Nombre :</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[RetardPaiement][Nombre]" value="<?=$this->InfoEnq['RetardPaiement']['Nombre']?>"/></div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Date :</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[RetardPaiement][Date]" value="<?=$this->InfoEnq['RetardPaiement']['Date']?>"/> (Format : JJ/MM/AAAA)</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Litiges techniques ou commerciaux :</label>
|
||||
<div class="field">
|
||||
<input class="noborder" type="radio" name="InfoEnq[LitigeChoix]" value="oui" <?php if($this->InfoEnq['LitigeChoix']=='oui'){ print 'checked="checked"';}?>/>Oui
|
||||
<input class="noborder" type="radio" name="InfoEnq[LitigeChoix]" value="non" <?php if($this->InfoEnq['LitigeChoix']=='non'){ print 'checked="checked"';}?>/>Non
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="litige">
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Précisions :</label>
|
||||
<div class="field">
|
||||
<textarea name="InfoEnq[Litige][Precisions]"><?=$this->InfoEnq['Litige']['Precisions']?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Observations ou questions spéciales</label>
|
||||
<div class="field"><textarea name="InfoEnq[Observation]"><?=$this->InfoEnq['Observation']; ?></textarea></div>
|
||||
</div>
|
||||
|
||||
<h2>Votre demande : </h2>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Encours Réel</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[EncoursReel]" value="<?=$this->InfoEnq['EncoursReel']?>"/> €</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Encours demandé</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[EncoursDemande]" value="<?=$this->InfoEnq['EncoursDemande']?>"/> €</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="submit"><p class="submit-button"><input type="submit" name="submit" value="Envoyer" /></p></div>
|
||||
|
||||
</form>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($this->commande == true)
|
||||
{
|
||||
?>
|
||||
<p>Votre demande à été prise en compte pour le siren <b><?=$this->siren?></b>.</p>
|
||||
<p><a href="<?=$this->url(array('controller'=>'identite', 'action'=>'fichier', 'siret'=>$this->siren), 'default', true)?>">
|
||||
Retour à la fiche identite
|
||||
</a></p>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
@ -1,146 +0,0 @@
|
||||
<div id="center">
|
||||
|
||||
<h1>PATRIMOINE FONCIER</h1>
|
||||
|
||||
<div class="paragraph">
|
||||
<table class="identite">
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Numéro identifiant Siren</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->SirenTexte($this->siren)?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<?php if ($this->MsgTxt) {?>
|
||||
|
||||
<div class="paragraph"><?=$this->MsgTxt?></div>
|
||||
|
||||
<?php } else {?>
|
||||
|
||||
<?php if (count($this->List) > 0) {?>
|
||||
|
||||
<h2>Propriétés baties</h2>
|
||||
<div class="paragraph">
|
||||
<table class="data">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Rôle</th>
|
||||
<th>Dépt.</th>
|
||||
<th>Commune</th>
|
||||
<th>Section</th>
|
||||
<th>N° Plan</th>
|
||||
<th>Fantoir</th>
|
||||
<th>Adresse</th>
|
||||
<th>Bât.</th>
|
||||
<th>Ent.</th>
|
||||
<th>Niv.</th>
|
||||
<th>Surface</th>
|
||||
<th>Nature</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if (count($this->List) > 0) {?>
|
||||
<?php foreach($this->List as $p) {?>
|
||||
<?php if ($p->Type == 'local') {?>
|
||||
<tr>
|
||||
<td title="<?=$p->RoleLib?>"><?=$p->Role?></td>
|
||||
<td><?=$p->Departement?></td>
|
||||
<td><?=$p->CommuneLib?></td>
|
||||
<td><?=$p->Section?></td>
|
||||
<td><?=$p->PlanNum?></td>
|
||||
<td><?=$p->Fantoir?></td>
|
||||
<td>
|
||||
<?=empty($p->AdresseNum) ? '' : $p->AdresseNum.' ' ; ?>
|
||||
<?=empty($p->AdresseInd) ? '' : $p->AdresseInd.' ' ; ?>
|
||||
<?=empty($p->AdresseType) ? '' : $p->AdresseType.' ' ; ?>
|
||||
<?=empty($p->AdresseLib) ? '' : $p->AdresseLib.' ' ; ?>
|
||||
</td>
|
||||
<td><?=$p->Batiment?></td>
|
||||
<td><?=$p->Ent?></td>
|
||||
<td><?=$p->Niveau?></td>
|
||||
<td><?=number_format($p->SurfaceTotal, 0, ",", " ")?> m²</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<?php if (count($p->SurfaceDetail->item) > 0) {?>
|
||||
<?php foreach($p->SurfaceDetail->item as $s) {?>
|
||||
<tr>
|
||||
<td colspan="10" align="right"><i>Detail</i></td>
|
||||
<td><?=number_format($s->Surface, 0, ",", " ")?> m²</td>
|
||||
<td><?=$s->Label?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2>Propriétés non baties</h2>
|
||||
<div class="paragraph">
|
||||
<table class="data">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Rôle</th>
|
||||
<th>Dépt.</th>
|
||||
<th>Commune</th>
|
||||
<th>Section</th>
|
||||
<th>N° Plan</th>
|
||||
<th>Fantoir</th>
|
||||
<th>Adresse</th>
|
||||
<th>Surface</th>
|
||||
<th>Nature</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if (count($this->List) > 0) {?>
|
||||
<?php foreach($this->List as $p) {?>
|
||||
<?php if ($p->Type == 'parcelle') {?>
|
||||
<tr>
|
||||
<td title="<?=$p->RoleLib?>"><?=$p->Role?></td>
|
||||
<td><?=$p->Departement?></td>
|
||||
<td><?=$p->CommuneLib?></td>
|
||||
<td><?=$p->Section?></td>
|
||||
<td><?=$p->PlanNum?></td>
|
||||
<td><?=$p->Fantoir?></td>
|
||||
<td>
|
||||
<?=empty($p->AdresseNum) ? '' : $p->AdresseNum.' ' ; ?>
|
||||
<?=empty($p->AdresseInd) ? '' : $p->AdresseInd.' ' ; ?>
|
||||
<?=empty($p->AdresseType) ? '' : $p->AdresseType.' ' ; ?>
|
||||
<?=empty($p->AdresseLib) ? '' : $p->AdresseLib.' ' ; ?>
|
||||
</td>
|
||||
<td><?=number_format($p->SurfaceTotal, 0, ",", " ")?> m²</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<?php if (count($p->SurfaceDetail->item) > 0) {?>
|
||||
<?php foreach($p->SurfaceDetail->item as $s) {?>
|
||||
<tr>
|
||||
<td colspan="7" align="right"><i>Detail</i></td>
|
||||
<td><?=number_format($s->Surface, 0, ",", " ")?> m²</td>
|
||||
<td><?=$s->Label?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<?php } else {?>
|
||||
|
||||
Aucune information sur le patrimoine.
|
||||
|
||||
<?php }?>
|
||||
|
||||
<?php }?>
|
||||
|
||||
</div>
|
@ -1,67 +0,0 @@
|
||||
<div align="center" style="<?=$this->background;?>">
|
||||
<div id="remove">
|
||||
<form name="uploadForm" id="uploadForm" method="post" action="<?=$this->url(array(
|
||||
'controller'=>'evaluation',
|
||||
'action'=>'customindiscore3',
|
||||
'siret'=>$this->siret,
|
||||
'id'=>$this->id))?>">
|
||||
<table>
|
||||
<tr>
|
||||
<td><b>Coordonnées adresse</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php foreach($this->adresse as $item){?>
|
||||
<input style="width:377px" type="text" name="adresse[]" value="<?=$item?>"/><br/>
|
||||
<?php }?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top"><b>Nom de la société</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type="text" name="societe_name" value="<?php if (empty($this->rs)) {?>Nom de la société<?php } else { echo $this->rs; }?>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Logo en fond ecran : </b><input type="checkbox" name="logo_background" value="true" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Logo à :</b> Gauche <input checked="checked" type="radio" name="image" value="left"/> Droite<input value="right" type="radio" name="image" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>couleur des grands titres</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Fond : <input value="<?=$this->color1;?>" type="text" name="couleurh1" /> Texte <input value="black" type="text" name="texth1" /> ex : black</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>couleur des sous titres</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Fond : <input value="<?=$this->color1;?>" type="text" name="couleurh2" /> Texte <input value="black" type="text" name="texth2" /> ex : black</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><input type="submit" name="upload" value="Envoyer" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<script type="text/javascript" src="/libs/form/jquery.form.min.js"/>
|
||||
<script>
|
||||
$('#uploadForm').ajaxForm({
|
||||
beforeSubmit: function() {
|
||||
$('#remove').html('<b style="color:green">Votre document est en cours de chargement...</b>');
|
||||
},
|
||||
success: function(data) {
|
||||
$('#remove').html(data);
|
||||
}
|
||||
});
|
||||
$('#dialogcustomrapport').dialog({ buttons: [ {
|
||||
text: "Quitter",
|
||||
click: function() { $(this).dialog("close"); }
|
||||
} ] });
|
||||
</script>
|
||||
</div>
|
@ -1,366 +0,0 @@
|
||||
<style>
|
||||
#center p { margin:5px; padding:5px;}
|
||||
.infoTitle {clear:both; float:left; width:180px; margin-left:30px; padding:0 10px 0 0;}
|
||||
.infoData {float:left; width:320px; margin:2px 0;}
|
||||
form { }
|
||||
form em { color:#FF0000;}
|
||||
fieldset {border:0; margin:0; padding:0;}
|
||||
fieldset legend{ padding:0 0 0 10px;}
|
||||
.fieldgrp{clear:both; width:100%; margin-bottom:.5em; overflow:hidden;}
|
||||
.fieldgrp:after{content:"."; display:block; clear:both; visibility:hidden; line-height:0; height:0; }
|
||||
.fieldgrp label{font-weight:bold; margin-left:30px; width:180px; clear:both; padding:0 10px 0 0;line-height:22px;_padding-top:3px; float:left; display:block; font-size:108%;}
|
||||
.fieldgrp label span{font-weight:normal;}
|
||||
.fieldgrp label abbr{color:#4B911C; font-size:120%; vertical-align:middle;}
|
||||
.field {width:320px; float:left; padding:0 10px 0 0; line-height:22px; _padding-top:3px;}
|
||||
.field .longfield{width:215px;}
|
||||
.field .longfield-select{width:220px;}
|
||||
.field .smallfield{width:95px;}
|
||||
.field .medfield{width:110px;}
|
||||
.field input, .field select{ font-size:110%; margin:2px 0; }
|
||||
.field input[type="radio"] { margin:0 5px 0 5px; }
|
||||
div.submit{ margin-left:200px; padding-left:0px; margin-top:1em; }
|
||||
div.submit p.submit-button{margin-top:0;}
|
||||
div.submit p.details{font-size:85%;color:#666;margin:0;}
|
||||
div.submit p.required-note{margin-top:1em;}
|
||||
div.submit p.required-note span{color:#4B911C;_color:#666;font-size:170%;vertical-align:top;}
|
||||
.noborder {border:none;}
|
||||
<?php if(isset($this->InfoUser['Profil']) && $this->InfoUser['Profil']=='Autre'){ ?> #autreProfil {display:block;}<?php }else{?> #autreProfil {display:none;} <?php }?>
|
||||
<?php if(isset($this->InfoEnq['PrecisionsChoix']) && $this->InfoEnq['PrecisionsChoix']=='5'){ ?> #autrePrecisions {display:block;} <?php }else{ ?> #autrePrecisions {display:none;} <?php }?>
|
||||
<?php if(isset($this->InfoEnq['PrecisionsChoix']) && ($this->InfoEnq['PrecisionsChoix']=='3' || $this->InfoEnq['PrecisionsChoix']=='4')){ ?> #fournisseur {display:block;} <?php }else{ ?> #fournisseur {display:none;} <?php }?>
|
||||
<?php if(isset($this->InfoEnq['PrecisionsChoix']) && $this->InfoEnq['PrecisionsChoix']=='1'){ ?> #credit {display:block;} <?php }else{ ?> #credit {display:none;} <?php }?>
|
||||
<?php if(isset($this->InfoEnq['ImpayeesChoix']) && $this->InfoEnq['ImpayeesChoix']=='oui'){ ?> #impayees {display:block;}<?php }else{?> #impayees {display:none;} <?php }?>
|
||||
<?php if(isset($this->InfoEnq['ImpayeesChoix']) && $this->InfoEnq['ImpayeesChoix']=='oui'){ ?> #retardpaiement {display:block;}<?php }else{?> #retardpaiement {display:none;} <?php }?>
|
||||
<?php if(isset($this->InfoEnq['LitigeChoix']) && $this->InfoEnq['LitigeChoix']=='oui'){ ?> #litige {display:block;}<?php }else{?> #litige {display:none;} <?php }?>
|
||||
</style>
|
||||
|
||||
<div id="center">
|
||||
<h1 class="titre">ENQUÊTE COMMERCIALE</h1>
|
||||
|
||||
<?php
|
||||
if($this->commandeEnquete == false){
|
||||
?>
|
||||
|
||||
<p class="StyleInfoLib">Nos enquêtes commerciales sont réalisées par des analystes financiers.</p>
|
||||
|
||||
<div id="message"><?=$this->message;?></div>
|
||||
|
||||
<form action="<?=$this->url(array('controller'=>'evaluation', 'action'=>'enquetec'))?>" method="post" enctype="multipart/form-data">
|
||||
<input name="pays" value="<?=$pays?>" type="hidden"/>
|
||||
|
||||
<h2>Entreprise concernée : </h2>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Numéro identifiant Siren</div>
|
||||
<div class="infoData">
|
||||
<?=$this->SirenTexte($this->Etab->Siren)?>
|
||||
<input type="hidden" name="InfoEnq[Siren]" value="<?=$this->Etab->Siren?>"/>
|
||||
</div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Numéro identifiant Siret</div>
|
||||
<div class="infoData"><?=$this->SiretTexte($this->Etab->Siret)?></div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Numéro de TVA Intracom.</div>
|
||||
<div class="infoData"><?=substr($this->Etab->TvaNumero,0,2).' '.substr($this->Etab->TvaNumero,2,2).' '.substr($this->Etab->TvaNumero,-9)?></div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Dénomination Sociale</div>
|
||||
<div class="infoData"><?=$this->Etab->Nom?></div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Adresse</div>
|
||||
<div class="infoData"><?=$this->Etab->Adresse.' '.$this->Etab->CP.' '.$this->Etab->Ville?></div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Téléphone <?php if (trim($this->Etab->Tel)==''){?><font color="Red">*</font><?php }?> / Fax</label>
|
||||
<div class="field">
|
||||
<?php if (trim($this->Etab->Tel)!=''){ print $this->Etab->Tel; }else{?><input type="text" name="InfoEnq[Entrep][Tel]" value="<?=$this->InfoEnq['Entrep']['Tel']?>"/><?php } ?> <b>/</b>
|
||||
<?php if (trim($this->Etab->Fax)!=''){ print $this->Etab->Fax; }else{?><input type="text" name="InfoEnq[Entrep][Fax]" value="<?=$this->InfoEnq['Entrep']['Fax']?>"/><?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (trim($this->Etab->Tel)!=''){?>
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib"> Autre téléphone :</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[Entrep][AutreTel]" value="<?=$this->InfoEnq['Entrep']['AutreTel'];?>"/> </div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">E-mail</label>
|
||||
<div class="field"><?php if (trim($this->Etab->Mail)!=''){ print $this->Etab->Mail; }else{?><input type="text" name="InfoEnq[Entrep][Mail]" value="<?=$this->InfoEnq['Entrep']['Mail']?>"/><?php }?></div>
|
||||
</div>
|
||||
|
||||
<?php if (trim($this->Etab->Mail)!=''){ ?>
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Autre e-mail</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[Entrep][AutreMail]" value="<?=$this->InfoEnq['Entrep']['AutreMail']?>"/></div>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Site Web</label>
|
||||
<div class="field"><?php if (trim($this->Etab->Web)!=''){ print $this->Etab->Web; }else{?><input type="text" name="InfoEnq[Entrep][Web]" value="<?=$this->InfoEnq['Entrep']['Web']?>"/><?php }?></div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Domiciliation bancaire</label>
|
||||
<div class="field">
|
||||
<input type="text" name="InfoEnq[Entrep][Rib][Banque]" maxlength="5" size="5" value="<?=$this->InfoEnq['Entrep']['Rib']['Banque']?>"/>
|
||||
<input type="text" name="InfoEnq[Entrep][Rib][Guichet]" maxlength="5" size="5" value="<?=$this->InfoEnq['Entrep']['Rib']['Guichet']?>"/>
|
||||
<input type="text" name="InfoEnq[Entrep][Rib][Compte]" maxlength="11" size="11" value="<?=$this->InfoEnq['Entrep']['Rib']['Compte']?>"/>
|
||||
<input type="text" name="InfoEnq[Entrep][Rib][Cle]" maxlength="2" size="2" value="<?=$this->InfoEnq['Entrep']['Rib']['Cle']?>"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Encours demandé</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[Encours]" value="<?=$this->InfoEnq['Encours']?>"/> €</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Nombre d'échéances</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[NbEcheances]" value="<?=$this->InfoEnq['NbEcheances']?>"/></div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Avis de l'assureur crédit</label>
|
||||
<div class="field">
|
||||
<select name="InfoEnq[AvisAssureur]">
|
||||
<option value="-" <?php if($this->InfoEnq['AvisAssureur']=='-'){ print 'checked="check"';} ?>>-</option>
|
||||
<option value="Favorable" <?php if($this->InfoEnq['AvisAssureur']=='Favorable'){ print 'checked="check"';} ?>>Favorable</option>
|
||||
<option value="Défavorable" <?php if($this->InfoEnq['AvisAssureur']=='Défavorable'){ print 'checked="check"';} ?>>Défavorable</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>Demandeur : </h2>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Votre profil <font color="Red">*</font></label>
|
||||
<div class="field">
|
||||
<select id="profil" name="InfoUser[Profil]">
|
||||
<option value="Achats" <?php if($this->InfoUser['Profil']=='Achats'){print 'selected="selected"';};?>>Service Achats</option>
|
||||
<option value="Commerce" <?php if($this->InfoUser['Profil']=='Commerce'){print 'selected="selected"';};?>>Commerce</option>
|
||||
<option value="Recouvrement" <?php if($this->InfoUser['Profil']=='Recouvrement'){print 'selected="selected"';};?>>Recouvrement</option>
|
||||
<option value="Contentieux" <?php if($this->InfoUser['Profil']=='Contentieux'){print 'selected="selected"';};?>>Contentieux</option>
|
||||
<option value="Autre" <?php if($this->InfoUser['Profil']=='Autre'){print 'selected="selected"';};?>>Autre</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="autreProfil" class="fieldgrp">
|
||||
<label class="StyleInfoLib">Précisez</label>
|
||||
<div class="field"><input type="text" name="InfoUser[ProfilAutre]" value="<?=$this->InfoUser['ProfilAutre']?>" /></div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Votre Identité</label>
|
||||
<div class="field"><input type="text" name="InfoUser[Identite]" value="<?php echo $this->user->getNom().' '.$this->user->getPrenom(); ?>"/></div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Votre Téléphone <font color="Red"></font>:</label>
|
||||
<div class="field"><input type="text" name="InfoUser[Tel]" value="<?php
|
||||
if(isset($this->InfoUser['Tel'])){echo $this->InfoUser['Tel'];}
|
||||
else echo $this->user->getTel(); ?>" /></div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Votre Fax</label>
|
||||
<div class="field"><input type="text" name="InfoUser[Fax]" value="<?php
|
||||
if(isset($this->InfoUser['Fax'])){echo $this->InfoUser['Fax'];}
|
||||
else echo $this->user->getFax(); ?>"/></div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Votre E-mail <font color="Red">*</font></label>
|
||||
<div class="field"><input type="text" name="InfoUser[Email]" value="<?php
|
||||
if(isset($this->InfoUser['Email'])){echo $this->InfoUser['Email'];}
|
||||
else echo $this->user->getEmail(); ?>"/></div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Votre Référence</label>
|
||||
<div class="field"><input type="text" name="InfoUser[Ref]" value="<?php
|
||||
if(isset($this->InfoUser['Ref'])){echo $this->InfoUser['Ref'];}
|
||||
?>"/></div>
|
||||
</div>
|
||||
|
||||
<h2>Enquête : </h2>
|
||||
|
||||
<?php
|
||||
if( $pays=='' )
|
||||
{
|
||||
?>
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Type d'enquête</label>
|
||||
<div class="field">
|
||||
<input class="noborder" type="radio" id="premier" name="InfoEnq[Type]" value="premier" <?php if($this->InfoEnq['Type']=='premier'){print 'checked="checked"';};?>>EXPRESS ( encours inférieur à 20K€ )
|
||||
<br/>
|
||||
<input class="noborder" type="radio" id="gold" name="InfoEnq[Type]" value="gold" <?php if($this->InfoEnq['Type']=='gold'){print 'checked="checked"';};?>>DECISION ( encours supérieur à 20K€ )
|
||||
<br/>
|
||||
<input class="noborder" type="radio" id="btp" name="InfoEnq[Type]" value="btp" <?php if($this->InfoEnq['Type']=='btp'){print 'checked="checked"';};?>>SECTEUR BTP
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
if( isset($pays) && $pays!='' )
|
||||
{
|
||||
?>
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Délais de livraison</label>
|
||||
<div class="field">
|
||||
<input class="noborder" type="radio" name="InfoEnq[Delai]" value="normal" <?php if($this->InfoEnq['Delai']=='normal'){print 'checked="checked"';};?>>Normal
|
||||
<input class="noborder" type="radio" name="InfoEnq[Delai]" value="urgent" <?php if($this->InfoEnq['Delai']=='urgent'){print 'checked="checked"';};?>>Urgent
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Délais de livraison</label>
|
||||
<div class="field">
|
||||
<input class="noborder" type="radio" name="InfoEnq[Delai]" value="1" <?php if($this->InfoEnq['Delai']=='1'){print 'checked="checked"';};?>>24 h
|
||||
<input class="noborder" type="radio" name="InfoEnq[Delai]" value="2" <?php if($this->InfoEnq['Delai']=='2'){print 'checked="checked"';};?>>72 h
|
||||
<input class="noborder" type="radio" name="InfoEnq[Delai]" value="5" <?php if($this->InfoEnq['Delai']=='5'){print 'checked="checked"';};?>>5 jours ou +
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Précisions sur la demande</label>
|
||||
<div class="field">
|
||||
<select id="precision" name="InfoEnq[PrecisionsChoix]">
|
||||
<option value="">Choisissez...</option>
|
||||
<option value="1" <?php if($this->InfoEnq['PrecisionsChoix']=='1'){print 'selected="selected"';};?>>Enquête sur un client (contrôle crédit)</option>
|
||||
<option value="2" <?php if($this->InfoEnq['PrecisionsChoix']=='2'){print 'selected="selected"';};?>>Enquête sur un prospect (ouverture de compte)</option>
|
||||
<option value="3" <?php if($this->InfoEnq['PrecisionsChoix']=='3'){print 'selected="selected"';};?>>Enquête sur un fournisseur stratégique</option>
|
||||
<option value="4" <?php if($this->InfoEnq['PrecisionsChoix']=='4'){print 'selected="selected"';};?>>Enquête sur un fournisseur non stratégique</option>
|
||||
<option value="5" <?php if($this->InfoEnq['PrecisionsChoix']=='5'){print 'selected="selected"';};?>>Autre type d'enquête (Précisez...)</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="fournisseur" class="fieldgrp">
|
||||
<label class="StyleInfoLib">CA réalisé avec le fournisseur</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[Precisions][MontantCA]" value="<?=$this->InfoEnq['Precisions']['MontantCA']?>" /> €</div>
|
||||
</div>
|
||||
|
||||
<div id="credit" class="fieldgrp">
|
||||
<label class="StyleInfoLib">Motif du contrôle</label>
|
||||
<div class="field"><textarea name="InfoEnq[Precisions][Motif]"><?=$this->InfoEnq['Precisions']['Motif']?></textarea></div>
|
||||
</div>
|
||||
|
||||
<div id="autrePrecisions" class="fieldgrp">
|
||||
<label class="StyleInfoLib">Précisez</label>
|
||||
<div class="field"><textarea name="InfoEnq[Precisions][Autre]"><?=$this->InfoEnq['Precisions']['Autre']?></textarea></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Ancienneté de la relation :</label>
|
||||
<div class="field">
|
||||
<input type="text" name="InfoEnq[Anciennete]" size="2" value="<?=$this->InfoEnq['Anciennete']?>"/>
|
||||
<input class="noborder" type="radio" name="InfoEnq[AncienneteDuree]" value="Mois" <?php if($this->InfoEnq['AncienneteDuree']=='Mois'){ print 'checked="checked"';}?>/>Mois
|
||||
<input class="noborder" type="radio" name="InfoEnq[AncienneteDuree]" value="Annees" <?php if($this->InfoEnq['AncienneteDuree']=='Annees'){ print 'checked="checked"';}?>/>Années
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Impayées :</label>
|
||||
<div class="field">
|
||||
<input class="noborder" type="radio" name="InfoEnq[ImpayeesChoix]" value="oui" <?php if($this->InfoEnq['ImpayeesChoix']=='oui'){ print 'checked="checked"';}?>/>Oui
|
||||
<input class="noborder" type="radio" name="InfoEnq[ImpayeesChoix]" value="non" <?php if($this->InfoEnq['ImpayeesChoix']=='non'){ print 'checked="checked"';}?>/>Non
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="impayees">
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Montant :</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[Impayees][Montant]" value="<?=$this->InfoEnq['Impayees']['Montant']?>"/> €</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Nombre :</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[Impayees][Nombre]" value="<?=$this->InfoEnq['Impayees']['Nombre']?>"/></div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Date :</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[Impayees][Date]" value="<?=$this->InfoEnq['Impayees']['Date']?>"/> (Format : JJ/MM/AAAA)</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Retard de paiement :</label>
|
||||
<div class="field">
|
||||
<input class="noborder" type="radio" name="InfoEnq[RetardPaiementChoix]" value="oui" <?php if($this->InfoEnq['RetardPaiementChoix']=='oui'){ print 'checked="checked"';}?>/>Oui
|
||||
<input class="noborder" type="radio" name="InfoEnq[RetardPaiementChoix]" value="non" <?php if($this->InfoEnq['RetardPaiementChoix']=='non'){ print 'checked="checked"';}?>/>Non
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="retardpaiement">
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Montant :</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[RetardPaiement][Montant]" value="<?=$this->InfoEnq['RetardPaiement']['Montant']?>"/> €</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Nombre :</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[RetardPaiement][Nombre]" value="<?=$this->InfoEnq['RetardPaiement']['Nombre']?>"/></div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Date :</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[RetardPaiement][Date]" value="<?=$this->InfoEnq['RetardPaiement']['Date']?>"/> (Format : JJ/MM/AAAA)</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Litiges techniques ou commerciaux :</label>
|
||||
<div class="field">
|
||||
<input class="noborder" type="radio" name="InfoEnq[LitigeChoix]" value="oui" <?php if($this->InfoEnq['LitigeChoix']=='oui'){ print 'checked="checked"';}?>/>Oui
|
||||
<input class="noborder" type="radio" name="InfoEnq[LitigeChoix]" value="non" <?php if($this->InfoEnq['LitigeChoix']=='non'){ print 'checked="checked"';}?>/>Non
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="litige">
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Précisions :</label>
|
||||
<div class="field">
|
||||
<textarea name="InfoEnq[Litige][Precisions]"><?=$this->InfoEnq['Litige']['Precisions']?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Observations ou questions spéciales</label>
|
||||
<div class="field"><textarea name="InfoEnq[Observation]"><?=$this->InfoEnq['Observation']; ?></textarea></div>
|
||||
</div>
|
||||
|
||||
<div class="submit"><p class="submit-button"><input type="submit" name="submit" value="Envoyer" /></p></div>
|
||||
|
||||
</form>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($this->commandeEnquete == true)
|
||||
{
|
||||
?>
|
||||
<p>
|
||||
Votre demande à été prise en compte le <?=$this->jour.'/'.$this->mois.'/'.$this->annee?> à <?=$this->heure?> h <?=$this->minutes?> sous la référence <b><?=$this->ref?></b> pour le siren <b><?=$this->siren?></b>.
|
||||
</p>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
@ -1,299 +0,0 @@
|
||||
<?php if ( empty($this->AutrePage) ) {?>
|
||||
<div id="center">
|
||||
<?php }?>
|
||||
|
||||
<?php if ( empty($this->AutrePage) ) {?>
|
||||
<h1>INDISCORE©</h1>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Numéro identifiant Siren</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->SirenTexte($this->indiscore->Siren)?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Numéro identifiant Siret du siège</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->SiretTexte($this->indiscore->Siret)?></td>
|
||||
</tr>
|
||||
<?php if (isset($this->indiscore->NumRC) && $this->indiscore->NumRC*1!=0) { ?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Numéro R.C.</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->indiscore->NumRC?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr><td colspan="3"> </td></tr>
|
||||
<?php if ( $this->edition && empty($this->AutrePage) ) {?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib"></td>
|
||||
<td width="350" class="StyleInfoData">
|
||||
<?=$this->action('scorecutoff','saisie',null, array('siren'=>$this->indiscore->Siren)); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib"> </td>
|
||||
<td width="350" class="StyleInfoData">
|
||||
<a href=<?=$this->url(array('controller'=>'evaluation', 'action'=>'scoreshisto', 'siret' => $this->siret)); ?>>
|
||||
<?=$this->translate("Consulter l'historique des IndiScore");?></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php }?>
|
||||
<h2>Dénomination sociale & coordonnées</h2>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"></td>
|
||||
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
|
||||
<td width="350" class="StyleInfoData">
|
||||
<?php
|
||||
echo $this->indiscore->Nom;
|
||||
if (!empty($this->indiscore->Nom2)) {
|
||||
echo '<br/>'.$this->indiscore->Nom2;
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
$titre='';
|
||||
if ($this->indiscore->Enseigne!='' && $this->indiscore->Sigle!='') {
|
||||
$titre = 'Enseigne / Sigle'; $lib = $this->indiscore->Enseigne.' / '.$this->indiscore->Sigle;
|
||||
} elseif ($this->indiscore->Enseigne!='' && $this->indiscore->Sigle=='') {
|
||||
$titre = 'Enseigne'; $lib = $this->indiscore->Enseigne;
|
||||
} elseif ($this->indiscore->Enseigne=='' && $this->indiscore->Sigle!='') {
|
||||
$titre = 'Sigle'; $lib = $this->indiscore->Sigle;
|
||||
}?>
|
||||
|
||||
<?php if ( !empty($titre) ) {?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib"><?=$titre?></td>
|
||||
<td width="350" class="StyleInfoData"><?=$lib?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<td width="30"></td>
|
||||
<td width="200" class="StyleInfoLib">Forme juridique</td>
|
||||
<td width="350" class="StyleInfoData">
|
||||
<?=$this->indiscore->FJ_lib?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"></td>
|
||||
<td width="200" class="StyleInfoLib">Date de création de l'entreprise</td>
|
||||
<td width="350" class="StyleInfoData">
|
||||
<?php $date = new Zend_Date($this->indiscore->DateCreaEn, 'yyyyMMdd');?>
|
||||
<?=$date->toString('dd/MM/yyyy')?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"></td>
|
||||
<td width="200" class="StyleInfoLib">Adresse</td>
|
||||
<td width="350" class="StyleInfoData">
|
||||
<?=$this->indiscore->Adresse?><br/>
|
||||
<?php if ($this->indiscore->Adresse2<>'') echo $this->indiscore->Adresse2.'<br/>';?>
|
||||
<?=$this->indiscore->CP?> <?=$this->indiscore->Ville?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"></td>
|
||||
<td width="200" class="StyleInfoLib">Téléphone</td>
|
||||
<td width="350" class="StyleInfoData">
|
||||
<?=$this->indiscore->Tel?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if ( $this->surveillance && empty($this->AutrePage) ) {?>
|
||||
<tr>
|
||||
<td width="30"></td>
|
||||
<td colspan="2">
|
||||
<?=$this->action('infos','surveillance', null, array(
|
||||
'source' => 'score',
|
||||
'siret' => $this->siret
|
||||
));?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
|
||||
<?php if ( $this->aviscredit && empty($this->AutrePage) ) {?>
|
||||
<tr>
|
||||
<td width="30"></td>
|
||||
<td colspan="2">
|
||||
<a href="<?=$this->url(array('controller'=>'evaluation', 'action'=>'aviscredit', 'siret' => $this->siret))?>">
|
||||
Saisir votre demande d'avis credit personnalisé</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2>Évaluation</h2>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="550" colspan="2" class="StyleInfoData">
|
||||
L'évaluation indiScore© est en partie basée sur les points notables suivants :<br/>
|
||||
<h3><u>Conformité légale :</u></h3>
|
||||
<div class="stats gradiant_pic">
|
||||
<ul>
|
||||
<li>
|
||||
<i><?=$this->indiscore->AnalyseConfor; ?></i>
|
||||
<div class="blocdegrade clearfix">
|
||||
<span class="textdegrade">Conformité <? if ($this->edition) { echo '('.$this->indiscore->ScoreConfor.')';}?></span>
|
||||
<div class="imgdegrade"><img class="borderimg" src="/themes/default/images/indiscore/imgscores-<?=$this->FormatPct($this->indiscore->ScoreConfor)?>.png"/></div>
|
||||
<div class="regle"><img src="/themes/default/images/indiscore/sgradiant2.png" /></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<h3><u>Dirigeance :</u></h3>
|
||||
<div class="stats gradiant_pic">
|
||||
<ul>
|
||||
<li>
|
||||
<i><?=$this->indiscore->AnalyseDirigeance?></i>
|
||||
<div class="blocdegrade clearfix">
|
||||
<span class="textdegrade">Dirigeance <? if ($this->edition) { echo '('.$this->indiscore->ScoreDirigeance.')';}?></span>
|
||||
<div class="imgdegrade"><img class="borderimg" src="/themes/default/images/indiscore/imgscores-<?=$this->FormatPct($this->indiscore->ScoreDirigeance)?>.png"/></div>
|
||||
<div class="regle"><img src="/themes/default/images/indiscore/sgradiant2.png" /></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<h3><u>Solvabilité :</u></h3>
|
||||
<div class="stats gradiant_pic">
|
||||
<ul>
|
||||
<li>
|
||||
<i>L'analyse de la solvabilité est <?=$this->indiscore->AnalyseSolvabilite?></i>
|
||||
<div class="blocdegrade clearfix">
|
||||
<span class="textdegrade">Solvabilité <? if ($this->edition) { echo '('.$this->indiscore->Indiscore.')';}?></span>
|
||||
<div class="imgdegrade"><img class="borderimg" src="/themes/default/images/indiscore/imgscores-<?php echo $this->FormatPct($this->indiscore->Indiscore);?>.png"/></div>
|
||||
<div class="regle"><img src="/themes/default/images/indiscore/sgradiant2.png" /></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php $millesimeMax = date('Ymd', mktime(0, 0, 0, date('m'), date('d'), date('Y')-2));?>
|
||||
<?php if($this->indiscore->NbBilansScore > 0 && $this->indiscore->Bilans->item[0]->Millesime >= $millesimeMax) {?>
|
||||
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="550" colspan="2" class="StyleInfoData">
|
||||
A la lecture du dernier bilan, cloturé le <?=substr($this->indiscore->Bilans->item[0]->Millesime,6,2).'/'.substr($this->indiscore->Bilans->item[0]->Millesime,4,2).'/'.substr($this->indiscore->Bilans->item[0]->Millesime,0,4)?>, la situation financière de l'entreprise <?php echo $this->Nom;?> est <b><?php echo $this->indiscore->tabInfosNotations->SituationFinanciere;?></b>.<br/>
|
||||
<?php
|
||||
if (html_entity_decode($this->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]
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="550" colspan="2" class="StyleInfoData">
|
||||
<i>Pour information, les méthodes standards donnent : Conan & Holder = <b><?php echo $this->indiscore->scores->ConanH;?></b>,
|
||||
Afdcc1 = <b><?php echo $this->indiscore->scores->Afdcc1;?></b>, Afdcc2 = <b><?php echo $this->indiscore->scores->Afdcc2;?></b>
|
||||
et Score Z = <b><?php echo $this->indiscore->scores->Z;?></b>.</i>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php } else {?>
|
||||
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="550" colspan="2" class="StyleInfoData">
|
||||
La situation financière de l'entreprise ne peut être évaluée en détail car
|
||||
<?php
|
||||
if($this->indiscore->Bilans->item[0]->Millesime < $millesimeMax && count($this->indiscore->Bilans->item) > 0 ) {
|
||||
echo 'le dernier bilan disponible date de '.substr($this->indiscore->Bilans->item[0]->Millesime,0,4).'.';
|
||||
} else {
|
||||
echo 'aucun bilan n\'est disponible.';
|
||||
} ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php }?>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2>Paiements</h2>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="550" colspan="2" class="StyleInfoData">
|
||||
<?php if(!empty($this->indiscore->infoPaiement)):?>
|
||||
<?php echo html_entity_decode($this->indiscore->infoPaiement);?>
|
||||
<?php else :?>
|
||||
Aucune information sur les paiements disponible.
|
||||
<?php endif;?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2>Conclusion</h2>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="550" colspan="2" class="StyleInfoData">
|
||||
<span class="notvisible">
|
||||
Compte tenu des informations disponibles auprès des sources officielles
|
||||
Scores et Décisions présente la conclusion suivante :</span><br/>
|
||||
<?php
|
||||
$color = '';
|
||||
if ($this->indiscore->Indiscore20 < $this->bornes['indiScore']['rouge']) {
|
||||
$color = ' indiscore-red';
|
||||
} elseif ($this->indiscore->Indiscore20 < $this->bornes['indiScore']['orange']) {
|
||||
$color = ' indiscore-orange';
|
||||
} else {
|
||||
$color = ' indiscore-green';
|
||||
}
|
||||
switch($this->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;
|
||||
}
|
||||
?>
|
||||
<h3 class="indiscore<?=$color?>">LE SCORE EST DE <?=$indiscore?> SUR <?=$maxIndiscore?> POINTS</h3>
|
||||
<?php
|
||||
if ($this->indiscore->infoEncours != '' && !is_numeric($this->indiscore->encours) && $this->indiscore->encours == 'N/A'){ ?>
|
||||
<h3><?=$this->indiscore->infoEncours?></h3>
|
||||
<?php } else{ ?>
|
||||
<?php if ($indiscore != 0) {?>
|
||||
<i>La tendance de la note est <?=$this->indiscore->TendanceIndiscore?></i>
|
||||
<h3 class="indiscore">L'ENCOURS MAXIMUM CONSEILLÉ EST DE <?=round($this->indiscore->encours / 1000)?> K€</h3>
|
||||
<?php }?>
|
||||
<h3><?=$this->indiscore->infoEncours?></h3>
|
||||
<?php }?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan="3" align="center"><img class="notvisible" src="/themes/default/images/indiscore/logo_indiscore.png"/></td></tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?php if ( empty($this->AutrePage) ) {?>
|
||||
<?=$this->render('cgu.phtml', $this->cgu);?>
|
||||
</div>
|
||||
<?php }?>
|
@ -1,141 +0,0 @@
|
||||
<div id="center">
|
||||
<h1>RAPPORT DE SYNTHESE</h1>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<?php
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Siret']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['SiretSiege']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['NumRC']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Actif']);
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2>Dénomination sociale & Coordonnées</h2>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<?php
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['RaisonSociale']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['FormeJuridique']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['DateImmat']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['DateCreaEt']);
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2>Activité(s) & Chiffre d'affaires</h2>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<?php
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['ActiviteEn']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['FormeJuridique']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Naf4']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['OrigineFond']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['TypeExploitation']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Saisonnalite']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Capital']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['ChiffreAffaire']);
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
<?php
|
||||
echo $this->action('liste', 'dirigeant', null, array('siret' => $this->siret, 'id' => $this->id, 'apage' => 'indiscore2'));
|
||||
echo $this->action('liens', 'identite', null, array('siret' => $this->siret, 'id' => $this->id, 'apage' => 'indiscore2'));
|
||||
?>
|
||||
<h2>Eléments financiers</h2>
|
||||
<div class="paragraph">
|
||||
<?php if(count($this->tabResult)>0){ ?>
|
||||
<table id="synthese">
|
||||
<thead>
|
||||
<tr>
|
||||
<th align="center"></th>
|
||||
<th colspan="2" class="date"><?=$this->tabResult[0]['dateCloture']?><br/><?=$this->tabResult[0]['duree']?></th>
|
||||
<th colspan="2" class="date"><?=$this->tabResult[1]['dateCloture']?><br/><?=$this->tabResult[1]['duree']?></th>
|
||||
<th colspan="2" class="date"><?=$this->tabResult[2]['dateCloture']?><br/><?=$this->tabResult[2]['duree']?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($this->tabRatio as $ratio => $info) { ?>
|
||||
<tr>
|
||||
<td class="head"><a class="tooltip" title="<?=$info['comment']?>"><?=$info['titre']?></a></td>
|
||||
<td class="right"><?=$this->tabResult[0]['ratio'][$ratio]?></td>
|
||||
<td class="right" title="<?=$this->tabResult[0]['info'][$ratio]?>"><?=$this->tabResult[0]['total'][$ratio]?> %</td>
|
||||
<td class="right"><?=$this->tabResult[1]['ratio'][$ratio]?></td>
|
||||
<td class="right" title="<?=$this->tabResult[1]['info'][$ratio]?>"><?=$this->tabResult[1]['total'][$ratio]?> %</td>
|
||||
<td class="right"><?=$this->tabResult[2]['ratio'][$ratio]?></td>
|
||||
<td class="right" title="<?=$this->tabResult[2]['info'][$ratio]?>"><?=$this->tabResult[2]['total'][$ratio]?> %</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php } else {?>
|
||||
Aucun bilan disponible.
|
||||
<?php }?>
|
||||
</div>
|
||||
|
||||
<h2>Paiement</h2>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"></td>
|
||||
<td class="StyleInfoData"><?=html_entity_decode($this->paiement)?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2>Procédures collectives</h2>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"></td>
|
||||
<td class="StyleInfoLib" width="200">Situation juridique</td>
|
||||
<td class="StyleInfoData" width="350">
|
||||
<?php if ($this->SituationJuridique == 'P') {?>
|
||||
<a href="<?=$this->url(array('controller' => 'juridique', 'action' => 'annonces',
|
||||
'siret' => $this->siret,'id' => $this->id))?>">
|
||||
<font color="red"><b>En procédure collective</b></font></a>
|
||||
<?php if($this->dateRadiation != '') {?>
|
||||
<br/>Radié du RCS le <?=$this->dateRadiation?>
|
||||
<?php }?>
|
||||
<?php } elseif ($this->SituationJuridique == 'RR') {?>
|
||||
Radié du RCS <?php if($this->dateRadiation != '') {?>
|
||||
le <?php echo $this->dateRadiation;?>
|
||||
<?php }?>
|
||||
<?php } elseif ($this->SituationJuridique == 'RP') {?>
|
||||
Radiation publiée <?php if($this->dateRadiation != '') {?>
|
||||
le <?=$this->dateRadiation?>
|
||||
<?php }?>
|
||||
<?php } else {?>
|
||||
Aucune procédure enregistrée à ce jour par nos services.
|
||||
<?php }?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2>Scores et encours</h2>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<?php foreach ($this->scores as $name => $score) {?>
|
||||
<tr>
|
||||
<td width="30"></td>
|
||||
<td width="250" class="StyleInfoLib"><?=$score[1]?></td>
|
||||
<td width="300" class="StyleInfoData">
|
||||
<a class="rTip" name="Score <?=$name?>" rel="<?=$this->url(array(
|
||||
'controller'=> 'evaluation',
|
||||
'action' => 'printscores',
|
||||
'score'=> $name, 'note' => $score[0]))?>"><?=$score[0]?>
|
||||
<?php if ($name == 'Indiscore') :?> (<?=$this->TendanceIndiscore?>) <?php endif;?>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<tr>
|
||||
<td width="30"></td>
|
||||
<td class="StyleInfoLib">Encours conseillé</td>
|
||||
<td class="StyleInfoData"><?php echo number_format($this->encours/1000, 0, '', ' ');?> K€</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?=$this->render('cgu.phtml', $this->cgu);?>
|
||||
</div>
|
@ -1,50 +0,0 @@
|
||||
<?php
|
||||
$parametresAction = array(
|
||||
'siret' => $this->siret,
|
||||
'id' => $this->id,
|
||||
'apage' => 'indiscore3'
|
||||
);
|
||||
?>
|
||||
<div id="center">
|
||||
|
||||
<?php if ($this->customRapport) {?>
|
||||
<div class="paragraph"><a id="customRapport" href="<?=$this->customRapport?>">Rapport personnalisé</a></div>
|
||||
<?php }?>
|
||||
|
||||
<h1>RAPPORT COMPLET</h1>
|
||||
<div class="paragraph">
|
||||
<p id="rsynthese">SOCIÉTÉ : <?=$this->raisonSociale?></p>
|
||||
</div>
|
||||
|
||||
<h1>FICHE D'IDENTITÉ</h1>
|
||||
<?=$this->action('fiche', 'identite', null, array_merge($parametresAction, array('infos'=>$this->Identite)));?>
|
||||
|
||||
<h1>DIRIGEANTS</h1>
|
||||
<?=$this->action('liste', 'dirigeant', null, array_merge($parametresAction, array('infos'=>$this->Dirigeants)));?>
|
||||
|
||||
<h1>LIENS FINANCIERS</h1>
|
||||
<?=$this->action('liens', 'identite', null, array_merge($parametresAction, array('infos'=>$this->Liens)));?>
|
||||
|
||||
<h1>ANNONCES LÉGALES</h1>
|
||||
<?=$this->action('annonces', 'juridique', null, array_merge($parametresAction, array('infos'=>$this->Annonces)))?>
|
||||
|
||||
<h1>SYNTHÈSE</h1>
|
||||
<?=$this->action('synthese', 'finance', null, array_merge($parametresAction, array('infos'=>$this->Ratios)));?>
|
||||
|
||||
<h1>ÉLÉMENTS FINANCIERS - BILANS</h1>
|
||||
<?=$this->action('bilan', 'finance', null, array_merge($parametresAction, array('infos'=>$this->Ratios)));?>
|
||||
|
||||
<h1>RATIOS</h1>
|
||||
<?=$this->action('ratios', 'finance', null, array_merge($parametresAction, array('infos'=>$this->Ratios)));?>
|
||||
|
||||
<h1>COMMENTAIRES</h1>
|
||||
<div class="paragraph">
|
||||
<div id="commentaires">
|
||||
<?=$this->comment?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h1>INDISCORE©</h1>
|
||||
<?=$this->action('indiscore', 'evaluation', null, array_merge($parametresAction, array('infos'=>$this->Indiscore)));?>
|
||||
|
||||
</div>
|
@ -1,12 +0,0 @@
|
||||
<div class="blocdegrade clearfix">
|
||||
<div>
|
||||
<img class="borderimg" src="/themes/default/images/indiscore/imgscores-<?php echo $this->note;?>.png"/>
|
||||
</div>
|
||||
<div>
|
||||
<img src="/themes/default/images/indiscore/reglette.png" />
|
||||
</div>
|
||||
<div class="echelle">
|
||||
<span class="echelleleft"><?php echo $this->min;?></span>
|
||||
<span class="echelleright"><?php echo $this->max;?></span>
|
||||
</div>
|
||||
</div>
|
@ -1,151 +0,0 @@
|
||||
<div id="center">
|
||||
<h1><?=$this->translate("HISTORIQUE").' '.strtoupper($this->types[$this->type]);?></h1>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib"><?=$this->translate("Numéro identifiant Siren")?></td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->SirenTexte($this->siren)?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib"><?=$this->translate("Dénomination sociale")?></td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2><?=$this->translate("Historique des scores")?></h2>
|
||||
|
||||
<div class="paragraph" style="text-align:right;">
|
||||
<select name="type">
|
||||
<?php foreach($this->types as $key=>$val) {?>
|
||||
<?php $selected = ($key == $this->type)?'selected':'';?>
|
||||
<option value="<?=$this->url(array('siret'=>$this->siret, 'id'=>$this->id, 'type'=>$key))?>" <?=$selected;?>><?=$val?></option>
|
||||
<?php }?>
|
||||
</select>
|
||||
<script>
|
||||
$('select[name=type]').change(function(e){
|
||||
window.location = $(this).val();
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<div class="paragraph">
|
||||
<p>
|
||||
<?php if ($this->typeTxt == 'indiScore20') {?>
|
||||
L'indiscore évalue le risque de faillite d'entreprise à 12 mois à partir de trois axes: le respect,
|
||||
l'analyse historique des représentants légaux et l'analyse du bilan. Les informations sur l’environnement économique
|
||||
des entreprises (secteurs d'activité, groupe, paiements) complètent l'analyse de l'indiscore. Un indiscore entre 0 et
|
||||
6/20 indiquera un risque élevé, entre 7 et 10/20 un risque moyen et un indiscore compris entre 11 et 20/20
|
||||
un risque faible. Un avis de crédit fournisseur/client est donné, jusqu'à concurrence de 500 K€.
|
||||
<?php } ?>
|
||||
<?php if ($this->typeTxt == 'indiScore') {?>
|
||||
L'indiscore évalue le risque de faillite d'entreprise à 12 mois à partir de trois axes: le respect,
|
||||
l'analyse historique des représentants légaux et l'analyse du bilan. Les informations sur l’environnement économique
|
||||
des entreprises (secteurs d'activité, groupe, paiements) complètent l'analyse de l'indiscore. Un indiscore entre 0 et
|
||||
40/100 indiquera un risque élevé, entre 41 et 50/100 un risque moyen et un indiscore compris entre 51 et 100/100
|
||||
un risque faible. Un avis de crédit fournisseur/client est donné, jusqu'à concurrence de 500 K€.
|
||||
<?php } ?>
|
||||
<?php if ($this->typeTxt == 'scoreDir') {?>
|
||||
Évaluation de l'équipe dirigeante en place. Système S&D
|
||||
<?php } ?>
|
||||
<?php if ($this->typeTxt == 'scoreConf') {?>
|
||||
Évaluation de l'adéquation entre les déclarations et l'information disponible auprès des sources officielles françaises. Système S&D
|
||||
<?php } ?>
|
||||
<?php if ($this->typeTxt == 'scoreZ') {?>
|
||||
Le score Z de la Banque de France permet de déceler les défaillances d’entreprises. Ces dernières sont caractérisées
|
||||
par 19 ratios retraçant quatre aspects de leur comportement : structure financière, dynamisme, rentabilité, gestion courante.
|
||||
<?php } ?>
|
||||
<?php if ($this->typeTxt == 'scoreCH') {?>
|
||||
Le score CONAN et HOLDER (1979) est une méthode conseillée pour les entreprises industrielles réalisant un chiffre
|
||||
d'affaires de 1,5 à 75 millions d’euros. Il permet un classement des sociétés des plus risquées (score inférieur à
|
||||
6,8) aux plus saines (score supérieur à 16,4).
|
||||
<?php } ?>
|
||||
<?php if ($this->typeTxt == 'scoreAfdcc1') {?>
|
||||
1er indicateur synthétique de vulnérabilité établi par l'Association Françaises des Crédits managers et Conseils.
|
||||
<?php } ?>
|
||||
<?php if ($this->typeTxt == 'scoreAfdcc2') {?>
|
||||
Le score sectoriel AFDCC2 (1999) s’applique aux sociétés réalisant un chiffre d’affaires de 150.000 à 75 millions
|
||||
d'euros. Il comprend 11 fonctions pour 7 secteurs d'activité en différenciant les TPE des PME. Il s'adresse plus
|
||||
spécialement au Credit Manager, étant axé sur la solvabilité de l'entreprise à court terme.
|
||||
<?php } ?>
|
||||
<?php if ($this->typeTxt == 'scoreAltman') {?>
|
||||
Évaluation synthétique permettant la prévision de défaillance d'une entreprise à partir de ratios, liquidité,
|
||||
solvablilité, rentabilité, activité, croissance. Appelé aussi Z Score d'Altman.
|
||||
<?php } ?>
|
||||
<?php if ($this->typeTxt == 'scoreCCF') {?>
|
||||
Évaluation à 3 ans de la probabilité de défaillance d'une entreprise.
|
||||
<?php } ?>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<?php if ( count($this->scores)> 0 ) {?>
|
||||
<div class="paragraph">
|
||||
<table class="tablesorter" id="synthese">
|
||||
<thead>
|
||||
<tr>
|
||||
<th align="center"><?=$this->translate("Date")?></th>
|
||||
<th align="center"><?=$this->types[$this->type]?></th>
|
||||
<th align="center"><?=$this->translate("Encours")?> (K€)</th>
|
||||
<th><?=$this->translate("Motif du changement")?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($this->scores as $score) {?>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<?php $date = new Zend_Date($score->date, 'yyyy-MM-dd');?>
|
||||
<?=$date->toString('dd/MM/yyyy')?>
|
||||
</td>
|
||||
<?php
|
||||
$style = '';
|
||||
//Color value - @todo redraw the table and add it before view
|
||||
if ( $score->value < $this->bornes[$this->type]['rouge'] ) {
|
||||
$style = ' style="color:red;"';
|
||||
} elseif ( $score->value < $this->bornes[$this->type]['orange'] ) {
|
||||
$style = ' style="color:orange;"';
|
||||
} else {
|
||||
$style = ' style="color:green;"';
|
||||
}
|
||||
?>
|
||||
<td align="center"<?=$style?>><?=$score->value?></td>
|
||||
<td align="center"><?=number_format($score->encours,2)?></td>
|
||||
<td><?=$score->label?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<script>
|
||||
$(function(){
|
||||
$('#synthese').tablesorter({
|
||||
dateFormat: 'uk',
|
||||
headers: {
|
||||
0: {sorter: 'shortDate'},
|
||||
3: {sorter: false},
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<div class="paragraph">
|
||||
<?php if ( $this->graph ) {?>
|
||||
<img src="/file/image/cache/q/<?=$this->graph?>" usemap="#graphMap">
|
||||
<map name="graphMap">
|
||||
<?=$this->graphMap;?>
|
||||
</map>
|
||||
<?php } else {?>
|
||||
<b><?=$this->translate("Impossible de générer le graphique")?></b>
|
||||
<?php }?>
|
||||
</div>
|
||||
|
||||
<?php } else {?>
|
||||
|
||||
<div class="paragraph">
|
||||
<?=$this->translate("Aucune information sur l'historique disponible.")?>
|
||||
</div>
|
||||
|
||||
<?php }?>
|
||||
|
||||
<?=$this->render('cgu.phtml', $this->cgu)?>
|
||||
</div>
|
@ -1,58 +0,0 @@
|
||||
<div id="center">
|
||||
<h1 class="titre">ÉVALUATION</h1>
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Numéro identifiant Siren</td>
|
||||
<td width="350" class="StyleInfoData"><?php echo $this->SirenTexte($this->siren);?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
|
||||
<td width="350" class="StyleInfoData"><?php echo $this->raisonSociale?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
</table>
|
||||
|
||||
<h2>Scoring partenaire : Creditsafe®</h2>
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<table cellspacing="0">
|
||||
<tr>
|
||||
<td width="20"> </td>
|
||||
<td width="10" bgcolor="#bebebe"> </td>
|
||||
<td width="200" bgcolor="#bebebe"><font size="2"><b>Note à ce jour [0 - 100]</b></font></td>
|
||||
<td width="250" bgcolor="#bebebe"><font color="<?php echo $this->fontColor;?>" size="2"><?php echo $this->rating;?></font></td>
|
||||
<td width="100" bgcolor="#bebebe">
|
||||
<?php echo $this->imgFeux?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20"> </td>
|
||||
<td width="10" bgcolor="#e7e7e7"> </td>
|
||||
<td width="200" bgcolor="#e7e7e7"><font size="2"><b>Limite à ce jour [€]</b></font></td>
|
||||
<td width="350" colspan="2" bgcolor="#e7e7e7"><font size="2"><?php echo $this->strCreditlimit;?></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20"> </td>
|
||||
<td width="10" bgcolor="#bebebe"> </td>
|
||||
<td width="200" bgcolor="#bebebe"><font size="2"><b>Informations complémentaires</b></font></td>
|
||||
<td width="350" colspan="2" bgcolor="#bebebe"><font color="<?php echo $this->fontColor;?>" size="2"><?php echo $this->libelle.'<br/>'.$this->ratingdesc1; if (trim($this->ratingdesc2)<>'') echo '<br/>'.$this->ratingdesc2;?></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="550" colspan="2" class="StyleInfoData">
|
||||
<form action="<?=$this->url(array('controller'=>'evaluation', 'action'=>'scoringcommande'))?>" method="post">
|
||||
<input type="hidden" name="siren" value="<?=$this->siren?>"/>
|
||||
<input type="checkbox"/>Mettre cette entreprise sous surveillance scoring partenaire
|
||||
<br/>
|
||||
Adresse email du destinataire <input name="email" type="text" value="<?=$this->emailCommande?>" size="20"/>
|
||||
<input class="imgButton" type="image" src="/themes/default/images/boutton_valider_off.gif" name="submit" onmouseover="this.src='/themes/default/images/boutton_valider_on.gif'" onmouseout="this.src='/themes/default/images/boutton_valider_off.gif'" title="Surveiller le score partenaire de cette entreprise...">
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
@ -1,11 +0,0 @@
|
||||
<div id="center">
|
||||
<h1></h1>
|
||||
|
||||
<div class="paragraph">
|
||||
<?=$this->message?>
|
||||
<br/>
|
||||
<a href="<?=$this->url(array('controller'=>'evaluation', 'action'=>'scoring'))?>">Retour</a>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
@ -1,23 +0,0 @@
|
||||
<?php
|
||||
$parametresAction = array(
|
||||
'siret' => $this->siret,
|
||||
'id' => $this->id,
|
||||
'apage' => 'valorisation'
|
||||
);
|
||||
?>
|
||||
<div id="center">
|
||||
|
||||
<h1>VALORISATION</h1>
|
||||
<div class="paragraph">
|
||||
<p id="rsynthese">SOCIÉTÉ : <?=$this->raisonSociale?></p>
|
||||
</div>
|
||||
|
||||
<h1>COMMENTAIRES</h1>
|
||||
<div class="paragraph">
|
||||
<div id="commentaires">
|
||||
<?=$this->comment?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
@ -1,96 +0,0 @@
|
||||
<div id="center">
|
||||
<h1 class="titre">RELATIONS BANCAIRES</h1>
|
||||
<div class="paragraph">
|
||||
<table class="identite">
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Numéro identifiant Siren</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->SirenTexte($this->siren)?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2>Liste des relations bancaires</h2>
|
||||
<div class="paragraph">
|
||||
<?php if (empty($this->AutrePage) && $this->edition) {?>
|
||||
<div style="line-height:16px;">
|
||||
<a class="dialog" title="Ajouter RIB/IBAN" href="<?=$this->url(array('controller'=>'saisie','action'=>'ribiban','mode'=>'add','siren'=>$this->siren), null, true)?>">
|
||||
<img style="vertical-align:middle;" src="/themes/default/images/interfaces/ajouter.png" /> Ajouter une autre relation bancaire</a>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
|
||||
|
||||
<?php if(count($this->banques)>0) { ?>
|
||||
<table class="data">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom de la Banque</th>
|
||||
<th>Adresse</th>
|
||||
<th>Code Banque</th>
|
||||
<th>Code Guichet</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($this->banques as $relation) { ?>
|
||||
<tr>
|
||||
<td valign="top" ><p style="text-decoration:underline;"><?=$relation->libBanque?></p>
|
||||
<?php if (empty($this->AutrePage) && $this->edition) {?>
|
||||
<a class="dialog" title="Edition RIB/IBAN" href="<?=$this->url(array('controller'=>'saisie','action'=>'ribiban','mode'=>'edit','siren'=>$this->siren, 'guichetMod'=>$relation->codeGuichet, 'banqueMod'=>$relation->codeBanque), null, true)?>"><img src="/themes/default/images/interfaces/editer.png" /></a>
|
||||
<a class="dialog" title="Supprimer RIB/IBAN" href="<?=$this->url(array('controller'=>'saisie','action'=>'ribiban','mode'=>'delete','siren'=>$this->siren, 'guichetMod'=>$relation->codeGuichet, 'banqueMod'=>$relation->codeBanque), null, true)?>"><img src="/themes/default/images/interfaces/supprimer.png" /></a>
|
||||
<?php }?>
|
||||
</td>
|
||||
<td>
|
||||
<?php if($relation->adresse1!='') {?>
|
||||
<?=$relation->adresse1?><br />
|
||||
<?php } ?>
|
||||
<?php if($relation->adresse2!='') {?>
|
||||
<?=$relation->adresse2?><br />
|
||||
<?php } ?> <?=$relation->cp?> <?=$relation->ville?>
|
||||
</td>
|
||||
<td align="center"><?php if( $relation->codeBanque*1!=0 ){ echo $relation->codeBanque; } ?></td>
|
||||
<td align="center"><?php if( $relation->codeGuichet*1!=0 ){ echo $relation->codeGuichet; }?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php } else { ?>
|
||||
<p>Aucune information.</p>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php echo $this->render('cgu.phtml', $this->cgu);?>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
$('a.dialog').on('click', function(){
|
||||
var href = $(this).attr('href');
|
||||
if (href!='#') {
|
||||
var title = $(this).attr('title');
|
||||
var dialogOpts = {
|
||||
bgiframe: true,
|
||||
title: title,
|
||||
width: 650,
|
||||
height: 600,
|
||||
modal: true,
|
||||
open: function(event, ui) {
|
||||
$(this).html('Chargement...');
|
||||
$(this).load(href);
|
||||
},
|
||||
buttons: {
|
||||
Quitter: function() { $(this).dialog('close'); }
|
||||
},
|
||||
close: function() { $('#dialog').remove(); }
|
||||
};
|
||||
$('<div id="dialog"></div>').dialog(dialogOpts);
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
@ -1,214 +0,0 @@
|
||||
<?php if (empty($this->AutrePage)) {?>
|
||||
<div id="center">
|
||||
<?php }?>
|
||||
|
||||
<?php if (empty($this->AutrePage)) {?>
|
||||
<h1>ÉLÉMENTS FINANCIERS - BILANS</h1>
|
||||
<div class="paragraph">
|
||||
<table class="identite">
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">
|
||||
Numéro identifiant Siren
|
||||
</td>
|
||||
<td width="350" class="StyleInfoData">
|
||||
<?php echo $this->SirenTexte($this->siren);?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
|
||||
<td width="350" class="StyleInfoData"><?php echo $this->raisonSociale;?></td>
|
||||
</tr>
|
||||
<?php if (isset($this->tabResultActif) && isset($this->tabResultPassif) && isset($this->tabResultSig)){?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Type de bilans</td>
|
||||
<td width="350" class="StyleInfoData">
|
||||
<?php if ($this->nbBilanC==0){?>
|
||||
Réel normal ou Simplifié
|
||||
<?php } elseif ($this->nbBilanN==0){?>
|
||||
Consolidé
|
||||
<?php } else {?>
|
||||
<form>
|
||||
<select name="typeBilan">
|
||||
<option value="N"<?=($this->typeBilan=='N')? ' selected' : '';?>>Réel normal ou Simplifié</option>
|
||||
<option value="C"<?=($this->typeBilan=='C')? ' selected' : '';?>>Consolidé</option>
|
||||
</select>
|
||||
</form>
|
||||
<?php }?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
|
||||
<?php if ( empty($this->AutrePage) ) {?>
|
||||
<div id="liasse-check-result" class="ui-state-highlight ui-corner-all" style="margin-top: 5px;">
|
||||
<p><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
|
||||
<a title="Cliquez ici pour vérifier l'intégration des éléments financiers"
|
||||
href="<?=$this->url(array('controller'=>'finance','action'=>'liasseinfos','siren'=>$this->siren), 'default', true)?>"
|
||||
id="liasse-check">Vérifier la disponibilité des derniers états financiers au Greffe.</a></p>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
|
||||
<?php if($this->typeBilan == 'B' || $this->typeBilan == 'A') {?>
|
||||
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td colspan="2" class="StyleInfoLib" width="200">Bilan de banque/assurance non gérés</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<?php } else { ?>
|
||||
|
||||
<?php if ($this->nbBilanN==0 && $this->nbBilanC==0) {?>
|
||||
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td colspan="2" class="StyleInfoLib" width="200">Aucun bilan disponible.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<?php } else {?>
|
||||
|
||||
<h2>Bilan actif - passif</h2>
|
||||
<div class="paragraph">
|
||||
<table class="bilans">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Actif</th>
|
||||
<?php foreach($this->tabResultActif as $info) { ?>
|
||||
<th class="date" >
|
||||
<?=$info['dateCloture']?><br/><?=$info['duree']?>
|
||||
</th>
|
||||
<?php }?>
|
||||
<?php $lastDateCloture = $info['dateCloture']; ?>
|
||||
<th>% T.B.</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($this->tabRatioActif as $idRatio => $info) { ?>
|
||||
<tr<?php if (!empty($info['class'])) echo ' class="'.$info['class'].'"'?>>
|
||||
<td>
|
||||
<?=$info['titre']?></td>
|
||||
<?php foreach($this->tabResultActif as $value) { ?>
|
||||
<td class="left"><?=$value['entrep'][$idRatio]?></td>
|
||||
<?php }?>
|
||||
<td><?=$value['total'][$idRatio]?></td>
|
||||
<?php }?>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="paragraph">
|
||||
<?=$this->action('bilangraph', 'finance', null, array(
|
||||
'type' => 'actif',
|
||||
'typeBilan' => $this->typeBilan,
|
||||
'dateCloture' => $this->lastDateCloture,
|
||||
'siret' => $this->siret,
|
||||
'id' => $this->id,
|
||||
))?>
|
||||
</div>
|
||||
|
||||
<div class="paragraph">
|
||||
<table class="bilans">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Passif</th>
|
||||
<?php foreach($this->tabResultPassif as $info) { ?>
|
||||
<th class="date" >
|
||||
<?=$info['dateCloture']?><br/><?=$info['duree']?>
|
||||
</th>
|
||||
<?php }?>
|
||||
<th>% T.B.</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($this->tabRatioPassif as $idRatio => $info) { ?>
|
||||
<tr<?php if (!empty($info['class'])) echo ' class="'.$info['class'].'"'?>>
|
||||
<td>
|
||||
<?=$info['titre']?></td>
|
||||
<?php foreach($this->tabResultPassif as $value) { ?>
|
||||
<td class="left"><?=$value['entrep'][$idRatio]?></td>
|
||||
<?php }?>
|
||||
<td><?=$value['total'][$idRatio]?></td>
|
||||
<?php }?>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="paragraph">
|
||||
<?=$this->action('bilangraph', 'finance', null, array(
|
||||
'type' => 'passif',
|
||||
'typeBilan' => $this->typeBilan,
|
||||
'dateCloture' => $this->lastDateCloture,
|
||||
'siret' => $this->siret,
|
||||
'id' => $this->id,
|
||||
))?>
|
||||
</div>
|
||||
|
||||
<h2>Soldes Intermédiaires de Gestion</h2>
|
||||
<div class="paragraph">
|
||||
<table class="bilans">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2">SOLDES INTERMEDIAIRES DE GESTION</th>
|
||||
<?php foreach($this->tabResultSig as $info) { ?>
|
||||
<th class="date" >
|
||||
<?=$info['dateCloture']?><br/><?=$info['duree']?>
|
||||
</th>
|
||||
<?php }?>
|
||||
<th>% C.A.</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($this->tabRatioSig as $idRatio => $info) { ?>
|
||||
<tr<?php if (!empty($info['class'])) echo ' class="'.$info['class'].'"'?>>
|
||||
<?php if(empty($info['op'])){?>
|
||||
<td colspan="2"><?=$info['titre']?></td>
|
||||
<?php } else {?>
|
||||
<td><?=$info['op']?></td><td><?=$info['titre']?></td>
|
||||
<?php }?>
|
||||
<?php foreach($this->tabResultSig as $value) { ?>
|
||||
<td class="left"><?=$value['entrep'][$idRatio]?></td>
|
||||
<?php }?>
|
||||
<td><?=$value['total'][$idRatio]?></td>
|
||||
<?php }?>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="paragraph">
|
||||
<?=$this->action('bilangraph', 'finance', null, array(
|
||||
'type' => 'sig',
|
||||
'typeBilan' => $this->typeBilan,
|
||||
'dateCloture' => $this->lastDateCloture,
|
||||
'siret' => $this->siret,
|
||||
'id' => $this->id,
|
||||
))?>
|
||||
</div>
|
||||
|
||||
<?php }?>
|
||||
|
||||
<?php }?>
|
||||
|
||||
<?php if ( empty($this->AutrePage) ) {?>
|
||||
<?=$this->render('cgu.phtml', $this->cgu)?>
|
||||
<?php }?>
|
||||
|
||||
<?php if ( empty($this->AutrePage) ) {?>
|
||||
</div>
|
||||
<?php }?>
|
@ -1,286 +0,0 @@
|
||||
<div id="center">
|
||||
<h1 class="titre">INFORMATIONS BOURSIÈRES</h1>
|
||||
<div class="paragraph">
|
||||
<table id="identite">
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">
|
||||
Numéro identifiant Siren
|
||||
</td>
|
||||
<td width="350" class="StyleInfoData">
|
||||
<?=$this->SirenTexte($this->siren)?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
if ( !empty($this->InfosBourse->Isin) ) {
|
||||
//logo
|
||||
|
||||
if (trim($this->InfosBourse->Web)!='') {
|
||||
if (substr($this->InfosBourse->Web,0,7)!='http://'){
|
||||
$siteWeb = 'http://'.$this->InfosBourse->Web;
|
||||
} else {
|
||||
$siteWeb = $this->InfosBourse->Web;
|
||||
}
|
||||
}
|
||||
?>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Code ISIN</td>
|
||||
<td width="350" class="StyleInfoData">
|
||||
<?php
|
||||
echo $this->InfosBourse->Isin;
|
||||
if (trim($this->InfosBourse->CodeSicovam)*1>0)
|
||||
echo ' <b>(ancien code Sicovam : </b>'.$this->InfosBourse->CodeSicovam.'<b>)</b>';
|
||||
if ($this->edition) {
|
||||
echo ' <a href="'.$this->edition.'">(Edition)</a>';
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Code Mnémo</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->InfosBourse->CodeMnemo?></td>
|
||||
</tr>
|
||||
<?php if( !empty($this->InfosBourse->CodeBloomberg) ){ ?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Code Bloomberg</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->InfosBourse->CodeBloomberg?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
|
||||
<?php if( !empty($this->InfosBourse->CodeDatastream) ) { ?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Code Datastream</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->InfosBourse->CodeDatastream?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if( !empty($this->InfosBourse->CodeRic) ) { ?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Code Ric</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->InfosBourse->CodeRic?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Place de cotation</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->InfosBourse->placeCotation?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Marché</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->InfosBourse->Marche?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Nombre de titres</td>
|
||||
<td width="350" class="StyleInfoData"><?=number_format($this->InfosBourse->nombreTitres,0,'', ' ')?> titres</td>
|
||||
</tr>
|
||||
<?php
|
||||
switch (trim(strtoupper($this->InfosBourse->EligibleSRD)))
|
||||
{
|
||||
case 'O': $srd='Oui'; break;
|
||||
default: $srd='Non'; break;
|
||||
}
|
||||
switch (trim(strtoupper($this->InfosBourse->EligiblePEA)))
|
||||
{
|
||||
case 'O': $pea='Oui'; break;
|
||||
default: $pea='Non'; break;
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Éligible SRD / PEA</td>
|
||||
<td width="350" class="StyleInfoData"><?=$srd?> / <?=$pea?></td>
|
||||
</tr>
|
||||
<?php
|
||||
if ($this->urlImg!='') {
|
||||
?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Logo</td>
|
||||
<td width="350" class="StyleInfoData"><?php echo $this->urlImg; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2>Coordonnées</h2>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
|
||||
<td width="350" class="StyleInfoData"><?=empty($this->InfosBourse->RaisonSociale) ? $this->raisonSociale : $this->InfosBourse->RaisonSociale;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Adresse</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->InfosBourse->Adresse?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Date d'introduction en bourse</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->InfosBourse->DateIntroduction?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Date dernière assemblée générale</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->InfosBourse->DateDerAG?></td>
|
||||
</tr>
|
||||
<?php if (trim($this->InfosBourse->DateRadiation)<>'' && $this->InfosBourse->DateRadiation<>'0000-00-00') { ?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Date de radiation</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->InfosBourse->DateRadiation?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Téléphone</td>
|
||||
<td width="350" class="StyleInfoData">
|
||||
<?php
|
||||
if (strlen(trim($this->InfosBourse->Tel))>5) echo $this->InfosBourse->Tel.' ';
|
||||
if (strlen(trim($this->InfosBourse->Tel2))>5) echo $this->InfosBourse->Tel2;
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Fax</td>
|
||||
<td width="350" class="StyleInfoData">
|
||||
<?php
|
||||
if (strlen(trim($this->InfosBourse->Fax))>5) echo $this->InfosBourse->Fax.' ';
|
||||
if (strlen(trim($this->InfosBourse->Fax2))>5) echo $this->InfosBourse->Fax2;
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if ($siteWeb<>'') { ?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Site Internet</td>
|
||||
<td width="350" class="StyleInfoData"><a href="<?=$siteWeb?>" target="_blank"><?=$siteWeb?></a></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if (trim($this->InfosBourse->Mail)<>'') { ?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Courriel</td>
|
||||
<td width="350" class="StyleInfoData">
|
||||
<a href="mailto:<?=$this->InfosBourse->Mail;?>" target="_blank"><?=$this->InfosBourse->Mail?></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2>Activité(s)</h2>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Activité</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->InfosBourse->Activite?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Secteur</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->InfosBourse->Secteur?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="550" colspan="2" class="StyleInfoData"><?=str_replace("\n", '<br/>',$this->InfosBourse->ActiviteDet)?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2>Dernier cours</h2>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Dernière cotation connue</td>
|
||||
<?php $date = new Zend_Date($this->InfosBourse->derCoursDate, 'yyyy-MM-dd');?>
|
||||
<td width="350" class="StyleInfoData"><?=$date->toString('dd/MM/yyyy')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Clôture</td>
|
||||
<td width="350" class="StyleInfoData"><?=number_format($this->InfosBourse->derCoursCloture,2,',', ' ')?> €</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Ouverture</td>
|
||||
<td width="350" class="StyleInfoData"><?=number_format($this->InfosBourse->derCoursOuverture,2,',', ' ')?> €</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Plus haut</td>
|
||||
<td width="350" class="StyleInfoData"><?=number_format($this->InfosBourse->derCoursPlusHaut,2,',', ' ')?> €</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Plus Bas</td>
|
||||
<td width="350" class="StyleInfoData"><?=number_format($this->InfosBourse->derCoursPlusBas,2,',', ' ')?> €</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Volume échangé</td>
|
||||
<td width="350" class="StyleInfoData"><?=number_format($this->InfosBourse->derCoursVolume,0,'', ' ')?> titres (<?=number_format($this->InfosBourse->derCoursVolume/$this->InfosBourse->nombreTitres,2,',', ' ')?> %)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Capitalisation</td>
|
||||
<td width="350" class="StyleInfoData"><?=number_format($this->InfosBourse->capitalisation,2,',', ' ')?> €</td>
|
||||
</tr>
|
||||
<tr><td colspan="3"> </td></tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Minimum historique</td>
|
||||
<td width="350" class="StyleInfoData"><?=number_format($this->InfosBourse->coursMin,2,',', ' ')?> €</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Maximum historique</td>
|
||||
<td width="350" class="StyleInfoData"><?=number_format($this->InfosBourse->coursMax,2,',', ' ')?> €</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Cours moyen</td>
|
||||
<td width="350" class="StyleInfoData"><?=number_format($this->InfosBourse->coursMoy,2,',', ' ')?> €</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<tr>
|
||||
<td width="580" class="StyleInfoLib" colspan="3"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="550" class="StyleInfoLib" colspan="2">
|
||||
Société non côtée en bourse à ce jour.
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php echo $this->render('cgu.phtml', $this->cgu);?>
|
||||
</div>
|
@ -1,91 +0,0 @@
|
||||
<div id="center">
|
||||
<h1 class="titre">Flux de Trésorerie <span style="color:red;">(beta)</span></h1>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Numéro identifiant Siren</td>
|
||||
<td width="340" class="StyleInfoData"><?=$this->SirenTexte($this->siret)?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
|
||||
<td width="340" class="StyleInfoData"><?=$this->raisonSociale?></td>
|
||||
</tr>
|
||||
<?php if ($this->nbBilanN > 0 || $this->nbBilanC > 0) { ?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Type de bilans</td>
|
||||
<td width="340" class="StyleInfoData">
|
||||
<?php if ($this->nbBilanN > 0 && $this->nbBilanC > 0) { ?>
|
||||
<input type="radio" name="typeBilan" value="<?=$this->url(array(
|
||||
'controller'=>'finance', 'action'=>'flux',
|
||||
'siret'=>$this->siret, 'id'=>$this->id, 'type'=>'N'), 'default', true)?>"
|
||||
<?php if ($this->typeBilan == 'N') { echo ' checked'; }?>/><label>Réel normal ou Simplifié</label>
|
||||
<input type="radio" name="typeBilan" value="<?=$this->url(array(
|
||||
'controller'=>'finance', 'action'=>'flux',
|
||||
'siret'=>$this->siret, 'id'=>$this->id, 'type'=>'C'), 'default', true)?>"
|
||||
<?php if ($this->typeBilan == 'C') { echo ' checked'; }?>/><label>Consolidé</label>
|
||||
<?php } else if ($this->nbBilanN > 0 && $this->nbBilanC == 0) {?>
|
||||
Réel normal ou Simplifié
|
||||
<?php } else if ($this->nbBilanN == 0 && $this->nbBilanC > 0) {?>
|
||||
Consolidé
|
||||
<?php }?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
|
||||
<h2>Tableau des flux</h2>
|
||||
<div class="paragraph">
|
||||
<table class="bilans">
|
||||
<tr class="subhead">
|
||||
<td colspan="2"> </td>
|
||||
<?php foreach ($this->dateCloture as $k => $date) { ?>
|
||||
<td class="center" >
|
||||
<?=substr($date,6,2).'/'.substr($date,4,2).'/'.substr($date,0,4)?><br/>
|
||||
<?=$this->bilansInfos[$date]->duree?> mois</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php
|
||||
foreach ($this->dataTable as $ratio) {
|
||||
$trClass = '';
|
||||
if ( empty($ratio['r']) ){
|
||||
$trClass = ' class="darkblue"';
|
||||
}
|
||||
|
||||
if ( isset($ratio['class']) && $ratio['class']=='subhead' ){
|
||||
$trClass = ' class="'.$ratio['class'].'"';
|
||||
}
|
||||
?>
|
||||
<tr<?=$trClass?>>
|
||||
<td><?=$ratio['op']?></td>
|
||||
<td><?=$ratio['titre']?></td>
|
||||
<?php foreach ($this->dateCloture as $k => $date) { ?>
|
||||
<td class="right">
|
||||
<?php if ( !empty($ratio['r']) ){ ?>
|
||||
<?=$ratio['values'][$date]?>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<?php }?>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<?php if ($this->graph) {?>
|
||||
<div class="paragraph">
|
||||
<img src="/file/image/cache/q/<?=$this->graph?>" />
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
<?=$this->render('cgu.phtml', $this->cgu);?>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
$('input[name=typeBilan]').click(function(e){
|
||||
window.location.href = $(this).val();
|
||||
});
|
||||
});
|
||||
</script>
|
@ -1,160 +0,0 @@
|
||||
<div id="center">
|
||||
<h1>ELEMENTS FINANCIERS - BILANS</h1>
|
||||
<div class="paragraph">
|
||||
<table class="identite">
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Numéro identifiant Siren</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->SirenTexte($this->siren)?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
|
||||
</tr>
|
||||
|
||||
<?php if ($this->edition) {?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td colspan="2">
|
||||
<?php if(!empty($this->dateCloture)) {?>
|
||||
<a href="<?=$this->url(array('controller'=>'saisie', 'action'=>'liasse', 'siret'=>$this->siren,
|
||||
'selection'=>$this->dateCloture.':'.$this->champType), 'default', true)?>">
|
||||
Corriger le bilan</a><br/><?php }?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
|
||||
<?php if ($this->exportxls) {?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td colspan="2">
|
||||
<a href="<?=$this->url(array(
|
||||
'controller' => 'finance',
|
||||
'action' => 'liassexls',
|
||||
'siret' => $this->siret,
|
||||
'unite' => $this->unite,
|
||||
'type' => $this->champType,
|
||||
'date' => $this->dateCloture,
|
||||
))?>" id="xls">Exporter en fichier Excel.</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if (0 < $this->exportObjet->TOP_CONFIDENTIEL) : ?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td colspan="2">
|
||||
<span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
|
||||
Ce bilan est confidentiel.
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif ?>
|
||||
<?php if ( $this->champType == 'S' ) {?>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
Ce bilan a été déposé au format réel simplifié mais vous est livré au format réel normal pour des raisons de
|
||||
standardisation.
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<?php if ($this->msg) {?>
|
||||
|
||||
<div class="paragraph">
|
||||
|
||||
<div style="padding:0.7em;" class="ui-state-highlight ui-corner-all">
|
||||
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-info"></span>
|
||||
<?=$this->msg?>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php } else {?>
|
||||
<?php
|
||||
switch ($this->champType) {
|
||||
case 'N' : $name = 'Réel Normal'; break;
|
||||
case 'S' : $name = 'Simplifié'; break;
|
||||
case 'C' : $name = 'Consolidé'; break;
|
||||
case 'A' : $name = 'Assurance'; break;
|
||||
case 'B' : $name = 'Banque'; break;
|
||||
}
|
||||
?>
|
||||
<h2>Liasse <?=$name?> - Millésime <?=substr($this->dateCloture,0,4)?> </h2>
|
||||
<div class="paragraph">
|
||||
<form method="post" action="<?=$this->url(array('controller'=>'finance','action'=>'liasse','siret'=>$this->siret,'id'=>$this->id))?>">
|
||||
Valeurs exprimées en
|
||||
<select name="unit">
|
||||
<?php foreach ($this->unit as $id => $titre):?>
|
||||
<option value="<?=$id?>"<?=($id==$this->unite)? ' selected': '';?>><?=$titre?></option>
|
||||
<?php endforeach;?>
|
||||
</select>
|
||||
<input type="submit" value="OK" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="paragraph">
|
||||
<?php if(empty($this->dateCloture)) {?>
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td colspan="2" class="StyleInfoLib" width="200">Impossible d'afficher le bilan.</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php } else {?>
|
||||
|
||||
<div class="tabbed_area">
|
||||
<ul class="tabs">
|
||||
<?php foreach ($this->ancres as $id => $name) {?>
|
||||
<li><a href="#<?=$id?>" title="<?=$name?>" class="tab"><?=$name?></a></li>
|
||||
<?php }?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
|
||||
<?php if( in_array($this->champType, array('S', 'N', 'C')) ) {?>
|
||||
|
||||
<?php echo $this->partial('finance/liasse/2050.phtml', array(
|
||||
'liasse' => $this->liasse,
|
||||
'dateCloture' => $this->dateClotureD,
|
||||
'dateCloturePre' => $this->dateCloturePreD,
|
||||
'dureesMois' => $this->dureesMois,
|
||||
'dureesMoisPre'=> $this->dureesMoisPre,
|
||||
'unite'=> $this->unite,
|
||||
));?>
|
||||
|
||||
<?php } elseif ($this->champType == 'B') {?>
|
||||
|
||||
<?php echo $this->partial('finance/liasse/banque.phtml', array(
|
||||
'liasse' => $this->liasse,
|
||||
'dateCloture' => $this->dateClotureD,
|
||||
'dateCloturePre' => $this->dateCloturePreD,
|
||||
'dureesMois' => $this->dureesMois,
|
||||
'dureesMoisPre'=> $this->dureesMoisPre,
|
||||
'unite'=> $this->unite,
|
||||
));?>
|
||||
|
||||
<?php } elseif ($this->champType == 'A') {?>
|
||||
|
||||
<?php echo $this->partial('finance/liasse/assurance.phtml', array(
|
||||
'liasse' => $this->liasse,
|
||||
'dateCloture' => $this->dateClotureD,
|
||||
'dateCloturePre' => $this->dateCloturePreD,
|
||||
'dureesMois' => $this->dureesMois,
|
||||
'dureesMoisPre'=> $this->dureesMoisPre,
|
||||
'unite'=> $this->unite,
|
||||
));?>
|
||||
|
||||
<?php }?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php }?>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
<?php echo $this->render('cgu.phtml', $this->cgu);?>
|
||||
</div>
|
File diff suppressed because it is too large
Load Diff
@ -1,79 +0,0 @@
|
||||
<a name="actif">Actif</a>
|
||||
<table id="LiasseTable">
|
||||
<tr>
|
||||
<td align="right" colspan="2"><b>Exercices, clos le :</b></td>
|
||||
<td align="right"><b><?php echo $this->dateCloture;?></b></td>
|
||||
<td align="right"><b><?php echo $this->dateCloturePre;?></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Placements</td>
|
||||
<td align="center">AA1</td>
|
||||
<td align="right"><?php echo $this->liasse['AA1'];?></td>
|
||||
<td align="right"><?php echo $this->liasse['NA1'];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bold">TOTAL ACTIF</td>
|
||||
<td align="center">AA2</td>
|
||||
<td align="right"><?php echo $this->liasse['AA2'];?></td>
|
||||
<td align="right"><?php echo $this->liasse['NA2'];?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<a name="passif">Passif</a>
|
||||
<table id="LiasseTable">
|
||||
<tr>
|
||||
<td align="right" colspan="2"><b>Exercices, clos le :</b></td>
|
||||
<td align="right"><b><?php echo $this->dateCloture;?></b></td>
|
||||
<td align="right"><b><?php echo $this->dateCloturePre;?></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Capitaux propres</td>
|
||||
<td align="center">AP1</td>
|
||||
<td align="right"><?php echo $this->liasse['AP1'];?></td>
|
||||
<td align="right"><?php echo $this->liasse['NP1'];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Provisions techniques brutes</td>
|
||||
<td align="center">AP2</td>
|
||||
<td align="right"><?php echo $this->liasse['AP2'];?></td>
|
||||
<td align="right"><?php echo $this->liasse['NP2'];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bold">TOTAL PASSIF</td>
|
||||
<td align="center">AP3</td>
|
||||
<td align="right"><?php echo $this->liasse['AP3'];?></td>
|
||||
<td align="right"><?php echo $this->liasse['NP3'];?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<a name="compteDeResultat">Compte de resultat</a>
|
||||
<table id="LiasseTable">
|
||||
<tr>
|
||||
<td align="right" colspan="2"><b>Exercices, clos le :</b></td>
|
||||
<td align="right"><b><?php echo $this->dateCloture;?></b></td>
|
||||
<td align="right"><b><?php echo $this->dateCloturePre;?></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Primes - cotisations acquises</td>
|
||||
<td align="center">AR1</td>
|
||||
<td align="right"><?php echo $this->liasse['AR1'];?></td>
|
||||
<td align="right"><?php echo $this->liasse['NR1'];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Charges des sinistres</td>
|
||||
<td align="center">AR2</td>
|
||||
<td align="right"><?php echo $this->liasse['AR2'];?></td>
|
||||
<td align="right"><?php echo $this->liasse['NR2'];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Résultat technique</td>
|
||||
<td align="center">AR3</td>
|
||||
<td align="right"><?php echo $this->liasse['AR3'];?></td>
|
||||
<td align="right"><?php echo $this->liasse['NR3'];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Résultat de l'exercice</td>
|
||||
<td align="center">AR4</td>
|
||||
<td align="right"><?php echo $this->liasse['AR4'];?></td>
|
||||
<td align="right"><?php echo $this->liasse['NR5'];?></td>
|
||||
</tr>
|
||||
</table>
|
@ -1,114 +0,0 @@
|
||||
<a name="actif">Actif</a>
|
||||
<table id="LiasseTable">
|
||||
<tr>
|
||||
<td align="right" colspan="2"><b>Exercices, clos le :</b></td>
|
||||
<td align="right"><b><?php echo $this->dateCloture;?></b></td>
|
||||
<td align="right"><b><?php echo $this->dateCloturePre;?></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Créances sur les établissements de crédit</td>
|
||||
<td align="center">BA1</td>
|
||||
<td align="right"><?php echo $this->liasse['BA1'];?></td>
|
||||
<td align="right"><?php echo $this->liasse['NA1'];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Créances sur la clientèle</td>
|
||||
<td align="center">BA2</td>
|
||||
<td align="right"><?php echo $this->liasse['BA2'];?></td>
|
||||
<td align="right"><?php echo $this->liasse['NA2'];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bold">TOTAL ACTIF</td>
|
||||
<td align="center">BA3</td>
|
||||
<td align="right"><?php echo $this->liasse['BA3'];?></td>
|
||||
<td align="right"><?php echo $this->liasse['NA3'];?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<a name="passif">Passif</a>
|
||||
<table id="LiasseTable">
|
||||
<tr>
|
||||
<td align="right" colspan="2"><b>Exercices, clos le :</b></td>
|
||||
<td align="right"><b><?php echo $this->dateCloture;?></b></td>
|
||||
<td align="right"><b><?php echo $this->dateCloturePre;?></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Dettes envers les établissements de crédit</td>
|
||||
<td align="center">BP1</td>
|
||||
<td align="right"><?php echo $this->liasse['BP1'];?></td>
|
||||
<td align="right"><?php echo $this->liasse['NP1'];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Comptes créditeurs à la clientèle</td>
|
||||
<td align="center">BP2</td>
|
||||
<td align="right"><?php echo $this->liasse['BP2'];?></td>
|
||||
<td align="right"><?php echo $this->liasse['NP2'];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Capital souscrit</td>
|
||||
<td align="center">BP3</td>
|
||||
<td align="right"><?php echo $this->liasse['BP3'];?></td>
|
||||
<td align="right"><?php echo $this->liasse['NP3'];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Primes d'émissions</td>
|
||||
<td align="center">BP4</td>
|
||||
<td align="right"><?php echo $this->liasse['BP4'];?></td>
|
||||
<td align="right"><?php echo $this->liasse['NP4'];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Réserves</td>
|
||||
<td align="center">BP5</td>
|
||||
<td align="right"><?php echo $this->liasse['BP5'];?></td>
|
||||
<td align="right"><?php echo $this->liasse['NP5'];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Ecarts de réevaluation</td>
|
||||
<td align="center">BP6</td>
|
||||
<td align="right"><?php echo $this->liasse['BP6'];?></td>
|
||||
<td align="right"><?php echo $this->liasse['NP6'];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Report à nouveau</td>
|
||||
<td align="center">BP7</td>
|
||||
<td align="right"><?php echo $this->liasse['BP7'];?></td>
|
||||
<td align="right"><?php echo $this->liasse['NP7'];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Résultat de l'exercice</td>
|
||||
<td align="center">BP8</td>
|
||||
<td align="right"><?php echo $this->liasse['BP8'];?></td>
|
||||
<td align="right"><?php echo $this->liasse['NP8'];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bold">TOTAL PASSIF</td>
|
||||
<td align="center">BP9</td>
|
||||
<td align="right"><?php echo $this->liasse['BP9'];?></td>
|
||||
<td align="right"><?php echo $this->liasse['NP9'];?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<a name="compteDeResultat">COMPTE DE RESULTAT</a>
|
||||
<table id="LiasseTable">
|
||||
<tr>
|
||||
<td align="right" colspan="2"><b>Exercices, clos le :</b></td>
|
||||
<td align="right"><b><?php echo $this->dateCloture;?></b></td>
|
||||
<td align="right"><b><?php echo $this->dateCloturePre;?></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Intérêts et produits assimilés</td>
|
||||
<td align="center">BR1</td>
|
||||
<td align="right"><?php echo $this->liasse['BR1'];?></td>
|
||||
<td align="right"><?php echo $this->liasse['NR1'];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Intérêts et charges assimilées</td>
|
||||
<td align="center">BR2</td>
|
||||
<td align="right"><?php echo $this->liasse['BR2'];?></td>
|
||||
<td align="right"><?php echo $this->liasse['NR2'];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Résultat de l'exercice</td>
|
||||
<td align="center">BR3</td>
|
||||
<td align="right"><?php echo $this->liasse['BR3'];?></td>
|
||||
<td align="right"><?php echo $this->liasse['NR3'];?></td>
|
||||
</tr>
|
||||
</table>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user