当前位置: 首页>>代码示例>>PHP>>正文


PHP DialogBox::getCurrentDialogBoxLevel方法代码示例

本文整理汇总了PHP中DialogBox::getCurrentDialogBoxLevel方法的典型用法代码示例。如果您正苦于以下问题:PHP DialogBox::getCurrentDialogBoxLevel方法的具体用法?PHP DialogBox::getCurrentDialogBoxLevel怎么用?PHP DialogBox::getCurrentDialogBoxLevel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DialogBox的用法示例。


在下文中一共展示了DialogBox::getCurrentDialogBoxLevel方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:19,代码来源:update-confirm.php

示例2: render

 /**
  * Method render
  * @access public
  * @param boolean $ajax_render [default value: false]
  * @return string html code of object DraggableEvent
  * @since 1.0.35
  */
 public function render($ajax_render = false)
 {
     if (DialogBox::getCurrentDialogBoxLevel() > -1) {
         $this->ondragstart = "wspDialogBox" . DialogBox::getCurrentDialogBoxLevel() . ".dialog('widget').css('overflow', 'visible'); wspDialogBox" . DialogBox::getCurrentDialogBoxLevel() . ".dialog('widget').find('.ui-dialog-content').css('overflow', 'visible');" . $this->ondragstart;
         $this->ondragend = "wspDialogBox" . DialogBox::getCurrentDialogBoxLevel() . ".dialog('widget').css('overflow', 'hidden'); wspDialogBox" . DialogBox::getCurrentDialogBoxLevel() . ".dialog('widget').find('.ui-dialog-content').css('overflow', 'hidden');" . $this->ondragend;
     } else {
         if (isset($_GET['tabs_object_id'])) {
             $this->ondragstart = "\$('#" . $_GET['tabs_object_id'] . "').tabs().css('overflow', 'visible');\$('#" . $_GET['tabs_object_id'] . "').tabs().find('.ui-widget-content').css('overflow', 'visible');" . $this->ondragstart;
             $this->ondragend = "\$('#" . $_GET['tabs_object_id'] . "').tabs().css('overflow', 'hidden');\$('#" . $_GET['tabs_object_id'] . "').tabs().find('.ui-widget-content').css('overflow', 'hidden');" . $this->ondragend;
         } else {
             $this->ondragstart = "\$('.BoxOverFlowHidden').css('overflow', 'auto');" . $this->ondragstart;
             $this->ondragend = "\$('.BoxOverFlowHidden').css('overflow', 'hidden');" . $this->ondragend;
         }
     }
     if ($this->ondragstart != "") {
         $this->page_object->addObject(new JavaScript("\$('#" . $this->draggable_id . "').bind('dragstart', function(event, ui) { " . $this->ondragstart . " });"));
     }
     if ($this->ondragend != "") {
         $this->page_object->addObject(new JavaScript("\$('#" . $this->draggable_id . "').bind('dragstop', function(event, ui) { " . $this->ondragend . " });"));
     }
     $this->object_change = false;
     return "";
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:30,代码来源:DraggableEvent.class.php

示例3: createObjectName

 /**
  * Method createObjectName
  * Create an automatic and unique name for an event object
  * @access public
  * @param WebSitePhpObject $object event object (ex: TextBox, Editor, Button, ...)
  * @return string
  * @since 1.0.18
  */
 public function createObjectName($object)
 {
     $class_name = get_class($object);
     $form_object = null;
     if ($class_name != "Form") {
         if (method_exists($object, "getFormObject")) {
             $form_object = $object->getFormObject();
             if ($form_object != null) {
                 $class_name .= "_" . $form_object->getName();
             }
         }
     }
     $nb_elem_object = sizeof($this->getEventObjects($class_name));
     if (isset($_GET['tabs_object_id'])) {
         $nb_elem_object = $_GET['tabs_object_id'] . "_" . $nb_elem_object;
     }
     if (DialogBox::getCurrentDialogBoxLevel() != -1) {
         $nb_elem_object = DialogBox::getCurrentDialogBoxLevel() * 1000 + $nb_elem_object;
     }
     $this->addEventObject($object, $form_object);
     return $class_name . "_" . $nb_elem_object;
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:30,代码来源:Page.class.php

示例4: attachContextMenuToObjectId

 /**
  * Method attachContextMenuToObjectId
  * @access public
  * @param mixed $object_id 
  * @return ContextMenu
  * @since 1.0.35
  */
 public function attachContextMenuToObjectId($object_id)
 {
     $this->attach_object_id[] = $object_id;
     if (DialogBox::getCurrentDialogBoxLevel() > 0) {
         $this->isInDialogBoxLevel(DialogBox::getCurrentDialogBoxLevel());
     }
     if ($GLOBALS['__PAGE_IS_INIT__']) {
         $this->object_change = true;
     }
     return $this;
 }
开发者ID:kxopa,项目名称:WebSite-PHP,代码行数:18,代码来源:ContextMenu.class.php


注:本文中的DialogBox::getCurrentDialogBoxLevel方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。