New bootstrap theme

This commit is contained in:
Michael RICOIS 2014-08-25 11:05:30 +00:00
parent 6ca76d42b4
commit e56021b8ef
302 changed files with 29115 additions and 0 deletions

View File

@ -0,0 +1,15 @@
<?php
class Zend_View_Helper_CssHelper extends Zend_View_Helper_Abstract
{
function cssHelper() {
$request = Zend_Controller_Front::getInstance()->getRequest();
$file_uri = 'media/css/' . $request->getControllerName() . '/' . $request->getActionName() . '.css';
if (file_exists($file_uri)) {
$this->view->headLink()->appendStylesheet('/' . $file_uri);
}
return $this->view->headLink();
}
}

View File

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

View File

@ -0,0 +1,11 @@
<?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;
}
}

View File

@ -0,0 +1,28 @@
<?php
class Zend_View_Helper_JavascriptHelper extends Zend_View_Helper_Abstract
{
function javascriptHelper()
{
$request = Zend_Controller_Front::getInstance()->getRequest();
$controller = $request->getControllerName();
$action = $request->getActionName();
$paramsTheme = Zend_Registry::get('theme');
$fileController = APPLICATION_PATH . '/../public/' .
$paramsTheme->pathScript . '/' . $controller . '.js';
if ( file_exists($fileController) ) {
$contentScript = file_get_contents($fileController);
$view->inlineScript()->appendScript($contentScript);
}
$fileControllerAction = APPLICATION_PATH . '/../public/' .
$paramsTheme->pathScript . '/' . $controller . '-' . $action . '.js';
if ( file_exists($fileControllerAction) ) {
$contentScript = file_get_contents($fileControllerAction);
$view->inlineScript()->appendScript($contentScript);
}
}
}

View File

@ -0,0 +1,24 @@
<?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;
}
}

View File

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

View File

@ -0,0 +1,40 @@
<?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;
}
}
}

View File

@ -0,0 +1,10 @@
<?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);
}
}

View File

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

View File

@ -0,0 +1,29 @@
<?php
Class Zend_View_Helper_TrueLabel extends Zend_View_Helper_Abstract
{
public function __construct()
{
}
public function TrueLabel($list, $name)
{
try {
return (self::GetTrueLabel($list, $name));
} catch (Exception $e) {
echo 'Aucun label : ' . $e;
}
}
private function GetTrueLabel($list, $name)
{
if(isset($list)) {
foreach ($list as $nameLabel => $label)
{
if ($nameLabel == $name)
return ($label);
}
}
return ($name);
}
}

View File

@ -0,0 +1,108 @@
<?=$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>
$(document).ready(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 daccè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 dachat ou de vente, ni comme une incitation à lachat 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 lintermédiaire de ce site Web ne vous sont communiquées
quaux 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 laccord é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 à linformation 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 daccorder ou de révoquer lautorisation dutiliser 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 à lexactitude, la sécurité et la
confidentialité des informations disponibles par lintermédiaire des sites Extranets
scores-decisions.com, Scores & Décisions ne saurait cependant être tenue responsable des
conséquences des agissements dun 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 lutilisation 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 daccè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>

View File

@ -0,0 +1,18 @@
<?php if ( count($this->nouveautes)>0 ) {?>
<div style="position:absolute;width:680px;top:5px;" class="ui-state-highlight ui-corner-all">
<p>
<span style="float:left;margin-right:0.3em;" class="ui-icon ui-icon-info"></span>
<strong>Nouveau !</strong>
<?php $cpt = 0;?>
<?php foreach ( $this->nouveautes as $nouveaute) {?>
<a href="<?=$this->url(array('controller'=>'fichier', 'action'=>'new', 'fichier'=>$nouveaute->fichier))?>" 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 }?>

View File

@ -0,0 +1,42 @@
<style>
table { width:100%; }
table th { border:1px solid; font-weight:bold; padding:5px; }
table tr { }
table td { border:1px solid; padding:5px; }
</style>
<div id="center">
<h1>Nouveautés</h1>
<div class="paragraph">
<!-- Tri par date - Tri par catégorie -->
</div>
<h2>Liste par date</h2>
<div class="paragraph">
<table>
<thead>
<tr>
<th>Date</th>
<th>Intitulé</th>
<th>Catégorie</th>
</tr>
</thead>
<tbody>
<?php if ( count($this->nouveautes)>0 ){?>
<?php foreach ( $this->nouveautes as $nouveau) {?>
<tr>
<td><?=substr($nouveau->date,8,2).'/'.substr($nouveau->date,5,2).'/'.substr($nouveau->date,0,4)?></td>
<td>
<a href="<?=$this->url(array('controller'=>'fichier',
'action'=>'new', 'fichier'=>$nouveau->fichier))?>" target="_blank">
<?=$nouveau->intitule?></a>
</td>
<td><?=$nouveau->categorie?></td>
</tr>
<?php }?>
<?php }?>
</tbody>
</table>
</div>
</div>

View File

@ -0,0 +1,190 @@
<style>
#identifiant {
float:left;
width:40%;
}
#modules {
float:left;
width:40%;
}
#listeModules {
position:absolute;
width:500px;
display:none;
background-color:#FBF7AA;
border:1px solid #000000;
z-index:3;
}
#closelisteModules {
float:right;
padding:0.4em 1em;
}
#listeModules ul {
width:100%;
margin-left:-10px;
list-style-type:none;
}
#listeModules ul li {
display:inline;
float:left;
width:50%;
}
</style>
<div id="center">
<h1>Banque de France - Modules</h1>
<h2>Recherche FIBEN / FCC identifiant unique</h2>
<div class="paragraph">
<form name="rFibenU" method="post" action="<?=$this->url(array('controller'=>'bdf', 'action'=>'module'))?>">
<input type="hidden" name="type" value="u"/>
<input type="hidden" name="siret" value="<?=$this->siret?>"/>
<div id="identifiant">
<label>Identifiant</label> <input type="text" name="req" value="<?=$this->req?>"/>
<br/><span>SIREN ou clé BDF</span>
</div>
<div id="modules" class="clearfix">
<a href='#' id="listeModulesD">Liste des modules</a>
<span id="selected">
<?php if ($this->module && is_array($this->module)){ ?>
<?php
foreach ($this->listModulesFiben as $id => $module) {
if (isset($module['liste']) == false || $module['liste'] !== false) {
if (in_array($id, $this->module))
{
echo '<br/>'.$module['titre'];
}
}
}
foreach ($this->listModulesFcc as $id => $module) {
if (isset($module['liste']) == false || $module['liste'] !== false) {
if (in_array($id, $this->module))
{
echo '<br/>'.$module['titre'];
}
}
}
?>
<?php } ?>
</span>
</div>
<div id="listeModules">
<a href="#" id="closelisteModules">Fermer</a>
<ul>
<?php
foreach ($this->listModulesFiben as $id => $module) {
if (isset($module['liste']) == false || $module['liste'] !== false) {
$checked = '';
if (isset($this->module) && is_array($this->module) && in_array($id, $this->module))
{
$checked = 'checked';
}
?>
<li>
<input type="checkbox" name="bdfmodule[]" value="<?=$id?>" <?=$checked?>/>
<?=$module['titre']?>
</li>
<?php
}
}
foreach ($this->listModulesFcc as $id => $module) {
if (isset($module['liste']) == false || $module['liste'] !== false) {
$checked = '';
if (isset($this->module) && is_array($this->module) && in_array($id, $this->module))
{
$checked = 'checked';
}
?>
<li>
<input type="checkbox" name="module[]" value="<?=$id?>" <?=$checked?>/>
<?=$module['titre']?>
</li>
<?php
}
}
?>
</ul>
<br/>
</div>
<input class="button" type="submit" name="rFiben" value="Afficher"/>
</form>
</div>
<br/>
<h2>Recherche FIBEN / FCC identifiants multiples</h2>
<div class="paragraph">
<form name="rFibenM" method="post" action="<?=$this->url(array('controller'=>'bdf', 'action'=>'module'))?>">
<input type="hidden" name="type" value="m"/>
<input type="hidden" name="siret" value="<?=$siret?>"/>
<div id="identifiant">
<label>Identifiant</label>
<input type="text" name="identifiant[]" value="<?=$req?>" />
<a href="#" id="addIdentifiant">Ajouter</a>
</div>
<div id="modules" class="clearfix">
<label>Module</label>
<select name="bdfmodule">
<?php
foreach ($this->listModulesFiben as $id => $module) {
if (isset($module['liste']) == false || $module['liste'] !== false) {
echo '<option value="'.$id.'">'.$module['titre'].'</option>';
}
}
foreach ($this->listModulesFcc as $id => $module) {
if (isset($module['liste']) == false || $module['liste'] !== false) {
echo '<option value="'.$id.'">'.$module['titre'].'</option>';
}
}
?>
</select>
</div>
<input class="button" type="submit" name="rFiben" value="Afficher"/>
</form>
</div>
<br/>
<h2>Recherche FICP</h2>
<div class="paragraph">
<form name="rFicp" method="post" action="<?=$this->url(array('controller'=>'bdf', 'action'=>'module'))?>">
<input type="hidden" name="bdfmodule" value="G"/>
<input type="hidden" name="service" value="ficp"/>
<label>Clé BDF</label>
<input type="text" name="req"/>
<input class="button" type="submit" name="rFicp" value="Ok"/>
</form>
</div>
</div>
<script>
$(document).ready(function(){
$('#listeModulesD').click(function(){
var position = $(this).position();
$('#listeModules').css('top', position.top);
$('#listeModules').css('left', position.left-200);
var display = $('#listeModules').css('display');
if(display=='none') $('#listeModules').css('display', 'block');
else $('#listeModules').css('display', 'none');
});
$('#closelisteModules').click(function(){
$('#listeModules').css('display', 'none');
$('#modules > #selected').html('');
$('input[name="module[]"]').each(function(){
if ($(this).prop('checked')){
$('#modules > #selected').append('<br/>'+$(this).parent().text());
}
});
});
$('#addIdentifiant').click(function(){
$('form[name=rFibenM] > #identifiant').append('<br/><label>Identifiant</label> <input type="text" name="identifiant[]" />');
});
});
</script>

View File

@ -0,0 +1,8 @@
<h1 class="titre"><?=$this->titre?></h1>
<div class="paragraph">
<?php if ( !empty($this->html) ) {?>
<?=$this->html?>
<?php } else {?>
ERREUR
<?php }?>
</div>

View File

@ -0,0 +1,42 @@
<style>
#identifiant {
float:left;
width:40%;
}
#modules {
float:left;
width:40%;
}
#listeModules {
position:absolute;
width:500px;
display:none;
background-color:#FBF7AA;
border:1px solid #000000;
z-index:3;
}
#closelisteModules {
float:right;
padding:0.4em 1em;
}
#listeModules ul {
width:100%;
margin-left:-10px;
list-style-type:none;
}
#listeModules ul li {
display:inline;
float:left;
width:50%;
}
</style>
<div id="center">
<?php foreach ( $this->content as $item ) {?>
<?=$this->partial('bdf/module-content.phtml', array('titre'=>$item['titre'],'html'=>$item['html']))?>
<?php }?>
</div>

View File

@ -0,0 +1,5 @@
<div class="paragraph">
<p class="confidentiel">
<?=$this->cgu?>
</p>
</div>

View File

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

View File

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

View File

@ -0,0 +1,10 @@
<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>

View File

@ -0,0 +1,132 @@
<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>

View File

@ -0,0 +1,109 @@
<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 . '&nbsp;' . $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>

View File

@ -0,0 +1,16 @@
<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>

View File

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

View File

@ -0,0 +1,10 @@
<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>

View File

@ -0,0 +1,45 @@
<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);
});
}
$(document).ready(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>

View File

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

View File

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

View File

@ -0,0 +1 @@
<?php

View File

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

View File

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

View File

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

View File

@ -0,0 +1 @@
<?php

View File

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

View File

@ -0,0 +1,310 @@
<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&eacute; (NOM/Pr&eacute;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&eacute;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&eacute;ros de t&eacute;l&eacute;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&#039;acc&egrave;s</div>
<div class="infoData">
<?php foreach($this->wscategory as $category) {?>
<fieldset>
<legend><?=$category->desc?></legend>
<?php
foreach($category->droits->item as $droit) {
$droit = strtolower($droit);
if (in_array($droit, $this->droitsClients)) {
$check = '';
if ( count($this->droits)>0 && in_array($droit, $this->droits) ) {
$check = ' checked';
}
?>
<input type="checkbox" name="frmOptions[droits][]" value="<?=$droit?>"<?=$check?> class="noborder"/>
<?=$this->droitsLib[strtoupper($droit)]?><br/>
<?php } ?>
<?php } ?>
</fieldset>
<?php }?>
</div>
<div class="infoTitle StyleInfoLib">Pr&eacute;f&eacute;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>

View File

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

View File

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

View File

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

View File

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

View File

@ -0,0 +1,177 @@
<?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">&nbsp;</td>
<td width="200" class="StyleInfoLib"><?=$this->translate("Num&eacute;ro identifiant Siren")?></td>
<td width="350" class="StyleInfoData"><?=$this->SirenTexte($this->siren)?></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib"><?=$this->translate("Dénomination Sociale")?></td>
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
</tr>
<?php if ($this->surveillance) {?>
<tr>
<td width="30">&nbsp;</td>
<td colspan="2" width="550" class="StyleInfoData">
<?=$this->action('infos','surveillance', null, array(
'source' => 'dirigeants',
'siret' => $this->siret
))?>
</td>
</tr>
<?php }?>
<?php if( $this->dirigeantsop ){ ?>
<tr>
<td width="30">&nbsp;</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) != '') { ?>&nbsp;(<?=$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?> &nbsp;(<?=$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&eacute;e n'est pr&eacute;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 }?>

View File

@ -0,0 +1,178 @@
<?php if (empty($this->AutrePage)){?>
<div id="center">
<?php }?>
<?php if (empty($this->AutrePage)){?>
<h1><?=$this->translate("DIRIGEANTS OP&Eacute;RATIONNELS")?></h1>
<div class="paragraph">
<table class="identite">
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib"><?=$this->translate("Num&eacute;ro identifiant Siren")?></td>
<td width="350" class="StyleInfoData"><?=$this->SirenTexte($this->siren)?></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib"><?=$this->translate("Dénomination Sociale")?></td>
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
</tr>
<?php if ($this->surveillance) {?>
<tr>
<td width="30">&nbsp;</td>
<td colspan="2" width="550" class="StyleInfoData">
<?=$this->action('infos','surveillance', null, array(
'source' => 'dirigeants',
'siret' => $this->siret
))?>
</td>
</tr>
<?php }?>
</table>
</div>
<?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>
&nbsp;
<?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&eacute;e n'est pr&eacute;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>

View File

@ -0,0 +1,37 @@
<!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>

View File

@ -0,0 +1,12 @@
<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>

View File

@ -0,0 +1,11 @@
<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>

View File

@ -0,0 +1,16 @@
<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>

View File

@ -0,0 +1,253 @@
<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&eacute;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&eacute;ro identifiant Siret</div>
<div class="infoData"><?=$this->SiretTexte($this->Etab->Siret)?></div>
<div class="infoTitle StyleInfoLib">Num&eacute;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']?>"/> &euro;</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']?>"/> &euro;</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']?>"/> &euro;</div>
</div>
<div class="fieldgrp">
<label class="StyleInfoLib">Encours demandé</label>
<div class="field"><input type="text" name="InfoEnq[EncoursDemande]" value="<?=$this->InfoEnq['EncoursDemande']?>"/> &euro;</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>

View File

@ -0,0 +1,67 @@
<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>

View File

@ -0,0 +1,366 @@
<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&Ecirc;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&eacute;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&eacute;ro identifiant Siret</div>
<div class="infoData"><?=$this->SiretTexte($this->Etab->Siret)?></div>
<div class="infoTitle StyleInfoLib">Num&eacute;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']?>"/> &euro;</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&euro; )
<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&euro; )
<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']?>" /> &euro;</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']?>"/> &euro;</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']?>"/> &euro;</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>

View File

@ -0,0 +1,292 @@
<?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">&nbsp;</td>
<td width="200" class="StyleInfoLib">Num&eacute;ro identifiant Siren</td>
<td width="350" class="StyleInfoData"><?=$this->SirenTexte($this->indiscore->Siren)?></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Num&eacute;ro identifiant Siret du si&egrave;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">&nbsp;</td>
<td width="200" class="StyleInfoLib">Num&eacute;ro R.C.</td>
<td width="350" class="StyleInfoData"><?=$this->indiscore->NumRC?></td>
</tr>
<?php } ?>
<tr><td colspan="3">&nbsp;</td></tr>
<?php if ( $this->edition && empty($this->AutrePage) ) {?>
<tr>
<td width="30">&nbsp;</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">&nbsp;</td>
<td width="200" class="StyleInfoLib">&nbsp;</td>
<td width="350" class="StyleInfoData">
<a href=<?=$this->url(array('controller'=>'evaluation', 'action'=>'scoreshisto', 'siret' => $this->siret)); ?>>
<?=$this->translate("Consulter l'historique des IndiScore");?></a>
</td>
</tr>
</table>
</div>
<?php }?>
<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">&nbsp;</td>
<td width="200" class="StyleInfoLib"><?=$titre?></td>
<td width="350" class="StyleInfoData"><?=$lib?></td>
</tr>
<?php } ?>
<tr>
<td width="30"></td>
<td width="200" class="StyleInfoLib">Forme juridique</td>
<td width="350" class="StyleInfoData">
<?=$this->indiscore->FJ_lib?>
</td>
</tr>
<tr>
<td width="30"></td>
<td width="200" class="StyleInfoLib">Date de création de l'entreprise</td>
<td width="350" class="StyleInfoData">
<?php $date = new Zend_Date($this->indiscore->DateCreaEn, 'yyyyMMdd');?>
<?=$date->toString('dd/MM/yyyy')?>
</td>
</tr>
<tr>
<td width="30"></td>
<td width="200" class="StyleInfoLib">Adresse</td>
<td width="350" class="StyleInfoData">
<?=$this->indiscore->Adresse?><br/>
<?php if ($this->indiscore->Adresse2<>'') echo $this->indiscore->Adresse2.'<br/>';?>
<?=$this->indiscore->CP?>&nbsp;<?=$this->indiscore->Ville?>
</td>
</tr>
<tr>
<td width="30"></td>
<td width="200" class="StyleInfoLib">Téléphone</td>
<td width="350" class="StyleInfoData">
<?=$this->indiscore->Tel?>
</td>
</tr>
<?php if ( $this->surveillance && empty($this->AutrePage) ) {?>
<tr>
<td width="30"></td>
<td colspan="2">
<?=$this->action('infos','surveillance', null, array(
'source' => 'score',
'siret' => $this->siret
));?>
</td>
</tr>
<?php }?>
<?php if ( $this->aviscredit && empty($this->AutrePage) ) {?>
<tr>
<td width="30"></td>
<td colspan="2">
<a href="<?=$this->url(array('controller'=>'evaluation', 'action'=>'aviscredit', 'siret' => $this->siret))?>">
Saisir votre demande d'avis credit personnalisé</a>
</td>
</tr>
<?php }?>
</table>
</div>
<h2>Évaluation</h2>
<div class="paragraph">
<table>
<tr>
<td width="30">&nbsp;</td>
<td width="550" colspan="2" class="StyleInfoData">
L'&eacute;valuation indiScore&copy; est en partie basée sur les points notables suivants :<br/>
<h3><u>Conformit&eacute; l&eacute;gale :</u></h3>
<div class="stats gradiant_pic">
<ul>
<li>
<i><?=$this->indiscore->AnalyseConfor; ?></i>
<div class="blocdegrade clearfix">
<span class="textdegrade">Conformit&eacute;&nbsp;<? 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&nbsp;<? 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&eacute; :</u></h3>
<div class="stats gradiant_pic">
<ul>
<li>
<i>L'analyse de la solvabilit&eacute; est <?=$this->indiscore->AnalyseSolvabilite?></i>
<div class="blocdegrade clearfix">
<span class="textdegrade">Solvabilit&eacute;&nbsp;<? 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">&nbsp;</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&egrave;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&eacute; de d&eacute;faillance associ&eacute;e &agrave; cette note avoisine les '. number_format($this->indiscore->tabInfosNotations->ProbabiliteDefaut,3,',',' ') .' %';
else
echo 'Cette entreprise est d&eacute;faillante ou sur le point de le devenir.';
//[EquivalenceBDF]
?>
</td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="550" colspan="2" class="StyleInfoData">
<i>Pour information, les méthodes standards donnent : Conan &amp; Holder = <b><?php echo $this->indiscore->scores->ConanH;?></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">&nbsp;</td>
<td width="550" colspan="2" class="StyleInfoData">
La situation financi&egrave;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">&nbsp;</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">&nbsp;</td>
<td width="550" colspan="2" class="StyleInfoData">
<span class="notvisible">
Compte tenu des informations disponibles aupr&egrave;s des sources officielles
Scores et D&eacute;cisions pr&eacute;sente la conclusion suivante :</span><br/>
<?php
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 style="font-size:13px"><b>LE SCORE EST DE <?php echo $indiscore;?> SUR <?php echo $maxIndiscore;?> POINTS</b></h3>
<?php
if($this->indiscore->infoEncours != '' && !is_numeric($this->indiscore->encours) && $this->indiscore->encours == 'N/A'){ ?>
<h3><?php echo $this->indiscore->infoEncours;?></h3>
<?php
}else{ ?>
<?php
if ($indiscore!=0) { ?>
<i>La tendance de la note est <?php echo $this->indiscore->TendanceIndiscore;?></i>
<h3 style="font-size:13px"><b>L'ENCOURS MAXIMUM CONSEILL&Eacute; EST DE <?php echo round($this->indiscore->encours / 1000);?> K&euro;</b></h3>
<?php } ?>
<h3><?php echo $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 }?>

View File

@ -0,0 +1,151 @@
<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 &amp; 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) &amp; 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
Zend_Registry::get('firebug')->info($this->tabResult);
?>
<?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[3]['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&eacute;dure collective</b>
</font>
</a>
<?php if($this->dateRadiation != ''):?>
<br/>Radié du RCS le <?php echo $this->dateRadiation;?>
<?php endif;?>
<?php elseif ($this->SituationJuridique == 'RR'):?>
Radié du RCS <?php if($this->dateRadiation != ''):?>
le <?php echo $this->dateRadiation;?>
<?php endif;?>
<?php elseif ($this->SituationJuridique == 'RP'):?>
Radiation publiée <?php if($this->dateRadiation != ''):?>
le <?php echo $this->dateRadiation;?>
<?php endif;?>
<?php else:?>
Aucune procédure enregistrée à ce jour par nos services.
<?php endif;?>
</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 endforeach;?>
<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>

View File

@ -0,0 +1,50 @@
<?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>

View File

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

View File

@ -0,0 +1,12 @@
<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>

View File

@ -0,0 +1,146 @@
<div id="center">
<h1><?=$this->translate("HISTORIQUE").' '.strtoupper($this->types[$this->type]);?></h1>
<div class="paragraph">
<table>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib"><?=$this->translate("Numéro identifiant Siren")?></td>
<td width="350" class="StyleInfoData"><?=$this->SirenTexte($this->siren)?></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib"><?=$this->translate("Dénomination sociale")?></td>
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
</tr>
</table>
</div>
<h2><?=$this->translate("Historique des scores")?></h2>
<div class="paragraph" style="text-align:right;">
<select name="type">
<?php foreach($this->types as $key=>$val) {?>
<?php $selected = ($key == $this->type)?'selected':'';?>
<option value="<?=$this->url(array('siret'=>$this->siret, 'id'=>$this->id, 'type'=>$key))?>" <?=$selected;?>><?=$val?></option>
<?php }?>
</select>
<script>
$('select[name=type]').change(function(e){
window.location = $(this).val();
});
</script>
</div>
<div class="paragraph">
<p>
<?php switch ( $this->type ) {
case '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 lenvironnement économique
des entreprises (secteurs d'activité, groupe, paiements) complète l'analyse de l'indiscore. Un indiscore entre 0 et
35/100 indiquera un risque élevé, entre 35 et 55/100 un risque moyen et un indiscore compris entre 55 et 100/100
un risque faible. Un avis de crédit fournisseur/client est donné, jusqu'à concurrence de 500 K€.
<?php break;
case 'scoreDir':?>
Évaluation de l'équipe dirigeante en place. Système S&D
<?php break;
case '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 break;
case 'scoreZ':?>
Le score Z de la Banque de France permet de déceler les défaillances dentreprises. 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 break;
case '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 deuros. 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 break;
case 'scoreAfdcc1':?>
1er indicateur synthétique de vulnérabilité établi par l'Association Françaises des Crédits managers et Conseils.
<?php break;
case 'scoreAfdcc2':?>
Le score sectoriel AFDCC2 (1999) sapplique aux sociétés réalisant un chiffre daffaires 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 break;
case '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 break;
case 'scoreCCF':?>
Évaluation à 3 ans de la probabilité de défaillance d'une entreprise.
<?php break;
}?>
</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&euro;)</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>
$(document).ready(function(){
$('#synthese').tablesorter({
dateFormat: 'uk',
headers: {
0: {sorter: 'shortDate'},
3: {sorter: false},
}
});
});
</script>
<div class="paragraph">
<?php if ( $this->graph ) {?>
<img src="/fichier/imgcache/<?=$this->graph?>" usemap="#graphMap">
<map name="graphMap">
<?=$this->graphMap;?>
</map>
<?php } else {?>
<b><?=$this->translate("Impossible de générer le graphique")?></b>
<?php }?>
</div>
<?php } else {?>
<div class="paragraph">
<?=$this->translate("Aucune information sur l'historique disponible.")?>
</div>
<?php }?>
<?=$this->render('cgu.phtml', $this->cgu)?>
</div>

View File

@ -0,0 +1,58 @@
<div id="center">
<h1 class="titre">&Eacute;VALUATION</h1>
<table>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Num&eacute;ro identifiant Siren</td>
<td width="350" class="StyleInfoData"><?php echo $this->SirenTexte($this->siren);?></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
<td width="350" class="StyleInfoData"><?php echo $this->raisonSociale?></td>
</tr>
<tr>
</table>
<h2>Scoring partenaire : Creditsafe&reg;</h2>
<table>
<tr>
<td colspan="3">
<table cellspacing="0">
<tr>
<td width="20">&nbsp;</td>
<td width="10" bgcolor="#bebebe">&nbsp;</td>
<td width="200" bgcolor="#bebebe"><font size="2"><b>Note &agrave; 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">&nbsp;</td>
<td width="10" bgcolor="#e7e7e7">&nbsp;</td>
<td width="200" bgcolor="#e7e7e7"><font size="2"><b>Limite &agrave; ce jour [&euro;]</b></font></td>
<td width="350" colspan="2" bgcolor="#e7e7e7"><font size="2"><?php echo $this->strCreditlimit;?></font></td>
</tr>
<tr>
<td width="20">&nbsp;</td>
<td width="10" bgcolor="#bebebe">&nbsp;</td>
<td width="200" bgcolor="#bebebe"><font size="2"><b>Informations compl&eacute;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">&nbsp;</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>

View File

@ -0,0 +1,11 @@
<div id="center">
<h1></h1>
<div class="paragraph">
<?=$this->message?>
<br/>
<a href="<?=$this->url(array('controller'=>'evaluation', 'action'=>'scoring'))?>">Retour</a>
</div>
</div>

View File

@ -0,0 +1,23 @@
<?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>

View File

@ -0,0 +1,53 @@
<div id="center">
<h1 class="titre">RELATIONS BANCAIRES</h1>
<div class="paragraph">
<table class="identite">
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Num&eacute;ro identifiant Siren</td>
<td width="350" class="StyleInfoData"><?=$this->SirenTexte($this->siren)?></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
</tr>
</table>
</div>
<h2>Liste des relations bancaires</h2>
<div class="paragraph">
<?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" style="text-decoration:underline;"><?=$relation->libBanque?></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>

View File

@ -0,0 +1,214 @@
<?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">&nbsp;</td>
<td width="200" class="StyleInfoLib">
Num&eacute;ro identifiant Siren
</td>
<td width="350" class="StyleInfoData">
<?php echo $this->SirenTexte($this->siren);?>
</td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
<td width="350" class="StyleInfoData"><?php echo $this->raisonSociale;?></td>
</tr>
<?php if (isset($this->tabResultActif) && isset($this->tabResultPassif) && isset($this->tabResultSig)){?>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Type de bilans</td>
<td width="350" class="StyleInfoData">
<?php if ($this->nbBilanC==0){?>
Réel normal ou Simplifié
<?php } elseif ($this->nbBilanN==0){?>
Consolidé
<?php } else {?>
<form>
<select name="typeBilan">
<option value="N"<?=($this->typeBilan=='N')? ' selected' : '';?>>Réel normal ou Simplifié</option>
<option value="C"<?=($this->typeBilan=='C')? ' selected' : '';?>>Consolidé</option>
</select>
</form>
<?php }?>
</td>
</tr>
<?php }?>
</table>
<?php if ( empty($this->AutrePage) ) {?>
<div id="liasse-check-result" class="ui-state-highlight ui-corner-all" style="margin-top: 5px;">
<p><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
<a title="Cliquez ici pour vérifier l'intégration des éléments financiers"
href="<?=$this->url(array('controller'=>'finance','action'=>'liasseinfos','siren'=>$this->siren), '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">&nbsp;</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">&nbsp;</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édiaire de Gestion</h2>
<div class="paragraph">
<table class="bilans">
<thead>
<tr>
<th colspan="2">SOLDES INTERMEDIAIRE 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 }?>

View File

@ -0,0 +1,286 @@
<div id="center">
<h1 class="titre">INFORMATIONS BOURSI&Egrave;RES</h1>
<div class="paragraph">
<table id="identite">
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">
Num&eacute;ro identifiant Siren
</td>
<td width="350" class="StyleInfoData">
<?=$this->SirenTexte($this->siren)?>
</td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
</tr>
</table>
</div>
<?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">&nbsp;</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 '&nbsp;&nbsp;<b>(ancien code Sicovam : </b>'.$this->InfosBourse->CodeSicovam.'<b>)</b>';
if ($this->edition) {
echo '&nbsp;<a href="'.$this->edition.'">(Edition)</a>';
}
?>
</td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Code Mn&eacute;mo</td>
<td width="350" class="StyleInfoData"><?=$this->InfosBourse->CodeMnemo?></td>
</tr>
<?php if( !empty($this->InfosBourse->CodeBloomberg) ){ ?>
<tr>
<td width="30">&nbsp;</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">&nbsp;</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">&nbsp;</td>
<td width="200" class="StyleInfoLib">Code Ric</td>
<td width="350" class="StyleInfoData"><?=$this->InfosBourse->CodeRic?></td>
</tr>
<?php }?>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Place de cotation</td>
<td width="350" class="StyleInfoData"><?=$this->InfosBourse->placeCotation?></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">March&eacute;</td>
<td width="350" class="StyleInfoData"><?=$this->InfosBourse->Marche?></td>
</tr>
<tr>
<td width="30">&nbsp;</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">&nbsp;</td>
<td width="200" class="StyleInfoLib">&Eacute;ligible SRD / PEA</td>
<td width="350" class="StyleInfoData"><?=$srd?> / <?=$pea?></td>
</tr>
<?php
if ($this->urlImg!='') {
?>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Logo</td>
<td width="350" class="StyleInfoData"><?php echo $this->urlImg; ?></td>
</tr>
<?php } ?>
</table>
</div>
<h2>Coordonn&eacute;es</h2>
<div class="paragraph">
<table>
<tr>
<td width="30">&nbsp;</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">&nbsp;</td>
<td width="200" class="StyleInfoLib">Adresse</td>
<td width="350" class="StyleInfoData"><?=$this->InfosBourse->Adresse?></td>
</tr>
<tr>
<td width="30">&nbsp;</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">&nbsp;</td>
<td width="200" class="StyleInfoLib">Date derni&egrave;re assembl&eacute;e g&eacute;n&eacute;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">&nbsp;</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">&nbsp;</td>
<td width="200" class="StyleInfoLib">T&eacute;l&eacute;phone</td>
<td width="350" class="StyleInfoData">
<?php
if (strlen(trim($this->InfosBourse->Tel))>5) echo $this->InfosBourse->Tel.'&nbsp;&nbsp;&nbsp;&nbsp;';
if (strlen(trim($this->InfosBourse->Tel2))>5) echo $this->InfosBourse->Tel2;
?>
</td>
</tr>
<tr>
<td width="30">&nbsp;</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.'&nbsp;&nbsp;&nbsp;&nbsp;';
if (strlen(trim($this->InfosBourse->Fax2))>5) echo $this->InfosBourse->Fax2;
?>
</td>
</tr>
<?php if ($siteWeb<>'') { ?>
<tr>
<td width="30">&nbsp;</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">&nbsp;</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&eacute;(s)</h2>
<div class="paragraph">
<table>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Activit&eacute;</td>
<td width="350" class="StyleInfoData"><?=$this->InfosBourse->Activite?></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Secteur</td>
<td width="350" class="StyleInfoData"><?=$this->InfosBourse->Secteur?></td>
</tr>
<tr>
<td width="30">&nbsp;</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">&nbsp;</td>
<td width="200" class="StyleInfoLib">Derni&egrave;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">&nbsp;</td>
<td width="200" class="StyleInfoLib">Clôture</td>
<td width="350" class="StyleInfoData"><?=number_format($this->InfosBourse->derCoursCloture,2,',', ' ')?> &euro;</td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Ouverture</td>
<td width="350" class="StyleInfoData"><?=number_format($this->InfosBourse->derCoursOuverture,2,',', ' ')?> &euro;</td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Plus haut</td>
<td width="350" class="StyleInfoData"><?=number_format($this->InfosBourse->derCoursPlusHaut,2,',', ' ')?> &euro;</td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Plus Bas</td>
<td width="350" class="StyleInfoData"><?=number_format($this->InfosBourse->derCoursPlusBas,2,',', ' ')?> &euro;</td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Volume &eacute;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">&nbsp;</td>
<td width="200" class="StyleInfoLib">Capitalisation</td>
<td width="350" class="StyleInfoData"><?=number_format($this->InfosBourse->capitalisation,2,',', ' ')?> &euro;</td>
</tr>
<tr><td colspan="3">&nbsp;</td></tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Minimum historique</td>
<td width="350" class="StyleInfoData"><?=number_format($this->InfosBourse->coursMin,2,',', ' ')?> &euro;</td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Maximum historique</td>
<td width="350" class="StyleInfoData"><?=number_format($this->InfosBourse->coursMax,2,',', ' ')?> &euro;</td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Cours moyen</td>
<td width="350" class="StyleInfoData"><?=number_format($this->InfosBourse->coursMoy,2,',', ' ')?> &euro;</td>
</tr>
</table>
</div>
<?php
} else {
?>
<div class="paragraph">
<table>
<tr>
<td width="580" class="StyleInfoLib" colspan="3">&nbsp;</td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="550" class="StyleInfoLib" colspan="2">
Soci&eacute;t&eacute; non c&ocirc;t&eacute;e en bourse &agrave; ce jour.
</td>
</tr>
</table>
</div>
<?php } ?>
<?php echo $this->render('cgu.phtml', $this->cgu);?>
</div>

View File

@ -0,0 +1,91 @@
<div id="center">
<h1 class="titre">Flux de Trésorerie <span style="color:red;">(beta)</span></h1>
<table>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Num&eacute;ro identifiant Siren</td>
<td width="340" class="StyleInfoData"><?=$this->SirenTexte($this->siret)?></td>
</tr>
<tr>
<td width="30">&nbsp;</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">&nbsp;</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">&nbsp;</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="/fichier/imgcache/<?=$this->graph?>" />
</div>
<?php }?>
<?=$this->render('cgu.phtml', $this->cgu);?>
</div>
<script>
$(document).ready(function(){
$('input[name=typeBilan]').click(function(e){
window.location.href = $(this).val();
});
});
</script>

View File

@ -0,0 +1,185 @@
<div id="center">
<h1>ELEMENTS FINANCIERS - BILANS</h1>
<div class="paragraph">
<table class="identite">
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Num&eacute;ro identifiant Siren</td>
<td width="350" class="StyleInfoData"><?=$this->SirenTexte($this->siren)?></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
</tr>
<?php if ( $this->haveLiasse ) {?>
<form method="post" action="<?=$this->url(array('controller'=>'finance','action'=>'liasse','siret'=>$this->siret,'id'=>$this->id))?>">
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Valeurs exprimées en</td>
<td width="350" class="StyleInfoData">
<select name="unit">
<?php foreach ($this->unit as $id => $titre):?>
<option value="<?=$id?>"<?=($id==$this->unite)? ' selected': '';?>><?=$titre?></option>
<?php endforeach;?>
</select>
</td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Millesime</td>
<td width="350" class="StyleInfoData">
<select name="date">
<?php foreach ($this->type as $champType => $name) {?>
<?php foreach ($this->liste[$champType] as $element) {?>
<option value="<?=$element.':'.$champType?>"<?=($this->date == $element && $champType == $this->champType)? ' selected': '';?>>
<?php $date = new Zend_Date($element, 'yyyyMMdd'); ?>
<?=$date->toString('dd/MM/yyyy').' '.$name;?>
</option>
<?php }?>
<?php }?>
</select>
<input type="submit" value="OK" />
</td>
</tr>
</form>
<?php }?>
<?php if ($this->edition) {?>
<tr>
<td width="30">&nbsp;</td>
<td colspan="2">
<?php if ( $this->haveLiasse ) {?>
<a href="<?=$this->url(array('controller'=>'saisie', 'action'=>'liasse', 'siret'=>$this->siren, 'selection'=>$this->date.':'.$this->champType))?>">
Corriger le bilan sélectionné</a><br/> ou <?php }?>
Saisir une nouvelle liasse au format
<a href="<?=$this->url(array('controller'=>'saisie', 'action'=>'liasse', 'siret'=>$this->siren, 'selection'=>'NEW:N'))?>">Normal (2050)</a>,
<a href="<?=$this->url(array('controller'=>'saisie', 'action'=>'liasse', 'siret'=>$this->siren, 'selection'=>'NEW:C'))?>">Consolidé (2050)</a>,
<a href="<?=$this->url(array('controller'=>'saisie', 'action'=>'liasse', 'siret'=>$this->siren, 'selection'=>'NEW:S'))?>">Simplifié (2033)</a>
</td>
</tr>
<?php }?>
<?php if ($this->exportxls) {?>
<tr>
<td width="30">&nbsp;</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 ($this->saisiebilan) {?>
<tr>
<td width="30">&nbsp;</td>
<td colspan="2" width="550" class="StyleInfoData">
<a id="bilanClient" href="<?=$this->url(array(
'controller'=>'finance',
'action'=>'saisiebilan',
'siren'=>$this->siren
), 'default', true)?>" title="Envoi du bilan">
Vous possèdez un bilan plus récent
</a>
</td>
</tr>
<?php }?>
<?php if ($this->surveillance) {?>
<tr>
<td width="30">&nbsp;</td>
<td colspan="2" width="550" class="StyleInfoData">
<?=$this->action('infos','surveillance', null, array(
'source' => 'bilans',
'siret' => $this->siret
))?>
</td>
</tr>
<?php }?>
<?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>
<?php if ( empty($this->AutrePage) && $this->haveLiasse) {?>
<div id="liasse-check-result" class="ui-state-highlight ui-corner-all" style="margin-top: 5px;">
<p><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
<a title="Cliquez ici pour vérifier l'intégration des éléments financiers"
href="<?=$this->url(array('controller'=>'finance','action'=>'liasseinfos','siren'=>$this->siren), 'default', true)?>"
id="liasse-check">Vérifier la disponibilité des derniers états financiers au Greffe.</a></p>
</div>
<?php }?>
</div>
<div class="paragraph">
<?php if(empty($this->date)) {?>
<table>
<tr>
<td width="30">&nbsp;</td>
<td colspan="2" class="StyleInfoLib" width="200">Aucun bilan disponible.</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 echo $this->render('cgu.phtml', $this->cgu);?>
</div>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,79 @@
<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>

View File

@ -0,0 +1,114 @@
<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>

View File

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

View File

@ -0,0 +1,5 @@
<?php if (!empty($this->file)) { ?>
<a href="/fichier/liasse/<?=$this->file?>" target="_blank">Télécharger le fichier excel.</a>
<?php } else { ?>
Erreur lors de la construction du fichier.
<?php }?>

View File

@ -0,0 +1,161 @@
<?php if ( empty($this->AutrePage) ) {?>
<div id="center">
<?php }?>
<?php if ( empty($this->AutrePage) ) {?>
<h1>RATIOS</h1>
<div class="paragraph">
<table class="identite">
<tr>
<td width="30"></td>
<td class="StyleInfoLib" width="200">Numéro identifiant Siren</td>
<td class="StyleInfoData" width="340"><?=$this->SirenTexte($this->siret);?></td>
</tr>
<tr>
<td width="30"></td>
<td class="StyleInfoLib" width="200">Dénomination Sociale</td>
<td class="StyleInfoData" width="340"><?=$this->raisonSociale;?></td>
</tr>
<tr>
<td width="30"></td>
<td class="StyleInfoLib" width="200">Secteur d'activité </td>
<td class="StyleInfoData" width="340"><?=$this->naf?> - <?=$this->nafLib?></td>
</tr>
<?php if ( isset($this->tabResult) ) {?>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Type de bilans</td>
<td width="350" class="StyleInfoData">
<?php if ($this->nbBilanC==0){?>
Réel normal ou Simplifié
<?php } elseif ($this->nbBilanN==0){?>
Consolidé
<?php } else {?>
<form name="selectBilan">
<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>
<tr>
<td width="30"></td>
<td width="200" class="StyleInfoLib">Millésime</td>
<td width="340" class="StyleInfoData">
<form>
<input type="hidden" name="typeBilan" value="<?=$this->typeBilan?>" />
<select name="mil">
<?php foreach ($this->annees as $annee => $value){?>
<option value="<?=$annee?>"<?=($this->mil==$annee) ? ' selected' : '';?>><?=$value?></option>
<?php }?>
</select>
</form>
</td>
</tr>
<tr>
<td width="30"></td>
<td class="StyleInfoLib" width="200">Durée du bilan</td>
<td class="StyleInfoData" width="340"><?=$this->duree?> Mois</td>
</tr>
<?php } else {?>
<tr>
<td width="30">&nbsp;</td>
<td colspan="2" class="StyleInfoLib" width="200">Aucun bilan disponible.</td>
<td class="StyleInfoData" width="340"></td>
</tr>
<?php }?>
</table>
<?php if ( empty($this->AutrePage) && isset($this->tabResult) ) {?>
<div id="liasse-check-result" class="ui-state-highlight ui-corner-all" style="margin-top: 5px;">
<p><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
<a title="Cliquez ici pour vérifier l'intégration des éléments financiers"
href="<?=$this->url(array('controller'=>'finance','action'=>'liasseinfos','siren'=>$this->siren), 'default', true)?>"
id="liasse-check">Vérifier la disponibilité des derniers états financiers au Greffe.</a></p>
</div>
<?php }?>
</div>
<?php }?>
<div class="paragraph">
<?php if(!isset($this->tabResult)){?>
<?php } else {?>
<table id="ratios" style="border-collapse:collapse">
<tbody>
<?php foreach ($this->tabResult as $item) { ?>
<?php if (isset($item['ratio'])) { ?>
<tr>
<td>
<a class="tooltip" title="<?=$item['comment']?>">
<?=$item['titre']?><br/><?=$item['stitre']?></a>
</td>
<td class="right"><?=$item['entrep']?></td>
<td class="right"><?=$item['secteur']?></td>
<td class="position">
<a class="rTip"
href=""
rel="<?=$this->url(array(
'controller'=>'finance',
'action'=>'ratiosgraph',
'siret' => $this->siret,
'id' => $this->id,
'ratio' => $item['ratio']
))?>" name="<?=$item['titre']?>">
<?=$item['position']?>
</a>
</td>
</tr>
<?php } else { ?>
<tr class="subhead">
<td class="center italique"><?=$item['titre']?></td>
<td>Entreprise</td>
<td>Secteur</td>
<td>Position</td>
</tr>
<?php } ?>
<?php
/*
} else if ($ratio == $item['ratio']) {
$row .= '<tr class="subhead">'."\n".
'<td class="center italique">'.
$tabRatio[$item['parent']]['titre'].'</td>'."\n".
'<td>Entreprise</td>'."\n".
'<td>Secteur</td>'."\n".
'<td>Position</td>'."\n".
'</tr>'."\n";
$row .= '<tr>'."\n".
'<td><a tooltip="'.
wrapComment($ratiosInfos[$item['ratio']]['commentaires']).
'">'.$item['titre'].'<br/>'.$item['stitre'].'</a></td>'."\n".
'<td class="right">'.
dRatio($bilan, $item['ratio']).'</td>'."\n".
'<td class="right">'.
dSecteur($bilan, $item['ratio']).'</td>'."\n".
'<td class="position">'."\n".
'<a href="#" name="'.$item['titre'].'">'."\n".
dPosition($bilan, $item['ratio'], $item['position'])."\n".
'</a>'."\n".
'</td>'."\n".
'</tr>'."\n";
}
*/
?>
<?php } ?>
</tbody>
</table>
<?php }?>
</div>
<?php if ( empty($this->AutrePage) ) {?>
<?=$this->render('cgu.phtml', $this->cgu)?>
</div>
<?php }?>

View File

@ -0,0 +1,7 @@
Votre référence : BS<?=$this->ref?>
<br/><br/>
Merci d'envoyer votre courrier à l'adresse suivante :<br/>
Scores & Décisions,<br/>
Service Production, BS<?=$this->ref?><br/>
19 rue de Clairefontaine,<br/>
78120 Rambouillet

View File

@ -0,0 +1,62 @@
<?php if (isset($this->upload) && $this->upload == true){?>
<br/>Résumé de la demande : <br/>
Saisie du bilan de la Société <?=$this->raisonSociale?>
clôturé le <?=$this->infos['bilanCloture']?> (<?=$this->infos['bilanDuree']?> mois)
au format <?=$this->type?>. Merci de vérifier votre fichier en cliquant sur le lien.<br/>
<a href="<?=$this->url(array('controller'=>'fichier', 'action'=>'bilanclient', 'fichier'=>$this->name))?>" target="_blank"><?=$this->name?></a> (<?=$this->size?> octets)
<br/><br/>
Si le fichier ne correspond pas ou que vous avez fait une erreur,
<a id="annule" href="<?=$this->url(array('controller'=>'finance', 'action'=>'saisiebilan', 'annule'=> 1, 'ref'=>$this->ref))?>">merci de l'annuler en cliquant ici.</a>
<script>
$('#annule').click(function(e){
e.preventDefault();
var url = $(this).attr('href');
$.post(url, null, function (data, textStatus) {
if (textStatus == 'success'){
$('#dialogbilanclient').html(data);
}
});
});
</script>
<?php } elseif (isset($this->upload) && $this->upload == false) {?>
<?=$this->errMsg?>
<?php } else {?>
Votre référence : BS<?=$this->ref?>
<br/><br/>
<style>
#progressbar { border:none; }
.ui-progressbar-value { background-image: url(/themes/default/images/finance/pbar-ani.gif); }
</style>
<form id="uploadForm" name="uploadForm" action="<?=$this->url(array('controller'=>'finance', 'action'=>'saisiebilan'))?>" method="POST" enctype="multipart/form-data">
<input type="hidden" name="siren" value="<?=$this->siren?>" />
<input type="hidden" name="ref" value="<?=$this->ref?>" />
<input type="hidden" name="MAX_FILE_SIZE" value="50000000" />
Votre fichier : <input type="file" name="fichier" />
<input type="submit" name="upload" value="Envoyer" />
</form>
<div id="progressbar"></div>
<div id="uploadOutput"></div>
<script type="text/javascript" src="/libs/form/jquery.form.min.js"/>
<script>
$('#uploadForm').ajaxForm({
beforeSubmit: function() {
$('#progressbar').progressbar({value: 100});
$('#uploadOutput').html('Envoi en cours...');
},
success: function(data) {
$('#progressbar').progressbar('destroy');
$('#uploadOutput').html(data);
}
});
$('#dialogbilanclient').dialog({ buttons: [ {
text: "Quitter",
click: function() { $(this).dialog("close"); }
} ] });
</script>
<?php }?>

View File

@ -0,0 +1,58 @@
<form id="formEnvoiBilan" name="formEnvoiBilan" method="post" action="<?=$this->url(array('controller'=>'finance', 'action'=>'saisiebilan'), 'default', true)?>">
<input type="hidden" name="siren" value="<?=$this->siren?>" />
<label>Votre email :</label>
<input type="text" name="email" size="40" value="<?=$this->email?>">
<br/><br/>
<label>Date de clôture du bilan : </label>
<input type="text" name="dateCloture" value="" size="10" maxlength="10" id="datepicker">
(JJ/MM/AAAA)
<br/><br/>
<label>Format : </label>
<input type="radio" name="format" value="N" checked> Réel normal ou simplifé
<input type="radio" name="format" value="C"> Consolidé
<br/><br/>
<label>Durée de l'exercice (en mois) : </label>
<select name="dureeExercice">
<?php
for ( $i=0; $i<23; $i++){
$select = '';
if ($i==11) $select = 'selected';
?>
<option value="<?=$i+1?>" <?=$select?>><?=$i+1?></option>
<?php
}
?>
</select>
<br/><br/>
<label>Confidentialité : </label><br/>
<input type="radio" name="confidentiel" value="0" checked>
Ce bilan n'est pas confidentiel (saisie gratuite)
<br/>
<input type="radio" name="confidentiel" value="1">
Ce bilan est confidentiel et ne doit être utilisé que pour les utilisateurs
de votre société (+5€ HT par bilan saisit)
<br/><br/>
<label>Mode d'envoi du bilan : </label><br/>
<input type="radio" name="method" value="fichier" checked>
Instantané par le site : envoi du bilan au format numérique
<br/>
<input type="radio" name="method" value="courrier">
Par courrier
<br/><br/>
<span><i>
Vous obtiendrez une référence à l'étape suivante avec au choix l'adresse du
service Production de Scores & Décisions pour un envoi postal ou la possibilité
de nous transmettre directement par Internet votre bilan au format numérique (PDF, TIFF)
</i></span>
<br/>
<span><i>
Si le bilan communiqué n'est pas conforme aux formulaires CERFA de la DGI des
frais de traitement de 10€ vous seront facturés en sus.
</i></span>
</form>
<script type="text/javascript">
$('#datepicker').datepicker( $.datepicker.regional['fr'] );
$('#datepicker').datepicker( "option", "dateFormat", 'dd/mm/yy' );
$('#datepicker').datepicker( "option", "defaultDate", '31/12/<?=date('Y')-1?>' );
</script>

View File

@ -0,0 +1,67 @@
<div id="center">
<h1 class="titre">SUBVENTIONS</h1>
<div class="paragraph">
<table class="identite">
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Num&eacute;ro identifiant Siren</td>
<td width="350" class="StyleInfoData"><?=$this->SirenTexte($this->siren)?></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
</tr>
</table>
</div>
<h2>Détail de la subvention</h2>
<div class="paragraph">
<table class="data">
<tbody>
<tr>
<td>Année</td>
<td><?=$this->Millesime?></td>
</tr>
<tr>
<td>Subvention versée à</td>
<td><?=$this->AssoNom?> (<?=$this->SirenTexte($this->AssoSiren)?>)</td>
</tr>
<tr>
<td>Budget</td>
<td><?=$this->Budget?></td>
</tr>
<tr>
<td>Subvention reçue de </td>
<td><a href="<?=$this->url(array('controller'=>'identite', 'action'=>'fiche', 'siret'=>$this->OrigineSiren), 'default', true)?>">
<?=$this->SirenTexte($this->OrigineSiren)?></a></td>
</tr>
<tr>
<td>Origine de la subvention</td>
<td><?=$this->OrigineLib?></td>
</tr>
<tr>
<td>Imputation / Programme</td>
<td><?=$this->Programme?></td>
</tr>
<tr>
<td>Montant</td>
<td nowrap><?=number_format($this->Montant, 2, ',', ' ')?> &euro;</td>
</tr>
<tr>
<td>Objet</td>
<td><?=$this->SubventionObjet?></td>
</tr>
<tr>
<td>Evaluation</td>
<td></td>
</tr>
<tr>
<td>Mission</td>
<td><?=$this->Mission?></td>
</tr>
</tbody>
</table>
</div>
</div>

View File

@ -0,0 +1,75 @@
<div id="center">
<h1 class="titre">SUBVENTIONS</h1>
<div class="paragraph">
<table class="identite">
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Num&eacute;ro identifiant Siren</td>
<td width="350" class="StyleInfoData"><?=$this->SirenTexte($this->siren)?></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
</tr>
</table>
</div>
<h2>Liste des subventions</h2>
<div class="paragraph">
<?php if ($this->msg) {?>
<?=$this->msg?>
<?php } else { ?>
<?php if (count($this->subventions)>0) {?>
<table class="data">
<thead>
<tr>
<th>Année</th>
<th>Type</th>
<th>Origine</th>
<th>Entité subventionnée</th>
<th>Programme</th>
<th>Montant</th>
</tr>
</thead>
<tbody>
<?php foreach ( $this->subventions as $item ) {?>
<tr>
<td><?=$item->Millesime?></td>
<td>
<?php if ($item->Type=='IN') {?>
Reçue
<?php } else { ?>
Versée
<?php }?>
</td>
<td><?=$item->OrigineLib?></td>
<td><?=$item->AssoNom?> (<?=$this->SirenTexte($item->AssoSiren)?>)</td>
<td><a href="<?=$this->url(array('controller'=>'finance', 'action'=>'subvention', 'subventionId'=>$item->Id, 'siret'=>$this->siret, 'id'=>$this->id), 'default', true)?>" title="Détail de la subvention">
<?=$item->Programme?></a></td>
<td nowrap><?=number_format($item->Montant, 2, ',', ' ')?> &euro;</td>
</tr>
<?php }?>
</tbody>
</table>
<?php } else {?>
Aucune subvention.
<?php }?>
<?php }?>
</div>
<div class="paragraph">
<?php if ($this->lienPagePrecedente) { ?>
<a href="<?=$this->lienPagePrecedente?>" title="Page précédente...">&lt;&lt;</a>
<?php }?>
<?php if ($this->nbPages>1) { ?>
<span>Page <?=$this->p?>/<?=$this->nbPages?></span>
<?php } ?>
<?php if ($this->lienPageSuivante) {?>
<a href="<?=$this->lienPageSuivante?>" title="Page suivante...">&gt;&gt;</a>
<?php }?>
</div>
</div>

View File

@ -0,0 +1,133 @@
<?php if ( empty($this->AutrePage) ) {?>
<div id="center">
<?php }?>
<?php if (empty($this->AutrePage)){?>
<h1>SYNTHÈSE</h1>
<div class="paragraph">
<table class="identite">
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">
Num&eacute;ro identifiant Siren
</td>
<td width="350" class="StyleInfoData">
<?=$this->SirenTexte($this->siren);?>
</td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
<td width="350" class="StyleInfoData"><?=$this->raisonSociale;?></td>
</tr>
<?php if (isset($this->tabResult)){?>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Type de bilans</td>
<td width="350" class="StyleInfoData">
<?php if ($this->nbBilanC==0){?>
Réel normal ou Simplifié
<?php } elseif ($this->nbBilanN==0){?>
Consolidé
<?php } else {?>
<form>
<select name="typeBilan">
<option value="N"<?=($this->typeBilan=='N')? ' selected' : '';?>>Réel normal ou Simplifié</option>
<option value="C"<?=($this->typeBilan=='C')? ' selected' : '';?>>Consolidé</option>
</select>
</form>
<?php }?>
</td>
</tr>
<?php }?>
</table>
<?php if ( empty($this->AutrePage) ) {?>
<div id="liasse-check-result" class="ui-state-highlight ui-corner-all" style="margin-top: 5px;">
<p><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
<a title="Cliquez ici pour vérifier l'intégration des éléments financiers"
href="<?=$this->url(array('controller'=>'finance','action'=>'liasseinfos','siren'=>$this->siren), 'default', true)?>"
id="liasse-check">Vérifier la disponibilité des derniers états financiers au Greffe.</a></p>
</div>
<?php }?>
</div>
<?php }?>
<?php if (!isset($this->tabResult)){?>
<div class="paragraph">
Aucun bilan disponible.
</div>
<?php } else {?>
<div class="paragraph">
<table id="synthese">
<thead>
<tr>
<th align="center">
<?php if (count($this->tabRatio)==1){?>
<a href="<?=$this->url(array('controller'=>'finance', 'action'=>'synthese', 'siret'=>$this->siret, 'id'=>$this->id), 'default', true)?>">
<img src="/themes/default/images/finance/char_bar.png" alt="Retour à la page complète" />
</a>
<?php }?>
</th>
<th class="date"><?=$this->tabResult[0]['dateCloture']?><br/><?=$this->tabResult[0]['duree']?></th>
<th class="date">Evolution</th>
<th class="date"><?=$this->tabResult[1]['dateCloture']?><br/><?=$this->tabResult[1]['duree']?></th>
<th class="date">Evolution</th>
<th class="date"><?=$this->tabResult[2]['dateCloture']?><br/><?=$this->tabResult[2]['duree']?></th>
<th class="date">Evolution</th>
<th>&nbsp;</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]['entrep'][$ratio]?></td>
<td class="right"><?=$this->tabResult[0]['entrepEvol'][$ratio]?></td>
<td class="right"><?=$this->tabResult[1]['entrep'][$ratio]?></td>
<td class="right"><?=$this->tabResult[1]['entrepEvol'][$ratio]?></td>
<td class="right"><?=$this->tabResult[2]['entrep'][$ratio]?></td>
<td class="right"><?=$this->tabResult[2]['entrepEvol'][$ratio]?></td>
<td>
<?php if ($this->graph): ?>
<a href="<?=$this->url(array(
'controller' => 'finance',
'action' => 'synthese',
'siret' => $this->siret,
'id' => $this->id,
'ratio' => $ratio,
))?>">
<img class="sTip" rel="<?=$this->url(array(
'controller' => 'finance',
'action' => 'synthesegraphevol',
'siret' => $this->siret,
'id' => $this->id,
'ratio' => $ratio,
))?>" title="<?=$info['titre']?>" src="/themes/default/images/finance/char_bar.png" alt="Visionner le graphique">
<?php endif;?>
</a>
</td>
</tr>
<?php }?>
</tbody>
</table>
</div>
<div class="paragraph">
<?php if ($this->graph):?>
<?=$this->action('synthesegraphcompare', 'finance', null, array('siret'=>$this->siret, 'id'=>$this->id, 'typeBilan'=>$this->typeBilan))?>
<?php else:?>
<b>Les informations sont insufisantes pour générer le graphique de synthèse.</b>
<?php endif;?>
</div>
<?php }?>
<?php if ( empty($this->AutrePage) ) {?>
<?=$this->render('cgu.phtml', $this->cgu)?>
</div>
<?php }?>

View File

@ -0,0 +1,18 @@
<!--[if lte IE 6]>
<div class="ui-state-highlight ui-corner-all">
<p><span style="float:left;margin-right:0.3em;" class="ui-icon ui-icon-info"></span>
<strong>Savez-vous que votre version d'Internet Explorer (version 6) est périmée ?</strong>
<br/><span><a style="text-decoration:none;" href="/libs/ie6/index.html" target="_blank">
Pour obtenir la meilleure expérience de navigation possible sur notre site web,
nous vous recommandons de mettre à jour votre navigateur ou d'en choisir un autre,
pour en savoir plus cliquez-ici</a></span>
</p>
</div>
<![endif]-->
<p>&copy; 2006-<?php echo date('Y')?> Scores &amp; D&eacute;cisions SAS -
<?=$this->translate("Tous droits r&eacute;serv&eacute;s")?> -
<a href="http://www.scores-decisions.com/mentions.php" target="_blank">
<?=$this->translate("Mentions l&eacute;gales")?></a> -
<img class='flag' id="fr" src="/themes/default/images/drapeaux/fr.png"/>
<img class='flag' id="en" src="/themes/default/images/drapeaux/en.png"/>
</p>

View File

@ -0,0 +1,18 @@
<div id="center">
<h2>1. Informations d'entreprise générales</h2>
<div id="break">
<?php echo $this->partial('giant/partials/rapports/InformationEntreprise.phtml', null, array('report' => $this->report, 'carte' => $this->carte)); ?>
</div>
<h2>2. Avis de crédit</h2>
<div id="break">
<?php echo $this->partial('giant/partials/rapports/AvisDeCredit.phtml', null, array('report' => $this->report, 'Type' => $this->Type)); ?>
</div>
<h2>4. Position financiére</h2>
<div id="break">
<?php echo $this->partial('giant/partials/rapports/PositionFinanciere.phtml', null, array('report' => $this->report, 'Type' => $this->Type)); ?>
</div>
<h2>7. Dirigeants</h2>
<div id="break">
<?php echo $this->partial('giant/partials/rapports/Dirigeant.phtml', null, array('report' => $this->report)); ?>
</div>
</div>

View File

@ -0,0 +1,6 @@
<div id="center">
<h2>2. Avis de crédit</h2>
<div id="break">
<?php echo $this->partial('giant/partials/rapports/AvisDeCredit.phtml', null, array('report' => $this->report, 'Type' => $this->Type)); ?>
</div>
</div>

View File

@ -0,0 +1,40 @@
<div id="center">
<h2>1. Informations d'entreprise générales</h2>
<div id="break">
<?php echo $this->partial('giant/partials/rapports/InformationEntreprise.phtml', null, array('report' => $this->report)); ?>
</div>
<a name="6"></a>
<h2>2. Avis de crédit</h2>
<div id="break">
<?php echo $this->partial('giant/partials/rapports/AvisDeCredit.phtml', null, array('report' => $this->report, 'Type' => $this->Type)); ?>
</div>
<h2>3. Compte Annuels</h2>
<div id="break">
<?php echo $this->partial('giant/partials/rapports/ComptesAnnuels.phtml', null, array('report' => $this->report, 'Type' => $this->Type)); ?>
</div>
<h2>4. Position financiére</h2>
<div id="break">
<?php echo $this->partial('giant/partials/rapports/PositionFinanciere.phtml', null, array('report' => $this->report, 'Type' => $this->Type)); ?>
</div>
<h2>5. Comportement de paiement</h2>
<div id="break">
<?php echo $this->partial('giant/partials/rapports/ComportementDePaiement.phtml', null, array('report' => $this->report, 'Type' => $this->Type)); ?>
</div>
<h2>6. Structure de l'entreprise</h2>
<div id="break">
<?php echo $this->partial('giant/partials/rapports/StructureEntreprise.phtml', null, array('report' => $this->report)); ?>
</div>
<h2>7. Dirigeants</h2>
<div id="break">
<?php echo $this->partial('giant/partials/rapports/Dirigeant.phtml', null, array('report' => $this->report)); ?>
</div>
<h2>8. Comparaison avec valeurs similaires</h2>
<div id="break">
<?php echo $this->partial('giant/partials/rapports/ComparaisonValeurs.phtml', null, array('report' => $this->report, 'Type' => $this->Type)); ?>
</div>
<h2>9. Historiques</h2>
<div id="break">
<?php echo $this->partial('giant/partials/rapports/Historiques.phtml', null, array('report' => $this->report)); ?>
</div>
<?php echo $this->partial('giant/partials/sommaire.phtml', null, array('carte' => $this->carte)); ?>
</div>

View File

@ -0,0 +1,121 @@
<div id="center">
<h1>Identite</h1>
<div class="paragraph">
<div id="identite">
<table>
<tr id="info">
<td width="30px"></td>
<td class="StyleInfoLib" width="250px">CompanyId</td>
<td class="StyleInfoData" width="300px"><?php echo $this->CompanyId;?></td>
</tr>
<tr id="info">
<td width="30px"></td>
<td class="StyleInfoLib" width="250px">CompanyRegisterNumber</td>
<td class="StyleInfoData" width="300px"><?php echo $this->CompanyRegisterNumber;?></td>
</tr>
<tr id="info">
<td width="30px"></td>
<td valign="top" class="StyleInfoLib" width="250px">RegisteredName</td>
<td class="StyleInfoData" width="300px"><?php echo $this->raisonSociale;?></td>
</tr>
<tr id="info">
<td width="30px"></td>
<td valign="top" class="StyleInfoLib" width="250px">Adresse</td>
<td class="StyleInfoData" width="300px"><?php echo $this->Adresse[0].' '.$this->Adresse[1];?><br />
<?php echo $this->Adresse[2].' '.$this->Adresse[3]?></td>
</tr>
<tr id="info">
<td width="30px"></td>
<td valign="top" class="StyleInfoLib" width="250px">Téléphone</td>
<td class="StyleInfoData" width="300px"><?php echo $this->telephone;?></td>
</tr>
</table>
</div>
</div>
<?php if(!empty($this->listeRapport)):?>
<h1>Liste des rapports</h1>
<div class="paragraph">
<div id="radio">
<table>
<?php $i=1; foreach ($this->listeRapport->DataSetOptions->DataSetOption as $rapport):?>
<tr id="info">
<td class="StyleInfoLib" style="float:left;" >
<?$t = $rapport->DataSetType->_;?>
<img style="cursor:help" title="<?php echo htmlentities($this->description->$t);?>" class="tooltip" src="/themes/default/images/giant/tag_blue.png" /><input type="radio" class="radio" id="radio<?php echo $i; ?>" value="<?php echo $rapport->DataSetType->_?>" name="radio" /><label class="radio_but" for="radio<?php echo $i; ?>">Rapport de Type <?php echo $rapport->DataSetType->_?></label>
</td>
<td align="center" class="StyleInfoData lang_img <?=strtolower($rapport->DataSetType->_);?>">
<div class="lang_select">
<select class="lang_val">
<?php foreach ($rapport->LanguageCodes->LanguageCode as $key=>$language):?>
<option class="lang<?=$key;?>" value=<?=$language;?>><?=$language;?></option>
<?php endforeach;?>
</select>
</div>
<div class="lang_select">
<img class='lang'src="/themes/default/images/drapeaux/<?=$rapport->LanguageCodes->LanguageCode[0]?>.png" />
</div>
</td>
<td class="StyleInfoData lang_img <?=strtolower($rapport->DataSetType->_);?>">
<a id="r<?php echo $i?>" class="idpr id_cr" href="/giant/<?=strtolower($rapport->DataSetType->_)?>/Pays/test/<?=$this->TestIndication?>/<?=$this->Pays; ?>/Type/<?php echo $rapport->DataSetType->_?>/CompanyId/<?php echo $this->CompanyId;?>/Language/<?=$rapport->LanguageCodes->LanguageCode[0];?>" >Consulter le rapport en immédiat</a>
<div id="pr<?php echo $i?>" class="hide" style="display:none;z-index: 1;margin-left: -340px;">
<center><img style="padding-top:30%" src="/themes/default/images/giant/19-1.gif" /></center>
</div>
</td>
</tr>
<?php $i++;?>
<?php endforeach;?>
</table>
</div></div>
<?php endif; ?>
<?php if(!empty($this->listeRapport->InvestigationOptions1)): ?>
<h1>Liste des investigations<img style="margin-top:4px;float:right" src="/themes/default/images/giant/expanded.gif" ></h1>
<div class="paragraph">
<table>
<tr>
<td width="30px"></td>
<!--<td></td>!-->
<td></td>
<td style="word-spacing: 2px;" align="center">
<input disabled="disabled" type="radio" name="langI1" /><input type="radio" name="langI2" checked="true" />
</td>
<td></td>
</tr>
<?php foreach ($this->listeRapport->InvestigationOptions->InvestigationOption as $investigation):?>
<?php foreach ($investigation->ServiceLevels->ServiceLevel as $service):?>
<tr id="info">
<td width="30px"></td>
<td class="StyleInfoLib" width="460px">
<img style="cursor:help" title="" class="tooltip" src="/themes/default/images/giant/tag_blue.png" /> - Investigation <?php echo $service->Name.' ( '.$service->Duration.' '.$service->DurationMetric.' ) ';?>
</td>
<!--<td class="StyleInfoData" width="150px">
150€ <?php /*@TODO reste a deteminer les données BDD ou fichier.*/ ?>
</td>!-->
<td align="center" class="StyleInfoData" width="100px">
<?php foreach ($investigation->LanguageCodes->LanguageCode as $language):?>
<img src="/themes/default/images/drapeaux/<?php echo $language;?>.png" />
<?php endforeach;?>
</td>
<td class="StyleInfoData" width="300px">
<a id="r<?php echo $i?>" class="idpr" href="">Commander l'investigation</a>
<div id="pr<?php echo $i?>" class="hide" style="display:none;z-index: 1; margin-left: -457px;">
<center><img style="padding-top:30%" src="/themes/default/images/giant/19-1.gif" /></center>
</div>
</td>
</tr>
<?php $i++; endforeach;?>
<?php endforeach;?>
<?php if($this->debug):?>
<tr>
<td width="30px"></td>
<td colspan="5">
<?php echo $this->action('identite', 'debug', null, array('resultat'=> $this->listeRapport, 'soap' => $this->soap));?>
</td>
</tr>
<?php endif;?>
</table>
</div>
<?php endif;?>
</div>

View File

@ -0,0 +1,9 @@
<div id="center">
<div class="paragraph">
<h2>Investigation</h2>
<fieldset>
<legend>Formulaire d'investigation</legend>
<?php echo $this->form;?>
</fieldset>
</div>
</div>

View File

@ -0,0 +1,70 @@
<div class="paragraph">
<?php if(isset($this->report->CreditRecommendation)):?>
<?php foreach($this->report->CreditRecommendation as $credit):?>
<table id="AvisDeCredit">
<tr>
<td><b>Date</b></td>
<td class="float"><?php echo (empty($credit->Date->_))?'NC':$credit->Date->_; ?></td>
</tr>
<tr>
<td colspan="2"><hr/></td>
</tr>
<tr>
<td><b>Recommandation</b></td>
<td class="float"><?php echo (empty ($credit->AmountAdvised))?'NC':$credit->AmountAdvised->_ . ' '.$credit->AmountAdvised->currency; ?></td>
</tr>
<tr>
<td colspan="2"><hr style="border:1px dotted silver" /></td>
</tr>
<tr>
<td colspan="2"><br /></td>
</tr>
<tr>
<td><b>Evaluation</b></td>
<td class="float"><?php echo (empty($credit->RiskClasses->CommonRiskClass->RatingValue))?'NC':$credit->RiskClasses->CommonRiskClass->RatingValue ?></td>
</tr>
<tr>
<td colspan="2"><hr style="border:1px dotted silver" /></td>
</tr>
<tr>
<td colspan="2"><img src="/fichier/imgcache/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.str_replace(' ', '_', $credit->RiskClasses->CommonRiskClass->RatingName->_);?>.png" /></td>
</tr>
<tr>
<td colspan="2">
<i><?php echo (empty($credit->RiskClasses->CommonRiskClass->Description[0]))?'NC':$credit->RiskClasses->CommonRiskClass->Description[0]->_;?></i>
</td>
</tr>
<tr>
<td colspan="2"><hr /></td>
</tr>
<tr>
<td colspan="2"><br /></td>
</tr>
<?php foreach ($credit->RiskClasses->ProviderRiskClass as $ProviderRiskClass):?>
<tr>
<td><b><?php echo (empty($ProviderRiskClass->RatingName->_))?'NC':$ProviderRiskClass->RatingName->_; ?></b></td>
<td class="float"><?php echo (empty($ProviderRiskClass->RatingValue))?'NC':$ProviderRiskClass->RatingValue; ?></td>
</tr>
<tr>
<td colspan="2"><img src="/fichier/imgcache/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.str_replace(' ', '_', $ProviderRiskClass->RatingName->_);?>.png" /></td>
</tr>
<tr>
<td colspan="2"><i><?php echo (empty($ProviderRiskClass->Description[0]->_))?'NC':$ProviderRiskClass->Description[0]->_; ?></i></td>
</tr>
<tr>
<td colspan="2"><hr /></td>
</tr>
<tr>
<td colspan="2"><br /></td>
</tr>
<?php endforeach;?>
</table>
<?php endforeach; ?>
<?php else :?>
<div class="ui-state-error ui-corner-all">
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
Aucun Credit de Recommendation
</p>
</div>
<?php endif; ?>
</div>

View File

@ -0,0 +1,55 @@
<div class="paragraph" id="ComparisonValeurs">
<a name="20"></a>
<span>Comparaison des valeurs</span><br /><br />
<?php if(isset($this->report->ComparaisonValeurs)):?>
<table id="giant_synthese">
<thead>
<tr>
<th>&nbsp;</th>
<?php $date = explode('/', $this->report->ComparaisonValeurs[key($this->report->ComparaisonValeurs)]['date']);?>
<th align="right" class="date"><?php echo $date[2];?></th>
<th align="right" class="date">Secteur</th>
<th align="right" class="date">Variation</th>
<th>&nbsp;</th>
<?php if(isset($this->report->ComparaisonValeurs[key($this->report->ComparaisonValeurs)]['old'])):?>
<?php foreach($this->report->ComparaisonValeurs[key($this->report->ComparaisonValeurs)]['old'] as $date => $valeur):?>
<th align="right" class="date"><?php echo substr($date, 0,4);?></th>
<?php endforeach;?>
<?php endif;?>
</tr>
</thead>
<tbody>
<tr>
<?php $i=0;foreach($this->report->ComparaisonValeurs as $name => $ComparaisonValeurs):$i++;?>
<?php ($ComparaisonValeurs['current'] != 0 and $ComparaisonValeurs['entreprise'] != 0)?
$val = round((($ComparaisonValeurs['current']/$ComparaisonValeurs['entreprise'])*100)-100):'NC';
?>
<tr class="<?php echo ($val)? 'red':'green'; ?>">
<td class="head">
<a class="tooltip" title="<?php echo str_replace('_', ' ', $ComparaisonValeurs['name']);?>"><?php echo str_replace('_', ' ', $ComparaisonValeurs['name']);?></a>
</td>
<td class="right"><?php echo round($ComparaisonValeurs['current']); ?></td>
<td class="right"><?php echo round($ComparaisonValeurs['entreprise']); ?></td>
<td class="right"><?php echo $val; ?> %</td>
<td align="center"><img class="tooltip" title="<center><b>Evolution années précédentes</b></center><br /><img src='/fichier/imgcache/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.$name;?>.png' />" alt="icone" src="/themes/default/images/giant/<?php echo ($val > 0)? 'up': 'down';?>.png" /></td>
<?php if(!empty($ComparaisonValeurs['old'])):?>
<?php $i=0;foreach($ComparaisonValeurs['old'] as $valeur):$i++?>
<?php if($i == 4) break;?>
<td align="right"><?php echo round($valeur[0]->SubjectValue);?></td>
<?php endforeach;?>
<?php endif;?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php else:?>
<div class="ui-state-error ui-corner-all">
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
Aucun Comportement de paiement.
</p>
</div>
<?php endif;?>
</div>

View File

@ -0,0 +1,118 @@
<div class="paragraph">
<?php if(isset($this->report->PaymentBehaviour)):?>
<?php if(isset($this->report->ComportementPaiement)):?>
<span class="title">Analyse par année</span><br /><br />
<table id="giant_synthese">
<thead>
<tr>
<th class="date">Jours</th>
<?php foreach(current($this->report->ComportementPaiement) as $dates => $valeurs):?>
<? if($dates=='000030'){$dates='1000030';}else if($dates=='900000'){$dates='+90';}else if($dates=='910000'){$dates='+91';}else if($dates=='1510000'){$dates='+151';}?>
<?$dates = str_replace('0000', ' - ', $dates)?>
<th align="right" class="date"><?=$dates?></th>
<?php endforeach; ?>
</tr>
</thead>
<tbody>
<tr>
<?php foreach($this->report->ComportementPaiement as $dates => $valeurs):?>
<?(strlen($dates)==12)?$len=6:$len=8;preg_match('/(\d{'.$len.'})(\d{'.$len.'})/', $dates,$matches);$s = $matches[1];$e = $matches[2];?>
<?php $date = explode(':', $dates);?>
<?php $date1 = new Zend_Date($s,yyyymmdd);$date2 = new Zend_Date($e,yyyymmdd);?>
<tr>
<td class="head">
<a><?php echo $date1->toString('dd/mm/yyyy');?> - <?php echo $date2->toString('dd/mm/yyyy');?></a>
</td>
<?php $i=0;foreach($valeurs as $valeur): $i++; ?>
<td class="right"><?php echo $valeur;?> %</td>
<?php endforeach; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<br />
<center>
<span class="title">Graphique Analyse par année</span><br /><br />
<img src="/fichier/imgcache/<?php echo $this->report->CompanyId.'-'.$this->Type.'-';?>ComportementPaiement.png" />
</center>
<br />
<?php endif;?>
<a name="13"></a>
<span class="title">Qualification de paiement</span><br /><br />
<table id="giant_synthese">
<tbody>
<tr>
<tr >
<td class="head">
<a class="tooltip tooltipFont">PaymentQualification</a>
</td>
<td class="right"><?php echo (isset($this->report->PaymentBehaviour[0]->PaymentQualification))?$this->report->PaymentBehaviour[0]->PaymentQualification->Qualification:'NC';?></td>
</tr>
<tr >
<td class="head">
<a class="tooltip tooltipFont">DebtorDays</a>
</td>
<td class="right"><?php echo (isset($this->report->PaymentBehaviour[0]->DebtorDays))?$this->report->PaymentBehaviour[0]->DebtorDays:'NC';?></td>
</tr>
<tr >
<td class="head">
<a class="tooltip tooltipFont">CreditorDays</a>
</td>
<td class="right"><?php echo (isset($this->report->PaymentBehaviour[0]->DebtorDays))?$this->report->PaymentBehaviour[0]->CreditorDays:'NC';?></td>
</tr>
</tbody>
</table>
<br />
<a name="14"></a>
<span class="title">Analyse par sommes</span><br /><br />
<?php if(isset($this->report->ByAmount)):?>
<table id="giant_synthese">
<thead>
<tr>
<th class="date">Jours</th>
<?php foreach(current($this->report->ByAmount) as $dates => $valeurs):?>
<? if($dates=='000030'){$dates='1000030';}else if($dates=='900000'){$dates='+90';}else if($dates=='1510000'){$dates='+151';}?>
<?$dates = str_replace('0000', ' - ', $dates)?>
<th align="right" class="date"><?=$dates?></th>
<?php endforeach; ?>
</tr>
</thead>
<tbody>
<tr>
<?php foreach($this->report->ByAmount as $sommes => $valeurs):?>
<?php $somme = explode('1111', $sommes);?>
<tr>
<td class="head">
<a class="tooltip" title="<?php echo $date[0];?> - <?php echo $date[1];?>">entre : <?php echo (!empty($somme[0]))?$somme[0].'€':'0';?></b> et <b><?php echo (!empty($somme[1]))?$somme[1].'€':'plus';?></a>
</td>
<?php $i=0;foreach($valeurs as $valeur): $i++; ?>
<td class="right"><?php echo $valeur;?> %</td>
<?php endforeach; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<br />
<center>
<a name="15"></a>
<span class="title">Graphique Analyse par année</span><br />
<img src="/fichier/imgcache/<?php echo $this->report->CompanyId.'-'.$this->Type.'-';?>ComportementPaiementByAmount.png" />
</center>
<?php else: ?>
<div style="padding:0.7em;" class="ui-state-error ui-corner-all">
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
Aucunes informations.
</p>
</div>
<?php endif;?>
<?php else : ?>
<div style="padding:0.7em;" class="ui-state-error ui-corner-all">
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
Aucun Comportement de paiement.
</p>
</div>
<?php endif;?>
</div>

View File

@ -0,0 +1,219 @@
<div class="paragraph compteAnnuels">
<?php if(!empty($this->report->AnnualAccounts)):?>
<table id="giant_synthese">
<tbody>
<tr>
<tr >
<td class="head">
<a class="tooltip tooltipFont">Date de clôture</a>
</td>
<?php foreach($this->report->AnnualAccounts as $AnnualAccounts):$i++?>
<td class="right"><?php if(empty($AnnualAccounts->AccountsDate->_))echo'NC';else {$date = new Zend_Date($AnnualAccounts->AccountsDate->_,yyyymmdd);echo $date->toString('dd/mm/yyyy');}?></td>
<?php endforeach; ?>
</tr>
<tr >
<td class="head">
<a class="tooltip tooltipFont">Etat de compte</a>
</td>
<?php foreach($this->report->AnnualAccounts as $AnnualAccounts):$i++?>
<td class="right"><?php echo (empty($AnnualAccounts->AccountsStatus))?'NC':$AnnualAccounts->AccountsStatus;?></td>
<?php endforeach; ?>
</tr>
<tr >
<td class="head">
<a class="tooltip tooltipFont">Type de compte</a>
</td>
<?php foreach($this->report->AnnualAccounts as $AnnualAccounts):$i++?>
<td class="right"><?php echo (empty($AnnualAccounts->AccountsType))?'NC':$AnnualAccounts->AccountsType;?></td>
<?php endforeach; ?>
</tr>
</tbody>
</table>
<br />
<a name="7"></a>
<span class="title" >Actif</span><br />
<table id="giant_synthese">
<thead>
<tr>
<th align="center">
</th>
<?php $i=0; foreach($this->report->AnnualAccounts as $AnnualAccounts): $i++?>
<?php $date = new Zend_Date($AnnualAccounts->AccountsDate->_,yyyymmdd);?>
<th align="right" class="date"><?php echo $date->toString('dd/mm/yyyy'); ?></th>
<?php endforeach; ?>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
<tr>
<?php foreach($this->report->Assets as $name => $Assets):?>
<?php if(!empty($this->report->Assets->{$name})){$end = end($this->report->Assets->{$name});reset($this->report->Assets->{$name});}else{$end = 0;}?>
<?php if(!empty($this->report->Assets->{$name})){$key = $this->report->Assets->{$name}[key($this->report->Assets->{$name})];}else{$key = 0;}?>
<?php $val = ($key < $end)?true:false;?>
<tr class="<?php echo ($val)? 'red':'green'; ?>">
<td class="head">
<a class="tooltip" title="<?php echo $name;?>"><?php echo $name;?></a>
</td>
<?php foreach($this->report->AnnualAccounts as $AnnualAccounts): ?>
<?php (empty($firstAsset))?$firstAsset = $this->report->Assets->{$name}[$AnnualAccounts->AccountsDate->_]:EOF;?>
<td class="right"><?php echo number_format($this->report->Assets->{$name}[$AnnualAccounts->AccountsDate->_], 0, '', ' ');?> K€</td>
<?php endforeach; ?>
<td align="center">
<?php if($end > $firstAsset):?>
<img class="tooltip IMGprint" title="<center><b><?php echo $name;?></b></center><br /><img src='/fichier/imgcache/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.$name;?>-line.png' />" src="/themes/default/images/giant/down.png" />
<?php else: ?>
<img class="tooltip IMGprint" title="<center><b><?php echo $name;?></b></center><br /><img src='/fichier/imgcache/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.$name;?>-line.png' />" src="/themes/default/images/giant/up.png" />
<?php endif;unset($firstAsset);?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<br />
<div class="center">
<span class="title">Graphique des actifs</span>
<img src="/fichier/imgcache/<?php echo $this->report->CompanyId.'-'.$this->Type.'-';?>actifs.png" />
</div>
<br />
<a name="8"></a>
<span class="title">Passif</span><br />
<table id="giant_synthese">
<thead>
<tr>
<th align="center">
</th>
<?php $i=0; foreach($this->report->AnnualAccounts as $AnnualAccounts): $i++?>
<?php $date = new Zend_Date($AnnualAccounts->AccountsDate->_,yyyymmdd);?>
<th align="right" class="date"><?php echo $date->toString('dd/mm/yyyy'); ?></th>
<?php endforeach; ?>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
<tr>
<?php foreach($this->report->Liabilities as $name => $Liabilities):?>
<?php if(!empty($this->report->Liabilities->{$name})){$end = end($this->report->Liabilities->{$name});reset($this->report->Liabilities->{$name});}else{$end = 0;}?>
<?php if(!empty($this->report->Liabilities->{$name})){$key = $this->report->Liabilities->{$name}[key($this->report->Liabilities->{$name})];}else{$key = 0;}?>
<?php $val = ($key < $end)?true:false;?>
<tr class="<?php echo ($val)? 'red':'green'; ?>">
<td class="head">
<a class="tooltip" title="<?php echo $name;?>"><?php echo $name;?></a>
</td>
<?php foreach($this->report->AnnualAccounts as $AnnualAccounts): ?>
<?php (empty($firstLiabilities))?$firstLiabilities = $this->report->Liabilities->{$name}[$AnnualAccounts->AccountsDate->_]:EOF;?>
<td class="right"><?php echo number_format($this->report->Liabilities->{$name}[$AnnualAccounts->AccountsDate->_], 0, '', ' ');?> K€</td>
<?php endforeach; ?>
<td align="center">
<?php if($end > $firstLiabilities):?>
<img class="tooltip IMGprint" title="<center><b><?php echo $name;?></b></center><br /><img src='/fichier/imgcache/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.$name;?>-line.png' />" src="/themes/default/images/giant/down.png" />
<?php else: ?>
<img class="tooltip IMGprint" title="<center><b><?php echo $name;?></b></center><br /><img src='/fichier/imgcache/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.$name;?>-line.png' />" src="/themes/default/images/giant/up.png" />
<?php endif;unset($firstLiabilities);?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<br />
<div class="center">
<span class="title">Graphique des passifs</span>
<img src="/fichier/imgcache/<?php echo $this->report->CompanyId.'-'.$this->Type.'-';?>passifs.png" />
</div>
<br />
<a name="9"></a>
<span class="title">Compte de résultats</span><br />
<table id="giant_synthese">
<thead>
<tr>
<th align="center">
</th>
<?php $i=0; foreach($this->report->AnnualAccounts as $AnnualAccounts): $i++?>
<?php $date = new Zend_Date($AnnualAccounts->AccountsDate->_,yyyymmdd);?>
<th align="right" class="date"><?php echo $date->toString('dd/mm/yyyy'); ?></th>
<?php endforeach; ?>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
<tr>
<?php foreach($this->report->ProfitAndLoss as $name => $ProfitAndLoss):?>
<?php if(!empty($this->report->ProfitAndLoss->{$name})){$end = end($this->report->ProfitAndLoss->{$name});reset($this->report->ProfitAndLoss->{$name});}else{$end = 0;}?>
<?php if(!empty($this->report->ProfitAndLoss->{$name})){$key = $this->report->ProfitAndLoss->{$name}[key($this->report->ProfitAndLoss->{$name})];}else{$key = 0;}?>
<?php $val = ($key < $end)?true:false;?>
<tr class="<?php echo ($val)? 'red':'green'; ?>">
<td class="head">
<a class="tooltip" title="<?php echo $name;?>"><?php echo $name;?></a>
</td>
<?php foreach($this->report->AnnualAccounts as $AnnualAccounts): ?>
<?php (empty($firstProfitAndLoss))?$firstProfitAndLoss = $this->report->ProfitAndLoss->{$name}[$AnnualAccounts->AccountsDate->_]:EOF;?>
<td class="right"><?php echo number_format($this->report->ProfitAndLoss->{$name}[$AnnualAccounts->AccountsDate->_], 0, '', ' ');?> K€</td>
<?php endforeach; ?>
<td align="center">
<?php if($end > $firstProfitAndLoss):?>
<img class="tooltip IMGprint" title="<center><b><?php echo $name;?></b></center><br /><img src='/fichier/imgcache/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.$name;?>-line.png' />" src="/themes/default/images/giant/down.png" />
<?php else: ?>
<img class="tooltip IMGprint" title="<center><b><?php echo $name;?></b></center><br /><img src='/fichier/imgcache/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.$name;?>-line.png' />" src="/themes/default/images/giant/up.png" />
<?php endif;unset($firstProfitAndLoss);?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<br />
<div class="center">
<span class="title">Compte de resultats</span>
<img src="/fichier/imgcache/<?php echo $this->report->CompanyId.'-'.$this->Type.'-';?>profitandloss.png" />
</div>
<br />
<br />
<a name="10"></a>
<span class="title">KeyCreditRatios</span><br />
<table id="giant_synthese">
<thead>
<tr>
<th align="center">
</th>
<?php $i=0; foreach($this->report->AnnualAccounts as $AnnualAccounts): $i++?>
<?php $date = new Zend_Date($AnnualAccounts->AccountsDate->_,yyyymmdd);?>
<th align="right" class="date"><?php echo $date->toString('dd/mm/yyyy'); ?></th>
<?php endforeach; ?>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
<tr>
<?php foreach($this->report->KeyCreditRatios as $name => $KeyCreditRatios):?>
<?php if(!empty($this->report->KeyCreditRatios->{$name})){$end = end($this->report->KeyCreditRatios->{$name});reset($this->report->KeyCreditRatios->{$name});}else{$end = 0;}?>
<?php if(!empty($this->report->KeyCreditRatios->{$name})){$key = $this->report->KeyCreditRatios->{$name}[key($this->report->KeyCreditRatios->{$name})];}else{$key = 0;}?>
<?php $val = ($key < $end)?true:false;?>
<tr class="<?php echo ($val)? 'red':'green'; ?>">
<td class="head">
<a class="tooltip" title="<?php echo $name;?>"><?php echo $name;?></a>
</td>
<?php foreach($this->report->AnnualAccounts as $AnnualAccounts): ?>
<?php (empty($firstKeyCreditRatios))?$firstKeyCreditRatios = $this->report->KeyCreditRatios->{$name}[$AnnualAccounts->AccountsDate->_]:EOF;?>
<td class="right"><?php echo (!empty($this->report->KeyCreditRatios->{$name}[$AnnualAccounts->AccountsDate->_]))?$this->report->KeyCreditRatios->{$name}[$AnnualAccounts->AccountsDate->_].' %':'NC'?></td>
<?php endforeach; ?>
<td align="center">
<?php if($end > $firstKeyCreditRatios):?>
<img class="tooltip IMGprint" title="<center><b><?php echo $name;?></b></center><br /><img src='/fichier/imgcache/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.$name;?>-line.png' />" src="/themes/default/images/giant/down.png" />
<?php else: ?>
<img class="tooltip IMGprint" title="<center><b><?php echo $name;?></b></center><br /><img src='/fichier/imgcache/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.$name;?>-line.png' />" src="/themes/default/images/giant/up.png" />
<?php endif;unset($firstKeyCreditRatios);?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php else:?>
<div style="padding:0.7em;" class="ui-state-error ui-corner-all">
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
Aucun Comptes Annuels (bilans, etc..)
</p>
</div>
<?php endif;?>
</div>

View File

@ -0,0 +1,37 @@
<div class="paragraph">
<a name="19"></a>
<span class="title">Dirigeants</span><br /><br />
<?php if(isset($this->report->Dirigeant)):?>
<table style="font-size:13px;margin-left: 19px;" width="97%" class="hoverTr"><pre><?//print_r($this->report->Dirigeant);?></pre>
<?php foreach($this->report->Dirigeant as $Dirigeants):?>
<?php foreach($Dirigeants as $date => $Dirigeant):?>
<tr>
<td style="padding:2px;color:#2599E7"><b><?php if(!empty($Dirigeant[0]->date[0]) || !empty($Dirigeant[0]->date[1])){
$date1 = new Zend_Date($Dirigeant[0]->date[0],yyyymmdd);$date2 = new Zend_Date($Dirigeant[0]->date[1],yyyymmdd);
echo(!empty($Dirigeant[0]->date[0]))?$date1->toString('dd/mm/yyyy'):'NC';echo' - ';
echo(!empty($Dirigeant[0]->date[1]))?$date2->toString('dd/mm/yyyy'):'NC';}else{echo 'NC';}?></b></td>
</tr>
<?php $i=0;?>
<?php foreach($Dirigeant as $dir):$i++;?>
<tr>
<td class="line" style="font-size:12px;padding:5px;">
<?php $date3 = new Zend_Date($dir->DateOfBirth->_,yyyymmdd);
echo $dir->FirstName.' '.$dir->LastName.'
<br /><b>Né(e) le:</b> '.((!empty($dir->DateOfBirth->_))?$date3->toString('dd/mm/yyyy'):'NC').
' <br /><b>Domicilié(e) à :</b>'.(($dir->PersonalAddress->HouseNumber!=0)?$dir->PersonalAddress->HouseNumber:'').
' '.$dir->PersonalAddress->Street.
' '.(($dir->PersonalAddress->PostCode!=0)?$dir->PersonalAddress->PostCode:'NC').
' '.$dir->PersonalAddress->City;?></td>
</tr>
<?php endforeach;?>
<?php endforeach;?>
<?php endforeach;?>
</table>
<?php else:?>
<div style="padding:0.7em;" class="ui-state-error ui-corner-all">
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
Aucune information sur les dirigeants.
</p>
</div>
<?php endif;?>
</div>

View File

@ -0,0 +1,63 @@
<div class="paragraph historique">
<a name="21"></a>
<?php if(isset($this->report->Event)):?>
<?php foreach($this->report->Event as $name => $Events):?>
<span class="title"><?php echo $this->report->EventNew[$name];?></span><br /><br />
<form method="POST">
<select name="Date" style="float:right" onchange="submit()">
<option value="all">Date</option>
<?php foreach($Events as $date => $event): ?>
<option <?php
preg_match('/(\d{4})(\d{2})(\d{2})/', $date, $matches);$y = $matches[1];$m = $matches[2];$d = $matches[3];
echo ((isset($_POST['Date']) and $_POST['Date'] == $y.'/'.$m.'/'.$d)?'SELECTED':EOF); ?> value="<?php echo $y.'/'.$m.'/'.$d;?>">
<?php echo ($Events[$date][0]->Date != '//')?$Events[$date][0]->Date:$y.'/'.$m.'/'.$d;?>
</option>
<?php endforeach;?>
</select>
</form>
<table id="giant_synthese">
<thead>
<tr>
<th align="center" class="date" style='width: 142px;'>Date</th>
<th align="right" class="date">Description</th>
</tr>
</thead>
<tbody>
<tr>
<?php foreach($Events as $date => $event): ?>
<?php
preg_match('/(\d{4})(\d{2})(\d{2})/', $date, $matches);$y = $matches[1];$m = $matches[2];$d = $matches[3];
foreach($event as $val):?>
<?php if(!empty($_POST['Date']) and $_POST['Date'] != 'all'):?>
<?php if($y.'/'.$m.'/'.$d == $_POST['Date']):?>
<tr title="<?php echo $val->FreeText; ?>">
<td align="center" class="head">
<a style="cursor:help" class="tooltip" class="tooltip"><?php echo ($val->Date != '//')?$val->Date:$y.'/'.$m.'/'.$d;?></a>
</td>
<td class="right"><?php echo $val->Description;?></td>
</tr>
<?php endif;?>
<?php else: ?>
<tr align="center" style="cursor:help" class="tooltip" title="<?php echo $val->FreeText; ?>">
<td class="head">
<a class="tooltip"><?php echo ($val->Date != '//')?$val->Date:$y.'/'.$m.'/'.$d;?></a>
</td>
<td class="right"><?php echo $val->Description;?></td>
</tr>
<?php endif;?>
<?php endforeach;?>
<?php endforeach;?>
</tbody>
</table>
<br />
<?php endforeach;?>
<?php else :?>
<div style="padding:0.7em;" class="ui-state-error ui-corner-all">
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
Aucunes annonces légales
</p>
</div>
<?php endif;?>
</div>

View File

@ -0,0 +1,160 @@
<div class="paragraph">
<?php if(isset($this->report)) :?>
<?preg_match('/(\d{2})(\d{2})(\d{4})/', $this->report->IncorporationDate, $matches);$d = $matches[1];$m = $matches[2];$y = $matches[3];?>
<div>
<a name="1"></a>
<span class="title">Données officielles</span><br />
<table id="giant_synthese">
<tbody>
<tr >
<td class="head" style='width: 169px;'>
<a class="tooltip tooltipFont">Nom d'entreprise </a>
</td>
<td class="right"><?php echo $this->report->CompanyName?></td>
</tr>
<tr >
<td class="head" style='width: 169px;'>
<a class="tooltip tooltipFont">Numéro de TVA</a>
</td>
<td class="right"><?php echo $this->report->Vat?></td>
</tr>
<tr >
<td class="head" style='width: 169px;'>
<a class="tooltip tooltipFont">Forme juridique actuelle</a>
</td>
<td class="right"><?php echo $this->report->LegalForm.' / '.$this->report->UnifiedLegalForm;?></td>
</tr>
<tr >
<td class="head" style='width: 169px;'>
<a class="tooltip tooltipFont">Date de constitution</a>
</td>
<td class="right"><?php echo (!empty($this->report->IncorporationDate))?$d.'/'.$m.'/'.$y:'NC'?></td>
</tr>
<tr >
<td class="head" style='width: 169px;'>
<a class="tooltip tooltipFont">Etat de l'entreprise</a>
</td>
<td class="right"><?php echo $this->report->CompanyStatus?></td>
</tr>
<tr >
<td class="head" style='width: 169px;'>
<a class="tooltip tooltipFont">No. Siret</a>
</td>
<td class="right"><?php echo $this->report->CompanyId?></td>
</tr>
</tbody>
</table>
<br />
<a name="2"></a><br />
<span class="title">Données de contact</span><br />
<table id="giant_synthese">
<tbody>
<tr >
<td class="head" style='width: 169px;'>
<a class="tooltip tooltipFont">Numéro de téléphone</a>
</td>
<td class="right"><?php echo $this->report->TelephoneNumber?></td>
</tr>
<tr >
<td class="head" style='width: 169px;'>
<a class="tooltip tooltipFont">Numéro de fax</a>
</td>
<td class="right"><?php echo $this->report->Telefax?></td>
</tr>
<tr >
<td class="head" style='width: 169px;'>
<a class="tooltip tooltipFont">Adresse Email</a>
</td>
<td class="right"><?php echo ($this->report->EmailAddress!='<a href="mailto:"></a>')?$this->report->EmailAddress:'NC'?></td>
</tr>
<tr >
<td class="head" style='width: 169px;'>
<a class="tooltip tooltipFont">Site internet</a>
</td>
<td class="right"><?php echo ($this->report->WebAddress!='<a href="http://"></a>')?$this->report->WebAddress:'NC'?></td>
</tr>
<tr >
<td class="head" style='width: 169px;'>
<a class="tooltip tooltipFont">Adresse</a>
</td>
<td class="right"><?php echo $this->report->CompanyAddress?></td>
</tr>
</tbody>
</table>
</div>
<br />
<a name="3"></a><br />
<?php if(!empty($this->report->activity)):?>
<span class="title">Activités</span><br />
<table id="giant_synthese">
<thead>
<tr>
<th align="left" class="date">Code</th>
<th align="right" class="date">Activité</th>
</tr>
</thead>
<tbody>
<tr>
<?php foreach($this->report->activity as $code => $activity): ?>
<tr>
<td class="head" style='width: 169px;'>
<a><?php echo $code?></a>
</td>
<td class="right"><?php echo $activity?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php endif;?>
<br />
<?php if(!empty($this->report->Employees)):?>
<a name="4"></a><br />
<span class="title">Personnel</span><br />
<table id="giant_synthese">
<thead>
<tr>
<th align="left" class="date" style='width: 169px;'>Année</th>
<th align="right" class="date">Total des travailleurs employés</th>
<th align="right" class="date">Équivalent temps plein</th>
</tr>
</thead>
<tbody>
<tr>
<?php foreach($this->report->Employees as $year => $employees): ?>
<tr class="<?php echo ($val)? 'red':'green'; ?>">
<td class="left"><?php if(strlen($year)==4)echo $year;elseif(empty($year))echo 'NC'; else {$date = new Zend_Date($year,yyyymmdd); echo $date->toString('dd/mm/yyyy');}?></td>
<td class="right"><?php echo $employees['TotalStaffEmployed'];?></td>
<td class="right"><?php echo $employees['FulltimeEquivalent'];?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php endif;?>
<br />
<?php if(!empty($this->report->ProductName)):?>
<a name="5"></a><br />
<span class="title">Noms de produit</span><br />
<table id="giant_synthese">
<thead>
<tr>
<th align="left" class="date">Source</th>
<th align="right" class="date">Produit</th>
</tr>
</thead>
<tbody>
<tr>
<?php foreach($this->report->ProductName as $ProductName): ?>
<tr class="<?php echo ($val)? 'red':'green'; ?>">
<td class="head" style='width: 169px;'>
<a><?php echo (empty($ProductName->source)?'NC':$ProductName->source);?></a>
</td>
<td class="right"><?php echo $ProductName->_?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php endif;?>
<?php else: ?>
<span style="font-size:13px;margin-left:30px;">Aucunes Informations</span>
<?php endif; ?>
</div>

View File

@ -0,0 +1,77 @@
<div class="paragraph">
<?php if(isset($this->report->FinancialSummary)):?>
<a name="11"></a>
<span class="title">Informations Capital</span><br />
<?php if(isset($this->report->PositionFinanciere)):?>
<table id="giant_synthese">
<thead>
<tr>
<th align="center">
</th>
<?php $i = 0; foreach($this->report->PositionFinanciereDate as $date => $val):$i++?>
<?$date1 = new Zend_Date($date,yyyymmdd);?>
<th align="right" class="date"><?php echo $date1->toString('dd/mm/yyyy');?></th>
<?php endforeach; ?>
</tr>
</thead>
<tbody>
<tr>
<?php foreach($this->report->PositionFinanciere as $name => $PositionFinanciere):?>
<tr>
<td class="head">
<a class="tooltip" title="<?php echo $name;?>"><?php echo $name;?></a>
</td>
<?php foreach($PositionFinanciere as $element):?>
<td class="right"><?php echo $element?></td>
<?php endforeach; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php else:?>
<div style="padding:0.7em;" class="ui-state-error ui-corner-all">
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
Aucunes informations sur le capital.
</p>
</div>
<?php endif;?>
<br />
<center>
<a name="12"></a>
<span class="title">Evolution du capital</span><br /><br />
<img src="/fichier/imgcache/<?php echo $this->report->CompanyId.'-'.$this->Type.'-';?>positionFinanciere.png" />
</center>
<span class="title">Relation banquaires</span><br /><br />
<?php if(isset($this->report->Bank)):?>
<table style="font-size:13px;margin-left: 19px;" width="97%" class="hoverTr">
<tr>
<td style="font-size: 14px;padding:5px;"><b>Bank name</b></td>
<td style="font-size: 12px;padding:5px;"><b>Code Bak</b></td>
<td style="font-size: 12px;padding:5px;"><b>BankAccount</b></td>
</tr>
<?php foreach($this->report->Bank as $bank):?>
<tr>
<td style="font-size: 12px;padding:5px;"><?php echo $bank->BankName;?></td>
<td style="font-size: 12px;padding:5px;"><?php echo $bank->BankIdentifierCode;?></td>
<td style="font-size: 12px;padding:5px;"><?php echo '<i style="font-size:9px;">'.$bank->BankAccount[0]->AccountType.' :</i> '.$bank->BankAccount[0]->AccountNumber;?></td>
</tr>
<tr>
<td colspan="3"><hr style="border:1px dotted silver" /></td>
</tr>
<?php endforeach;?>
</table>
<?php else:?>
<div style="padding:0.7em;" class="ui-state-error ui-corner-all">
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
Aucunes informations banquaire.
</p>
</div>
<?php endif;?>
<?php else:?>
<div style="padding:0.7em;" class="ui-state-error ui-corner-all">
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
Aucune Position financiére.
</p>
</div>
<?php endif;?>
</div>

View File

@ -0,0 +1,106 @@
<div class="paragraph">
<?php if(isset($this->report->Associated)):?>
<a name="16"></a>
<span class="title">Actionnaires</span><br /><br />
<?php if(isset($this->report->Shareholder)):?>
<table id="giant_synthese" style="font-size:12px;">
<thead>
<tr>
<th align="right">Identifiant</th>
<th align="right">Nom société</th>
<th align="right">Pourcentage d'actions</th>
<th align="right">IsPrincipalStakeHolder</th>
</tr>
</thead>
<tbody>
<tr>
<?php foreach($this->report->Shareholder as $Shareholder):?>
<tr>
<td style="color:#c12b3c" align="center"><?php echo (($Shareholder->Company->CompanyId > 0)?$Shareholder->Company->CompanyId:'-')?></td>
<td class="right"><?php echo $Shareholder->Company->CompanyName[0]->_?></td>
<td class="right"><?php echo (!empty($Shareholder->Shares->Percentage))?$Shareholder->Shares->Percentage.'%':'NC'?> </td>
<td class="right"><?php echo (($Shareholder>IsPrincipalStakeHolder == 1)?'Oui':'Non');?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php else:?>
<div style="padding:0.7em;" class="ui-state-error ui-corner-all">
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
Aucune information sur les actionnaires.
</p>
</div>
<?php endif;?>
<br />
<a name="17"></a>
<span class="title">Participations</span><br /><br />
<?php if(isset($this->report->Participation)):?>
<table id="giant_synthese" style="font-size:12px;">
<thead>
<tr>
<th align="right">Identifiant</th>
<th align="right">Nom société</th>
<th align="right">Pourcentage d'actions</th>
</tr>
</thead>
<tbody>
<tr>
<?php foreach($this->report->Participation as $Participation):?>
<tr>
<td style="color:#c12b3c" align="center"><?php echo (($Participation->Company->CompanyId > 0)?$Participation->Company->CompanyId:'-')?></td>
<td class="right"><?php echo $Participation->Company->CompanyName[0]->_?></td>
<td class="right"><?php echo (!empty($Participation->Shares->Percentage))?$Participation->Shares->Percentage.'%':'NC'?> </td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php else:?>
<div style="padding:0.7em;" class="ui-state-error ui-corner-all">
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
Aucune information sur les participations.
</p>
</div>
<?php endif;?>
<br />
<a name="18"></a>
<span class="title">Etablissements</span><br /><br />
<?php if(isset($this->report->Branch)):?>
<table id="giant_synthese" style="font-size:12px;">
<thead>
<tr>
<th align="right">Identifiant</th>
<th align="right">Nom société</th>
<th align="right">Adresse</th>
</tr>
</thead>
<tbody>
<tr>
<?php foreach($this->report->Branch as $Branch):?>
<tr>
<td style="color:#c12b3c" align="center"><?php echo (($Branch->BranchId > 0)?$Branch->BranchId:'-')?></td>
<td class="right"><?php echo ((isset($Branch->BranchName))?$Branch->BranchName->_:'-')?></td>
<td class="right"><?php echo ((isset($Branch->BranchId))?$Branch->BranchAddress[0]->HouseNumber.' '.
$Branch->BranchAddress[0]->Street.' '.
$Branch->BranchAddress[0]->PostCode.' '.
$Branch->BranchAddress[0]->City:'-')?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php else:?>
<div style="padding:0.7em;" class="ui-state-error ui-corner-all">
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
Aucune information sur les établissements.
</p>
</div>
<?php endif;?>
<?php else:?>
<div style="padding:0.7em;" class="ui-state-error ui-corner-all">
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
Aucune information sur la structure.
</p>
</div>
<?php endif;?>
</div>

View File

@ -0,0 +1,9 @@
<table>
<?php foreach($this->fiche as $name => $item): ?>
<tr id="info">
<td width="30px"></td>
<td class="StyleInfoLib" width="250px"><?php echo $name; ?></td>
<td class="StyleInfoData" width="300px"><?php echo $item; ?> <?php if($name == "Vat"): var_dump($this->fiche['ValideNumber']); endif ?></td>
</tr>
<?php endforeach; ?>
</table>

View File

@ -0,0 +1,58 @@
<b>
<?$address=$this->resultat->Address->HouseNumber.':'.$this->resultat->Address->Street.':'.$this->resultat->Address->PostCode.':'.$this->resultat->Address->City;
$address=str_replace('/', '_', $address);?>
<?if (in_array($this->resultat->CompanyId, $this->TestCompanies)):?>
<a href="<?php echo $this->url(
array('controller' => 'giant', 'action' => 'identite',
'raisonSociale' => $this->resultat->RegisteredName,
'CompanyId' => $this->resultat->CompanyId,
'CompanyRegisterNumber' => $this->resultat->CompanyRegisterNumber,
'Pays' => $this->resultat->Address->Country,
'telephone' => $this->resultat->TelephoneNumbers->TelephoneNumber[0],
'test' => '0',
'Adresse' => $address));?>">
<?php echo $this->resultat->RegisteredName.' -'; ?>
</a>
<span class='testSearch'><a href="<?php echo $this->url(
array('controller' => 'giant', 'action' => 'identite',
'raisonSociale' => $this->resultat->RegisteredName,
'CompanyId' => $this->resultat->CompanyId,
'CompanyRegisterNumber' => $this->resultat->CompanyRegisterNumber,
'Pays' => $this->resultat->Address->Country,
'telephone' => $this->resultat->TelephoneNumbers->TelephoneNumber[0],
'test' => '1',
'Adresse' => $address));?>">
<?php echo ' TEST MODE'; ?>
</a></span>
<?else:?>
<a href="<?php echo $this->url(
array('controller' => 'giant', 'action' => 'identite',
'raisonSociale' => $this->resultat->RegisteredName,
'CompanyId' => $this->resultat->CompanyId,
'CompanyRegisterNumber' => $this->resultat->CompanyRegisterNumber,
'Pays' => $this->resultat->Address->Country,
'telephone' => $this->resultat->TelephoneNumbers->TelephoneNumber[0],
'test' => '0',
'Adresse' => $address));?>">
<?php echo $this->resultat->RegisteredName; ?>
</a>
<?endif?>
</b>
<br />
<?php if(!empty($this->resultat->CompanyId)):?>
<b>CompanyId : <?php echo $this->resultat->CompanyId;?></b><br />
<?php endif;?>
<?php if(!empty($this->resultat->CompanyRegisterNumber)):?>
<i>Numéro : <?php echo $this->resultat->CompanyRegisterNumber;?></i><br/>
<?php endif;?>
<?php if(!empty($this->resultat->VatNumber)):?>
<b>TVA Intracommunautaire :</b> <?php echo $this->resultat->VatNumber;?><br />
<?php endif;?>
<?php if(!empty($this->resultat->Address)):?>
<?php echo ((!empty($this->resultat->Address->HouseNumber))?number_format($this->resultat->Address->HouseNumber, 0):null);?>
<?php echo ((!empty($this->resultat->Address->Street))?$this->resultat->Address->Street.'<br />':null)?>
<b><?php echo ((!empty($this->resultat->Address->PostCode))?$this->resultat->Address->PostCode.' '.$this->resultat->Address->City.'</b><br />':null);?>
<?php endif;?>
<?php if(!empty($this->resultat->LegalForm)):?>
<i>Forme : <?php echo $this->resultat->LegalForm; ?></i><br /><br />
<?php endif;?>

View File

@ -0,0 +1,50 @@
<?php
$titres = array('1. Informations d\'entreprise générales' => array(
array('Les données officielles' => '1'),
array('Les données de contact' =>'2'),
array('Activités de la société' => '3'),
array('Personnel / Effectifs' => '4'),
array('Nom des produits' => '5')),
'2. Avis de crédit' => array(
array('Evaluation de la société' => '6')),
'3. Compte Annuels' => array(
array('Les actif' => '7'),
array('Les passif' => '8'),
array('Le compte de résultats' => '9'),
array('Le keyCreditRatios' => '10')),
'4. Position financiére' => array(
array('Les informations sur le capital' => '11'),
array('Les relation banquaires' => '12')),
'5. Comportement de paiement' => array(
array('La qualification de paiement' => '13'),
array('L\'analyse par sommes' => '14'),
array('L\'analyse par périodes' => '15')),
'6. Structure de l\'entreprise' => array(
array('La liste des actionnaires' => '16'),
array('La liste des participations' => '17'),
array('La liste des etablissements secondaires' => '18')),
'7. Dirigeants' => array(
array('La liste des dirigeants' => '19')),
'8. Comparaison avec valeurs similaires' => array(
array('Comparaison des valeurs (ratios)' => '20')),
'9. Historiques'=> array(
array('La liste des annonces légales' => '21'))
);
?>
<div id="sommaire" class="<?php echo $this->carte;?>">
<fieldset>
<legend>Scores & Décisions Sommaire</legend>
<div id="printSomm">
<ul>
<?php foreach($titres as $grandTitre => $titre):?>
<li><a name=""><?php echo $grandTitre?></a></li>
<?php foreach($titre as $title):?>
<?php foreach($title as $name => $ancre):?>
<span style="margin-left:25px;"> - <a href="#<?php echo $ancre;?>"><?php echo $name;?></a></span><br />
<?php endforeach;?>
<?php endforeach;?>
<?php endforeach;?>
</ul>
</div>
</fieldset>
</div>

View File

@ -0,0 +1,190 @@
<?function emp_check($val){echo (empty($val))?'NC':$val;}?>
<div id="center">
<div class='acord'>
<div id="accordion">
<?foreach ($this->result as $report):?>
<?$eventCode = $report->Company->Event[0]->EventCode;?>
<h3><?=$report->Company->Event[0]->Date->_?></h3>
<div>
<h2 class="radius">Données officielles</h2><br /><br />
<div class="gen_div">
<div><div class="left_div"><b>ProviderEventId</b></div> <div class="right_div"><?emp_check($report->ProviderEventId)?></div></div>
<div><div class="left_div"><b>InternalEventId</b></div> <div class="right_div"><?emp_check($report->InternalEventId)?></div></div>
<div><div class="left_div"><b>CompanyId </b></div> <div class="right_div"><?emp_check($report->Company->CompanyId)?></div></div>
<div><div class="left_div"><b>CompanyName </b></div> <div class="right_div"><?emp_check($report->Company->CompanyName[0]->_)?></div></div>
<div><div class="left_div"><b>EventCode </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->EventCode)?></div></div>
<div><div class="left_div"><b>Source </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Source->_)?></div></div>
<div><div class="left_div"><b>Description </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Description->_)?></div></div>
<div><div class="left_div"><b>FreeText </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->FreeText->_)?></div></div>
</div>
<br /><br />
<?if($eventCode=='GENERAL.COMPANY_NAME_CHANGE'||$eventCode=='GENERAL.LEGALFORM_CHANGE'||$eventCode=='GENERAL.POSITION_CHANGE'):?>
<h2 class="radius">Old Values</h2><br /><br />
<div class="gen_div">
<div><div class="left_div"><b>CompanyId </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyId)?></div></div>
<div><div class="left_div"><b>CompanyName </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyName[0]->_)?></div></div>
</div><br /><br />
<h2 class="radius">New Values</h2><br /><br />
<div class="gen_div">
<div><div class="left_div"><b>CompanyId </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->CompanyId)?></div></div>
<div><div class="left_div"><b>CompanyName </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->CompanyName[0]->_)?></div></div>
</div>
<?endif?>
<?if($eventCode=='GENERAL.ADDRESS_CHANGE'):?>
<h2 class="radius">Données officielles</h2><br /><br />
<div class="gen_div">
<div><div class="left_div"><b>OldCompanyName</b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyName[0]->_)?></div></div>
<div><div class="left_div"><b>NewCompanyName</b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->CompanyName[0]->_)?></div></div>
</div><br /><br />
<h2 class="radius">Old Address</h2><br /><br />
<div class="gen_div">
<div><div class="left_div"><b>Street</b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyAddress[0]->Street)?></div></div>
<div><div class="left_div"><b>HouseNumber</b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyAddress[0]->HouseNumber)?></div></div>
<div><div class="left_div"><b>PostCode </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyAddress[0]->PostCode)?></div></div>
<div><div class="left_div"><b>City </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyAddress[0]->City)?></div></div>
<div><div class="left_div"><b>Country </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyAddress[0]->Country)?></div></div>
</div><br /><br />
<h2 class="radius">New Address</h2><br /><br />
<div class="gen_div">
<div><div class="left_div"><b>Street</b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->CompanyAddress[0]->Street)?></div></div>
<div><div class="left_div"><b>HouseNumber</b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->CompanyAddress[0]->HouseNumber)?></div></div>
<div><div class="left_div"><b>PostCode </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->CompanyAddress[0]->PostCode)?></div></div>
<div><div class="left_div"><b>City </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->CompanyAddress[0]->City)?></div></div>
<div><div class="left_div"><b>Country </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->CompanyAddress[0]->Country)?></div></div>
</div>
<?elseif($eventCode=='GENERAL.LEGALFORM_CHANGE'):?>
<h2 class="radius">Old LegalForm</h2><br /><br />
<div class="gen_div">
<div><div class="left_div"><b>CountryLegalForm </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->LegalForm[0]->CountryLegalForm->_)?></div></div>
<div><div class="left_div"><b>UnifiedLegalForm </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->LegalForm[0]->UnifiedLegalForm)?></div></div>
<div><div class="left_div"><b>FoundedAsLegalForm </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->LegalForm[0]->FoundedAsLegalForm->_)?></div></div>
<div><div class="left_div"><b>AddressLine </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyAddress[0]->FlexibleAddress->AddressLine[0])?></div></div>
<div><div class="left_div"><b>Country </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->LegalForm[0]->Country)?></div></div>
<div><div class="left_div"><b>IsSocial </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->LegalForm[0]->IsSocial)?></div></div>
<div><div class="left_div"><b>IsCivil </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->LegalForm[0]->IsCivil)?></div></div>
</div><br /><br />
<h2 class="radius">New LegalForm</h2><br /><br />
<div class="gen_div">
<div><div class="left_div"><b>CountryLegalForm </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->LegalForm[0]->CountryLegalForm->_)?></div></div>
<div><div class="left_div"><b>UnifiedLegalForm </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->LegalForm[0]->UnifiedLegalForm)?></div></div>
<div><div class="left_div"><b>FoundedAsLegalForm </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->LegalForm[0]->FoundedAsLegalForm->_)?></div></div>
<div><div class="left_div"><b>AddressLine </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->CompanyAddress[0]->FlexibleAddress->AddressLine[0])?></div></div>
<div><div class="left_div"><b>Country </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->LegalForm[0]->Country)?></div></div>
<div><div class="left_div"><b>IsSocial </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->LegalForm[0]->IsSocial)?></div></div>
<div><div class="left_div"><b>IsCivil </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->LegalForm[0]->IsCivil)?></div></div>
</div>
<?elseif($eventCode=='GENERAL.POSITION_CHANGE'):?>
<h2 class="radius">Old Position</h2><br /><br />
<div class="gen_div">
<div><div class="left_div"><b>FirstName </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->Position[0]->Person->FirstName)?></div></div>
<div><div class="left_div"><b>LastName </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->Position[0]->Person->LastName)?></div></div>
<div><div class="left_div"><b>Initials </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->Position[0]->Person->Initials)?></div></div>
<div><div class="left_div"><b>Title </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->Position[0]->Person->Title)?></div></div>
<div><div class="left_div"><b>Position StartDate </b></div> <div class="right_div"><?$date = new Zend_Date($report->Company->Event[0]->Value[0]->Company[0]->Position[0]->Period->StartDate->_,yyyymmdd);?><?emp_check($date->toString('dd/mm/yyyy'))?></div></div>
<div><div class="left_div"><b>Position EndDate </b></div> <div class="right_div"><?$date = new Zend_Date($report->Company->Event[0]->Value[0]->Company[0]->Position[0]->Period->EndDate->_,yyyymmdd);?><?emp_check($date->toString('dd/mm/yyyy'))?></div></div>
<div><div class="left_div"><b>PositionChangeReason </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->Position[0]->PositionChangeReason)?></div></div>
<div><div class="left_div"><b>PositionTitle </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->Position[0]->PositionTitle->_)?></div></div>
<div><div class="left_div"><b>Type </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->Position[0]->Type)?></div></div>
</div><br /><br />
<h2 class="radius">New Position</h2><br /><br />
<div class="gen_div">
<div><div class="left_div"><b>FirstName </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->Position[0]->Person->FirstName)?></div></div>
<div><div class="left_div"><b>LastName </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->Position[0]->Person->LastName)?></div></div>
<div><div class="left_div"><b>Initials </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->Position[0]->Person->Initials)?></div></div>
<div><div class="left_div"><b>Title </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->Position[0]->Person->Title)?></div></div>
<div><div class="left_div"><b>Position StartDate </b></div> <div class="right_div"><?$date = new Zend_Date($report->Company->Event[0]->Value[1]->Company[0]->Position[0]->Period->StartDate->_,yyyymmdd);?><?emp_check($date->toString('dd/mm/yyyy'))?></div></div>
<div><div class="left_div"><b>Position EndDate </b></div> <div class="right_div"><?$date = new Zend_Date($report->Company->Event[0]->Value[1]->Company[0]->Position[0]->Period->EndDate->_,yyyymmdd);?><?emp_check($date->toString('dd/mm/yyyy'))?></div></div>
<div><div class="left_div"><b>PositionChangeReason </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->Position[0]->PositionChangeReason)?></div></div>
<div><div class="left_div"><b>PositionTitle </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->Position[0]->PositionTitle->_)?></div></div>
<div><div class="left_div"><b>Type </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->Position[0]->Type)?></div></div>
</div><br /><br />
<?elseif($eventCode=='GENERAL.MERGER'):?>
<h2 class="radius">Parameterized Description</h2><br /><br />
<div class="gen_div">
<div><div class="left_div"><b>ProviderEventId</b></div> <div class="right_div"><?emp_check($report->ProviderEventId)?></div></div>
<div><div class="left_div"><b>DescriptionElement </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->ParameterizedDescription->DescriptionElement->_)?></div></div>
<?foreach ($report->Company->Event[0]->ParameterizedDescription->Parameter as $Parameter):?>
<div><div class="left_div"><b>Parameter <?emp_check($Parameter->paramname)?></b></div> <div class="right_div"><?emp_check($Parameter->_)?></div></div>
<?endforeach;?>
</div>
<br /><br />
<h2 class="radius">Values</h2><br /><br />
<div class="gen_div">
<div><div class="left_div"><b>CompanyId </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyId)?></div></div>
<div><div class="left_div"><b>CompanyName </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyName[0]->_)?></div></div>
</div><br /><br />
<h2 class="radius">LegalForm</h2><br /><br />
<div class="gen_div">
<div><div class="left_div"><b>CountryLegalForm </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->LegalForm[0]->CountryLegalForm->_)?></div></div>
<div><div class="left_div"><b>UnifiedLegalForm </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->LegalForm[0]->UnifiedLegalForm)?></div></div>
<div><div class="left_div"><b>HouseNumber</b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyAddress[0]->HouseNumber)?></div></div>
<div><div class="left_div"><b>Street</b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyAddress[0]->Street)?></div></div>
<div><div class="left_div"><b>Country </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->LegalForm[0]->Country)?></div></div>
</div><br /><br />
<?elseif($eventCode=='GENERAL.SPLIT_UP'):?>
<h2 class="radius">Parameterized Description</h2><br /><br />
<div class="gen_div">
<div><div class="left_div"><b>ProviderEventId</b></div> <div class="right_div"><?emp_check($report->ProviderEventId)?></div></div>
<div><div class="left_div"><b>DescriptionElement </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->ParameterizedDescription->DescriptionElement->_)?></div></div>
<?foreach ($report->Company->Event[0]->ParameterizedDescription->Parameter as $Parameter):?>
<div><div class="left_div"><b>Parameter <?emp_check($Parameter->paramname)?></b></div> <div class="right_div"><?emp_check($Parameter->_)?></div></div>
<?endforeach;?>
</div>
<br /><br />
<h2 class="radius">Old Values</h2><br /><br />
<div class="gen_div">
<div><div class="left_div"><b>CompanyId </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyId)?></div></div>
<div><div class="left_div"><b>CompanyName </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyName[0]->_)?></div></div>
</div><br /><br />
<h2 class="radius">Old LegalForm</h2><br /><br />
<div class="gen_div">
<div><div class="left_div"><b>CountryLegalForm </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->LegalForm[0]->CountryLegalForm->_)?></div></div>
<div><div class="left_div"><b>UnifiedLegalForm </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->LegalForm[0]->UnifiedLegalForm)?></div></div>
<div><div class="left_div"><b>HouseNumber</b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyAddress[0]->HouseNumber)?></div></div>
<div><div class="left_div"><b>Street</b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CompanyAddress[0]->Street)?></div></div>
<div><div class="left_div"><b>Country </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->LegalForm[0]->Country)?></div></div>
</div><br /><br />
<?foreach ($report->Company->Event[0]->Value[1]->Company as $Company):?>
<h2 class="radius">Values</h2><br /><br />
<div class="gen_div">
<div><div class="left_div"><b>CompanyId </b></div> <div class="right_div"><?emp_check($Company->CompanyId)?></div></div>
<div><div class="left_div"><b>CompanyName </b></div> <div class="right_div"><?emp_check($Company->CompanyName[0]->_)?></div></div>
</div><br /><br />
<h2 class="radius">LegalForm</h2><br /><br />
<div class="gen_div">
<div><div class="left_div"><b>CountryLegalForm </b></div> <div class="right_div"><?emp_check($Company->LegalForm[0]->CountryLegalForm->_)?></div></div>
<div><div class="left_div"><b>UnifiedLegalForm </b></div> <div class="right_div"><?emp_check($Company->LegalForm[0]->UnifiedLegalForm)?></div></div>
<div><div class="left_div"><b>HouseNumber</b></div> <div class="right_div"><?emp_check($Company->CompanyAddress[0]->HouseNumber)?></div></div>
<div><div class="left_div"><b>Street</b></div> <div class="right_div"><?emp_check($Company->CompanyAddress[0]->Street)?></div></div>
<div><div class="left_div"><b>Country </b></div> <div class="right_div"><?emp_check($Company->LegalForm[0]->Country)?></div></div>
</div><br /><br />
<?endforeach;?>
<?elseif($eventCode=='FINANCIAL.ANNUAL_ACCOUNT_AVAILABLE' || 'FINANCIAL.ANNUAL_ACCOUNT_FILED'):?>
<h2 class="radius">Parameterized Description</h2><br /><br />
<div class="gen_div">
<div><div class="left_div"><b>ProviderEventId</b></div> <div class="right_div"><?emp_check($report->ProviderEventId)?></div></div>
<div><div class="left_div"><b>DescriptionElement </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->ParameterizedDescription->DescriptionElement->_)?></div></div>
<?foreach ($report->Company->Event[0]->ParameterizedDescription->Parameter as $Parameter):?>
<div><div class="left_div"><b>Parameter</b></div> <div class="right_div"><?emp_check($Parameter->_)?></div></div>
<?endforeach;?>
</div>
<br /><br />
<?elseif($eventCode=='FINANCIAL.CREDIT_RECOMMENDATION_CHANGE'):?>
<h2 class="radius">Old CreditRecommendation</h2><br /><br />
<div class="gen_div">
<div><div class="left_div"><b>RatingName </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CreditRecommendation[0]->RiskClasses->CommonRiskClass->RatingName->_)?></div></div>
<div><div class="left_div"><b>RatingValue </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[0]->Company[0]->CreditRecommendation[0]->RiskClasses->CommonRiskClass->RatingValue)?></div></div>
</div><br /><br />
<h2 class="radius">New CreditRecommendation</h2><br /><br />
<div class="gen_div">
<div><div class="left_div"><b>RatingName </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->CreditRecommendation[0]->RiskClasses->CommonRiskClass->RatingName->_)?></div></div>
<div><div class="left_div"><b>RatingValue </b></div> <div class="right_div"><?emp_check($report->Company->Event[0]->Value[1]->Company[0]->CreditRecommendation[0]->RiskClasses->CommonRiskClass->RatingValue)?></div></div>
</div><br /><br />
<?endif?>
</div><?endforeach;?>
</div>
</div>
</div><script>$( "#accordion" ).accordion({heightStyle: "content", collapsible: true,active: false });</script>

View File

@ -0,0 +1,144 @@
<div id="center">
<h1 class="titre">Surveillances</h1>
<div class="paragraph">
<?php
if ( empty($this->source) ){
?>
<table id="info">
<tr>
<td width="200" class="StyleInfoLib">Nombre d'entités affichées</td>
<td><?=count($this->result->MonitoringEvents->MonitoringEvent)?></td>
</tr>
<tr>
<td width="200" class="StyleInfoLib">Nombre de surveillances</td>
<td><?=count($this->val)?></td>
</tr>
</table>
<?php
} else {
?>
<table id="info">
<tr>
<td width="200" class="StyleInfoLib">Nombre de surveillances <?=$this->source?></td>
<td><?=$this->nbSurveillances?></td>
</tr>
</table>
<?php
}
?>
</div>
<h2>Liste des surveillances</h2>
<div class='monitor_but'>
<a class="dial" title="Start Monitoring" href='/giant/startmonitoring/CompanyId/<?=$this->CompanyId?>/Pays/<?=$this->Pays?>/lang/<?=serialize($this->listeRapport->MonitoringOptions->MonitoringOption[0]->LanguageCodes->LanguageCode)?>/CompanyName/<?=str_replace(' ', '+', $this->raisonSociale)?>'>Start New Monitoring</a>
</div>
<div class="paragraph">
<table class="tablesorter" id="surveillance" width="570">
<thead>
<tr>
<th width="75">Dénomination Sociale (Siret)</th>
<th width="110">Start Monitoring</th>
<th width="110">End Monitoring</th>
<th width="75">Lang</th>
<th width="75">Count</th>
<th width="150">Event Type</th>
<th width="110">Last Change</th>
</tr>
</thead>
<tbody><pre><? //print_r($this->val_siren);?></pre>
<?php foreach ($this->val_siren as $monitor) {?>
<pre><? //print_r($monitor);?></pre>
<?
//STORE BY ProviderOrderId
$merged = Array();
foreach ($monitor as $MonitoringEvent):
if ($merged[$MonitoringEvent->ProviderOrderId]){
array_push($merged[$MonitoringEvent->ProviderOrderId],$MonitoringEvent) ;
} else {
$merged[$MonitoringEvent->ProviderOrderId][]=$MonitoringEvent;
}
endforeach;
?>
<? foreach ($merged as $MonitoringEv):
//STORE BY type
$merged_type = Array();
foreach ($MonitoringEv as $MonitoringType):
if ($merged_type[$MonitoringType->Company->Event[0]->EventCode]){
array_push($merged_type[$MonitoringType->Company->Event[0]->EventCode],$MonitoringType) ;
} else {
$merged_type[$MonitoringType->Company->Event[0]->EventCode][]=$MonitoringType;
}
endforeach;
?>
<?$resultDB=unserialize($this->action('ret', 'giant',null,array('date_st'=>current($merged_type)[0]->ProviderOrderId)));?>
<? $frontendOptions = array('lifetime' => $this->configVal->cache->lifetime,'automatic_serialization' => true);
$backendOptions = array('cache_dir' => '../data/cache/giant/');
$cache = Zend_Cache::factory('Output','File',$frontendOptions,$backendOptions);
if(($lang = $cache->load('Pays_'.$resultDB['Pays'])) === false) {
$lang = 'en';
}
$language =$lang->MonitoringOptions->MonitoringOption[0]->LanguageCodes->LanguageCode;
?>
<pre><?//var_dump($resultDB);?></pre>
<tr>
<td>
<p><?=$MonitoringEv[0]->Company->CompanyName['0']->_ ?> (<?=$MonitoringEv[0]->Company->CompanyId ?>)</p>
<a class="dialogsurv dial" title="Start Monitoring" href='/giant/startmonitoring/CompanyId/<?=$MonitoringEv[0]->Company->CompanyId?>/Pays/<?=$resultDB['Pays']?>/lang/<?=serialize($language)?>/CompanyName/<?=str_replace(' ', '+',$MonitoringEv[0]->Company->CompanyName['0']->_)?>'><img src="/themes/default/images/interfaces/ajouter.png"/></a>
<a class="dialogsurv dial" title="Stop Monitoring" href='/giant/stopmonitoring/CompanyId/<?=$MonitoringEv[0]->Company->CompanyId?>/Pays/<?=$resultDB['Pays']?>/InternalOrderId/<?=$resultDB['InternalOrderId']?>/CompanyName/<?=str_replace(' ', '+', $MonitoringEv[0]->Company->CompanyName['0']->_)?>'><img src="/themes/default/images/interfaces/supprimer.png"/></a>
<a class="dialogsurv dial" title="Update Monitoring" href='/giant/updatemonitoring/CompanyId/<?=$MonitoringEv[0]->Company->CompanyId?>/Pays/<?=$resultDB['Pays']?>/lang/<?=serialize($language)?>/InternalOrderId/<?=$resultDB['InternalOrderId']?>/CompanyName/<?=str_replace(' ', '+', $MonitoringEv[0]->Company->CompanyName['0']->_)?>'><img src="/themes/default/images/interfaces/editer.png"/></a>
</td>
<td>
<?php
echo "<p>".$resultDB['ActualStartDate'].'</p>';
?>
</td>
<td>
<?php
echo "<p>".$resultDB['ActualEndDate'].'</p>';
?>
</td>
<td>
<?php
echo "<p>".$resultDB['Language'].'</p>';
?>
</td>
<td>
<?php
foreach ($merged_type as $monitor_type) {
echo "<p>".count($monitor_type).'</p>';
}
?>
</td>
<td style='text-align: left'>
<?php
foreach ($merged_type as $monitor_type) {
$name = explode('.', $monitor_type[0]->Company->Event[0]->EventCode);
echo "<a class='ev_code' title='".$monitor_type[0]->Company->Event[0]->EventCode."' href='/giant/retevents/Type/".$monitor_type[0]->Company->Event[0]->EventCode."/Id/".$monitor_type[0]->ProviderOrderId."'><p>".$name[1]."</p></a>";
} //Fin foreach?>
</td>
<td>
<?php
foreach ($merged_type as $monitor_type) {
$dateEv= Array();
foreach ($monitor_type as $last_date) {
$dateEv[]=$last_date->Company->Event[0]->Date->_;
}
echo "<p style='width: 70px;'>".max($dateEv)."</p>";
}
?>
</td>
<?php endforeach; } ?>
</tbody>
</table><br>
</div>
</div>

View File

@ -0,0 +1,52 @@
<div id="center">
<?php if ($this->resultats->NumberOfHits == 0): ?>
<p>Aucun résultats</p>
<?php else: ?>
<div class="giant-search">
<p align="center"><b>
<?php echo number_format($this->resultats->NumberOfHits, 0, ',', ' ')?>
réponses avec les critères <a href="<?php echo $this->lienReferer;?>">"<?php echo $this->referer; ?>"</a>.
<?php echo ($this->resultats->NumberOfHits>$this->userMaxResult)?$this->userMaxResult:$this->resultats->NumberOfHits?> résultats affichés.
Page <?php echo $this->page + 1 .'/'.round($this->resultats->NumberOfHits/$this->userMaxResult)?></b>
</p>
<ol start="<?php echo ($this->userMaxResult * $this->page) + 1; ?>">
<?php foreach ($this->resultats->Results->Company as $resultat) :?>
<?php if($this->debug):?>
<?php echo $this->action('identite', 'debug', null, array('resultat' => $resultat, 'soap' => $this->soap));?>
<?php endif;?>
<li>
<?php echo $this->partial('giant/partials/rowSearch.phtml', array('resultat' => $resultat, 'TestCompanies' => $this->TestCompanies, 'pays', $this->pays));?>
</li>
<?php endforeach;?>
</ol>
<div id="Paginator">
<center>
<table>
<tr>
<?php if ($this->page > 0):?>
<td>
<a href="<?php echo $this->url(array('controller' => 'giant', 'action' => 'search', 'page' => $this->page - 1, 'pays' => $this->pays)) ?>">
<img src="/themes/default/images/boutton_precedent_off.gif" onmouseover="this.src='/themes/default/images/boutton_precedent_on.gif'" onmouseout="this.src='/themes/default/images/boutton_precedent_off.gif'" />
</a>
</td>
<?php endif;?>
<td valign="middle">&nbsp;Page <?php echo $this->page + 1 .'/'. round(($this->resultats->NumberOfHits > $this->userMaxResult)?$this->resultats->NumberOfHits/$this->userMaxResult:1);?>&nbsp;</td>
<?php if ($this->userMaxResult < $this->resultats->NumberOfHits):?>
<td>
<a href="<?php echo $this->url(array('controller' => 'giant', 'action' => 'search', 'page' => $this->page + 1, 'pays' => $this->pays)) ?>">
<img src="/themes/default/images/boutton_suivant_off.gif" onmouseover="this.src='/themes/default/images/boutton_suivant_on.gif'" onmouseout="this.src='/themes/default/images/boutton_suivant_off.gif'" />
</a>
</td>
<?php endif;?>
</tr>
</table>
</center>
</div>
<br />
<p id="contact">
<b>Si aucun résultat ne correspond à votre recherche.
<a href="<?php echo $this->url(array('controller' => 'giant', 'action' => 'contact'))?>">Cliquez-ici.</a></b>
</p>
</div>
<?php endif;?>
</div>

View File

@ -0,0 +1,79 @@
<div id="center">
<form>
<input type="hidden" name="Pays" value="<?=$this->Pays?>" />
<input type="hidden" name="action" value="<?=$this->action?>" />
<input type="hidden" name="CompanyName" value="<?=$this->CompanyName?>" />
<p>
<div style='width: 250px; float: left;'>
<strong>CompanyId: </strong><br />
<input type="text" name="CompanyId" value="<?=$this->CompanyId?>" <?if (!empty($this->CompanyId)):?>disabled="disabled"<?endif?> required /><br /><br />
<strong>Category Name: </strong><br />
<select name="CategoryName" class="all_select">
<option value='All'>All</option>
<option value='CreditRecommendation'>CreditRecommendation</option>
</select><br /><br />
<strong>Event Type: </strong><br />
<select name="EventType" class="all_select">
<option value='EventOnly'>EventOnly</option>
<option value='EventWithData'>EventWithData</option>
</select><br /><br />
<strong>Language Code: </strong><br />
<select name="LanguageCode" class="all_select">
<?php foreach (unserialize($this->lang) as $key=>$language):?>
<option class="lang<?=$key;?>" value=<?=$language;?>><?=$language;?></option>
<?php endforeach;?>
</select><br /><br />
</div>
<div>
<strong>Country: </strong><br />
<?if (!empty($this->CompanyId)):?>
<?php $country = array ('FR'=>'France','BE'=>'Belgium','ES'=>'Spain','GB'=>'United Kingdom','NL'=>'The Netherlands',)?>
<select name="Pays" class="all_select" required>
<option value="FR"><?= $country[$this->Pays] ?></option>
</select><br /><br />
<?else:?>
<select name="Pays" class="all_select" required>
<?foreach($this->countries as $key=>$pays):?>
<option value="<?=$key?>"><?=$pays?></option>
<?endforeach?>
</select><br /><br />
<?endif?>
<strong>Preferred Start Date: </strong><br />
<input type="text" class='datepicker' name="StartDate" value=""/> optional<br /><br />
<strong>Preferred End Date: </strong><br />
<input type="text" class='datepicker' name="EndDate" value="" /> optional<br /><br />
<strong>Monitoring Version: </strong><br />
<input type="text" name="Version" value="1.0" required /><br /><br />
</div>
</p>
</form>
<div id="loading" class="hide_monitor" style="display:none;z-index: 1;">
<center><img style="padding-top:30%" src="/themes/default/images/giant/19-1.gif" /></center>
</div>
<?if ($this->result) :?>
<div class="gen_div">
<div class='monitor_resp radius'><div class="left_div"><b>InternalOrderId</b></div> <div class="right_div"><?=$this->result->Order->InternalOrderId?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>ConsumerId</b></div> <div class="right_div"><?=$this->result->Order->ConsumerId?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>CustomerId</b></div> <div class="right_div"><?=$this->result->Order->CustomerId?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>ProviderId</b></div> <div class="right_div"><?=$this->result->Order->ProviderId?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>CountryCode</b></div> <div class="right_div"><?=$this->result->Order->CountryCode?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>CompanyId</b></div> <div class="right_div"><?=$this->result->Order->CompanyId?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>OrderType</b></div> <div class="right_div"><?=$this->result->Order->OrderType?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>EventType</b></div> <div class="right_div"><?=$this->result->Order->EventType?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>CategoryName</b></div> <div class="right_div"><?=$this->result->Order->CategoryName?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>Version</b></div> <div class="right_div"><?=$this->result->Order->Version?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>LanguageCode</b></div> <div class="right_div"><?=$this->result->Order->LanguageCode?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>OrderStatus</b></div> <div class="right_div"><?=$this->result->Order->OrderStatus?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>OrderDateTime</b></div> <div class="right_div"><?=$this->result->Order->OrderDateTime?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>DateTimeCompleted</b></div> <div class="right_div"><?=$this->result->Order->DateTimeCompleted?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>PreferredStartDate</b></div> <div class="right_div"><?=$this->result->Order->PreferredStartDate?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>ActualStartDate</b></div> <div class="right_div"><?=$this->result->Order->ActualStartDate?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>PreferredEndDate</b></div> <div class="right_div"><?=$this->result->Order->PreferredEndDate?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>ActualEndDate</b></div> <div class="right_div"><?=$this->result->Order->ActualEndDate?></div></div>
</div>
<?endif?>
</div>
<script type="text/javascript" src="/themes/default/scripts/giant_monitoring.js" />
<script type="text/javascript" src="/themes/default/scripts/giant.js" />

View File

@ -0,0 +1,45 @@
<div id="center">
<form>
<input type="hidden" name="CompanyId" value="<?=$this->CompanyId?>" />
<input type="hidden" name="Pays" value="<?=$this->Pays?>" />
<input type="hidden" name="action" value="<?=$this->action?>" />
<p>
<strong>CompanyId: </strong><?=$this->CompanyId?><br /><br />
<strong>Company Name: </strong><?=$this->CompanyName?><br /><br />
<div style='width: 250px; float: left;'>
<strong>Internal Order Id: </strong><br />
<input type="text" name="InternalOrderId" value="<?=$this->InternalOrderId?>" required /><br /><br />
</div>
<div>
<strong>Preferred End Date: </strong><br />
<input type="text" class='datepicker' name="EndDate" value="" required /> optional<br /><br />
</div>
</p>
</form>
<div id="loading" class="hide_monitor" style="display:none;z-index: 1;">
<center><img style="padding-top:30%" src="/themes/default/images/giant/19-1.gif" /></center>
</div>
<?if ($this->result) :?>
<div class="gen_div">
<div class='monitor_resp radius'><div class="left_div"><b>InternalOrderId</b></div> <div class="right_div"><?=$this->result->Order->InternalOrderId?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>ConsumerId</b></div> <div class="right_div"><?=$this->result->Order->ConsumerId?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>CustomerId</b></div> <div class="right_div"><?=$this->result->Order->CustomerId?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>ProviderId</b></div> <div class="right_div"><?=$this->result->Order->ProviderId?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>CountryCode</b></div> <div class="right_div"><?=$this->result->Order->CountryCode?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>CompanyId</b></div> <div class="right_div"><?=$this->result->Order->CompanyId?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>OrderType</b></div> <div class="right_div"><?=$this->result->Order->OrderType?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>EventType</b></div> <div class="right_div"><?=$this->result->Order->EventType?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>CategoryName</b></div> <div class="right_div"><?=$this->result->Order->CategoryName?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>Version</b></div> <div class="right_div"><?=$this->result->Order->Version?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>LanguageCode</b></div> <div class="right_div"><?=$this->result->Order->LanguageCode?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>OrderStatus</b></div> <div class="right_div"><?=$this->result->Order->OrderStatus?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>OrderDateTime</b></div> <div class="right_div"><?=$this->result->Order->OrderDateTime?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>DateTimeCompleted</b></div> <div class="right_div"><?=$this->result->Order->DateTimeCompleted?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>ActualStartDate</b></div> <div class="right_div"><?=$this->result->Order->ActualStartDate?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>PreferredEndDate</b></div> <div class="right_div"><?=$this->result->Order->PreferredEndDate?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>ActualEndDate</b></div> <div class="right_div"><?=$this->result->Order->ActualEndDate?></div></div>
</div>
<?endif?>
</div>
<script type="text/javascript" src="/themes/default/scripts/giant_monitoring.js" />

View File

@ -0,0 +1,66 @@
<div id="center">
<form>
<input type="hidden" name="CompanyId" value="<?=$this->CompanyId?>" />
<input type="hidden" name="Pays" value="<?=$this->Pays?>" />
<input type="hidden" name="action" value="<?=$this->action?>" />
<p>
<strong>CompanyId: </strong><?=$this->CompanyId?><br /><br />
<strong>Company Name: </strong><?=$this->CompanyName?><br /><br />
<div style='width: 250px; float: left;'>
<strong>Internal Order Id: </strong><br />
<input type="text" name="InternalOrderId" value="<?=$this->InternalOrderId?>" required /><br /><br />
<strong>New Category Name: </strong><br />
<select name="CategoryName" class="all_select">
<option value=''></option>
<option value='All'>All</option>
<option value='CreditRecommendation'>CreditRecommendation</option>
</select> optional<br /><br />
<strong>New Event Type: </strong><br />
<select name="EventType" class="all_select">
<option value=''></option>
<option value='EventOnly'>EventOnly</option>
<option value='EventWithData'>EventWithData</option>
</select> optional<br /><br />
</div>
<div>
<strong>Preferred Start Date: </strong><br />
<input type="text" class='datepicker' name="StartDate" value=""/> optional<br /><br />
<strong>New Monitoring Version: </strong><br />
<input type="text" name="Version" value="" /> optional<br /><br />
<strong>New Language Code: </strong><br />
<select name="LanguageCode" class="all_select">
<option value=''></option>
<?php foreach (unserialize($this->lang) as $key=>$language):?>
<option class="lang<?=$key;?>" value=<?=$language;?>><?=$language;?></option>
<?php endforeach;?>
</select> optional<br /><br />
</div>
</p>
</form>
<div id="loading" class="hide_monitor" style="display:none;z-index: 1;">
<center><img style="padding-top:30%" src="/themes/default/images/giant/19-1.gif" /></center>
</div>
<?if ($this->result) :?>
<div class="gen_div">
<div class='monitor_resp radius'><div class="left_div"><b>InternalOrderId</b></div> <div class="right_div"><?=$this->result->Order->InternalOrderId?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>ConsumerId</b></div> <div class="right_div"><?=$this->result->Order->ConsumerId?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>CustomerId</b></div> <div class="right_div"><?=$this->result->Order->CustomerId?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>ProviderId</b></div> <div class="right_div"><?=$this->result->Order->ProviderId?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>CountryCode</b></div> <div class="right_div"><?=$this->result->Order->CountryCode?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>CompanyId</b></div> <div class="right_div"><?=$this->result->Order->CompanyId?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>OrderType</b></div> <div class="right_div"><?=$this->result->Order->OrderType?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>EventType</b></div> <div class="right_div"><?=$this->result->Order->EventType?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>CategoryName</b></div> <div class="right_div"><?=$this->result->Order->CategoryName?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>Version</b></div> <div class="right_div"><?=$this->result->Order->Version?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>LanguageCode</b></div> <div class="right_div"><?=$this->result->Order->LanguageCode?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>OrderStatus</b></div> <div class="right_div"><?=$this->result->Order->OrderStatus?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>OrderDateTime</b></div> <div class="right_div"><?=$this->result->Order->OrderDateTime?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>DateTimeCompleted</b></div> <div class="right_div"><?=$this->result->Order->DateTimeCompleted?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>PreferredStartDate</b></div> <div class="right_div"><?=$this->result->Order->PreferredStartDate?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>ActualStartDate</b></div> <div class="right_div"><?=$this->result->Order->ActualStartDate?></div></div>
<div class='monitor_resp radius'><div class="left_div"><b>ActualEndDate</b></div> <div class="right_div"><?=$this->result->Order->ActualEndDate?></div></div>
</div>
<?endif?>
</div>
<script type="text/javascript" src="/themes/default/scripts/giant_monitoring.js" />

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