0 && $_REQUEST['type'] == 'deleted') {
$TitleText .= " (" . getLanguageText('TEXT-DELETED') . ")";
}
// Start the template and output buffering
startTemplate();
$templatePageTitle = $TitleText;
// Ensure that only valid user types have access to this module
if (!in_array($_SESSION['UserInfo']['type'],array('SuperUser','System Administrator','Application Administrator','Administration Team','Schedule Team','Financial','Financial Team'))) {
echo("
\n");
$error_message = getLanguageText('ERRORMSG-ACCESS-DENIED');
include "form.messages.php";
return;
}
$school_num = $school_record['record_num'];
?>
0) {
if (array_key_exists('start_date',$_POST) && strlen($_POST['start_date']) > 0) $start_date = date("Y-m-d 00:00:00",strtotime($_POST['start_date']));
if (array_key_exists('end_date',$_POST) && strlen($_POST['end_date']) > 0) {
$end_date = $_POST['end_date'];
if ($end_date < substr($start_date,0,10)) {
$end_date = substr($start_date,0,10);
$error_message = getLanguageText('ERRORMSG-INVALID-DATE-RANGE');
}
$end_date = date("Y-m-d 23:59:59",strtotime($end_date));
}
$sdate = substr($start_date,0,10);
$edate = substr($end_date,0,10);
$twhere = "AND posting_time BETWEEN '$start_date' AND '$end_date' ";
// View only a selected userid
$uwhere = "";
unset($selected_user);
if (array_key_exists('selected_user',$_POST) && strlen($_POST['selected_user']) > 0) {
$selected_user = $_POST['selected_user'];
$uwhere = "AND payer_email = '$selected_user' ";
}
// Build argument string for GET
$args = "&start_date=" . urlencode($start_date);
$args .= "&end_date=" . urlencode($end_date);
$args .= "&selected_user=$selected_user";
$args .= "&error_message=" . urlencode($error_message);
header("Location: /?action=$action$args");
exit();
}
if (array_key_exists('action',$_GET) && array_key_exists('start_date', $_GET)) {
$start_date = $_GET['start_date'];
$end_date = $_GET['end_date'];
$selected_user = $_GET['selected_user'];
$sdate = substr($start_date,0,10);
$edate = substr($end_date,0,10);
$twhere = "AND posting_time BETWEEN '$start_date' AND '$end_date' ";
// View only a selected userid
$uwhere = "";
unset($selected_user);
if (array_key_exists('selected_user',$_GET) && strlen($_GET['selected_user']) > 0) {
$selected_user = $_GET['selected_user'];
$uwhere = "AND user_num = '$selected_user' ";
}
}
$message_width = 600;
include "form.messages.php";
?>
-