Fix some cosmetics bug
This commit is contained in:
parent
b89a1f92f1
commit
0d64ade43d
6 changed files with 22 additions and 7 deletions
|
|
@ -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('<TD>
|
||||
if ( $this->readonly == false ) {
|
||||
$r=sprintf('<TD>
|
||||
<INPUT TYPE="button" onClick=NewCard(\'%s\',\'%s\',\'%s\',\'%s\') value="New">
|
||||
<INPUT TYPE="button" onClick=SearchCard(\'%s\',\'%s\',\'%s\',\'%s\') value="Search">
|
||||
%s</TD><TD>
|
||||
|
|
@ -272,8 +273,20 @@ class widget {
|
|||
$this->name,
|
||||
$this->value
|
||||
);
|
||||
} else {
|
||||
// readonly == true
|
||||
$r=sprintf('<TD> %s</TD>
|
||||
<TD>
|
||||
<INPUT TYPE="hidden" NAME="%s" VALUE="%s" SIZE="8">
|
||||
</TD>',
|
||||
$this->label,
|
||||
$this->name,
|
||||
$this->value
|
||||
);
|
||||
|
||||
}
|
||||
return $r;
|
||||
}
|
||||
}// poste==js_search
|
||||
|
||||
} //end function
|
||||
function debug() {
|
||||
|
|
|
|||
|
|
@ -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.="<TR>".$W1->IOValue();
|
||||
$r.= InputType("" ,"span" ,"e_client_label",$e_client_label,false).'</TR>';
|
||||
$r.="</TABLE>";
|
||||
|
|
@ -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.="<TR>".$W1->IOValue()."</TD>";
|
||||
$W1->readonly=$pview_only;
|
||||
$r.="<TR> ".$W1->IOValue()."</TD>";
|
||||
|
||||
$r.=InputType("","span", "e_march".$i."_label", $march_label,$pview_only);
|
||||
// price
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ if ( $action == 'voir_jrn' ) {
|
|||
<div class="u_redcontent">
|
||||
|
||||
<?
|
||||
echo "<form method= \"get\" action=\"user_jrn.php?action=voir_jrn&p_jrn=$p_jrn\">";
|
||||
echo "<form method= \"post\" action=\"user_jrn.php?action=voir_jrn&p_jrn=$p_jrn\">";
|
||||
|
||||
$w=new widget("select");
|
||||
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@ if ( $action == 'voir_jrn' ) {
|
|||
<div class="u_redcontent">
|
||||
|
||||
<?
|
||||
echo "<form method= \"get\" action=\"user_jrn.php?action=voir_jrn&p_jrn=$p_jrn\">";
|
||||
echo "<form method= \"POST\" action=\"user_jrn.php?action=voir_jrn&p_jrn=$p_jrn\">";
|
||||
|
||||
$w=new widget("select");
|
||||
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ if ( $action == 'voir_jrn' ) {
|
|||
<div class="u_redcontent">
|
||||
|
||||
<?
|
||||
echo "<form method= \"get\" action=\"user_jrn.php?action=voir_jrn&p_jrn=$p_jrn\">";
|
||||
echo "<form method= \"POST\" action=\"user_jrn.php?action=voir_jrn&p_jrn=$p_jrn\">";
|
||||
|
||||
$w=new widget("select");
|
||||
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ if ( isset($_POST["record_and_print_invoice"])) {
|
|||
?>
|
||||
<div class="u_redcontent">
|
||||
<?
|
||||
echo "<form method=\"get\" action=\"user_jrn.php?action=voir_jrn&p_jrn=$p_jrn\">";
|
||||
echo "<form method=\"POST\" action=\"user_jrn.php?action=voir_jrn&p_jrn=$p_jrn\">";
|
||||
|
||||
$w=new widget("select");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue