Ejemplo n.º 1
0
$table->setRowsStyle("100%");
$table->setWidth("100%");
$table->setHeight("100%");
$table->setClass("table.white");
$table_form = new Table();
$table_form->setRowsStyle("76dip;76dip");
$table_form->setClass("table.forms");
$username = new InputEmail();
$username->setClass("input.form");
$username->setInviteMessage("E-Mail");
$password = new InputText();
$password->setClass("input.form");
$password->setInviteMessage("Password");
$password->setIsPassword(true);
$label = new Label();
$label->setCaption("OR");
$label->setClass("label.big");
$btn_save = new Button();
$btn_save->setCaption("Log in");
$btn_save->onTap(login());
$btn_save->setClass("button.blue");
$btn_register = new Button();
$btn_register->setCaption("Sign up");
$btn_register->onTap(register());
$btn_register->setClass("button.blue");
$table_form->addControl($username, 1, 1);
$table_form->addControl($password, 2, 1);
$table_button = new Table();
$table_button->addControl($btn_save, 1, 1);
$table_button->addControl($label, 2, 1, 1, 1, "Center", "Middle");
$table_button->addControl($btn_register, 3, 1);
Ejemplo n.º 2
0
$label_income_month->setCaption("Income: ");
$label_income_month->setClass("label.black");
$input1 = new InputText();
$input1->setReadOnly(true);
$input1->setClass("label.black");
$label_green_bis = new Label();
$label_green_bis->setClass("label.income");
$label_red_bis = new Label();
$label_red_bis->setClass("label.outcome");
$table_income_month = new Table();
$table_income_month->setColumnsStyle("5dip;50%;50%");
$table_income_month->addControl($label_green_bis, 1, 1, 1, 1, "", "Middle");
$table_income_month->addControl($label_income_month, 1, 2, 1, 1, "Center", "Middle");
$table_income_month->addControl($input1, 1, 3, 1, 1, "Right", "Middle");
$label_outcome_month = new Label();
$label_outcome_month->setCaption("Outcome: ");
$label_outcome_month->setClass("label.black");
$input2 = new InputText();
$input2->setReadOnly(true);
$input2->setClass("label.black");
$table_outcome_month = new Table();
$table_outcome_month->setColumnsStyle("5dip;50%;50%");
$table_outcome_month->addControl($label_red_bis, 1, 1, 1, 1, "", "Middle");
$table_outcome_month->addControl($label_outcome_month, 1, 2, 1, 1, "Center", "Middle");
$table_outcome_month->addControl($input2, 1, 3, 1, 1, "Right", "Middle");
$table_first->addControl($table_account, 1, 1);
$table_first->addControl($table_income, 2, 1);
$table_first->addControl($table_outcome, 3, 1);
$table_second->addControl($table_title_month, 1, 1);
$table_second->addControl($table_income_month, 2, 1);
$table_second->addControl($table_outcome_month, 3, 1);
Ejemplo n.º 3
0
$img_login->setImage("img/Android/hdpi/ic_login.png");
$img_login->setClass("imagemenu");
$lbl_login = new Label();
$lbl_login->setCaption("Login");
$lbl_login->setClass("labelMenuOption");
$table_login->onTap(login());
$table_login->addControl($img_login, 1, 1, 1, 1, "Center", "Middle");
$table_login->addControl($lbl_login, 1, 2, 1, 1, "Left", "Middle");
$table_logout = new Table();
$table_logout->setClass("tableMenuOption");
$table_logout->setColumnsStyle("20%;80%");
$img_logout = new Image();
$img_logout->setImage("img/Android/hdpi/ic_logout.png");
$img_logout->setClass("imagemenu");
$lbl_logout = new Label();
$lbl_logout->setCaption("Logout");
$lbl_logout->setClass("labelMenuOption");
$table_logout->onTap(logout());
$table_logout->addControl($img_logout, 1, 1, 1, 1, "Center", "Middle");
$table_logout->addControl($lbl_logout, 1, 2, 1, 1, "Left", "Middle");
$table_space = new Table();
$table->addControl($table_space, 1, 1);
$table->addControl($table_home, 2, 1);
$table->addControl($table_account, 3, 1);
$table->addControl($table_transactions, 4, 1);
$table->addControl($table_login, 5, 1);
$table->addControl($table_settings, 6, 1);
$table->addControl($table_logout, 7, 1);
$token = new InputText(80);
$win->addControl($table);
function ClientStart()
Ejemplo n.º 4
0
<?php

/**
 * Main object.
 * @author Kikapp
 * @version 1.0
 */
$win = new SDPanel();
$win->setCaption("Welcome");
$actionBar = new ActionBar();
$actionBar->setClass("applicationBars");
$mainTable = new Table();
$mainTable->setClass("table.general");
$label = new Label();
$label->setCaption("Welcome to the Global Example!");
$label->setClass("label.Home");
$label2 = new Label();
$label2->setCaption("Use the Slide to open Facebook, Twitter and Map!");
$label2->setClass("label.Home");
$image = new Image();
$image->setImage("img/Android/hdpi/appicon.png");
$mainTable->addControl($label, 2, 1, 1, 1, "Center", "Middle");
$mainTable->addControl($label2, 3, 1, 1, 1, "Center", "Middle");
$mainTable->addControl($image, 4, 1, 1, 1, "Center", "Middle");
$win->addControl($mainTable);
Ejemplo n.º 5
0
}*/
/***
 * Listado de categorias.
 */
$win = new SDPanel();
$win->setCaption("Tasks list");
$table = new Table();
$table->setClass("table.Menu");
$table_home = new Table();
$table_home->setClass("table.MenuOption");
$table_home->setColumnsStyle("20%;80%");
$img_home = new Image();
$img_home->setImage("img/ico_thumb.png");
$img_home->setClass("ImageMenu");
$lbl_home = new Label();
$lbl_home->setClass("LabelMenuOption");
$lbl_home->setCaption("Home");
$table_home->onTap(home());
//$table_home -> addControl($img_home,1,1,1,1,"Center","Middle");
$table_home->addControl($lbl_home, 1, 2, 1, 1, "Left", "Middle");
$table->addControl($table_home, 2, 1);
$win->addControl($table);
$win->Render();
function Slide()
{
    $win->Open("mainThumb");
}
function home()
{
    $win->Open("mainThumb");
}
Ejemplo n.º 6
0
<?php

/**
 * Main object.
 * @author Kikapp
 * @version 1.0
 */
$win = new SDPanel();
$win->setCaption("First Canvas!");
$canvas = new Canvas();
$canvas->setWidth("100%");
$canvas->setHeight("100%");
$mainTable = new Table();
$table = new Table();
$label = new Label();
$label->setCaption("First image:");
$label2 = new Label();
$label2->setCaption("Second image:");
$image = new Image();
$image->setImage("img/Android/hdpi/appicon.png");
$image2 = new Image();
$image2->setImage("img/Android/hdpi/lunchimage.png");
$table->addControl($label, 1, 1);
$table->addControl($label2, 3, 1);
$canvas->addPosition($image2, "0%", "100%", "0", "350dip", "0%", "100%", 0);
$canvas->addPosition($image, "0%", "100%", "0", "66dip", "0%", "100%", 1);
$canvas->addPosition($table, "0%", "100%", "0", "180dip", "0%", "100%", 2);
$mainTable->addControl($canvas, 1, 1);
$win->addControl($mainTable);
Ejemplo n.º 7
0
$dc_cat->setAddEmptyItem(false);
$dc_cat->setClass("input.form");
$label_type = new Label();
$label_type->setCaption("Move type:");
$label_type->setClass("label.black");
$label_value = new Label();
$label_value->setCaption("Value:");
$label_value->setClass("label.black");
$label_date = new Label();
$label_date->setCaption("Date:");
$label_date->setClass("label.black");
$label_description = new Label();
$label_description->setCaption("Description:");
$label_description->setClass("label.black");
$label_categorie = new Label();
$label_categorie->setCaption("Categorie:");
$label_categorie->setClass("label.black");
$table->addControl($label_value, 1, 1);
$table->addControl($value, 1, 2);
$table->addControl($label_date, 2, 1);
$table->addControl($date, 2, 2);
$table->addControl($label_description, 3, 1);
$table->addControl($description, 3, 2);
$table->addControl($label_type, 4, 1);
$table->addControl($move_type, 4, 2);
$table->addControl($label_categorie, 5, 1);
$table->addControl($dc_cat, 5, 2);
$mainTable->addControl($table, 1, 1);
$win->addControl($mainTable);
function refresh()
{
Ejemplo n.º 8
0
$table_form->setRowsStyle("76dip;76dip");
$table_form->setClass("tableforms");
$email = new InputEmail();
$email->setClass("inputForm");
$email->setInviteMessage("E-Mail");
$pass = new InputText();
$pass->setClass("inputForm");
$pass->setInviteMessage("Password");
$pass->setIsPassword(true);
$btn_save = new Button();
$btn_save->setCaption("LOG IN");
$btn_save->setClass("buttonform");
$btn_save->onTap(login());
$lbl_signup = new Label();
$lbl_signup->setClass("label.SubTitlelogin");
$lbl_signup->setCaption("Not a store member?");
$btn_register = new Button();
$btn_register->setCaption("SIGN UP NOW");
$btn_register->setClass("button.Small");
$btn_register->onTap(register());
$table_form->addControl($email, 1, 1);
$table_form->addControl($pass, 2, 1);
$table->addControl($lbl_home, 1, 1, 1, 1, "Center", "Middle");
$table->addControl($table_form, 2, 1);
$table_button = new Table();
$table_button->addControl($btn_save, 1, 1);
$table_button->addControl($lbl_signup, 2, 1, 1, 1, "Center", "Middle");
$table_button->addControl($btn_register, 3, 1);
$table->addControl($table_button, 3, 1);
$win->addControl($table);
$win->Render();
Ejemplo n.º 9
0
<?php

/**
 * Main object.
 * @author Kikapp
 * @version 1.0
 */
$win = new SDPanel();
$win->setCaption("First Label");
$mainTable = new Table();
$label = new Label();
$label->setCaption("My first label!");
$mainTable->addControl($label, 1, 1);
$win->addControl($mainTable);
Ejemplo n.º 10
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);
Ejemplo n.º 11
0
$table_desc->setColumnsStyle("5%;5%;90%");
$table_desc->addControl($name, 1, 1, 1, 4, "Left", "Top");
$table_desc->addControl($qty, 2, 1, 1, 1, "Left", "Top");
$table_desc->addControl($price, 2, 2, 1, 2, "Left", "Top");
$table_list = new Table();
$table_list->setColumnsStyle("95dip;100%");
$table_list->addControl($image, 1, 1);
$table_list->addControl($table_desc, 1, 2);
$table_list->onLongTap(removeProduct());
//$table_list->onTap(view_image());
$list->addControl($table_list, 1, 1);
$table_result = new Table();
$table_result->setClass("table.checkout");
$table_result->setRowsStyle("90dip;70dip");
$lbl_total = new Label();
$lbl_total->setCaption("Total: ");
$lbl_sub_total = new Label();
$lbl_sub_total->setCaption("Sub total: ");
$lbl_shipping = new Label();
$lbl_shipping->setCaption("Shipping: ");
$lbl_tax = new Label();
$lbl_tax->setCaption("Tax: ");
$total = new InputText(10);
$total->setReadOnly(true);
$total->setClass("input.textPriceTotal");
//$total -> setLabelPosition("Left");
//$total -> setLabelCaption("$");
$subtotal = new InputText(10);
$subtotal->setReadOnly(true);
$subtotal->setClass("input.textPrice");
$shipping = new InputText(10);
Ejemplo n.º 12
0
 * Main object.
 * @author Kikapp
 * @version 1.0
 */
$win = new SDPanel();
$win->setCaption("Tabs!");
$actionBar = new ActionBar();
$actionBar->setClass("applicationBars");
$mainTable = new Table();
$tab = new Tab();
$tab->setVisible(true);
//$tab-> setClass("tab");
$item1 = new TabItem();
$item1->setCaption("Tab 1");
$item2 = new TabItem();
$item2->setCaption("Tab2 2");
$tableItem1 = new Table();
$tableItem2 = new Table();
$label1 = new Label();
$label1->setCaption("Label Tab 1");
$label2 = new Label();
$label2->setCaption("Label Tab 2");
$tableItem1->addControl($label1, 1, 1);
$tableItem2->addControl($label2, 1, 1);
$item1->addControl($tableItem1);
$item2->addControl($tableItem2);
$tab->addTab($item1);
$tab->addTab($item2);
$mainTable->addControl($tab);
$win->addControl($actionBar);
$win->addControl($mainTable);
Ejemplo n.º 13
0
<?php

/***
 * Popup
 */
$win = new SDPanel();
$win->setCaption("");
$table = new Table();
//$table -> setFormClass("form.algo");
$lugar = new Label();
$lugar->setCaption("Place");
$combo_box_lugar = new ComboBox();
$combo_box_lugar->setEmptyItem(false);
//$combo_box_fecha-> setEmptyItemText("Choose options");
$combo_box_lugar->setValues("All:1, Staples Center:2, Quickens Loans Arena:3");
$boton = new Button();
$boton->setCaption("Search");
$boton->onTap(prueba());
$table->addControl($lugar, 1, 1);
$table->addControl($combo_box_lugar, 1, 2);
$table->addControl($boton, 2, 1, 1, 2, "", "");
$win->addControl($table);
function prueba()
{
    echo "Searching...";
}
Ejemplo n.º 14
0
<?php

/**
 * Table example.
 * mainTable.php
 */
//Create SDPanel
$win = new SDPanel();
$win->setCaption("Hello world!");
//Labels to add to the table
$label_one = new Label();
$label_one->setCaption("Text 1");
$label_one->setClass("label.Example");
$label_two = new Label();
$label_two->setCaption("Text 2");
$label_two->setClass("label.Example");
//Inner table
$table = new Table();
$table->setClass("table.Example");
$table->addControl($label_one, 1, 1, 1, 1, "Center", "Middle");
$table->addControl($label_two, 2, 1, 1, 1, "Center", "Middle");
$win->addControl($table);
Ejemplo n.º 15
0
$img_twitter->setClass("image.menu");
$lbl_twitter = new Label();
$lbl_twitter->setClass("label.MenuOption");
$lbl_twitter->setCaption("Twitter");
$table_twitter->onTap(twitte());
$table_twitter->addControl($img_twitter, 1, 1, 1, 1, "Center", "Middle");
$table_twitter->addControl($lbl_twitter, 1, 2, 1, 1, "Left", "Middle");
$table_map = new Table();
$table_map->setClass("table.MenuOption");
$table_map->setColumnsStyle("20%;80%");
$img_map = new Image();
$img_map->setImage("img/Android/hdpi/ic_map.png");
$img_map->setClass("image.menu");
$lbl_map = new Label();
$lbl_map->setClass("label.MenuOption");
$lbl_map->setCaption("Map");
$table_map->onTap(map());
$table_map->addControl($img_map, 1, 1, 1, 1, "Center", "Middle");
$table_map->addControl($lbl_map, 1, 2, 1, 1, "Left", "Middle");
$mainTable->addControl($table_home, 2, 1);
$mainTable->addControl($table_facebook, 3, 1);
$mainTable->addControl($table_twitter, 4, 1);
$mainTable->addControl($table_map, 5, 1);
$win->addControl($mainTable);
function Slide()
{
    $token = new InputText(80);
    $win->Open("Home");
}
function home()
{
Ejemplo n.º 16
0
$img_add->setClass("image.MenuItem");
$lbl_add = new Label();
$lbl_add->setCaption("Add task");
$lbl_add->setClass("label.MenuItem");
$table_add->onTap(add());
$table_add->addControl($img_add, 1, 1, 1, 1, "Center", "Middle");
$table_add->addControl($lbl_add, 1, 2, 1, 1, "Left", "Middle");
//Deleted button
$table_deleted = new Table();
$table_deleted->setClass("table.MenuItem");
$table_deleted->setColumnsStyle("20%;80%");
$img_deleted = new Image();
$img_deleted->setImage("img/ic_deleted.png");
$img_deleted->setClass("image.MenuItem");
$lbl_deleted = new Label();
$lbl_deleted->setCaption("Done");
$lbl_deleted->setClass("label.MenuItem");
$table_deleted->onTap(openDoneList());
$table_deleted->addControl($img_deleted, 1, 1, 1, 1, "Center", "Middle");
$table_deleted->addControl($lbl_deleted, 1, 2, 1, 1, "Left", "Middle");
//Add controls to menu
$table->addControl($table_header, 1, 1);
$table->addControl($table_home, 2, 1);
$table->addControl($table_deleted, 3, 1);
$table->addControl($table_add, 4, 1);
//Add controls to main screen
$win->addControl($table);
$win->Render();
function Slide()
{
    $period = new InputNumeric();
Ejemplo n.º 17
0
$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()
{
    $moveType = new InputText();
    $moveType->setValue("0");
    $win->Open("IncomeOutcome", $moveType);
Ejemplo n.º 18
0
$table->setClass("tableMenu");
$list = new Grid();
$list->addData(load_grid());
$list->addSearch($name);
$table_grid = new Canvas();
$table_grid->setClass("tableTableDetailMain");
$id = new InputNumeric();
$name = new InputText();
$name->setClass("inputTitle");
/*
$status   = new InputBoolean();
$status->setLabelCaption("Status");
$status->setLabelPosition("Left");
*/
$statusLabel = new Label();
$statusLabel->setCaption("Done");
$statusLabel->setClass("inputcommon");
$statusLabel->onTap(changeStatus());
/*
$statusButton = new ButtonBar();
$statusButton -> setCaption("change");
//$statusButton -> setImage("img/ico_thumb.png");
$statusButton -> setClass("buttonform");
$statusButton -> onTap(changeViewType());
*/
$table_list = new Table();
$table_list->addControl($name, 1, 1, 1, 4, "Left", "Middle");
$table_list->addControl($statusLabel, 1, 2, 1, 1, "Right", "Middle");
//$table_list -> addControl($status,1,3,1,1,"Right","Middle");
//$table_list -> addControl($statusButton,1,4,1,1,"Right","Middle");
$table_grid->addPosition($table_list, "0%", "100%", "0", "50dip", "0%", "100%");