Vert-Orange-Rouge pour l'affichage du score
This commit is contained in:
parent
375643c23d
commit
fff3e2c4c7
@ -201,6 +201,19 @@ class EvaluationController extends Zend_Controller_Action
|
|||||||
*/
|
*/
|
||||||
public function indiscoreAction()
|
public function indiscoreAction()
|
||||||
{
|
{
|
||||||
|
$bornes = array(
|
||||||
|
'indiScore' => array('min' => 0, 'max' => 20, 'rouge' => 7, 'orange' => 10),
|
||||||
|
'scoreDir' => array('min' => 0, 'max' => 100, 'rouge' => 45, 'orange' => 56),
|
||||||
|
'scoreConf' => array('min' => 0, 'max' => 100, 'rouge' => 45, 'orange' => 56),
|
||||||
|
'scoreZ' => array('min' => -3, 'max' => 3, 'rouge' => -0.25, 'orange' => 0.125),
|
||||||
|
'scoreCH' => array('min' => -4.5, 'max' => 16, 'rouge' => 3.75, 'orange' => 10),
|
||||||
|
'scoreAfdcc1' => array('min' => -7, 'max' => 7, 'rouge' => 0, 'orange' => 1),
|
||||||
|
'scoreAfdcc2' => array('min' => -3, 'max' => 2, 'rouge' => -1, 'orange' => 0.5),
|
||||||
|
'scoreAltman' => array('min' => -2, 'max' => 8, 'rouge' => 0, 'orange' => 2.7),
|
||||||
|
'scoreCCF' => array('min' => 500, 'max' => 5000, 'rouge' => 2160, 'orange' => 3450 ),
|
||||||
|
);
|
||||||
|
$this->view->assign('bornes', $bornes);
|
||||||
|
|
||||||
$user = new Scores_Utilisateur();
|
$user = new Scores_Utilisateur();
|
||||||
if(!$user->checkPerm('INDISCORE') && !$user->checkPerm('INDISCOREP'))
|
if(!$user->checkPerm('INDISCORE') && !$user->checkPerm('INDISCOREP'))
|
||||||
$this->forward('perms', 'error');
|
$this->forward('perms', 'error');
|
||||||
|
@ -253,8 +253,15 @@ if ($this->indiscore->Enseigne!='' && $this->indiscore->Sigle!='') {
|
|||||||
Compte tenu des informations disponibles auprès des sources officielles
|
Compte tenu des informations disponibles auprès des sources officielles
|
||||||
Scores et Décisions présente la conclusion suivante :</span><br/>
|
Scores et Décisions présente la conclusion suivante :</span><br/>
|
||||||
<?php
|
<?php
|
||||||
switch($this->typeScore)
|
$color = '';
|
||||||
{
|
if ($this->indiscore->Indiscore20 < $this->bornes['indiScore']['rouge']) {
|
||||||
|
$color = ' indiscore-red';
|
||||||
|
} elseif ($this->indiscore->Indiscore20 < $this->bornes['indiScore']['orange']) {
|
||||||
|
$color = ' indiscore-orange';
|
||||||
|
} else {
|
||||||
|
$color = ' indiscore-green';
|
||||||
|
}
|
||||||
|
switch($this->typeScore) {
|
||||||
case '20':
|
case '20':
|
||||||
$maxIndiscore = $this->typeScore;
|
$maxIndiscore = $this->typeScore;
|
||||||
$indiscore = $this->indiscore->Indiscore20;
|
$indiscore = $this->indiscore->Indiscore20;
|
||||||
@ -266,18 +273,16 @@ if ($this->indiscore->Enseigne!='' && $this->indiscore->Sigle!='') {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<h3 style="font-size:13px"><b>LE SCORE EST DE <?php echo $indiscore;?> SUR <?php echo $maxIndiscore;?> POINTS</b></h3>
|
<h3 class="indiscore<?=$color?>">LE SCORE EST DE <?=$indiscore?> SUR <?=$maxIndiscore?> POINTS</h3>
|
||||||
<?php
|
<?php
|
||||||
if ($this->indiscore->infoEncours != '' && !is_numeric($this->indiscore->encours) && $this->indiscore->encours == 'N/A'){ ?>
|
if ($this->indiscore->infoEncours != '' && !is_numeric($this->indiscore->encours) && $this->indiscore->encours == 'N/A'){ ?>
|
||||||
<h3><?php echo $this->indiscore->infoEncours;?></h3>
|
<h3><?=$this->indiscore->infoEncours?></h3>
|
||||||
<?php
|
<?php } else{ ?>
|
||||||
}else{ ?>
|
<?php if ($indiscore != 0) {?>
|
||||||
<?php
|
<i>La tendance de la note est <?=$this->indiscore->TendanceIndiscore?></i>
|
||||||
if ($indiscore!=0) { ?>
|
<h3 class="indiscore">L'ENCOURS MAXIMUM CONSEILLÉ EST DE <?=round($this->indiscore->encours / 1000)?> K€</h3>
|
||||||
<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 }?>
|
<?php }?>
|
||||||
<h3><?php echo $this->indiscore->infoEncours;?></h3>
|
<h3><?=$this->indiscore->infoEncours?></h3>
|
||||||
<?php }?>
|
<?php }?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -90,31 +90,24 @@ Aucun bilan disponible.
|
|||||||
<td width="30"></td>
|
<td width="30"></td>
|
||||||
<td class="StyleInfoLib" width="200">Situation juridique</td>
|
<td class="StyleInfoLib" width="200">Situation juridique</td>
|
||||||
<td class="StyleInfoData" width="350">
|
<td class="StyleInfoData" width="350">
|
||||||
<?php if ($this->SituationJuridique == 'P'):?>
|
<?php if ($this->SituationJuridique == 'P') {?>
|
||||||
<a href="<?=$this->url(array(
|
<a href="<?=$this->url(array('controller' => 'juridique', 'action' => 'annonces',
|
||||||
'controller' => 'juridique',
|
'siret' => $this->siret,'id' => $this->id))?>">
|
||||||
'action' => 'annonces',
|
<font color="red"><b>En procédure collective</b></font></a>
|
||||||
'siret' => $this->siret,
|
<?php if($this->dateRadiation != '') {?>
|
||||||
'id' => $this->id,
|
<br/>Radié du RCS le <?=$this->dateRadiation?>
|
||||||
))?>">
|
<?php }?>
|
||||||
<font color="red">
|
<?php } elseif ($this->SituationJuridique == 'RR') {?>
|
||||||
<b>En procédure collective</b>
|
Radié du RCS <?php if($this->dateRadiation != '') {?>
|
||||||
</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;?>
|
le <?php echo $this->dateRadiation;?>
|
||||||
<?php endif;?>
|
<?php }?>
|
||||||
<?php elseif ($this->SituationJuridique == 'RP'):?>
|
<?php } elseif ($this->SituationJuridique == 'RP') {?>
|
||||||
Radiation publiée <?php if($this->dateRadiation != ''):?>
|
Radiation publiée <?php if($this->dateRadiation != '') {?>
|
||||||
le <?php echo $this->dateRadiation;?>
|
le <?=$this->dateRadiation?>
|
||||||
<?php endif;?>
|
<?php }?>
|
||||||
<?php else:?>
|
<?php } else {?>
|
||||||
Aucune procédure enregistrée à ce jour par nos services.
|
Aucune procédure enregistrée à ce jour par nos services.
|
||||||
<?php endif;?>
|
<?php }?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@ -123,7 +116,7 @@ Aucun bilan disponible.
|
|||||||
<h2>Scores et encours</h2>
|
<h2>Scores et encours</h2>
|
||||||
<div class="paragraph">
|
<div class="paragraph">
|
||||||
<table>
|
<table>
|
||||||
<?php foreach ($this->scores as $name => $score):?>
|
<?php foreach ($this->scores as $name => $score) {?>
|
||||||
<tr>
|
<tr>
|
||||||
<td width="30"></td>
|
<td width="30"></td>
|
||||||
<td width="250" class="StyleInfoLib"><?=$score[1]?></td>
|
<td width="250" class="StyleInfoLib"><?=$score[1]?></td>
|
||||||
@ -136,7 +129,7 @@ Aucun bilan disponible.
|
|||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach;?>
|
<?php }?>
|
||||||
<tr>
|
<tr>
|
||||||
<td width="30"></td>
|
<td width="30"></td>
|
||||||
<td class="StyleInfoLib">Encours conseillé</td>
|
<td class="StyleInfoLib">Encours conseillé</td>
|
||||||
|
@ -520,7 +520,7 @@ div#menu div.icones {text-align:center;margin-top:5px;}
|
|||||||
#recherche-page{text-align:center;}
|
#recherche-page{text-align:center;}
|
||||||
#recherche-page img{vertical-align:middle;}
|
#recherche-page img{vertical-align:middle;}
|
||||||
form.recherche{padding:0; text-align:left;}
|
form.recherche{padding:0; text-align:left;}
|
||||||
form.recherche label {clear:both;float:left;width:250px;line-height:20px;font-weight:bold;text-align:right;padding-right:5px;}
|
form.recherche label {clear:both;float:left;width:250px;line-height:18px;font-weight:bold;text-align:right;padding-right:5px;}
|
||||||
form.recherche div.field {float:left;}
|
form.recherche div.field {float:left;}
|
||||||
form.recherche div.row {clear:both;padding:5px 0;}
|
form.recherche div.row {clear:both;padding:5px 0;}
|
||||||
form.recherche div.submit {text-align:center;}
|
form.recherche div.submit {text-align:center;}
|
||||||
@ -630,6 +630,10 @@ tr.deleted {text-decoration:line-through;}
|
|||||||
/* Evaluation
|
/* Evaluation
|
||||||
----------------------------------*/
|
----------------------------------*/
|
||||||
h3 {margin-top:10px;}
|
h3 {margin-top:10px;}
|
||||||
|
h3.indiscore {font-weight:bold; font-size:13px;}
|
||||||
|
h3.indiscore-green {color:green;}
|
||||||
|
h3.indiscore-orange {color:orange;}
|
||||||
|
h3.indiscore-red {color:red;}
|
||||||
h3 u {font-size:13px; color:#535353; font-weight:bold;}
|
h3 u {font-size:13px; color:#535353; font-weight:bold;}
|
||||||
div.stats ul {width:400px; list-style:none; margin:10px; padding:10px;}
|
div.stats ul {width:400px; list-style:none; margin:10px; padding:10px;}
|
||||||
div.stats .percent {display: block;height: 1.5em;line-height: 1.5em;margin: 5px 10px 0 10px;padding: 0 5px;text-align: right;color: #fff;font-weight: bold;font-family: monospace;-moz-border-radius: 5px;border-bottom: 1px solid #aaa;border-right: 1px solid #aaa;cursor: default;}
|
div.stats .percent {display: block;height: 1.5em;line-height: 1.5em;margin: 5px 10px 0 10px;padding: 0 5px;text-align: right;color: #fff;font-weight: bold;font-family: monospace;-moz-border-radius: 5px;border-bottom: 1px solid #aaa;border-right: 1px solid #aaa;cursor: default;}
|
||||||
@ -697,26 +701,6 @@ div.blocdegrade .echelleright{float:right;}
|
|||||||
/* Pieces
|
/* Pieces
|
||||||
----------------------------------*/
|
----------------------------------*/
|
||||||
.marge { margin-left:30px; }
|
.marge { margin-left:30px; }
|
||||||
/*#identite { margin-left:30px; }*/
|
|
||||||
form em { color:#FF0000; }
|
|
||||||
fieldset { border:0; margin:0; padding:0; }
|
|
||||||
fieldset legend { padding:0 0 0 10px; }
|
|
||||||
.fieldgrp { clear:both; margin:0 0 .5em 30px; overflow:hidden; }
|
|
||||||
.fieldgrp:after { content:"."; display:block; clear:both; visibility:hidden; line-height:0; height:0; }
|
|
||||||
.fieldgrp label { font-weight:bold; margin-left:30px; width:100px; clear:both; padding:0 10px 0 0; line-height:22px;_padding-top:3px; float:left; display:block; font-size:108%; }
|
|
||||||
.fieldgrp label span { font-weight:normal;}
|
|
||||||
.fieldgrp label abbr { color:#4B911C; font-size:120%; vertical-align:middle;}
|
|
||||||
.field { float:left; padding:0 5px 0 0; line-height:22px; _padding-top:3px; }
|
|
||||||
.field .longfield { width:215px; }
|
|
||||||
.field .longfield-select { width:220px; }
|
|
||||||
.field .smallfield { width:95px; }
|
|
||||||
.field .medfield { width:110px; }
|
|
||||||
.field span { display:block; }
|
|
||||||
.field input, .field select { font-size:110%; margin:2px 0; }
|
|
||||||
.field input[type="radio"] { margin:0 5px 0 5px; border:0; }
|
|
||||||
input[type="checkbox"] { margin:0 5px 0 5px; border:0; }
|
|
||||||
.submit { text-align:center; }
|
|
||||||
.noborder { border:none; }
|
|
||||||
#message { margin:10px 0 10px 30px; }
|
#message { margin:10px 0 10px 30px; }
|
||||||
table.greffe { width:100%;border-collapse:collapse; }
|
table.greffe { width:100%;border-collapse:collapse; }
|
||||||
table.greffe th { border:1px solid #000000;padding:8px 4px 8px 4px;background-color:#eeeeee;text-align:center; }
|
table.greffe th { border:1px solid #000000;padding:8px 4px 8px 4px;background-color:#eeeeee;text-align:center; }
|
||||||
@ -731,7 +715,25 @@ table.greffe td.saisie { border-top: 1px dashed; }
|
|||||||
.infoTitle { clear:both; float:left; width:180px; margin-left:30px; padding:0 10px 5px 0; }
|
.infoTitle { clear:both; float:left; width:180px; margin-left:30px; padding:0 10px 5px 0; }
|
||||||
.infoData { float:left; width:320px; margin:2px 0;}
|
.infoData { float:left; width:320px; margin:2px 0;}
|
||||||
div.submit{ clear:both; text-align:center; }
|
div.submit{ clear:both; text-align:center; }
|
||||||
|
form em { color:#FF0000; }
|
||||||
|
fieldset { border:0; margin:0; padding:0; }
|
||||||
|
fieldset legend { padding:0 0 0 10px; }
|
||||||
|
.fieldgrp { clear:both; margin:0 0 .5em 30px; overflow:hidden; }
|
||||||
|
.fieldgrp:after { content:"."; display:block; clear:both; visibility:hidden; line-height:0; height:0; }
|
||||||
|
.fieldgrp label { font-weight:bold; margin-left:30px; width:100px; clear:both; padding:0 10px 0 0; line-height:22px;_padding-top:3px; float:left; display:block; font-size:108%; }
|
||||||
|
.fieldgrp label span { font-weight:normal;}
|
||||||
|
.fieldgrp label abbr { color:#4B911C; font-size:120%; vertical-align:middle;}
|
||||||
|
.field { float:left; padding:0 5px 0 0;}
|
||||||
|
.field .longfield { width:215px; }
|
||||||
|
.field .longfield-select { width:220px; }
|
||||||
|
.field .smallfield { width:95px; }
|
||||||
|
.field .medfield { width:110px; }
|
||||||
|
.field span { display:block; }
|
||||||
|
.field input, .field select { font-size:110%; margin:2px 0; }
|
||||||
|
.field input[type="radio"] { margin:0 5px 0 5px; border:0; }
|
||||||
|
input[type="checkbox"] { margin:0 5px 0 5px; border:0; }
|
||||||
|
.submit { text-align:center; }
|
||||||
|
.noborder { border:none; }
|
||||||
|
|
||||||
.fa-hover a:hover {
|
.fa-hover a:hover {
|
||||||
display: block;
|
display: block;
|
||||||
|
Loading…
Reference in New Issue
Block a user