cosmetic : length text + select in display card
This commit is contained in:
parent
d11c558c8c
commit
19909b99b5
2 changed files with 5 additions and 7 deletions
|
|
@ -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.="<table>";
|
||||
$ret.="<table style=\"width:98%;padding:1%\">";
|
||||
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);
|
||||
|
|
|
|||
|
|
@ -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 "<b>Selected <b>".$this->selected;
|
||||
//$r=(isset($this->label))?$this->label:'';
|
||||
$r="";
|
||||
// if ( $this->table == 1 ) $r=td($r);
|
||||
|
||||
$a="<SELECT id=\"$this->name\" NAME=\"$this->name\" $this->javascript $disabled>";
|
||||
$a="<SELECT id=\"$this->name\" NAME=\"$this->name\" $this->style $this->javascript $disabled>";
|
||||
|
||||
if (empty($this->value)) return '';
|
||||
for ( $i=0;$i<sizeof($this->value);$i++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue