optimisation du helper

This commit is contained in:
Damien LASSERRE 2012-03-08 15:05:34 +00:00
parent e5929d53c4
commit 3c89575003

View File

@ -63,6 +63,11 @@ Class Zend_View_Helper_Field extends Zend_View_Helper_Abstract
$field['label'],
$this->radioHTML($name, $field));
break;
case 'file':
$html.= $this->structureHTML(
$field['label'],
$this->fileuploadHtml($name, $field));
break;
}
$html.= '</div>';
}
@ -212,6 +217,7 @@ Class Zend_View_Helper_Field extends Zend_View_Helper_Abstract
$type = 'Cj';
break;
}
/* Modifier les données */
$return = '<textarea rows="5" style="border:1px inset silver;width:60%" class="criteres complited'.$type.'" id="textarea_'.$name.'" name="'.$name.'">'.$session->getCritere($name).'</textarea>';
$return .= '<a href="" class="autocomplet" textarea="'.$name.'">Valider</a>';
return ($return);
@ -226,6 +232,12 @@ Class Zend_View_Helper_Field extends Zend_View_Helper_Abstract
return ($return);
}
private function fileuploadHtml($name, $field)
{
$return = '<input class="upload" type="file" name="fichier" id="'.$name.'" /> ';
return ($return);
}
/* Radios */
private function radioHTML($name, $field, $item)
{