本文整理匯總了PHP中Div::setOverflow方法的典型用法代碼示例。如果您正苦於以下問題:PHP Div::setOverflow方法的具體用法?PHP Div::setOverflow怎麽用?PHP Div::setOverflow使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Div
的用法示例。
在下文中一共展示了Div::setOverflow方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: show
/**
* Zeigt das gesamte Panel an
*/
function show()
{
$this->CONTENT->setWidth($this->WIDTH - 8 * $this->PANELTITELRIGHTWIDTH);
//---------------------------------------------------
// Inhalt
//---------------------------------------------------
$cont = new Div();
$cont->setBorder(1);
$cont->setWidth($this->WIDTH - 2 * $this->PANELTITELRIGHTWIDTH);
if ($this->HEIGHT > 0) {
$cont->setHeight($this->HEIGHT - $this->PANELTITELHEIGHT);
}
$cont->setOverflow("auto");
$cont->setStyle("background-color", $this->BGCOLOR);
$cont->setStyle("border-style", "solid");
$cont->setStyle("border-top", "1px");
$cont->setStyle("border-left", "1px");
$cont->setStyle("border-right", "2px");
$cont->setStyle("border-bottom", "2px");
$cont->setStyle("border-color", $_SESSION['config']->COLORS['text']);
$cont->add($this->CONTENT);
//---------------------------------------------------
$tb = new Table(array(""));
$rH = $tb->createRow();
$rH->setAlign("center");
$rH->setBackgroundColor($_SESSION['config']->COLORS['text']);
$rH->setFontType($_SESSION['config']->COLORS['text']);
$rH->setAttribute(0, $this->NAME);
$tb->addRow($rH);
$rC = $tb->createRow();
$rC->setAlign("center");
$rC->setAttribute(0, $cont);
$tb->addRow($rC);
return $tb;
}
示例2: Table
$topSpaceTable->show();
$layoutTable = new Table(array(""));
$layoutTable->setWidth(820);
$layoutTable->setHeight(400);
$layoutTable->setAlign("left");
$layoutTable->setBORDER(0);
$layoutTable->setBackgroundColor($_SESSION['config']->COLORS['panel_background']);
$layoutTable->setSpacing(0);
$layoutTable->setPadding(0);
/* ------------------------------------
HAUPT-MENU
------------------------------------ */
$menuDiv = new Div();
$menuDiv->setWidth(810);
$menuDiv->setBorder(0);
$menuDiv->setOverflow("hidden");
$menuDiv->setAlign("center");
$menuDiv->setStyle("padding-left", "2px");
$spc = new Text(" | ");
$menu = new DbMenu("Hauptmenue");
$menu->setAlign("center");
$menu->setFontsize(3);
$menu->setMenuType("horizontal");
$menuDiv->add($menu);
$contentLayoutRow1 = $layoutTable->createRow();
$contentLayoutRow1->setAttribute(0, $menuDiv);
$layoutTable->addRow($contentLayoutRow1);
/* --------------------------------- */
/* ------------------------------------
HAUPTPANEL
------------------------------------ */
示例3: getMobileSwitch
function getMobileSwitch()
{
$tbl = new Table(array("", "", "", "", ""));
$tbl->setAlignments(array("center", "left", "left", "left", "right"));
$tbl->setColSizes(array(60, "", 100, 160, 150));
$tbl->setBorder(0);
$rowTtl = $tbl->createRow();
$rowTtl->setVAlign("middle");
$txtAn = new Text("AN", 7, true);
$txtAus = new Text("AUS", 7, true);
switch ($this->ART) {
case 1:
// Steckdosen
// Steckdosen
case 3:
// Glühbirne
$txtAn = new Text("AN", 7, true);
$txtAus = new Text("AUS", 7, true);
break;
case 2:
// Jalousien
$txtAn = new Text("AUF", 7, true);
$txtAus = new Text("ZU", 7, true);
break;
case 4:
// Heizung
$txtAn = new Text("WARM", 7, true);
$txtAus = new Text("KALT", 7, true);
break;
default:
$txtAn = new Text("AN", 7, true);
$txtAus = new Text("AUS", 7, true);
}
$divAn = new Div();
$divAn->add($txtAn);
$divAn->setWidth(150);
$divAn->setHeight(50);
$divAn->setAlign("center");
$divAn->setVAlign("middle");
$divAn->setStyle("line-height", "50px");
$divAn->setBorder(1);
$divAn->setBackgroundColor("green");
$divAn->setOverflow("hidden");
$divAus = new Div();
$divAus->setWidth(150);
$divAus->setHeight(50);
$divAus->setAlign("center");
$divAus->setVAlign("middle");
$divAus->setStyle("line-height", "50px");
$divAus->add($txtAus);
$divAus->setBorder(1);
$divAus->setBackgroundColor("red");
$divAus->setOverflow("hidden");
$txtName = new Text($this->OBJNAME, 6, true);
$img = $this->getControlArtIcon(false);
$lnkAn = new Link("?switchShortcut=" . $this->FUNK_ID . "-on", $divAn, false, "arduinoSwitch");
$lnkAus = new Link("?switchShortcut=" . $this->FUNK_ID . "-off", $divAus, false, "arduinoSwitch");
$fDimmLvl = "";
if ($this->isDimmable()) {
$fDimmLvl = new Form();
$cobDimmLvl = new Combobox("dimmer", getNumberComboArray(1, 16), "", " ");
$cobDimmLvl->setDirectSelect(true);
$cobDimmLvl->setStyle("font-size", "40px");
$fDimmLvl->add($cobDimmLvl);
$fDimmLvl->add(new Hiddenfield("schalte", $this->FUNK_ID));
}
$rowTtl->setAttribute(0, $img);
$rowTtl->setAttribute(1, $txtName);
$rowTtl->setAttribute(2, $fDimmLvl);
$rowTtl->setAttribute(3, $lnkAn);
$rowTtl->setAttribute(4, $lnkAus);
$tbl->addRow($rowTtl);
return $tbl;
}