db=$p_cn; } /*!\brief show the html input of the widget*/ public function input($p_name=null,$p_value=null) { $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(); $select_tva=$this->db->make_array("select tva_id,tva_label from tva_rate order by tva_label asc",0); $this->value=$select_tva; $a=""; if ( $this->table == 1 ) $a=''.$a.''; return $a; } /*!\brief print in html the readonly value of the widget*/ public function display() { $select_tva=$this->db->make_array("select tva_id,tva_label from tva_rate order by tva_label asc",0); $this->value=$select_tva; $r=parent::display(); return $r; } static public function test_me() { } }