73 |
if (strtoupper($this->type)=="TEXT") { |
if (strtoupper($this->type)=="TEXT") { |
74 |
if ( $this->readonly==false) { |
if ( $this->readonly==false) { |
75 |
$r="<INPUT TYPE=\"TEXT\" NAME=\"$p_name\" VALUE=\"$this->value\" SIZE=\"$this->size\" ".$disabled.">";} else { |
$r="<INPUT TYPE=\"TEXT\" NAME=\"$p_name\" VALUE=\"$this->value\" SIZE=\"$this->size\" ".$disabled.">";} else { |
76 |
$r=$this->value; |
$r=sprintf('<span>%s</span><input type="hidden" name="%s" value="%s"></TD>', $this->value,$this->name,$this->value); |
77 |
} |
} |
78 |
|
|
79 |
if ($this->table==1) { |
if ($this->table==1) { |
80 |
if ( $this->label != "") { |
if ( $this->label != "") { |
81 |
$r="<TD>".$this->label."</TD><TD>".$r."</TD>"; |
$r="<TD>".$this->label."</TD><TD>".$r."</TD>"; |
294 |
return $r; |
return $r; |
295 |
}// end type = span |
}// end type = span |
296 |
|
|
297 |
// // input type == js_tva |
// input type == js_tva |
298 |
// if ( strtolower($this->type)=="js_tva") { |
if ( strtolower($this->type)=="js_tva") { |
299 |
// $id=sprintf("<span id=%s></span>",$this->label); |
$id=sprintf("<span id=%s></span>",$this->label); |
300 |
// $r=sprintf('%s<TD> <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="3" onChange="ChangeTVA(\'%s\',\'%s\');">', |
$r=sprintf('%s<TD> <INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="3" onChange="ChangeTVA(\'%s\',\'%s\');">', |
301 |
// $id, |
$id, |
302 |
// $this->name, |
$this->name, |
303 |
// $this->value, |
$this->value, |
304 |
// $this->label, |
$this->label, |
305 |
// $this->name); |
$this->name); |
306 |
// $l_sessid=$_REQUEST['PHPSESSID']; |
$l_sessid=$_REQUEST['PHPSESSID']; |
307 |
// $r.=sprintf("<input type=\"button\" value=\"Tva\" |
$r.=sprintf("<input type=\"button\" value=\"Tva\" |
308 |
// onClick=\" |
onClick=\" |
309 |
// ShowTva('%s','%s');\"></TD>", |
ShowTva('%s','%s');\"></TD>", |
310 |
// $l_sessid,$this->name); |
$l_sessid,$this->name); |
311 |
// return $r; |
return $r; |
312 |
// } |
} |
313 |
|
|
314 |
|
// input type == js_concerned => button search for the concerned operations |
315 |
|
if ( strtolower($this->type)=="js_concerned") { |
316 |
|
if ( $this->readonly == false) { |
317 |
|
$l_sessid=$_REQUEST['PHPSESSID']; |
318 |
|
$r=sprintf('<TD> |
319 |
|
<INPUT TYPE="button" onClick=SearchJrn(\'%s\',\'%s\') value="Search"> |
320 |
|
%s</TD><TD> |
321 |
|
|
322 |
|
<INPUT TYPE="Text" NAME="%s" VALUE="%s" SIZE="8"> |
323 |
|
</TD>', |
324 |
|
$l_sessid, |
325 |
|
$this->name, |
326 |
|
$this->label, |
327 |
|
$this->name, |
328 |
|
$this->value |
329 |
|
); |
330 |
|
} else { |
331 |
|
$r=sprintf("<TD><span>%s</span>",$this->value); |
332 |
|
$r.=sprintf('<input type="hidden" name="%s" value="%s"></TD>', $this->name,$this->value); |
333 |
|
} |
334 |
|
|
335 |
|
return $r; |
336 |
|
}// end js_concerned |
337 |
|
return "INVALID WIDGET "; |
338 |
} //end function |
} //end function |
339 |
|
/* Debug |
340 |
|
*/ |
341 |
function debug() { |
function debug() { |
342 |
echo "Type ".$this->type."<br>"; |
echo "Type ".$this->type."<br>"; |
343 |
echo "name ".$this->name."<br>"; |
echo "name ".$this->name."<br>"; |