Exemplo n.º 1
0
?>
</div>
<?php 
if ($type != null) {
    ?>
<h2><?php 
    echo $filter_tips;
    ?>
</h2>
<div class="fake_clear"> &nbsp;</div>
<?php 
    echo form_tag("/documents/cdaredirect", array('id' => 'filterform', 'target' => '_blank'));
    // FIXME redirect
    echo input_hidden_tag('module', $type, array('id' => 'module'));
    include_partial('areas/areas_selector', array('ranges' => $ranges, 'use_personalization' => false, 'height' => '300px', 'show_picto' => false));
    echo around_selector('arnd', true) . '<br />';
    echo '<br />' . __('cda_activities') . ' ' . activities_selector(false, true, $activities_raw, $special_activities, array(), $multiple_activities, false, 'app_cda_activities');
    echo filter_field('cda_difficulty', select_tag('difficulty', options_for_select(array_map('__', sfConfig::get('app_cda_difficulty')))));
    $elevation_options = array_map('__', sfConfig::get('app_cda_elevation'));
    $elevation_ranges = sfConfig::get('app_cda_elevation_range');
    $meters = __('meters');
    $replace = $meters . ' - ';
    foreach ($elevation_options as $key => $value) {
        if (array_key_exists($key, $elevation_ranges)) {
            $elevation_options[$key] = $value . ' (' . str_replace('~', $replace, $elevation_ranges[$key]) . $meters . ')';
        }
    }
    echo filter_field('cda_elevation', select_tag('elevation', options_for_select($elevation_options)));
    ?>
<br />
<?php 
Exemplo n.º 2
0
<?php

use_helper('FilterForm', 'Form', 'General', 'MyForm');
echo around_selector('farnd');
$ranges_raw = $sf_data->getRaw('ranges');
$selected_areas_raw = $sf_data->getRaw('selected_areas');
include_partial('areas/areas_selector', array('ranges' => $ranges_raw, 'selected_areas' => $selected_areas_raw, 'use_personalization' => true));
include_partial('products_filter', array('autofocus' => true));
echo '<br />' . georef_selector();
?>
<br />
<?php 
// FIXME : dont show tpty select due to Doctrine bug - see ticket #687
include_partial('parkings/parkings_filter', array('show_tpty' => false));
?>
<br />
<?php 
echo __('filter language') . __('&nbsp;:') . ' ' . lang_selector('fcult');
?>
<br />
<?php 
include_partial('documents/filter_sort');
Exemplo n.º 3
0
<?php

use_helper('FilterForm');
if (!isset($coords)) {
    $coords = array();
} else {
    $coords_raw = $sf_data->getRaw('coords');
    $coords = $coords_raw;
}
echo around_selector('sarnd', $coords);
$ranges_raw = $sf_data->getRaw('ranges');
$selected_areas_raw = $sf_data->getRaw('selected_areas');
include_partial('areas/areas_selector', array('ranges' => $ranges_raw, 'selected_areas' => $selected_areas_raw, 'use_personalization' => true));
?>
<br />
<br />
<?php 
include_partial('summits_filter', array('autofocus' => true));
echo georef_selector();
?>
<br /><br />
<?php 
$activities_raw = $sf_data->getRaw('activities');
$paragliding_tag = sfConfig::get('app_tags_paragliding');
$paragliding_tag = implode('/', $paragliding_tag);
echo __('linked routes activities') . ' ' . activities_selector(false, false, $activities_raw, array(8 => $paragliding_tag));
echo __('filter language') . __('&nbsp;:') . ' ' . lang_selector('scult');
?>
<br />
<?php 
include_partial('documents/filter_sort');