Ajout des div pour le CSS
Modification des dates en intervales
This commit is contained in:
parent
887933a0b4
commit
aabe4c6306
@ -42,13 +42,13 @@ Class Zend_View_Helper_Field extends Zend_View_Helper_Abstract
|
||||
|
||||
private function structureHTML($label, $html, $lien = null)
|
||||
{
|
||||
$return ='<div class="fieldgrp">
|
||||
<label>'.$label.'</label>
|
||||
<div class="field">
|
||||
'.$html.'
|
||||
</div>
|
||||
<span>'.$lien.'</span>
|
||||
</div>';
|
||||
$return='<div class="fieldgrp">
|
||||
<label>'.$label.'</label>
|
||||
<div class="field">
|
||||
'.$html.'
|
||||
</div>
|
||||
<span></span>
|
||||
</div>';
|
||||
|
||||
return ($return);
|
||||
}
|
||||
@ -90,10 +90,13 @@ Class Zend_View_Helper_Field extends Zend_View_Helper_Abstract
|
||||
private function intervalHTML($name, $field)
|
||||
{
|
||||
$session = new SessionCiblage();
|
||||
$valeur = $session->getCritere($name);
|
||||
|
||||
$return = '<div class="mySlider" style="text-align:right;height:17px;">';
|
||||
$return .= '<input style="display:none;" value="'.$session->getCritere($name).'" name="'.$name.'" class="range slider_Text" type="text" id="'.$name.'" min="0" max="1000" />';
|
||||
$return .= '<div input="'.$name.'" class="slider-range"></div>';
|
||||
$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 .= ' <a href="" class="interval" id="'.$name.'">Valider</a>';
|
||||
$return .= '</div>';
|
||||
|
||||
return ($return);
|
||||
}
|
||||
@ -103,8 +106,10 @@ Class Zend_View_Helper_Field extends Zend_View_Helper_Abstract
|
||||
{
|
||||
$session = new SessionCiblage();
|
||||
|
||||
$return = '<input value="'.$session->getCritere($name).'" type="text" class="datepicker" name="'.$name.'1" /> a ';
|
||||
$return .= '<input type="text" class="datepicker" name="'.$name.'2" />';
|
||||
$return = '<div class="date" >';
|
||||
$return .= '<input value="'.$session->getCritere($name).'" type="text" class="datepicker" name="'.$name.'1" /> a ';
|
||||
$return .= '<input type="text" class="datepicker" name="'.$name.'2" />';
|
||||
$return .= '</div>';
|
||||
|
||||
return ($return);
|
||||
}
|
||||
@ -123,9 +128,10 @@ Class Zend_View_Helper_Field extends Zend_View_Helper_Abstract
|
||||
private function textareaHTML($name, $field)
|
||||
{
|
||||
$session = new SessionCiblage();
|
||||
|
||||
$return = '<textarea name="'.$name.'">'.$session->getCritere($name).'</textarea>';
|
||||
|
||||
$valeur = $session->getCritere($name);
|
||||
$return = '<div class="textarea" >';
|
||||
$return .= '<textarea name="'.$name.'">'.(($valeur != null)?implode(',', $valeur):null).'</textarea>';
|
||||
$return .= '</div>';
|
||||
return ($return);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user