Travail sur nouveau theme 2015
This commit is contained in:
parent
aaeb8163e6
commit
074a27dec6
@ -1,7 +1,6 @@
|
||||
<?php
|
||||
// Generated by ZF's ./bin/classmap_generator.php
|
||||
return array(
|
||||
<<<<<<< .working
|
||||
'Bootstrap' => dirname(__FILE__) . '//Bootstrap.php',
|
||||
'AccountController' => dirname(__FILE__) . '//controllers/AccountController.php',
|
||||
'AdminController' => dirname(__FILE__) . '//controllers/AdminController.php',
|
||||
@ -20,6 +19,7 @@ return array(
|
||||
'JuridiqueController' => dirname(__FILE__) . '//controllers/JuridiqueController.php',
|
||||
'LogoController' => dirname(__FILE__) . '//controllers/LogoController.php',
|
||||
'MandataireController' => dirname(__FILE__) . '//controllers/MandataireController.php',
|
||||
'OrderController' => dirname(__FILE__) . '//controllers/OrderController.php',
|
||||
'ParamsController' => dirname(__FILE__) . '//controllers/ParamsController.php',
|
||||
'PiecesController' => dirname(__FILE__) . '//controllers/PiecesController.php',
|
||||
'PrintController' => dirname(__FILE__) . '//controllers/PrintController.php',
|
||||
@ -39,41 +39,4 @@ return array(
|
||||
'Zend_View_Helper_SirenTexte' => dirname(__FILE__) . '//views/default2015/helpers/SirenTexte.php',
|
||||
'Zend_View_Helper_SiretTexte' => dirname(__FILE__) . '//views/default2015/helpers/SiretTexte.php',
|
||||
'Zend_View_Helper_TrueLabel' => dirname(__FILE__) . '//views/default2015/helpers/TrueLabel.php',
|
||||
=======
|
||||
'Bootstrap' => dirname(__FILE__) . '//Bootstrap.php',
|
||||
'AideController' => dirname(__FILE__) . '//controllers/AideController.php',
|
||||
'AuthController' => dirname(__FILE__) . '//controllers/AuthController.php',
|
||||
'BdfController' => dirname(__FILE__) . '//controllers/BdfController.php',
|
||||
'DashboardController' => dirname(__FILE__) . '//controllers/DashboardController.php',
|
||||
'DirigeantController' => dirname(__FILE__) . '//controllers/DirigeantController.php',
|
||||
'ErrorController' => dirname(__FILE__) . '//controllers/ErrorController.php',
|
||||
'EvaluationController' => dirname(__FILE__) . '//controllers/EvaluationController.php',
|
||||
'FichierController' => dirname(__FILE__) . '//controllers/FichierController.php',
|
||||
'FinanceController' => dirname(__FILE__) . '//controllers/FinanceController.php',
|
||||
'GiantController' => dirname(__FILE__) . '//controllers/GiantController.php',
|
||||
'IdentiteController' => dirname(__FILE__) . '//controllers/IdentiteController.php',
|
||||
'IndexController' => dirname(__FILE__) . '//controllers/IndexController.php',
|
||||
'JuridiqueController' => dirname(__FILE__) . '//controllers/JuridiqueController.php',
|
||||
'LogoController' => dirname(__FILE__) . '//controllers/LogoController.php',
|
||||
'MandataireController' => dirname(__FILE__) . '//controllers/MandataireController.php',
|
||||
'OrderController' => dirname(__FILE__) . '//controllers/OrderController.php',
|
||||
'PiecesController' => dirname(__FILE__) . '//controllers/PiecesController.php',
|
||||
'PrintController' => dirname(__FILE__) . '//controllers/PrintController.php',
|
||||
'RechercheController' => dirname(__FILE__) . '//controllers/RechercheController.php',
|
||||
'SaisieController' => dirname(__FILE__) . '//controllers/SaisieController.php',
|
||||
'SurveillanceController' => dirname(__FILE__) . '//controllers/SurveillanceController.php',
|
||||
'TelechargementController' => dirname(__FILE__) . '//controllers/TelechargementController.php',
|
||||
'UserController' => dirname(__FILE__) . '//controllers/UserController.php',
|
||||
'WorldcheckController' => dirname(__FILE__) . '//controllers/WorldcheckController.php',
|
||||
'Zend_View_Helper_CssHelper' => dirname(__FILE__) . '//views/default/helpers/CssHelper.php',
|
||||
'Zend_View_Helper_Editable' => dirname(__FILE__) . '//views/default/helpers/Editable.php',
|
||||
'Zend_View_Helper_FormatPct' => dirname(__FILE__) . '//views/default/helpers/FormatPct.php',
|
||||
'Zend_View_Helper_JavascriptHelper' => dirname(__FILE__) . '//views/default/helpers/JavascriptHelper.php',
|
||||
'Zend_View_Helper_MenuScript' => dirname(__FILE__) . '//views/default/helpers/MenuScript.php',
|
||||
'Zend_View_Helper_NewsDate' => dirname(__FILE__) . '//views/mobile/helpers/NewsDate.php',
|
||||
'Zend_View_Helper_RemplaceSiren' => dirname(__FILE__) . '//views/default/helpers/RemplaceSiren.php',
|
||||
'Zend_View_Helper_SirenTexte' => dirname(__FILE__) . '//views/default/helpers/SirenTexte.php',
|
||||
'Zend_View_Helper_SiretTexte' => dirname(__FILE__) . '//views/default/helpers/SiretTexte.php',
|
||||
'Zend_View_Helper_TrueLabel' => dirname(__FILE__) . '//views/default/helpers/TrueLabel.php',
|
||||
>>>>>>> .merge-right.r7277
|
||||
);
|
||||
|
@ -204,7 +204,7 @@ class SurveillanceController extends Zend_Controller_Action
|
||||
$this->_helper->layout->disableLayout();
|
||||
$this->_forward('ajouter', 'surveillance', null, array( 'source' => 'score' ));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Affiche les infos d'une surveillance
|
||||
*/
|
||||
@ -317,6 +317,20 @@ class SurveillanceController extends Zend_Controller_Action
|
||||
if ( $q == 'Siren, Référence, Dénomination Sociale' ) { $q = null; }
|
||||
$this->view->assign('q', $q);
|
||||
|
||||
$tabSource = array();
|
||||
foreach ($this->sourceDroit as $s => $perm) {
|
||||
if ($user->checkPerm($perm)) {
|
||||
$tabSource[] = array(
|
||||
'value' => $s,
|
||||
'name' => $this->sourceTxt[$s],
|
||||
'select' => (!empty($source) && $source==$s) ? ' selected' : '',
|
||||
);
|
||||
}
|
||||
}
|
||||
$this->view->assign('tabSource', $tabSource);
|
||||
|
||||
|
||||
|
||||
$detail = true;
|
||||
|
||||
switch ( $tri ) {
|
||||
@ -435,7 +449,7 @@ class SurveillanceController extends Zend_Controller_Action
|
||||
if( !$user->checkPerm('portefeuille') ) {
|
||||
$this->_forward('perms', 'error');
|
||||
}
|
||||
|
||||
|
||||
$this->view->headScript()->appendFile($this->theme->pathScript.'/surveillance.js', 'text/javascript');
|
||||
|
||||
$request = $this->getRequest();
|
||||
|
@ -7,7 +7,7 @@
|
||||
<div class="input-group-btn input-group-sm">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Recherche par <span class="caret"></span></button>
|
||||
<ul class="dropdown-menu dropdown-menu-right">
|
||||
<li><a href="#">SIREN/SIRET</a></li>
|
||||
<li><a href="#">Siren/Siret</a></li>
|
||||
<li><a href="#">Dénomination</a></li>
|
||||
<li><a href="#">Référence</a></li>
|
||||
</ul>
|
||||
@ -25,7 +25,7 @@
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="#" data-source="tout">Toutes sources</a></li>
|
||||
<?php foreach ($this->tabSource as $s) { ?>
|
||||
<li><a href="#" data-source="<?=$s['value']?>">Uniquement la source <?=$s['name']?></a></li>
|
||||
<li><a href="#" data-source="<?=$s['value']?>">Uniquement source <?=$s['name']?></a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
@ -41,6 +41,7 @@
|
||||
<li><a href="#" data-source="tout">Référence</a></li>
|
||||
<li><a href="#" data-source="tout">Date d'ajout</a></li>
|
||||
<li><a href="#" data-source="tout">Date d'envoi</a></li>
|
||||
<li role="separator" class="divider"></li>
|
||||
<li class="dropdown-header">Décroissant</li>
|
||||
<li><a href="#" data-source="tout">Siren</a></li>
|
||||
<li><a href="#" data-source="tout">Dénomination</a></li>
|
||||
@ -57,7 +58,7 @@
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="#" data-source="tout">Toutes sources</a></li>
|
||||
<?php foreach ($this->tabSource as $s) { ?>
|
||||
<li><a href="#" data-source="<?=$s['value']?>">Uniquement la source <?=$s['name']?></a></li>
|
||||
<li><a href="#" data-source="<?=$s['value']?>">Uniquement source <?=$s['name']?></a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
@ -65,148 +66,63 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row"><h2><?=$this->translate("Liste des surveillances")?></h2></div>
|
||||
<div class="row"><h2><?=$this->translate("Liste des surveillances")?>
|
||||
<span class="badge pull-right"><?=$this->nbSurveillances?></span></h2></div>
|
||||
|
||||
<table class="table table-bordered" id="surveillance">
|
||||
<table class="table table-hover table-condensed" id="surveillance">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="75">Siren</th>
|
||||
<th width="150">Dénomination Sociale</th>
|
||||
<th width="90">Référence</th>
|
||||
<th width="150">Surveillance</th>
|
||||
<th width="75">Ajout le</th>
|
||||
<th width="75">Envoyé le</th>
|
||||
<th>Siren</th>
|
||||
<th>Dénomination Sociale</th>
|
||||
<th>CP Ville</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i = 0;?>
|
||||
<?php foreach ($this->surveillances as $item) {?>
|
||||
<?php $i++;?>
|
||||
<tr>
|
||||
<td class="aleft">
|
||||
<a href="<?=$this->url(array(
|
||||
'controller' => 'identite',
|
||||
'action' => 'fiche',
|
||||
'siret' => $item['siren'].$item['nic'],
|
||||
))?>"><?=$item['siren']?></a>
|
||||
<a href="<?=$this->url(array('controller'=>'identite', 'action'=>'fiche', 'siret'=>$item['siren']),
|
||||
'default', true)?>"><?=$item['siren']?></a>
|
||||
</td>
|
||||
<td>
|
||||
<?=$item['rs']?><br/><i><?=$item['cp']?> <?=$item['ville']?></i>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<?php
|
||||
foreach ($this->listSources as $source) {
|
||||
$ok = false;
|
||||
foreach ($item['sources'] as $surveillance) {
|
||||
if ( $surveillance['source'] == $source ) {
|
||||
if ($surveillance['ref'] != '') { ?><p><?=$surveillance['ref']?></p><?php }
|
||||
else { ?><p>-</p><?php }
|
||||
$ok = true;
|
||||
}
|
||||
}
|
||||
if ( $ok === false ) {?><p>-</p><?php }
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
|
||||
<td style="white-space: nowrap;">
|
||||
<?php
|
||||
foreach ($this->listSources as $source) {
|
||||
$ok = false;
|
||||
foreach ($item['sources'] as $surveillance) {
|
||||
if ( $surveillance['source'] == $source ) {
|
||||
?>
|
||||
<div class="action">
|
||||
<?=ucfirst($surveillance['source'])?>
|
||||
<a class="dialogsurv" href="<?=$this->url(array(
|
||||
'controller' => 'surveillance',
|
||||
'action' => 'ajouter',
|
||||
'siret' => $item['siren'].$item['nic'],
|
||||
'source' => $surveillance['source'],
|
||||
), 'default', true)?>" title="Ajouter la surveillance <?=$surveillance['source']?>">
|
||||
<img src="/themes/default/images/interfaces/ajouter.png"/>
|
||||
</a>
|
||||
<a class="dialogsurv" href="<?=$this->url(array(
|
||||
'controller' => 'surveillance',
|
||||
'action' => 'ajouter',
|
||||
'siret' => $item['siren'].$item['nic'],
|
||||
'ref' => $surveillance['ref'],
|
||||
'email' => $surveillance['email'],
|
||||
'source' => $surveillance['source']
|
||||
), 'default' , true)?>" title="Editer la surveillance <?=$source?>">
|
||||
<img src="/themes/default/images/interfaces/editer.png"/>
|
||||
</a>
|
||||
<a href="<?=$this->url(array(
|
||||
'controller' => 'surveillance',
|
||||
'action' => 'supprimer',
|
||||
'siret' => $item['siren'].$item['nic'],
|
||||
'ref' => urlencode($surveillance['ref']),
|
||||
'email' => $surveillance['email'],
|
||||
'source' => $surveillance['source']
|
||||
))?>" title="Supprimer la surveillance <?=$surveillance['source']?>">
|
||||
<img src="/themes/default/images/interfaces/supprimer.png"/>
|
||||
</a>
|
||||
</div>
|
||||
<?php
|
||||
$ok = true;
|
||||
}
|
||||
}
|
||||
if ( $ok === false ) {
|
||||
?>
|
||||
<div class="action">
|
||||
<?=ucfirst($source)?>
|
||||
<a class="dialogsurv" href="<?=$this->url(array(
|
||||
'controller' => 'surveillance',
|
||||
'action' => 'ajouter',
|
||||
'siret' => $item['siren'].$item['nic'],
|
||||
'source' => $source
|
||||
), null, true)?>" title="Ajouter la surveillance <?=$source?>">
|
||||
<img src="/themes/default/images/interfaces/ajouter.png"/>
|
||||
</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<br/>
|
||||
<?php } //Fin foreach?>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<?php
|
||||
foreach ($this->listSources as $source) {
|
||||
$ok = false;
|
||||
foreach ($item['sources'] as $surveillance) {
|
||||
if ( $surveillance['source'] == $source ) {
|
||||
?>
|
||||
<p><?=substr($surveillance['dateAjout'], 8, 2).'/'.
|
||||
substr($surveillance['dateAjout'], 5, 2).'/'.
|
||||
substr($surveillance['dateAjout'], 0, 4)?></p>
|
||||
<?php
|
||||
$ok = true;
|
||||
}
|
||||
}
|
||||
if ( $ok === false ) {?><p>-</p><?php }
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<td>
|
||||
<?php
|
||||
foreach ($this->listSources as $source) {
|
||||
$ok = false;
|
||||
foreach ($item['sources'] as $surveillance) {
|
||||
if ( $surveillance['source'] == $source ) {
|
||||
$pDate = substr($surveillance['dateDerEnvoi'], 8, 2).'/'.
|
||||
substr($surveillance['dateDerEnvoi'], 5, 2).'/'.
|
||||
substr($surveillance['dateDerEnvoi'], 0, 4);
|
||||
if ($pDate != '00/00/0000') {
|
||||
echo '<p>'.$pDate.'</p>';
|
||||
} else {
|
||||
echo '<p>-</p>';
|
||||
}
|
||||
$ok = true;
|
||||
}
|
||||
}
|
||||
if ( $ok === false ) {?><p>-</p><?php }
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<td><?=$item['rs']?></td>
|
||||
<td><small><?=$item['cp']?> <?=$item['ville']?></small></td>
|
||||
<td data-toggle="tooltip" data-placement="top" title="Cliquez pour afficher les détails">
|
||||
<span class="glyphicon glyphicon-plus surv-expand" aria-hidden="true" data-id="<?=$i?>"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Details -->
|
||||
<tr class="surv-detail" id="<?=$i?>" style="display: none;">
|
||||
<td colspan="4">
|
||||
<table class="table table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Etablissement</th>
|
||||
<th>Référence</th>
|
||||
<th>Source</th>
|
||||
<th>Date d'ajout</th>
|
||||
<th>Date dernier envoi</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<?php foreach ($item['sources'] as $s) {?>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="<?=$this->url(array('controller'=>'identite', 'action'=>'fiche', 'siret'=>$item['siren'].$item['nic']),
|
||||
'default', true)?>"><?=$item['nic']?></a>
|
||||
</td>
|
||||
<td><?=$s['ref']?></td>
|
||||
<td><?=$s['source']?></td>
|
||||
<td><?=substr($s['dateAjout'],8,2).'/'.substr($s['dateAjout'],5,2).'/'.substr($s['dateAjout'],0,4)?></td>
|
||||
<td><?=substr($s['dateDerEnvoi'],8,2).'/'.substr($s['dateDerEnvoi'],5,2).'/'.substr($s['dateDerEnvoi'],0,4)?></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -226,39 +142,20 @@
|
||||
<?php }?>
|
||||
|
||||
<script type="text/javascript">
|
||||
function submitTri() {
|
||||
var tri = $('select[name=tri] option:selected').val();
|
||||
var triMode = $('select[name=triMode] option:selected').val();
|
||||
var source = $('select[name=type] option:selected').val();
|
||||
window.location.href = '<?=$this->url(array(
|
||||
'controller'=>'surveillance' ,
|
||||
'action'=>'liste',
|
||||
'q' => $this->q,
|
||||
), 'default', true)?>/source/'+source+'/tri/'+tri+'/triMode/'+triMode;
|
||||
}
|
||||
$('.surv-expand').on('click', function(e) {
|
||||
e.preventDefault();
|
||||
var id = $(this).data('id');
|
||||
var mode = $('tr.surv-detail#'+id).css('display');
|
||||
if (mode=='none') {
|
||||
$('tr.surv-detail').css('display', 'none');
|
||||
$('tr.surv-detail#'+id).css('display', '');
|
||||
$('.surv-expand').removeClass('glyphicon-minus').addClass('glyphicon-plus');
|
||||
$(this).removeClass('glyphicon-plus').addClass('glyphicon-minus');
|
||||
} else {
|
||||
$('tr.surv-detail#'+id).css('display', 'none');
|
||||
$(this).removeClass('glyphicon-minus').addClass('glyphicon-plus');
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
$('select[name=page]').change(function(){
|
||||
window.location.href = $(this).val();
|
||||
});
|
||||
|
||||
$('select[name=type]').change(function() {
|
||||
submitTri();
|
||||
});
|
||||
|
||||
$('select[name=tri]').change(function() {
|
||||
submitTri();
|
||||
});
|
||||
|
||||
$('input[name=q]').focusin(function(){
|
||||
var txt = 'Siren, Référence, Dénomination Sociale';
|
||||
var val = $(this).val();
|
||||
if ( val == '' || val == txt ) { $(this).val(''); }
|
||||
}).focusout(function(){
|
||||
var txt = 'Siren, Référence, Dénomination Sociale';
|
||||
var val = $(this).val();
|
||||
if ( val == '' ){ $(this).val(txt); }
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
@ -1,21 +1,25 @@
|
||||
<div id="center">
|
||||
<h1>ADMINISTRATION</h1>
|
||||
<div class="row"><h1 class="title">ADMINISTRATION</h1></div>
|
||||
|
||||
<h2>Relevé de consommation complet</h2>
|
||||
<div class="paragraph">
|
||||
<div class="row"><h2>Relevé de consommation complet</h2></div>
|
||||
<?=$this->action('conso', 'user', null , array('login'=>$this->login, 'idClient'=>$this->idClient));?>
|
||||
</div>
|
||||
|
||||
<h2>Liste des profils utilisateurs</h2>
|
||||
<div class="paragraph">
|
||||
<div class="row"><h2>Liste des profils utilisateurs</h2></div>
|
||||
<a href="<?=$this->url(array('controller' => 'user','action' => 'index','op' => 'new'), 'default', true)?>">
|
||||
Créer un profil utilisateur</a>
|
||||
</div>
|
||||
|
||||
<div class="paragraph">
|
||||
<?php if (count($this->utilisateurs)>0) {?>
|
||||
|
||||
<table id="utilisateur" class="data">
|
||||
<table id="utilisateur" class="table table-hover data">
|
||||
<thead>
|
||||
<tr class="titre">
|
||||
<th class="StyleInfoLib">Login</td>
|
||||
<th class="StyleInfoLib">Actions</td>
|
||||
<th class="StyleInfoLib">Actif</td>
|
||||
<th class="StyleInfoLib">Informations</td>
|
||||
<th class="StyleInfoLib">Référence</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if (isset($message) && $message != '') {?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
@ -24,13 +28,6 @@
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr class="titre">
|
||||
<td class="StyleInfoLib">Login</td>
|
||||
<td class="StyleInfoLib">Actions</td>
|
||||
<td class="StyleInfoLib">Actif</td>
|
||||
<td class="StyleInfoLib">Informations</td>
|
||||
<td class="StyleInfoLib">Référence</td>
|
||||
</tr>
|
||||
<?php
|
||||
foreach ($this->utilisateurs as $uti) {
|
||||
$lienParams = ' login="'.$uti->login.'"';
|
||||
@ -72,10 +69,9 @@ foreach ($this->utilisateurs as $uti) {
|
||||
<td class="StyleInfoData"><?php echo $uti->reference?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php }?>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('a.delete').on('click', function(e){
|
||||
|
15
application/views/default2015v2/helpers/CssHelper.php
Normal file
15
application/views/default2015v2/helpers/CssHelper.php
Normal 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();
|
||||
|
||||
}
|
||||
}
|
19
application/views/default2015v2/helpers/Editable.php
Normal file
19
application/views/default2015v2/helpers/Editable.php
Normal 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;
|
||||
}
|
||||
}
|
11
application/views/default2015v2/helpers/FormatPct.php
Normal file
11
application/views/default2015v2/helpers/FormatPct.php
Normal 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;
|
||||
}
|
||||
}
|
28
application/views/default2015v2/helpers/JavascriptHelper.php
Normal file
28
application/views/default2015v2/helpers/JavascriptHelper.php
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
24
application/views/default2015v2/helpers/MenuScript.php
Normal file
24
application/views/default2015v2/helpers/MenuScript.php
Normal 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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
35
application/views/default2015v2/helpers/NewsDate.php
Normal file
35
application/views/default2015v2/helpers/NewsDate.php
Normal 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;
|
||||
}
|
||||
}
|
40
application/views/default2015v2/helpers/RemplaceSiren.php
Normal file
40
application/views/default2015v2/helpers/RemplaceSiren.php
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
10
application/views/default2015v2/helpers/SirenTexte.php
Normal file
10
application/views/default2015v2/helpers/SirenTexte.php
Normal 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);
|
||||
}
|
||||
}
|
21
application/views/default2015v2/helpers/SiretTexte.php
Normal file
21
application/views/default2015v2/helpers/SiretTexte.php
Normal 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;
|
||||
}
|
||||
}
|
29
application/views/default2015v2/helpers/TrueLabel.php
Normal file
29
application/views/default2015v2/helpers/TrueLabel.php
Normal 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);
|
||||
}
|
||||
}
|
@ -0,0 +1 @@
|
||||
<?php
|
@ -0,0 +1 @@
|
||||
<?php
|
@ -0,0 +1 @@
|
||||
<?php
|
@ -0,0 +1 @@
|
||||
<?php
|
@ -0,0 +1 @@
|
||||
<?php
|
@ -0,0 +1 @@
|
||||
<?php
|
@ -0,0 +1 @@
|
||||
<?php
|
44
application/views/default2015v2/scripts/admin/index.phtml
Normal file
44
application/views/default2015v2/scripts/admin/index.phtml
Normal file
@ -0,0 +1,44 @@
|
||||
<div id="center">
|
||||
<h1>ADMINISTRATION</h1>
|
||||
|
||||
<h2>Information client</h2>
|
||||
<div class="paragraph">
|
||||
<p>Nom : <?=$this->Nom?></p>
|
||||
<p>Siret : <?=$this->Siren?> <i><?=$this->Nic?></i></p>
|
||||
<p>Test : <?=$this->Test?></p>
|
||||
</div>
|
||||
|
||||
<h2>Liste des services</h2>
|
||||
<div class="paragraph">
|
||||
<p>Les services ou groupes d'utilisateurs sont paramétrés suivant le contrat établi entre votre société et Scores & Decisions.
|
||||
Pour ajouter des services, vous pouvez en faire la demande auprès du support ou de votre commercial.</p>
|
||||
<?php if (count($this->Services) > 0) {?>
|
||||
<table class="data">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<th colspan="2">Action</th>
|
||||
<th>Actif</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($this->Services as $item) {?>
|
||||
<?php
|
||||
$trStyle = "";
|
||||
if ($item->Editable == 0){
|
||||
$trStyle = ' style="background-color:#cccccc;"';
|
||||
}
|
||||
?>
|
||||
<tr<?=$trStyle?>>
|
||||
<td><?=$item->Label?></td>
|
||||
<td><a href="<?=$this->url(array('controller'=>'admin', 'action' => 'users', 'service'=>$item->Code), 'default', true)?>">Liste des utilisateurs</a></td>
|
||||
<td><a href="#">Paramètrage</a></td>
|
||||
<td><?=$item->Active?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php }?>
|
||||
|
||||
</div>
|
||||
</div>
|
@ -0,0 +1 @@
|
||||
<?php
|
55
application/views/default2015v2/scripts/admin/user.phtml
Normal file
55
application/views/default2015v2/scripts/admin/user.phtml
Normal file
@ -0,0 +1,55 @@
|
||||
<div id="center">
|
||||
<h1>ADMINISTRATION</h1>
|
||||
<h2>Gestion utilisateur <span style="color:red;"><?=$this->User->Login?></span></h2>
|
||||
|
||||
<div class="paragraph">
|
||||
<h3><?=$this->User->Civilite?>. <?=$this->User->Nom?> <?=$this->User->Prenom?></h3>
|
||||
</div>
|
||||
|
||||
<h2>Identité</h2>
|
||||
<div class="paragraph">
|
||||
<table class="data">
|
||||
<tbody>
|
||||
<tr><td>Identifiant :</td><td><?=$this->User->Login?></td></tr>
|
||||
<tr><td>Courriel :</td><td><?=$this->User->Email?></td></tr>
|
||||
<tr><td>Actif :</td><td><?=$this->User->Enable?></td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2>Service</h2>
|
||||
<div class="paragraph">
|
||||
<table class="data">
|
||||
<tbody>
|
||||
<tr><td>Nom :</td><td><?=$this->User->ServiceLabel?></td></tr>
|
||||
<tr><td>Adresse IP :</td>
|
||||
<td>
|
||||
<?php foreach ($this->User->IP as $ip) {?>
|
||||
<?=$ip?></br>
|
||||
<?php }?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2>Accès</h2>
|
||||
<div class="paragraph">
|
||||
<table class="data">
|
||||
<tbody>
|
||||
<?php foreach($this->User->Acces->item as $acces) {?>
|
||||
<tr>
|
||||
<td><?=$acces->Label?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2>Préférences</h2>
|
||||
<div class="paragraph">
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
36
application/views/default2015v2/scripts/admin/users.phtml
Normal file
36
application/views/default2015v2/scripts/admin/users.phtml
Normal file
@ -0,0 +1,36 @@
|
||||
<div id="center">
|
||||
<h1>ADMINISTRATION</h1>
|
||||
<h2>Informations service</h2>
|
||||
<div class="paragraph">
|
||||
<p>Afficher les caratéristiques du service</p>
|
||||
<p><a href="#">Créer un utilisateur</a></p>
|
||||
</div>
|
||||
|
||||
<h2>Liste des utilisateurs</h2>
|
||||
<div class="paragraph">
|
||||
<?php if (count($this->Users) > 0) {?>
|
||||
<table class="data">
|
||||
<thead>
|
||||
<th>Identifiant</th>
|
||||
<th>Identité</th>
|
||||
<th>Actif</th>
|
||||
<th>Action</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($this->Users as $item) {?>
|
||||
<tr>
|
||||
<td><?=$item->Login?></td>
|
||||
<td><?=$item->Civilite?>. <?=$item->Nom?> <?=$item->Prenom?></td>
|
||||
<td><?=$item->Enable?></td>
|
||||
<td>
|
||||
<a href="<?=$this->url(array('controller'=> 'admin', 'action'=>'user', 'id'=>$item->id),
|
||||
'default', true)?>">Voir</a> - <a href="<?=$this->url(array('controller'=> 'admin', 'action'=>'user', 'mode'=>'edit', 'id'=>$item->id),
|
||||
'default', true)?>">Editer</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php }?>
|
||||
</div>
|
||||
</div>
|
108
application/views/default2015v2/scripts/aide/cgu.phtml
Normal file
108
application/views/default2015v2/scripts/aide/cgu.phtml
Normal 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 d’accès à l'extranet (comptes d'accès test et comptes payants)</h1>
|
||||
<div class="paragraph">
|
||||
<p>Ce site est destiné uniquement aux professionnels et non au grand public.</p>
|
||||
|
||||
<p>Ce site est destiné uniquement aux entreprises ayant une représentation juridique France,
|
||||
il a spécialement été conçu pour les professionnels français et ne peut être considéré comme une
|
||||
offre d’achat ou de vente, ni comme une incitation à l’achat ou à la vente dans toute autre
|
||||
juridiction que la France.</p>
|
||||
</div>
|
||||
|
||||
<h2>Mises en garde</h2>
|
||||
<div class="paragraph">
|
||||
<p>Les informations communiquées par l’intermédiaire de ce site Web ne vous sont communiquées
|
||||
qu’aux termes et conditions des présentes et ne sont destinées qu'à votre utilisation à des fins
|
||||
professionnelles et légitimes (les « fins autorisées »). Sans l’accord écrit de Scores & Décisions,
|
||||
vous n’êtes pas autorisé à stocker, télécharger, reproduire, vendre, redistribuer ou disposer des
|
||||
informations de toute manière ou à toute autre fin que celles autorisées.</p>
|
||||
|
||||
<p>La consultation ou la réception de documents n'entraîne aucun transfert de droit de propriété
|
||||
intellectuelle en faveur du Client. Ce dernier s'engage à ne pas rediffuser ou reproduire les
|
||||
données fournies autrement que pour son usage dans le cadre de la relation contractuelle établie ou
|
||||
le test entre Scores & Décisions SAS et "le Client".</p>
|
||||
|
||||
<p>Scores & Décisions garantit que les informations sont conforme à la réglementation en vigueur et
|
||||
notamment au Code de la Propriété Intellectuelle.</p>
|
||||
<p>La base de données Scores & Décisions est pour partie issue du RNCS de l'INSEE, de la DILA et
|
||||
de diverses collectes internes et privés.</p>
|
||||
|
||||
<p>Bien que Scores & Décisions utilise des procédures rigoureuses et mette en œuvre toutes les
|
||||
diligences requises par les usages de la profession pour tenir à jour la présente base de données
|
||||
et fournir des informations précises, les informations peuvent comporter une certaine marge d'erreur.</p>
|
||||
<p>En raison des conditions d'accès à l’information et autres aléas de traitements, les informations
|
||||
issue des sources privées sont données "en l'état" sans aucune garantie, ni quelconque force
|
||||
juridique ou opposabilité aux tiers. L'utilisateur recherche, traite et interprète les données sous
|
||||
sa propre responsabilité.</p>
|
||||
|
||||
Les informations présentées sur le présent service constituent des œuvres protégeables du Code la
|
||||
propriété intellectuelle, dont le producteur est seul auteur et propriétaire exclusif, toute
|
||||
retransmission d'information ou données à un "tiers, personne physique ou morale" pourra faire
|
||||
l'objet de poursuite par Scores & Décisions SAS le cas échéant. L'utilisateur final s'engage donc
|
||||
à faire un usage strictement personnel et professionnel de ces informations, et en aucun cas pour
|
||||
constituer des fichiers destinés notamment à la location ou à la (re)vente ou pour (re)diffuser ces
|
||||
informations à des tiers de façon payante ou même gracieuse. »
|
||||
|
||||
<p>Scores & Décisions se réserve le droit d’accorder ou de révoquer l’autorisation d’utiliser les
|
||||
sites scores-decisions.com à son entière discrétion dans le cadre d'un test. Bien que toutes les
|
||||
précautions raisonnables aient été prises pour veiller à l’exactitude, la sécurité et la
|
||||
confidentialité des informations disponibles par l’intermédiaire des sites Extranets
|
||||
scores-decisions.com, Scores & Décisions ne saurait cependant être tenue responsable des
|
||||
conséquences des agissements d’un utilisateur autorisé ou non autorisé. Scores & Décisions
|
||||
communique uniquement des informations, données identifiées et sourçables et issues de sources
|
||||
officielles et privées.</p>
|
||||
|
||||
<p>Les données communiquées dans les présentes et l’utilisation que vous en faites ultérieurement
|
||||
peuvent, le cas échéant, être soumises à certaines réglementations, conditions et restrictions
|
||||
externes légales ou autres. Toutes les utilisations que vous faites des informations doivent
|
||||
respecter les réglementations, conditions et restrictions applicables à la région ou au territoire
|
||||
où vous utilisez les informations des présentes ainsi que les présentes conditions d'utilisation.</p>
|
||||
|
||||
<form name="cgu" method="post" action="<?=$this->url(array('controller'=>'aide','action'=>'cgu'),null,true)?>">
|
||||
<p style="font-size:14px; font-weight:bold;">
|
||||
<input type="checkbox" value="1" name="accept" />
|
||||
Je certifie être un Professionnel (au sens visé ci-dessus) et avoir pris connaissance, compris et accepté les conditions d’accès et de mise en garde.
|
||||
</p>
|
||||
</form>
|
||||
|
||||
<p id="msgsave" style="display:none; font-size:14px; font-weight:bold;">Enregistrement de votre acceptation des CGU...</p>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
<?=$this->render('footer.phtml')?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
18
application/views/default2015v2/scripts/aide/new.phtml
Normal file
18
application/views/default2015v2/scripts/aide/new.phtml
Normal 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 }?>
|
27
application/views/default2015v2/scripts/aide/newliste.phtml
Normal file
27
application/views/default2015v2/scripts/aide/newliste.phtml
Normal file
@ -0,0 +1,27 @@
|
||||
<div class="row"><h1><?=$this->translate("Nouveautés")?></h1></div>
|
||||
|
||||
<div class="row"><h2>Liste par date</h2></div>
|
||||
<table class="table table-bordered">
|
||||
<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>
|
127
application/views/default2015v2/scripts/auth/index.phtml
Normal file
127
application/views/default2015v2/scripts/auth/index.phtml
Normal file
@ -0,0 +1,127 @@
|
||||
<?php echo $this->doctype(); ?>
|
||||
<html>
|
||||
<head>
|
||||
<?php echo $this->headMeta(); ?>
|
||||
<?php echo $this->headTitle(); ?>
|
||||
<?php echo $this->headStyle(); ?>
|
||||
<?php echo $this->headLink(); ?>
|
||||
<?php echo $this->headScript(); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="wrap">
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<p><img src="/themes/default/images/partner/<?=$this->logo?>"/></p>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<p class="text-primary">Spécialiste de l'information légales et financières sur les entreprises, Scores & Décisions vous permet par
|
||||
confirmation des éléments ci-contre d'accéder à toute sa base de données.</p>
|
||||
|
||||
<ul class="list-group">
|
||||
<li class="list-group-item">
|
||||
Télécharger nos Conditions Générales de Services
|
||||
<a href="<?=$this->baseUrl()?>/documents/inextenso_cgs.pdf" target="_blank">
|
||||
<span class="glyphicon glyphicon-file pull-right" aria-hidden="true"></span></a>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
Télécharger nos Conditions Tarifaires
|
||||
<a href="#" target="_blank">
|
||||
<span class="glyphicon glyphicon-file pull-right" aria-hidden="true"></span></a>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
Télécharger les coordonnées de vos contacts
|
||||
<a href="<?=$this->baseUrl()?>/documents/inextenso_contacts.pdf" target="_blank">
|
||||
<span class="glyphicon glyphicon-file pull-right" aria-hidden="true"></span></a>
|
||||
</li>
|
||||
</ul>
|
||||
<p class="text-danger">Ce service est actuellement en beta. La consultation vous est offerte durant cette période.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
|
||||
<form method="post" action="<?=$this->url(array('controller'=>'auth', 'action'=>'userssocreate'), 'default', true)?>">
|
||||
<h2 class="form-signin-heading">Extranet <small>Scores & Décisions</small></h2>
|
||||
<?php
|
||||
//Error
|
||||
if ($this->Error) {?>
|
||||
<div style="text-align:center;"><p class="text-danger"><span>Une erreur est survenue</span></p></div>
|
||||
<?php
|
||||
}
|
||||
//Message
|
||||
else if ($this->Message) {?>
|
||||
<div style="text-align:center;"><p class="text-danger"><span><?=$this->Message?></span></p></div>
|
||||
<?php
|
||||
}
|
||||
//NoUser
|
||||
else if ($this->NoUser) {?>
|
||||
<div><p class="text-warning"><span>
|
||||
Votre compte n'existe pas encore. Compléter le formulaire puis valider pour créer votre compte.
|
||||
</span></p>
|
||||
</div>
|
||||
|
||||
<?php foreach ($this->Params as $item) {?>
|
||||
<input type="hidden" name="P-<?=$item->label?>" value="<?=$item->value?>"/>
|
||||
<?php }?>
|
||||
|
||||
<input type="hidden" name="partner" value="<?=$this->FormPartner?>"/>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="identifiant">Identifiant</label>
|
||||
<input type="text" id="identifiant" value="<?=$this->FormIdentifiant?>" class="form-control" disabled>
|
||||
<input type="hidden" name="login" value="<?=$this->FormIdentifiant?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="email">Email</label>
|
||||
<input type="text" class="form-control" value="<?=$this->FormCourriel?>" disabled>
|
||||
<input type="hidden" name="email" value="<?=$this->FormCourriel?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="siret">SIRET</label>
|
||||
<input type="text" class="form-control" name="siret" value="<?=$this->FormSiret?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="nom">Nom</label>
|
||||
<input type="text" class="form-control" name="nom" value="<?=$this->FormNom?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="prenom">Prénom</label>
|
||||
<input type="text" class="form-control" name="prenom" value="<?=$this->FormPrenom?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="tel">Téléphone</label>
|
||||
<input type="text" class="form-control" name="tel" value="<?=$this->FormTel?>">
|
||||
</div>
|
||||
|
||||
<button class="btn btn-lg btn-primary btn-block clearfix" type="submit">Valider</button>
|
||||
|
||||
<?php }?>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
<div class="container">
|
||||
<p class="text-muted credit"> © <?=date('Y')?> <a href="http://www.scores-decisions.com">Scores & Décisions SAS</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php echo $this->inlineScript(); ?>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -0,0 +1,58 @@
|
||||
<?php echo $this->doctype(); ?>
|
||||
<html>
|
||||
<head>
|
||||
<?php echo $this->headMeta(); ?>
|
||||
<?php echo $this->headTitle(); ?>
|
||||
<?php echo $this->headStyle(); ?>
|
||||
<?php echo $this->headLink(); ?>
|
||||
<?php echo $this->headScript(); ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="wrap">
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-6"><img src="/themes/default/images/partner/<?=$this->logo?>"/></div>
|
||||
<div class="col-md-6">
|
||||
|
||||
<h2 class="form-signin-heading">Extranet <small>Scores & Décisions</small></h2>
|
||||
<?php
|
||||
//Error
|
||||
if ($this->Error) {?>
|
||||
<div style="text-align:center;"><p class="text-danger"><span>Une erreur est survenue</span></p></div>
|
||||
<?php
|
||||
}
|
||||
//Message
|
||||
else if ($this->Message) {?>
|
||||
<div style="text-align:center;"><p class="text-danger"><span><?=$this->Message?></span></p></div>
|
||||
<?php
|
||||
}
|
||||
//OK
|
||||
else if ($this->UserCreated) {?>
|
||||
<div>
|
||||
<p class="text-success">
|
||||
<span>Votre compte a été crée avec succès.</span>
|
||||
<a href="<?=$this->url(array_merge(array('controller'=> 'auth', 'action' => 'index'), $this->UrlArgs))?>">
|
||||
Cliquez ici pour être redirigé vers la page d'accueil.</a>
|
||||
</p>
|
||||
</div>
|
||||
<?php }?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
<div class="container">
|
||||
<p class="text-muted credit"> © <?=date('Y')?> <a href="http://www.scores-decisions.com">Scores & Décisions SAS</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php echo $this->inlineScript(); ?>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -0,0 +1 @@
|
||||
<?php
|
190
application/views/default2015v2/scripts/bdf/index.phtml
Normal file
190
application/views/default2015v2/scripts/bdf/index.phtml
Normal 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>
|
@ -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>
|
42
application/views/default2015v2/scripts/bdf/module.phtml
Normal file
42
application/views/default2015v2/scripts/bdf/module.phtml
Normal 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>
|
1
application/views/default2015v2/scripts/cgu.phtml
Normal file
1
application/views/default2015v2/scripts/cgu.phtml
Normal file
@ -0,0 +1 @@
|
||||
<p><small class="text-muted"><em><?=$this->cgu?></em></small></p>
|
526
application/views/default2015v2/scripts/dashboard/client.phtml
Normal file
526
application/views/default2015v2/scripts/dashboard/client.phtml
Normal 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" /> .
|
||||
<input type="text" maxlength="3" size="3" name="ip1" /> .
|
||||
<input type="text" maxlength="3" size="3" name="ip2" /> .
|
||||
<input type="text" maxlength="3" size="3" name="ip3" /> -
|
||||
<input type="text" maxlength="3" size="3" name="ip4" /> .
|
||||
<input type="text" maxlength="3" size="3" name="ip5" /> .
|
||||
<input type="text" maxlength="3" size="3" name="ip6" /> .
|
||||
<input type="text" maxlength="3" size="3" name="ip7" />
|
||||
</div>
|
||||
|
||||
<form name="client" method="post" action="<?=$this->url(array('controller'=>'dashboard', 'action'=>'clientsave'), null, true)?>">
|
||||
<input type="hidden" name="action" value="client" />
|
||||
<input type="hidden" name="idClient" value="<?=$this->idClient?>" />
|
||||
|
||||
<h2 class="menu-close">Identification</h2>
|
||||
<div class="blockh2 close">
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Nom</label>
|
||||
<div class="field">
|
||||
<input name="nom" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->nom : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Siren</label>
|
||||
<div class="field">
|
||||
<input name="siren" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->siren : '';?>" />
|
||||
<a href="#">Obtention Dénomination sociale</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Nic du siège</label>
|
||||
<div class="field">
|
||||
<input name="nic" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->nic : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Racine des identifiants</label>
|
||||
<div class="field">
|
||||
<input name="racineLogin" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->racineLogin: '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Test</label>
|
||||
<div class="field">
|
||||
<select name="test">
|
||||
<option value="Oui" <?php if ($this->InfosClient->test=='Oui') echo 'selected';?>>Oui</option>
|
||||
<option value="Non" <?php if ($this->InfosClient->test=='Non') echo 'selected';?>>Non</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Actif</label>
|
||||
<div class="field">
|
||||
<select name="actif">
|
||||
<option value="Oui" <?php if ($this->InfosClient->actif=='Oui') echo 'selected';?>>Oui</option>
|
||||
<option value="Non" <?php if ($this->InfosClient->actif=='Non') echo 'selected';?>>Non</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Date de signature</label>
|
||||
<div class="field">
|
||||
<input name="dateSignature" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->dateSignature : '';?>" />
|
||||
(AAAA-MM-YY)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Type de contrat</label>
|
||||
<div class="field">
|
||||
<select name="typeContrat">
|
||||
<option value="Contrat" <?php if ($this->InfosClient->typeContrat=='Contrat') echo 'selected';?>>Contrat</option>
|
||||
<option value="Marché" <?php if ($this->InfosClient->typeContrat=='Marché') echo 'selected';?>>Marché</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Commercial S&D</label>
|
||||
<div class="field">
|
||||
<input name="respComSD" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->respComSD : '';?>" disabled />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Nom de l'apporteur d'affaire</label>
|
||||
<div class="field">
|
||||
<input name="apporteurAffaire" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->apporteurAffaire: '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Type d'accès</label>
|
||||
<div class="field">
|
||||
<select name="typeAcces">
|
||||
<option value="userPassword" <?php if ($this->InfosClient->typeAcces=='userPassword') echo 'selected';?>>userPassword</option>
|
||||
<option value="userPasswordIP" <?php if ($this->InfosClient->typeAcces=='userPasswordIP') echo 'selected';?>>userPasswordIP</option>
|
||||
<option value="IP" <?php if ($this->InfosClient->typeAcces=='IP') echo 'selected';?>>IP</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Remarques / Observations</label>
|
||||
<div class="field">
|
||||
<textarea name="remarque">
|
||||
<?php echo isset($this->InfosClient) ? $this->InfosClient->remarque : '';?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2 class="menu-close">Facturation</h2>
|
||||
<div class="blockh2 close">
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>N° de TVA</label>
|
||||
<div class="field">
|
||||
<input name="tva" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->tva : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Compte client rattaché</label>
|
||||
<div class="field">
|
||||
<input name="xxxx" type="text" value="" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Editer la facture automatiquement</label>
|
||||
<div class="field">
|
||||
<select name="editerFacture">
|
||||
<option value="Oui" <?php if ($this->InfosClient->editerFacture=='Oui') echo 'selected';?>>Oui</option>
|
||||
<option value="Non" <?php if ($this->InfosClient->editerFacture=='Non') echo 'selected';?>>Non</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Editer le détail de la facture</label>
|
||||
<div class="field">
|
||||
<select name="fact_detail">
|
||||
<option value="Oui" <?php if ($this->InfosClient->editerFacture=='Oui') echo 'selected';?>>Oui</option>
|
||||
<option value="Non" <?php if ($this->InfosClient->fact_detail=='Non') echo 'selected';?>>Non</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Nom du destinataire de la facture</label>
|
||||
<div class="field">
|
||||
<input name="fac_dest" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->fac_dest : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Adresse1</label>
|
||||
<div class="field">
|
||||
<input name="fac_adr1" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->fac_adr1 : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Adresse2</label>
|
||||
<div class="field">
|
||||
<input name="fac_adr2" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->fac_adr2 : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Adresse3</label>
|
||||
<div class="field">
|
||||
<input name="fac_adr3" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->fac_adr3 : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Email</label>
|
||||
<div class="field">
|
||||
<input name="fac_email" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->fac_email : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Téléphone</label>
|
||||
<div class="field">
|
||||
<input name="fac_tel" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->fac_tel : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>RIB joint à la facture</label>
|
||||
<div class="field">
|
||||
<select name="fact_rib">
|
||||
<option value="BPOSTALE" <?php if ($this->InfosClient->fact_rib=='BPOSTALE') echo 'selected';?>>BPOSTALE</option>
|
||||
<option value="CCOOP" <?php if ($this->InfosClient->fact_rib=='CCOOP') echo 'selected';?>>CCOOP</option>
|
||||
<option value="CDNORD" <?php if ($this->InfosClient->fact_rib=='CDNORD') echo 'selected';?>>CDNORD</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<h2 class="menu-close">Livraison : Informations sur le destinataire de la livraison</h2>
|
||||
<div class="blockh2 close">
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Nom</label>
|
||||
<div class="field">
|
||||
<input name="liv_dest" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->liv_dest : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Adresse1</label>
|
||||
<div class="field">
|
||||
<input name="liv_adr1" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->liv_adr1 : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Adresse2</label>
|
||||
<div class="field">
|
||||
<input name="liv_adr2" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->liv_adr2 : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Adresse3</label>
|
||||
<div class="field">
|
||||
<input name="liv_adr3" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->liv_adr3 : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Email</label>
|
||||
<div class="field">
|
||||
<input name="liv_email" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->liv_email : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Téléphone</label>
|
||||
<div class="field">
|
||||
<input name="liv_tel" type="text" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->liv_tel : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<h2 class="menu-close">Paramétrage</h2>
|
||||
<div class="blockh2 close">
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>IndiScore</label>
|
||||
<div class="field">
|
||||
<select name="typeScore">
|
||||
<option value="100" <?php if ($this->InfosClient->typeScore=='100') echo 'selected';?>>100</option>
|
||||
<option value="20" <?php if ($this->InfosClient->typeScore=='20') echo 'selected';?>>20</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Liste des adresses IP</label>
|
||||
<div class="field">
|
||||
<?php
|
||||
$text_ip = '';
|
||||
$filtres_ip = '';
|
||||
if (isset($this->InfosClient) && !empty($this->InfosClient->filtres_ip)){
|
||||
$ips = explode(';',$this->InfosClient->filtres_ip);
|
||||
foreach ($ips as $ip){
|
||||
$filtres_ip.= $ip.';';
|
||||
$text_ip.= $ip.' [<a href="#" class="deleteIP" id="'.$ip.'">Suppression</a>]<br/>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
<input type="hidden" name="filtres_ip" value="<?php echo $filtres_ip?>">
|
||||
<span id="listeip">
|
||||
<?php
|
||||
if (!empty($text_ip)){
|
||||
echo $text_ip;
|
||||
} else {
|
||||
echo "Aucune IPs.";
|
||||
}
|
||||
?> </span> <br /> <a href="#" id="addIp">Ajouter une adresse IP</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Listes des Droits</label>
|
||||
<div class="field">
|
||||
<?php $listedroits = explode(' ', $this->InfosClient->droits); ?>
|
||||
<?php foreach($this->wscategory as $category) { ?>
|
||||
<fieldset>
|
||||
<legend><?=$category->desc?></legend>
|
||||
<?php foreach($category->droits->item as $droit) {
|
||||
$check = '';
|
||||
if (in_array(strtolower($droit), $listedroits)) {
|
||||
$check = ' checked';
|
||||
}
|
||||
?>
|
||||
<input class="checkskin" type="checkbox" name="droits[]" value="<?=strtolower($droit)?>"<?=$check?>/>
|
||||
<?=$this->wsdroits[$droit]?><br/>
|
||||
<?php } ?>
|
||||
</fieldset>
|
||||
<?php }?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Timeout</label>
|
||||
<div class="field">
|
||||
<input type="text" name="timeout" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->timeout : '3600';?>" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2 class="menu-close">Tarification</h2>
|
||||
<div class="blockh2 close">
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>forfaitExtranetPeriode</label>
|
||||
<div class="field">
|
||||
<select name="forfaitExtranetPeriode">
|
||||
<option value="Mensuel" <?php if ($this->InfosClient->forfaitExtranetPeriode=='Mensuel') echo 'selected';?>>Mensuel</option>
|
||||
<option value="Trimestriel" <?php if ($this->InfosClient->forfaitExtranetPeriode=='Trimestriel') echo 'selected';?>>Trimestriel</option>
|
||||
<option value="Semestriel" <?php if ($this->InfosClient->forfaitExtranetPeriode=='Semestriel') echo 'selected';?>>Semestriel</option>
|
||||
<option value="Annuel" <?php if ($this->InfosClient->forfaitExtranetPeriode=='Annuel') echo 'selected';?>>Annuel</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>forfaitExtranetMontant</label>
|
||||
<div class="field">
|
||||
<input type="text" name="forfaitExtranetMontant" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->forfaitExtranetMontant : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>reconductionAuto</label>
|
||||
<div class="field">
|
||||
<select name="reconductionAuto">
|
||||
<option value="Oui" <?php if ($this->InfosClient->reconductionAuto=='Oui') echo 'selected';?>>Oui</option>
|
||||
<option value="Non" <?php if ($this->InfosClient->reconductionAuto=='Non') echo 'selected';?>>Non</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Nombre de pièces officielles inclues dans le forfait client</label>
|
||||
<div class="field">
|
||||
<input type="text" name="forfaitPiecesNb" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->forfaitPiecesNb : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Montant du forfait des pièces officielles</label>
|
||||
<div class="field">
|
||||
<input type="text" name="forfaitPiecesMt" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->forfaitPiecesMt : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Tarif unitaire en cas de dépassement</label>
|
||||
<div class="field">
|
||||
<input type="text" name="forfaitPiecesDep" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->forfaitPiecesDep : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Nombre d'investigations incluses dans le forfait client</label>
|
||||
<div class="field">
|
||||
<input type="text" name="forfaitInvestigNb" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->forfaitInvestigNb : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Montant du forfait des investigations</label>
|
||||
<div class="field">
|
||||
<input type="text" name="forfaitInvestigMt" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->forfaitInvestigMt : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Tarif unitaire pour les indiscore</label>
|
||||
<div class="field">
|
||||
<input type="text" name="tarifIndiscore" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->tarifIndiscore : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<h2 class="menu-close">Divers</h2>
|
||||
<div class="blockh2 close">
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Accès Webservice</label>
|
||||
<div class="field">
|
||||
<input type="text" name="accesWS" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->accesWS : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="fieldgrp">
|
||||
<label>Intersud - Login</label>
|
||||
<div class="field">
|
||||
<input type="text" name="InterSudLogin" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->InterSudLogin : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label>Intersud - Mot de passe</label>
|
||||
<div class="field">
|
||||
<input type="text" name="InterSudPass" value="<?php echo isset($this->InfosClient) ? $this->InfosClient->InterSudPass : '';?>" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="submit">
|
||||
<p class="submit-button">
|
||||
<input type="submit" class="button" value="<?php echo $this->submitValue?>" />
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
@ -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>
|
@ -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>
|
@ -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>
|
@ -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 . ' ' . $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>
|
@ -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>
|
@ -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>
|
@ -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>
|
@ -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>
|
@ -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>
|
@ -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>
|
@ -0,0 +1 @@
|
||||
<?php
|
@ -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'accès</div>
|
||||
<div class="infoData">
|
||||
<?php foreach($this->wscategory as $category) {?>
|
||||
<fieldset>
|
||||
<legend><?=$category->desc?></legend>
|
||||
<?php
|
||||
foreach($category->droits->item as $droit) {
|
||||
$droit = strtolower($droit);
|
||||
if (in_array($droit, $this->droitsClients)) {
|
||||
$check = '';
|
||||
if ( count($this->droits)>0 && in_array($droit, $this->droits) ) {
|
||||
$check = ' checked';
|
||||
}
|
||||
?>
|
||||
<input type="checkbox" name="droits[]" value="<?=$droit?>"<?=$check?> class="noborder"/>
|
||||
<?=$this->droitsLib[strtoupper($droit)]?><br/>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</fieldset>
|
||||
<?php }?>
|
||||
</div>
|
||||
|
||||
<div class="submit"><p class="submit-button"><input type="submit" name="submit" value="Ajouter" class="button"/></p></div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<?php }?>
|
||||
|
||||
</div>
|
12
application/views/default2015v2/scripts/dashboard/stat.phtml
Normal file
12
application/views/default2015v2/scripts/dashboard/stat.phtml
Normal 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>
|
@ -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 }?>
|
@ -0,0 +1 @@
|
||||
<?php
|
102
application/views/default2015v2/scripts/dashboard/tarifs.phtml
Normal file
102
application/views/default2015v2/scripts/dashboard/tarifs.phtml
Normal 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>
|
310
application/views/default2015v2/scripts/dashboard/user.phtml
Normal file
310
application/views/default2015v2/scripts/dashboard/user.phtml
Normal 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é (NOM/Prénom)</div>
|
||||
<div class="infoData">
|
||||
<input type="text" size="20" maxlength="80" name="frmOptions[nom]" value="<?=$this->options['nom']?>"/>
|
||||
<input type="text" size="20" maxlength="80" name="frmOptions[prenom]" value="<?=$this->options['prenom']?>"/>
|
||||
</div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Réf. facturation (service, etc...)</div>
|
||||
<div class="infoData">
|
||||
<input type="text" size="20" maxlength="80" name="frmOptions[reference]" value="<?=$this->options['referenceParDefaut']?>"/>
|
||||
</div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Adresse e-mail</div>
|
||||
<div class="infoData">
|
||||
<input type="text" size="30" maxlength="80" name="frmOptions[email]" value="<?=$this->options['email']?>"/>
|
||||
<?php if ($this->action != 'new') {?>
|
||||
<br/><a id="email-surveillance"
|
||||
href="<?=$this->url(array('controller'=>'user', 'action'=>'emailsurveillance', 'login'=>$this->options['login']), null, true)?>"
|
||||
title="Initialiser email des surveillances">Initialiser email des surveillances</a>
|
||||
<?php }?>
|
||||
</div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">
|
||||
Numéros de téléphone<br/><i>(Fixe, Fax, Mobile)</i>
|
||||
</div>
|
||||
<div class="infoData">
|
||||
<input type="text" size="10" maxlength="15" name="frmOptions[tel_fix]" value="<?=$this->options['tel']?>"/>
|
||||
<input type="text" size="10" maxlength="15" name="frmOptions[tel_fax]" value="<?=$this->options['fax']?>"/>
|
||||
<input type="text" size="10" maxlength="15" name="frmOptions[tel_mob]" value="<?=$this->options['mobile']?>"/>
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Mot de passe</div>
|
||||
<div class="infoData last">
|
||||
<?php
|
||||
if ($this->action=='new') {
|
||||
$typeChamp = 'text';
|
||||
$changePassword = 1;
|
||||
?>
|
||||
<input type="<?=$typeChamp?>" name="frmOptions[password]" value="<?=$this->password?>"/>
|
||||
<input type="hidden" name="frmOptions[changepwd]" value="<?=$changePassword?>"/>
|
||||
<?php
|
||||
} else {
|
||||
$typeChamp = 'hidden';
|
||||
$changePassword = 0;
|
||||
?>
|
||||
<a href="#" id="password">Modifier le mot de passe.</a>
|
||||
<input type="<?=$typeChamp?>" name="frmOptions[password]" value="<?=$this->options['password']?>"/>
|
||||
<input type="hidden" name="frmOptions[changepwd]" value="<?=$changePassword?>"/>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Langue de l'interface par défaut</div>
|
||||
<div class="infoData">
|
||||
<select name="frmOptions[lang]">
|
||||
<?php
|
||||
$lngOpts = array('fr' => 'Français', 'en' => 'English');
|
||||
foreach($lngOpts as $lngKey => $lngVal)
|
||||
{
|
||||
$selected = '';
|
||||
if($lngKey == $this->options['lang']) $selected = 'selected';
|
||||
?><option value="<?=$lngKey?>" <?=$selected?>><?=$lngVal?></option><?php
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>Paramètres spécifiques</h2>
|
||||
<div class="paragraph">
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Résultats par page</div>
|
||||
<div class="infoData">
|
||||
<select name="frmOptions[nbReponses]">
|
||||
<?php
|
||||
$opts = array(10, 20, 30, 40, 50, 100, 150, 200);
|
||||
foreach($opts as $opt)
|
||||
{
|
||||
$selected = '';
|
||||
if($opt == $this->options['nbReponses']) $selected = 'selected';
|
||||
?><option value="<?=$opt?>" <?=$selected?>><?=$opt?></option><?php
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Type de Compte</div>
|
||||
<div class="infoData">
|
||||
<select name="frmOptions[typeCompte]">
|
||||
<?php
|
||||
$opts = array('PROD', 'TEST');
|
||||
foreach($opts as $opt)
|
||||
{
|
||||
$selected = '';
|
||||
if($opt == $this->options['typeCompte']) $selected = 'selected';
|
||||
?><option value="<?=$opt?>" <?=$selected?>><?=$opt?></option><?php
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Format mail</div>
|
||||
<div class="infoData">
|
||||
<select name="frmOptions[formatMail]">
|
||||
<?php
|
||||
$opts = array(
|
||||
'txt1'=> 'Une annonce par mail',
|
||||
'txt2' => 'Toutes les annonces dans un mail',
|
||||
'csv' => 'Toutes les annonces dans un mail, fichier csv joint',
|
||||
'pdf' => 'Une annonce par mail, fichier pdf joint',
|
||||
'pdf1' => 'Toutes les annonces dans un mail, fichier pdf joint',
|
||||
'xls' => 'XLS',
|
||||
'htm'=> 'HTML');
|
||||
foreach($opts as $opt => $lib)
|
||||
{
|
||||
$selected = '';
|
||||
if($opt == $this->options['formatMail']) $selected = 'selected';
|
||||
?><option value="<?=$opt?>" <?=$selected?>><?=$lib?></option><?php
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Lien vers annonces légales dans mail</div>
|
||||
<div class="infoData">
|
||||
<select name="frmOptions[lienExtranetMail]">
|
||||
<?php
|
||||
$opts = array( '0'=> 'Non', '1' => 'Oui');
|
||||
foreach($opts as $opt => $lib)
|
||||
{
|
||||
$selected = '';
|
||||
if($opt == $this->options['lienExtranetMail']) $selected = 'selected';
|
||||
?><option value="<?=$opt?>" <?=$selected?>><?=$lib?></option><?php
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Liste Evenement</div>
|
||||
<div class="infoData">
|
||||
<textarea name="frmOptions[listeEven]">
|
||||
<?=$this->options['listeEven']?>
|
||||
</textarea>
|
||||
<br/><span>Liste de code évenements séparés par des ;</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Date de debut de compte</div>
|
||||
<div class="infoData">
|
||||
<input type="text" name="frmOptions[dateDebutCompte]" value="<?=$this->options['dateDebutCompte']?>"/>
|
||||
<br/><span>Format AAAA-MM-JJ</span>
|
||||
</div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Date de fin de compte</div>
|
||||
<div class="infoData">
|
||||
<input type="text" name="frmOptions[dateFinCompte]" value="<?=$this->options['dateFinCompte']?>"/>
|
||||
<br/><span>Format AAAA-MM-JJ</span>
|
||||
</div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Appliquer le Filtre IP du compte Client</div>
|
||||
<div class="infoData">
|
||||
<select name="frmOptions[ip]">
|
||||
<?php
|
||||
$opts = array( 1 => 'Oui', 0 => 'Non');
|
||||
foreach($opts as $opt)
|
||||
{
|
||||
$selected = '';
|
||||
if($this->options['filtre_ip'] == $this->options['filtreIpClient']) $selected = 'selected';
|
||||
?><option value="<?=$opt?>" <?=$selected?>><?=$opt?></option><?php
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<br/><span><?=$this->options['filtre_ip']?></span>
|
||||
</div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Type de recherche par référence</div>
|
||||
<div class="infoData">
|
||||
<select name="frmOptions[rechRefType]">
|
||||
<?php
|
||||
$opts = array('UTI', 'CLI');
|
||||
foreach($opts as $opt)
|
||||
{
|
||||
$selected = '';
|
||||
if($opt == $this->options['rechRefType']) $selected = 'selected';
|
||||
?><option value="<?=$opt?>" <?=$selected?>><?=$opt?></option><?php
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Accès WebService</div>
|
||||
<div class="infoData">
|
||||
<select name="frmOptions[accesWS]">
|
||||
<?php
|
||||
$opts = array(0 =>'Non', 1=>'Oui');
|
||||
foreach($opts as $opt => $lib)
|
||||
{
|
||||
$selected = '';
|
||||
if($opt == $this->options['accesWS']) $selected = 'selected';
|
||||
?><option value="<?=$opt?>" <?=$selected?>><?=$lib?></option><?php
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<h2>Gestion des droits</h2>
|
||||
<div class="paragraph">
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Type de profil</div>
|
||||
<div class="infoData">
|
||||
|
||||
<select name="frmOptions[profil]">
|
||||
<?php
|
||||
$profil = array('Utilisateur', 'Administrateur', 'SuperAdministrateur');
|
||||
foreach ($profil as $item){
|
||||
$select = '';
|
||||
if ($this->options['profil'] == $item) {
|
||||
$select = ' selected';
|
||||
}
|
||||
?>
|
||||
<option value="<?=$item?>"<?=$select?>><?=$item?></option>
|
||||
<?php }?>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Droits d'accès</div>
|
||||
<div class="infoData">
|
||||
<?php foreach($this->wscategory as $category) {?>
|
||||
<fieldset>
|
||||
<legend><?=$category->desc?></legend>
|
||||
<?php
|
||||
foreach($category->droits->item as $droit) {
|
||||
$droit = strtolower($droit);
|
||||
if (in_array($droit, $this->droitsClients)) {
|
||||
$check = '';
|
||||
if ( count($this->droits)>0 && in_array($droit, $this->droits) ) {
|
||||
$check = ' checked';
|
||||
}
|
||||
?>
|
||||
<input type="checkbox" name="frmOptions[droits][]" value="<?=$droit?>"<?=$check?> class="noborder"/>
|
||||
<?=$this->droitsLib[strtoupper($droit)]?><br/>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</fieldset>
|
||||
<?php }?>
|
||||
</div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Préférences</div>
|
||||
<div class="infoData last">
|
||||
<?php
|
||||
foreach ($this->prefsLib as $code => $lib) {
|
||||
$check = '';
|
||||
if ($this->prefs && in_array(strtolower($code), $this->prefs)) {
|
||||
$check = ' checked';
|
||||
}
|
||||
?>
|
||||
<input type="checkbox" name="frmOptions[pref][]" value="<?=strtolower($code)?>"<?=$check?> class="noborder"/>
|
||||
<?=$lib?><br/>
|
||||
<?php }?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="submit"><p class="submit-button"><input type="submit" class="button" value="Sauver"/></p></div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="dialog-password" title="Modifier le mot de passe">
|
||||
<form>
|
||||
<label for="npass1">Nouveau mot de passe</label><br/>
|
||||
<input type="password" name="npass1" size="15" maxlength="32"/><br/>
|
||||
<label for="npass2">Répéter le nouveau mot de passe</label><br/>
|
||||
<input type="password" name="npass2" size="15" maxlength="32"/><br/>
|
||||
<span id="form-message"></span>
|
||||
</form>
|
||||
</div>
|
196
application/views/default2015v2/scripts/dashboard/users.phtml
Normal file
196
application/views/default2015v2/scripts/dashboard/users.phtml
Normal 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"> </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>
|
@ -0,0 +1 @@
|
||||
<?=json_encode($this->output)?>
|
@ -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 }?>
|
@ -0,0 +1,57 @@
|
||||
<div class="row"><h1 class="titre"><?=$this->translate("Dirigeants")?></h1></div>
|
||||
<div class="paragraph">
|
||||
<table class="identite">
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib"><?=$this->translate("Numéro identifiant Siren")?></td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->SirenTexte($this->siren)?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib"><?=$this->translate("Dénomination Sociale")?></td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
|
||||
</tr>
|
||||
<?php if ($this->surveillance) {?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td colspan="2" width="550" class="StyleInfoData">
|
||||
<?=$this->action('infos','surveillance', null, array(
|
||||
'source' => 'dirigeants',
|
||||
'siret' => $this->siret
|
||||
))?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="row"><h2><?=$this->translate("Historique des dirigeants")?></h2></div>
|
||||
<?php if (count($this->dirigeants) > 0) {?>
|
||||
<table class="table table-bordered data">
|
||||
<?php foreach ($this->dirigeants as $dir) {?>
|
||||
<tr>
|
||||
<td class="StyleInfoData" width="270"><?=$dir->Titre?></td>
|
||||
<td class="StyleInfoData" width="200"><?=$dir->Societe.' '.$dir->Nom.' '.$dir->Prenom?></td>
|
||||
<td class="StyleInfoData" width="200">
|
||||
<?php
|
||||
if ($dir->DateFct != '0000-00-00') {
|
||||
$date = new Zend_Date($dir->DateFct,'yyyy-MM-dd'); ?>
|
||||
<?php if ( Zend_Date::isDate($date) ) { ?>
|
||||
<?=$this->translate("Modification le") . ' ' . $date->toString('dd/MM/yyyy');?>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
<?php } else {?>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="StyleInfoData" width="550">
|
||||
<?=$this->translate("Aucune donnée n'est présente dans notre base")?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php }?>
|
||||
|
||||
<?=$this->render('cgu.phtml', $this->cgu)?>
|
167
application/views/default2015v2/scripts/dirigeant/liste.phtml
Normal file
167
application/views/default2015v2/scripts/dirigeant/liste.phtml
Normal file
@ -0,0 +1,167 @@
|
||||
<?php if (empty($this->AutrePage)){?>
|
||||
<div class="row"><h1 class="titre"><?=$this->translate("Dirigeants")?></h1></div>
|
||||
<div class="paragraph">
|
||||
<table class="identite">
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib"><?=$this->translate("Numéro identifiant Siren")?></td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->SirenTexte($this->siren)?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib"><?=$this->translate("Dénomination Sociale")?></td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
|
||||
</tr>
|
||||
<?php if ($this->surveillance) {?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td colspan="2" width="550" class="StyleInfoData">
|
||||
<?=$this->action('infos','surveillance', null, array(
|
||||
'source' => 'dirigeants',
|
||||
'siret' => $this->siret
|
||||
))?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if( $this->dirigeantsop ){ ?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td colspan="2" width="550" class="StyleInfoData">
|
||||
<a href="<?=$this->dirigeantsop?>"><?=$this->translate("Consulter la liste des dirigeants opérationnels")?></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
<div class="row"><h2><?=$this->translate("Liste des dirigeants actifs")?></h2></div>
|
||||
<?php if ( count($this->dirigeants)>0 ) { ?>
|
||||
<table class="table table-bordered data">
|
||||
<?php foreach ($this->dirigeants as $dir) {?>
|
||||
<tr>
|
||||
<td class="StyleInfoData" width="200"><?=$dir->Titre?></td>
|
||||
<td class="StyleInfoData" width="320">
|
||||
|
||||
<?php if ($dir->Societe != '') { ?>
|
||||
<a href="<?=$this->url(array('controller' => 'recherche', 'action' => 'liste', 'type' => 'ent','raisonSociale' => $dir->Societe), 'default', true)?>"
|
||||
title="<?=$this->translate("Recherche à partir de la dénomination sociale")?>">
|
||||
<?=$dir->Societe?>
|
||||
</a>
|
||||
<br/>
|
||||
<?php }?>
|
||||
|
||||
<?php if ($dir->Nom != '') { ?>
|
||||
<a href="<?=$this->url(array(
|
||||
'controller' => 'recherche',
|
||||
'action' => 'liste',
|
||||
'type' => 'dir',
|
||||
'dirNom' => $dir->Nom,
|
||||
'dirPrenom' => $dir->Prenom,
|
||||
'dirDateNaissJJ' => substr($dir->NaissDate,0,2),
|
||||
'dirDateNaissMM' => substr($dir->NaissDate,3,2),
|
||||
'dirDateNaissAAAA' => substr($dir->NaissDate,6,4),
|
||||
'dirCpVille' => $dir->NaissVille,
|
||||
), 'default', true)?>" title="<?=$this->translate("Recherche à partir du nom du dirigeant")?>">
|
||||
<?=$dir->Nom.' '.$dir->Prenom?>
|
||||
</a>
|
||||
<?php
|
||||
if (trim($dir->NaissDate) != '' && trim($dir->NaissVille.' '.$dir->NaissDepPays) != '') { ?>
|
||||
<br/>né(e) le <?=$dir->NaissDate?> à <?=$dir->NaissVille?>
|
||||
<?php if (trim($dir->NaissDepPays) != '') { ?> (<?=$dir->NaissDepPays?>)<?php }?>
|
||||
<?php } else if (trim($dir->NaissDate) != '') { ?>
|
||||
né(e) le <?=$dir->NaissDate?>
|
||||
<?php } else if (trim($dir->NaissVille.' '.$dir->NaissDepPays) != '') { ?>
|
||||
né(e) à <?=$dir->NaissVille?> (<?=$dir->NaissDepPays?>)
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
</td>
|
||||
<td class="StyleInfoData" width="100" valign="top">
|
||||
<?php if ($dir->Siren!='') {?>
|
||||
<a title="<?=$this->translate("Consulter la fiche identité")?>" href="<?=$this->url(array('controller'=>'identite', 'action'=>'fiche', 'siret'=>$dir->Siren), 'default', true)?>">
|
||||
<?=$this->SirenTexte($dir->Siren)?></a>
|
||||
|
||||
<?php if (empty($this->AutrePage) && $this->edition) {?>
|
||||
<div style="line-height:16px;">
|
||||
<a class="dialog" title="<?=$this->translate("Ajouter un actionnaire")?>" href="<?=$this->url(array('controller'=>'saisie','action'=>'lien','type'=>'actionnaire','mode'=>'add','siren'=>$this->siren,'createfiche'=>$dir->Siren),null,true)?>">
|
||||
<img style="vertical-align:middle;" src="/themes/default/images/interfaces/ajouter.png" /></a>
|
||||
</div>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
</td>
|
||||
<?php if (empty($this->AutrePage) && $this->accessWorldCheck) {?>
|
||||
<td>
|
||||
<?php if ($dir->Societe != '') { ?>
|
||||
<img style="cursor:pointer;" class="wcheck" data-url="<?=$this->url(array(
|
||||
'controller'=>'worldcheck','action'=>'occurence','siren'=>substr($this->siret,0,9),
|
||||
'dirType'=>'ORGANISATION','dirSociete'=>$dir->Societe),'default',true);?>" src="/themes/default/images/worldcheck/wc.png"/>
|
||||
<?php }?>
|
||||
<?php if ($dir->Nom != '') { ?>
|
||||
<img style="cursor:pointer;" class="wcheck" data-url="<?=$this->url(array(
|
||||
'controller'=>'worldcheck','action'=>'occurence','siren'=>substr($this->siret,0,9),
|
||||
'dirType'=>'INDIVIDUAL','dirNom'=>$dir->Nom,'dirPrenom'=>$dir->Prenom),'default',true);?>" src="/themes/default/images/worldcheck/wc.png"/>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<?php }?>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
<?php } else { ?>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="StyleInfoData" width="550">
|
||||
<?=$this->translate("Aucune donnée n'est présente dans notre base")?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php } ?>
|
||||
|
||||
<?php if (empty($this->AutrePage)) {?>
|
||||
<?=$this->render('cgu.phtml', $this->cgu)?>
|
||||
<?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 }?>
|
169
application/views/default2015v2/scripts/dirigeant/op.phtml
Normal file
169
application/views/default2015v2/scripts/dirigeant/op.phtml
Normal file
@ -0,0 +1,169 @@
|
||||
<?php if (empty($this->AutrePage)){?>
|
||||
<div class="row"><h1 class="titre"><?=$this->translate("Dirigeants Opérationnels")?></h1></div>
|
||||
<table class="identite">
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib"><?=$this->translate("Numéro identifiant Siren")?></td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->SirenTexte($this->siren)?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib"><?=$this->translate("Dénomination Sociale")?></td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
|
||||
</tr>
|
||||
<?php if ($this->surveillance) {?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td colspan="2" width="550" class="StyleInfoData">
|
||||
<?=$this->action('infos','surveillance', null, array(
|
||||
'source' => 'dirigeants',
|
||||
'siret' => $this->siret
|
||||
))?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
<?php }?>
|
||||
|
||||
<div class="row"><h2><?=$this->translate("Liste des dirigeants actifs")?></h2></div>
|
||||
<?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="table table-bordered data">
|
||||
<?php foreach ($this->dirigeants as $dir) {?>
|
||||
<tr>
|
||||
<td class="StyleInfoData" width="140"><?=$dir->Titre?></td>
|
||||
<td class="StyleInfoData" id="<?=$dir->Id?>" width="200">
|
||||
<?php if ($dir->Societe != '') { ?>
|
||||
<a href="<?=$this->url(array(
|
||||
'controller' => 'recherche',
|
||||
'action' => 'liste',
|
||||
'type' => 'ent',
|
||||
'raisonSociale' => $dir->Societe
|
||||
), 'default', true)?>"
|
||||
title="<?=$this->translate("Recherche à partir de la Dénomination sociale")?>">
|
||||
<?=$dir->Societe?>
|
||||
</a>
|
||||
|
||||
<?php }?>
|
||||
<?php if ($dir->Nom != '') { ?>
|
||||
<a href="<?=$this->url(array(
|
||||
'controller' => 'recherche',
|
||||
'action' => 'liste',
|
||||
'type' => 'dir',
|
||||
'dirNom' => $dir->Nom,
|
||||
'dirPrenom' => $dir->Prenom,
|
||||
), 'default', true)?>" title="<?=$this->translate("Recherche à partir du nom du dirigeant")?>">
|
||||
<?=$dir->Civilite.' '.$dir->Nom.' '.$dir->Prenom?>
|
||||
</a>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td class="StyleInfoData" width="200">
|
||||
<?php
|
||||
$message = '';
|
||||
if (trim($dir->NaissDate) != '' && trim($dir->NaissDate)!='0000-00-00') {
|
||||
$date = new Zend_Date($dir->NaissDate, 'yyyy-MM-dd');
|
||||
$message = $message.' '.$this->translate("le").' '.$date->toString('dd/MM/yyyy');
|
||||
}
|
||||
|
||||
if (trim($dir->NaissVille.' '.$dir->NaissDepPays) != '') {
|
||||
$message = $message.' '.$this->translate("à").' '.$dir->NaissVille;
|
||||
}
|
||||
|
||||
if ($message!='') {
|
||||
if ($dir->Civilite=='' || $dir->Civilite==null) {
|
||||
$message = $this->translate("né(e)").' '.$message;
|
||||
} else if ($dir->Civilite=='M') {
|
||||
$message = $this->translate("né").' '.$message;
|
||||
} else {
|
||||
$message = $this->translate("née").' '.$message;
|
||||
}
|
||||
echo $message;
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<?php if ($this->edition) {?>
|
||||
<td>
|
||||
<a class="dialog" title="Modifier le dirigeant" href="<?=$this->url(array('controller'=>'saisie','action'=>'diropcontrol','mode'=>'edit','siret'=>$this->siret,'id'=>$dir->Id), 'default', true)?>">
|
||||
<img src="/themes/default/images/interfaces/editer.png" /></a>
|
||||
<a class="dialog" title="Supprimer le dirigeant" href="<?=$this->url(array('controller'=>'saisie','action'=>'diropcontrol','mode'=>'del','siret'=>$this->siret,'id'=>$dir->Id), 'default', true)?>">
|
||||
<img src="/themes/default/images/interfaces/supprimer.png" /></a>
|
||||
</td>
|
||||
<?php if (empty($this->AutrePage) && $this->accessWorldCheck) {?>
|
||||
<td>
|
||||
<?php if ($dir->Societe != '') { ?>
|
||||
<img style="cursor:pointer;" class="wcheck" data-url="<?=$this->url(array(
|
||||
'controller'=>'worldcheck','action'=>'occurence','siren'=>$this->siren,
|
||||
'dirType'=>'ORGANISATION','dirSociete'=>$dir->Societe),'default',true);?>" src="/themes/default/images/worldcheck/wc.png"/>
|
||||
<?php }?>
|
||||
<?php if ($dir->Nom != '') {
|
||||
$param = array(
|
||||
'controller'=>'worldcheck',
|
||||
'action'=>'occurence',
|
||||
'siren'=>$this->siren,
|
||||
'dirType'=>'INDIVIDUAL',
|
||||
'dirNom'=>$dir->Nom,
|
||||
'dirPrenom'=>$dir->Prenom,
|
||||
);
|
||||
?>
|
||||
<img style="cursor:pointer;" class="wcheck" data-url="<?=$this->url($param,'default',true);?>" src="/themes/default/images/worldcheck/wc.png"/>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
<?php } else { ?>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="StyleInfoData" width="550">
|
||||
<?=$this->translate("Aucune donnée n'est présente dans notre base")?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php } ?>
|
||||
|
||||
<?php if (empty($this->AutrePage)){?>
|
||||
<?=$this->render('cgu.phtml', $this->cgu)?>
|
||||
<?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>
|
37
application/views/default2015v2/scripts/error/error.phtml
Normal file
37
application/views/default2015v2/scripts/error/error.phtml
Normal 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>
|
12
application/views/default2015v2/scripts/error/params.phtml
Normal file
12
application/views/default2015v2/scripts/error/params.phtml
Normal 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>
|
11
application/views/default2015v2/scripts/error/perms.phtml
Normal file
11
application/views/default2015v2/scripts/error/perms.phtml
Normal 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>
|
||||
|
16
application/views/default2015v2/scripts/error/soap.phtml
Normal file
16
application/views/default2015v2/scripts/error/soap.phtml
Normal 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>
|
@ -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éro identifiant Siren</div>
|
||||
<div class="infoData">
|
||||
<?=$this->SirenTexte($this->Etab->Siren)?>
|
||||
<input type="hidden" name="InfoEnq[Siren]" value="<?=$this->Etab->Siren?>"/>
|
||||
</div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Numéro identifiant Siret</div>
|
||||
<div class="infoData"><?=$this->SiretTexte($this->Etab->Siret)?></div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Numéro de TVA Intracom.</div>
|
||||
<div class="infoData"><?=substr($this->Etab->TvaNumero,0,2).' '.substr($this->Etab->TvaNumero,2,2).' '.substr($this->Etab->TvaNumero,-9)?></div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Dénomination Sociale</div>
|
||||
<div class="infoData"><?=$this->Etab->Nom?></div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Adresse</div>
|
||||
<div class="infoData"><?=$this->Etab->Adresse.' '.$this->Etab->CP.' '.$this->Etab->Ville?></div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Téléphone <?php if (trim($this->Etab->Tel)==''){?><font color="Red">*</font><?php }?> / Fax</label>
|
||||
<div class="field">
|
||||
<?php if (trim($this->Etab->Tel)!=''){ print $this->Etab->Tel; }else{?><input type="text" name="InfoEnq[Entrep][Tel]" value="<?=$this->InfoEnq['Entrep']['Tel']?>"/><?php } ?> <b>/</b>
|
||||
<?php if (trim($this->Etab->Fax)!=''){ print $this->Etab->Fax; }else{?><input type="text" name="InfoEnq[Entrep][Fax]" value="<?=$this->InfoEnq['Entrep']['Fax']?>"/><?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (trim($this->Etab->Tel)!=''){?>
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib"> Autre téléphone :</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[Entrep][AutreTel]" value="<?=$this->InfoEnq['Entrep']['AutreTel'];?>"/> </div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">E-mail</label>
|
||||
<div class="field"><?php if (trim($this->Etab->Mail)!=''){ print $this->Etab->Mail; }else{?><input type="text" name="InfoEnq[Entrep][Mail]" value="<?=$this->InfoEnq['Entrep']['Mail']?>"/><?php }?></div>
|
||||
</div>
|
||||
|
||||
<?php if (trim($this->Etab->Mail)!=''){ ?>
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Autre e-mail</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[Entrep][AutreMail]" value="<?=$this->InfoEnq['Entrep']['AutreMail']?>"/></div>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Site Web</label>
|
||||
<div class="field"><?php if (trim($this->Etab->Web)!=''){ print $this->Etab->Web; }else{?><input type="text" name="InfoEnq[Entrep][Web]" value="<?=$this->InfoEnq['Entrep']['Web']?>"/><?php }?></div>
|
||||
</div>
|
||||
|
||||
<h2>Demandeur : </h2>
|
||||
|
||||
<input type="hidden" name="login" value="<?=$this->user->getLogin()?>" />
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Votre Identité</label>
|
||||
<div class="field"><input type="text" name="InfoUser[Identite]" value="<?=$this->user->getNom().' '.$this->user->getPrenom(); ?>"/></div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Votre Téléphone <font color="Red"></font>:</label>
|
||||
<div class="field"><input type="text" name="InfoUser[Tel]" value="<?php
|
||||
if(isset($this->InfoUser['Tel'])){echo $this->InfoUser['Tel'];}
|
||||
else echo $this->user->getTel(); ?>" /></div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Votre E-mail <font color="Red">*</font></label>
|
||||
<div class="field"><input type="text" name="InfoUser[Email]" value="<?php
|
||||
if(isset($this->InfoUser['Email'])){echo $this->InfoUser['Email'];}
|
||||
else echo $this->user->getEmail(); ?>"/></div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Votre Référence</label>
|
||||
<div class="field"><input type="text" name="InfoUser[Ref]" value="<?php
|
||||
if(isset($this->InfoUser['Ref'])){echo $this->InfoUser['Ref'];}
|
||||
?>"/></div>
|
||||
</div>
|
||||
|
||||
<h2>La relation commerciale : </h2>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Précisions sur la demande</label>
|
||||
<div class="field">
|
||||
<select id="precision" name="InfoEnq[PrecisionsChoix]">
|
||||
<option value="">Choisissez...</option>
|
||||
<option value="Sur un client" <?php if($this->InfoEnq['PrecisionsChoix']=='Sur un client'){print 'selected="selected"';};?>>Sur un client</option>
|
||||
<option value="Sur un prospect" <?php if($this->InfoEnq['PrecisionsChoix']=='Sur un prospect'){print 'selected="selected"';};?>>Sur un prospect</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Ancienneté de la relation :</label>
|
||||
<div class="field">
|
||||
<input type="text" name="InfoEnq[Anciennete]" size="2" value="<?=$this->InfoEnq['Anciennete']?>"/>
|
||||
<input class="noborder" type="radio" name="InfoEnq[AncienneteDuree]" value="Mois" <?php if($this->InfoEnq['AncienneteDuree']=='Mois'){ print 'checked="checked"';}?>/>Mois
|
||||
<input class="noborder" type="radio" name="InfoEnq[AncienneteDuree]" value="Annees" <?php if($this->InfoEnq['AncienneteDuree']=='Annees'){ print 'checked="checked"';}?>/>Années
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Impayées :</label>
|
||||
<div class="field">
|
||||
<input class="noborder" type="radio" name="InfoEnq[ImpayeesChoix]" value="oui" <?php if($this->InfoEnq['ImpayeesChoix']=='oui'){ print 'checked="checked"';}?>/>Oui
|
||||
<input class="noborder" type="radio" name="InfoEnq[ImpayeesChoix]" value="non" <?php if($this->InfoEnq['ImpayeesChoix']=='non'){ print 'checked="checked"';}?>/>Non
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="impayees">
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Montant :</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[Impayees][Montant]" value="<?=$this->InfoEnq['Impayees']['Montant']?>"/> €</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Nombre :</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[Impayees][Nombre]" value="<?=$this->InfoEnq['Impayees']['Nombre']?>"/></div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Date :</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[Impayees][Date]" value="<?=$this->InfoEnq['Impayees']['Date']?>"/> (Format : JJ/MM/AAAA)</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Retard de paiement :</label>
|
||||
<div class="field">
|
||||
<input class="noborder" type="radio" name="InfoEnq[RetardPaiementChoix]" value="oui" <?php if($this->InfoEnq['RetardPaiementChoix']=='oui'){ print 'checked="checked"';}?>/>Oui
|
||||
<input class="noborder" type="radio" name="InfoEnq[RetardPaiementChoix]" value="non" <?php if($this->InfoEnq['RetardPaiementChoix']=='non'){ print 'checked="checked"';}?>/>Non
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="retardpaiement">
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Montant :</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[RetardPaiement][Montant]" value="<?=$this->InfoEnq['RetardPaiement']['Montant']?>"/> €</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Nombre :</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[RetardPaiement][Nombre]" value="<?=$this->InfoEnq['RetardPaiement']['Nombre']?>"/></div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Date :</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[RetardPaiement][Date]" value="<?=$this->InfoEnq['RetardPaiement']['Date']?>"/> (Format : JJ/MM/AAAA)</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Litiges techniques ou commerciaux :</label>
|
||||
<div class="field">
|
||||
<input class="noborder" type="radio" name="InfoEnq[LitigeChoix]" value="oui" <?php if($this->InfoEnq['LitigeChoix']=='oui'){ print 'checked="checked"';}?>/>Oui
|
||||
<input class="noborder" type="radio" name="InfoEnq[LitigeChoix]" value="non" <?php if($this->InfoEnq['LitigeChoix']=='non'){ print 'checked="checked"';}?>/>Non
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="litige">
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Précisions :</label>
|
||||
<div class="field">
|
||||
<textarea name="InfoEnq[Litige][Precisions]"><?=$this->InfoEnq['Litige']['Precisions']?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Observations ou questions spéciales</label>
|
||||
<div class="field"><textarea name="InfoEnq[Observation]"><?=$this->InfoEnq['Observation']; ?></textarea></div>
|
||||
</div>
|
||||
|
||||
<h2>Votre demande : </h2>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Encours Réel</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[EncoursReel]" value="<?=$this->InfoEnq['EncoursReel']?>"/> €</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Encours demandé</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[EncoursDemande]" value="<?=$this->InfoEnq['EncoursDemande']?>"/> €</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="submit"><p class="submit-button"><input type="submit" name="submit" value="Envoyer" /></p></div>
|
||||
|
||||
</form>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($this->commande == true)
|
||||
{
|
||||
?>
|
||||
<p>Votre demande à été prise en compte pour le siren <b><?=$this->siren?></b>.</p>
|
||||
<p><a href="<?=$this->url(array('controller'=>'identite', 'action'=>'fichier', 'siret'=>$this->siren), 'default', true)?>">
|
||||
Retour à la fiche identite
|
||||
</a></p>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
@ -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>
|
@ -0,0 +1,364 @@
|
||||
<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 class="row"><h1 class="titre"><?=$this->translate("Enquête Commerciale")?></h1></div>
|
||||
|
||||
<?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"/>
|
||||
|
||||
<div class="row"><h2>Entreprise concernée : </h2></div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Numéro identifiant Siren</div>
|
||||
<div class="infoData">
|
||||
<?=$this->SirenTexte($this->Etab->Siren)?>
|
||||
<input type="hidden" name="InfoEnq[Siren]" value="<?=$this->Etab->Siren?>"/>
|
||||
</div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Numéro identifiant Siret</div>
|
||||
<div class="infoData"><?=$this->SiretTexte($this->Etab->Siret)?></div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Numéro de TVA Intracom.</div>
|
||||
<div class="infoData"><?=substr($this->Etab->TvaNumero,0,2).' '.substr($this->Etab->TvaNumero,2,2).' '.substr($this->Etab->TvaNumero,-9)?></div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Dénomination Sociale</div>
|
||||
<div class="infoData"><?=$this->Etab->Nom?></div>
|
||||
|
||||
<div class="infoTitle StyleInfoLib">Adresse</div>
|
||||
<div class="infoData"><?=$this->Etab->Adresse.' '.$this->Etab->CP.' '.$this->Etab->Ville?></div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Téléphone <?php if (trim($this->Etab->Tel)==''){?><font color="Red">*</font><?php }?> / Fax</label>
|
||||
<div class="field">
|
||||
<?php if (trim($this->Etab->Tel)!=''){ print $this->Etab->Tel; }else{?><input type="text" name="InfoEnq[Entrep][Tel]" value="<?=$this->InfoEnq['Entrep']['Tel']?>"/><?php } ?> <b>/</b>
|
||||
<?php if (trim($this->Etab->Fax)!=''){ print $this->Etab->Fax; }else{?><input type="text" name="InfoEnq[Entrep][Fax]" value="<?=$this->InfoEnq['Entrep']['Fax']?>"/><?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (trim($this->Etab->Tel)!=''){?>
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib"> Autre téléphone :</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[Entrep][AutreTel]" value="<?=$this->InfoEnq['Entrep']['AutreTel'];?>"/> </div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">E-mail</label>
|
||||
<div class="field"><?php if (trim($this->Etab->Mail)!=''){ print $this->Etab->Mail; }else{?><input type="text" name="InfoEnq[Entrep][Mail]" value="<?=$this->InfoEnq['Entrep']['Mail']?>"/><?php }?></div>
|
||||
</div>
|
||||
|
||||
<?php if (trim($this->Etab->Mail)!=''){ ?>
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Autre e-mail</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[Entrep][AutreMail]" value="<?=$this->InfoEnq['Entrep']['AutreMail']?>"/></div>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Site Web</label>
|
||||
<div class="field"><?php if (trim($this->Etab->Web)!=''){ print $this->Etab->Web; }else{?><input type="text" name="InfoEnq[Entrep][Web]" value="<?=$this->InfoEnq['Entrep']['Web']?>"/><?php }?></div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Domiciliation bancaire</label>
|
||||
<div class="field">
|
||||
<input type="text" name="InfoEnq[Entrep][Rib][Banque]" maxlength="5" size="5" value="<?=$this->InfoEnq['Entrep']['Rib']['Banque']?>"/>
|
||||
<input type="text" name="InfoEnq[Entrep][Rib][Guichet]" maxlength="5" size="5" value="<?=$this->InfoEnq['Entrep']['Rib']['Guichet']?>"/>
|
||||
<input type="text" name="InfoEnq[Entrep][Rib][Compte]" maxlength="11" size="11" value="<?=$this->InfoEnq['Entrep']['Rib']['Compte']?>"/>
|
||||
<input type="text" name="InfoEnq[Entrep][Rib][Cle]" maxlength="2" size="2" value="<?=$this->InfoEnq['Entrep']['Rib']['Cle']?>"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Encours demandé</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[Encours]" value="<?=$this->InfoEnq['Encours']?>"/> €</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Nombre d'échéances</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[NbEcheances]" value="<?=$this->InfoEnq['NbEcheances']?>"/></div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Avis de l'assureur crédit</label>
|
||||
<div class="field">
|
||||
<select name="InfoEnq[AvisAssureur]">
|
||||
<option value="-" <?php if($this->InfoEnq['AvisAssureur']=='-'){ print 'checked="check"';} ?>>-</option>
|
||||
<option value="Favorable" <?php if($this->InfoEnq['AvisAssureur']=='Favorable'){ print 'checked="check"';} ?>>Favorable</option>
|
||||
<option value="Défavorable" <?php if($this->InfoEnq['AvisAssureur']=='Défavorable'){ print 'checked="check"';} ?>>Défavorable</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row"><h2>Demandeur : </h2></div>
|
||||
|
||||
<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>
|
||||
|
||||
<div class="row"><h2>Enquête : </h2></div>
|
||||
|
||||
<?php
|
||||
if( $pays=='' )
|
||||
{
|
||||
?>
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Type d'enquête</label>
|
||||
<div class="field">
|
||||
<input class="noborder" type="radio" id="premier" name="InfoEnq[Type]" value="premier" <?php if($this->InfoEnq['Type']=='premier'){print 'checked="checked"';};?>>EXPRESS ( encours inférieur à 20K€ )
|
||||
<br/>
|
||||
<input class="noborder" type="radio" id="gold" name="InfoEnq[Type]" value="gold" <?php if($this->InfoEnq['Type']=='gold'){print 'checked="checked"';};?>>DECISION ( encours supérieur à 20K€ )
|
||||
<br/>
|
||||
<input class="noborder" type="radio" id="btp" name="InfoEnq[Type]" value="btp" <?php if($this->InfoEnq['Type']=='btp'){print 'checked="checked"';};?>>SECTEUR BTP
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
if( isset($pays) && $pays!='' )
|
||||
{
|
||||
?>
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Délais de livraison</label>
|
||||
<div class="field">
|
||||
<input class="noborder" type="radio" name="InfoEnq[Delai]" value="normal" <?php if($this->InfoEnq['Delai']=='normal'){print 'checked="checked"';};?>>Normal
|
||||
<input class="noborder" type="radio" name="InfoEnq[Delai]" value="urgent" <?php if($this->InfoEnq['Delai']=='urgent'){print 'checked="checked"';};?>>Urgent
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Délais de livraison</label>
|
||||
<div class="field">
|
||||
<input class="noborder" type="radio" name="InfoEnq[Delai]" value="1" <?php if($this->InfoEnq['Delai']=='1'){print 'checked="checked"';};?>>24 h
|
||||
<input class="noborder" type="radio" name="InfoEnq[Delai]" value="2" <?php if($this->InfoEnq['Delai']=='2'){print 'checked="checked"';};?>>72 h
|
||||
<input class="noborder" type="radio" name="InfoEnq[Delai]" value="5" <?php if($this->InfoEnq['Delai']=='5'){print 'checked="checked"';};?>>5 jours ou +
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Précisions sur la demande</label>
|
||||
<div class="field">
|
||||
<select id="precision" name="InfoEnq[PrecisionsChoix]">
|
||||
<option value="">Choisissez...</option>
|
||||
<option value="1" <?php if($this->InfoEnq['PrecisionsChoix']=='1'){print 'selected="selected"';};?>>Enquête sur un client (contrôle crédit)</option>
|
||||
<option value="2" <?php if($this->InfoEnq['PrecisionsChoix']=='2'){print 'selected="selected"';};?>>Enquête sur un prospect (ouverture de compte)</option>
|
||||
<option value="3" <?php if($this->InfoEnq['PrecisionsChoix']=='3'){print 'selected="selected"';};?>>Enquête sur un fournisseur stratégique</option>
|
||||
<option value="4" <?php if($this->InfoEnq['PrecisionsChoix']=='4'){print 'selected="selected"';};?>>Enquête sur un fournisseur non stratégique</option>
|
||||
<option value="5" <?php if($this->InfoEnq['PrecisionsChoix']=='5'){print 'selected="selected"';};?>>Autre type d'enquête (Précisez...)</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="fournisseur" class="fieldgrp">
|
||||
<label class="StyleInfoLib">CA réalisé avec le fournisseur</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[Precisions][MontantCA]" value="<?=$this->InfoEnq['Precisions']['MontantCA']?>" /> €</div>
|
||||
</div>
|
||||
|
||||
<div id="credit" class="fieldgrp">
|
||||
<label class="StyleInfoLib">Motif du contrôle</label>
|
||||
<div class="field"><textarea name="InfoEnq[Precisions][Motif]"><?=$this->InfoEnq['Precisions']['Motif']?></textarea></div>
|
||||
</div>
|
||||
|
||||
<div id="autrePrecisions" class="fieldgrp">
|
||||
<label class="StyleInfoLib">Précisez</label>
|
||||
<div class="field"><textarea name="InfoEnq[Precisions][Autre]"><?=$this->InfoEnq['Precisions']['Autre']?></textarea></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Ancienneté de la relation :</label>
|
||||
<div class="field">
|
||||
<input type="text" name="InfoEnq[Anciennete]" size="2" value="<?=$this->InfoEnq['Anciennete']?>"/>
|
||||
<input class="noborder" type="radio" name="InfoEnq[AncienneteDuree]" value="Mois" <?php if($this->InfoEnq['AncienneteDuree']=='Mois'){ print 'checked="checked"';}?>/>Mois
|
||||
<input class="noborder" type="radio" name="InfoEnq[AncienneteDuree]" value="Annees" <?php if($this->InfoEnq['AncienneteDuree']=='Annees'){ print 'checked="checked"';}?>/>Années
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Impayées :</label>
|
||||
<div class="field">
|
||||
<input class="noborder" type="radio" name="InfoEnq[ImpayeesChoix]" value="oui" <?php if($this->InfoEnq['ImpayeesChoix']=='oui'){ print 'checked="checked"';}?>/>Oui
|
||||
<input class="noborder" type="radio" name="InfoEnq[ImpayeesChoix]" value="non" <?php if($this->InfoEnq['ImpayeesChoix']=='non'){ print 'checked="checked"';}?>/>Non
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="impayees">
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Montant :</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[Impayees][Montant]" value="<?=$this->InfoEnq['Impayees']['Montant']?>"/> €</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Nombre :</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[Impayees][Nombre]" value="<?=$this->InfoEnq['Impayees']['Nombre']?>"/></div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Date :</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[Impayees][Date]" value="<?=$this->InfoEnq['Impayees']['Date']?>"/> (Format : JJ/MM/AAAA)</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Retard de paiement :</label>
|
||||
<div class="field">
|
||||
<input class="noborder" type="radio" name="InfoEnq[RetardPaiementChoix]" value="oui" <?php if($this->InfoEnq['RetardPaiementChoix']=='oui'){ print 'checked="checked"';}?>/>Oui
|
||||
<input class="noborder" type="radio" name="InfoEnq[RetardPaiementChoix]" value="non" <?php if($this->InfoEnq['RetardPaiementChoix']=='non'){ print 'checked="checked"';}?>/>Non
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="retardpaiement">
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Montant :</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[RetardPaiement][Montant]" value="<?=$this->InfoEnq['RetardPaiement']['Montant']?>"/> €</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Nombre :</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[RetardPaiement][Nombre]" value="<?=$this->InfoEnq['RetardPaiement']['Nombre']?>"/></div>
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Date :</label>
|
||||
<div class="field"><input type="text" name="InfoEnq[RetardPaiement][Date]" value="<?=$this->InfoEnq['RetardPaiement']['Date']?>"/> (Format : JJ/MM/AAAA)</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Litiges techniques ou commerciaux :</label>
|
||||
<div class="field">
|
||||
<input class="noborder" type="radio" name="InfoEnq[LitigeChoix]" value="oui" <?php if($this->InfoEnq['LitigeChoix']=='oui'){ print 'checked="checked"';}?>/>Oui
|
||||
<input class="noborder" type="radio" name="InfoEnq[LitigeChoix]" value="non" <?php if($this->InfoEnq['LitigeChoix']=='non'){ print 'checked="checked"';}?>/>Non
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="litige">
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Précisions :</label>
|
||||
<div class="field">
|
||||
<textarea name="InfoEnq[Litige][Precisions]"><?=$this->InfoEnq['Litige']['Precisions']?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Observations ou questions spéciales</label>
|
||||
<div class="field"><textarea name="InfoEnq[Observation]"><?=$this->InfoEnq['Observation']; ?></textarea></div>
|
||||
</div>
|
||||
|
||||
<div class="submit"><p class="submit-button"><input type="submit" name="submit" value="Envoyer" /></p></div>
|
||||
|
||||
</form>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($this->commandeEnquete == true)
|
||||
{
|
||||
?>
|
||||
<p>
|
||||
Votre demande à été prise en compte le <?=$this->jour.'/'.$this->mois.'/'.$this->annee?> à <?=$this->heure?> h <?=$this->minutes?> sous la référence <b><?=$this->ref?></b> pour le siren <b><?=$this->siren?></b>.
|
||||
</p>
|
||||
<?php
|
||||
}
|
||||
?>
|
@ -0,0 +1,294 @@
|
||||
<?php if ( empty($this->AutrePage) ) {?>
|
||||
<div id="center">
|
||||
<?php }?>
|
||||
|
||||
<?php if ( empty($this->AutrePage) ) {?>
|
||||
<h1>INDISCORE©</h1>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Numéro identifiant Siren</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->SirenTexte($this->indiscore->Siren)?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Numéro identifiant Siret du siège</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->SiretTexte($this->indiscore->Siret)?></td>
|
||||
</tr>
|
||||
<?php if (isset($this->indiscore->NumRC) && $this->indiscore->NumRC*1!=0) { ?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Numéro R.C.</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->indiscore->NumRC?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr><td colspan="3"> </td></tr>
|
||||
<?php if ( $this->edition && empty($this->AutrePage) ) {?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib"></td>
|
||||
<td width="350" class="StyleInfoData">
|
||||
<?=$this->action('scorecutoff','saisie',null, array('siren'=>$this->indiscore->Siren)); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib"> </td>
|
||||
<td width="350" class="StyleInfoData">
|
||||
<a href=<?=$this->url(array('controller'=>'evaluation', 'action'=>'scoreshisto', 'siret' => $this->siret)); ?>>
|
||||
<?=$this->translate("Consulter l'historique des IndiScore");?></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php }?>
|
||||
<h2>Dénomination sociale & coordonnées</h2>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"></td>
|
||||
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
|
||||
<td width="350" class="StyleInfoData">
|
||||
<?php
|
||||
echo $this->indiscore->Nom;
|
||||
if (!empty($this->indiscore->Nom2)) {
|
||||
echo '<br/>'.$this->indiscore->Nom2;
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
$titre='';
|
||||
if ($this->indiscore->Enseigne!='' && $this->indiscore->Sigle!='') {
|
||||
$titre = 'Enseigne / Sigle'; $lib = $this->indiscore->Enseigne.' / '.$this->indiscore->Sigle;
|
||||
} elseif ($this->indiscore->Enseigne!='' && $this->indiscore->Sigle=='') {
|
||||
$titre = 'Enseigne'; $lib = $this->indiscore->Enseigne;
|
||||
} elseif ($this->indiscore->Enseigne=='' && $this->indiscore->Sigle!='') {
|
||||
$titre = 'Sigle'; $lib = $this->indiscore->Sigle;
|
||||
}?>
|
||||
|
||||
<?php if ( !empty($titre) ) {?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib"><?=$titre?></td>
|
||||
<td width="350" class="StyleInfoData"><?=$lib?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<td width="30"></td>
|
||||
<td width="200" class="StyleInfoLib">Forme juridique</td>
|
||||
<td width="350" class="StyleInfoData">
|
||||
<?=$this->indiscore->FJ_lib?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"></td>
|
||||
<td width="200" class="StyleInfoLib">Date de création de l'entreprise</td>
|
||||
<td width="350" class="StyleInfoData">
|
||||
<?php $date = new Zend_Date($this->indiscore->DateCreaEn, 'yyyyMMdd');?>
|
||||
<?=$date->toString('dd/MM/yyyy')?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"></td>
|
||||
<td width="200" class="StyleInfoLib">Adresse</td>
|
||||
<td width="350" class="StyleInfoData">
|
||||
<?=$this->indiscore->Adresse?><br/>
|
||||
<?php if ($this->indiscore->Adresse2<>'') echo $this->indiscore->Adresse2.'<br/>';?>
|
||||
<?=$this->indiscore->CP?> <?=$this->indiscore->Ville?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"></td>
|
||||
<td width="200" class="StyleInfoLib">Téléphone</td>
|
||||
<td width="350" class="StyleInfoData">
|
||||
<?=$this->indiscore->Tel?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if ( $this->surveillance && empty($this->AutrePage) ) {?>
|
||||
<tr>
|
||||
<td width="30"></td>
|
||||
<td colspan="2">
|
||||
<?=$this->action('infos','surveillance', null, array(
|
||||
'source' => 'score',
|
||||
'siret' => $this->siret
|
||||
));?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
|
||||
<?php if ( $this->aviscredit && empty($this->AutrePage) ) {?>
|
||||
<tr>
|
||||
<td width="30"></td>
|
||||
<td colspan="2">
|
||||
<a href="<?=$this->url(array('controller'=>'evaluation', 'action'=>'aviscredit', 'siret' => $this->siret))?>">
|
||||
Saisir votre demande d'avis credit personnalisé</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2>Évaluation</h2>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="550" colspan="2" class="StyleInfoData">
|
||||
L'évaluation indiScore© est en partie basée sur les points notables suivants :<br/>
|
||||
<h3><u>Conformité légale :</u></h3>
|
||||
<div class="stats gradiant_pic">
|
||||
<ul>
|
||||
<li>
|
||||
<i><?=$this->indiscore->AnalyseConfor; ?></i>
|
||||
<div class="blocdegrade clearfix">
|
||||
<span class="textdegrade">Conformité <? if ($this->edition) { echo '('.$this->indiscore->ScoreConfor.')';}?></span>
|
||||
<div class="imgdegrade"><img class="borderimg" src="/themes/default/images/indiscore/imgscores-<?=$this->FormatPct($this->indiscore->ScoreConfor)?>.png"/></div>
|
||||
<div class="regle"><img src="/themes/default/images/indiscore/sgradiant2.png" /></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<h3><u>Dirigeance :</u></h3>
|
||||
<div class="stats gradiant_pic">
|
||||
<ul>
|
||||
<li>
|
||||
<i><?=$this->indiscore->AnalyseDirigeance?></i>
|
||||
<div class="blocdegrade clearfix">
|
||||
<span class="textdegrade">Dirigeance <? if ($this->edition) { echo '('.$this->indiscore->ScoreDirigeance.')';}?></span>
|
||||
<div class="imgdegrade"><img class="borderimg" src="/themes/default/images/indiscore/imgscores-<?=$this->FormatPct($this->indiscore->ScoreDirigeance)?>.png"/></div>
|
||||
<div class="regle"><img src="/themes/default/images/indiscore/sgradiant2.png" /></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<h3><u>Solvabilité :</u></h3>
|
||||
<div class="stats gradiant_pic">
|
||||
<ul>
|
||||
<li>
|
||||
<i>L'analyse de la solvabilité est <?=$this->indiscore->AnalyseSolvabilite?></i>
|
||||
<div class="blocdegrade clearfix">
|
||||
<span class="textdegrade">Solvabilité <? if ($this->edition) { echo '('.$this->indiscore->Indiscore.')';}?></span>
|
||||
<div class="imgdegrade"><img class="borderimg" src="/themes/default/images/indiscore/imgscores-<?php echo $this->FormatPct($this->indiscore->Indiscore);?>.png"/></div>
|
||||
<div class="regle"><img src="/themes/default/images/indiscore/sgradiant2.png" /></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php $millesimeMax = date('Ymd', mktime(0, 0, 0, date('m'), date('d'), date('Y')-2));?>
|
||||
<?php if($this->indiscore->NbBilansScore > 0 && $this->indiscore->Bilans->item[0]->Millesime >= $millesimeMax) {?>
|
||||
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="550" colspan="2" class="StyleInfoData">
|
||||
A la lecture du dernier bilan, cloturé le <?=substr($this->indiscore->Bilans->item[0]->Millesime,6,2).'/'.substr($this->indiscore->Bilans->item[0]->Millesime,4,2).'/'.substr($this->indiscore->Bilans->item[0]->Millesime,0,4)?>, la situation financière de l'entreprise <?php echo $this->Nom;?> est <b><?php echo $this->indiscore->tabInfosNotations->SituationFinanciere;?></b>.<br/>
|
||||
<?php
|
||||
if (html_entity_decode($this->indiscore->tabInfosNotations->ProbabiliteDefaut) <> 'En défaut')
|
||||
echo 'La probabilité de défaillance associée à cette note avoisine les '. number_format($this->indiscore->tabInfosNotations->ProbabiliteDefaut,3,',',' ') .' %';
|
||||
else
|
||||
echo 'Cette entreprise est défaillante ou sur le point de le devenir.';
|
||||
//[EquivalenceBDF]
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="550" colspan="2" class="StyleInfoData">
|
||||
<i>Pour information, les méthodes standards donnent : Conan & Holder = <b><?php echo $this->indiscore->scores->ConanH;?></b>,
|
||||
Afdcc1 = <b><?php echo $this->indiscore->scores->Afdcc1;?></b>, Afdcc2 = <b><?php echo $this->indiscore->scores->Afdcc2;?></b>
|
||||
et Score Z = <b><?php echo $this->indiscore->scores->Z;?></b>.</i>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php } else {?>
|
||||
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="550" colspan="2" class="StyleInfoData">
|
||||
La situation financière de l'entreprise ne peut être évaluée en détail car
|
||||
<?php
|
||||
if($this->indiscore->Bilans->item[0]->Millesime < $millesimeMax && count($this->indiscore->Bilans->item) > 0 ) {
|
||||
echo 'le dernier bilan disponible date de '.substr($this->indiscore->Bilans->item[0]->Millesime,0,4).'.';
|
||||
} else {
|
||||
echo 'aucun bilan n\'est disponible.';
|
||||
} ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php }?>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2>Paiements</h2>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="550" colspan="2" class="StyleInfoData">
|
||||
<?php if(!empty($this->indiscore->infoPaiement)):?>
|
||||
<?php echo html_entity_decode($this->indiscore->infoPaiement);?>
|
||||
<?php else :?>
|
||||
Aucune information sur les paiements disponible.
|
||||
<?php endif;?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2>Conclusion</h2>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="550" colspan="2" class="StyleInfoData">
|
||||
<span class="notvisible">
|
||||
Compte tenu des informations disponibles auprès des sources officielles
|
||||
Scores et Décisions présente la conclusion suivante :</span><br/>
|
||||
<?php
|
||||
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É EST DE <?php echo round($this->indiscore->encours / 1000);?> K€</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 }?>
|
@ -0,0 +1,148 @@
|
||||
<div id="center">
|
||||
<h1>RAPPORT DE SYNTHESE</h1>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<?php
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Siret']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['SiretSiege']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['NumRC']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Actif']);
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2>Dénomination sociale & Coordonnées</h2>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<?php
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['RaisonSociale']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['FormeJuridique']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['DateImmat']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['DateCreaEt']);
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2>Activité(s) & Chiffre d'affaires</h2>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<?php
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['ActiviteEn']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['FormeJuridique']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Naf4']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['OrigineFond']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['TypeExploitation']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Saisonnalite']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['Capital']);
|
||||
echo $this->partial('identite/fiche-item.phtml', $this->dBlock['ChiffreAffaire']);
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
<?php
|
||||
echo $this->action('liste', 'dirigeant', null, array('siret' => $this->siret, 'id' => $this->id, 'apage' => 'indiscore2'));
|
||||
echo $this->action('liens', 'identite', null, array('siret' => $this->siret, 'id' => $this->id, 'apage' => 'indiscore2'));
|
||||
?>
|
||||
<h2>Eléments financiers</h2>
|
||||
<div class="paragraph">
|
||||
<?php if(count($this->tabResult)>0){ ?>
|
||||
<table id="synthese">
|
||||
<thead>
|
||||
<tr>
|
||||
<th align="center"></th>
|
||||
<th colspan="2" class="date"><?=$this->tabResult[0]['dateCloture']?><br/><?=$this->tabResult[0]['duree']?></th>
|
||||
<th colspan="2" class="date"><?=$this->tabResult[1]['dateCloture']?><br/><?=$this->tabResult[1]['duree']?></th>
|
||||
<th colspan="2" class="date"><?=$this->tabResult[2]['dateCloture']?><br/><?=$this->tabResult[2]['duree']?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($this->tabRatio as $ratio => $info) { ?>
|
||||
<tr>
|
||||
<td class="head"><a class="tooltip" title="<?=$info['comment']?>"><?=$info['titre']?></a></td>
|
||||
<td class="right"><?=$this->tabResult[0]['ratio'][$ratio]?></td>
|
||||
<td class="right" title="<?=$this->tabResult[0]['info'][$ratio]?>"><?=$this->tabResult[0]['total'][$ratio]?> %</td>
|
||||
<td class="right"><?=$this->tabResult[1]['ratio'][$ratio]?></td>
|
||||
<td class="right" title="<?=$this->tabResult[1]['info'][$ratio]?>"><?=$this->tabResult[1]['total'][$ratio]?> %</td>
|
||||
<td class="right"><?=$this->tabResult[2]['ratio'][$ratio]?></td>
|
||||
<td class="right" title="<?=$this->tabResult[2]['info'][$ratio]?>"><?=$this->tabResult[2]['total'][$ratio]?> %</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php } else {?>
|
||||
Aucun bilan disponible.
|
||||
<?php }?>
|
||||
</div>
|
||||
|
||||
<h2>Paiement</h2>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"></td>
|
||||
<td class="StyleInfoData"><?=html_entity_decode($this->paiement)?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2>Procédures collectives</h2>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"></td>
|
||||
<td class="StyleInfoLib" width="200">Situation juridique</td>
|
||||
<td class="StyleInfoData" width="350">
|
||||
<?php if ($this->SituationJuridique == 'P'):?>
|
||||
<a href="<?=$this->url(array(
|
||||
'controller' => 'juridique',
|
||||
'action' => 'annonces',
|
||||
'siret' => $this->siret,
|
||||
'id' => $this->id,
|
||||
))?>">
|
||||
<font color="red">
|
||||
<b>En procédure collective</b>
|
||||
</font>
|
||||
</a>
|
||||
<?php if($this->dateRadiation != ''):?>
|
||||
<br/>Radié du RCS le <?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>
|
@ -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>
|
@ -0,0 +1,64 @@
|
||||
<div id="center">
|
||||
|
||||
<h1><?=$this->translate('HISTORIQUE INDISCORE')?></h1>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib"><?=$this->translate('Numéro identifiant Siren')?></td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->SirenTexte($this->siren)?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib"><?=$this->translate('Dénomination sociale')?></td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2><?=$this->translate('Historique des scores')?></h2>
|
||||
|
||||
<?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>
|
@ -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>
|
@ -0,0 +1,153 @@
|
||||
<div id="center">
|
||||
<h1><?=$this->translate("HISTORIQUE").' '.strtoupper($this->types[$this->type]);?></h1>
|
||||
<div class="paragraph">
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib"><?=$this->translate("Numéro identifiant Siren")?></td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->SirenTexte($this->siren)?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib"><?=$this->translate("Dénomination sociale")?></td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2><?=$this->translate("Historique des scores")?></h2>
|
||||
|
||||
<div class="paragraph" style="text-align:right;">
|
||||
<select name="type">
|
||||
<?php foreach($this->types as $key=>$val) {?>
|
||||
<?php $selected = ($key == $this->type)?'selected':'';?>
|
||||
<option value="<?=$this->url(array('siret'=>$this->siret, 'id'=>$this->id, 'type'=>$key))?>" <?=$selected;?>><?=$val?></option>
|
||||
<?php }?>
|
||||
</select>
|
||||
<script>
|
||||
$('select[name=type]').change(function(e){
|
||||
window.location = $(this).val();
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<div class="paragraph">
|
||||
<p>
|
||||
<?php switch ( $this->typeTxt ) {?>
|
||||
<?php case 'indiScore20':?>
|
||||
L'indiscore évalue le risque de faillite d'entreprise à 12 mois à partir de trois axes: le respect,
|
||||
l'analyse historique des représentants légaux et l'analyse du bilan. Les informations sur l’environnement économique
|
||||
des entreprises (secteurs d'activité, groupe, paiements) complètent l'analyse de l'indiscore. Un indiscore entre 0 et
|
||||
6/20 indiquera un risque élevé, entre 7 et 10/20 un risque moyen et un indiscore compris entre 11 et 20/20
|
||||
un risque faible. Un avis de crédit fournisseur/client est donné, jusqu'à concurrence de 500 K€.
|
||||
<?php break; ?>
|
||||
<?php 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 l’environnement économique
|
||||
des entreprises (secteurs d'activité, groupe, paiements) complètent l'analyse de l'indiscore. Un indiscore entre 0 et
|
||||
40/100 indiquera un risque élevé, entre 41 et 50/100 un risque moyen et un indiscore compris entre 51 et 100/100
|
||||
un risque faible. Un avis de crédit fournisseur/client est donné, jusqu'à concurrence de 500 K€.
|
||||
<?php break; ?>
|
||||
<?php case 'scoreDir':?>
|
||||
Évaluation de l'équipe dirigeante en place. Système S&D
|
||||
<?php break; ?>
|
||||
<?php 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; ?>
|
||||
<?php case 'scoreZ':?>
|
||||
Le score Z de la Banque de France permet de déceler les défaillances d’entreprises. Ces dernières sont caractérisées
|
||||
par 19 ratios retraçant quatre aspects de leur comportement : structure financière, dynamisme, rentabilité, gestion courante.
|
||||
<?php break; ?>
|
||||
<?php 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 d’euros. Il permet un classement des sociétés des plus risquées (score inférieur à
|
||||
6,8) aux plus saines (score supérieur à 16,4).
|
||||
<?php break; ?>
|
||||
<?php case 'scoreAfdcc1':?>
|
||||
1er indicateur synthétique de vulnérabilité établi par l'Association Françaises des Crédits managers et Conseils.
|
||||
<?php break; ?>
|
||||
<?php case 'scoreAfdcc2':?>
|
||||
Le score sectoriel AFDCC2 (1999) s’applique aux sociétés réalisant un chiffre d’affaires de 150.000 à 75 millions
|
||||
d'euros. Il comprend 11 fonctions pour 7 secteurs d'activité en différenciant les TPE des PME. Il s'adresse plus
|
||||
spécialement au Credit Manager, étant axé sur la solvabilité de l'entreprise à court terme.
|
||||
<?php break; ?>
|
||||
<?php 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; ?>
|
||||
<?php case 'scoreCCF':?>
|
||||
Évaluation à 3 ans de la probabilité de défaillance d'une entreprise.
|
||||
<?php break; ?>
|
||||
<?php }?>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<?php if ( count($this->scores)> 0 ) {?>
|
||||
<div class="paragraph">
|
||||
<table class="tablesorter" id="synthese">
|
||||
<thead>
|
||||
<tr>
|
||||
<th align="center"><?=$this->translate("Date")?></th>
|
||||
<th align="center"><?=$this->types[$this->type]?></th>
|
||||
<th align="center"><?=$this->translate("Encours")?> (K€)</th>
|
||||
<th><?=$this->translate("Motif du changement")?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($this->scores as $score) {?>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<?php $date = new Zend_Date($score->date, 'yyyy-MM-dd');?>
|
||||
<?=$date->toString('dd/MM/yyyy')?>
|
||||
</td>
|
||||
<?php
|
||||
$style = '';
|
||||
//Color value - @todo redraw the table and add it before view
|
||||
if ( $score->value < $this->bornes[$this->type]['rouge'] ) {
|
||||
$style = ' style="color:red;"';
|
||||
} elseif ( $score->value < $this->bornes[$this->type]['orange'] ) {
|
||||
$style = ' style="color:orange;"';
|
||||
} else {
|
||||
$style = ' style="color:green;"';
|
||||
}
|
||||
?>
|
||||
<td align="center"<?=$style?>><?=$score->value?></td>
|
||||
<td align="center"><?=number_format($score->encours,2)?></td>
|
||||
<td><?=$score->label?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<script>
|
||||
$(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>
|
@ -0,0 +1,58 @@
|
||||
<div id="center">
|
||||
<h1 class="titre">ÉVALUATION</h1>
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Numéro identifiant Siren</td>
|
||||
<td width="350" class="StyleInfoData"><?php echo $this->SirenTexte($this->siren);?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
|
||||
<td width="350" class="StyleInfoData"><?php echo $this->raisonSociale?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
</table>
|
||||
|
||||
<h2>Scoring partenaire : Creditsafe®</h2>
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<table cellspacing="0">
|
||||
<tr>
|
||||
<td width="20"> </td>
|
||||
<td width="10" bgcolor="#bebebe"> </td>
|
||||
<td width="200" bgcolor="#bebebe"><font size="2"><b>Note à ce jour [0 - 100]</b></font></td>
|
||||
<td width="250" bgcolor="#bebebe"><font color="<?php echo $this->fontColor;?>" size="2"><?php echo $this->rating;?></font></td>
|
||||
<td width="100" bgcolor="#bebebe">
|
||||
<?php echo $this->imgFeux?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20"> </td>
|
||||
<td width="10" bgcolor="#e7e7e7"> </td>
|
||||
<td width="200" bgcolor="#e7e7e7"><font size="2"><b>Limite à ce jour [€]</b></font></td>
|
||||
<td width="350" colspan="2" bgcolor="#e7e7e7"><font size="2"><?php echo $this->strCreditlimit;?></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20"> </td>
|
||||
<td width="10" bgcolor="#bebebe"> </td>
|
||||
<td width="200" bgcolor="#bebebe"><font size="2"><b>Informations complémentaires</b></font></td>
|
||||
<td width="350" colspan="2" bgcolor="#bebebe"><font color="<?php echo $this->fontColor;?>" size="2"><?php echo $this->libelle.'<br/>'.$this->ratingdesc1; if (trim($this->ratingdesc2)<>'') echo '<br/>'.$this->ratingdesc2;?></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="550" colspan="2" class="StyleInfoData">
|
||||
<form action="<?=$this->url(array('controller'=>'evaluation', 'action'=>'scoringcommande'))?>" method="post">
|
||||
<input type="hidden" name="siren" value="<?=$this->siren?>"/>
|
||||
<input type="checkbox"/>Mettre cette entreprise sous surveillance scoring partenaire
|
||||
<br/>
|
||||
Adresse email du destinataire <input name="email" type="text" value="<?=$this->emailCommande?>" size="20"/>
|
||||
<input class="imgButton" type="image" src="/themes/default/images/boutton_valider_off.gif" name="submit" onmouseover="this.src='/themes/default/images/boutton_valider_on.gif'" onmouseout="this.src='/themes/default/images/boutton_valider_off.gif'" title="Surveiller le score partenaire de cette entreprise...">
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
@ -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>
|
@ -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>
|
48
application/views/default2015v2/scripts/finance/banque.phtml
Normal file
48
application/views/default2015v2/scripts/finance/banque.phtml
Normal file
@ -0,0 +1,48 @@
|
||||
<div class="row"><h1 class="titre"><?=$this->translate("Relations Bancaires")?></h1></div>
|
||||
<table class="identite">
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Numéro identifiant Siren</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->SirenTexte($this->siren)?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="row"><h2>Liste des relations bancaires</h2></div>
|
||||
<?php if(count($this->banques)>0) { ?>
|
||||
<table class="table table bordered 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 }?>
|
||||
|
||||
<?php echo $this->render('cgu.phtml', $this->cgu);?>
|
179
application/views/default2015v2/scripts/finance/bilan.phtml
Normal file
179
application/views/default2015v2/scripts/finance/bilan.phtml
Normal file
@ -0,0 +1,179 @@
|
||||
<?php if (empty($this->AutrePage)) {?>
|
||||
<div class="row"><h1 class="titre"><?=$this->translate("Eléments financiers")?></h1></div>
|
||||
<table class="identite">
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Numéro identifiant Siren</td>
|
||||
<td width="350" class="StyleInfoData"><?php echo $this->SirenTexte($this->siren);?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
|
||||
<td width="350" class="StyleInfoData"><?php echo $this->raisonSociale;?></td>
|
||||
</tr>
|
||||
<?php if (isset($this->tabResultActif) && isset($this->tabResultPassif) && isset($this->tabResultSig)){?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Type de bilans</td>
|
||||
<td width="350" class="StyleInfoData">
|
||||
<?php if ($this->nbBilanC==0){?>
|
||||
Réel normal ou Simplifié
|
||||
<?php } elseif ($this->nbBilanN==0){?>
|
||||
Consolidé
|
||||
<?php } else {?>
|
||||
<form>
|
||||
<select name="typeBilan">
|
||||
<option value="N"<?=($this->typeBilan=='N')? ' selected' : '';?>>Réel normal ou Simplifié</option>
|
||||
<option value="C"<?=($this->typeBilan=='C')? ' selected' : '';?>>Consolidé</option>
|
||||
</select>
|
||||
</form>
|
||||
<?php }?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
|
||||
<?php if ( empty($this->AutrePage) ) {?>
|
||||
<div class="ui-widget">
|
||||
<div id="liasse-check-result" class="ui-state-highlight ui-corner-all" style="margin-top: 5px; padding: .5em .5em 0 .5em;">
|
||||
<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>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
<?php }?>
|
||||
|
||||
<?php if($this->typeBilan == 'B' || $this->typeBilan == 'A') {?>
|
||||
|
||||
<table class="table">
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td colspan="2" class="StyleInfoLib" width="200">Bilan de banque/assurance non gérés</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?php } else { ?>
|
||||
|
||||
<?php if ($this->nbBilanN==0 && $this->nbBilanC==0) {?>
|
||||
|
||||
<table class="table">
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td colspan="2" class="StyleInfoLib" width="200">Aucun bilan disponible.</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?php } else {?>
|
||||
|
||||
<div class="row"><h2>Bilan actif - passif</h2></div>
|
||||
<table class="table table-bordered 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>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<tr>
|
||||
<td colspan="7">
|
||||
<?=$this->action('bilangraph', 'finance', null, array('type' => 'actif', 'typeBilan' => $this->typeBilan,
|
||||
'dateCloture' => $this->lastDateCloture, 'siret' => $this->siret, 'id' => $this->id))?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table class="table table-bordered 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>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<tr>
|
||||
<td colspan="7"><?=$this->action('bilangraph', 'finance', null, array('type' => 'passif',
|
||||
'typeBilan' => $this->typeBilan, 'dateCloture' => $this->lastDateCloture, 'siret' => $this->siret,
|
||||
'id' => $this->id))?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="row"><h2>Soldes Intermédiaire de Gestion</h2></div>
|
||||
<table class="table table-bordered 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>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<tr>
|
||||
<td colspan="8"><?=$this->action('bilangraph', 'finance', null, array('type' => 'sig',
|
||||
'typeBilan' => $this->typeBilan, 'dateCloture' => $this->lastDateCloture, 'siret' => $this->siret,
|
||||
'id' => $this->id))?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?php }?>
|
||||
|
||||
<?php }?>
|
||||
|
||||
<?php if ( empty($this->AutrePage) ) {?>
|
||||
<?=$this->render('cgu.phtml', $this->cgu)?>
|
||||
<?php }?>
|
234
application/views/default2015v2/scripts/finance/bourse.phtml
Normal file
234
application/views/default2015v2/scripts/finance/bourse.phtml
Normal file
@ -0,0 +1,234 @@
|
||||
<div class="row"><h1 class="titre"><?=$this->translate("Informations Boursières")?></h1></div>
|
||||
<table id="identite">
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Numéro identifiant Siren</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->SirenTexte($this->siren)?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
?>
|
||||
<table class="table table-bordered">
|
||||
<tr>
|
||||
<td width="200" class="StyleInfoLib">Code ISIN</td>
|
||||
<td width="350" class="StyleInfoData">
|
||||
<?php
|
||||
echo $this->InfosBourse->Isin;
|
||||
if (trim($this->InfosBourse->CodeSicovam)*1>0)
|
||||
echo ' <b>(ancien code Sicovam : </b>'.$this->InfosBourse->CodeSicovam.'<b>)</b>';
|
||||
if ($this->edition) {
|
||||
echo ' <a href="'.$this->edition.'">(Edition)</a>';
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200" class="StyleInfoLib">Code Mnémo</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->InfosBourse->CodeMnemo?></td>
|
||||
</tr>
|
||||
<?php if( !empty($this->InfosBourse->CodeBloomberg) ){ ?>
|
||||
<tr>
|
||||
<td width="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="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="200" class="StyleInfoLib">Code Ric</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->InfosBourse->CodeRic?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<tr>
|
||||
<td width="200" class="StyleInfoLib">Place de cotation</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->InfosBourse->placeCotation?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200" class="StyleInfoLib">Marché</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->InfosBourse->Marche?></td>
|
||||
</tr>
|
||||
<tr> <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="200" class="StyleInfoLib">Éligible SRD / PEA</td>
|
||||
<td width="350" class="StyleInfoData"><?=$srd?> / <?=$pea?></td>
|
||||
</tr>
|
||||
<?php
|
||||
if ($this->urlImg!='') {
|
||||
?>
|
||||
<tr>
|
||||
<td width="200" class="StyleInfoLib">Logo</td>
|
||||
<td width="350" class="StyleInfoData"><?php echo $this->urlImg; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
|
||||
<div class="row"><h2>Coordonnées</h2></div>
|
||||
<table class="table table-bordered">
|
||||
<tr>
|
||||
<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="200" class="StyleInfoLib">Adresse</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->InfosBourse->Adresse?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200" class="StyleInfoLib">Date d'introduction en bourse</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->InfosBourse->DateIntroduction?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200" class="StyleInfoLib">Date dernière assemblée générale</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->InfosBourse->DateDerAG?></td>
|
||||
</tr>
|
||||
<?php if (trim($this->InfosBourse->DateRadiation)<>'' && $this->InfosBourse->DateRadiation<>'0000-00-00') { ?>
|
||||
<tr>
|
||||
<td width="200" class="StyleInfoLib">Date de radiation</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->InfosBourse->DateRadiation?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<td width="200" class="StyleInfoLib">Téléphone</td>
|
||||
<td width="350" class="StyleInfoData">
|
||||
<?php
|
||||
if (strlen(trim($this->InfosBourse->Tel))>5) echo $this->InfosBourse->Tel.' ';
|
||||
if (strlen(trim($this->InfosBourse->Tel2))>5) echo $this->InfosBourse->Tel2;
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200" class="StyleInfoLib">Fax</td>
|
||||
<td width="350" class="StyleInfoData">
|
||||
<?php
|
||||
if (strlen(trim($this->InfosBourse->Fax))>5) echo $this->InfosBourse->Fax.' ';
|
||||
if (strlen(trim($this->InfosBourse->Fax2))>5) echo $this->InfosBourse->Fax2;
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if ($siteWeb<>'') { ?>
|
||||
<tr>
|
||||
<td width="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="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 class="row"><h2>Activité(s)</h2></div>
|
||||
<table class="table table-bordered">
|
||||
<tr>
|
||||
<td width="200" class="StyleInfoLib">Activité</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->InfosBourse->Activite?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200" class="StyleInfoLib">Secteur</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->InfosBourse->Secteur?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="550" colspan="2" class="StyleInfoData"><?=str_replace("\n", '<br/>',$this->InfosBourse->ActiviteDet)?></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="row"><h2>Dernier cours</h2></div>
|
||||
<table class="table table-bordered">
|
||||
<tr>
|
||||
<td width="200" class="StyleInfoLib">Dernière cotation connue</td>
|
||||
<?php $date = new Zend_Date($this->InfosBourse->derCoursDate, 'yyyy-MM-dd');?>
|
||||
<td width="350" class="StyleInfoData"><?=$date->toString('dd/MM/yyyy')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200" class="StyleInfoLib">Clôture</td>
|
||||
<td width="350" class="StyleInfoData"><?=number_format($this->InfosBourse->derCoursCloture,2,',', ' ')?> €</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200" class="StyleInfoLib">Ouverture</td>
|
||||
<td width="350" class="StyleInfoData"><?=number_format($this->InfosBourse->derCoursOuverture,2,',', ' ')?> €</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200" class="StyleInfoLib">Plus haut</td>
|
||||
<td width="350" class="StyleInfoData"><?=number_format($this->InfosBourse->derCoursPlusHaut,2,',', ' ')?> €</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200" class="StyleInfoLib">Plus Bas</td>
|
||||
<td width="350" class="StyleInfoData"><?=number_format($this->InfosBourse->derCoursPlusBas,2,',', ' ')?> €</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200" class="StyleInfoLib">Volume échangé</td>
|
||||
<td width="350" class="StyleInfoData"><?=number_format($this->InfosBourse->derCoursVolume,0,'', ' ')?> titres (<?=number_format($this->InfosBourse->derCoursVolume/$this->InfosBourse->nombreTitres,2,',', ' ')?> %)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200" class="StyleInfoLib">Capitalisation</td>
|
||||
<td width="350" class="StyleInfoData"><?=number_format($this->InfosBourse->capitalisation,2,',', ' ')?> €</td>
|
||||
</tr>
|
||||
<tr><td colspan="3"> </td></tr>
|
||||
<tr>
|
||||
<td width="200" class="StyleInfoLib">Minimum historique</td>
|
||||
<td width="350" class="StyleInfoData"><?=number_format($this->InfosBourse->coursMin,2,',', ' ')?> €</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200" class="StyleInfoLib">Maximum historique</td>
|
||||
<td width="350" class="StyleInfoData"><?=number_format($this->InfosBourse->coursMax,2,',', ' ')?> €</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="200" class="StyleInfoLib">Cours moyen</td>
|
||||
<td width="350" class="StyleInfoData"><?=number_format($this->InfosBourse->coursMoy,2,',', ' ')?> €</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?php } else {?>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<td width="580" class="StyleInfoLib" colspan="3"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="550" class="StyleInfoLib" colspan="2">
|
||||
Société non côtée en bourse à ce jour.
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php } ?>
|
||||
|
||||
<?php echo $this->render('cgu.phtml', $this->cgu);?>
|
86
application/views/default2015v2/scripts/finance/flux.phtml
Normal file
86
application/views/default2015v2/scripts/finance/flux.phtml
Normal file
@ -0,0 +1,86 @@
|
||||
<div class="row"><h1 class="title">Flux de Trésorerie <span class="label label-warning pull-right">beta</span></h1></div>
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Numéro identifiant Siren</td>
|
||||
<td width="340" class="StyleInfoData"><?=$this->SirenTexte($this->siret)?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
|
||||
<td width="340" class="StyleInfoData"><?=$this->raisonSociale?></td>
|
||||
</tr>
|
||||
<?php if ($this->nbBilanN > 0 || $this->nbBilanC > 0) { ?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Type de bilans</td>
|
||||
<td width="340" class="StyleInfoData">
|
||||
<?php if ($this->nbBilanN > 0 && $this->nbBilanC > 0) { ?>
|
||||
<input type="radio" name="typeBilan" value="<?=$this->url(array(
|
||||
'controller'=>'finance', 'action'=>'flux',
|
||||
'siret'=>$this->siret, 'id'=>$this->id, 'type'=>'N'), 'default', true)?>"
|
||||
<?php if ($this->typeBilan == 'N') { echo ' checked'; }?>/><label>Réel normal ou Simplifié</label>
|
||||
<input type="radio" name="typeBilan" value="<?=$this->url(array(
|
||||
'controller'=>'finance', 'action'=>'flux',
|
||||
'siret'=>$this->siret, 'id'=>$this->id, 'type'=>'C'), 'default', true)?>"
|
||||
<?php if ($this->typeBilan == 'C') { echo ' checked'; }?>/><label>Consolidé</label>
|
||||
<?php } else if ($this->nbBilanN > 0 && $this->nbBilanC == 0) {?>
|
||||
Réel normal ou Simplifié
|
||||
<?php } else if ($this->nbBilanN == 0 && $this->nbBilanC > 0) {?>
|
||||
Consolidé
|
||||
<?php }?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
|
||||
<div class="row"><h2>Tableau des flux</h2></div>
|
||||
<table class="table table-bordered bilans">
|
||||
<tr class="subhead">
|
||||
<td colspan="2"> </td>
|
||||
<?php foreach ($this->dateCloture as $k=>$date) { ?>
|
||||
<td class="center" >
|
||||
<?=substr($date,6,2).'/'.substr($date,4,2).'/'.substr($date,0,4)?><br/>
|
||||
<?=$this->bilansInfos[$date]->duree?> mois</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php
|
||||
foreach ($this->dataTable as $ratio) {
|
||||
$trClass = '';
|
||||
if ( empty($ratio['r']) ){
|
||||
$trClass = ' class="darkblue"';
|
||||
}
|
||||
|
||||
if ( isset($ratio['class']) && $ratio['class']=='subhead' ){
|
||||
$trClass = ' class="'.$ratio['class'].'"';
|
||||
}
|
||||
?>
|
||||
<tr<?=$trClass?>>
|
||||
<td><?=$ratio['op']?></td>
|
||||
<td><?=$ratio['titre']?></td>
|
||||
<?php foreach ($this->dateCloture as $k=>$date) { ?>
|
||||
<td class="right" style="white-space: nowrap">
|
||||
<?php if ( !empty($ratio['r']) ){ ?>
|
||||
<?=$ratio['values'][$date]?>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<?php }?>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
|
||||
<?php if ($this->graph) {?>
|
||||
<div class="paragraph">
|
||||
<img src="/fichier/imgcache/<?=$this->graph?>" />
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
<?=$this->render('cgu.phtml', $this->cgu);?>
|
||||
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('input[name=typeBilan]').click(function(e){
|
||||
window.location.href = $(this).val();
|
||||
});
|
||||
});
|
||||
</script>
|
129
application/views/default2015v2/scripts/finance/liasse.phtml
Normal file
129
application/views/default2015v2/scripts/finance/liasse.phtml
Normal file
@ -0,0 +1,129 @@
|
||||
<div class="row"><h1 class="titre">Eléments Financiers - Bilans</h1></div>
|
||||
<table class="identite">
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Numéro identifiant Siren</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->SirenTexte($this->siren)?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
|
||||
</tr>
|
||||
|
||||
<?php if ($this->edition) {?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td colspan="2">
|
||||
<?php if(!empty($this->dateCloture)) {?>
|
||||
<a href="<?=$this->url(array('controller'=>'saisie', 'action'=>'liasse', 'siret'=>$this->siren,
|
||||
'selection'=>$this->dateCloture.':'.$this->champType), 'default', true)?>">
|
||||
Corriger le bilan</a><br/><?php }?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
|
||||
<?php if ($this->exportxls) {?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td colspan="2">
|
||||
<a href="<?=$this->url(array(
|
||||
'controller' => 'finance',
|
||||
'action' => 'liassexls',
|
||||
'siret' => $this->siret,
|
||||
'unite' => $this->unite,
|
||||
'type' => $this->champType,
|
||||
'date' => $this->dateCloture,
|
||||
))?>" id="xls">Exporter en fichier Excel.</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ( $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
|
||||
switch ($this->champType) {
|
||||
case 'N' : $name = 'Réel Normal'; break;
|
||||
case 'S' : $name = 'Simplifié'; break;
|
||||
case 'C' : $name = 'Consolidé'; break;
|
||||
case 'A' : $name = 'Assurance'; break;
|
||||
case 'B' : $name = 'Banque'; break;
|
||||
}
|
||||
?>
|
||||
<div class="row"><h2>Liasse <?=$name?> - Millésime <?=substr($this->dateCloture,0,4)?></h2></div>
|
||||
<form method="post" action="<?=$this->url(array('controller'=>'finance','action'=>'liasse','siret'=>$this->siret,'id'=>$this->id))?>">
|
||||
Valeurs exprimées en
|
||||
<select name="unit">
|
||||
<?php foreach ($this->unit as $id => $titre):?>
|
||||
<option value="<?=$id?>"<?=($id==$this->unite)? ' selected': '';?>><?=$titre?></option>
|
||||
<?php endforeach;?>
|
||||
</select>
|
||||
<input type="submit" value="OK" />
|
||||
</form>
|
||||
|
||||
<?php if(empty($this->dateCloture)) {?>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td colspan="2" class="StyleInfoLib" width="200">Impossible d'afficher le bilan.</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php } else {?>
|
||||
|
||||
<div class="tabbed_area">
|
||||
<ul class="tabs">
|
||||
<?php foreach ($this->ancres as $id => $name) {?>
|
||||
<li><a href="#<?=$id?>" title="<?=$name?>" class="tab"><?=$name?></a></li>
|
||||
<?php }?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
|
||||
<?php if( in_array($this->champType, array('S', 'N', 'C')) ) {?>
|
||||
|
||||
<?php echo $this->partial('finance/liasse/2050.phtml', array(
|
||||
'liasse' => $this->liasse,
|
||||
'dateCloture' => $this->dateClotureD,
|
||||
'dateCloturePre' => $this->dateCloturePreD,
|
||||
'dureesMois' => $this->dureesMois,
|
||||
'dureesMoisPre'=> $this->dureesMoisPre,
|
||||
'unite'=> $this->unite,
|
||||
));?>
|
||||
|
||||
<?php } elseif ($this->champType == 'B') {?>
|
||||
|
||||
<?php echo $this->partial('finance/liasse/banque.phtml', array(
|
||||
'liasse' => $this->liasse,
|
||||
'dateCloture' => $this->dateClotureD,
|
||||
'dateCloturePre' => $this->dateCloturePreD,
|
||||
'dureesMois' => $this->dureesMois,
|
||||
'dureesMoisPre'=> $this->dureesMoisPre,
|
||||
'unite'=> $this->unite,
|
||||
));?>
|
||||
|
||||
<?php } elseif ($this->champType == 'A') {?>
|
||||
|
||||
<?php echo $this->partial('finance/liasse/assurance.phtml', array(
|
||||
'liasse' => $this->liasse,
|
||||
'dateCloture' => $this->dateClotureD,
|
||||
'dateCloturePre' => $this->dateCloturePreD,
|
||||
'dureesMois' => $this->dureesMois,
|
||||
'dureesMoisPre'=> $this->dureesMoisPre,
|
||||
'unite'=> $this->unite,
|
||||
));?>
|
||||
|
||||
<?php }?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php }?>
|
||||
|
||||
<?php echo $this->render('cgu.phtml', $this->cgu);?>
|
3711
application/views/default2015v2/scripts/finance/liasse/2050.phtml
Normal file
3711
application/views/default2015v2/scripts/finance/liasse/2050.phtml
Normal file
File diff suppressed because it is too large
Load Diff
@ -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>
|
@ -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>
|
@ -0,0 +1,18 @@
|
||||
<p><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
|
||||
<?php if ( $this->BilanDateClotureIso ) { ?>
|
||||
|
||||
Le dernier millésime déposé au greffe est le <?=$this->BilanDateCloture?>.
|
||||
<?php if ( $this->SaisieDateIso != '' && $this->SaisieCode == '00' ) {?>
|
||||
Le bilan a été saisie le <?=$this->SaisieDate?>.
|
||||
<?php } else {?>
|
||||
Le bilan n'a pas été saisi par la source officielle<?php if ($this->SaisieLabel!='') {?> (<i><?=$this->SaisieLabel?>)</i><?php }?>.
|
||||
<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>
|
160
application/views/default2015v2/scripts/finance/liasselist.phtml
Normal file
160
application/views/default2015v2/scripts/finance/liasselist.phtml
Normal file
@ -0,0 +1,160 @@
|
||||
<div class="row"><h1 class="titre">Eléments Financiers - Liste des Bilans</h1></div>
|
||||
<table class="identite">
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Numéro identifiant Siren</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->SirenTexte($this->siren)?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="row"><h2>Dernier(s) bilan(s) disponible(s)</h2></div>
|
||||
<?php if ($this->edition) {?>
|
||||
<div class="paragraph">
|
||||
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>
|
||||
</div>
|
||||
<?php }?>
|
||||
<?php if ( empty($this->AutrePage) && $this->haveLiasse) {?>
|
||||
<div class="ui-widget">
|
||||
<div id="liasse-check-result" class="ui-state-highlight ui-corner-all" style="margin-top: 5px; padding: .5em .5em 0 .5em;">
|
||||
<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>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
<?php if ($this->saisiebilan) {?>
|
||||
<div class="paragraph">
|
||||
<a id="bilanClient" href="<?=$this->url(array('controller'=>'finance', 'action'=>'saisiebilan',
|
||||
'siren'=>$this->siren), 'default', true)?>" title="Envoi d'un bilan en saisi">
|
||||
Vous possédez un bilan plus récent</a>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
<?php if ( $this->haveLiasse ) {?>
|
||||
|
||||
<table class="table table bordered liasse">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Millésime</th>
|
||||
<th>Date de cloture</th>
|
||||
<th>Date de cloture N-1</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($this->BilanList as $type => $liste) {?>
|
||||
<?php if (count($liste) > 0) {?>
|
||||
<?php foreach ($liste as $element) {?>
|
||||
<?php
|
||||
switch ($type) {
|
||||
case 'N' : $name = 'Réel Normal'; break;
|
||||
case 'S' : $name = 'Simplifié'; break;
|
||||
case 'C' : $name = 'Consolidé'; break;
|
||||
case 'A' : $name = 'Assurance'; break;
|
||||
case 'B' : $name = 'Banque'; break;
|
||||
}
|
||||
?>
|
||||
<tr><td style="font-weight:bold;padding-left:20px;" colspan="4"><?=$name?></td></tr>
|
||||
<tr>
|
||||
<td align="center" style="font-weight:bold;">
|
||||
<a href="<?=$this->url(array('controller'=>'finance','action'=>'liasse',
|
||||
'siret'=>$this->siret,'id'=>$this->id, 'date'=> $type.$element->dateExercice), 'default', true)?>">
|
||||
<?=$element->millesime?></a>
|
||||
</td>
|
||||
<td align="center">
|
||||
<?php $date = new Zend_Date($element->dateExercice, 'yyyyMMdd'); ?> <?=$date->toString('dd/MM/yyyy')?>
|
||||
- <?=$element->dureeExercice?> Mois</td>
|
||||
<td align="center">
|
||||
<?php
|
||||
if ( Zend_Date::isDate($element->dateExercicePre, 'yyyyMMdd') ) {
|
||||
$date = new Zend_Date($element->dateExercicePre, 'yyyyMMdd');
|
||||
echo $date->toString('dd/MM/yyyy');
|
||||
} ?> - <?php if ($element->dureeExercicePre > 0) {?><?=$element->dureeExercicePre?> Mois<?php } ?></td>
|
||||
<td><a href="<?=$this->url(array('controller'=>'finance','action'=>'liasse',
|
||||
'siret'=>$this->siret,'id'=>$this->id, 'date'=> $type.$element->dateExercice), 'default', true)?>">
|
||||
Visualiser</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php break;?>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?php foreach ($this->BilanList as $type => $liste) {?>
|
||||
<?php if (count($liste) > 0) {?>
|
||||
<?php
|
||||
switch ($type) {
|
||||
case 'N' : $name = 'Réel Normal - Liasse 2050'; break;
|
||||
case 'S' : $name = 'Simplifié - Liasse 2033'; break;
|
||||
case 'C' : $name = 'Consolidé - Regroupement des états financier du groupe'; break;
|
||||
case 'A' : $name = 'Assurance'; break;
|
||||
case 'B' : $name = 'Banque'; break;
|
||||
}
|
||||
?>
|
||||
<div class="row"><h2>Millésime(s) <?=$name?></h2></div>
|
||||
<table class="table table-bordered liasse">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Millésime</th>
|
||||
<th>Date de cloture</th>
|
||||
<th>Date de cloture N-1</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($liste as $element) {?>
|
||||
<tr>
|
||||
<td align="center" style="font-weight:bold;">
|
||||
<a href="<?=$this->url(array('controller'=>'finance','action'=>'liasse',
|
||||
'siret'=>$this->siret,'id'=>$this->id, 'date'=> $type.$element->dateExercice), 'default', true)?>">
|
||||
<?=$element->millesime?></a>
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="<?=$this->url(array('controller'=>'finance','action'=>'liasse',
|
||||
'siret'=>$this->siret,'id'=>$this->id, 'date'=> $type.$element->dateExercice), 'default', true)?>">
|
||||
<?php $date = new Zend_Date($element->dateExercice, 'yyyyMMdd'); ?> <?=$date->toString('dd/MM/yyyy')?></a>
|
||||
- <?=$element->dureeExercice?> Mois</td>
|
||||
<td align="center">
|
||||
<?php
|
||||
if ( Zend_Date::isDate($element->dateExercicePre, 'yyyyMMdd') ) {
|
||||
$date = new Zend_Date($element->dateExercicePre, 'yyyyMMdd');
|
||||
echo $date->toString('dd/MM/yyyy');
|
||||
}
|
||||
?>
|
||||
- <?php if ($element->dureeExercicePre > 0) {?><?=$element->dureeExercicePre?> Mois<?php } ?>
|
||||
</td>
|
||||
<td><a href="<?=$this->url(array('controller'=>'finance', 'action'=>'liasse', 'siret'=>$this->siret,
|
||||
'id'=>$this->id, 'date'=> $type.$element->dateExercice), 'default', true)?>">
|
||||
Visualiser</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
|
||||
<?php } else {?>
|
||||
|
||||
<table class="table">
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td colspan="2" class="StyleInfoLib" width="200">Aucun bilan disponible.</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?php }?>
|
||||
|
||||
<?php echo $this->render('cgu.phtml', $this->cgu);?>
|
@ -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 }?>
|
143
application/views/default2015v2/scripts/finance/ratios.phtml
Normal file
143
application/views/default2015v2/scripts/finance/ratios.phtml
Normal file
@ -0,0 +1,143 @@
|
||||
<?php if ( empty($this->AutrePage) ) {?>
|
||||
<div class="row"><h1 class="titre"><?=$this->translate("Ratios")?></h1></div>
|
||||
<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"> </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"> </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 class="ui-widget">
|
||||
<div id="liasse-check-result" class="ui-state-highlight ui-corner-all" style="margin-top: 5px; padding: .5em .5em 0 .5em;">
|
||||
<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>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
<?php if(!isset($this->tabResult)){?>
|
||||
|
||||
<?php } else {?>
|
||||
<table id="ratios" class="table table-bordered">
|
||||
<tbody>
|
||||
<?php foreach ($this->tabResult as $item) { ?>
|
||||
<?php if (isset($item['ratio'])) { ?>
|
||||
<tr>
|
||||
<td><a class="tooltip-txt" 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="tooltip-graph" href="#" data-url="<?=$this->url(array('controller'=>'finance', 'action'=>'ratiosgraph',
|
||||
'siret'=>$this->siret, 'id' => $this->id, 'ratio' => $item['ratio']))?>" title="<?=$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 }?>
|
||||
|
||||
<?php if ( empty($this->AutrePage) ) {?>
|
||||
<?=$this->render('cgu.phtml', $this->cgu)?>
|
||||
<?php }?>
|
@ -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
|
@ -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 }?>
|
@ -0,0 +1,96 @@
|
||||
<?php if ($this->msg) {?>
|
||||
<div style="padding: 0 .7em;" class="ui-state-error ui-corner-all">
|
||||
<p><span style="float: left; margin-right: .3em;" class="ui-icon ui-icon-alert"></span>
|
||||
<strong>Alert:</strong> <?=$this->msg?></p>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
<?php if ($this->ref) {?>
|
||||
|
||||
Votre référence : BS-<?=strtoupper($this->ref)?>
|
||||
<br/><br/>
|
||||
Saisie du bilan de la Société <?=$this->raisonSociale?> clôturé le <?=$this->bilanCloture?> au format <?=$this->type?>
|
||||
<br/><br/>
|
||||
<form id="uploadForm" name="uploadForm" action="<?=$this->url(array('controller'=>'finance', 'action'=>'saisiebilanup'))?>" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="ref" value="<?=$this->ref?>" />
|
||||
<input type="hidden" name="fileref" value="<?=$this->fileref?>" />
|
||||
<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="uploadOutput"></div>
|
||||
<script type="text/javascript" src="/libs/form/jquery.form.min.js"/>
|
||||
<script>
|
||||
$('#uploadForm').ajaxForm({
|
||||
beforeSubmit: function() {
|
||||
$('#uploadOutput').html('Envoi en cours...');
|
||||
},
|
||||
success: function(data) {
|
||||
$('#uploadOutput').html(data);
|
||||
}
|
||||
});
|
||||
$('#dialogbilanclient').dialog({ buttons: [ {
|
||||
text: "Quitter",
|
||||
click: function() { $(this).dialog("close"); }
|
||||
} ] });
|
||||
</script>
|
||||
|
||||
<?php } else {?>
|
||||
|
||||
<form id="formEnvoiBilan" name="formEnvoiBilan" method="post" action="<?=$this->url(array('controller'=>'finance',
|
||||
'action'=>'saisiebilan'), 'default', true)?>">
|
||||
<input type="hidden" name="mode" value="order" />
|
||||
<input type="hidden" name="siren" value="<?=$this->siren?>" />
|
||||
<label>Format : </label><br/>
|
||||
<input type="radio" name="format" value="N" checked> Réel normal (Liasse 2050)<br/>
|
||||
<input type="radio" name="format" value="S"> Simplifé (Liasse 2033)<br/>
|
||||
<input type="radio" name="format" value="C"> Consolidé <span style="color:gray;">
|
||||
(Ne peut être utilisé dans l'évaluation des enrtreprises.)</span><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>Durée de l'exercice (en mois) : </label>
|
||||
<select name="dureeExercice">
|
||||
<?php for ($i=1; $i<24; $i++) { $select = ''; if ($i == 12) { $select = 'selected'; } ?>
|
||||
<option value="<?=$i?>" <?=$select?>><?=$i?></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é (+7€ HT par bilan saisi)
|
||||
<br/><br/>
|
||||
<span><i>
|
||||
Vous obtiendrez une référence à l'étape suivante avec la possibilité
|
||||
de nous transmettre directement par Internet votre bilan au format numérique (PDF, TIFF)
|
||||
</i></span>
|
||||
<br/><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" src="/libs/form/jquery.form.min.js"/>
|
||||
<script type="text/javascript">
|
||||
$('#dialogbilanclient').dialog({ buttons: {
|
||||
'Valider': function() {
|
||||
var url = $('#dialogbilanclient form#formEnvoiBilan').attr('action');
|
||||
$.post(url, $('#dialogbilanclient form#formEnvoiBilan').serialize(), function(data){
|
||||
$('div#dialogbilanclient.ui-dialog-content').html(data);
|
||||
});
|
||||
},
|
||||
'Annuler': function() { $(this).dialog('close'); }
|
||||
}, });
|
||||
|
||||
$('#datepicker').datepicker( $.datepicker.regional['fr'] );
|
||||
$('#datepicker').datepicker( "option", "dateFormat", 'dd/mm/yy' );
|
||||
$('#datepicker').datepicker( "option", "defaultDate", '31/12/<?=date('Y')-1?>' );
|
||||
</script>
|
||||
|
||||
<?php }?>
|
@ -0,0 +1,19 @@
|
||||
<?php if (isset($this->upload) && $this->upload == true){?>
|
||||
|
||||
<strong>Fichier envoyé <a href="<?=$this->url(array('controller'=>'fichier', 'action'=>'bilanclient',
|
||||
'fichier'=>$this->file),'default',true)?>"></a></strong>
|
||||
<script>
|
||||
$('#dialogbilanclient').dialog({ buttons: [ {
|
||||
text: "Quitter",
|
||||
click: function() { $(this).dialog("close"); }
|
||||
} ] });
|
||||
</script>
|
||||
|
||||
<?php } elseif (isset($this->upload) && $this->upload == false) {?>
|
||||
|
||||
<div style="padding: 0 .7em;" class="ui-state-error ui-corner-all">
|
||||
<p><span style="float: left; margin-right: .3em;" class="ui-icon ui-icon-alert"></span>
|
||||
<strong>Alert:</strong> <?=$this->errMsg?></p>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
@ -0,0 +1,60 @@
|
||||
<div class="row"><h1 class="titre"><?=$this->translate("Subvention")?></h1></div>
|
||||
<table class="identite">
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Numéro identifiant Siren</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->SirenTexte($this->siren)?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="row"><h2>Détail de la subvention</h2></div>
|
||||
<table class="table 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, ',', ' ')?> €</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>
|
@ -0,0 +1,70 @@
|
||||
<div class="row"><h1 class="titre"><?=$this->translate("Subventions")?></h1></div>
|
||||
<div class="paragraph">
|
||||
<table class="identite">
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Numéro identifiant Siren</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->SirenTexte($this->siren)?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="row"><h2>Liste des subventions</h2></div>
|
||||
<?php if ($this->msg) {?>
|
||||
<?=$this->msg?>
|
||||
<?php } else { ?>
|
||||
|
||||
<?php if (count($this->subventions)>0) {?>
|
||||
<table class="table table-bordered 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, ',', ' ')?> €</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php } else {?>
|
||||
Aucune subvention.
|
||||
<?php }?>
|
||||
|
||||
<?php }?>
|
||||
|
||||
<div class="paragraph">
|
||||
<?php if ($this->lienPagePrecedente) { ?>
|
||||
<a href="<?=$this->lienPagePrecedente?>" title="Page précédente..."><<</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...">>></a>
|
||||
<?php }?>
|
||||
</div>
|
110
application/views/default2015v2/scripts/finance/synthese.phtml
Normal file
110
application/views/default2015v2/scripts/finance/synthese.phtml
Normal file
@ -0,0 +1,110 @@
|
||||
<?php if (empty($this->AutrePage)){?>
|
||||
<div class="row"><h1 class="titre"><?=$this->translate("Synthèse")?></h1></div>
|
||||
<table class="identite">
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Numéro identifiant Siren</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->SirenTexte($this->siren);?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
|
||||
<td width="350" class="StyleInfoData"><?=$this->raisonSociale;?></td>
|
||||
</tr>
|
||||
<?php if (isset($this->tabResult)){?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Type de bilans</td>
|
||||
<td width="350" class="StyleInfoData">
|
||||
<?php if ($this->nbBilanC==0){?>
|
||||
Réel normal ou Simplifié
|
||||
<?php } elseif ($this->nbBilanN==0){?>
|
||||
Consolidé
|
||||
<?php } else {?>
|
||||
<form>
|
||||
<select name="typeBilan">
|
||||
<option value="N"<?=($this->typeBilan=='N')? ' selected' : '';?>>Réel normal ou Simplifié</option>
|
||||
<option value="C"<?=($this->typeBilan=='C')? ' selected' : '';?>>Consolidé</option>
|
||||
</select>
|
||||
</form>
|
||||
<?php }?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
|
||||
<?php if ( empty($this->AutrePage) ) {?>
|
||||
<div class="ui-widget">
|
||||
<div id="liasse-check-result" class="ui-state-highlight ui-corner-all" style="margin-top: 5px; padding: .5em .5em 0 .5em;">
|
||||
<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>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
<?php }?>
|
||||
|
||||
<?php if (!isset($this->tabResult)){?>
|
||||
Aucun bilan disponible.
|
||||
<?php } else {?>
|
||||
<table class="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> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($this->tabRatio as $ratio => $info) { ?>
|
||||
<tr>
|
||||
<td class="head">
|
||||
<a class="tooltip-txt" title="<?=$info['comment']?>"><?=$info['titre']?></a>
|
||||
</td>
|
||||
<td class="right"><?=$this->tabResult[0]['entrep'][$ratio]?></td>
|
||||
<td class="right"><small><?=$this->tabResult[0]['entrepEvol'][$ratio]?></small></td>
|
||||
<td class="right"><?=$this->tabResult[1]['entrep'][$ratio]?></td>
|
||||
<td class="right"><small><?=$this->tabResult[1]['entrepEvol'][$ratio]?></small></td>
|
||||
<td class="right"><?=$this->tabResult[2]['entrep'][$ratio]?></td>
|
||||
<td class="right"><small><?=$this->tabResult[2]['entrepEvol'][$ratio]?></small></td>
|
||||
<td>
|
||||
<?php if ($this->graph){ ?>
|
||||
<a href="<?=$this->url(array('controller' => 'finance', 'action' => 'synthese', 'siret' => $this->siret,
|
||||
'id' => $this->id, 'ratio' => $ratio), 'default', true)?>" class="tooltip-graph" data-url="<?=$this->url(array( 'controller' => 'finance', 'action' => 'synthesegraphevol',
|
||||
'siret' => $this->siret, 'id' => $this->id, 'ratio' => $ratio, ))?>" title="Evolution - <?=$info['titre']?>">
|
||||
<img src="/themes/default/images/finance/char_bar.png" alt="Visionner le graphique">
|
||||
<?php }?>
|
||||
</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<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 insuffisantes pour générer le graphique de synthèse.</b>
|
||||
<?php }?>
|
||||
</div>
|
||||
|
||||
<?php }?>
|
||||
|
||||
<?php if ( empty($this->AutrePage) ) {?>
|
||||
<?=$this->render('cgu.phtml', $this->cgu)?>
|
||||
<?php }?>
|
16
application/views/default2015v2/scripts/footer.phtml
Normal file
16
application/views/default2015v2/scripts/footer.phtml
Normal file
@ -0,0 +1,16 @@
|
||||
<div class="container-fluid">
|
||||
|
||||
<div class="row">
|
||||
<div class="center-block text-center">
|
||||
<p class="text-muted credit">
|
||||
© 2006 - <?php echo date('Y')?> <a href="http://www.scores-decisions.com">Scores & Décisions SAS</a>
|
||||
- <?=$this->translate("Tous droits réservés")?> -
|
||||
<a href="http://www.scores-decisions.com/mentions-legales/" target="_blank">
|
||||
<?=$this->translate("Mentions légales")?></a> -
|
||||
<img class="flag" id="fr" src="/themes/default/images/drapeaux/fr.png"/>
|
||||
<img class="flag" id="en" src="/themes/default/images/drapeaux/en.png"/>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
18
application/views/default2015v2/scripts/giant/compact.phtml
Normal file
18
application/views/default2015v2/scripts/giant/compact.phtml
Normal 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>
|
@ -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>
|
40
application/views/default2015v2/scripts/giant/full.phtml
Normal file
40
application/views/default2015v2/scripts/giant/full.phtml
Normal 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>
|
121
application/views/default2015v2/scripts/giant/identite.phtml
Normal file
121
application/views/default2015v2/scripts/giant/identite.phtml
Normal 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>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user