<?php
include_once("c_events_meeting_card.php");
class c_page_cab_events_meeting_card_new_lession extends c_page_cab_events_meeting_card
{
  public $h1='Новое собрание' ;

  function second_menu_config() {}

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

  function select_theme($options=array())
      {   if (!is_array($options['disabled_filter'])) $options['disabled_filter']=array() ;
          $recs_themes=EVENTS()->get_themes_of_events($this->rec_event['pkey']);
          ?><div id="panel_filter">
                  <form id="sky-form" class="sky-form">
                      <h2>Присутствующие на собрании:</h2><br>
                      <div class="row event_info">
                          <section class="col col-6">
                             <label class="textarea">
                                 <textarea type="text" name="guest_info"></textarea><i></i>
                             </label>
                          </section>
                      </div>
                      <h2>Темы:</h2>
                      <table class="basic fz_small"><tr><th>Выбор</th><th>Название темы</th></tr>
                      <?if (_sizeof($recs_themes)) foreach($recs_themes as $rec)
                      {?><tr><td><input type="checkbox" name="theme_ids[]" value="<?echo $rec['pkey']?>"></td>
                             <td class="left" style="width:500px;"><?echo $rec['obj_name']?></td>
                          </tr><?}?>
                          <tr><td><input type="checkbox" name="theme_ids[free]" value="1"></td>
                              <td><textarea name=free_theme style="width:100%;height:100px;padding:4px;" placeholder="Укажите название своей темы собрания"></textarea></td>

                          </tr>
                      </table><br><br>
                      <button class="button v2" event_id="<?echo $this->rec_event['pkey']?>"  cmd="events_meeting/lession_create" style="margin:0;float:none;">Перейти к регистрации слушателей</button>
                   </form>
            </div><br>
          <?
      }




}



?>
