empty date statenment

This commit is contained in:
Arman KYOKCHAN 2013-11-13 05:49:27 +00:00
parent ceba256786
commit ccecb31c6c
2 changed files with 2 additions and 4 deletions

View File

@ -8,8 +8,7 @@
<a class="tooltip tooltipFont">Date de clôture</a>
</td>
<?php foreach($this->report->AnnualAccounts as $AnnualAccounts):$i++?>
<?php $date = new Zend_Date($AnnualAccounts->AccountsDate->_,yyyymmdd);?>
<td class="right"><?php echo (empty($AnnualAccounts->AccountsDate->_))?'NC':$date->toString('dd/mm/yyyy');?></td>
<td class="right"><?php if(empty($AnnualAccounts->AccountsDate->_))echo'NC';else {$date = new Zend_Date($AnnualAccounts->AccountsDate->_,yyyymmdd);echo $date->toString('dd/mm/yyyy');}?></td>
<?php endforeach; ?>
</tr>
<tr >

View File

@ -122,8 +122,7 @@
<tr>
<?php foreach($this->report->Employees as $year => $employees): ?>
<tr class="<?php echo ($val)? 'red':'green'; ?>">
<?$date = new Zend_Date($year,yyyymmdd);?>
<td class="left"><?php if(strlen($year)==4)echo $year; else echo $date->toString('dd/mm/yyyy');?></td>
<td class="left"><?php if(strlen($year)==4)echo $year;elseif(empty($year))echo 'NC'; else {$date = new Zend_Date($year,yyyymmdd); echo $date->toString('dd/mm/yyyy');}?></td>
<td class="right"><?php echo $employees['TotalStaffEmployed'];?></td>
<td class="right"><?php echo $employees['FulltimeEquivalent'];?></td>
</tr>