function reportChanges() { showHeaderSearchLanding($username, $accessLvl); $typeOFRefundSearch = array('refund_id', 'status_before', 'status_after', 'date', 'comments'); //refund_id, status_before,status_after,date,comments //<br> If left blank, by default it will return all refund status changes made during the past month. print <<<EDITUSERPAGE <center><h2 align="center">REFUND STATUS CHANGES:</h2> <center>Please select the date range and the value you would like to search for. <br> Then click 'Continue', to perform the search : </center>\t \t<form method="POST" action="{$_SERVER['PHP_SELF']}" name="search_refunds_changes"> <table style="width: 100%" border="0"> \t<tbody> \t \t \t\t<tr><td> \t\t\t\t\t<center><p>FROM Date: \t\t\t\t\t<input type="text" name="datepickerSTART" id="datepickerSTART"> \t\t\t\t\t \t\t\t\t\tTO Date: \t\t\t\t\t<input type="text" name="datepickerEND" id="datepickerEND"></p></center> \t\t</td></tr> \t\t\t\t<br><br> \t\t\t\t<tr><td> </td></tr> \t\t\t \t <tr><td><center> SEARCH By: \t\t <select name="refund_search_term_changes"> EDITUSERPAGE; foreach ($typeOFRefundSearch as $key => $value) { print "<option value=\"{$value}\">{$value}</option>"; //print $selected; ">{$value}</option>"; } print <<<EDITUSERPAGE \t\t </select> \t\t \t Matching Value: <input type="text" name="changeMatchingValue" value="" /> </center></td></tr> EDITUSERPAGE; ?> <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"> <script src="//code.jquery.com/jquery-1.10.2.js"></script> <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script> <link rel="stylesheet" href="/resources/demos/style.css"> <script> $(function() { $( "#datepickerSTART" ).datepicker(); }); $(function() { $( "#datepickerEND" ).datepicker(); }); </script> <?php // echo 'self'; // echo $_SERVER['PHP_SELF']; // include 'dump_all_page_contents.php'; print <<<EDITUSERPAGE \t \t</tbody> </table> <input type="hidden" name="_search_submit_changes" value="1" /> <input type="hidden" name="refund_id" value = "{$_GET['refund_id']}"> <br/><br> \t<hr> <br/> \t<tr><td colspan="2"><center><button name="generateReport" value="generateReport" type="submit">GENERATE REPORT</button></center></td></tr> </form> EDITUSERPAGE; }
} print '<td>' . $refund_assigned_to . '</td>'; print '</td></tr>'; } //end while } //end ($_POST['search_value']) } //end else //end below echo 'the query is: '; echo '<br>'; echo $query; } else { //this else is for the initial search landing page //else $_POST['_search_submit']) showHeaderSearchLanding($username, $accessLvl); $typeOFRefundSearch = array('Dates', 'Names', 'Status', 'Values'); print <<<EDITUSERPAGE <center><h2 align="center">Select Search type:</h2> <center>Please selected the type of search you would like to perform <br> and click 'Continue' to proceed to the next Screen <br> to further specify your search: </center>\t <br><br>\t \t<form method="POST" action="{$_SERVER['PHP_SELF']}".?startPos='0' name="search_refunds"> <table style="width: 100%" border="0"> \t<tbody> \t <tr> Search By: \t\t <select name="refund_search_term"> EDITUSERPAGE;