Example #1
0
/**
 * display the log file selected
 * 
 * @uses csv_log_html()
 * @return string
 */
function edih_disp_log()
{
    $lfn = '';
    if (isset($_GET['log_select'])) {
        $lfn = filter_input(INPUT_GET, 'log_select', FILTER_SANITIZE_STRING);
    }
    $str_html = csv_log_html($lfn);
    return $str_html;
}
        $html_str .= ibr_disp_dpr_message();
    } elseif (isset($_GET['ebrfile'])) {
        $html_str = is_xhr() ? '' : ibr_html_heading('claimstatus');
        $html_str .= ibr_disp_ebr_message();
    } elseif (isset($_GET['fv997'])) {
        $html_str = is_xhr() ? '' : ibr_html_heading('claimstatus');
        $html_str .= ibr_disp_997_message();
    } elseif (isset($_GET['ackfile'])) {
        $html_str = is_xhr() ? '' : ibr_html_heading('claimstatus');
        $html_str .= ibr_disp_ta1_message();
    } elseif (isset($_GET['batchicn'])) {
        $html_str = is_xhr() ? '' : ibr_html_heading('claimstatus');
        $html_str .= ibr_disp_997_for_batch();
    } elseif (array_key_exists('showlog', $_GET)) {
        $la = filter_input(INPUT_GET, 'showlog', FILTER_SANITIZE_STRING);
        $html_str = $la ? csv_log_html() : "input parameter error<br />";
    } elseif (array_key_exists('archivelog', $_GET)) {
        $la = filter_input(INPUT_GET, 'archivelog', FILTER_SANITIZE_STRING);
        $html_str = $la ? csv_log_archive() : "input parameter error<br />";
    } elseif (array_key_exists('getnotes', $_GET)) {
        $la = filter_input(INPUT_GET, 'getnotes', FILTER_SANITIZE_STRING);
        $html_str = $la ? ibr_history_notes() : "input parameter error<br />";
    } else {
        $html_str = "EDI History: unknown parameter<br />" . PHP_EOL;
        //$html_str .= var_dump($_GET) . PHP_EOL;
    }
} else {
    die("EDI History: invalid input method <br />");
}
//
$isclear = csv_clear_tmpdir();
Example #3
0
     $chkd = filter_input(INPUT_GET, 'chkdenied', FILTER_SANITIZE_STRING);
     if ($chkd == 'yes') {
         $html_str = edih_disp_denied_claims();
     } else {
         $html_str = '<p>Input error: invalid parameter</p>';
         csv_edihist_log("GET error: missing parameter, invalid 'chkdenied' value");
     }
 } elseif (isset($_GET['showlog'])) {
     // show the edi_history log
     // ========= log user access for user commands ===========
     csv_edihist_log("User: "******"F j, Y, g:i a"));
     // =======================================
     $lgnm = isset($_GET['log_select']) ? filter_input(INPUT_GET, 'log_select', FILTER_SANITIZE_STRING) : '';
     $la = isset($_GET['logshowfile']) ? filter_input(INPUT_GET, 'logshowfile', FILTER_SANITIZE_STRING) : '';
     if ($la == 'getlog' && $lgnm) {
         $html_str = csv_log_html($lgnm);
     } else {
         $html_str = "Show Log: input parameter error<br />";
     }
 } elseif (isset($_GET['getnotes'])) {
     // ========= log user access for user commands ===========
     csv_edihist_log("User: "******"F j, Y, g:i a"));
     // =======================================
     $la = filter_input(INPUT_GET, 'getnotes', FILTER_SANITIZE_STRING);
     $html_str = $la ? edih_user_notes() : "input parameter error<br />";
 } elseif (isset($_GET['archivereport'])) {
     // ========= log user access for user commands ===========
     csv_edihist_log("User: "******"F j, Y, g:i a"));
     // =======================================
     // data: { period: prd, archivereport: 'yes'),
     $html_str = edih_disp_archive_report();