Integration with 232

This commit is contained in:
sparkyx 2007-05-10 20:03:17 +00:00
parent 9a6ef60815
commit 82cf83be9d
54 changed files with 634 additions and 234 deletions

View file

@ -16,7 +16,9 @@
* along with PhpCompta; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/* $Revision$ */
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
/*! \file
@ -98,7 +100,6 @@ class widget {
$this->table=0;
$this->label="";
$this->disabled=false;
$this->tabindex=32767;
}
function SetReadOnly($p_read) {
$this->readonly=$p_read;
@ -123,7 +124,7 @@ class widget {
$disabled = $this->disabled ? "DISABLED" : "";
if (strtoupper($this->type)=="TEXT") {
if ( $this->readonly==false) {
$r="<INPUT style=\"border:solid 1px blue;\" TYPE=\"TEXT\" NAME=\"$this->name\" VALUE=\"$this->value\" TABINDEX=\"$this->tabindex\" SIZE=\"$this->size\" ".$disabled.">";} else {
$r="<INPUT style=\"border:solid 1px blue;\" TYPE=\"TEXT\" NAME=\"$this->name\" VALUE=\"$this->value\" SIZE=\"$this->size\" ".$disabled.">";} else {
$r=sprintf('<span>%s</span><input type="hidden" name="%s" value="%s">', $this->value,$this->name,$this->value);
}
@ -380,7 +381,9 @@ class widget {
<INPUT TYPE="button" onClick=NewCard(\'%s\',\'%s\',\'%s\',\'%s\') value="Nouveau">
</TD><TD>
<INPUT TYPE="button" onClick=SearchCard(\'%s\',\'%s\',\'%s\',\'%s\') value="Recherche">
%s <INPUT style="border:solid 1px blue;" TYPE="Text" NAME="%s" VALUE="%s" SIZE="8" TABINDEX="%s" onChange="alert(\'change\');">
%s <INPUT style="border:solid 1px blue;" TYPE="Text" NAME="%s" VALUE="%s" SIZE="8" >
',
$l_sessid,
$this->extra, // deb or cred
@ -392,8 +395,7 @@ class widget {
$this->extra2,
$this->label,
$this->name,
$this->value,
$this->tabindex
$this->value
);
} else {
// readonly == true
@ -422,7 +424,7 @@ class widget {
$r=sprintf('<TD>
<INPUT TYPE="button" onClick=SearchCard(\'%s\',\'%s\',\'%s\',\'%s\') value="QuickCode">
%s</TD><TD> <INPUT style="border:solid 1px blue;" TYPE="Text" style="border:solid 1px blue;" '.
' NAME="%s" VALUE="%s" SIZE="8" TABINDEX="%s">
' NAME="%s" VALUE="%s" SIZE="8" >
',
$l_sessid,
$this->extra,
@ -430,8 +432,7 @@ class widget {
$this->extra2,
$this->label,
$this->name,
$this->value,
$this->tabindex
$this->value
);
}
else
@ -439,15 +440,14 @@ class widget {
$r=sprintf('
<INPUT TYPE="button" onClick=SearchCard(\'%s\',\'%s\',\'%s\',\'%s\') value="QuickCode">
%s <INPUT TYPE="Text" style="border:solid 1px blue;" '.
' NAME="%s" VALUE="%s" SIZE="8" TABINDEX="%s"> ',
' NAME="%s" VALUE="%s" SIZE="8" > ',
$l_sessid,
$this->extra,
$this->name,
$this->extra2,
$this->label,
$this->name,
$this->value,
$this->tabindex
$this->value
);
}
} else {