From c6bc3da90ea8b69db6dfbc16f89f847cc90b3df4 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Fri, 9 Jul 2010 20:34:38 +0000 Subject: [PATCH] FS#110 add a new of the details for a card : textarea (zone) --- include/card_attr.inc.php | 4 +++- include/class_fiche_attr.php | 2 +- include/class_itext.php | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/include/card_attr.inc.php b/include/card_attr.inc.php index c9c19b091..3542987aa 100644 --- a/include/card_attr.inc.php +++ b/include/card_attr.inc.php @@ -62,7 +62,8 @@ $desc->size=50; $select_type->value=array( array('value'=>'text','label'=>'Texte'), array('value'=>'numeric','label'=>'Nombre'), - array('value'=>'date','label'=>'Date') + array('value'=>'date','label'=>'Date'), + array('value'=>'zone','label'=>'Zone de texte') ); $remove=new IButton('rmfa'); $remove->label='Effacer'; @@ -83,6 +84,7 @@ for ($e=0;$eget_parameter('id')>= 9000) { $select_type->readOnly=false; $desc->readOnly=false; + $desc->style=' class="input_text" '; $r.=td($desc->input()); $r.=td($select_type->input()); diff --git a/include/class_fiche_attr.php b/include/class_fiche_attr.php index 5e432457f..4bfea94c7 100644 --- a/include/class_fiche_attr.php +++ b/include/class_fiche_attr.php @@ -52,7 +52,7 @@ class Fiche_Attr if ( strlen(trim($this->ad_type))==0) throw new Exception('Le type ne peut pas ĂȘtre vide',1); $this->ad_type=strtolower($this->ad_type); - if ( in_array($this->ad_type,array('date','text','numeric'))==false) + if ( in_array($this->ad_type,array('date','text','numeric','zone'))==false) throw new Exception('Le type doit ĂȘtre text, numeric ou date',1); } public function save() { diff --git a/include/class_itext.php b/include/class_itext.php index 0273845a2..c1350182f 100644 --- a/include/class_itext.php +++ b/include/class_itext.php @@ -59,9 +59,9 @@ require_once('class_html_input.php'); $extra=(isset($this->extra))?$this->extra:""; - $readonly=" readonly ";$this->style='style="border:solid 1px blue;color:black;background:#EDEDED"'; + $readonly=" readonly ";$style='style="border:solid 1px blue;color:black;background:#EDEDED"'; $this->value=str_replace('"','',$this->value); - $r='style.' TYPE="TEXT" id="'. + $r='javascript." $readonly $this->extra >";