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