public function getLabel()
 {
     $output = '';
     switch ($this->getData('typ_id')) {
         case '1':
             $output = 'Projekt ustawy';
             break;
         case '2':
             $output = 'Projekt uchwały';
             break;
         case '5':
             $output = 'Powołanie / odwołanie';
             break;
         case '6':
             $output = 'Umowa międzynarodowa';
             break;
         case '11':
             $output = 'Sprawozdanie kontrolne';
             break;
         case '12':
             $output = 'Projekt';
             break;
         case '100':
             $output = 'Zmiana w składach komisji';
             break;
         case '103':
             $output = 'Wniosek o referendum';
             break;
     }
     $output .= ' z dnia ' . dataSlownie($this->getDate());
     return $output;
 }
 public function getMetaDescriptionParts($preset = false)
 {
     $output = array();
     if ($this->getDate()) {
         $output[] = dataSlownie($this->getDate());
     }
     return $output;
 }
 public function getMetaDescriptionParts($preset = false)
 {
     $output = array(dataSlownie($this->getDate()));
     if ($this->getData('sejm_interpelacje.adresaci_str')) {
         $output[] = 'Do: ' . $this->getData('sejm_interpelacje.adresaci_str');
     }
     return $output;
 }
 public function getTitleAddon()
 {
     $parts = array(dataSlownie($this->getData('data_start')));
     if ($this->getData('data_stop') && $this->getData('data_stop') != $this->getData('data_start')) {
         $parts[] = dataSlownie($this->getData('data_stop'));
     }
     return implode(' - ', $parts);
 }
 public function getMetaDescriptionParts($preset = false)
 {
     $output = array(dataSlownie($this->getDate()));
     if ($this->getData('skarzony_organ_str')) {
         $output[] = 'Skarżony organ: ' . $this->getData('skarzony_organ_str');
     }
     $output[] = $this->getData('wynik_str');
     return $output;
 }
 public function getMetaDescriptionParts($preset = false)
 {
     $output = array(dataSlownie($this->getDate()));
     $static = $this->getStatic();
     if (isset($static['tresc']) && !empty($static['tresc'])) {
         $output[] = $static['tresc'];
     }
     return $output;
 }
 public function getMetaDescriptionParts($preset = false)
 {
     $output = array();
     if ($this->getData('krakow_rada_uchwaly.data')) {
         $output[] = dataSlownie($this->getData('krakow_rada_uchwaly.data'));
     }
     if ($this->getData('krakow_rada_uchwaly.str_numer')) {
         $output[] = $this->getData('krakow_rada_uchwaly.str_numer');
     }
     return $output;
 }
 public function getMetaDescriptionParts($preset = false)
 {
     $output = array();
     if ($this->getData('krakow_glosowania.data_stop')) {
         $output[] = dataSlownie($this->getData('krakow_glosowania.data_stop'));
     }
     if ($this->getData('krakow_glosowania.tytul')) {
         $output[] = $this->getData('krakow_glosowania.tytul');
     }
     return $output;
 }
 public function getMetaDescriptionParts($preset = false)
 {
     $output = array(dataSlownie($this->getDate()));
     if ($this->getData('status_str')) {
         $output[] = $this->getData('status_str');
     }
     if ($this->getData('realizacja_str')) {
         $output[] = $this->getData('realizacja_str');
     }
     return $output;
 }
 public function getLabel()
 {
     $status = $this->getStatus();
     if ($this->getData('tryb_id') == '2') {
         $output = 'Zamówienie z wolnej ręki';
     } else {
         $output = $this->getData('zamowienia_publiczne_tryby.nazwa');
     }
     $output .= ' z ' . dataSlownie($this->getDate());
     return $output;
 }
 public function getMetaDescriptionParts($preset = false)
 {
     $output = array();
     if ($this->getDate()) {
         $output[] = dataSlownie($this->getDate());
     }
     if ($this->getData('liczba_dokumentow')) {
         $output[] = pl_dopelniacz($this->getData('liczba_dokumentow'), 'dokument', 'dokumenty', 'dokumentów');
     }
     return $output;
 }
 public function getMetaDescriptionParts($preset = false)
 {
     $output = array(dataSlownie($this->getDate()));
     if ($this->getData('sejm_debaty.liczba_wystapien')) {
         $output[] = pl_dopelniacz($this->getData('sejm_debaty.liczba_wystapien'), 'wystąpienie', 'wystąpienia', 'wystąpień');
     }
     if ($this->getData('sejm_debaty.liczba_glosowan')) {
         $output[] = pl_dopelniacz($this->getData('sejm_debaty.liczba_glosowan'), 'głosowanie', 'głosowania', 'głosowań');
     }
     return $output;
 }
 public function getMetaDescriptionParts($preset = false)
 {
     $output = array();
     if ($this->getData('sygnatura')) {
         $output[] = $this->getData('sygnatura');
     }
     if ($this->getData('data_publikacji')) {
         $output[] = 'Opublikowano ' . dataSlownie($this->getData('data_publikacji'));
     }
     return $output;
 }
 public function getMetaDescriptionParts($preset = false)
 {
     $output = array();
     if ($this->getDate()) {
         $output[] = dataSlownie($this->getDate());
     }
     if ($this->getData('sejm_komisje_opinie.adresat')) {
         $output[] = $this->getData('sejm_komisje_opinie.adresat');
     }
     return $output;
 }
 public function getMetaDescriptionParts($preset = false)
 {
     $output = array();
     if ($this->getDate()) {
         $output[] = dataSlownie($this->getDate());
     }
     if ($this->getData('krakow_komisje.nazwa')) {
         $output[] = '<a href="#">' . $this->getData('krakow_komisje.nazwa') . '</a>';
     }
     return $output;
 }
 public function getMetaDescriptionParts($preset = false)
 {
     $output = array();
     if ($this->getDate()) {
         $output[] = dataSlownie($this->getDate());
     }
     if ($this->getData('template_label')) {
         $o = $this->getData('template_label');
     }
     $output[] = $o;
     return $output;
 }
 public function getMetaDescriptionParts($preset = false)
 {
     $output = array();
     if ($this->getDate()) {
         $output[] = dataSlownie($this->getDate());
     }
     if ($this->getData('funkcja')) {
         $output[] = $this->getData('funkcja');
     }
     if ($this->getData('poslowie.dopelniacz')) {
         $output[] = $this->getData('poslowie.dopelniacz');
     }
     return $output;
 }
 public function getMetaDescriptionParts($preset = false)
 {
     $output = array();
     if ($this->getData('wartosc_brutto')) {
         $output[] = number_format_h($this->getData('wartosc_brutto')) . ' PLN';
     }
     if ($this->getData('wykonawca')) {
         $output[] = $this->getData('wykonawca');
     }
     if ($this->getData('data_zawarcia')) {
         $output[] = dataSlownie($this->getData('data_zawarcia'));
     }
     return $output;
 }
 public function getMetaDescriptionParts($preset = false)
 {
     $output = array();
     if ($this->getDate()) {
         $output[] = dataSlownie($this->getDate());
     }
     if (isset($this->options['mode']) && $this->options['mode'] === 'raport' && $this->getData('nik_jednostki.nazwa')) {
         $output[] = $this->getData('nik_raporty_dokumenty.nazwa');
     }
     if ($this->getData('nik_raporty_podmioty.nazwa')) {
         $output[] = 'Podmiot kontrolowany: ' . $this->getData('nik_raporty_podmioty.nazwa');
     }
     if (isset($this->options['mode']) && $this->options['mode'] === 'subobject' && $this->getData('nik_jednostki.nazwa')) {
         $output[] = 'Jednostka kontrolujaca: ' . $this->getData('nik_jednostki.nazwa');
     }
     return $output;
 }
 public function getShortTitle()
 {
     return dataSlownie($this->getDate());
 }
<?php

$id = (int) $id;
list($date) = $this->DB->selectRow("SELECT `date` FROM `pl_gminy_krakow_posiedzenia` WHERE `id`='{$id}'");
$data = array('previous' => $this->DB->selectAssoc("SELECT `id`, `date` as `title` FROM `pl_gminy_krakow_posiedzenia` WHERE `date`<'" . $date . "' ORDER BY `date` DESC"), 'next' => $this->DB->selectAssoc("SELECT `id`, `date` as `title` FROM `pl_gminy_krakow_posiedzenia` WHERE `date`>'" . $date . "' ORDER BY `date` ASC"));
if ($data['previous']) {
    $data['previous']['title'] = 'Posiedzenie ' . strip_tags(dataSlownie($data['previous']['title']));
}
if ($data['next']) {
    $data['next']['title'] = 'Posiedzenie ' . strip_tags(dataSlownie($data['next']['title']));
}
return $data;
 public function getMetaDescriptionParts($preset = false)
 {
     $output = array(dataSlownie($this->getData('rady_druki.data')), $this->getData('rady_druki.tytul'), $this->getData('rady_druki.autor_str'));
     return $output;
 }
 public function dataSlownie($data, $options = array())
 {
     return dataSlownie($data, $options);
 }
 public function getFullLabel()
 {
     return 'Projekt uchwały Sejmu z ' . dataSlownie($this->getDate());
 }
 public function getMetaDescriptionParts($preset = false)
 {
     return array(dataSlownie($this->getDate()));
 }
 public function getLabel()
 {
     return '<strong>Orzeczenie</strong> Sądu Najwyższego z dnia ' . dataSlownie($this->getDate());
 }
 public function getBreadcrumbs()
 {
     return array(array('id' => '/dane/gminy/903,krakow/posiedzenia', 'label' => 'Posiedzenia Rady Miasta'), array('id' => '/dane/gminy/903,krakow/posiedzenia/' . $this->getData('krakow_posiedzenia.id'), 'label' => dataSlownie($this->getData('krakow_posiedzenia.data'))), array('label' => 'Punkt #' . $this->getData('numer')));
 }
 public function getFullLabel()
 {
     return $this->getLabel() . ' z ' . dataSlownie($this->getTime());
 }
 public function getLabel()
 {
     return '<strong>Orzeczenie</strong> ' . $this->getData('dopelniacz') . ' z dnia ' . dataSlownie($this->getDate());
 }
 public function getHTMLForField($field, $field_params, $options = array())
 {
     $output = '';
     $normalizeText = false;
     $col_width = isset($options['col_width']) ? $options['col_width'] : 4;
     $hidden = isset($options['hidden']) ? $options['hidden'] : false;
     $field_label = $field_params['label'];
     $field_value = $field_params['value'];
     $field_options = isset($field_params['options']) && is_array($field_params['options']) ? $field_params['options'] : array();
     $field_type = $field_params['type'];
     if (stripos($field, 'data') === 0) {
         $field_type = 'date';
     }
     if ($field_type == 'date' && !isset($field_options['format'])) {
         if ($field_value == '0000-00-00') {
             return false;
         }
         $field_value = dataSlownie($field_value);
     } elseif ($field_type == 'pln') {
         $field_value = (double) $field_value;
         if (!$field_value) {
             return false;
         }
         $field_value = number_format_h($field_value, 2, ',', ' ') . ' PLN';
     } elseif ($field_type == 'integer') {
         if (!$field_value) {
             return false;
         } else {
             $field_value = number_format($field_value, 0, '', ' ');
         }
     } elseif ($field_type == 'percent') {
         $field_value .= '%';
     } elseif ($field_type == 'duration') {
         if (!$field_value) {
             return false;
         } else {
             $field_value = number_format($field_value, 0, '', ' ') . 'm';
         }
     } elseif ($field_type == 'vote') {
         $field_value = '<div class="voted btn btn-default btn-glos-' . $field_value . '" data-glos="' . $field_value . '">' . $this->voted($field_value) . '</div>';
     }
     if (isset($field_options['format'])) {
         switch ($field_options['format']) {
             case 'wiek':
                 $field_value = pl_dopelniacz(pl_wiek($field_value), 'rok', 'lata', 'lat');
                 break;
             case 'bytes':
                 $field_value = round($field_params['value'] / 1024);
                 $field_value = number_format($field_value, 0, '', ' ') . 'kB';
                 break;
         }
     }
     if (isset($field_options['dictionary'])) {
         if (is_array($field_value)) {
             if (!empty($field_value)) {
                 foreach ($field_value as &$v) {
                     $v = @$field_options['dictionary'][$v];
                 }
             }
         } else {
             $field_value = @$field_options['dictionary'][$field_value];
         }
     }
     if (isset($field_options['truncate'])) {
         $base_part = mb_substr($field_value, 0, $field_options['truncate']);
         $add_part = mb_substr($field_value, $field_options['truncate']);
         $field_value = '<span class="base">' . $base_part . '</span>';
         if ($add_part) {
             $field_value .= ' <a href="#" onclick="return false;">...</a><span class="add">' . $add_part . '</span>';
         }
     }
     if (isset($field_options['img'])) {
         if (preg_match_all('/\\{\\$(.*?)\\}/i', $field_options['img'], $matches)) {
             for ($m = 0; $m < count($matches[0]); $m++) {
                 $field_value = '<img src="' . str_replace($matches[0][$m], $this->object->getData($matches[1][$m]), $field_options['img']) . '" /> ' . $field_value;
             }
         }
     }
     if (isset($field_options['normalizeText']) && $field_options['normalizeText']) {
         $normalizeText = true;
     }
     if (isset($field_options['link'])) {
         if (is_array($field_options['link']) && isset($field_options['link']['dataset']) && isset($field_options['link']['object_id'])) {
             if (is_array($field_value)) {
                 for ($f = 0; $f < count($field_value); $f++) {
                     $object_id = $field_options['link']['object_id'][0] == '$' ? $this->object->getData(mb_substr($field_options['link']['object_id'], 1)) : $field_options['link']['object_id'];
                     $object_id = @$object_id[$f];
                     $href = '/dane/' . $field_options['link']['dataset'] . '/' . $object_id;
                     $field_value[$f] = '<a href="' . $href . '">' . $field_value[$f] . '</a>';
                 }
             } else {
                 $object_id = $field_options['link']['object_id'][0] == '$' ? $this->object->getData(mb_substr($field_options['link']['object_id'], 1)) : $field_options['link']['object_id'];
                 $href = '/dane/' . $field_options['link']['dataset'] . '/' . $object_id;
                 $field_value = '<a href="' . $href . '">' . $field_value . '</a>';
             }
         } elseif (is_array($field_options['link']) && $field_options['link']['href']) {
             $href = $field_options['link']['href'][0] == '$' ? $this->object->getData(mb_substr($field_options['link']['href'], 1)) : $field_options['link']['href'];
             $_field_value = $field_value;
             $field_value = '<a';
             if (isset($field_options['link']['newWindow']) && $field_options['link']['newWindow']) {
                 $field_value .= ' target="_blank"';
             }
             $field_value .= ' href="' . $href . '">' . $_field_value . '</a>';
         }
     }
     if (isset($field_options['dopelniacz'])) {
         $field_value = pl_dopelniacz($field_value, $field_options['dopelniacz'][0], $field_options['dopelniacz'][1], $field_options['dopelniacz'][2]);
     }
     if (!empty($field_value)) {
         if (!is_array($field_value) && stripos($field_value, $field_label) === 0) {
             $field_value = trim(mb_substr($field_value, strlen($field_label)));
         }
         $output .= '<div class="dataHighlight';
         if ($col_width) {
             $output .= ' col-md-' . $col_width;
         }
         if ($hidden) {
             $output .= ' secondRow';
         }
         $output .= '"';
         $output .= '>';
         if ($field_label && !isset($field_options['hide']) && $field_type != 'vote') {
             $output .= '<p class="_label">' . $field_label . ':</p>';
         }
         $output .= '<p class="_value';
         if ($normalizeText) {
             $output .= ' normalizeText';
         }
         $output .= '">';
         if (is_array($field_value)) {
             $output .= '<ul class="hl_ul normalizeText"><li>' . implode('</li><li>', $field_value) . '</li></ul>';
         } else {
             $output .= $field_value;
         }
         $output .= '</p></div>';
     }
     return $output;
 }