Beispiel #1
0
$id = new InputNumeric();
$id->setClass("input.Common");
Data::getParm($id);
//Define the acrtion bar
$bar = new ActionBar();
$btn_delete = new ButtonBar();
$btn_delete->setCaption("Delete");
$btn_delete->onTap(removeTask());
$btn_delete->setImage("img/deleteBar.png");
$bar->addControl($btn_delete);
$win->addControl($bar);
//Items definition
$name = new InputText();
$name->setClass("input.Common");
$description = new InputText();
$description->setClass("input.Common");
$date = new InputDate();
$date->setLabelCaption("Task date");
$date->setClass("input.Common");
$addToCalendar = new InputBoolean();
$addToCalendar->setLabelCaption("Add to my calendar");
$addToCalendar->setLabelPosition("Right");
//Main table definition
$table = new Table();
$table->setClass("table.Background");
$table_form = new Table();
$table_form->setClass("table.Form");
$table_form->setRowsStyle("65dip;65dip;120dip;55dip");
$table_form->setHeight("90%");
$table_form->addControl($name, 1, 1, 1, 2);
$table_form->addControl($date, 2, 1, 1, 2);
$acb->addControl($btn_update);
$acb->addControl($btn_delete);
$win->addControl($acb);
$mainTable = new Table();
$mainTable->setEnableHeaderRowPattern(true);
$mainTable->setHeaderRowApplicationBarsClass("applicationBars.transparent");
$mainTable->setRowsStyle("150dip;pd");
$tableImg = new Table();
$tableImg->setClass("table.image");
$tableImg->setRowsStyle("pd;150dip;pd");
$image = new InputImage();
$image->setReadOnly(true);
$image->setClass("image.roundBorder");
$name = new InputText();
$name->setReadOnly(true);
$name->setClass("input.title");
$address = new InputAddress();
$address->setReadOnly(true);
$phone = new InputPhone();
$phone->setReadOnly(true);
$tableImg->addControl($image, 2, 1, 1, 1, "Center", "Middle");
$tableImg->addControl($name, 3, 1, 1, 1, "Center", "Middle");
$tableDesc = new Table();
$tableDesc->setClass("table.margin");
$tableDesc->addControl($address, 1, 1);
$tableDesc->addControl($phone, 2, 1);
$mainTable->addControl($tableImg, 1, 1);
$mainTable->addControl($tableDesc, 2, 1);
$win->addControl($mainTable);
function start()
{
$btn_email->onTap(email());
$acg1->addControl($btn_facebook);
$acg1->addControl($btn_tw);
$acg1->addControl($btn_sms);
$acg1->addControl($btn_email);
$apb1->addControl($acg1);
//Add action bar to a SDPanel.
$win->addControl($apb1);
$tableItemDetail = new Table();
$tableItemDetail->setClass("table.TableDetailMain");
$title = new InputText(150);
$title->setClass("inputtitleblack");
$title->setAutoGrow(true);
$title->setReadOnly(true);
$desc = new InputText(300);
$desc->setClass("attributeTextGray");
$desc->setReadOnly(true);
$desc->setAutoGrow(true);
$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");
Beispiel #4
0
$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);
//addPosition(control, left, width, top, height, right, bottom, zorder)
$canvas->addPosition($table_first, "10dip", "100%", "15dip", "60dip", "10dip", "0%", 1);
$canvas->addPosition($table_second, "10dip", "100%", "225dip", "60dip", "10dip", "0%", 1);
$canvas->addPosition($img_add, "100%", "60dip", "97%", "60dip", "15dip", "3%", 5);
Beispiel #5
0
$actionBar->setClass("applicationBars");
$grid_home = new HorizontalGrid();
$grid_home->setRowsPerPagePortrait(1);
$grid_home->setShowPageController(false);
$table_grid = new Canvas();
$grid_home->addData(grid_load());
//inputs and controls
$title = new InputText(150);
$title->setClass("inputtextTitlewhite");
$title->setAutoGrow(true);
$image = new InputImage();
$image->setClass("imageImageList");
$desc = new InputText(300);
$desc->setClass("inputtextwhite");
$price = new InputText(10);
$price->setClass("inputtextPrice");
$table_desc = new Table();
$table_desc->setRowsStyle("25dip;35dip;25dip");
$table_desc->setClass("tableProductThumb");
$table_desc->addControl($title, 1, 1);
$table_desc->addControl($desc, 2, 1);
$table_desc->addControl($price, 3, 1);
$table_grid->addPosition($image, "0%", "100%", "0", "230dip", "0%", "100%");
$table_grid->addPosition($table_desc, "0%", "100%", "140dip", "83dip", "0", "0");
$grid_home->addControl($table_grid);
$mainTable->setRowsStyle("230dip;100%");
$mainTable->addControl($grid_home, 1, 1);
$win->addControl($mainTable);
function grid_load()
{
    $url = "http://www.demo.kikapptools.com/magento/apiGecko/productos.php?display=home";
Data::getParm($moveType);
$table = new Table();
$table->setRowsStyle("100%");
$table->setWidth("100%");
$table->setHeight("100%");
$table->setClass("table.white");
$table_form = new Table();
$table_form->setRowsStyle("76dip;76dip;76dip;76dip");
$table_form->setClass("table.forms");
$input_value = new InputNumeric(15);
$input_value->setClass("input.form");
$input_date = new InputDate();
$input_date->setClass("input.form");
$input_desc = new InputText();
$input_desc->setLabelCaption("Description");
$input_desc->setClass("input.form");
$dc_cat = new DynamicComboBox();
$dc_cat->setValues(load_cat());
$dc_cat->setAddEmptyItem(false);
$dc_cat->setClass("input.form");
$button = new Button();
$button->setCaption("Confirm");
$button->onTap(confirm());
$button->setClass("button.blue");
$table_form->addControl($input_value, 1, 1, 1, 1, "Center", "Middle");
$table_form->addControl($input_date, 2, 1, 1, 1, "Center", "Middle");
$table_form->addControl($input_desc, 3, 1, 1, 1, "Center", "Middle");
$table_form->addControl($dc_cat, 4, 1, 1, 1, "Center", "Middle");
$table_button = new Table();
$table_button->addControl($button, 1, 1, 1, 1, "Center", "Middle");
$table->addControl($table_form, 1, 1);
Beispiel #7
0
$win = new SDPanel();
$win->setCaption("Login");
$table = new Table();
$table->setRowsStyle("80dip;100%");
$table->setClass("table.background");
$lbl_home = new Label();
$lbl_home->setClass("label.Titlelogin");
$lbl_home->setCaption("Login to KikApp Store");
$table_form = new Table();
$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);
Beispiel #8
0
$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());
$grid->onTap(action_prod());
//inputs and controls
$title_prod = new InputText(150);
$title_prod->setClass("input.titleList");
$title_prod->setAutoGrow(true);
$image_prod = new InputImage();
$image_prod->setClass("image.roundedListImage");
$desc_prod = new InputText(300);
$desc_prod->setClass("input.textDescription");
$price_prod = new InputText(10);
$price_prod->setClass("input.priceList");
$table_desc_prod = new Table();
$table_desc_prod->setRowsStyle("25dip;35dip;25dip");
$table_desc_prod->setClass("tableProduct");
$table_desc_prod->addControl($title_prod, 1, 1);
$table_desc_prod->addControl($desc_prod, 2, 1);
$table_desc_prod->addControl($price_prod, 3, 1);
$table_grid_product->addControl($image_prod, 1, 1);
$table_grid_product->addControl($table_desc_prod, 1, 2);
$grid->addControl($table_grid_product);
$table->setRowsStyle("230dip;100%");
$table->addControl($grid_home, 1, 1);
$table->addControl($grid, 2, 1);
$win->addControl($table);
$win->Render();
//Grid load function
Beispiel #9
0
$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();
$table_desc_prod->setRowsStyle("25dip;35dip;25dip");
$table_desc_prod->setClass("tableProduct");
$table_desc_prod->addControl($title_prod, 1, 1);
$table_desc_prod->addControl($desc_prod, 2, 1);
$table_desc_prod->addControl($price_prod, 3, 1);
$table_grid_product->addControl($image_prod, 1, 1);
$table_grid_product->addControl($table_desc_prod, 1, 2);
$grid->addControl($table_grid_product);
$table->setRowsStyle("100%");
$table->addControl($grid, 1, 1);
$win->addControl($table);
function action_prod()
{
    $win->Open("product_detail", $id_prod, $title_prod, $desc_prod, $price_prod);
//$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);
$shipping->setReadOnly(true);
$shipping->setClass("input.textPrice");
$tax = new InputText(10);
$tax->setReadOnly(true);
$tax->setClass("input.textPrice");
$btn_checkout = new Button();
$btn_checkout->setClass("buttonred");
$btn_checkout->setCaption("CHECKOUT NOW");
$btn_checkout->onTap(checkout());
<?php

/***
 * 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;
Beispiel #12
0
$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();
$table_desc->setRowsStyle("25dip;35dip;25dip");
$table_desc->setClass("tableProduct");
$table_desc->addControl($title, 1, 1);
$table_desc->addControl($desc, 2, 1);
$table_desc->addControl($price, 3, 1);
$table_grid->addControl($image, 1, 1);
$table_grid->addControl($table_desc, 1, 2);
$grid->addControl($table_grid);
$table->addControl($grid);
$win->addControl($table);
$win->Render();
function changeView()
{
    $win->Open("ProductThumbList", $cat);
Beispiel #13
0
 */
$win = new SDPanel();
$win->setCaption(" ");
$table = new Table();
$table->setClass("table.Menu");
$table->setRowsStyle("150dip;50dip");
//Menu Header
$table_header = new Table();
$table_header->setClass("table.Header");
$table_header->setColumnsStyle("15%;85%");
$table_header->setRowsStyle("50dip;90dip");
$headerImage = new Image();
$headerImage->setClass("image.MenuHeader");
$headerImage->setImage("img/userIcon.png");
$headerLabel = new InputText();
$headerLabel->setClass("input.titleWhite");
$headerLabel->setReadOnly(true);
$table_header->addControl($headerImage, 2, 1, 1, 1, "Left", "Middle");
$table_header->addControl($headerLabel, 2, 2, 1, 1, "Left", "Middle");
$table_home = new Table();
$table_home->setClass("tableMenuOption");
$table_home->setColumnsStyle("20%;80%");
$img_home = new Image();
$img_home->setImage("img/ic_home.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");
Beispiel #14
0
$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");
$btn_save->onTap(save());
$table_button = new Table();
$table_button->addControl($btn_save, 1, 1);
$table->addControl($table_form, 1, 1);
$table->addControl($table_button, 2, 1);
$win->addControl($table);
function save()
$btn_cancel = new ButtonBar();
$btn_cancel->setCaption("Delete");
$btn_cancel->onTap(delete());
$acb->addControl($btn_update);
$acb->addControl($btn_cancel);
$win->addControl($acb);
$mainTable = new Table();
$mainTable->setRowsStyle("100%");
$mainTable->setWidth("100%");
$mainTable->setHeight("100%");
$mainTable->setClass("table.white");
$table = new Table();
$table->setRowsStyle("76dip;76dip;76dip;76dip;76dip");
$table->setClass("table.forms");
$move_type = new InputText();
$move_type->setClass("input.form");
$move_type->setReadOnly(true);
$value = new InputNumeric(10);
$value->setClass("input.form");
$date = new InputDate();
$date->setClass("input.form");
$description = new InputText();
$description->setClass("input.form");
$dc_cat = new DynamicComboBox();
$dc_cat->setValues(load_cat());
$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();
Beispiel #16
0
/***
 * Edit my data.
 */
$win = new SDPanel();
$win->setCaption("My Account");
$token = new InputText(80);
Data::getParm($token);
$table = new Table();
$table->setClass("tablebackground");
$table_form = new Table();
$table_form->setClass("tableforms");
$table_form->setRowsStyle("76dip;76dip;76dip");
$name = new InputText();
$name->setClass("inputForm");
$last_name = new InputText();
$last_name->setClass("inputForm");
$email = new InputEmail();
$email->setClass("inputForm");
$btn_save = new Button();
$btn_save->setCaption("Save");
$btn_save->setClass("buttonform");
$btn_save->onTap(save());
$table_form->addControl($name, 1, 1);
$table_form->addControl($last_name, 2, 1);
$table_form->addControl($email, 3, 1);
$table_button = new Table();
$table_button->addControl($btn_save, 1, 1);
$table->addControl($table_form, 1, 1);
$table->addControl($table_button, 2, 1);
$win->addControl($table);
$win->Render();
Beispiel #17
0
$btn_img = new ButtonBar();
$btn_img->setCaption("");
$btn_img->setImage("img/ico_thumb.png");
$btn_img->onTap(changeViewType());
$bar->addControl($btn_img);
$win->addControl($bar);
$table = new Table();
$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());