diff --git a/include/class_widget.php b/include/class_widget.php index f5fe10aa0..5ee39e056 100644 --- a/include/class_widget.php +++ b/include/class_widget.php @@ -253,7 +253,8 @@ class widget { // input type == js_search => button search for card if ( strtolower($this->type)=="js_search") { $l_sessid=$_REQUEST['PHPSESSID']; - $r=sprintf(' + if ( $this->readonly == false ) { + $r=sprintf(' %s @@ -272,8 +273,20 @@ class widget { $this->name, $this->value ); + } else { + // readonly == true + $r=sprintf(' %s + + + ', + $this->label, + $this->name, + $this->value + ); + + } return $r; - } + }// poste==js_search } //end function function debug() { diff --git a/include/form_input.php b/include/form_input.php index 7eb0e4eb2..7acac1608 100644 --- a/include/form_input.php +++ b/include/form_input.php @@ -846,6 +846,7 @@ function FormAch($p_cn,$p_jrn,$p_user,$p_submit,$p_array=null,$pview_only=true,$ $W1->extra='cred'; $W1->extra2=$p_jrn; $W1->readonly=$pview_only; + $r.="".$W1->IOValue(); $r.= InputType("" ,"span" ,"e_client_label",$e_client_label,false).''; $r.=""; @@ -928,7 +929,8 @@ function FormAch($p_cn,$p_jrn,$p_user,$p_submit,$p_array=null,$pview_only=true,$ $W1->value=$march; $W1->extra='deb'; // credits $W1->extra2=$p_jrn; - $r.="".$W1->IOValue().""; + $W1->readonly=$pview_only; + $r.=" ".$W1->IOValue().""; $r.=InputType("","span", "e_march".$i."_label", $march_label,$pview_only); // price diff --git a/include/user_action_ach.php b/include/user_action_ach.php index d2e2f29cd..65fd12967 100644 --- a/include/user_action_ach.php +++ b/include/user_action_ach.php @@ -138,7 +138,7 @@ if ( $action == 'voir_jrn' ) {
"; +echo "
"; $w=new widget("select"); diff --git a/include/user_action_fin.php b/include/user_action_fin.php index 6e2e56b06..f9e589cbc 100644 --- a/include/user_action_fin.php +++ b/include/user_action_fin.php @@ -147,7 +147,7 @@ if ( $action == 'voir_jrn' ) {
"; +echo ""; $w=new widget("select"); diff --git a/include/user_action_ods.php b/include/user_action_ods.php index 152a7ec6b..b2db90805 100644 --- a/include/user_action_ods.php +++ b/include/user_action_ods.php @@ -146,7 +146,7 @@ if ( $action == 'voir_jrn' ) {
"; +echo ""; $w=new widget("select"); diff --git a/include/user_action_ven.php b/include/user_action_ven.php index b383059c7..8ef5b1676 100644 --- a/include/user_action_ven.php +++ b/include/user_action_ven.php @@ -128,7 +128,7 @@ if ( isset($_POST["record_and_print_invoice"])) { ?>
"; +echo ""; $w=new widget("select");