Beispiel #1
0
						<div class="box-body">
							<div id="transHistory">
								<table id="example2" class="table table-bordered table-hover">
									<thead>
										<th>Association</th>
										<th>Start Date</th>
										<th>End Date</th>
									</thead>
									<tbody>
									<?php 
if (is_array($transfers)) {
    foreach ($transfers as $transfer) {
        ?>
									<tr>
										<td><?php 
        echo Assoc::find_by_id($transfer->assoc)->name;
        ?>
</td>
										<td><?php 
        echo strftime("%d %b %Y", $transfer->start);
        ?>
</td>
										<td><?php 
        if ($transfer->returned == 0) {
            echo "Not returned";
        } else {
            echo strftime("%d %b %Y", $transfer->returned);
        }
        ?>
</td>
									</tr>