'Strona', 'name' => 'strona', 'id' => 'strona', 'value' => $this -> topic['strona'], 'inline' => true ] );?> 'Kategoria', 'name' => 'kategoria', 'id' => 'kategoria', 'value' => $this -> topic['kategoria'], 'inline' => true ] );?> 'Kategoria ID', 'name' => 'kategoria_id', 'id' => 'kategoria_id', 'value' => $this -> topic['kategoria_id'], 'inline' => true ] );?> 'Link', 'name' => 'link', 'id' => 'link', 'value' => $this -> topic['link'], 'inline' => true ] );?> 'Temat', 'name' => 'temat', 'id' => 'temat', 'value' => $this -> topic['temat'], 'inline' => true ] );?> 'Wygeneruj temat', 'name' => 'wygeneruj_temat', 'id' => 'wygeneruj_temat', 'checked' => $this -> topic['wygeneruj_temat'] == 1 ? true : false, 'inline' => true ] );?> 'Data publikacji', 'name' => 'data_publikacji', 'id' => 'data_publikacji', 'value' => $this -> topic['data_publikacji'], 'inline' => true ] );?> 'Opublikowany', 'name' => 'opublikowany', 'id' => 'opublikowany', 'checked' => $this -> topic['opublikowany'] == 1 ? true : false, 'inline' => true ] );?> 'Zaakceptowany', 'name' => 'zaakceptowany', 'id' => 'zaakceptowany', 'checked' => $this -> topic['zaakceptowany'] == 1 ? true : false, 'inline' => true ] );?> id = 'client-edit'; $grid -> gdb_opt = $gdb; $grid -> include_plugins = true; $grid -> title = 'Edycja tematu'; $grid -> fields = [ [ 'db' => 'id', 'type' => 'hidden', 'value' => $this -> topic['id'] ] ]; $grid -> external_code = $out; $grid -> actions = [ 'save' => [ 'url' => '/backend_sites/topic_save/', 'back_url' => '/backend_sites/topics/' ], 'cancel' => [ 'url' => '/backend_sites/topics/' ] ]; $grid -> persist_edit = true; $grid -> id_param = 'id'; echo $grid -> draw(); ?>