if ( $this -> values['f_categories'] or $this -> values['f_countries'] or $this -> f_voivodeships or $this -> values['f_time'] or $this -> values['f_work_type'] or $this -> values['f_without_language'] or $this -> values['f_without_experience'] or $this -> values['f_for_couples'] or $this -> f_accommodation_provided ):?>
Oferty pracy:
foreach ( $this -> values['f_categories'] as $category ):?>= \front\factory\Globelus::get_category_name( $category );?>, endforeach;?>
if ( $this -> values['f_countries'] ):?>
kraje:
foreach ( $this -> values['f_countries'] as $country ):?>= str_replace( '-', '', \front\factory\Globelus::get_country_name( $country ) );?>, endforeach;?>
endif;?>
foreach ( $this -> f_voivodeships as $voivodeship ):?>= \front\factory\Globelus::get_voivodeship_name( $voivodeship );?>, endforeach;?>
if ( $this -> values['f_time'] == 1 ):?>z okresu: = $lang['filtr-okres-1'];?>, endif;?>
if ( $this -> values['f_time'] == 2 ):?>z okresu: = $lang['filtr-okres-2'];?>, endif;?>
if ( $this -> values['f_time'] == 3 ):?>z okresu: = $lang['filtr-okres-3'];?>, endif;?>
if ( $this -> values['f_time'] == 4 ):?>z okresu: = $lang['filtr-okres-4'];?>, endif;?>
if ( $this -> values['f_time'] == 5 ):?>z okresu: = $lang['filtr-okres-5'];?>, endif;?>
if ( $this -> values['f_time'] == 6 ):?>z okresu: = $lang['filtr-okres-6'];?>, endif;?>
if ( $this -> values['f_work_type'] and ( count( $this -> values['f_work_type'] ) > 1 or count( $this -> values['f_work_type'] ) == 1 and $this -> values['f_work_type'][0] != 0 ) ):?>
$work_types = \front\factory\Globelus::work_types();
?>
rodzaj pracy:
foreach ( $this -> values['f_work_type'] as $work_type ):?>= $work_types[ $work_type ];?>, endforeach;?>
endif;?>
if ( $this -> values['f_without_language'] or $this -> values['f_without_experience'] or $this -> values['f_for_couples'] or $this -> f_accommodation_provided ):?>
inne:
endif;?>
if ( $this -> values['f_without_language'] ):?>= $lang['bez-znajomosci-jezyka'];?>, endif;?>
if ( $this -> values['f_without_experience'] ):?>= $lang['bez-doswiadczenia'];?>, endif;?>
if ( $this -> values['f_for_couples'] ):?>= $lang['dla-par'];?>, endif;?>
if ( $this -> f_accommodation_provided ):?>zapewnione zakwaterowanie, endif;?>
endif;?>
if ( is_array( $this -> values['adverts'] ) and count( $this -> values['adverts']) ):?>
foreach ( $this -> values['adverts'] as $advert ):?>
if ( $advert['highlight'] ):?>
Oferta wyróżniona
endif;?>
if ( file_exists( \front\factory\GlobelusFirms::logo_url( $advert['user_id'] ) ) ):?>
;?>)
else:?>

endif;?>
= date( 'Y-m-d', strtotime( $advert['date_active'] ) );?>
if ( file_exists( 'upload/filemanager/flags/' . \S::seo( $advert['country'] ) . '.jpg' ) ):?>
;?>.jpg)
endif;?>
if ( trim( $advert['salary'] ) ):?>
endif; ?>
if ($advert['overtime']) : ?>
= $advert['overtime_quantity']; ?>
endif; ?>
if ($advert['accommodation']) : ?>
= $advert['accommodation_cost']; ?>
endif; ?>
if ($advert['travel_refund']) : ?>
endif; ?>
if ($advert['work_type']) : ?>
$work_type = \front\factory\Globelus::work_types();
echo $work_type[$advert['work_type']]; ?>
endif; ?>
if ($advert['without_experience']) : ?>
= \S::lang('bez-doswiadczenia'); ?>
endif; ?>
if ($advert['without_language']) : ?>
= \S::lang('bez-znajomosci-jezyka'); ?>
endif; ?>
if ($advert['for_couples']) : ?>
= \S::lang('dla-par'); ?>
endif; ?>
if ($advert['outside_ue']) : ?>
endif; ?>
if ($advert['without_driving_license']) : ?>
endif; ?>
endforeach;?>
else:?>
= $lang['brak-ogloszen-o-prace'];?>
endif;?>
if ( \S::get( 'cp' ) == 1 )
{
$query_string = preg_replace( '/\/oferty-pracy/', '', $_SERVER['REQUEST_URI'] );
$query_string = preg_replace( '/\//', '', $query_string );
$query_string = preg_replace( '/\?/', '', $query_string );
}
else
{
$query_string = preg_replace( '/oferty-pracy/', '', $_SERVER['REQUEST_URI'] );
$query_string = preg_replace( '/\/([0-9]*)/', '', $query_string );
$query_string = preg_replace( '/\?/', '', $query_string );
$query_string = preg_replace( '/\//', '', $query_string );
}
if ( strpos( $query_string, $this -> values['category_name'] ) !== false )
$query_string = str_replace( $this -> values['category_name'], '', $query_string );
if ( strpos( $query_string, $this -> values['country_name'] ) !== false )
$query_string = str_replace( $this -> values['country_name'], '', $query_string );
if ( $this -> values['f_for_couples'] )
$query_string = str_replace( 'dla-par', '', $query_string );
if ( $this -> values['f_without_experience'] )
$query_string = str_replace( 'bez-doswiadczenia', '', $query_string );
if ( $this -> values['f_without_language'] )
$query_string = str_replace( 'bez-jezyka', '', $query_string );
if ( $this -> values['f_salary'] )
$query_string = str_replace( 'z-podanym-wynagrodzeniem', '', $query_string );
$document_uri = explode( '?', $_SERVER['REQUEST_URI'], 2 );
$document_uri = $document_uri[0];
$url = substr( $document_uri, 1, strlen( $document_uri ) );
$url_tmp = explode( '/', $url );
if ( (int)$url_tmp[ count( $url_tmp ) - 1 ] ) {
$url = '';
for ( $i = 0; $i < count( $url_tmp ) - 1; $i++ ) {
$url .= $url_tmp[$i];
if ( $i != count( $url_tmp ) - 2 )
$url .= '/';
}
}
if ( ( $this -> values['adverts_count'] / \front\factory\GlobelusAdverts::advert_list_limit ) > 1 ):
echo \front\view\Globelus::pager(
$url,
ceil( $this -> values['adverts_count'] / \front\factory\GlobelusAdverts::advert_list_limit ),
\S::get( 'cp' ),
$query_string
);
endif;
?>
[DODATKOWA_TRESC]