- str_replace: documentation ( source)
- date: documentation ( source)
- strtotime: documentation ( source)
<?php foreach( $oQiwi->getHistory( date( 'd.m.Y', strtotime( '-3 day' ) ), date( 'd.m.Y', strtotime( '+1 day' ) ) ) as $aItem ) { ?>
<tr align="center">
<td><?=$aItem['iID']?></td>
<td><?=$aItem['sDate']?> <?=$aItem['sTime']?></td>
<td><?=$aItem['dAmount']?> <?=$aItem['sCurrency']?></td>
<td><?=$aItem['dWithExpend']?> <?=$aItem['sCurrency']?></td>
<td title="<?=$aItem['sProvider']?>"><?=$aItem['iOpponentPhone']?></td>
<td><?=$aItem['sComment']?></td>
<td><?=str_replace( array( 'INCOME', 'EXPENDITURE' ), array( 'приход', 'расход' ), $aItem['sType'] )?></td>
<td title="<?=($aItem['sStatus'] == 'ERROR' ? $aItem['sError'] : '')?>"><?=$aItem['sStatus']?></td>
</tr>
<?php } ?>