當前位置: 首頁>>代碼示例>>PHP>>正文


PHP DialogBox::closeAll方法代碼示例

本文整理匯總了PHP中DialogBox::closeAll方法的典型用法代碼示例。如果您正苦於以下問題:PHP DialogBox::closeAll方法的具體用法?PHP DialogBox::closeAll怎麽用?PHP DialogBox::closeAll使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在DialogBox的用法示例。


在下文中一共展示了DialogBox::closeAll方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: onChangePasswd

 public function onChangePasswd()
 {
     if ($this->edt_new_passwd->getValue() != "" && $this->edt_new_passwd->getValue() != "admin" && $this->edt_new_passwd->getValue() == $this->edt_confirm_passwd->getValue()) {
         if (changeWspUser("admin", $this->edt_old_passwd->getValue(), $this->edt_new_passwd->getValue(), "administrator")) {
             $this->addObject(DialogBox::closeAll());
             $result_dialogbox = new DialogBox(__(CHANGE_PASSWD), __(CHANGE_PASSWD_CONGRATULATION));
         } else {
             $result_dialogbox = new DialogBox(__(CHANGE_PASSWD), __(CHANGE_PASSWD_ERROR));
         }
     } else {
         $result_dialogbox = new DialogBox(__(CHANGE_PASSWD), __(CHANGE_PASSWD_ERROR));
     }
     $result_dialogbox->activateCloseButton();
     $this->addObject($result_dialogbox);
 }
開發者ID:kxopa,項目名稱:WebSite-PHP,代碼行數:15,代碼來源:change-passwd.php

示例2: 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);
 }
開發者ID:kxopa,項目名稱:WebSite-PHP,代碼行數:16,代碼來源:update-wsp.php

示例3: 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);"));
 }
開發者ID:kxopa,項目名稱:WebSite-PHP,代碼行數:18,代碼來源:update-browscap.php

示例4: 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, "&nbsp;", $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);
 }
開發者ID:kxopa,項目名稱:WebSite-PHP,代碼行數:19,代碼來源:update-confirm.php

示例5: createLabel

 public function createLabel($sender, $file, $label_name, $label_value)
 {
     $this->addObject(DialogBox::closeAll());
     $label_name = strtoupper(str_replace("-", "_", url_rewrite_format($label_name)));
     $this->loadTranslation($sender, $file, "", $_GET['language']);
     $this->addDraggableTranslationEditor($label_name, $label_value);
     $this->save(null, $file);
 }
開發者ID:kxopa,項目名稱:WebSite-PHP,代碼行數:8,代碼來源:manage-translations.php


注:本文中的DialogBox::closeAll方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。