';
$formconfirm .= '| '.$question.' | ';
$formconfirm .= '';
- $formconfirm .= $this->selectyesno("confirm", $newselectedchoice, 0, false, 0, 0, 'marginleftonly marginrightonly');
+ $formconfirm .= $this->selectyesno("confirm", $newselectedchoice, 0, false, 0, 0, 'marginleftonly marginrightonly', $labelbuttonyes, $labelbuttonno);
$formconfirm .= '';
$formconfirm .= ' | ';
$formconfirm .= '
'."\n";
@@ -8844,9 +8847,11 @@ class Form
* @param int $useempty 1=Add empty line
* @param int $addjscombo 1=Add js beautifier on combo box
* @param string $morecss More CSS
- * @return string See option
+ * @param string $labelyes Label for Yes
+ * @param string $labelno Label for No
+ * @return string See option
*/
- public function selectyesno($htmlname, $value = '', $option = 0, $disabled = false, $useempty = 0, $addjscombo = 0, $morecss = '')
+ public function selectyesno($htmlname, $value = '', $option = 0, $disabled = false, $useempty = 0, $addjscombo = 0, $morecss = '', $labelyes = 'Yes', $labelno = 'No')
{
global $langs;
@@ -8857,6 +8862,7 @@ class Form
$no = "0";
}
+
$disabled = ($disabled ? ' disabled' : '');
$resultyesno = '