Exemple #1
0
			<!-- Report Form -->

		   	<?php 
//-- By Store
if ($_REQUEST['store_id']) {
    //-- Products
    if ($_REQUEST['report_sort_by'] == 'products') {
        $report->showReportStoreToBookingProduct($_REQUEST['store_id'], $_REQUEST['booking_product_id']);
    } elseif ($_REQUEST['report_sort_by'] == 'suppliers') {
        $report->showReportStoreToSupplier($_REQUEST['store_id'], $_REQUEST['supplier_id']);
    } elseif ($_REQUEST['report_sort_by'] == 'spots') {
        $report->showReportStoreToSize($_REQUEST['store_id'], $_REQUEST['size_id']);
    } elseif ($_REQUEST['report_sort_by'] == 'dollars') {
        $report->showReportStoreToDollar($_REQUEST['store_id'], $_REQUEST['dollar_id']);
    } elseif ($_REQUEST['report_sort_by'] == 'months') {
        $report->showReportStoreToMonth($_REQUEST['store_id'], $_REQUEST['month']);
    } elseif ($_REQUEST['report_sort_by'] == 'availability-by-month') {
        $report->showReportStoreToAvailabilityByMonth($_REQUEST['store_id'], $_REQUEST['availability_by_month']);
    } elseif ($_REQUEST['report_sort_by'] == 'availability-by-year') {
        $report->showReportStoreToAvailabilityByYear($_REQUEST['store_id'], $_REQUEST['availability_by_year']);
    }
} elseif ($_REQUEST['activity_id']) {
    //-- Products
    if ($_REQUEST['report_sort_by'] == 'products') {
        $report->showReportActivityToBookingProduct($_REQUEST['activity_id'], $_REQUEST['booking_product_id']);
    } elseif ($_REQUEST['report_sort_by'] == 'supplier') {
        $report->showReportActivityToSupplier($_REQUEST['activity_id'], $_REQUEST['supplier_id']);
    } elseif ($_REQUEST['report_sort_by'] == 'spots') {
        $report->showReportActivityToSize($_REQUEST['activity_id'], $_REQUEST['size_id']);
    } elseif ($_REQUEST['report_sort_by'] == 'dollars') {
        $report->showReportActivityToDollar($_REQUEST['activity_id'], $_REQUEST['dollar_id']);