コード例 #1
0
<?php

if (empty($_SESSION['login'])) {
    kick('login?kickback=' . htmlspecialchars(kickback_url()));
}
$page = ClientData::get('page');
?>
<table class="alternate-body">
	<thead>
		<tr>
			<th>Tid</th>
			<th>Användare</th>
			<th>Konton</th>
			<th>Summa</th>
			<th>Beskrivning</th>
		</tr>
	</thead>
	<? foreach(AccountTransaction::selection(array(
			'@order' => 'timestamp:desc',
			'@limit' => array($page*50, 50),
		)) as $transaction):
	?>
		<?php 
$contents = $transaction->AccountTransactionContent(array('@custom_order' => 'abs(`account_transaction_contents`.`amount`) DESC'));
$num_rows = count($contents);
$content = array_shift($contents);
$account = $content->Account;
?>
		<tbody>
			<tr>
				<td rowspan="<?php