Correction sur le nom de la clef du tableau de structure de Field dans le helper

This commit is contained in:
Damien LASSERRE 2012-01-11 16:29:59 +00:00
parent 47daf380d2
commit 74f98623f2

View File

@ -32,10 +32,9 @@ Class Zend_View_Helper_Field extends Zend_View_Helper_Abstract
private function structureHTML($label, $html)
{
$return ='<div class="fieldgrp">
<label>'.$label.'</label>
<label>'.$label.'</label>
<div class="field">
'.$html.'
<span><a href="">Switch type</a></span>
</div>
</div>';
@ -49,7 +48,7 @@ Class Zend_View_Helper_Field extends Zend_View_Helper_Abstract
$return = '<select class="criteres" name="'.$name.'">';
$return .= '<option value="tous">Tous</option>';
foreach($field['fields'][$field['type']]['value'] as $option) {
$return .= '<option '.(($field['fields']['selected'] == $option)?'selected':'').' value="'.$i++.'">'.$option.'</option>';
$return .= '<option '.(($field['fields']['userValue'] == $option)?'selected':'').' value="'.$i++.'">'.$option.'</option>';
}
$return .= '</select>';
return ($return);
@ -74,7 +73,7 @@ Class Zend_View_Helper_Field extends Zend_View_Helper_Abstract
{
$return = '<div class="mySlider" style="text-align:right;height:17px;">';
$return .= '<input style="display:none;" value="'.$field['fields'][$field['type']]['value'][0].','.$field['fields'][$field['type']]['value'][1].'" name="'.$name.'" class="range slider_Text" type="text" id="'.$name.'" min="0" max="1000" />';
$return .= '<div input="'.$name.'" class="slider-range"></div></div>';
$return .= '<div input="'.$name.'" class="slider-range"></div>';
return ($return);
}
@ -91,7 +90,7 @@ Class Zend_View_Helper_Field extends Zend_View_Helper_Abstract
/* Textes */
private function textHTML($name, $field)
{
$return = '<input style="border:1px inset silver;width:60%" class="criteres" type="text" name="'.$name.'" value="'.$field['fields'][$field['type']]['value'].'" /></div>';
$return = '<input style="border:1px inset silver;width:60%" class="criteres" type="text" name="'.$name.'" value="'.$field['fields'][$field['type']]['value'].'" />';
return ($return);
}