本文整理汇总了PHP中Table::addSpacer方法的典型用法代码示例。如果您正苦于以下问题:PHP Table::addSpacer方法的具体用法?PHP Table::addSpacer怎么用?PHP Table::addSpacer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Table
的用法示例。
在下文中一共展示了Table::addSpacer方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getTypeChooseDialog
private function getTypeChooseDialog()
{
$sensorWertOption = new Div("createSensorWert", 250, 40);
$sensorWertOption->setToolTip("Sensoren die einen Messwert liefern<br><br>z.b. <br>- Helligkeitssensor<br>- Temperatursensor<br>- Abstandssensor");
$sensorStatusOption = new Div("createSensorStatus", 250, 40);
$sensorStatusOption->setToolTip("Sensoren die nur 1 oder 0 als Wert liefern<br><br>z.b. <br>- Bewegungsmelder<br>- Regensensor<br>- Lichtschranke");
$zeitOption = new Div("createZeit", 250, 40);
$wochentagOption = new Div("createWochentag", 250, 40);
$sensorWertOption->setStyle("line-height", "40px");
$sensorStatusOption->setStyle("line-height", "40px");
$zeitOption->setStyle("line-height", "40px");
$wochentagOption->setStyle("line-height", "40px");
$sensorWertOption->setAlign("center");
$sensorWertOption->setVAlign("middle");
$sensorStatusOption->setAlign("center");
$sensorStatusOption->setVAlign("middle");
$zeitOption->setAlign("center");
$zeitOption->setVAlign("middle");
$wochentagOption->setAlign("center");
$wochentagOption->setVAlign("middle");
$sensorWertOption->add(new Text("Sensor Wert", 4, true));
$sensorStatusOption->add(new Text("Sensor Status", 4, true));
$zeitOption->add(new Text("Uhrzeit", 4, true));
$wochentagOption->add(new Text("Wochentag", 4, true));
$sensorWertOption->setBackgroundColor($_SESSION['config']->COLORS['button_background']);
$sensorStatusOption->setBackgroundColor($_SESSION['config']->COLORS['button_background']);
$zeitOption->setBackgroundColor($_SESSION['config']->COLORS['button_background']);
$wochentagOption->setBackgroundColor($_SESSION['config']->COLORS['button_background']);
$sensorWertLink = new Link("?createSensorWert=ok" . ($this->URL_PARAMS != "" ? "&" . $this->URL_PARAMS : "") . "#createSensorWert", $sensorWertOption, false, "", "", true, false);
$sensorStatusLink = new Link("?createSensorStatus=ok" . ($this->URL_PARAMS != "" ? "&" . $this->URL_PARAMS : "") . "#createSensorStatus", $sensorStatusOption, false, "", "", true, false);
$zeitLink = new Link("?createZeit=ok" . ($this->URL_PARAMS != "" ? "&" . $this->URL_PARAMS : "") . "#createZeit", $zeitOption, false, "", "", true, false);
$wochentagLink = new Link("?createWochentag=ok" . ($this->URL_PARAMS != "" ? "&" . $this->URL_PARAMS : "") . "#createWochentag", $wochentagOption, false, "", "", true, false);
$t = new Table(array("", "", ""));
$t->setColSizes(array(null, 5, null));
$t->setAlignments(array("center", "center", "center"));
$r = $t->createRow();
$r->setSpawnAll(true);
$r->setAttribute(0, new Title("Art der neuen Bedingung auswaehlen", true, 4));
$t->addRow($r);
$t->addSpacer(0, 5);
$r1 = $t->createRow();
$r1->setAttribute(0, $sensorStatusLink);
$r1->setAttribute(1, "");
$r1->setAttribute(2, $sensorWertLink);
$t->addRow($r1);
$t->addSpacer(0, 5);
$r2 = $t->createRow();
$r2->setAttribute(0, $zeitLink);
$r2->setAttribute(1, "");
$r2->setAttribute(2, $wochentagLink);
$t->addRow($r2);
return $t;
}
示例2: PublicVarText
function PublicVarText($dbConnect, $group, $name)
{
$this->BORDER = 0;
$a = getPublicVarArray($dbConnect, $group, $name);
$t = new Table(array(""));
$t->setBorder($this->BORDER);
foreach ($a as $title => $text) {
$r1 = $t->createRow();
$r1->setAttribute(0, new Title($title));
$r1->setHeader(true);
$t->addRow($r1);
$r2 = $t->createRow();
$r2->setAttribute(0, $text);
$t->addRow($r2);
$t->addSpacer();
}
$this->TBL = $t;
}
示例3: Hiddenfield
}
$dbTblBenutzer->doInsert();
$dbTblBenutzer->refresh();
} else {
if (isset($_REQUEST[$dbTblBenutzer->getNewEntryButtonName()])) {
$dbTblBenutzer->setBorder(0);
$insMsk = $dbTblBenutzer->getInsertMask();
$hdnFld = $insMsk->getAttribute(1);
if ($hdnFld instanceof Hiddenfield) {
$insMsk->setAttribute(1, new Hiddenfield($dbTblBenutzer->getNewEntryButtonName(), "-"));
}
$rNew = $tblMain->createRow();
$rNew->setAttribute(0, $insMsk);
$rNew->setSpawnAll(true);
$tblMain->addRow($rNew);
$tblMain->addSpacer(0, 10);
} else {
$newBenutzerBtn = $dbTblBenutzer->getNewEntryButton("Neuen Benutzer anlegen");
}
}
if (isset($_REQUEST["DbTableUpdate" . $dbTblBenutzer->TABLENAME])) {
if (isset($_REQUEST["Pw" . $_REQUEST["SingleUpdateRowId"]]) && strlen($_REQUEST["Pw" . $_REQUEST["SingleUpdateRowId"]]) > 0) {
$_REQUEST["Pw" . $_REQUEST["SingleUpdateRowId"]] = md5($_REQUEST["Pw" . $_REQUEST["SingleUpdateRowId"]]);
}
$dbTblBenutzer->doUpdate();
}
if ($dbTblBenutzer->isDeleteInUpdate()) {
$deleteMask = $dbTblBenutzer->doDeleteFromUpdatemask() ? null : $dbTblBenutzer->doDeleteFromUpdatemask();
if ($deleteMask != null) {
$lS = $tblMain->createRow();
$lS->setSpawnAll(true);
示例4: DbTable
$form->show();
// -------------------------------------------
// Schaltgruppen
// -------------------------------------------
$regelItemsDbTable = new DbTable($_SESSION['config']->DBCONNECT, 'homecontrol_regeln_items', array("config_id", "art_id", "zimmer_id", "etagen_id", "on_off", "regel_id", "id"), "Objekt, Objekt-Art, Zimmer, Etage, An/Aus", "regel_id=" . $_SESSION['SelectedRegelToEdit'], "config_id DESC, zimmer_id DESC, etagen_id DESC", "regel_id=" . $_SESSION['SelectedRegelToEdit']);
$regelItemsDbTable->setReadOnlyCols(array("id"));
$regelItemsDbTable->setNoInsertCols(array("id"));
$regelItemsDbTable->setNoUpdateCols(array("regel_id", "id"));
$regelItemsDbTable->setDeleteInUpdate(true);
$regelItemsDbTable->setHeaderEnabled(true);
$itemsTable = new Table(array("", ""));
//$itemsTable->setColSizes(array(150));
$itemsTable->setBorder(0);
$ttlItems = new Title("Zu schaltende Objekte");
$ttlItems->setAlign("left");
$itemsTable->addSpacer(0, 15);
$r1Title = $itemsTable->createRow();
$r1Title->setSpawnAll(true);
$r1Title->setAttribute(0, $ttlItems);
$itemsTable->addRow($r1Title);
// Neuer Eintrag
if (isset($_REQUEST['InsertIntoDB' . $regelItemsDbTable->TABLENAME]) && $_REQUEST['InsertIntoDB' . $regelItemsDbTable->TABLENAME] == "Speichern") {
$regelItemsDbTable->doInsert();
$regelItemsDbTable->refresh();
} else {
if (isset($_REQUEST[$regelItemsDbTable->getNewEntryButtonName()])) {
$regelItemsDbTable->setBorder(0);
$insMsk = $regelItemsDbTable->getInsertMask();
$hdnFld = $insMsk->getAttribute(1);
if ($hdnFld instanceof Hiddenfield) {
$insMsk->setAttribute(1, new Hiddenfield($regelItemsDbTable->getNewEntryButtonName(), "-"));
示例5: doDeleteFromUpdatemask
function doDeleteFromUpdatemask()
{
//generelle Delete bearbeitung
//Zugeschnitten auf dynamische UpdateMaske (showUpdateMask)
$ret = false;
for ($ir = 1; $ir <= count($this->ROWS); $ir++) {
$rowId = $this->ROWS[$ir]->getAttribute(count($this->COLNAMES));
$delName = "delete" . $rowId . $this->TABLENAME;
if (isset($_REQUEST[$delName])) {
if (isset($_REQUEST['RowDeleteCommited']) && $_REQUEST['RowDeleteCommited'] == "Wirklich entfernen") {
$rowId = $this->ROWS[$ir]->getAttribute(count($this->COLNAMES));
$chk = 0;
$sql = "";
$row = $this->ROWS[$ir];
// Wenn Zeile gelöscht werden soll
$statement = "DELETE FROM " . $this->TABLENAME . " WHERE id = " . $rowId . " ";
$result = $this->DBCONNECT->executeQuery($statement);
$e = new Message("entfernen", "Entfernen erfolgreich ");
$this->refresh();
$ret = true;
$this->postDelete($rowId);
} else {
$tbl = new Table($this->COLNAMES);
$dataRow = $this->getRowById($this->ROWS[$ir]->getNamedAttribute("id"));
$tbl->setStyle("background-color", "#ee9999");
$tbl->setStyle("padding", "5px");
$r1 = $tbl->createRow();
$r1->setSpawnAll(true);
$txt = new Text("Wollen Sie den folgenden Datensatz wirklich entfernen?");
$r1->setAttribute(0, $txt);
$tbl->addRow($r1);
$tbl->addSpacer(1, 8);
$r = $tbl->createRow();
$c = 0;
foreach ($this->COLNAMES as $colname) {
$r->setAttribute($c, new Title($colname));
$c++;
}
$tbl->addRow($r);
$r = $tbl->createRow();
$c = 0;
foreach ($this->COLNAMES as $colname) {
$r->setAttribute($c, new Text($this->ROWS[$ir]->getNamedAttribute($colname)));
$c++;
}
$tbl->addRow($r);
$tbl->addSpacer(1, 5);
$rbtn = $tbl->createRow();
$rbtn->setSpawnAll(true);
$btnOk = new Button("RowDeleteCommited", "Wirklich entfernen");
$btnCancle = new Button("Abbrechen", "Abbrechen", "location='" . $_SERVER['SCRIPT_NAME'] . "'");
$div = new Div();
$div->add($btnOk);
$div->add($btnCancle);
$rbtn->setAttribute(0, $div);
$tbl->addRow($rbtn);
$hiddenOk = new Hiddenfield($delName, $_REQUEST[$delName]);
//$frm = new Form($_SERVER['SCRIPT_NAME']);
$frm = new Div();
$frm->add($tbl);
$frm->add($hiddenOk);
$frm->add($this->DEFAULT_HIDDEN_FIELDS);
return $frm;
}
}
}
return $ret;
}
示例6: Table
$spc->show();
// --------------------------------------------------
// Zuordnungen
// --------------------------------------------------
if (isset($_REQUEST['SelectedCronToEdit'])) {
$_SESSION['SelectedCronToEdit'] = $_REQUEST['SelectedCronToEdit'];
}
$table = new Table(array("", ""));
$table->setWidth("100%");
$ttlZuord = new Title("Zuordnungen bearbeiten");
$ttlZuord->setAlign("left");
$rTitle = $table->createRow();
$rTitle->setAttribute(0, $ttlZuord);
$rTitle->setSpawnAll(true);
$table->addRow($rTitle);
$table->addSpacer(0, 10);
$cobSelect = new ComboBoxBySql($_SESSION['config']->DBCONNECT, "SELECT id, name FROM homecontrol_cron ORDER BY name", "SelectedCronToEdit", isset($_SESSION['SelectedCronToEdit']) ? $_SESSION['SelectedCronToEdit'] : "", "id", "name", " ");
$cobSelect->setDirectSelect(true);
$rAuswahl = $table->createRow();
$rAuswahl->setColSizes(array(120));
$rAuswahl->setAttribute(0, new Text("Job auswaehlen: "));
$rAuswahl->setAttribute(1, $cobSelect);
$table->addRow($rAuswahl);
$table->addSpacer(0, 20);
$form = new Form();
// Zuordnung ausgewählt
if (isset($_SESSION['SelectedCronToEdit']) && strlen($_SESSION['SelectedCronToEdit']) > 0) {
$scItemsDbTable = new DbTable($_SESSION['config']->DBCONNECT, 'homecontrol_cron_items', array("config_id", "art_id", "zimmer_id", "etagen_id", "on_off", "cron_id"), "Objekt, Objekt-Art, Zimmer, Etage, An/Aus, Job", "cron_id=" . $_SESSION['SelectedCronToEdit'], "config_id DESC, zimmer_id DESC, etagen_id DESC", "cron_id=" . $_SESSION['SelectedCronToEdit']);
$scItemsDbTable->setReadOnlyCols(array("id"));
$scItemsDbTable->setNoInsertCols(array("id"));
$scItemsDbTable->setNoUpdateCols(array("cron_id"));
示例7: Text
$rT->setAlignments(array("left", "left", "center"));
$rT->setAttribute(0, new Text("Zeitraum von: "));
$rT->setAttribute(1, $cobStartTime);
$rT->setAttribute(2, new Text("bis: "));
$rT->setAttribute(3, $cobEndTime);
$timeSelect->addRow($rT);
// -------------------------
// Show
// -------------------------
$tbl = new Table(array("", ""));
$tbl->setColSizes(array(130));
$rTtl = $tbl->createRow();
$rTtl->setSpawnAll(true);
$rTtl->setAttribute(0, $ttl);
$tbl->addRow($rTtl);
$tbl->addSpacer(0, 30);
$rSelect = $tbl->createRow();
$rSelect->setAttribute(0, $txtSelect);
$rSelect->setAttribute(1, $cboSensorSelect);
$tbl->addRow($rSelect);
$tbl->addSpacer(0, 10);
$rTimeSelect = $tbl->createRow();
$rTimeSelect->setSpawnAll(true);
$rTimeSelect->setAttribute(0, $timeSelect);
$tbl->addRow($rTimeSelect);
$tbl->addSpacer(0, 30);
if (isset($_REQUEST['sensorSelectCob']) && strlen($_REQUEST['sensorSelectCob']) > 0) {
$imgTxt = new Text("<img src='includes/pictures/sensorLogGraphs.inc.php?width=800&height=350&sensorId=" . $_REQUEST['sensorSelectCob'] . "&startTime=" . $_REQUEST['startTimeCob'] . "&endTime=" . $_REQUEST['endTimeCob'] . "'>");
$imgTxt->setFilter(false);
$rGraph = $tbl->createRow();
$rGraph->setSpawnAll(true);
示例8: DbMenu
$menuDiv->setBackgroundColor($_SESSION['config']->COLORS['panel_background']);
$menu = new DbMenu("Kopfmenue");
$menu->setAlign("center");
$menu->setFontsize("4em");
$menu->setMenuType("horizontal");
$menu->setSpacer(new Text("|"));
$menuDiv->add($menu);
$tblMenu = new Table(array("", ""));
$tblMenu->setAlignments(array("left", "right"));
$tblMenu->setWidth($bannerWidth + 20);
$tblMenu->setColSizes(array($bannerWidth - 70));
$rMenu = $tblMenu->createRow();
$rMenu->setAttribute(0, $menuDiv);
$rMenu->setAttribute(1, $fMode);
$tblMenu->addRow($rMenu);
$layoutTable->addSpacer(0, 15);
$contentLayoutRow1 = $layoutTable->createRow();
$contentLayoutRow1->setAttribute(0, $tblMenu);
$layoutTable->addRow($contentLayoutRow1);
/* --------------------------------- */
/* ------------------------------------
HAUPTPANEL
------------------------------------ */
$MainPanel = new Div();
$MainPanel->setBackgroundColor($_SESSION['config']->COLORS['panel_background']);
$MainPanel->setWidth($bannerWidth + 12);
$MainPanel->setBorder(2);
$MainPanel->setStyle("padding", "0px 0px");
$MainPanel->setStyle("margin", "0px 0px");
$MainPanel->setStyle("overflow-x", "hidden");
$MainPanel->setStyle("overflow-y", "overflow");
示例9: UserStatus
$ft = $executionTime->getFonttype();
$ft->setColor("red");
$executionTime->setFonttype($ft);
$name->setFonttype($ft);
}
$r->setAttribute(0, $executionTime);
$r->setAttribute(1, $name);
$r->setAttribute(2, $cron->getPauseLink());
$tbl->addRow($r);
}
$tbl->show();
if ($_SESSION['config']->CURRENTUSER->STATUS != "admin" && $_SESSION['config']->CURRENTUSER->STATUS != "user" && $loginNeed) {
/* ------------------------------------
BENUTZERSTATUS ANZEIGEN
------------------------------------ */
$USR = $_SESSION['config']->CURRENTUSER;
$USERSTATUS = new UserStatus($USR, -1, -1);
$tbl = new Table(array(""));
$tbl->addSpacer(0, 20);
$tbl->setAlign("center");
$r = $tbl->createRow();
$r->setAttribute(0, $USERSTATUS);
$tbl->addRow($r);
$tbl->addSpacer(0, 20);
$tbl->show();
/* --------------------------------- */
}
$spc->show();
?>
示例10: Spacer
} else {
$newBtn = $scDbTable->getNewEntryButton("Neuen Alarm definieren");
$newBtn->show();
}
$spc->setHeight(10);
$spc->show();
}
// ---------------------------------------------------------------
// --------------------------------------------------
// Zuordnungen
// --------------------------------------------------
$spc = new Spacer(10);
$ln = new Line();
$table = new Table(array("", ""));
$table->setColSizes(array(150));
$table->addSpacer(1, 15);
$table->addSpacer(0, 15);
$cobSelect = new ComboBoxBySql($_SESSION['config']->DBCONNECT, "SELECT id, name FROM homecontrol_alarm ORDER BY name", "SelectedAlarmToEdit", isset($_SESSION['SelectedAlarmToEdit']) ? $_SESSION['SelectedAlarmToEdit'] : "", "id", "name", " ");
$cobSelect->setDirectSelect(true);
$rAuswahl = $table->createRow();
$rAuswahl->setAttribute(0, new Text("Alarm auswaehlen: "));
$table->addRow($rAuswahl);
$rAuswahl = $table->createRow();
$rAuswahl->setAttribute(0, $cobSelect);
$table->addRow($rAuswahl);
$table->addSpacer(0, 15);
$rTitle = $table->createRow();
$rTitle->setAttribute(0, new Title("Grundeinstellung"));
$rTitle->setSpawnAll(true);
$table->addRow($rTitle);
$table->addSpacer(0, 15);
示例11: show
function show()
{
//Wenn notwendig Eingabemaske, ansonsten Standard-Anzeige
if (!$this->showInsertMaskIfNeeded()) {
$rowsToShow = $this->getRowsToShow();
//Tabelle fÃÂÃÂÃÂür gesamte NEWS
$tbl = new Table(array("News"));
$tbl->setHeadEnabled(false);
$tbl->setBorder(0);
foreach ($rowsToShow as $row) {
$tt = new Text($row['Text']);
$tt->setFilter(false);
$ta = new Text($row['Autor']);
$tblxTitle = new Table(array("", ""));
$tblxTitle->setColSizes(array("50"));
$tblxTitle->setAlign("left");
$rxtitle = $tblxTitle->createRow();
$t0 = new Title(getFormatedDate($row['Datum'], "standard") . ":");
$t0->setWidth(20);
$rxtitle->setAttribute(0, $t0);
$t1 = new Title($row['Title']);
$rxtitle->setAttribute(1, $t1);
$rxtitle->setAlign("left");
$tblxTitle->addRow($rxtitle);
//Tabelle fÃÂÃÂÃÂür den jeweiligen Eintrag
$tblx = new Table(array(""));
if (strlen($row['pic']) > 0) {
$tblx = new Table(array("", ""));
$tblx->setColSizes(array("180"));
}
$tblx->setBorder($this->CONFIG->GB_CONFIG['border']);
$tblx->setWidth("100%");
//TEXT
$rx = $tblx->createRow();
if (strlen($row['pic']) > 0 && !(isset($_REQUEST['removeNewsPicId']) && $_REQUEST['removeNewsPicId'] == $row['id'])) {
$img = new Image($row['pic']);
$img->setWidth(175);
$rx->setAttribute(0, $img);
$rx->setAttribute(1, $tt);
} else {
$rx->setAttribute(0, $tt);
}
$rx->setAlign("left");
$tblx->addRow($rx);
$f = new FontType();
$rx->setFonttypes(array(0 => $f));
$f = new FontType();
$f->setFontsize(1);
$f->setItalic(false);
$rx->setFonttypes(array(0 => $f));
$r = $tbl->createRow();
$r->setAttribute(0, $tblxTitle);
$tbl->addRow($r);
$r1 = $tbl->createRow();
$r1->setAttribute(0, $tblx);
$tbl->addRow($r1);
$ytElem = new YouTubeElement($row['yt_video'], "news", "yt_video", $row['id']);
$r1 = $tbl->createRow();
$r1->setAttribute(0, $ytElem);
$tbl->addRow($r1);
$tbl->addSpacer(0, 7);
if ($_SESSION['config']->CURRENTUSER->STATUS == "admin" || $_SESSION['config']->CURRENTUSER->STATUS == "user") {
$r2 = $tbl->createRow();
$xDv = new Div();
$xDv->setWidth(450);
$xDv->setHeight(40);
$txChngePic = new Text("Bild Hochladen/ÃÂÃÂÃÂÃÂndern<br>");
$txChngePic->setFilter(false);
$newPicLink = new Link("?popupRunLink=imageUploaderPopup&targetPath=pics/news&DbInsertTable=news&DbInsertCol=pic&DbInsertId=" . $row['id'] . "&stayAlive=ok", $txChngePic);
$txRemPic = new Text("Bild Entfernen<br>");
$txRemPic->setFilter(false);
$removePicLink = new Link("?removeNewsPicId=" . $row['id'] . "", $txRemPic);
$spTx = new Text(" ");
$spTx->setFilter(false);
$xDv->add($newPicLink);
if (strlen($row['pic']) > 0) {
if (isset($_REQUEST['removeNewsPicId']) && $_REQUEST['removeNewsPicId'] == $row['id']) {
$sql = "UPDATE news SET pic = null WHERE id = " . $_REQUEST['removeNewsPicId'];
$_SESSION['config']->DBCONNECT->executeQuery($sql);
} else {
$xDv->add($removePicLink);
}
}
$newPicLink->setPopup(true);
$r2->setAttribute(0, $xDv);
$tbl->addRow($r2);
}
$tbl->addSpacer(0, 35);
}
if ($_SESSION['config']->CURRENTUSER->STATUS == "admin" || $_SESSION['config']->CURRENTUSER->STATUS == "user") {
// Neuer Eintrag- BUTTON
//--------------------------------
$insertButton = new Button('dbTableNew', 'News eintragen');
$form = new Form($_SERVER['SCRIPT_NAME']);
$form->add($insertButton);
$form->show();
}
// Tabelle anzeigen
//--------------------------------
$tbl->show();
//.........这里部分代码省略.........
示例12: DivByInclude
$cont = new DivByInclude("mobile_" . $_SESSION['mainpage'], false);
$cont->setWidth("99%");
} else {
$cont = new DivByInclude($_SESSION['mainpage'], false);
}
$MainPanel->add($cont);
$contentLayoutRow = $layoutTable->createRow();
if (isset($_SESSION['MENU_PARENT']) && $_SESSION['MENU_PARENT'] == "Einstellungen" && isset($_SESSION['runLink']) && $_SESSION['runLink'] == "homeconfig") {
$contentLayoutRow->setAlign("left");
} else {
$contentLayoutRow->setAlign("center");
}
$contentLayoutRow->setAttribute(0, $MainPanel);
$layoutTable->addRow($contentLayoutRow);
/* --------------------------------- */
$layoutTable->addSpacer(0, 40);
/* ------------------------------------
FUSS-MENU
------------------------------------ */
$footMenuDiv = new Div();
$footMenuDiv->setWidth("99%");
$footMenuDiv->setBackgroundColor($_SESSION['config']->COLORS['panel_background']);
$footMenuDiv->setBorder(0);
$footMenuDiv->setAlign("center");
$footMenu = new DbMenu("Fussmenue");
// $footMenu->setHeight(60);
$footMenu->setMenuType("horizontal");
$footMenu->setAlign("center");
$footMenu->setFontsize(6);
$footMenuDiv->add(new Line(1, 6));
$footMenuDiv->add($footMenu);
示例13: getTabletView
function getTabletView()
{
$colCount = 4;
$layoutTable = new Table(array("", "", "", ""));
$layoutTable->setSpacing(20);
$this->handleEtage();
$dbTable = new DbTable($_SESSION['config']->DBCONNECT, 'homecontrol_config', array("id", "name", "funk_id", "funk_id2", "beschreibung", "control_art", "etage", "zimmer", "x", "y", "sender_id"), "", "", "etage, name", "");
$currCol = $colCount;
$layoutRow = null;
$letzteEtage = "";
foreach ($dbTable->ROWS as $row) {
if ($letzteEtage != $row->getNamedAttribute("etage")) {
$letzteEtage = $row->getNamedAttribute("etage");
$currCol = 0;
$layoutTable->addSpacer(0, 25);
$ttl = new Title($letzteEtage);
$layoutRow = $layoutTable->createRow();
$layoutRow->setSpawnAll(true);
$layoutTable->addRow($layoutRow);
$layoutRow->setAttribute(0, $ttl);
$layoutRow = $layoutTable->createRow();
$layoutTable->addRow($layoutRow);
} elseif ($currCol == $colCount) {
$currCol = 0;
$layoutRow = $layoutTable->createRow();
$layoutTable->addRow($layoutRow);
}
$hcItem = new HomeControlItem($row, false);
$switchComp = $hcItem->getMobileSwitch();
$layoutRow->setAttribute($currCol, $switchComp);
$currCol++;
}
return $layoutTable;
}
示例14: Table
$userDBRow = $userDBTable->getRow(1);
//Daten in Table stecken
$userTable = new Table(array("", ""));
$userTable->setWidth(400);
$userTable->setAlign("left");
$ft = new FontType();
$ft->setFontsize(4);
//User-Name
$userRow = $userTable->createRow();
$userRow->setSpawnAll(true);
$userRow->setAlign("center");
$user = new Text($userDBRow->getNamedAttribute("User"));
$userRow->setAttribute(0, $user);
$user->setFonttype($ft);
$userTable->addRow($userRow);
$userTable->addSpacer(0);
//User-Avatar
$userRow1 = $userTable->createRow();
$userRow1->setSpawnAll(true);
$userRow1->setAlign("center");
$img = new Image($currPath . "pics/user/" . $userDBRow->getNamedAttribute("pic"));
$img->setWidth(250);
$userRow1->setAttribute(0, $img);
$userTable->addRow($userRow1);
$userTable->addSpacer(0);
//Name
$userRow2 = $userTable->createRow();
$userFullName = new Text($userDBRow->getNamedAttribute("Vorname") . " " . $userDBRow->getNamedAttribute("Nachname"));
$userRow2->setAttribute(0, "Name:");
$userRow2->setAttribute(1, $userFullName);
$userTable->addRow($userRow2);
示例15: showNormalMenu
/**
* show-Methode fÃÂÃÂÃÂür TYPE = default
*/
function showNormalMenu()
{
$tbl = new Table(array(""));
if (!(get_class($this->SPACER) == "Text" && $this->SPACER->getText() == " | ")) {
$tbl = new Table(array("", ""));
$tbl->setColSizes(array("27"));
}
$tbl->setHeadEnabled(false);
if (strlen($this->getAlign()) > 0) {
$tbl->setAlign($this->getAlign());
}
$tbl->setXPos($this->XPOS);
$tbl->setYPos($this->YPOS);
$tbl->setBorder($this->BORDER);
$userStatus = $this->CONFIG->CURRENTUSER->STATUS;
$menuArray = $this->MENUTABLE->getMenuByStatus($userStatus);
$r = array();
$txt = array();
$lSpacer = "";
while ($row = mysql_fetch_array($menuArray)) {
if ($row['id'] > 0) {
$rcnt = count($r);
if (!(get_class($this->SPACER) == "Text" && $this->SPACER->getText() == " | ")) {
// Spacer ( | oder ÃÂÃÂÃÂübergebener Spacer )
$lnk = $row['link'];
if (strlen($row['parent']) > 0 && !strpos($lnk, "menuParent")) {
$lnk .= "&menuParent=" . $row['parent'];
}
$lSpacer = new Link($lnk, $this->SPACER, false, $row['target']);
//$lSpacer->setToolTip($row['tooltip']);
}
$txt[$rcnt] = new Text($row['text']);
$txt[$rcnt]->setFonttype($this->getFonttype());
$lnk = $row['link'];
if (strlen($row['parent']) > 0 && !strpos($lnk, "menuParent")) {
$lnk .= "&menuParent=" . $row['parent'];
}
$l = new Link($lnk, $txt[$rcnt], false, $row['target']);
$l->setStyleclass("menulink");
// $l->setToolTip($row['tooltip']);
$r[$rcnt] = $tbl->createRow();
$r[$rcnt]->setVAlign("middle");
if (!(get_class($this->SPACER) == "Text" && $this->SPACER->getText() == " | ")) {
$r[$rcnt]->setAttribute(0, $lSpacer);
$r[$rcnt]->setAttribute(1, $l);
} else {
$r[$rcnt]->setAttribute(0, $l);
}
$tbl->addRow($r[$rcnt]);
$ftx = $txt[$rcnt]->getFonttype();
if ($row['name'] == $_SESSION['MENU_PARENT'] || $row['name'] == $this->getLabelByRunlink($_SESSION['runLink'], $_SESSION['MENU_PARENT'])) {
$ftx->setColor($_SESSION['config']->COLORS['hover']);
#
$ftx->setBold(true);
} else {
$ftx->setBold(false);
}
$txt[$rcnt]->setFonttype($ftx);
}
$tbl->addSpacer(0, 2);
}
$tbl->show();
}