<?php
include_once("c_debug.php");
class c_page_cab_debug_monitor extends c_page_cab_debug
{
  public $h1='Мониторинг' ;

  function block_main()
  { $this->page_title() ;
    $this->panel_debug_db() ;
  }

 function panel_debug_db()
 {   $recs=execSQL('select pkey,obj_name,last_mo_event from obj_site_account where clss=206 order by obj_name') ;
     ?><div id="panel_filter" style="position:relative;">
                  <form id="sky-form" class="sky-form"><input type="hidden" name="filter_dir" value="<?echo _CUR_REPORT_DIR?>">
                       <input type="hidden" name="update_monitor_stats" value="1">
                       <fieldset>
                           <div class="row">
                               <? $this->filter_section_select('group_id','Группа ЭСМО:',4,$recs) ; ?>
                               <section class="col col-8">
                                   <div style="margin-top:15px;">
                                        <button class="button v2" cmd="aspmo_term/send_update_page">Отправить команду "update_page"</button>&nbsp;&nbsp;
                                        <button class="button v2" cmd="aspmo_term/send_mo">Отправить MO</button>&nbsp;&nbsp;
                                        <button class="button v2" cmd="aspmo_term/send_notife" mode=error>Отправить сообщение ALERT</button>&nbsp;&nbsp;
                                        <button class="button v2" cmd="aspmo_term/send_notife" mode=info>Отправить сообщение INFO</button>&nbsp;&nbsp;
                                   </div>
                               </section>
                           </div>
                       </fieldset>
                   </form>
            </div><br>
      <div id="div_result"></div>
     <?
     include('panel_monitoring_stats.php') ;
     panel_monitoring_stats() ;


 }

}



?>