Fix some cosmetics bug

This commit is contained in:
sparkyx 2005-08-27 20:42:49 +00:00
parent b89a1f92f1
commit 0d64ade43d
6 changed files with 22 additions and 7 deletions

View file

@ -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() {

View file

@ -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

View file

@ -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");

View file

@ -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");

View file

@ -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");

View file

@ -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");