All pastes #384231 Raw Edit

Mine

public text v1 · immutable
·published 2007-03-06 22:32 UTC
rendered paste body
foreach($_SESSION['alojamentos'] AS $key=>$value) { 
	foreach ($_SESSION['alojamentos'] as $a) { ?>
		<td vAlign="center" align="middle">
		<a title="Excluir do Carrinho" onclick="return confirm('Têm a certeça que quer excluir este serviço do carrinho?')" href="?p=carrinho&op=apagar&tipo=1&id=<?=$key?>">
		<img height="12" alt="Excluir do Carrinho" src="apagar.gif" width="11" border="0"></a></td>
		<td><?= $a[0] ?> - <b>Login</b> <?= $a[1] ?></td>
		<td align="right"><?= number_format($a[2], 2, '.', ''); ?> </td>
	</tr>
<?php 
	  $i[alojamentos]=$i[alojamentos]+$a[2];


	} }
} /* end of foreach */ 
  ?>