| Current Path : /var/www/cesa.co.za/php/includes/ |
| Current File : /var/www/cesa.co.za/php/includes/cstWeeksCourses.php |
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of cstWeeksCourses
*
* @author Otto
*/
class cstWeeksCourses {
//put your code here
}
function cstWeeksCoursesPageLoad() {
global $cstWeeksCourses;
if (!isset($_SESSION['x_StartDateReport']) || $_SESSION['x_StartDateReport'] == '') {
$nowDate = new DateTime();
$nowDate->modify('-14 days');
$_SESSION['z_StartDateReport'] = 'BETWEEN';
$_SESSION['x_StartDateReport'] = $nowDate->format('Y/m/d');
$nowDate = new DateTime();
$nowDate->modify('+4 months');
$_SESSION['y_StartDateReport'] = $nowDate->format('Y/m/d');
}
if (isset($_GET['x_StartDateReport']) && $_GET['x_StartDateReport'] != '') {
$_SESSION['z_StartDateReport'] = $_GET['z_StartDateReport'];
$_SESSION['x_StartDateReport'] = $_GET['x_StartDateReport'];
$_SESSION['y_StartDateReport'] = $_GET['y_StartDateReport'];
}
if (isset($_REQUEST['x_StartDateReport']) && $_REQUEST['x_StartDateReport'] != '') {
$_SESSION['z_StartDateReport'] = $_REQUEST['z_StartDateReport'];
$_SESSION['x_StartDateReport'] = $_REQUEST['x_StartDateReport'];
$_SESSION['y_StartDateReport'] = $_REQUEST['y_StartDateReport'];
}
$_GET['z_StartDateReport'] = $_SESSION['z_StartDateReport'];
$_GET['x_StartDateReport'] = $_SESSION['x_StartDateReport'];
$_GET['y_StartDateReport'] = $_SESSION['y_StartDateReport'];
$_REQUEST['z_StartDateReport'] = $_SESSION['z_StartDateReport'];
$_REQUEST['x_StartDateReport'] = $_SESSION['x_StartDateReport'];
$_REQUEST['y_StartDateReport'] = $_SESSION['y_StartDateReport'];
}