Ajout des class / champs
This commit is contained in:
parent
7e53de8c28
commit
8a27029e42
@ -77,7 +77,7 @@ Class Zend_View_Helper_Field extends Zend_View_Helper_Abstract
|
||||
$sessionValeur = $session->getCritere($name);
|
||||
if(is_array($sessionValeur))
|
||||
$sessionValeur = implode(',', $sessionValeur);
|
||||
$return = '<select class="criteres" name="'.$name.'">';
|
||||
$return = '<select class="criteres '.$field['type']['class'].'" name="'.$name.'">';
|
||||
$return .= '<option value="tous">Tous</option>';
|
||||
foreach($field['fields'][$field['type']]['value'] as $value => $label) {
|
||||
$selected = "";
|
||||
@ -96,8 +96,8 @@ Class Zend_View_Helper_Field extends Zend_View_Helper_Abstract
|
||||
$valeur = $session->getCritere($name);
|
||||
|
||||
$return = '<div class="interval" >';
|
||||
$return .= '<input type="text" name="'.$name.'1" value="'.$valeur[0].'" /> à ';
|
||||
$return .= '<input type="text" name="'.$name.'2" value="'.$valeur[1].'" />';
|
||||
$return .= '<input class="'.$field['class'].'" type="text" name="'.$name.'1" value="'.$valeur[0].'" /> à ';
|
||||
$return .= '<input class="'.$field['class'].'" type="text" name="'.$name.'2" value="'.$valeur[1].'" />';
|
||||
$return .= ' <a href="" class="interval" id="'.$name.'">Valider</a>';
|
||||
$return .= '</div>';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user