2013-08-09 00:44:43 +02:00
|
|
|
<?php if(!class_exists('raintpl')){exit;}?><?php $tpl = new RainTPL;$tpl_dir_temp = self::$tpl_dir;$tpl->assign( $this->var );$tpl->draw( dirname("header") . ( substr("header",-1,1) != "/" ? "/" : "" ) . basename("header") );?>
|
|
|
|
|
|
|
|
|
2013-08-09 23:43:56 +02:00
|
|
|
<div id="quick_summary">
|
|
|
|
<h2>Balance</h2>
|
|
|
|
<p class="center">Read <em>line</em> owes <em>case</em>€ to <em>column</em>. You can click on links to confirm the payback.
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th>Owes\To</th>
|
|
|
|
<?php $counter1=-1; if( isset($users) && is_array($users) && sizeof($users) ) foreach( $users as $key1 => $value1 ){ $counter1++; ?>
|
2013-08-09 00:44:43 +02:00
|
|
|
|
2013-08-10 23:58:40 +02:00
|
|
|
<th><?php echo $value1->getLogin();?></th>
|
2013-08-09 23:43:56 +02:00
|
|
|
<?php } ?>
|
2013-08-09 00:44:43 +02:00
|
|
|
|
2013-08-09 23:43:56 +02:00
|
|
|
</tr>
|
|
|
|
<?php $counter1=-1; if( isset($users) && is_array($users) && sizeof($users) ) foreach( $users as $key1 => $value1 ){ $counter1++; ?>
|
2013-08-09 00:44:43 +02:00
|
|
|
|
2013-08-09 23:43:56 +02:00
|
|
|
<tr>
|
2013-08-10 23:58:40 +02:00
|
|
|
<th><?php echo $value1->getLogin();?></th>
|
2013-08-09 23:43:56 +02:00
|
|
|
</tr>
|
|
|
|
<?php } ?>
|
2013-08-09 00:44:43 +02:00
|
|
|
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div id="detailed_summary">
|
2013-08-09 23:43:56 +02:00
|
|
|
<h2>Detailed list of bills for last month</h2>
|
2013-08-09 00:44:43 +02:00
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th>Date</th>
|
2013-08-09 23:43:56 +02:00
|
|
|
<th>Paid by</th>
|
|
|
|
<th>Users in</th>
|
|
|
|
<th>Amount</th>
|
|
|
|
<th>What ?</th>
|
|
|
|
<th>Edit</th>
|
|
|
|
<th>Delete</th>
|
2013-08-09 00:44:43 +02:00
|
|
|
</tr>
|
2013-08-09 23:43:56 +02:00
|
|
|
<?php $counter1=-1; if( isset($bill) && is_array($bill) && sizeof($bill) ) foreach( $bill as $key1 => $value1 ){ $counter1++; ?>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td><?php echo $value1["date"];?></td>
|
|
|
|
<td><?php echo $value1["buyer"];?></td>
|
|
|
|
<td><?php echo $value1["users_in"];?></td>
|
|
|
|
<td><?php echo $value1["amount"];?></td>
|
|
|
|
<td><?php echo $value1["what"];?></td>
|
|
|
|
<td><a href="index.php?do=edit_bill&id=">Edit</a></td>
|
|
|
|
<td><a href="index.php?do=delete_bill&id=">Delete</a></td>
|
|
|
|
</tr>
|
|
|
|
<?php } ?>
|
|
|
|
|
2013-08-09 00:44:43 +02:00
|
|
|
</table>
|
|
|
|
</div>
|