Ajout d'un helper pour les intervals
This commit is contained in:
parent
1196b6e978
commit
8601d47c49
22
application/views/default/helpers/Interval.php
Normal file
22
application/views/default/helpers/Interval.php
Normal 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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user