<?
class report_pp_result extends c_report
{
    var $rec_PP;
    var $dir_PP;

    function setting(){
        ?>
        <div id="panel_filter">
            <form id="sky-form" class="sky-form">
                <input type="hidden" name="filter_dir" value="<?echo $this->dir_PP?>">
                <?if ($this->filter['source_graph']) {?><input type="hidden" name="filter[source_graph]" value="1"><?}?>
                <div id="panel_buttons">
                    <button class="button v2" cmd="aspmo_pp/change_graph" value="<?echo (1-$this->filter['source_graph'])?>">Исходный график</button>
                    <button class="button v2" cmd="report/to_print">Печать</button>
<!--                    <button class="button v2" cmd="report/view_as_pdf">PDF</button>-->
                </div>
            </form>
        </div>
        <?
    }

    function HTML_report_body($options=array()){
        include_once(_DIR_EXT.'/aspmo_pp/panel_view_pp.php') ;
        $options=[];
        if ($this->filter['source_graph']) $options['no_approximate']=1;
        if ($this->rec_PP['pkey']) panel_view_pp($this->rec_PP,$options) ;
    }
}

?>
