本文整理汇总了PHP中Button::onClickJs方法的典型用法代码示例。如果您正苦于以下问题:PHP Button::onClickJs方法的具体用法?PHP Button::onClickJs怎么用?PHP Button::onClickJs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Button
的用法示例。
在下文中一共展示了Button::onClickJs方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Load
public function Load()
{
$this->setTimeout(0);
if ($this->getExtractLastWspVersion()) {
$congratulation_pic = new Picture("img/wsp-admin/button_ok_64.png", 64, 64);
$this->render = new Object($congratulation_pic, "<br/>", __(UPDATE_FRAMEWORK_COMPLETE_OK, "WebSite-PHP"));
} else {
$error_pic = new Picture("img/wsp-admin/button_not_ok_64.png", 64, 64);
$this->render = new Object($error_pic, "<br/>", __(UPDATE_FRAMEWORK_COMPLETE_NOT_OK, "WebSite-PHP"));
}
$button_ok = new Button($this);
$button_ok->setValue("OK");
$button_ok->onClickJs(DialogBox::closeAll() . "location.href=location.href;");
$this->render->add("<br/><br/>", $button_ok);
$this->render->setAlign(Object::ALIGN_CENTER);
}
示例2: Load
public function Load()
{
unset($_SESSION['user_browscap_version']);
if ($this->updateBrowscapFile()) {
$congratulation_pic = new Picture("img/wsp-admin/button_ok_64.png", 64, 64);
$this->render = new Object($congratulation_pic, "<br/>", __(UPDATE_FRAMEWORK_COMPLETE_OK, "Browscap.ini"));
} else {
$error_pic = new Picture("img/wsp-admin/button_not_ok_64.png", 64, 64);
$this->render = new Object($error_pic, "<br/>", __(UPDATE_FRAMEWORK_COMPLETE_NOT_OK, "Browscap.ini"));
}
$button_ok = new Button($this);
$button_ok->setValue("OK");
$button_ok->onClickJs(DialogBox::closeAll() . "location.href=location.href;");
$this->render->add("<br/><br/>", $button_ok);
$this->render->setAlign(Object::ALIGN_CENTER);
// refresh the page
$this->addObject(new JavaScript("setTimeout('location.href=location.href;', 1000);"));
}
示例3: 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);
}