Example #1
0
}
/*
 * AWS content
 */
$breadcrumbs = generate_breadcrumbs($aws_id);
$sidebar = generate_sidebar('AWNRM');
if (!empty($_POST['chill_submit'])) {
    $aws_id = $_POST['aws_id'];
    $start_date = strftime("%Y-%m-%d", strtotime($_POST['start_date']));
    $end_date = strftime("%Y-%m-%d", strtotime($_POST['end_date']));
    $chill = chill_calculate_chill($aws_id, $start_date, $end_date);
    $aws_content = chill_show_results($aws_id, $start_date, $end_date, $chill);
} else {
    if (!empty($_GET['view']) and $_GET['view'] == 'chill') {
        //present form to user
        $aws_content = chill_show_form('AWNRM');
    } else {
        if (!empty($_GET['view']) and $_GET['view'] == 'chillresult') {
            //present results to user
            $aws_id = $_GET['aws_id'];
            $start_date = $_GET['start_date'];
            $end_date = $_GET['end_date'];
            $chill = chill_calculate_chill($aws_id, $start_date, $end_date);
            $aws_content = chill_show_results($aws_id, $start_date, $end_date, $chill);
        } else {
            $aws_content = generate_aws_content($aws_id, $view, $main_view, 'AWNRM');
        }
    }
}
$ga_code = google_analytics_samdb();
//generate page structure
Example #2
0
}
/*
 * AWS content
 */
$breadcrumbs = generate_breadcrumbs($aws_id);
$sidebar = generate_sidebar('LMW');
if (!empty($_POST['chill_submit'])) {
    $aws_id = $_POST['aws_id'];
    $start_date = strftime("%Y-%m-%d", strtotime($_POST['start_date']));
    $end_date = strftime("%Y-%m-%d", strtotime($_POST['end_date']));
    $chill = chill_calculate_chill($aws_id, $start_date, $end_date);
    $aws_content = chill_show_results($aws_id, $start_date, $end_date, $chill);
} else {
    if (!empty($_GET['view']) and $_GET['view'] == 'chill') {
        //present form to user
        $aws_content = chill_show_form('LMW');
    } else {
        if (!empty($_GET['view']) and $_GET['view'] == 'chillresult') {
            //present results to user
            $aws_id = $_GET['aws_id'];
            $start_date = $_GET['start_date'];
            $end_date = $_GET['end_date'];
            $chill = chill_calculate_chill($aws_id, $start_date, $end_date);
            $aws_content = chill_show_results($aws_id, $start_date, $end_date, $chill);
        } else {
            $aws_content = generate_aws_content($aws_id, $view, $main_view, 'LMW');
        }
    }
}
$ga_code = google_analytics_samdb();
//generate page structure
Example #3
0
}
/*
 * AWS content
 */
$breadcrumbs = generate_breadcrumbs($aws_id);
$sidebar = generate_sidebar('MCV');
if (!empty($_POST['chill_submit'])) {
    $aws_id = $_POST['aws_id'];
    $start_date = strftime("%Y-%m-%d", strtotime($_POST['start_date']));
    $end_date = strftime("%Y-%m-%d", strtotime($_POST['end_date']));
    $chill = chill_calculate_chill($aws_id, $start_date, $end_date);
    $aws_content = chill_show_results($aws_id, $start_date, $end_date, $chill);
} else {
    if (!empty($_GET['view']) and $_GET['view'] == 'chill') {
        //present form to user
        $aws_content = chill_show_form('MCV');
    } else {
        if (!empty($_GET['view']) and $_GET['view'] == 'chillresult') {
            //present results to user
            $aws_id = $_GET['aws_id'];
            $start_date = $_GET['start_date'];
            $end_date = $_GET['end_date'];
            $chill = chill_calculate_chill($aws_id, $start_date, $end_date);
            $aws_content = chill_show_results($aws_id, $start_date, $end_date, $chill);
        } else {
            $aws_content = generate_aws_content($aws_id, $view, $main_view, 'MCV');
        }
    }
}
$ga_code = google_analytics_samdb();
?>
Example #4
0
}
/*
 * AWS content
 */
$breadcrumbs = generate_breadcrumbs($aws_id);
$sidebar = generate_sidebar('SAMDB');
if (!empty($_POST['chill_submit'])) {
    $aws_id = $_POST['aws_id'];
    $start_date = strftime("%Y-%m-%d", strtotime($_POST['start_date']));
    $end_date = strftime("%Y-%m-%d", strtotime($_POST['end_date']));
    $chill = chill_calculate_chill($aws_id, $start_date, $end_date);
    $aws_content = chill_show_results($aws_id, $start_date, $end_date, $chill);
} else {
    if (!empty($_GET['view']) and $_GET['view'] == 'chill') {
        //present form to user
        $aws_content = chill_show_form('SAMDB');
    } else {
        if (!empty($_GET['view']) and $_GET['view'] == 'chillresult') {
            //present results to user
            $aws_id = $_GET['aws_id'];
            $start_date = $_GET['start_date'];
            $end_date = $_GET['end_date'];
            $chill = chill_calculate_chill($aws_id, $start_date, $end_date);
            $aws_content = chill_show_results($aws_id, $start_date, $end_date, $chill);
        } else {
            $aws_content = generate_aws_content($aws_id, $view, $main_view, 'SAMDB');
        }
    }
}
$ga_code = google_analytics_samdb();
//generate page structure