[guadec-web] Show roommate in accommodation report
- From: Alexandre Franke <afranke src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [guadec-web] Show roommate in accommodation report
- Date: Tue, 22 Jul 2014 18:39:49 +0000 (UTC)
commit 76b3613a2f2c03c13b59d60ee0b134857640ca20
Author: Alexandre Franke <alexandre franke gmail com>
Date: Tue Jul 22 20:39:41 2014 +0200
Show roommate in accommodation report
guadec/access-register.php | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/guadec/access-register.php b/guadec/access-register.php
index fd2b3d0..0bc7708 100644
--- a/guadec/access-register.php
+++ b/guadec/access-register.php
@@ -144,6 +144,7 @@ function display_accommodation($result){
<th>Email</th><th>Gender</th>
<th>Arrival</th><th>Departure</th>
<th>Room type</th>
+ <th>Room mate</th>
<th>AccomFee</th>
<th>Payment Status</th>
</tr></thead>";
@@ -159,6 +160,7 @@ function display_accommodation($result){
echo "<td>"; echo $results['room']; echo "</td>";
if ($results['room'] == 'single') { $total_single += 1;}
else if ($results['room'] == 'double') { $total_double += 1;}
+ echo "<td>"; echo $results['roommate']; echo "</td>";
echo "<td>"; echo $results['accomfee']; echo "</td>";
$total_accomfee += $results['accomfee'];
echo "<td>"; echo $results['payment']; echo "</td>";
@@ -167,7 +169,7 @@ function display_accommodation($result){
echo"</tbody>";
echo "<tfoot><tr><td>Total</td><td colspan='2'>"; echo count($result); echo " booked beds</td>
<td></td><td></td><td></td>
- <td>"; echo $total_single; echo " single, "; echo $total_double; echo "
double</td>
+ <td>"; echo $total_single; echo " single, "; echo $total_double; echo "
double</td><td></td>
<td>Total: "; echo $total_accomfee; echo "</td>
<td></td></tr></tfoot>";
echo "</table></div>";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]