FS#110 add a new of the details for a card : textarea (zone)
This commit is contained in:
parent
5b33019bfd
commit
c6bc3da90e
3 changed files with 6 additions and 4 deletions
|
|
@ -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;$e<count($array);$e++) {
|
|||
if ( $row->get_parameter('id')>= 9000) {
|
||||
$select_type->readOnly=false;
|
||||
$desc->readOnly=false;
|
||||
$desc->style=' class="input_text" ';
|
||||
$r.=td($desc->input());
|
||||
$r.=td($select_type->input());
|
||||
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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='<INPUT '.$this->style.' TYPE="TEXT" id="'.
|
||||
$r='<INPUT '.$style.' TYPE="TEXT" id="'.
|
||||
$this->name.'"'.$t.
|
||||
'NAME="'.$this->name.'" VALUE="'.$this->value.'" '.
|
||||
'SIZE="'.$this->size.'" '.$this->javascript." $readonly $this->extra >";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue