Example #1
0
 function show()
 {
     $t = new Table(array());
     $t->setHeight($this->getHeight());
     $r = $t->createRow();
     $r->setHeight($this->getHeight());
     $t->addRow($r);
     $t->show();
 }
Example #2
0
<?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()
{
Example #3
0
<?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");
Example #4
0
$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();
<?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);
Example #6
0
 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;
 }
$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");
Example #8
0
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");
Example #9
0
/**
 * 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();
Example #10
0
/***
 * 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);
Example #11
0
$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();
 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;
 }
Example #13
0
 /**
  * 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();
 }