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-12 09:52:50 +02:00
|
|
|
<?php if( $notice != '' ){ ?>
|
|
|
|
|
|
|
|
<div id="notice"><p><?php echo $notice;?></p></div>
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
|
2013-08-09 23:43:56 +02:00
|
|
|
<div id="quick_summary">
|
|
|
|
<h2>Balance</h2>
|
2013-08-17 18:43:35 +02:00
|
|
|
<p class="center">Read <em>line</em> owes <em>case</em> <?php echo $currency;?> to <em>column</em>. You can click on links to confirm the payback.
|
2013-08-09 23:43:56 +02:00
|
|
|
<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-13 17:58:14 +02:00
|
|
|
<th><?php echo $value1->getDisplayName();?></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-13 17:58:14 +02:00
|
|
|
<th><?php echo $value1->getDisplayName();?></th>
|
2013-08-17 18:43:35 +02:00
|
|
|
<?php $counter2=-1; if( isset($users) && is_array($users) && sizeof($users) ) foreach( $users as $key2 => $value2 ){ $counter2++; ?>
|
|
|
|
|
|
|
|
<td><a href=""><?php echo $value2->getDisplayName();?></a></td>
|
|
|
|
<?php } ?>
|
|
|
|
|
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-13 19:37:11 +02:00
|
|
|
<?php $counter1=-1; if( isset($invoices) && is_array($invoices) && sizeof($invoices) ) foreach( $invoices as $key1 => $value1 ){ $counter1++; ?>
|
2013-08-09 23:43:56 +02:00
|
|
|
|
|
|
|
<tr>
|
2013-08-13 19:37:11 +02:00
|
|
|
<td><?php echo $value1->getDate;?></td>
|
|
|
|
<td><?php echo $value1->getBuyer;?></td>
|
|
|
|
<td><?php echo $value1->getUsersIn;?></td>
|
|
|
|
<td><?php echo $value1->getAmount;?></td>
|
|
|
|
<td><?php echo $value1->getWhat;?></td>
|
|
|
|
<td><a href="index.php?do=edit_bill&id=<?php echo $value1->getId();?>">Edit</a></td>
|
|
|
|
<td><a href="index.php?do=delete_bill&id=<?php echo $value1->getId();?>">Delete</a></td>
|
2013-08-09 23:43:56 +02:00
|
|
|
</tr>
|
|
|
|
<?php } ?>
|
|
|
|
|
2013-08-09 00:44:43 +02:00
|
|
|
</table>
|
|
|
|
</div>
|
2013-08-12 09:52:50 +02:00
|
|
|
|
|
|
|
<?php $tpl = new RainTPL;$tpl_dir_temp = self::$tpl_dir;$tpl->assign( $this->var );$tpl->draw( dirname("footer") . ( substr("footer",-1,1) != "/" ? "/" : "" ) . basename("footer") );?>
|
|
|
|
|