nouvelle entrée pour le helper selectInterval
This commit is contained in:
parent
a8e6bbdd4c
commit
a0f6203538
@ -19,6 +19,11 @@ Class Zend_View_Helper_Field extends Zend_View_Helper_Abstract
|
|||||||
$field['label'],
|
$field['label'],
|
||||||
$this->selectMultipleHTML($name, $field));
|
$this->selectMultipleHTML($name, $field));
|
||||||
break;
|
break;
|
||||||
|
case 'intervalSelect':
|
||||||
|
$html.= $this->structureHTML(
|
||||||
|
$field['label'],
|
||||||
|
$this->intervalSelectHTML($name, $field));
|
||||||
|
break;
|
||||||
case 'interval':
|
case 'interval':
|
||||||
$html.= $this->structureHTML(
|
$html.= $this->structureHTML(
|
||||||
$field['label'],
|
$field['label'],
|
||||||
@ -84,6 +89,26 @@ Class Zend_View_Helper_Field extends Zend_View_Helper_Abstract
|
|||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private function intervalSelectHTML($name, $field)
|
||||||
|
{
|
||||||
|
$session = new SessionCiblage();
|
||||||
|
|
||||||
|
$return = '<select class="intervalSelect" name="'.$name.'1">';
|
||||||
|
foreach($field['fields'][$field['type']]['value'] as $elements) {
|
||||||
|
$return .= '<option value="'. $elements[0].'">'.number_format($elements[0], 0,'', ' ').'</option>';
|
||||||
|
}
|
||||||
|
|
||||||
|
$return .= '</select> à ';
|
||||||
|
$return .= '<select class="intervalSelect" name="'.$name.'2">';
|
||||||
|
foreach($field['fields'][$field['type']]['value'] as $elements) {
|
||||||
|
$return .= '<option value="'. $elements[1].'">'.number_format($elements[1], 0,'', ' ').'</option>';
|
||||||
|
}
|
||||||
|
|
||||||
|
$return .= '</select>';
|
||||||
|
$return .= ' <a href="" class="intervalSelect" id="'.$name.'">Valider</a>';
|
||||||
|
return ($return);
|
||||||
|
}
|
||||||
|
|
||||||
/* Select */
|
/* Select */
|
||||||
private function selectMultipleHTML($name, $field)
|
private function selectMultipleHTML($name, $field)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user