Correction sur le nom de la clef du tableau de structure de Field dans le helper
This commit is contained in:
parent
47daf380d2
commit
74f98623f2
@ -32,10 +32,9 @@ Class Zend_View_Helper_Field extends Zend_View_Helper_Abstract
|
|||||||
private function structureHTML($label, $html)
|
private function structureHTML($label, $html)
|
||||||
{
|
{
|
||||||
$return ='<div class="fieldgrp">
|
$return ='<div class="fieldgrp">
|
||||||
<label>'.$label.'</label>
|
<label>'.$label.'</label>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
'.$html.'
|
'.$html.'
|
||||||
<span><a href="">Switch type</a></span>
|
|
||||||
</div>
|
</div>
|
||||||
</div>';
|
</div>';
|
||||||
|
|
||||||
@ -49,7 +48,7 @@ Class Zend_View_Helper_Field extends Zend_View_Helper_Abstract
|
|||||||
$return = '<select class="criteres" name="'.$name.'">';
|
$return = '<select class="criteres" name="'.$name.'">';
|
||||||
$return .= '<option value="tous">Tous</option>';
|
$return .= '<option value="tous">Tous</option>';
|
||||||
foreach($field['fields'][$field['type']]['value'] as $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 .= '</select>';
|
||||||
return ($return);
|
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 = '<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 .= '<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);
|
return ($return);
|
||||||
}
|
}
|
||||||
@ -91,7 +90,7 @@ Class Zend_View_Helper_Field extends Zend_View_Helper_Abstract
|
|||||||
/* Textes */
|
/* Textes */
|
||||||
private function textHTML($name, $field)
|
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);
|
return ($return);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user