Beispiel #1
0
  function grid_render()
  {
      $schedulesGroups = Modules::run('duc/duc_schedules/MY_data_array_one', 'id_group', 'active', array('active' => 1));
      $opt = '
 		var opts = {beforeShowForm: function($form)
      {
          var value = $form.find("#id").val();
          $form.find("#id").append("My fancy suffix for value: " + value);
      }};
      ';
      parent::grid_render();
      // добавление кнопок навигации в toolbar
      $this->load->view('grid/navigator/button_bar', array('id' => 'active_grid_duc_groups', 'oper' => 'active', 'caption' => 'Вкл.', 'title' => 'Включить выбранные записи', 'buttonicon' => 'ui-icon-play', 'confirm' => 'Включить выбранные записи?', 'field' => 'id'));
      $this->load->view('grid/navigator/button_bar', array('id' => 'deactive_grid_duc_groups', 'oper' => 'deactive', 'caption' => 'Откл.', 'title' => 'Отключить выбранные записи', 'buttonicon' => 'ui-icon-stop', 'confirm' => 'Отключить выбранные записи?', 'field' => 'id'));
      // возможность сортировки полей методом drag and drop
      $this->load->view('grid/sorter/sortrows', array('grid' => $this->table, 'url' => '/grid/' . $this->MY_table . '/' . $this->MY_module . '/grid/'));
      // изменение вида формы поля select teacher при редактировании
      /*
      $this->load->view('grid/formatter/select2',
      				 array('grid' => $this->table,
      				 		'url' => '/grid/'.$this->MY_table.'/'.$this->MY_module.'/grid/',
      				 		'selector' => '#id_teacher',
      				 		'width' => '350px',
                              //'formatSelection' => 'formatSelection',
                              //'formatResult' => 'formatResult'
      				 )
      );
      */
      $this->load->view('grid/formatter/select2', array('grid' => $this->table, 'url' => '/grid/' . $this->MY_table . '/' . $this->MY_module . '/grid/', 'selector' => '#gs_id_teacher', 'width' => '300px', 'event' => 'jqGridGridComplete'));
      $this->load->view('grid/formatter/select2', array('grid' => $this->table, 'url' => '/grid/' . $this->MY_table . '/' . $this->MY_module . '/grid/', 'selector' => '#gs_name', 'width' => '350px', 'containerCss' => array('text-align' => 'left'), 'event' => 'jqGridGridComplete'));
      // группировка заголовков
      $this->load->view('grid/group_header/colspan', array('grid' => $this->table, 'useColSpanStyle' => true, 'column' => array('year_education_from' => array('numberOfColumns' => 2, 'titleText' => lang('duc_year_education')), 'age_from' => array('numberOfColumns' => 2, 'titleText' => lang('duc_age_child')), 'duration_job' => array('numberOfColumns' => 2, 'titleText' => lang('duc_duration')))));
  }
Beispiel #2
0
 function grid_render()
 {
     parent::grid_render();
     $this->load->view('grid/navigator/active');
     $this->load->view('grid/sorter/sortrows', array('grid' => $this->table, 'url' => '/grid/' . $this->MY_table . '/' . $this->MY_module . '/grid/'));
     $this->load->view('grid/formatter/select2', array('grid' => $this->table, 'url' => '/grid/' . $this->MY_table . '/' . $this->MY_module . '/grid/'));
     $this->load->view('grid/group_header/colspan', array('grid' => $this->table, 'useColSpanStyle' => true, 'column' => array('year_education_from' => array('numberOfColumns' => 2, 'titleText' => lang('duc_year_education')), 'age_from' => array('numberOfColumns' => 2, 'titleText' => lang('duc_age_child')), 'duration_job' => array('numberOfColumns' => 2, 'titleText' => lang('duc_duration')))));
 }
Beispiel #3
0
 function __construct()
 {
     parent::__construct();
     $this->table = 'grid_duc_photos';
     $this->MY_table = 'duc_photos';
 }
Beispiel #4
0
 function __construct()
 {
     parent::__construct();
 }
Beispiel #5
0
 function __construct()
 {
     parent::__construct();
     $this->table = 'grid_duc_durations';
 }
Beispiel #6
0
 function grid_render()
 {
     parent::grid_render();
     $this->load->view('grid/navigator/active');
 }
Beispiel #7
0
 function __construct()
 {
     parent::__construct();
     $this->table = 'grid_duc_activities';
 }
Beispiel #8
0
 function __construct()
 {
     parent::__construct();
     $this->table = 'grid_duc_addresses';
 }
Beispiel #9
0
 function grid_render()
 {
     parent::grid_render();
     //$this->load->view('grid/navigator/active');
     $this->load->view('grid/sorter/sortrows', array('grid' => $this->table, 'url' => '/grid/' . $this->MY_table . '/' . $this->MY_module . '/grid/'));
 }
Beispiel #10
0
 function __construct()
 {
     parent::__construct();
     $this->table = 'grid_duc_dop_teachers';
 }
Beispiel #11
0
 function __construct()
 {
     parent::__construct();
     $this->table = 'grid_duc_schedules';
 }
Beispiel #12
0
 function __construct()
 {
     parent::__construct();
     $this->table = 'grid_duc_concertmasters';
 }
Beispiel #13
0
 function __construct()
 {
     parent::__construct();
     $this->table = 'grid_duc_settings';
 }