<?php
/**********************************************************************
***********************************************************************/
$page_security = 'SA_SERVICE_COMPLAINS_VIEW';
$path_to_root = "../..";

include($path_to_root . "/includes/session.inc");
include_once($path_to_root . "/includes/ui.inc");
include_once($path_to_root . "/services/includes/ui/service_complains_ui.inc"); 
include_once($path_to_root . "/services/includes/db/service_complains_db.inc");
include_once($path_to_root . "/services/includes/db/job_orders_db.inc"); 
include_once($path_to_root . "/assets/includes/db/assets_db.inc");   
include_once($path_to_root . "/payroll/includes/db/employees_db.inc");   

$js = "";
$js .= get_js_open_window(800, 500);

global $systypes_array;

page(_($help_context = "View ".$systypes_array[ST_SERVICE_COMPLAIN]), true, false, "", $js);

$from_date_ = $to_date_ = $req_department_id = $closed = $has_job = null;

if (isset($_GET["from_date"])) {
    $from_date_ = sql2date($_GET["from_date"]);
}
if (isset($_GET["to_date"])) {
    $to_date_ = sql2date($_GET["to_date"]);
}
if (isset($_GET["req_department_id"])) {
    $req_department_id = $_GET["req_department_id"];
}
if (isset($_GET["closed"])) {
    $closed = $_GET["closed"];
}
if (isset($_GET["has_job"])) {
    $has_job = $_GET["has_job"];
}

br();

    display_heading($systypes_array[ST_SERVICE_COMPLAIN].'s Details');        br();

        display_service_complains_view($from_date_, $to_date_, req_department_id: $req_department_id, closed: $closed, has_job: $has_job);       br();
    
end_page(true, false, false, ST_SERVICE_COMPLAIN, 1);

?>