140 |
return $tag; |
return $tag; |
141 |
} |
} |
142 |
} |
} |
143 |
|
|
144 |
|
|
145 |
|
/** |
146 |
|
* This builds a button that will do a JS popup |
147 |
|
* question, asking for yes/no. if yes, it submits |
148 |
|
* the form. |
149 |
|
* |
150 |
|
* @author Walter A. Boring IV <waboring@buildabetterweb.com> |
151 |
|
* @author Suren Markossian <suren@bcsweb.com> |
152 |
|
* @package phpHtmlLib |
153 |
|
* @subpackage FormProcessing |
154 |
|
* |
155 |
|
* @copyright LGPL - See LICENCE |
156 |
|
*/ |
157 |
|
class FEConfirmActionButton extends FEButton { |
158 |
|
|
159 |
|
function FEConfirmActionButton($label, $value, $message = NULL, $width = NULL, $height = NULL) { |
160 |
|
$action = "if (confirm('".$message."')) {this.form.".FORM_ACTION.".value='".$value."'; submit();}"; |
161 |
|
$this->FEButton($label, $value, $action, $width, $height); |
162 |
|
} |
163 |
|
} |
164 |
?> |
?> |