From 19909b99b5ae7959ecfe0dd67adf86164c689009 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Fri, 6 Jan 2012 16:31:55 +0000 Subject: [PATCH] cosmetic : length text + select in display card --- include/class_fiche.php | 5 +++-- include/class_iselect.php | 7 ++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/include/class_fiche.php b/include/class_fiche.php index c5fe8c927..ee5c63ad3 100644 --- a/include/class_fiche.php +++ b/include/class_fiche.php @@ -558,7 +558,7 @@ class Fiche /* show card type here */ $type_card=$this->cn->get_value('select fd_label from fiche_def join fiche using (fd_id) where f_id=$1',array($this->id)); $ret=h2("Type de fiche : ".h($type_card)." (id ".$this->id.")",""); - $ret.=""; + $ret.="
"; if ( empty ($attr) ) { return 'FNT'; @@ -630,7 +630,7 @@ class Fiche { case 'text': $w=new IText('av_text'.$r->ad_id); - $w->size=$r->ad_size; + $w->css_size="100%"; $w->value=$r->av_text; break; case 'numeric': @@ -679,6 +679,7 @@ class Fiche $w=new ISelect(); $w->value=$this->cn->make_array($r->ad_extra); $w->selected=$r->av_text; + $w->style=' style="width:100%" '; break; default: var_dump($r); diff --git a/include/class_iselect.php b/include/class_iselect.php index fb631cbed..d81f9b6cf 100644 --- a/include/class_iselect.php +++ b/include/class_iselect.php @@ -32,16 +32,13 @@ class ISelect extends HtmlInput $this->name=($p_name==null)?$this->name:$p_name; $this->value=($p_value==null)?$this->value:$p_value; if ( $this->readOnly==true) return $this->display(); - + $style=(isset($this->style))?$this->style:""; $disabled=($this->disabled==true)?"disabled":""; - //echo "Selected ".$this->selected; - //$r=(isset($this->label))?$this->label:''; $r=""; - // if ( $this->table == 1 ) $r=td($r); - $a="name\" NAME=\"$this->name\" $this->style $this->javascript $disabled>"; if (empty($this->value)) return ''; for ( $i=0;$ivalue);$i++)