Use Zend_Date instead of WDate

This commit is contained in:
Michael RICOIS 2013-10-25 12:49:06 +00:00
parent b878815363
commit d01ede301d
3 changed files with 18 additions and 13 deletions

View File

@ -80,7 +80,8 @@
<td width="30"></td>
<td width="200" class="StyleInfoLib">Date de création de l'entreprise</td>
<td width="350" class="StyleInfoData">
<?=WDate::dateT('Ymd', 'm/Y', $this->indiscore->DateCreaEn)?>
<?php $date = new Zend_Date($this->indiscore->DateCreaEn, 'yyyyMMdd');?>
<?=$date->toString('dd/MM/yyyy')?>
</td>
</tr>
<tr>

View File

@ -117,8 +117,9 @@ else
{
$texte = $this->RemplaceSiren($info->Annonce);
if(substr($this->criteres->source, 0, 3) == 'BOD' ){
$date = new Zend_Date($info->Date_Parution, 'yyyy-MM-dd');
?>
Source BODACC n°<?=$info->Num_Parution?> <?=substr($this->criteres->source, 3, 1)?> du <?=WDate::dateT('Y-m-d', 'd/m/Y', $info->Date_Parution)?>.
Source BODACC n°<?=$info->Num_Parution?> <?=substr($this->criteres->source, 3, 1)?> du <?=$date->toString('dd/MM/yyyy')?>.
<?php
}
?>

View File

@ -36,7 +36,7 @@ select, input {
border-color:red;
}
.loading
.loading
{
background-color: silver;
height: 450px;
@ -45,7 +45,7 @@ select, input {
position: absolute;
width: 720px;
opacity: 0.3;
display:none;
display:none;
z-index: 1;
}
@ -59,10 +59,7 @@ select, input {
}
</style>
<?php
$getcutoff = $this->getcutoff;
$wdate = new WDate();
?>
<?php $getcutoff = $this->getcutoff; ?>
<?php if ($this->message!='') {?>
<div class='message'><p id='<?=$this->refresh ?>'><?=$this->message; ?></p></div>
<?php }?>
@ -72,9 +69,15 @@ $wdate = new WDate();
<div>Date de création Cut-off</div>
<div>Date de mise à jour Cut-off</div>
</div>
<div class="StyleInfoData" style="float:left; margin-top:20px; ">
<div id='dateInsert'> <?=$wdate->dateT('Y-m-d', 'd/m/Y', $getcutoff['dateInsert']); ?></div>
<div> <?=$wdate->dateT('Y-m-d', 'd/m/Y', $getcutoff['dateUpdate']); ?></div>
<div class="StyleInfoData" style="float:left; margin-top:20px; ">
<div id='dateInsert'>
<?php $date = new zend_Date($getcutoff['dateInsert'], 'yyyy-MM-dd')?>
<?=$date->toString('dd/MM/yyyy')?>
</div>
<div>
<?php $date = new zend_Date($getcutoff['dateUpdate'], 'yyyy-MM-dd')?>
<?=$date->toString('dd/MM/yyyy')?>
</div>
</div>
<?php } ?>
@ -89,7 +92,7 @@ $wdate = new WDate();
</div>
<div style="float:left">K€ (de 0 à 500 K€)</div>
<?php
<?php
$select = array('scoreConf' => 'Score de conformité', 'scoreDir' => 'Score dirigeance', 'scoreSolv' => 'IndiScore');
foreach($select as $item => $val) {
?>
@ -97,7 +100,7 @@ foreach($select as $item => $val) {
<label><?=$val?></label>
<select name="<?=$item ?>" required>
<option value='' selected>---</option>
<?php
<?php
for($i=0; $i<=$this->typescore; $i++) {
$selected = '';
if (is_numeric($getcutoff[$item]) && $i == $getcutoff[$item]) {