예제 #1
0
파일: index.php 프로젝트: kelen303/iEMS
 } elseif (isset($_POST['fetchEvents'])) {
     if (isset($_POST['evtBaseDate'])) {
         $_SESSION['evtBaseDate'] = $_POST['evtBaseDate'];
         $eventDisclaimerMessage = $eventDisclaimer;
         $selectedPresentation = 'individual';
         $meterStartTime = microtime(true);
         $meterSummaries = '<!-- start meter summaries -->' . $oInterface->gatherEvent($action, $selectedPoints['event'], $baseDate, $dateSpan, $selectedPresentation, $selectedView, $connection, $formUsed, $mdrUser, $_POST['evtBaseDate'], false) . '<!-- end meter summaries | time to render gather() ' . (microtime(true) - $meterStartTime) . ' -->';
     }
     $_SESSION['currentSelection'] = $selectedPoints['event'];
 } elseif (isset($_POST['fetchEventSummary'])) {
     $_SESSION['viewEventSummary'] = "1";
     $_SESSION['evtSummaryDate'] = $baseDateArray['evtSummaryDate'];
     $eventDisclaimerMessage = $eventDisclaimer;
     //$mdrUser->preDebugger($baseDateArray);
     $meterStartTime = microtime(true);
     $meterSummaries = '<!-- start meter summaries -->' . viewEventSummary($_SESSION['iemsDID'], $baseDateArray['evtSummaryDate'], false) . '<!-- end meter summaries | time to render gather() ' . (microtime(true) - $meterStartTime) . ' -->';
 } elseif (isset($_POST['fetchStatistics'])) {
     $meterStartTime = microtime(true);
     $meterSummaries = '<!-- start meter summaries -->' . viewStatistics($userID, $domainID, false) . '<!-- end meter summaries | time to render gather() ' . (microtime(true) - $meterStartTime) . ' -->';
 } elseif (isset($_POST['fetchProfiles'])) {
     $meterStartTime = microtime(true);
     $meterSummaries = '<!-- start meter summaries -->' . viewProfiles($userID, $domainID) . '<!-- end meter summaries | time to render gather() ' . (microtime(true) - $meterStartTime) . ' -->';
 } elseif (isset($_POST['viewContactReport'])) {
     //$mdrUser->preDebugger($_POST);
     $meterStartTime = microtime(true);
     $meterSummaries = '<!-- start meter summaries -->' . viewContactReport($userID, $domainID, false, isset($_POST['contactProgram']) ? $_POST['contactProgram'] : '', isset($_POST['includeInactive']) ? true : false) . '<!-- end meter summaries | time to render gather() ' . (microtime(true) - $meterStartTime) . ' -->';
 } elseif (isset($_POST['fetchReports'])) {
     $meterStartTime = microtime(true);
     $meterSummaries = '<!-- start meter summaries -->' . viewReports($userID, $domainID) . '<!-- end meter summaries | time to render gather() ' . (microtime(true) - $meterStartTime) . ' -->';
 } elseif (isset($_POST['dayAheadBids']) || isset($_POST['dayAheadBidsSubmit']) || isset($_POST['dayAheadBidsCorrect']) || isset($_POST['dayAheadBidsConfirm'])) {
     $meterStartTime = microtime(true);
예제 #2
0
$_SESSION['evtSummarySections'][12] = 'RTDR_181_Maine_(7505)_program_resource_detail';
$_SESSION['evtSummarySections'][13] = 'RTDR_181_Northern_CT_(7501)_program_resource_detail';
$_SESSION['evtSummarySections'][14] = 'RTDR_181_Norwalk_-_Stamford_(7502)_program_resource_detail';
$_SESSION['evtSummarySections'][15] = 'RTDR_181_Western_CT_(7503)_program_resource_detail';
$_SESSION['evtSummarySections'][16] = 'United_Illuminating_Domain_Resource_37857_program_resource_detail';
$_SESSION['evtSummarySections'][17] = 'United_Illuminating_Domain_Resource_37858_program_resource_detail';
$_SESSION['evtSummarySections'][18] = 'United_Illuminating_Domain_Resource_37859_program_resource_detail';
$_SESSION['evtSummarySections'][19] = 'United_Illuminating_Domain_Resource_37860_program_resource_detail';
$_SESSION['evtSummarySections'][20] = 'United_Illuminating_Domain_Resource_37861_program_resource_detail';
$_SESSION['evtSummarySections'][21] = 'United_Illuminating_Domain_Resource_37863_program_resource_detail';
$_SESSION['evtSummarySections'][22] = 'United_Illuminating_Domain_Resource_37864_program_resource_detail';
$_SESSION['evtSummarySections'][23] = 'United_Illuminating_Domain_Resource_37865_program_resource_detail';
$_SESSION['evtSummarySections'][24] = 'United_Illuminating_Domain_Resource_37866_program_resource_detail';
$_SESSION['evtSummarySections'][25] = 'United_Illuminating_Domain_Resource_37867_program_resource_detail';
$_SESSION['evtSummarySections'][26] = 'United_Illuminating_Domain_Resource_37868_program_resource_detail';
$meterSummaries = viewEventSummary($oUser->lseDomain()->id(), $evtDate, $csv);
?>
<style>th {text-align: right; padding-right: 10px;} </style>
<h3>Event Performance Summary Test</h3>
<table>
    <tr><th>Username: </th><td><?php 
echo $username;
?>
</td></tr>
    <tr><th>Domain: </th><td><?php 
echo $oUser->lseDomain()->id();
?>
</td></tr>
    <tr><th>Event Date: </th><td><?php 
echo $evtDate;
?>
예제 #3
0
$oInterface = new userInterface();
$mdrUser = new User();
$connection = $mdrUser->sqlConnection();
//passing the return from the local connection doc into a generic name$connection = $mdrUser->sqlConnection(); //passing the return from the local connection doc into a generic name
if (empty($_SESSION['UserObject'])) {
    //echo "REFRESH: In UserObject empty...<br>\n";
    $mdrUser->Login($_SESSION["iemsName"], $_SESSION["iemsPW"]);
    $_SESSION['UserObject'] = $mdrUser;
} else {
    //echo "REFRESH: In UserObject NOT empty...<br>\n";
    $mdrUser = $_SESSION['UserObject'];
}
$meterSummary = '';
$tabTipScript = '';
if (isset($_SESSION['viewEventSummary'])) {
    $meterSummary = viewEventSummary($_SESSION['iemsDID'], $_SESSION['evtSummaryDate'], false, true);
} else {
    if ($_SESSION['formUsed'] == 'eventsForm') {
        if (isset($_SESSION['evtBaseDate'])) {
            $meterSummary = $oInterface->gatherEvent($_SESSION['action'], $_SESSION['currentSelection'], $_SESSION['baseDate'], $_SESSION['dateSpan'], $_SESSION['selectedPresentation'], $_SESSION['selectedView'], $connection, $_SESSION['formUsed'], $mdrUser, $_SESSION['evtBaseDate'], true);
        }
    } else {
        $meterSummary = $oInterface->gather($_SESSION['action'], $_SESSION['currentSelection'], $_SESSION['baseDate'], $_SESSION['dateSpan'], $_SESSION['selectedPresentation'], $_SESSION['selectedView'], $connection, $_SESSION['formUsed'], $mdrUser, true);
    }
}
?>
    
    <script type="text/javascript" src="mootools/mootools-1.2-core.js"></script>
    <script type="text/javascript" src="mootools/mootools-1.2-more.js"></script>
    <script type="text/javascript" src="mootools/mootools-compat-core.js"></script>
    <script type="text/javascript" src="mootools/mootools-compat-more.js"></script>	
예제 #4
0
    header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
    header('Cache-Control: no-store, no-cache, must-revalidate');
    // HTTP/1.1
    header('Cache-Control: pre-check=0, post-check=0, max-age=0');
    // HTTP/1.1
    header("Pragma: no-cache");
    header("Expires: 0");
    header('Content-Transfer-Encoding: none');
    header('Content-Type: text/css');
    header('Content-Type: application/vnd.ms-excel;');
    // This should work for IE & Opera
    header("Content-type: application/x-msexcel");
    // This should work for the rest
    header('Content-Disposition: attachment; filename="' . $savename . '"');
} else {
    print '<pre>';
}
if (DEBUG && isset($_SESSION['debugSQL'])) {
    $mdrUser->preDebugger($_SESSION['debugSQL']);
}
if ($_GET['formUsed'] == 'uptimeForm') {
    print viewStatistics($userID, $domainID, true);
} elseif ($_GET['formUsed'] == 'eventsForm') {
    print viewEventSummary($domainID, $eventDate, true);
} else {
    print viewContactReport($userID, $domainID, true, $_GET['contactProgram']);
}
//$Loader->preDebugger($_SESSION['evtSummarySections']);
?>