<?php /** * Main object. * @author Kikapp * @version 1.0 */ $win = new SDPanel(); $win->setCaption("Horizontal Grid!"); $mainTable = new Table(); $actionBar = new ActionBar(); $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);
<?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", ""); }
<?php $win = new SDPanel(); $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() {
<?php /** * Main object. * @author Kikapp * @version 1.0 */ $win = new SDPanel(); $win->setCaption("Global Example!"); $actionBar = new ActionBar(); $actionBar->setClass("applicationBars"); $mainTable = new Table(); $table_home = new Table(); $table_home->setClass("table.MenuOption"); $table_home->setColumnsStyle("20%;80%"); $img_home = new Image(); $img_home->setImage("img/Android/hdpi/ic_home.png"); $img_home->setClass("image.menu"); $lbl_home = new Label(); $lbl_home->setClass("label.MenuOption"); $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_facebook = new Table(); $table_facebook->setClass("tableMenuOption"); $table_facebook->setColumnsStyle("20%;80%"); $img_facebook = new Image(); $img_facebook->setImage("img/Android/hdpi/ic_facebook.png"); $img_facebook->setClass("image.menu"); $lbl_facebook = new Label();
<?php /** * Main object. * @author Kikapp * @version 1.0 */ $win = new SDPanel(); $win->setCaption("PlayAudio"); $mainTable = new Table(); $audio_url = new InputText(); $button = new Button(); $button->setCaption("Click me!"); $button->onTap(clickme()); $mainTable->addControl($button, 1, 1); $win->addControl($mainTable); function clickme() { $audio_url = "https://goo.gl/v8IQZB"; Interop::PlayVideo($audio_url); }
<?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);
<?php $win = new SDPanel(); $win->setCaption("Add Budget"); $token = new InputText(80); $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"); $table_form->setClass("table.forms"); $money_value = new InputNumeric(15); $money_value->setClass("input.form"); $input_date = new InputDate(); $input_date->setClass("input.form"); $button = new Button(); $button->setCaption("Confirm"); $button->onTap(confirm()); $button->setClass("button.blue"); $table_form->addControl($money_value, 1, 1, 1, 1, "Center", "Middle"); $table_form->addControl($input_date, 2, 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); $table->addControl($table_button, 2, 1); $win->addControl($table); function confirm() { $token = StorageAPI::Get("token");
<?php /** * Main object. * @author Kikapp * @version 1.0 */ $win = new SDPanel(); $win->setCaption(""); $table = new Table(); function array_data_type() { //supose that your json has this structure: //[{"id":"120","name":"Pedro"},{"id":"121","name":"John"},{"id":"120","name":"Juan"}] //your ArrayDataType should look like this: $struct = array(array("id" => type::Numeric(6), "name" => type::Character(150))); } function another_array() { //supose that your json has this structure: //{"login":"******"} //your ArrayDataType should look like this: $struct1 = array("login" => type::Numeric(8)); }
<?php /** * List of companies * @author KikApp * @version 1.0 */ $win = new SDPanel(); $win->setCaption("Companies"); $mainTable = new Table(); $mainTable->setRowsStyle("100%"); $mainTable->setWidth("100%"); $mainTable->setHeight("100%"); $canvas = new Canvas(); $canvas->setWidth("100%"); $canvas->setHeight("100%"); $img_add = new Image(); $img_add->setImage("img/Android/hdpi/plus_circle.png"); $img_add->onTap(insert()); $list = new Grid(); $table_list = new Table(); $table_list->setColumnsStyle("86dip;100%"); //Controls in grid. $image = new InputImage(); $image->setClass("image.List"); $name = new InputText(); $name->setClass("input.title"); $address = new InputText(); $table_info = new Table(); $table_info->addControl($name, 1, 1, 1, 1, "Left", "Bottom"); $table_info->addControl($address, 2, 1);
<?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 /*** * 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");
<?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);
<?php /** * Main object. * @author Kikapp * @version 1.0 */ $win = new SDPanel(); $win->setCaption("Scanner API"); $mainTable = new Table(); $button = new Button(); $button->setCaption("Scan!"); $button->onTap(scanner()); $mainTable->addControl($button, 1, 1); $win->addControl($mainTable); function scanner() { $code = new InputText(); $code = ScannerAPI::ScanBarcode(); echo "code " . $code; }
<?php /** * Action Bar control example. * mainActionBar.php */ $win = new SDPanel(); $win->setCaption("Hello world!"); $tabMain = new Table(); $actionBar = new ActionBar(); $actionBar->setClass("applicationBars"); $win->addControl($actionBar); $win->addControl($tabMain);
<?php /*** * Navigation Style - Slide. * Main screen. */ $win = new SDPanel(); $win->setCaption("Menu"); $table = new Table(); $table->setClass("tableMenu"); $table_home = new Table(); $table_home->setClass("tableMenuOption"); $table_home->setColumnsStyle("20%;80%"); $img_home = new Image(); $img_home->setImage("img/Android/hdpi/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"); $table_account = new Table(); $table_account->setClass("tableMenuOption"); $table_account->setColumnsStyle("20%;80%"); $table_account->setInvisibleMode("Collapse Space"); $img_account = new Image(); $img_account->setImage("img/Android/hdpi/ic_product.png"); $img_account->setClass("imagemenu"); $lbl_account = new Label(); $lbl_account->setClass("labelMenuOption");
<?php /** * Main object. * @author Kikapp * @version 1.0 */ $win = new SDPanel(); $win->setCaption("PlayVideo"); $mainTable = new Table(); $video_url = new InputText(); $button = new Button(); $button->setCaption("Click me!"); $button->onTap(clickme()); $mainTable->addControl($button, 1, 1); $win->addControl($mainTable); function clickme() { $video_url = "https://goo.gl/06VzAw"; Interop::PlayVideo($video_url); }
<?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");
$mainTable = new Table(); $button = new Button(); $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"); $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");
<?php /** * Main object. * @author Kikapp * @version 1.0 */ $win = new SDPanel(); $win->setCaption("SwitchControl"); $mainTable = new Table(); $switch1 = new SwitchControl(); $switch1->setLabelCaption("Notifications"); $switch1->setLabelPosition("Left"); $button = new Button(); $button->setCaption("Click me!"); $button->onTap(clickme()); $mainTable->addControl($switch1, 1, 1, 1, 1, "Center", "Middle"); $mainTable->addControl($button, 2, 1); $win->addControl($mainTable); function clickme() { echo $switch1->getValue(); }
<?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!";
<?php /*** * Login */ $win = new SDPanel(); $win->setCaption("Login"); $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"); $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");
<?php /** * Main object. * @author Kikapp * @version 1.0 */ $win = new SDPanel(); $win->setCaption("Image control"); $tabMain = new Table(); $img_arrow = new Image(); $img_arrow->setImage("img/Android/hdpi/appicon.png"); $tabMain->addControl($img_arrow, 1, 1); $win->addControl($tabMain);
<?php /*** * Register. */ $win = new SDPanel(); $win->setCaption("Create an account"); $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");
<?php /** * Main object. * @author Kikapp * @version 1.0 */ $win = new SDPanel(); $win->setCaption("Address Book"); $actionBar = new ActionBar(); $actionBar->setClass("applicationBars"); $mainTable = new Table(); $btn_contact_add = new Button(); $btn_contact_add->setCaption("Add Contact"); $btn_contact_add->onTap(addContact()); $btn_contact_viewAll = new Button(); $btn_contact_viewAll->setCaption("View All Contact"); $btn_contact_viewAll->onTap(viewAllContact()); $input_name = new InputText(); $input_name->setLabelCaption("Name"); $input_lastname = new InputText(); $input_lastname->setLabelCaption("Last Name"); $input_email = new InputEmail(); $input_email->setLabelCaption("E-mail"); $input_phone = new InputPhone(); $input_phone->setLabelCaption("Phone"); $input_work = new InputText(); $input_work->setLabelCaption("Work"); $input_message = new InputText(); $input_message->setLabelCaption("Message"); $mainTable->addControl($input_name, 1, 1);
<?php /** * Main object. * @author Kikapp * @version 1.0 */ $win = new SDPanel(); $win->setCaption("Interop"); $actionBar = new ActionBar(); $actionBar->setClass("applicationBars"); $mainTable = new Table(); $input_message = new InputText(); $input_message->setLabelCaption("Write the message"); $input_phone = new InputPhone(); $input_phone->setLabelCaption("Write the phone number"); $button_sms = new Button(); $button_sms->setCaption("Send SMS!"); $button_sms->onTap(sms()); $mainTable->addControl($input_message, 1, 1); $mainTable->addControl($input_phone, 2, 1); $mainTable->addControl($button_sms, 3, 1); $win->addControl($mainTable); function sms() { Interop::SendSMS($input_phone, $input_message); }
<?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),
<?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);
<?php /*** * Home. */ $win = new SDPanel(); $win->setCaption("Home"); $token = new InputText(80); Data::getParm($token); $maintable = new Table(); $maintable->setWidth("100%"); $maintable->setHeight("100%"); $maintable->setClass("table.global"); $maintable->setRowsStyle("100%"); $table_first = new Table(); $table_first->setWidth("100%"); $table_first->setHeight("40%"); $table_first->setClass("table.first"); $table_canvas = new Table(); $table_canvas->setRowsStyle("100%"); $table_canvas->setWidth("100%"); $table_canvas->setHeight("100%"); $canvas = new Canvas(); $canvas->setWidth("100%"); $canvas->setHeight("100%"); $label_account = new Label(); $label_account->setCaption("Account"); $label_account->setClass("label.black"); $input_account = new InputNumeric(11); $input_account->setReadOnly(true); $input_account->setClass("label.black");
<?php /** * Main object. * @author Kikapp * @version 1.0 */ $win = new SDPanel(); $win->setCaption("Hello world!"); $mainTable = new Table(); $mainTable->setRowsStyle("300dip"); $video = new InputVideo(); $video->setReadOnly(true); $mainTable->addControl($video, 1, 1); $win->addControl($mainTable); function clientStart() { $video->setValue("https://www.youtube.com/watch?v=anywfG-X2b8"); }
<?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");