Example #1
0
<?php

/*	Manager landing page.
*----------------------------------------------------------------------------
*	Original Author: Joshua Thompson
*	Creation Date: 11/27/2015
*
*	Modification Author: Joshua Thompson
*	Modification Date: 11/30/2015
*----------------------------------------------------------------------------
*/
// get new staffing requests which are valid. Invalid, Unable to Fill or Filled requests will not be shown as they are closed out.
if ($results = Request::getNew(!empty($_POST['page']) ? $_POST['page'] : 1)) {
    ?>
	<h3 style= "margin-left: 20px; margin-top: 0px; padding-top: 15px; color: #202020;"><u>View Requests</u></h3>
	<div id="managerBox">
	   	<table align="center" style="float:left;">
	   		<tr>
		   		<td><b>Date Opened</b></td>
        	    <td><b>Status</b></td>
       	   		<td><b>Approval Code</b></td>
				<td><b>View</b></td>
	       	</tr>
    		<?php 
    // iterate through the requests.
    for ($i = 0; $i < count($results->data); $i++) {
        $request = new Request($results->data[$i]);
        ?>
	  
				  <form action="<?php 
        echo $_SERVER['PHP_SELF'];