diff --git a/public_html/images/default/LSformElement_supannLabeledValue_label_SUPANN.png b/public_html/images/default/LSformElement_supannLabeledValue_label_SUPANN.png new file mode 120000 index 00000000..b171c1da --- /dev/null +++ b/public_html/images/default/LSformElement_supannLabeledValue_label_SUPANN.png @@ -0,0 +1 @@ +LSformElement_supannRoleEntite_label_SUPANN.png \ No newline at end of file diff --git a/public_html/images/default/LSformElement_supannLabeledValue_label_UAI.png b/public_html/images/default/LSformElement_supannLabeledValue_label_UAI.png new file mode 100644 index 00000000..355dfb4d Binary files /dev/null and b/public_html/images/default/LSformElement_supannLabeledValue_label_UAI.png differ diff --git a/public_html/includes/class/class.LSformElement_supannLabeledValue.php b/public_html/includes/class/class.LSformElement_supannLabeledValue.php new file mode 100644 index 00000000..0be04cec --- /dev/null +++ b/public_html/includes/class/class.LSformElement_supannLabeledValue.php @@ -0,0 +1,84 @@ + + */ + +class LSformElement_supannLabeledValue extends LSformElement { + + var $template = 'LSformElement_supannLabeledValue.tpl'; + var $fieldTemplate = 'LSformElement_supannLabeledValue_field.tpl'; + + /** + * Retourne les infos d'affichage de l'élément + * + * Cette méthode retourne les informations d'affichage de l'élement + * + * @retval array + */ + function getDisplay(){ + $return = $this -> getLabelInfos(); + + $parseValues=array(); + foreach($this -> values as $val) { + $parseValue=array( + 'value' => $val + ); + $tr=$this -> translate($val); + if ($tr) { + if($tr['translated']) + $parseValue['translated']=$tr['translated']; + if($tr['label']) + $parseValue['label']=$tr['label']; + } + $parseValues[]=$parseValue; + } + $return['html'] = $this -> fetchTemplate(NULL,array('parseValues' => $parseValues)); + return $return; + } + + /** + * Traduit une valeur + * + * @param[in] $value La valeur + * + * @retval array Un tableau cle->valeur contenant translated et label ou False + **/ + function translate($value) { + return array ( + 'translated' => 'NOT IMPLEMENTED', + 'label' => 'NOT IMPLEMENTED', + ); + } + +} + +?> diff --git a/public_html/templates/default/LSformElement_supannLabeledValue.tpl b/public_html/templates/default/LSformElement_supannLabeledValue.tpl new file mode 100644 index 00000000..076f6060 --- /dev/null +++ b/public_html/templates/default/LSformElement_supannLabeledValue.tpl @@ -0,0 +1,19 @@ +