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


PHP Table::createRow方法代码示例

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


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

示例1: getNetworkSettingsMask

 function getNetworkSettingsMask()
 {
     $tbl = new Table(array("", ""));
     $rIp = $tbl->createRow();
     $rIp->setAttribute(0, new Text("IP:"));
     $rIp->setAttribute(1, new Textfield("ip", $this->getLocalIp()));
     $tbl->addRow($rIp);
     $rMask = $tbl->createRow();
     $rMask->setAttribute(0, new Text("Subnet-Mask:"));
     $rMask->setAttribute(1, new Textfield("mask", $this->getLocalMask()));
     $tbl->addRow($rMask);
     $rGate = $tbl->createRow();
     $rGate->setAttribute(0, new Text("Gateway:"));
     $rGate->setAttribute(1, new Textfield("gate", $this->getLocalGate()));
     $tbl->addRow($rGate);
     $rDns = $tbl->createRow();
     $rDns->setAttribute(0, new Text("DNS-Server:"));
     $rDns->setAttribute(1, new Textfield("dns", $this->getLocalDns()));
     $tbl->addRow($rDns);
     $rOk = $tbl->createRow();
     $rOk->setSpawnAll(true);
     $rOk->setAttribute(0, new Button("saveNetworkSettingsMask", $this->SAVE_BTN_LABEL));
     $tbl->addRow($rOk);
     $f = new Form();
     $f->add($tbl);
     return $f;
 }
开发者ID:CyborgOne,项目名称:cybihomecontrol_ui,代码行数:27,代码来源:NetworksettingsEditor.php

示例2: 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;
 }
开发者ID:CyborgOne,项目名称:cybihomecontrol_ui,代码行数:38,代码来源:Panel.php

示例3: show

 function show()
 {
     $t = new Table(array());
     $t->setHeight($this->getHeight());
     $r = $t->createRow();
     $r->setHeight($this->getHeight());
     $t->addRow($r);
     $t->show();
 }
开发者ID:CyborgOne,项目名称:cybihomecontrol_ui,代码行数:9,代码来源:Spacer.php

示例4: 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;
 }
开发者ID:CyborgOne,项目名称:cybihomecontrol_ui,代码行数:18,代码来源:PublicVarText.php

示例5: show

 function show()
 {
     $t = new Table(array(""));
     $t->setAlign($this->getAlign());
     $r = $t->createRow();
     $r->setHeader(true);
     $txt = new Text($this->TEXT);
     $txt->setFonttype($this->FONTTYPE);
     $txt->setFilter($this->getFilter());
     $r->setAttribute(0, $txt);
     $t->addRow($r);
     $t->show();
 }
开发者ID:CyborgOne,项目名称:cybihomecontrol_ui,代码行数:13,代码来源:Title.php

示例6: showFullname

 function showFullname()
 {
     $fp = new Text($this->getPath(), 3, true);
     $btnDel = new Button("clearLog", "Log leeren");
     $hdnDel = new Hiddenfield("clearLogFile", $this->FULLPATH);
     $frmDel = new Form();
     $tblTtl = new Table(array("", ""));
     $tblTtl->setColSizes(array(null, 100));
     $tblTtl->setAlignments(array("left", "right"));
     $rTtl = $tblTtl->createRow();
     $rTtl->setAttribute(0, $fp);
     $rTtl->setAttribute(1, $btnDel);
     $tblTtl->addRow($rTtl);
     $frmDel->add($tblTtl);
     $frmDel->add($hdnDel);
     $frmDel->show();
 }
开发者ID:CyborgOne,项目名称:cybihomecontrol_ui,代码行数:17,代码来源:LogFile.php

示例7: Error

 function Error($title, $text, $backLink = '')
 {
     $t = "<font color='red' size='3' ><b>" . $text . "</b></font>";
     if (strlen($backLink) > 0) {
         $t .= " <br><br><a target ='_top' href='" . $backLink . "'>Zurück</a>";
     }
     $text = new Text($t);
     $text->setFilter(false);
     $title = array("FEHLER: " . $title);
     $tbl = new Table($title);
     $r = $tbl->createRow();
     $r->setAttribute(0, $text);
     $tbl->addRow($r);
     $tbl->setWidth(500);
     $tbl->show();
     exit;
 }
开发者ID:CyborgOne,项目名称:cybihomecontrol_ui,代码行数:17,代码来源:Error.php

示例8: getMobileSwitch

 function getMobileSwitch()
 {
     $tbl = new Table(array("", "", "", ""));
     $tbl->setAlignments(array("center", "left", "left", "right"));
     $tbl->setColSizes(array(60, "", 170, 150));
     $tbl->setBorder(0);
     $rowTtl = $tbl->createRow();
     $rowTtl->setVAlign("middle");
     $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");
     $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");
     $txtName = new Text($this->OBJNAME, 6, true);
     $img = $this->getControlArtIcon(false);
     $lnkAn = new Link("http://" . $this->IP . "?schalte=on", $divAn, false, "arduinoSwitch");
     $lnkAus = new Link("http://" . $this->IP . "?schalte=-" . $this->FUNK_ID, $divAus, false, "arduinoSwitch");
     $rowTtl->setAttribute(0, $img);
     $rowTtl->setAttribute(1, $txtName);
     $rowTtl->setAttribute(2, $lnkAn);
     $rowTtl->setAttribute(3, $lnkAus);
     $tbl->addRow($rowTtl);
     return $tbl;
 }
开发者ID:CyborgOne,项目名称:cybihomecontrol_ui,代码行数:39,代码来源:HomeControlAlarmgeber.php

示例9: show

 /**
  * Zeigt das DateTextfield an
  * Es wird eine Tabelle um das Feld gesetzt um eine 
  * freie Positionierung so wie Tooltips oä zu ermöglichen. 
  * (da der eigentliche Kalender ein Script ist)
  */
 function show()
 {
     $tbl = new Table(array(""));
     $tbl->setWidth(50);
     $tbl->setAlign("left");
     $dtText = "<script>DateInput('" . $this->NAME . "', true";
     if (strlen($this->DATEFORMAT) > 7) {
         $dtText .= ", '" . $this->DATEFORMAT . "'";
         if (strlen($this->VALUE) == strlen($this->DATEFORMAT)) {
             $dtText .= ", '" . $this->VALUE . "'";
         }
     }
     $dtText .= ")</script>";
     $dateTextField = new Text($dtText);
     $dateTextField->setFilter(false);
     $r = $tbl->createRow();
     $r->setAttribute(0, $dateTextField);
     $tbl->addRow($r);
     $tbl->setToolTip($this->getTooltip());
     $tbl->show();
 }
开发者ID:CyborgOne,项目名称:cybihomecontrol_ui,代码行数:27,代码来源:DateTextfield.php

示例10: show

 /**
 *  Zeigt Als erstes die Ordner-Navigation ( showFoldersList() ) an und darunter die Bilder-Liste ( showPicList() )
 *  wenn angefordert, wird das aktuelle Bild einzeln angezeigt.
 *  setzen des aktuellen Bildes erfolgt in changeHandler().
 */
 function show()
 {
     $this->handleChanges();
     $tbl = new Table(array(""));
     $tbl->setAlignments(array("center"));
     if ($this->isShowTitle()) {
         $title = new Title($this->FOLDER->NAME);
         $rTtl = $tbl->createRow();
         $rTtl->setAlign("center");
         $rTtl->setAttribute(0, $title);
         $tbl->addRow($rTtl);
     }
     $fl = $this->getFolderslist();
     $rFl = $tbl->createRow();
     $rFl->setAttribute(0, $fl);
     $tbl->addRow($rFl);
     if (isset($_REQUEST['showPic']) && !isset($_REQUEST['BB_BackToList']) && strlen($_REQUEST['showPic']) > 0) {
         $p = $this->getPicture();
         $rP = $tbl->createRow();
         $rP->setAlign("center");
         $rP->setAttribute(0, $p);
         $tbl->addRow($rP);
     } else {
         $pn = $this->getPageNavigation();
         $pl = $this->getPicturelist();
         $rPn = $tbl->createRow();
         $rPn->setAlign("center");
         $rPn->setAttribute(0, $pn);
         $tbl->addRow($rPn);
         $rPl = $tbl->createRow();
         $rPl->setAlign("center");
         $rPl->setAttribute(0, $pl);
         $tbl->addRow($rPl);
     }
     $tbl->show();
 }
开发者ID:CyborgOne,项目名称:cybihomecontrol_ui,代码行数:41,代码来源:Bilderbuch.php

示例11: Form

$frmSelect = new Form();
$timeSelect = new Table(array("", "", "", ""));
$rT = $timeSelect->createRow();
$rT->setColSizes(array(130, 100, 63));
$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) {
开发者ID:CyborgOne,项目名称:cybihomecontrol_ui,代码行数:31,代码来源:SensorLogViewer.php

示例12: getUserprofileForUserId

/**
 * Liefert das Userprofil zur klein-Anzeige (neben Posts)
 * 
 * @param $id           ID des Users
 */
function getUserprofileForUserId($id)
{
    $sql = "SELECT * FROM user where id = '" . $id . "' ";
    $res = $_SESSION['config']->DBCONNECT->executeQuery($sql);
    $retRow = mysql_fetch_array($res);
    $ft = new FontType();
    $ft->setBold(true);
    $ft->setFontsize(3);
    $picLnk = new Link("includes/user/show_userprofil.php?showUserId=" . $id, getUserImageSourceByPicname($retRow['pic'], 80));
    $picLnk->setPopup(true);
    $status = new Text("<b>Status:</b> " . $retRow['Status']);
    $status->setFilter(false);
    $posts = new Text("<b>Posts:</b> " . $retRow['Posts']);
    $posts->setFilter(false);
    $tbl = new Table(array(""));
    $r1 = $tbl->createRow();
    $r1->setFonttype($ft);
    $r1->setAttribute(0, $retRow['Vorname'] . " " . $retRow['Nachname']);
    $tbl->addRow($r1);
    $r2 = $tbl->createRow();
    $r2->setAttribute(0, $picLnk);
    $tbl->addRow($r2);
    $r3 = $tbl->createRow();
    $r3->setAttribute(0, $status);
    $tbl->addRow($r3);
    $r4 = $tbl->createRow();
    $r4->setAttribute(0, $posts);
    $tbl->addRow($r4);
    return $tbl;
}
开发者ID:CyborgOne,项目名称:cybihomecontrol_ui,代码行数:35,代码来源:forum_functions.php

示例13: getReadonlyTermItem

 /**
  * Liefert die Bedingung als Table zurück 
  * reine Anzeige 
  */
 private function getReadonlyTermItem()
 {
     $t = new Table(array(""));
     $r = $t->createRow();
     $r->setAttribute(0, $this->getDescription());
     $t->addRow($r);
     return $t;
 }
开发者ID:CyborgOne,项目名称:cybihomecontrol_ui,代码行数:12,代码来源:HomeControlTerm.php

示例14: Text

<?php

if (isset($_REQUEST['requestNewPW4Mail']) && isset($_REQUEST['em4il']) && strlen($_REQUEST['em4il']) > 3 && strpos($_REQUEST['em4il'], "@") > 0) {
    $txt = new Text("Es wurde ein neues Passwort generiert.\n" . "Die Email mit den Zugangsdaten wurde versendet an: " . $_REQUEST['em4il']);
    $_SESSION['config']->CURRENTUSER->needNewPassword($_REQUEST['em4il']);
    exit;
}
$txt = new Text("Sie haben ihr Passwort vergessen?\n\n" . "Geben Sie einfach im folgenden Eingabefeld ihre Emailadresse ein und bestätigen " . "Sie ihre Eingabe mit dem Button *Passwort anfordern* ");
$eMail = new Textfield("em4il", "");
$eMail->setTooltip("Geben Sie hier ihre Emailadresse ein mit der Sie sich registriert haben.");
$btn = new Button("requestNewPW4Mail", "Passwort anfordern");
$eMail->setTooltip("Bestätigen Sie hier ihre Eingabe.\nEs wird ein neues Passwort generiert und die neuen Zugangsdaten an ihre Email gesendet.");
$table = new Table(array(""));
$r1 = $table->createRow();
$r1->setAttribute(0, $txt);
$table->addRow($r1);
$r2 = $table->createRow();
$r2->setAttribute(0, $eMail);
$table->addRow($r2);
$r3 = $table->createRow();
$r3->setAttribute(0, $btn);
$table->addRow($r3);
$form = new Form($_SERVER['SCRIPT_NAME']);
$form->add($table);
$form->show();
开发者ID:CyborgOne,项目名称:cybihomecontrol_ui,代码行数:25,代码来源:user_request_pw.php

示例15: dirname

$currPath = dirname($_SERVER['SCRIPT_NAME']);
$currPath = substr($currPath, 1);
if (strlen($currPath) > 0) {
    $currPath = $currPath . "/";
}
//Daten holen
$userDBTable = new DbTable($_SESSION['config']->DBCONNECT, 'user', array("*"), "", "", "", "id=" . $_REQUEST['showUserId'] . " ");
$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);
开发者ID:CyborgOne,项目名称:cybihomecontrol_ui,代码行数:31,代码来源:show_userprofil.php


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