Ajout d'un helper pour les intervals

This commit is contained in:
Damien LASSERRE 2011-12-15 09:40:20 +00:00
parent 1196b6e978
commit 8601d47c49

View File

@ -0,0 +1,22 @@
<?php
require_once 'commons/dates.php';
Class Zend_View_Helper_Interval extends Zend_View_Helper_Abstract
{
public function Interval($name, $libelle, $date = false)
{
$champ = '<div>';
$champ .= '<div style="float:left;text-align:left;">
<label>'.$libelle.'</label>
</div>';
$champ .= '<div style="text-align:right;">
<input type="text" name="'.$name.'1" /> à <input type="text" name="'.$name.'2" /> <a class="interval" id="'.$name.'" href=""><img width="10%" src="/themes/default/images/valider.png" /></a>
</div>';
$champ .= '<div>
<hr />
</div>';
$champ .= '</div>';
return ($champ);
}
}