46 $this->
value=$p_value;
55 $this->hideOperation=
"";
57 $this->singleOperation=0;
62 public function input($p_name=
null, $p_value=
null)
64 $this->
name=($p_name==
null)?$this->
name:$p_name;
65 $this->
value=($p_value==
null)?$this->
value:$p_value;
69 $this->
id=($this->
id==
"")?$this->
name:$this->
id;
71 $this->
amount_id, $this->paid, $this->div, $this->tiers);
74 <INPUT TYPE=\"text\" style=\"color:black;background:lightyellow;border:solid 1px grey;\" NAME=\"%s\" ID=\"%s\" VALUE=\"%s\" SIZE=\"8\" hide_operation=\"%s\" readonly single_operation=\"%s\">
75 <INPUT class=\"smallbutton\" TYPE=\"button\" onClick=\"$('%s').value=''\" value=\"X\">
77 ", $this->
name, $this->
id, $this->
value, $this->hideOperation,$this->singleOperation,
89 $this->hideOperation=strip_tags($p_string);
97 if ( $p_value == TRUE ) {
98 $this->singleOperation=1;
101 if ( $p_value == FALSE ) {
102 $this->singleOperation=0;
105 throw new Exception (_(
"setSingleOperation failed"));
116 $r=sprintf(
"<span><b>%s</b></span>", $this->
value);
117 $r.=sprintf(
'<input type="hidden" name="%s" value="%s">', $this->
name, $this->
value);
catch(Exception $exc) if(! $g_user->can_write_action($ag_id)) $r
__construct($p_name='', $p_value='', $p_id="")
set_singleOperation($p_value)
Set the value of single operation, limit to one operation if TRUE.
set_hideOperation($p_string)
setter
input($p_name=null, $p_value=null)
$hideOperation
string of j_id to hide, separated by comma to avoid to reconcile an operation with itself
$singleOperation
do not allow to select several operations
static icon_magnifier($id, $p_javascript, $p_style="")
Display a icon with a magnify glass.