예제 #1
0
<?php

/***
 * 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);
예제 #2
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");
예제 #3
0
<?php

/***
 * Detail of product
 */
$win = new SDPanel();
$win->setCaption("Task Detail");
$id = new InputNumeric();
$name = new InputText();
$status = new InputBoolean();
$status->setLabelCaption("Status");
$status->setLabelPosition("Left");
$imagen = new InputImage();
//$name -> setClass("inputForm");
Data::getParm($id, $name, $status);
$table = new Table();
$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);
예제 #4
0
<?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");
예제 #5
0
<?php

/**
 * Example SDMap.
 * @author KikApp
 * @version 1.0
 */
$win = new SDPanel();
//Create Inputs
$id = new InputNumeric();
$title = new InputText();
$desc = new InputText();
Data::getParm($id, $title);
//get parms.
$mainTable = new Table();
$table = new Table();
$table->addControl($title, 1, 1);
$table->addControl($desc, 2, 1);
$mainTable->addControl($table, 1, 1);
$win->addControl($mainTable);
function start()
{
    /*
    $url = "http://demo.kikapptools.com/SDMap/crud/getPlaces.php?id=".$id;
    $httpClient = new httpClient();
    
    $result = $httpClient -> Execute('GET',$url);
    
    $struct = array(
    		array(
    				"Id" => DataType::Numeric(6),
예제 #6
0
<?php

$win = new SDPanel();
$win->setCaption("Movement");
$token = new InputText(80);
$moveType = new InputText();
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");
<?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");
예제 #8
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());
예제 #9
0
<?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;
예제 #10
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