|
@@ -72,7 +72,6 @@ class DesignerForm
|
|
|
|
|
|
public function Render($oP, $bReturnHTML = false)
|
|
public function Render($oP, $bReturnHTML = false)
|
|
{
|
|
{
|
|
- $sReturn = '';
|
|
|
|
if ($this->oParentForm == null)
|
|
if ($this->oParentForm == null)
|
|
{
|
|
{
|
|
$sFormId = $this->sFormId;
|
|
$sFormId = $this->sFormId;
|
|
@@ -80,6 +79,7 @@ class DesignerForm
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
|
|
+ $sReturn = '';
|
|
$sFormId = $this->oParentForm->sFormId;
|
|
$sFormId = $this->oParentForm->sFormId;
|
|
}
|
|
}
|
|
$sHiddenFields = '';
|
|
$sHiddenFields = '';
|
|
@@ -250,12 +250,17 @@ EOF
|
|
$oP->add($sReturn);
|
|
$oP->add($sReturn);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- public function RenderAsDialog($oPage, $sDialogId, $sDialogTitle, $iDialogWidth, $sOkButtonLabel)
|
|
|
|
|
|
+ public function RenderAsDialog($oPage, $sDialogId, $sDialogTitle, $iDialogWidth, $sOkButtonLabel, $sIntroduction = null)
|
|
{
|
|
{
|
|
$sDialogTitle = addslashes($sDialogTitle);
|
|
$sDialogTitle = addslashes($sDialogTitle);
|
|
$sOkButtonLabel = addslashes($sOkButtonLabel);
|
|
$sOkButtonLabel = addslashes($sOkButtonLabel);
|
|
$sCancelButtonLabel = Dict::S('UI:Button:Cancel');
|
|
$sCancelButtonLabel = Dict::S('UI:Button:Cancel');
|
|
|
|
+
|
|
$oPage->add("<div id=\"$sDialogId\">");
|
|
$oPage->add("<div id=\"$sDialogId\">");
|
|
|
|
+ if ($sIntroduction != null)
|
|
|
|
+ {
|
|
|
|
+ $oPage->add('<div class="ui-dialog-header">'.$sIntroduction.'</div>');
|
|
|
|
+ }
|
|
$this->Render($oPage);
|
|
$this->Render($oPage);
|
|
$oPage->add('</div>');
|
|
$oPage->add('</div>');
|
|
|
|
|