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


PHP Table::setHeight方法代码示例

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


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

示例1: 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

示例2: budget

<?php

$win = new SDPanel();
$win->setCaption("Movements");
$maintable = new Table();
$maintable->setRowsStyle("100%");
$maintable->setWidth("100%");
$maintable->setHeight("100%");
$maintable->setClass("table.white");
$label_budget = new Label();
$label_budget->setCaption("Add Budget");
$label_budget->setClass("label.blue");
$label_budget->onTap(budget());
$label_income = new Label();
$label_income->setCaption("Income");
$label_income->setClass("label.green");
$label_income->onTap(income());
$label_outcome = new Label();
$label_outcome->setCaption("Outcome");
$label_outcome->setClass("label.red");
$label_outcome->onTap(outcome());
$maintable->addControl($label_budget, 1, 1, 1, 1, "Center", "Middle");
$maintable->addControl($label_income, 2, 1, 1, 1, "Center", "Middle");
$maintable->addControl($label_outcome, 3, 1, 1, 1, "Center", "Middle");
$win->addControl($maintable);
function budget()
{
    $win->Open("Budget");
}
function income()
{
开发者ID:KikAppTools,项目名称:KikAppDemos,代码行数:31,代码来源:Movements.php

示例3: SDPanel

<?php

/***
 * Register.
 */
$win = new SDPanel();
$win->setCaption("Create an account");
$table = new Table();
$table->setWidth("100%");
$table->setHeight("100%");
$table->setClass("table.white");
$table_form = new Table();
$table_form->setRowsStyle("76dip;76dip;76dip");
$table_form->setClass("table.forms");
$email = new InputEmail();
$email->setInviteMessage("E-Mail");
$email->setClass("input.form");
$password = new InputText();
$password->setClass("input.form");
$password->setInviteMessage("Password");
$password->setIsPassword(true);
$password_2 = new InputText();
$password_2->setClass("input.form");
$password_2->setInviteMessage("Confirm your Password");
$password_2->setIsPassword(true);
$table_form->addControl($email, 1, 1);
$table_form->addControl($password, 2, 1);
$table_form->addControl($password_2, 3, 1);
$btn_save = new Button();
$btn_save->setCaption("SIGN UP");
$btn_save->setClass("button.blue");
开发者ID:KikAppTools,项目名称:KikAppDemos,代码行数:31,代码来源:Register.php

示例4: refresh

$table->setClass("tablebackground");
$table_form = new Table();
$table_form->setClass("tableforms");
$table_form->setRowsStyle("76dip;76dip;76dip");
$table_form->setHeight("90%");
$btn_save = new Button();
$btn_save->setCaption("Save");
$btn_save->setClass("buttonform");
$btn_save->onTap(save());
$table_form->addControl($id, 1, 1);
$table_form->addControl($name, 2, 1);
$table_form->addControl($imagen, 3, 1);
$table_form->addControl($status, 4, 1);
$table_button = new Table();
$table_button->addControl($btn_save, 1, 1);
$table_button->setHeight("10%");
$table->addControl($table_form, 1, 1);
$table->addControl($table_button, 2, 1, 1, 1, "Center", "Bottom");
$win->addControl($table);
$win->Render();
function refresh()
{
    echo $name;
}
function start()
{
    echo $id;
}
function save()
{
    ProgressIndicator::Show();
开发者ID:pablanco,项目名称:taskManager,代码行数:31,代码来源:TaskDetail.php

示例5: Table

<?php

/**
 * @filename layout_tablet.php
 * @author  Daniel Scheidler
 * @copyright November 2012
 */
echo "Tablet-Version:<br>";
$topSpaceTable = new Table(array(""));
$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);
开发者ID:CyborgOne,项目名称:cybihomecontrol_ui,代码行数:31,代码来源:layout_tablet.php

示例6: getShowMask

 function getShowMask()
 {
     $tNames = $this->COLNAMES;
     if (count($this->LABELS) == count($this->COLNAMES)) {
         $tNames = $this->LABELS;
     }
     $table = new Table($tNames);
     $table->setAlignments($this->getAlignments());
     $table->setBorder($this->BORDER);
     $table->setHeadEnabled($this->HEAD_ENABLED);
     $table->setBackgroundColorChange(true);
     if ($this->WIDTH > 0) {
         $table->setWidth($this->WIDTH);
     }
     if ($this->HEIGHT > 0) {
         $table->setHeight($this->HEIGHT);
     }
     if ($this->BORDER >= 0) {
         $table->setBorder($this->BORDER);
     }
     if ($this->PADDING >= 0) {
         $table->setPadding($this->PADDING);
     } else {
         $table->setPadding(0);
     }
     if ($this->SPACING >= 0) {
         $table->setSpacing($this->SPACING);
     } else {
         $table->setSpacing(0);
     }
     if ($this->XPOS > 0 && $this->YPOS > 0) {
         $table->setXPos($this->XPOS);
         $table->setYPos($this->YPOS);
     }
     //---------------------------------------------------
     // ROWS in Table aufnehmen
     //---------------------------------------------------
     $bgCtr = 1;
     for ($ir = 1; $ir <= count($this->ROWS); $ir++) {
         $r = $table->createRow();
         for ($ia = 0; $ia < count($this->COLNAMES); $ia++) {
             $row = $this->ROWS[$ir];
             $val = "";
             $t = "";
             if (!$this->isInvisibleCol($this->COLNAMES[$ia])) {
                 if (strlen($row->getAttribute($ia)) > 0) {
                     $val = getDbComboValue($this->TABLENAME, $this->COLNAMES[$ia], $row->getAttribute($ia));
                 }
                 // Wenn DbCombo definiert wurde wird der passende Text zum Code der Spalte angezeigt
                 if (strlen($val) > 0) {
                     $t = $val;
                 } else {
                     $t = $row->getAttribute($ia);
                 }
                 if (strtolower($this->COLNAMES[$ia]) == "email") {
                     $txt = $row->getAttribute($ia);
                     $tmp = new Text($txt);
                     $tmp->setFilter(false);
                     $r->setAttribute($ia, new Link("mailto:" . $txt, $tmp));
                 } else {
                     $r->setAttribute($ia, new Text($t));
                 }
             } else {
                 $r->setAttribute($ia, " ");
             }
         }
         $table->addRow($r);
     }
     return $table;
 }
开发者ID:CyborgOne,项目名称:cybihomecontrol_ui,代码行数:70,代码来源:DbTable.php

示例7: InputText

$price = new InputText(10);
$price->setClass("inputTextPrice");
$price->setReadOnly(true);
$stock = new InputText();
$stock->setClass("input.textStock");
$stock->setReadOnly(true);
$grid = new HorizontalGrid();
$grid->setRowsPerPagePortrait(1);
$grid->setShowPageController(true);
//$grid -> setPageControllerBackColor("#FFFFFF");
$grid->addData(load_image());
//$grid -> onTap(view_image());
$grid->setPageControllerClass("table.grid");
$table_grid = new Table();
$table_grid->setRowsStyle("100%");
$table_grid->setHeight("100%");
$table_grid->setClass("table.grid");
$image = new InputImage();
$image->setClass("imageImageList");
$table_grid->addControl($image, 1, 1);
$grid->addControl($table_grid, 1, 1);
$btnAdd = new Button();
$btnAdd->setClass("buttonred");
$btnAdd->setCaption("Add to Cart");
$btnAdd->onTap(add_cart());
$tableButtons = new Table();
$tableButtons->addControl($btnAdd, 1, 1);
$tableItemDetail->addControl($title, 1, 1, 1, 2, "Left", "Middle");
$tableItemDetail->addControl($price, 2, 1, 1, 1, "Left", "Middle");
$tableItemDetail->addControl($stock, 2, 2, 1, 1, "Center", "Middle");
$tableItemDetail->addControl($desc, 3, 1, 1, 2, "Left", "Middle");
开发者ID:KikAppTools,项目名称:KikAppDemos,代码行数:31,代码来源:ProductDetail.php

示例8: Table

if (!$noFrameLayout) {
    $banner->setGenerated(false);
    $contentLayoutRow1 = $layoutTable->createRow();
    $contentLayoutRow1->setAlign("left");
    $contentLayoutRow1->setAttribute(0, $banner);
    $contentLayoutRow1->setStyle("padding", "10px");
    $layoutTable->addRow($contentLayoutRow1);
} else {
    $_SESSION['additionalLayoutHeight'] = 15;
    $bannerHeight = $_SESSION['additionalLayoutHeight'];
}
$modeSwitchComboTbl = new Table(array(""));
$modeSwitchComboTbl->setWidth(100);
$modeSwitchComboTbl->setAlign("center");
$modeSwitchComboTbl->setVAlign("middle");
$modeSwitchComboTbl->setHeight(25);
$cobMode = new ComboBoxBySql($_SESSION['config']->DBCONNECT, "SELECT id, name FROM homecontrol_modes WHERE selectable = 'J'", "changeMode", $_SESSION['config']->PUBLICVARS['currentMode']);
$cobMode->setDirectSelect(true);
$rMode = $modeSwitchComboTbl->createRow();
$rMode->setAttribute(0, $cobMode);
$modeSwitchComboTbl->addRow($rMode);
$fMode = new Form();
$fMode->add($modeSwitchComboTbl);
/* ------------------------------------
HAUPT-MENU
------------------------------------ */
$menuDiv = new Div();
$menuDiv->setWidth($bannerWidth - 80);
$menuDiv->setBorder(0);
$menuDiv->setOverflow("hidden");
$menuDiv->setAlign("left");
开发者ID:CyborgOne,项目名称:cybihomecontrol_ui,代码行数:31,代码来源:layout.php

示例9: SDPanel

/**
 * Main object.
 * @author Kikapp
 * @version 1.0
 */
$win = new SDPanel();
$win->setCaption("");
$table = new Table();
$table->setClass("tableGray");
$grid = new Grid();
$table_grid_product = new Table();
$table_grid_product->setClass("tableGrid");
$table_grid_product->setRowsStyle("80dip");
$table_grid_product->setColumnsStyle("35%;65%;15dip");
$table_grid_product->setHeight("85dip");
$grid->addData(grid_load_products());
//the main use of the grid is to load data from a server
$grid->onTap(action_prod());
//what happens when you tap on it
//inputs and controls
$title_prod = new InputText(150);
$title_prod->setClass("attributetitleList");
$title_prod->setAutoGrow(true);
$image_prod = new InputImage();
$image_prod->setClass("imageImageList2");
$desc_prod = new InputText(300);
$desc_prod->setClass("attributeTextGray");
$price_prod = new InputText(10);
$price_prod->setClass("attributeTextPrice");
$table_desc_prod = new Table();
开发者ID:KikAppTools,项目名称:KikAppExamples,代码行数:30,代码来源:main.php

示例10: action

/***
 * Sub categories list.
 */
$win = new SDPanel();
$cat = new InputNumeric();
Data::getParm($cat, $name);
$table = new Table();
$list = new Grid();
$list->addData(load_grid());
$list->setEmptyGridText("No items available");
$list->onTap(action());
$id = new InputNumeric();
$name = new InputText();
$name->setClass("input.categories");
$table_list = new Table();
$table_list->setHeight("60dip");
$table_list->setClass("table.categorias");
$table_list->addControl($name, 1, 1, 1, 1, "Left", "Middle");
$list->addControl($table_list, 1, 1);
$table->addControl($list, 1, 1);
$win->addControl($table);
$win->Render();
function action()
{
    $win->Open("ProductList", $id);
}
function load_grid()
{
    $url = "http://demo.kikapptools.com/magento/apiKikApp/Categories.php?cId=" . $cat;
    $httpClient = new httpClient();
    $result = $httpClient->Execute('GET', $url);
开发者ID:KikAppTools,项目名称:KikAppDemos,代码行数:31,代码来源:SubCategories.php

示例11: ActionBar

$acb = new ActionBar();
$btn_img = new ButtonBar();
$btn_img->setCaption("");
$btn_img->setImage("img/ic_view_stream_white.png");
$btn_img->onTap(changeView());
$acb->addControl($btn_img);
$win->addControl($acb);
//Add action bar in panel.
$table = new Table();
$table->setClass("tableGray");
$grid = new Grid();
$table_grid = new Table();
$table_grid->setClass("tableGrid");
$table_grid->setRowsStyle("80dip");
$table_grid->setColumnsStyle("35%;65%;15dip");
$table_grid->setHeight("85dip");
$grid->addSearch($title);
$grid->addData(grid_load());
$grid->onTap(action());
$grid->setEmptyGridText("No items available");
//inputs and controls
$title = new InputText(150);
$title->setClass("input.titleList");
$title->setAutoGrow(true);
$image = new InputImage();
$image->setClass("image.roundedListImage");
$desc = new InputText(300);
$desc->setClass("input.textDescription");
$price = new InputText(10);
$price->setClass("input.priceList");
$table_desc = new Table();
开发者ID:KikAppTools,项目名称:KikAppDemos,代码行数:31,代码来源:ProductList.php

示例12: getMap

 function getMap($dbTable)
 {
     $dv = new Div();
     $bgTbl = new Table(array(""));
     $bgTbl->setOnClick("Coords()");
     $bgTbl->setWidth("600");
     $bgTbl->setHeight("340");
     $bgTbl->setStyle("background-image", "url(" . $this->getEtagenImagePath() . ")");
     $rowImg = $bgTbl->createRow();
     //    $img = $this->getEtagenImage();
     $rowImg->setAttribute(0, " ");
     $rowImg->setPadding("4px");
     $bgTbl->addRow($rowImg);
     $dv->add($bgTbl);
     for ($i = 1; $i <= $dbTable->getRowCount(); $i++) {
         $currConfigRow = $dbTable->getRow($i);
         $ctrlItem = new HomeControlItem($currConfigRow, $this->EDITMODE);
         $dv->add($ctrlItem);
     }
     return $dv;
 }
开发者ID:CyborgOne,项目名称:cybihomecontrol_ui,代码行数:21,代码来源:HomeControlMap.php

示例13: showHorizontalButtonMenu

 /**
  * show-Methode für TYPE = horizontalbutton
  */
 function showHorizontalButtonMenu()
 {
     $userStatus = $this->CONFIG->CURRENTUSER->STATUS;
     $menuArray = $this->MENUTABLE->getMenuByStatus($userStatus);
     $count = 0;
     $c = $this->MENUTABLE->getRowCountByStatus();
     $colArr = array("");
     //[0] wird hier schon initialisiert!
     for ($i = 1; $i < $c; $i++) {
         $colArr[$i] = "";
     }
     $table = new Table($colArr);
     $table->setStyle("text-align", "center");
     $table->setStyle("vertical-align", "middle");
     $tblrow = $table->createRow();
     $tblrow->setStyle("vertical-align", "middle");
     $tblrow->setHeight($this->getHeight());
     while ($row = mysql_fetch_array($menuArray)) {
         if ($row['id'] > 0) {
             $btn = new HorizontalMenuButton($row['link'], $row['text']);
             $tblrow->setAttribute($count, $btn);
             $count++;
         }
     }
     $table->addRow($tblrow);
     $table->setHeight($this->getHeight());
     $table->show();
 }
开发者ID:CyborgOne,项目名称:cybihomecontrol_ui,代码行数:31,代码来源:DbMenu.php


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