empty date statenment
This commit is contained in:
parent
ceba256786
commit
ccecb31c6c
@ -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 >
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user