예제 #1
0
파일: index.php 프로젝트: aedvalson/Nexus
<?php

include "./findconfig.php";
include $_SERVER['DOCUMENT_ROOT'] . "/" . $ROOTPATH . "/Includes/Top.php";
$F = new FormElements();
$db = new conn();
$firephp->log($_REQUEST);
if ($_REQUEST["report"]) {
    // Inventory Report
    if ($_REQUEST["report"] == "inventory") {
        if ($_REQUEST["StartDate"] && $_REQUEST["EndDate"]) {
            $db->connect();
            $startDate = $db->Sanitize($_REQUEST["StartDate"]);
            $endDate = $db->Sanitize($_REQUEST["EndDate"]);
            $productType = $db->Sanitize($_REQUEST["ProductType"]);
            $db->close();
            header("Location: NexusReport_Inventory.php?startDate=" . $startDate . "&endDate=" . $endDate . "&productType=" . $productType);
        }
    }
    $firephp->log($_REQUEST["report"]);
    $firephp->log($_REQUEST["generalSalesStartDate"]);
    $firephp->log($_REQUEST["generalSalesEndDate"]);
    // Individual Sale
    if ($_REQUEST["report"] == "IndividualOrder") {
        if ($_REQUEST["OrderID"]) {
            $db->connect();
            $order_id = $DB->sanitize($_REQUEST["OrderID"]);
            $db->close();
            header("Location: NexusReport_IndividualOrder.php?OrderID=" . $order_id);
        }
    }