Example #1
0
$label_income->setClass("label.black");
$input_income = new InputNumeric(11);
$input_income->setReadOnly(true);
$input_income->setClass("label.black");
$label_green = new Label();
$label_green->setClass("label.income");
$table_income = new Table();
$table_income->setColumnsStyle("5dip;50%;50%");
$table_income->addControl($label_green, 1, 1, 1, 1, "", "Middle");
$table_income->addControl($label_income, 1, 2, 1, 1, "Center", "Middle");
$table_income->addControl($input_income, 1, 3, 1, 1, "Right", "Middle");
$label_outcome = new Label();
$label_outcome->setCaption("Outcome");
$label_outcome->setClass("label.black");
$input_outcome = new InputNumeric(11);
$input_outcome->setReadOnly(true);
$input_outcome->setClass("label.black");
$label_red = new Label();
$label_red->setClass("label.outcome");
$table_outcome = new Table();
$table_outcome->setColumnsStyle("5dip;50%;50%");
$table_outcome->addControl($label_red, 1, 1, 1, 1, "", "Middle");
$table_outcome->addControl($label_outcome, 1, 2, 1, 1, "Center", "Middle");
$table_outcome->addControl($input_outcome, 1, 3, 1, 1, "Right", "Middle");
$table_second = new Table();
$table_second->setWidth("100%");
$table_second->setHeight("40%");
$table_second->setClass("table.first");
$img_add = new Image();
$img_add->setImage("img/Android/hdpi/plus_circle.png");
$img_add->onTap(movements());
Example #2
0
<?php

$win = new SDPanel();
$win->setCaption("Balance");
$token = new InputText(80);
$maintable = new Table();
$maintable->setRowsStyle("100%");
$maintable->setWidth("100%");
$maintable->setHeight("100%");
$input = new InputNumeric(11);
$input->setClass("label.black");
$input->setReadOnly(true);
$label = new Label();
$label->setCaption("Total balance:");
$label->setClass("label.black");
$table = new Table();
$table->setRowsStyle("100%");
$table->setWidth("100%");
$table->setHeight("65%");
$table->setClass("table.account");
$table->addControl($label, 1, 1, 1, 1, "Center", "Middle");
$table->addControl($input, 1, 2, 1, 1, "Center", "Middle");
$maintable->addControl($table, 1, 1);
$win->addControl($maintable);
function clientStart()
{
    $token = StorageAPI::Get("token");
    $url = "http://demo.kikapptools.com/Gastos/crud/getAccount.php";
    $httpClient = new httpClient();
    $httpClient->addVariable("id", $token);
    $result = $httpClient->Execute('POST', $url);