<?php
include_once("c_esmo_setting_terminal_card.php");
include_once(_DIR_EXT.'/log/i_term_log.php') ;

class c_page_cab_esmo_setting_terminal_card_log_view extends c_page_cab_esmo_setting_terminal_card
{
    public $h1='Журнал терминала' ;
    public $use_fusioncharts=1 ;

    function select_obj_info() {
        parent::select_obj_info();
        $this->h1='Журнал терминала "'.$this->rec_terminal['obj_name'].'"' ;
    }

    function set_head_tags() {
        parent::set_head_tags() ;
        $this->HEAD['css'][]=_PATH_TO_EXT.'/log/term_log.css' ;
        $this->HEAD['js'][]=_PATH_TO_EXT.'/log/term_log.js' ;
    }

    function block_main()
    { $this->page_title() ;
        ?>
        <div class=" sky-form no_box_shadow view-log_btn-panel">
            <button class="button v2 view-log_btn" cmd="log/get_term_log" term_id="<?echo _CUR_ID?>" filename="terminal" onclick="$j('#load_gif').removeAttr('hidden')">Открыть terminal.log</button>
            <button class="button v2 view-log_btn" cmd="log/get_term_log" term_id="<?echo _CUR_ID?>" filename="terminald" onclick="$j('#load_gif').removeAttr('hidden')">Открыть terminald.log</button>
            <?TERM_LOG()->get_zip_link(_CUR_ID);?>
        </div>

        <div id="header">
        </div>

        <div id="show_log">
        </div>

        <div class="log-loading" id="loading_layer">
            <img id="load_gif" src="/images/loading15.gif" hidden>
        </div>
        <?
    }
}
?>
