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


PHP Div::setYPos方法代码示例

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


在下文中一共展示了Div::setYPos方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: postHandleControlEdit

 function postHandleControlEdit($dbTable)
 {
     // Neuen Eintrag anlegen
     if (isset($_REQUEST['InsertNewControl']) && $_REQUEST['InsertNewControl'] == "do" && isset($_REQUEST['X']) && isset($_REQUEST['Y'])) {
         if (!(isset($_REQUEST['Name']) && isset($_REQUEST['FunkId']) && isset($_REQUEST['Art']))) {
             $mask = $this->getInsertMask($_REQUEST['X'], $_REQUEST['Y'] - $_SESSION['additionalLayoutHeight']);
             $mask->show();
             $dv = new Div();
             $dv->setVAlign("middle");
             $dv->setAlign("center");
             $dv->setBorder(3);
             $dv->setStyle("border-color", "#ff2200");
             $dv->setStyle("background-color", "#aacc00");
             $dv->setXPos($_REQUEST['X']);
             $dv->setYPos($_REQUEST['Y']);
             $dv->setWidth($this->CONTROL_IMAGE_WIDTH);
             $dv->setHeight($this->CONTROL_IMAGE_HEIGHT);
             $dv->add(new Text("Neu", 3, true, false, false, false));
             $dv->show();
         }
     }
     // Neuen Sensor anlegen
     if (isset($_REQUEST['InsertNewSensorControl']) && $_REQUEST['InsertNewSensorControl'] == "do") {
         if (!(isset($_REQUEST['name']) && isset($_REQUEST['id']) && isset($_REQUEST['sensor_art']))) {
             $mask = $this->getInsertSensorMask($_REQUEST['X'], $_REQUEST['Y'] - $_SESSION['additionalLayoutHeight']);
             $mask->show();
             $dv = new Div();
             $dv->setVAlign("middle");
             $dv->setAlign("center");
             $dv->setBorder(3);
             $dv->setStyle("border-color", "#ff2200");
             $dv->setStyle("background-color", "#aacc00");
             $dv->setXPos($_REQUEST['X']);
             $dv->setYPos($_REQUEST['Y']);
             $dv->setWidth($this->SENSOR_IMAGE_WIDTH);
             $dv->setHeight($this->SENSOR_IMAGE_HEIGHT);
             $dv->add(new Text("Neu", 2, true, false, false, false));
             $dv->show();
         }
     }
     // Existierenden Eintrag bearbeiten
     if (isset($_REQUEST['editControl']) && strlen($_REQUEST['editControl']) > 0) {
         if (!(isset($_REQUEST['RowId']) && isset($_REQUEST['Name']) && isset($_REQUEST['FunkId']) && isset($_REQUEST['Art']))) {
             $mask = $this->getEditMask($_REQUEST['editControl']);
             $mask->show();
         }
     }
     // Existierenden Eintrag bearbeiten
     if (isset($_REQUEST['editSensorControl']) && strlen($_REQUEST['editSensorControl']) > 0) {
         if (!(isset($_REQUEST['RowId']) && isset($_REQUEST['name']) && isset($_REQUEST['sensor_art']) && isset($_REQUEST['sensor_art']))) {
             $mask = $this->getEditSensorMask($_REQUEST['editSensorControl']);
             $mask->show();
         }
     }
 }
开发者ID:CyborgOne,项目名称:cybihomecontrol_ui,代码行数:55,代码来源:HomeControlMap.php

示例2: showHorizontalMenu

 /**
  * show-Methode für TYPE = horizontal
  */
 function showHorizontalMenu()
 {
     $div = new Div();
     $div->setHeight($this->getHeight());
     $div->setWidth($this->getWidth());
     if (strlen($this->getAlign()) > 0) {
         $div->setAlign($this->getAlign());
     }
     $div->setXPos($this->XPOS);
     $div->setYPos($this->YPOS);
     $div->setBorder($this->BORDER);
     $userStatus = $this->CONFIG->CURRENTUSER->STATUS;
     $menuArray = $this->MENUTABLE->getMenuByStatus($userStatus);
     $spacer = $this->SPACER;
     $spacer->setFonttype($this->getFonttype());
     $rowCtr = mysql_num_rows($menuArray);
     $entryCount = mysql_num_rows($menuArray);
     $ctr = 0;
     //prüfvariable zum Rows mitzählen
     while ($row = mysql_fetch_array($menuArray)) {
         if ($row['id'] > 0) {
             // Spacer ( | oder übergebener Spacer )
             $lnk = $row['link'];
             if (strlen($row['parent']) > 0 && !strpos($lnk, "menuParent")) {
                 $lnk .= "&menuParent=" . $row['parent'];
             }
             if ($ctr != 0 && $ctr != $entryCount) {
                 $lSpacer = new Link($lnk, $spacer, false, $row['target']);
                 //$lSpacer->setToolTip($row['tooltip']);
                 $div->add($lSpacer);
             }
             // Link
             $txt = new Text($row['text']);
             $txt->setFonttype($this->getFonttype());
             if (ltrim($txt->getText()) == $_SESSION['MENU_PARENT'] || ltrim($txt->getText()) == $this->getLabelByRunlink($_SESSION['runLink'], $_SESSION['MENU_PARENT'])) {
                 $txt->setText("<font color='" . $_SESSION['config']->COLORS['hover'] . "' >" . $txt->getText() . "</font>");
                 $txt->setFilter(false);
             }
             $l = new Link($lnk, $txt, false, $row['target']);
             $l->setStyleclass("menulink");
             //$l->setToolTip($row['tooltip']);
             $div->add($l);
         }
         $ctr++;
         //prüfvariable zum Rows mitzählen
     }
     $div->show();
 }
开发者ID:CyborgOne,项目名称:cybihomecontrol_ui,代码行数:51,代码来源:DbMenu.php


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