*/ class LSformElement_select_object extends LSformElement { /** * Retourn les infos d'affichage de l'élément * * Cette méthode retourne les informations d'affichage de l'élement * * @retval array */ function getDisplay($refresh=NULL){ $GLOBALS['LSsession'] -> addCssFile('LSformElement_select_object.css'); if ($refresh) { $this -> values = $this -> attr_html -> getValuesFromSession(); } $return = $this -> getLabelInfos(); // value $params=array(); if (!$this -> isFreeze()) { $params['addBtn']=array( 'href' => "select.php?LSobject=".$this -> selectableObject, 'id' => "a_LSformElement_select_object_".$this -> name, 'label' => _('Modifier') ); $params['inputHidden'] = array( 'id' => "LSformElement_select_object_objecttype_".$this -> name, 'name' => 'LSformElement_select_object_objecttype_'.$this -> name, 'value' => $this -> selectableObject ); $params['deleteBtns'] = array( 'alt' => _('Supprimer') ); } $ul_id="LSformElement_select_object_".$this -> name; $params['freeze'] = $this -> isFreeze(); $GLOBALS['LSsession'] -> addJSconfigParam($ul_id,$params); $return['html']="