File: /home/eblama1/sms.karnplayinland.com/modules/Scheduling/RequestsReport.php
<?php
/**
* Merge Requests Report & Unfilled Requests
*
* @package RosarioSIS
* @subpackage Scheduling
*/
DrawHeader( ProgramTitle() );
$_REQUEST['report'] = issetVal( $_REQUEST['report'], '' );
$report_link = PreparePHP_SELF(
[],
[ 'report', 'search_modfunc', 'include_seats', 'expanded_view', 'address_group' ]
) . '&report=';
$report_select = SelectInput(
$_REQUEST['report'],
'report',
'',
[
'' => _( 'Requests Report' ),
'unfilled' => _( 'Unfilled Requests' ),
],
false,
'onchange="' . AttrEscape( 'ajaxLink(' . json_encode( $report_link ) . ' + this.value);' ) . '" autocomplete="off"',
false
);
DrawHeader( $report_select );
if ( $_REQUEST['report'] === 'unfilled' )
{
require_once 'modules/Scheduling/includes/UnfilledRequests.php';
}
else
{
require_once 'modules/Scheduling/includes/RequestsReport.php';
}