Example #1
0
<?php

/**
 * Detail company.
 * @author KikApp
 * @version 1.0
 */
$win = new SDPanel();
$id = new InputNumeric();
Data::getParm($id);
//Action bar and buttons bar
$acb = new ActionBar();
$btn_update = new ButtonBar();
$btn_update->setCaption("Update");
$btn_update->onTap(update());
$btn_delete = new ButtonBar();
$btn_delete->setCaption("Delete");
$btn_delete->onTap(delete());
$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");
Example #2
0
<?php

/**
 * Main object.
 * @author Kikapp
 * @version 1.0
 */
$win = new SDPanel();
$win->setCaption("First Facebook Post!");
$actionBar = new ActionBar();
$actionBar->setClass("applicationBars");
$mainTable = new Table();
$input = new InputText();
//create input
$input->setLabelCaption("Write your thoughts");
$button = new Button();
$button->setCaption("Post on Facebook");
$button->onTap(facebook());
$button->setClass("button.blue");
$mainTable->addControl($input, 1, 1, 1, 1, "Center", "Middle");
$mainTable->addControl($button, 2, 1, 1, 1, "Center", "Middle");
$win->addControl($mainTable);
function facebook()
{
    Facebook::PostToWall("First post", "Caption", $input, "http://www.kikapptools.com", "");
}
Example #3
0
<?php

/**
 * Main object.
 * @author Kikapp
 * @version 1.0
 */
$win = new SDPanel();
$win->setCaption("ActionBar");
$table = new Table();
$actionBar = new ActionBar();
$actionBar->setClass("applicationBars");
$actionGroup = new ActionGroup();
$actionGroup->setCaption("");
$actionGroup->setImage("img/ico_thumb.png");
$buttonBar = new ButtonBar();
$buttonBar->setCaption("Button 1");
$buttonBar->setImage("img/ico_thumb.png");
$buttonBar->onTap(functonClick());
$buttonBar_2 = new ButtonBar();
$buttonBar_2->setCaption("Button 2");
$buttonBar_2->setImage("img/ico_thumb.png");
$buttonBar_2->onTap(functonClick_2());
$actionGroup->addControl($buttonBar);
$actionGroup->addControl($buttonBar_2);
$actionBar->addControl($actionGroup);
$win->addControl($actionBar);
$win->addControl($table);
function functonClick()
{
    echo "On click button 1!";
Example #4
0
<?php

/***
 * Task detail screen
 */
$win = new SDPanel();
$win->setCaption("Task Detail");
//Get var sent from main screen
$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
<?php

/**
 * Update company.
 * @author KikApp
 * @version 1.0
 */
$win = new SDPanel();
$win->setCaption("Transaction");
$token = new InputText(80);
$idMov_trans = new InputNumeric();
Data::getParm($token, $idMov_trans);
//Action bar and buttons bar
$acb = new ActionBar();
$btn_update = new ButtonBar();
$btn_update->setCaption("Save");
$btn_update->onTap(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");
<?php

/***
 * Detail of product
 */
$win = new SDPanel();
//$win -> setCaption("Detail of product");
$id = new InputNumeric();
$productUrl = new InputText();
Data::getParm($id, $title, $desc, $price, $stock, $productUrl);
$table = new Table();
$table->setClass("tableGray");
//Action Bar and Action Group.
$apb1 = new ActionBar();
$acg1 = new ActionGroup();
$acg1->setCaption("");
$acg1->setImage("img/ic_share.png");
$btn_facebook = new ButtonBar();
$btn_facebook->setCaption("Facebook");
$btn_facebook->setImage("img/ic_facebook.png");
$btn_facebook->onTap(facebook());
$btn_tw = new ButtonBar();
$btn_tw->setCaption("Twitter");
$btn_tw->setImage("img/ic_tw.png");
$btn_tw->onTap(twitter());
$btn_sms = new ButtonBar();
$btn_sms->setCaption("SMS");
$btn_sms->setImage("img/ic_sms.png");
$btn_sms->onTap(sms());
$btn_email = new ButtonBar();
$btn_email->setCaption("EMail");
Example #7
0
<?php

/***
 * Task List (TO DO)
 */
$win = new SDPanel();
$win->setCaption("Tasks To Do");
$statusList = new InputNumeric();
$period = new InputNumeric();
Data::getParm($period, $statusList);
//Add button to action bar
$bar = new ActionBar();
$barGroup = new ActionGroup();
$barGroup->setCaption("");
$barGroup->setImage("img/filterIcon.png");
$btn_today = new ButtonBar();
$btn_today->setCaption("Today");
$btn_today->setClass("image.actionBarIcon");
$btn_today->onTap(Today());
$btn_seven_days = new ButtonBar();
$btn_seven_days->setCaption("Next seven days");
$btn_seven_days->setClass("image.actionBarIcon");
$btn_seven_days->onTap(nextSevenDays());
$btn_fifteen_days = new ButtonBar();
$btn_fifteen_days->setCaption("Next fifteen days");
$btn_fifteen_days->setClass("image.actionBarIcon");
$btn_fifteen_days->onTap(nextFifteenDays());
$btn_thirty_days = new ButtonBar();
$btn_thirty_days->setCaption("Next thirty days");
$btn_thirty_days->setClass("image.actionBarIcon");
$btn_thirty_days->onTap(nextThirtyDays());
Example #8
0
<?php

/*** 
 * Products list.
 */
$win = new SDPanel();
$win->setCaption("List of products");
$cat = new InputNumeric();
Data::getParm($cat);
//Action Bar and Action Group.
$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
Example #9
0
<?php

/***
 * Home.
 */
$win = new SDPanel();
$win->setCaption("KikApp Store");
$acb = new ActionBar();
$btn_cart = new ButtonBar();
$btn_cart->setCaption("Cart");
$btn_cart->setImage("img/cart.png");
$btn_cart->onTap(goToCart());
$acb->addControl($btn_cart);
$win->addControl($acb);
$table = new Table();
$table->setClass("tableGray");
$grid_home = new HorizontalGrid();
$grid_home->setRowsPerPagePortrait(1);
$grid_home->setShowPageController(false);
$table_grid = new Canvas();
$grid_home->addData(grid_load());
$grid_home->onTap(action());
//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);
<?php

/***
 * Thumbnails products list.
 */
$win = new SDPanel();
$win->setCaption("List of products");
$cat = new InputNumeric();
Data::getParm($cat);
//Action Bar y Action Group.
$apb1 = new ActionBar();
$btn_img = new ButtonBar();
$btn_img->setCaption("List");
$btn_img->setImage("img/ic_list_white.png");
$btn_img->onTap(lista());
$apb1->addControl($btn_img);
$win->addControl($apb1);
$table = new Table();
$table->setClass("tableGray");
$grid = new Grid();
$table_grid = new Canvas();
$table_grid->setClass("tableTableDetailMain");
$grid->addSearch($title);
$grid->addData(grid_load());
$grid->onTap(action());
$grid->setEmptyGridText("No items available");
//inputs and controls
$title = new InputText(150);
$title->setClass("inputtextTitlewhite");
$title->setAutoGrow(true);
$image = new InputImage();
Example #11
0
$button -> setCaption("Click me!");
$button -> onTap(clickme());

$mainTable -> addControl($button,1,1);
$win -> addControl($mainTable);

function clickme(){
	echo "Hello !";
}*/
/***
 * Listado de categorias.
 */
$win = new SDPanel();
$win->setCaption("Tasks list thumb");
//Add button to action bar
$bar = new ActionBar();
$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();