Ejemplo n.º 1
0
$email = phpCAS::getUser();
?>
<div class="post">
<h2 class="title">Requests made by you </h2>
<table id="box-table-a">
<script language="javascript" type="text/javascript" src="js/table.js"></script>
<thead>
<tr>
<th scope="col">S.No</th>
<th scope="col">Creator</th>
<th scope="col">Room</th>
<th scope="col">Event</th>
<th scope="col">Date</th>
<th scope="col">Time</th>
<th scope="col">Type</th>
<th scope="col">Status</th>
<th scope="col">Details</th>
<th scope="col">Delete</th>
</tr>
</thead>
<?php 
$query = "SELECT reqNo,creator,room,eventTitle,eventStartDate,eventStartTime,reqType,appStatus FROM Requests where creatorEmail='" . $email . "' order by appStatus";
getMyRequests($query);
?>
		  </table>
		  </div>
		  <?php 
require_once "footer.php";
?>

Ejemplo n.º 2
0
}
?>
        
 <div class="container" >
                
                    
                    <br>
                    <div class="panel panel-primary">
                    <div class="panel-heading">Hire Request</div>
                    <table class="table table-striped">
						<th>Hire ID</th>
						<th>Date</th>
                        <th>Time</th>
                        <th>No of Passengers</th>
						<?php 
$hireRequests = getMyRequests();
foreach ($hireRequests as $request) {
    ?>
								
									<tr>
										<td><?php 
    echo $request[0];
    ?>
</td>
										<td><?php 
    echo $request[5];
    ?>
</td>
										<td><?php 
    echo $request[6];
    ?>