当前位置: 首页>>代码示例>>PHP>>正文


PHP Label::setCaption方法代码示例

本文整理汇总了PHP中Label::setCaption方法的典型用法代码示例。如果您正苦于以下问题:PHP Label::setCaption方法的具体用法?PHP Label::setCaption怎么用?PHP Label::setCaption使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Label的用法示例。


在下文中一共展示了Label::setCaption方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: 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");
$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);
开发者ID:KikAppTools,项目名称:KikAppDemos,代码行数:31,代码来源:Login.php

示例2: InputText

$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);
开发者ID:KikAppTools,项目名称:KikAppDemos,代码行数:31,代码来源:Home.php

示例3: ClientStart

$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()
开发者ID:KikAppTools,项目名称:KikAppDemos,代码行数:31,代码来源:Slide.php

示例4: SDPanel

<?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);
开发者ID:KikAppTools,项目名称:KikAppExamples,代码行数:25,代码来源:Home.php

示例5: Slide

}*/
/***
 * 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");
}
开发者ID:pablanco,项目名称:taskManager,代码行数:31,代码来源:main.php

示例6: SDPanel

<?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);
开发者ID:KikAppTools,项目名称:KikAppExamples,代码行数:29,代码来源:main.php

示例7: refresh

$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()
{
开发者ID:KikAppTools,项目名称:KikAppDemos,代码行数:31,代码来源:transaction_detail.php

示例8: InputEmail

$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();
开发者ID:KikAppTools,项目名称:KikAppDemos,代码行数:31,代码来源:Login.php

示例9: SDPanel

<?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);
开发者ID:KikAppTools,项目名称:KikAppExamples,代码行数:14,代码来源:main.php

示例10: clientStart

<?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);
开发者ID:KikAppTools,项目名称:KikAppDemos,代码行数:31,代码来源:Account.php

示例11: Table

$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);
开发者ID:KikAppTools,项目名称:KikAppDemos,代码行数:31,代码来源:ShoppingCart.php

示例12: SDPanel

 * 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);
开发者ID:KikAppTools,项目名称:KikAppExamples,代码行数:31,代码来源:main.php

示例13: prueba

<?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...";
}
开发者ID:KikAppTools,项目名称:KikAppExamples,代码行数:26,代码来源:Filtro.php

示例14: SDPanel

<?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);
开发者ID:KikAppTools,项目名称:KikAppExamples,代码行数:22,代码来源:main.php

示例15: Slide

$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()
{
开发者ID:KikAppTools,项目名称:KikAppExamples,代码行数:31,代码来源:main.php


注:本文中的Label::setCaption方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。