$logs = $HVRRDS->getHighValueReminderLogs($folderSeq, $fromDateStr, $toDateStr);
    $logs = json_encode($logs);
}
$folDDown = DropDownUtils::getFoldersDropDownWithStationName($folders, "folder", "", $folderSeq);
if (isset($_POST["call"]) && $_POST["call"] == "exportLogs") {
    $folderSeq = $_POST["folderSeq"];
    $fromDateForm = $_POST["fromDate"];
    $toDateForm = $_POST["toDate"];
    $fromDate = new DateTime($fromDateForm);
    $toDate = new DateTime($toDateForm);
    $toDate = $toDate->add(new DateInterval('P1D'));
    $fromDateStr = $fromDate->format("Y/m/d  H:i:s");
    $toDateStr = $toDate->format("Y/m/d  H:i:s");
    $HVRRDS = HighValueRuleReminderDataStore::getInstance();
    $logs = $HVRRDS->getHighValueReminderLogs($folderSeq, $fromDateStr, $toDateStr);
    ExportUtils::ExportData($logs);
}
?>
<!DOCTYPE html>
<html>
    <head>
     <?php 
include "_jsAdminInclude.php";
?>
     <?php 
include "../_InspiniaInclude.php";
?>
 
    </head>
    <body>
    <div id="wrapper">       
Esempio n. 2
0
<?php

require_once 'IConstants.inc';
require_once $ConstantsArray['dbServerUrl'] . "DataStoreMgr//AppLogDataStore.php";
require_once $ConstantsArray['dbServerUrl'] . "Utils//ExportUtils.php";
$logDataStore = AppLogDataStore::getInstance();
if ($_GET["call"] == "getAllLogs") {
    $logsJson = $logDataStore->getAllLogsJson();
    echo $logsJson;
    return;
}
if ($_POST["call"] == "exportLogs") {
    $logsJson = $logDataStore->getAllLogs();
    ExportUtils::ExportData($logsJson);
}
?>
<html>
    <head>
        <?php 
include "_jsAdminInclude.php";
?>
    </head>
    <?php 
include "leftButtons.php";
?>
    <Div class="rightAdminPanel">
        <?php 
include "logOutButton.php";
?>
        <form name="exportLogsForm" id="exportLogsForm" method="post" action="showLogs.php" >
        <input type="hidden" name= "call" value="exportLogs" >