protected function GetControlHtml()
{
if (!$this->blnEnabled) {
$strDisabled = 'disabled="disabled" ';
} else {
$strDisabled = "";
}
if ($this->intTabIndex) {
$strTabIndex = sprintf('tabindex="%s" ', $this->intTabIndex);
} else {
$strTabIndex = "";
}
if ($this->strToolTip) {
$strToolTip = sprintf('title="%s" ', $this->strToolTip);
} else {
$strToolTip = "";
}
if ($this->strCssClass) {
$strCssClass = sprintf('class="%s" ', $this->strCssClass);
} else {
$strCssClass = "";
}
if ($this->strAccessKey) {
$strAccessKey = sprintf('accesskey="%s" ', $this->strAccessKey);
} else {
$strAccessKey = "";
}
if ($this->blnChecked) {
$strChecked = 'checked="checked"';
} else {
$strChecked = "";
}
if ($this->strGroupName) {
$strGroupName = $this->strGroupName;
} else {
$strGroupName = $this->strControlId;
}
$strStyle = $this->GetStyleAttributes();
if (strlen($strStyle) > 0) {
$strStyle = sprintf('style="%s" ', $strStyle);
}
$strCustomAttributes = $this->GetCustomAttributes();
$strActions = $this->GetActionAttributes();
if (strlen($this->strText)) {
$this->blnIsBlockElement = true;
if ($this->strTextAlign == QTextAlign::Left) {
$strToReturn = sprintf('<span %s%s%s%s%s><label for="%s">%s</label><input type="radio" id="%s" name="%s" value="%s" %s%s%s%s%s /></span>', $strCssClass, $strToolTip, $strStyle, $strCustomAttributes, $strDisabled, $this->strControlId, $this->blnHtmlEntities ? QApplication::HtmlEntities($this->strText) : $this->strText, $this->strControlId, $strGroupName, $this->strControlId, $strDisabled, $strChecked, $strActions, $strAccessKey, $strTabIndex);
} else {
$strToReturn = sprintf('<span %s%s%s%s%s><input type="radio" id="%s" name="%s" value="%s" %s%s%s%s%s /><label for="%s">%s</label></span>', $strCssClass, $strToolTip, $strStyle, $strCustomAttributes, $strDisabled, $this->strControlId, $strGroupName, $this->strControlId, $strDisabled, $strChecked, $strActions, $strAccessKey, $strTabIndex, $this->strControlId, $this->blnHtmlEntities ? QApplication::HtmlEntities($this->strText) : $this->strText);
}
} else {
$this->blnIsBlockElement = false;
$strToReturn = sprintf('<input type="radio" id="%s" name="%s" value="%s" %s%s%s%s%s%s%s%s%s />', $this->strControlId, $strGroupName, $this->strControlId, $strCssClass, $strDisabled, $strChecked, $strActions, $strAccessKey, $strToolTip, $strTabIndex, $strCustomAttributes, $strStyle);
}
return $strToReturn;
}