本文整理匯總了PHP中DialogBox::displayFormURL方法的典型用法代碼示例。如果您正苦於以下問題:PHP DialogBox::displayFormURL方法的具體用法?PHP DialogBox::displayFormURL怎麽用?PHP DialogBox::displayFormURL使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類DialogBox
的用法示例。
在下文中一共展示了DialogBox::displayFormURL方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Load
public function Load()
{
$dialog_update = new DialogBox(__(UPDATE_FRAMEWORK), new Url($this->getBaseLanguageURL() . "wsp-admin/update/update-framework.call?update=" . $_GET['update'] . "&parent_dialog_level=" . DialogBox::getCurrentDialogBoxLevel()));
$dialog_update->displayFormURL()->modal();
$button_yes = new Button($this);
$button_yes->onClickJs($dialog_update->render())->setValue(__(UPDATE_FRAMEWORK_YES));
$button_no = new Button($this);
$button_no->onClickJs(DialogBox::closeAll())->setValue(__(UPDATE_FRAMEWORK_NO));
$table_yes_no = new Table();
$table_yes_no->addRowColumns($button_yes, " ", $button_no);
if ($_GET['update'] == "update-wsp") {
$warning_lbl = new Label(__(UPDATE_FRAMEWORK_WSP_WARNING));
$warning_lbl->setColor("red")->setItalic();
$this->render = new Object(__(UPDATE_FRAMEWORK_CONFIRM, $_GET['text']), "<br/><br/>", $warning_lbl, "<br/><br/>", $table_yes_no);
} else {
$this->render = new Object(__(UPDATE_FRAMEWORK_CONFIRM, $_GET['text']), "<br/><br/>", $table_yes_no);
}
$this->render->setAlign(Object::ALIGN_CENTER);
}
示例2: getAlertVersiobObject
function getAlertVersiobObject($page)
{
$alert_version_obj = null;
if (extension_loaded('soap')) {
$wsp_version = isNewWspVersion();
$browscap_version = isNewBrowscapVersion();
if ($wsp_version != false || $browscap_version != false) {
$alert_version_obj = new Object();
$alert_version_obj->setClass("warning");
if ($wsp_version != false) {
if (extension_loaded('zip')) {
$dialog_update_wsp = new DialogBox(__(UPDATE_FRAMEWORK), new Url("wsp-admin/update/update-confirm.call?update=update-wsp&text=WebSite-PHP"));
$dialog_update_wsp->displayFormURL();
$alert_version_obj->add(__(NEW_WSP_VERSION, $dialog_update_wsp->render(), $wsp_version), "<br/>");
} else {
$alert_version_obj->add(__(NEW_WSP_VERSION, "location.href='http://www.website-php.com/download/website-php-update.zip';", $wsp_version));
$alert_version_obj->add(" ", __(NEW_WSP_VERSION_INSTALL_PHP_ZIP), "<br/>");
}
}
if ($browscap_version != false) {
$dialog_update_browscap = new DialogBox(__(UPDATE_FRAMEWORK), new Url("wsp-admin/update/update-confirm.call?update=update-browscap&text=Browscap.ini"));
$dialog_update_browscap->displayFormURL()->modal();
$alert_version_obj->add(__(NEW_BROWSCAP_VERSION, $dialog_update_browscap->render(), $browscap_version));
}
}
} else {
$alert_version_obj = new Object();
$alert_version_obj->setClass("warning");
$soap_alert = new Label(__(INSTALL_PHP_SOAP));
$alert_version_obj->add($soap_alert);
}
return $alert_version_obj;
}